sprof 0.10.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/classes/FileInfo.d.ts +1 -1
- package/dist/core/components/atoms/PButton/PButton.stories.d.ts +18 -18
- package/dist/core/components/atoms/PButton/PButton.vue.d.ts +4 -4
- package/dist/core/components/atoms/POptionsListSingle/POptionsListSingle.vue.d.ts +16 -0
- package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +10 -10
- package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +5 -5
- package/dist/core/components/components.d.ts +1 -21
- package/dist/core/components/molecules/Collapse/CollapseItem.stories.d.ts +2 -2
- package/dist/core/components/molecules/Collapse/CollapseItem.vue.d.ts +1 -1
- package/dist/core/components/molecules/PAddDialog/PAddDialog.vue.d.ts +16 -2
- package/dist/core/components/molecules/PCard/PCard.stories.d.ts +12 -12
- package/dist/core/components/molecules/PCard/PCard.vue.d.ts +1 -1
- package/dist/core/components/molecules/PCrudList/PCrudList.vue.d.ts +31 -10
- package/dist/core/components/molecules/PEditDialog/pEditDialogProps.d.ts +2 -2
- package/dist/core/components/molecules/PModal/PModal.vue.d.ts +1 -1
- package/dist/core/components/organisms/PAuthModal/PAuthModal.stories.d.ts +69 -94
- package/dist/core/composables/usePagination.d.ts +6 -5
- package/dist/core/helpers/Validate.d.ts +8 -7
- package/dist/core/interfaces/IHTTPTypes.d.ts +2 -5
- package/dist/core/interfaces/IStorePaginator.d.ts +1 -1
- package/dist/core/ui/Dialog.d.ts +3 -3
- package/dist/core/ui/Notify.d.ts +5 -1
- package/dist/global-components.d.ts +0 -20
- package/dist/modules/contacts/components/PContactFormDeleteDialog.vue.d.ts +5 -5
- package/dist/modules/contacts/components/PContactFormEditDialog.vue.d.ts +5 -5
- package/dist/modules/contacts/types.d.ts +5 -4
- package/dist/modules/schedule/classes/Schedule.d.ts +2 -1
- package/dist/modules/schedule/classes/ScheduleDay.d.ts +2 -1
- package/dist/modules/schedule/classes/SchedulePlace.d.ts +2 -1
- package/dist/modules/schedule/classes/ScheduleSession.d.ts +2 -1
- package/dist/modules/schedule/classes/ScheduleSlot.d.ts +2 -1
- package/dist/modules/schedule/classes/types.d.ts +14 -0
- package/dist/modules/table/PTable.vue.d.ts +103 -0
- package/dist/modules/table/cells/PTableBadge.vue.d.ts +15 -6
- package/dist/modules/table/cells/PTableBadges.vue.d.ts +16 -7
- package/dist/modules/table/cells/PTableNumber.vue.d.ts +7 -5
- package/dist/modules/table/cells/PTableSelect.vue.d.ts +10 -3
- package/dist/modules/table/cells/PTableString.vue.d.ts +7 -5
- package/dist/modules/tabs/components/PTabsLeft.vue.d.ts +4 -3
- package/dist/sprof.js +6173 -7420
- package/dist/style.css +1 -1
- package/dist/test-utils/quasar-minimal.d.ts +3 -4
- package/package.json +15 -14
- package/dist/core/components/AdaptiveContainer.vue.d.ts +0 -38
- package/dist/core/components/AdaptiveContainerHorizontal.vue.d.ts +0 -60
- package/dist/core/components/CarouselImages.vue.d.ts +0 -64
- package/dist/core/components/ContextWindow.vue.d.ts +0 -34
- package/dist/core/components/FilterCheckbox.vue.d.ts +0 -21
- package/dist/core/components/FiltersButtonsSelect.vue.d.ts +0 -74
- package/dist/core/components/GeneralItem.vue.d.ts +0 -122
- package/dist/core/components/InfoItem.vue.d.ts +0 -231
- package/dist/core/components/InfoItemSelectButtons.vue.d.ts +0 -34
- package/dist/core/components/LeftRightContainer.vue.d.ts +0 -35
- package/dist/core/components/PhoneForm.vue.d.ts +0 -10
- package/dist/core/components/ResearcheContainer.vue.d.ts +0 -36
- package/dist/core/components/RightSliderContainer.vue.d.ts +0 -82
- package/dist/core/components/RightTabsContainer.vue.d.ts +0 -74
- package/dist/core/components/SortList.vue.d.ts +0 -18
- package/dist/core/components/SortSelect.vue.d.ts +0 -27
- package/dist/core/components/Switch3Pos.vue.d.ts +0 -35
- package/dist/core/components/ThemeWrapper.vue.d.ts +0 -9
- package/dist/core/components/ToggleInfoItem.vue.d.ts +0 -31
- package/dist/core/components/TopSliderContainer.vue.d.ts +0 -59
- package/dist/core/components/atoms/POptionsListSingle/POptionsListSingle.stories.d.ts +0 -31
- package/dist/core/components/molecules/PCrudList/PCrudList.stories.d.ts +0 -729
- package/dist/modules/forms/components/Fields/DateField.vue.d.ts +0 -16
- package/dist/modules/forms/components/Fields/FieldsComponentsMap.d.ts +0 -172
- package/dist/modules/forms/components/Fields/FileField.vue.d.ts +0 -16
- package/dist/modules/forms/components/Fields/MatrixRadioField.vue.d.ts +0 -24
- package/dist/modules/forms/components/Fields/MatrixSetField.vue.d.ts +0 -24
- package/dist/modules/forms/components/Fields/NumberField.vue.d.ts +0 -16
- package/dist/modules/forms/components/Fields/RadioField.vue.d.ts +0 -24
- package/dist/modules/forms/components/Fields/SetField.vue.d.ts +0 -26
- package/dist/modules/forms/components/Fields/StringField.vue.d.ts +0 -16
- package/dist/modules/forms/components/Fields/TextField.vue.d.ts +0 -16
- package/dist/modules/forms/components/FormPage.vue.d.ts +0 -6
- package/dist/modules/forms/components/FormPageSections.vue.d.ts +0 -24
- package/dist/modules/forms/components/admin/Fields/FieldsEditsComponents.d.ts +0 -50
- package/dist/modules/forms/components/admin/Fields/MatrixFieldEdit.vue.d.ts +0 -12
- package/dist/modules/forms/components/admin/Fields/NumberFieldEdit.vue.d.ts +0 -2
- package/dist/modules/forms/components/admin/Fields/RadioFieldEdit.vue.d.ts +0 -12
- package/dist/modules/forms/components/admin/Fields/SetFieldEdit.vue.d.ts +0 -12
- package/dist/modules/forms/components/admin/Fields/StringFieldEdit.vue.d.ts +0 -2
- package/dist/modules/forms/components/index.d.ts +0 -3
- package/dist/sprof.umd.cjs +0 -44
package/dist/sprof.umd.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
(function(z,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("quasar"),require("vue"),require("vuedraggable"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","quasar","vue","vuedraggable","vue-router"],C):(z=typeof globalThis<"u"?globalThis:z||self,C(z.sprof={},z.Quasar,z.Vue,z.draggable,z.VueRouter))})(this,function(z,C,e,Bo,gc){"use strict";var Ib=Object.defineProperty;var Rb=(z,C,e)=>C in z?Ib(z,C,{enumerable:!0,configurable:!0,writable:!0,value:e}):z[C]=e;var d=(z,C,e)=>Rb(z,typeof C!="symbol"?C+"":C,e);var qt,Wt,st,So,ie,wt,tn;var Lt=typeof document<"u"?document.currentScript:null,De=(n=>(n.Login="login",n.Register="register",n.Restore="restore",n.Refresh="refresh",n))(De||{}),me=(n=>(n.Primary="primary",n.Success="success",n.Warning="warning",n.Error="error",n.Info="info",n))(me||{});class ln{constructor(t,o,i,r){d(this,"text","Сохранить");d(this,"type",me.Success);d(this,"condition",!0);d(this,"action");d(this,"id","button");d(this,"disabled",!1);this.text=t,this.type=i,this.action=o,r!==void 0&&(this.condition=r)}static Primary(t,o,i){return new ln(t,o,me.Primary,i)}static Success(t,o,i){return new ln(t,o,me.Success,i)}static Warning(t,o,i){return new ln(t,o,me.Warning,i)}static Error(t,o,i){return new ln(t,o,me.Error,i)}}class Vo extends ln{constructor(){super();d(this,"id","auth-button");d(this,"chunk",De.Login);d(this,"text","");d(this,"isSubmit",!1);d(this,"isLink",!0)}GetChunk(){return this.chunk}}let Ei=class extends Vo{constructor(){super(...arguments);d(this,"id","auth-button-login");d(this,"text","Войти");d(this,"isSubmit",!1);d(this,"chunk",De.Login)}};class ss extends Vo{constructor(){super(...arguments);d(this,"id","auth-button-refresh");d(this,"text","Обновить пароль");d(this,"isSubmit",!1);d(this,"chunk",De.Refresh)}}class Bi extends Vo{constructor(){super(...arguments);d(this,"id","auth-button-register");d(this,"text","Зарегистрироваться");d(this,"isSubmit",!1);d(this,"chunk",De.Register)}}class No extends Vo{constructor(){super(...arguments);d(this,"id","auth-button-restore");d(this,"text","Забыли пароль?");d(this,"isSubmit",!1);d(this,"chunk",De.Restore)}}class as{constructor(){d(this,"value","");d(this,"label","");d(this,"placeholder","");d(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var _t=(n=>(n.Email="field-auth-email",n.Password="field-auth-password",n.PasswordRepeat="field-auth-password-repeat",n))(_t||{});class $o extends as{constructor(){super(...arguments);d(this,"method");d(this,"id","field-auth");d(this,"name","")}get IsPassword(){return this.id===_t.Password||this.id===_t.PasswordRepeat}}var Bn=(n=>(n.Login="login",n.Email="email",n.Phone="phone",n.VK="vk",n.ESIA="esia",n))(Bn||{});const yc=/\S+@\S+\.\S+/;class ls{constructor(){d(this,"errors",[])}validate(t){return(t===""||!t)&&this.errors.push("Введите email"),yc.test(t)||this.errors.push("Некорректный email"),this.errors}}let wc=class extends $o{constructor(){super(...arguments);d(this,"id",_t.Email);d(this,"label","Email");d(this,"name","email");d(this,"placeholder","Введите email");d(this,"validator",new ls);d(this,"method",Bn.Email)}};const To=new wc;class bc{constructor(){d(this,"errors",[]);d(this,"length",3)}validate(t){return t===""||!t?(this.errors.push("Введите пароль"),this.errors):(t.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}let Sc=class extends $o{constructor(){super(...arguments);d(this,"label","Пароль");d(this,"validator",new bc);d(this,"name","password");d(this,"placeholder","Введите пароль");d(this,"id",_t.Password)}};const Po=new Sc;let Cc=class extends $o{constructor(){super(...arguments);d(this,"label","Повторите пароль");d(this,"id",_t.PasswordRepeat)}};const cs=new Cc,ds={allowRestore:!1,[De.Login]:{methods:[Bn.Email],title:"Вход в систему",action:"login",buttons:[new Ei,new Bi,new No],fields:[To,Po],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[De.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Bi,new Ei,new No],fields:[To,Po,cs],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[De.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new No],fields:[To]},[De.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new ss],fields:[Po]}};class kc{constructor(){d(this,"block",!1);d(this,"settings",ds);d(this,"chunk",De.Login);d(this,"selectedMethod",Bn.Email)}async Block(t){this.block=!0,await t(),this.block=!1}get IsBlock(){return this.block}GetValues(){const t=this.GetFields(),o=new Map;return t.forEach(i=>{i.value&&o.set(i.name,i.value)}),Object.fromEntries(o)}Validate(){if(this.IsRegister){const t=this.GetField(_t.Password),o=this.GetField(_t.PasswordRepeat);if((t==null?void 0:t.value)!==(o==null?void 0:o.value))return["Пароли не совпадают"]}return this.GetFields().map(t=>t.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(t=>!t.method||t.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===De.Login}get IsRegister(){return this.chunk===De.Register}get IsRestore(){return this.chunk===De.Restore}get IsRefresh(){return this.chunk===De.Refresh}SetChunk(t){this.chunk=t}GetTitle(){return this.GetCurSet().title}GetButtons(){const t=this.GetCurSet().buttons;return t.forEach(o=>{o.isSubmit=!1}),t[0].isSubmit=!0,t}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(t=>t.Reset())}Reset(){this.SetChunk(De.Login),this.ResetFields()}GetField(t){return this.GetFields().find(o=>o.id===t)}}class xc{constructor(){d(this,"visible",!1);d(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(t){t&&(this.closable=!0),this.visible=!0}}class Vn{constructor(){d(this,"type",me.Success);d(this,"text","");d(this,"title","")}static ToQuasarColor(t){switch(t){case me.Success:return"positive";case me.Warning:return"warning";case me.Error:return"negative";case me.Info:return"info";default:return"primary"}}static ContainsHtml(t){return/<[a-z][\s\S]*>/i.test(t)}showMessage(t,o){this.type=o,typeof t=="string"?(this.text=t,this.title=""):(this.text=t.text,this.title=t.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Vn.ToQuasarColor(this.type)}Info(t){this.showMessage(t,me.Info)}Success(t){this.showMessage(t,me.Success)}Error(t){this.showMessage(t,me.Error)}Warning(t){this.showMessage(t,me.Warning)}FormMessage(t){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const i of Object.keys(t))t[i][0]&&t[i][0].message&&(o+=`<li>${t[i][0].message}</li>`);return o+="</ul>",o}}class Vi{static Get(t,o,i="-"){return!t||!o?"":`${t}${i}${o}`}static In(t,o,i){return t>=o&&t<=i}static Intersects(t,o,i,r){return t===i||o===r||t>i&&t<r||o>i&&o<r||o>r&&t<i}}const fs=1e3,us=60*fs,Ni=60*us;var Yn=(n=>(n.FiveMinutes="5",n.HourQuarter="15",n.HourHalf="30",n.Hour="60",n))(Yn||{});const Mo={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class se{static S(t){return fs*t}static M(t){return us*t}static H(t){return Ni*t}static D(t){return Ni*t}static W(t){return Ni*t}static NormalizeTime(t){return String(t).padStart(2,"0")}static HMtoM(t){const o=se.SplitHM(t);return o.length>1?se.HtoM(o[0])+o[1]:se.HtoM(o[0])}static HtoM(t){return Number(t)*60}static SplitHM(t){if(!t)return[];const o=t.split(":");return[Number(o[0]),Number(o[1])]}static HmsToHm(t){const o=se.SplitHM(t);return se.ConcatHM(o[0],o[1])}static AddMtoHM(t,o){const i=new Date,r=se.SplitHM(t);i.setHours(r[0],r[1],0,0);const s=new Date(i.getTime()+o*6e4),a=s.getHours(),c=s.getMinutes();return se.ConcatHM(a,c)}static ConcatHM(t,o){return`${t}:${se.NormalizeTime(o)}`}static DiffM(t,o){return se.Gt(o,t)?se.HMtoM(o)-se.HMtoM(t):se.HMtoM(t)-se.HMtoM(o)}static GetPeriod(t,o){return Vi.Get(t,o)}static Gt(t,o){return se.HMtoM(t)>se.HMtoM(o)}static GtOrEq(t,o){return se.Gt(t,o)||se.Eq(t,o)}static Eq(t,o){return se.HMtoM(t)===se.HMtoM(o)}static PeriodInPeriod(t,o,i,r){return se.HMtoM(t)>=se.HMtoM(i)&&se.HMtoM(o)<=se.HMtoM(r)}static PeriodsIntersects(t,o,i,r){return Vi.Intersects(se.HMtoM(t),se.HMtoM(o),se.HMtoM(i),se.HMtoM(r))}}const Ec="top";class Bc extends Vn{constructor(){super(...arguments);d(this,"duration",se.S(3))}showMessage(o,i){if(super.showMessage(o,i),typeof C.Notify.create!="function"){console.warn("[sprof] Quasar Notify plugin is not installed. Add `app.use(Quasar, { plugins: { Notify } })` (imported from 'quasar') to your app.");return}const r=typeof o=="string"?{}:o;C.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:r.duration??this.duration,html:Vn.ContainsHtml(this.text),position:Ec})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",me.Warning)}Save(){this.showMessage("Изменения успешно сохранены",me.Success)}}const Xt=new Bc;class Nt{static Get(t){const o=localStorage.getItem(t);if(o)return JSON.parse(o)}static Set(t,o){o&&localStorage.setItem(t,JSON.stringify(o))}static Remove(t){localStorage.removeItem(t)}}var ut=(n=>(n.User="user",n.AccessToken="accessToken",n.RefreshToken="refreshToken",n))(ut||{});class Vc{set(t){this.setAccessToken(t.accessToken),this.setRefreshToken(t.refreshToken)}getAccessToken(){return Nt.Get(ut.AccessToken)}getRefreshToken(){return Nt.Get(ut.RefreshToken)}setAccessToken(t){Nt.Set(ut.AccessToken,t)}setRefreshToken(t){Nt.Set(ut.RefreshToken,t)}reset(){Nt.Remove(ut.AccessToken),Nt.Remove(ut.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class Nc{constructor(){d(this,"user");d(this,"userConstructor")}AssignTo(t){t.user=this.get()}setUserConstructor(t){this.userConstructor=t}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(t){this.userConstructor&&(this.user=new this.userConstructor(t),Nt.Set(ut.User,this.user))}reset(){this.user=void 0,Nt.Remove(ut.User)}actualize(){const t=Nt.Get(ut.User);t&&this.set(t)}}class $c{constructor(){d(this,"isAuth",!1);d(this,"user",new Nc);d(this,"tokens",new Vc);d(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(t){this.user.setUserConstructor(t)}SetUser(t){this.user.set(t)}SetState(t){this.SetUser(t.user),this.tokens.set(t.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){Xt.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}let Tc=(qt=class{constructor(){d(this,"form",e.reactive(new kc));d(this,"status",e.reactive(new $c));d(this,"modal",e.reactive(new xc));if(qt.instance)return qt.instance;qt.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},d(qt,"instance"),qt);const Fe=new Tc;var ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
|
|
2
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
-
|
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
-
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var hs;(function(n){(function(t){var o=typeof globalThis=="object"?globalThis:typeof ms=="object"?ms:typeof self=="object"?self:typeof this=="object"?this:c(),i=r(n);typeof o.Reflect<"u"&&(i=r(o.Reflect,i)),t(i,o),typeof o.Reflect>"u"&&(o.Reflect=n);function r(l,f){return function(u,m){Object.defineProperty(l,u,{configurable:!0,writable:!0,value:m}),f&&f(u,m)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(t,o){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,f=!c&&!l,u={create:c?function(){return ko(Object.create(null))}:l?function(){return ko({__proto__:null})}:function(){return ko({})},has:f?function(B,T){return i.call(B,T)}:function(B,T){return T in B},get:f?function(B,T){return i.call(B,T)?B[T]:void 0}:function(B,T){return B[T]}},m=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Xr(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Zr(),k=typeof WeakMap=="function"?WeakMap:gi(),N=r?Symbol.for("@reflect-metadata:registry"):void 0,$=Co(),E=Gn($);function M(B,T,R,_){if(v(R)){if(!Vt(B))throw new TypeError;if(!on(T))throw new TypeError;return tt(B,T)}else{if(!Vt(B))throw new TypeError;if(!be(T))throw new TypeError;if(!be(_)&&!v(_)&&!Ue(_))throw new TypeError;return Ue(_)&&(_=void 0),R=$e(R),ct(B,T,R,_)}}t("decorate",M);function b(B,T){function R(_,Z){if(!be(_))throw new TypeError;if(!v(Z)&&!rn(Z))throw new TypeError;St(B,T,_,Z)}return R}t("metadata",b);function V(B,T,R,_){if(!be(R))throw new TypeError;return v(_)||(_=$e(_)),St(B,T,R,_)}t("defineMetadata",V);function y(B,T,R){if(!be(T))throw new TypeError;return v(R)||(R=$e(R)),Be(B,T,R)}t("hasMetadata",y);function I(B,T,R){if(!be(T))throw new TypeError;return v(R)||(R=$e(R)),Bt(B,T,R)}t("hasOwnMetadata",I);function D(B,T,R){if(!be(T))throw new TypeError;return v(R)||(R=$e(R)),dt(B,T,R)}t("getMetadata",D);function te(B,T,R){if(!be(T))throw new TypeError;return v(R)||(R=$e(R)),bt(B,T,R)}t("getOwnMetadata",te);function Se(B,T){if(!be(B))throw new TypeError;return v(T)||(T=$e(T)),nn(B,T)}t("getMetadataKeys",Se);function ye(B,T){if(!be(B))throw new TypeError;return v(T)||(T=$e(T)),ft(B,T)}t("getOwnMetadataKeys",ye);function Me(B,T,R){if(!be(T))throw new TypeError;if(v(R)||(R=$e(R)),!be(T))throw new TypeError;v(R)||(R=$e(R));var _=Ce(T,R,!1);return v(_)?!1:_.OrdinaryDeleteMetadata(B,T,R)}t("deleteMetadata",Me);function tt(B,T){for(var R=B.length-1;R>=0;--R){var _=B[R],Z=_(T);if(!v(Z)&&!Ue(Z)){if(!on(Z))throw new TypeError;T=Z}}return T}function ct(B,T,R,_){for(var Z=B.length-1;Z>=0;--Z){var Te=B[Z],Ve=Te(T,R,_);if(!v(Ve)&&!Ue(Ve)){if(!be(Ve))throw new TypeError;_=Ve}}return _}function Be(B,T,R){var _=Bt(B,T,R);if(_)return!0;var Z=En(T);return Ue(Z)?!1:Be(B,Z,R)}function Bt(B,T,R){var _=Ce(T,R,!1);return v(_)?!1:Qt(_.OrdinaryHasOwnMetadata(B,T,R))}function dt(B,T,R){var _=Bt(B,T,R);if(_)return bt(B,T,R);var Z=En(T);if(!Ue(Z))return dt(B,Z,R)}function bt(B,T,R){var _=Ce(T,R,!1);if(!v(_))return _.OrdinaryGetOwnMetadata(B,T,R)}function St(B,T,R,_){var Z=Ce(R,_,!0);Z.OrdinaryDefineOwnMetadata(B,T,R,_)}function nn(B,T){var R=ft(B,T),_=En(B);if(_===null)return R;var Z=nn(_,T);if(Z.length<=0)return R;if(R.length<=0)return Z;for(var Te=new w,Ve=[],oe=0,H=R;oe<H.length;oe++){var q=H[oe],j=Te.has(q);j||(Te.add(q),Ve.push(q))}for(var W=0,re=Z;W<re.length;W++){var q=re[W],j=Te.has(q);j||(Te.add(q),Ve.push(q))}return Ve}function ft(B,T){var R=Ce(B,T,!1);return R?R.OrdinaryOwnMetadataKeys(B,T):[]}function ue(B){if(B===null)return 1;switch(typeof B){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return B===null?1:6;default:return 6}}function v(B){return B===void 0}function Ue(B){return B===null}function Gt(B){return typeof B=="symbol"}function be(B){return typeof B=="object"?B!==null:typeof B=="function"}function de(B,T){switch(ue(B)){case 0:return B;case 1:return B;case 2:return B;case 3:return B;case 4:return B;case 5:return B}var R="string",_=K(B,s);if(_!==void 0){var Z=_.call(B,R);if(be(Z))throw new TypeError;return Z}return Ke(B)}function Ke(B,T){var R,_;{var Z=B.toString;if(ve(Z)){var _=Z.call(B);if(!be(_))return _}var R=B.valueOf;if(ve(R)){var _=R.call(B);if(!be(_))return _}}throw new TypeError}function Qt(B){return!!B}function xn(B){return""+B}function $e(B){var T=de(B);return Gt(T)?T:xn(T)}function Vt(B){return Array.isArray?Array.isArray(B):B instanceof Object?B instanceof Array:Object.prototype.toString.call(B)==="[object Array]"}function ve(B){return typeof B=="function"}function on(B){return typeof B=="function"}function rn(B){switch(ue(B)){case 3:return!0;case 4:return!0;default:return!1}}function qe(B,T){return B===T||B!==B&&T!==T}function K(B,T){var R=B[T];if(R!=null){if(!ve(R))throw new TypeError;return R}}function Ie(B){var T=K(B,a);if(!ve(T))throw new TypeError;var R=T.call(B);if(!be(R))throw new TypeError;return R}function at(B){return B.value}function Ct(B){var T=B.next();return T.done?!1:T}function lt(B){var T=B.return;T&&T.call(B)}function En(B){var T=Object.getPrototypeOf(B);if(typeof B!="function"||B===m||T!==m)return T;var R=B.prototype,_=R&&Object.getPrototypeOf(R);if(_==null||_===Object.prototype)return T;var Z=_.constructor;return typeof Z!="function"||Z===B?T:Z}function Dt(){var B;!v(N)&&typeof o.Reflect<"u"&&!(N in o.Reflect)&&typeof o.Reflect.defineMetadata=="function"&&(B=Yr(o.Reflect));var T,R,_,Z=new k,Te={registerProvider:Ve,getProvider:H,setProvider:j};return Te;function Ve(W){if(!Object.isExtensible(Te))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case B===W:break;case v(T):T=W;break;case T===W:break;case v(R):R=W;break;case R===W:break;default:_===void 0&&(_=new w),_.add(W);break}}function oe(W,re){if(!v(T)){if(T.isProviderFor(W,re))return T;if(!v(R)){if(R.isProviderFor(W,re))return T;if(!v(_))for(var pe=Ie(_);;){var ge=Ct(pe);if(!ge)return;var je=at(ge);if(je.isProviderFor(W,re))return lt(pe),je}}}if(!v(B)&&B.isProviderFor(W,re))return B}function H(W,re){var pe=Z.get(W),ge;return v(pe)||(ge=pe.get(re)),v(ge)&&(ge=oe(W,re),v(ge)||(v(pe)&&(pe=new h,Z.set(W,pe)),pe.set(re,ge))),ge}function q(W){if(v(W))throw new TypeError;return T===W||R===W||!v(_)&&_.has(W)}function j(W,re,pe){if(!q(pe))throw new Error("Metadata provider not registered.");var ge=H(W,re);if(ge!==pe){if(!v(ge))return!1;var je=Z.get(W);v(je)&&(je=new h,Z.set(W,je)),je.set(re,pe)}return!0}}function Co(){var B;return!v(N)&&be(o.Reflect)&&Object.isExtensible(o.Reflect)&&(B=o.Reflect[N]),v(B)&&(B=Dt()),!v(N)&&be(o.Reflect)&&Object.isExtensible(o.Reflect)&&Object.defineProperty(o.Reflect,N,{enumerable:!1,configurable:!1,writable:!1,value:B}),B}function Gn(B){var T=new k,R={isProviderFor:function(q,j){var W=T.get(q);return v(W)?!1:W.has(j)},OrdinaryDefineOwnMetadata:Ve,OrdinaryHasOwnMetadata:Z,OrdinaryGetOwnMetadata:Te,OrdinaryOwnMetadataKeys:oe,OrdinaryDeleteMetadata:H};return $.registerProvider(R),R;function _(q,j,W){var re=T.get(q),pe=!1;if(v(re)){if(!W)return;re=new h,T.set(q,re),pe=!0}var ge=re.get(j);if(v(ge)){if(!W)return;if(ge=new h,re.set(j,ge),!B.setProvider(q,j,R))throw re.delete(j),pe&&T.delete(q),new Error("Wrong provider for target.")}return ge}function Z(q,j,W){var re=_(j,W,!1);return v(re)?!1:Qt(re.has(q))}function Te(q,j,W){var re=_(j,W,!1);if(!v(re))return re.get(q)}function Ve(q,j,W,re){var pe=_(W,re,!0);pe.set(q,j)}function oe(q,j){var W=[],re=_(q,j,!1);if(v(re))return W;for(var pe=re.keys(),ge=Ie(pe),je=0;;){var yi=Ct(ge);if(!yi)return W.length=je,W;var wi=at(yi);try{W[je]=wi}catch(Jr){try{lt(ge)}finally{throw Jr}}je++}}function H(q,j,W){var re=_(j,W,!1);if(v(re)||!re.delete(q))return!1;if(re.size===0){var pe=T.get(j);v(pe)||(pe.delete(W),pe.size===0&&T.delete(pe))}return!0}}function Yr(B){var T=B.defineMetadata,R=B.hasOwnMetadata,_=B.getOwnMetadata,Z=B.getOwnMetadataKeys,Te=B.deleteMetadata,Ve=new k,oe={isProviderFor:function(H,q){var j=Ve.get(H);return!v(j)&&j.has(q)?!0:Z(H,q).length?(v(j)&&(j=new w,Ve.set(H,j)),j.add(q),!0):!1},OrdinaryDefineOwnMetadata:T,OrdinaryHasOwnMetadata:R,OrdinaryGetOwnMetadata:_,OrdinaryOwnMetadataKeys:Z,OrdinaryDeleteMetadata:Te};return oe}function Ce(B,T,R){var _=$.getProvider(B,T);if(!v(_))return _;if(R){if($.setProvider(B,T,E))return E;throw new Error("Illegal state.")}}function Xr(){var B={},T=[],R=function(){function oe(H,q,j){this._index=0,this._keys=H,this._values=q,this._selector=j}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[a]=function(){return this},oe.prototype.next=function(){var H=this._index;if(H>=0&&H<this._keys.length){var q=this._selector(this._keys[H],this._values[H]);return H+1>=this._keys.length?(this._index=-1,this._keys=T,this._values=T):this._index++,{value:q,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(H){throw this._index>=0&&(this._index=-1,this._keys=T,this._values=T),H},oe.prototype.return=function(H){return this._index>=0&&(this._index=-1,this._keys=T,this._values=T),{value:H,done:!0}},oe}(),_=function(){function oe(){this._keys=[],this._values=[],this._cacheKey=B,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(H){return this._find(H,!1)>=0},oe.prototype.get=function(H){var q=this._find(H,!1);return q>=0?this._values[q]:void 0},oe.prototype.set=function(H,q){var j=this._find(H,!0);return this._values[j]=q,this},oe.prototype.delete=function(H){var q=this._find(H,!1);if(q>=0){for(var j=this._keys.length,W=q+1;W<j;W++)this._keys[W-1]=this._keys[W],this._values[W-1]=this._values[W];return this._keys.length--,this._values.length--,qe(H,this._cacheKey)&&(this._cacheKey=B,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=B,this._cacheIndex=-2},oe.prototype.keys=function(){return new R(this._keys,this._values,Z)},oe.prototype.values=function(){return new R(this._keys,this._values,Te)},oe.prototype.entries=function(){return new R(this._keys,this._values,Ve)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[a]=function(){return this.entries()},oe.prototype._find=function(H,q){if(!qe(this._cacheKey,H)){this._cacheIndex=-1;for(var j=0;j<this._keys.length;j++)if(qe(this._keys[j],H)){this._cacheIndex=j;break}}return this._cacheIndex<0&&q&&(this._cacheIndex=this._keys.length,this._keys.push(H),this._values.push(void 0)),this._cacheIndex},oe}();return _;function Z(oe,H){return oe}function Te(oe,H){return H}function Ve(oe,H){return[oe,H]}}function Zr(){var B=function(){function T(){this._map=new h}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(R){return this._map.has(R)},T.prototype.add=function(R){return this._map.set(R,R),this},T.prototype.delete=function(R){return this._map.delete(R)},T.prototype.clear=function(){this._map.clear()},T.prototype.keys=function(){return this._map.keys()},T.prototype.values=function(){return this._map.keys()},T.prototype.entries=function(){return this._map.entries()},T.prototype["@@iterator"]=function(){return this.keys()},T.prototype[a]=function(){return this.keys()},T}();return B}function gi(){var B=16,T=u.create(),R=_();return function(){function H(){this._key=_()}return H.prototype.has=function(q){var j=Z(q,!1);return j!==void 0?u.has(j,this._key):!1},H.prototype.get=function(q){var j=Z(q,!1);return j!==void 0?u.get(j,this._key):void 0},H.prototype.set=function(q,j){var W=Z(q,!0);return W[this._key]=j,this},H.prototype.delete=function(q){var j=Z(q,!1);return j!==void 0?delete j[this._key]:!1},H.prototype.clear=function(){this._key=_()},H}();function _(){var H;do H="@@WeakMap@@"+oe();while(u.has(T,H));return T[H]=!0,H}function Z(H,q){if(!i.call(H,R)){if(!q)return;Object.defineProperty(H,R,{value:u.create()})}return H[R]}function Te(H,q){for(var j=0;j<q;++j)H[j]=Math.random()*255|0;return H}function Ve(H){if(typeof Uint8Array=="function"){var q=new Uint8Array(H);return typeof crypto<"u"?crypto.getRandomValues(q):typeof msCrypto<"u"?msCrypto.getRandomValues(q):Te(q,H),q}return Te(new Array(H),H)}function oe(){var H=Ve(B);H[6]=H[6]&79|64,H[8]=H[8]&191|128;for(var q="",j=0;j<B;++j){var W=H[j];(j===4||j===6||j===8)&&(q+="-"),W<16&&(q+="0"),q+=W.toString(16).toLowerCase()}return q}}function ko(B){return B.__=void 0,delete B.__,B}})})(hs||(hs={}));const Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function Pc(n,t=0){return(Oe[n[t+0]]+Oe[n[t+1]]+Oe[n[t+2]]+Oe[n[t+3]]+"-"+Oe[n[t+4]]+Oe[n[t+5]]+"-"+Oe[n[t+6]]+Oe[n[t+7]]+"-"+Oe[n[t+8]]+Oe[n[t+9]]+"-"+Oe[n[t+10]]+Oe[n[t+11]]+Oe[n[t+12]]+Oe[n[t+13]]+Oe[n[t+14]]+Oe[n[t+15]]).toLowerCase()}const Mc=new Uint8Array(16);function Ic(){return crypto.getRandomValues(Mc)}function Zt(n,t,o){return crypto.randomUUID?crypto.randomUUID():Rc(n)}function Rc(n,t,o){var r;n=n||{};const i=n.random??((r=n.rng)==null?void 0:r.call(n))??Ic();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Pc(i)}class nt{static UUID(){return Zt()}static GUID(){const t=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}function Ac(n){var t=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var o=n.shift();n[0]=o+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var i=0;i<n.length;i++){var r=n[i];if(typeof r!="string")throw new TypeError("Url must be a string. Received "+r);r!==""&&(i>0&&(r=r.replace(/^[\/]+/,"")),i<n.length-1?r=r.replace(/[\/]+$/,""):r=r.replace(/[\/]+$/,"/"),t.push(r))}var s=t.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function $i(){var n;return typeof arguments[0]=="object"?n=arguments[0]:n=[].slice.call(arguments),Ac(n)}class ke{static Capitalize(t){return t?t[0].toUpperCase()+t.slice(1):""}static BuildSafeUrl(t,o,i){try{const r=new URL(t);return o&&(r.port=o.toString()),$i(r.toString(),i)}catch{throw new Error(`Invalid host URL: ${t}`)}}static ToCamelCase(t){const o=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return t.match(o).map((r,s)=>s===0?r.toLowerCase():ke.Capitalize(r.toLowerCase())).join("")}static ToKebabCase(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(t,o,i){return t.substring(t.indexOf(o)+2,t.lastIndexOf(i))}static Translit(t,o){const i={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return o&&/[а-яА-Я]/g.test(t)?t.replace(/[А-я/,.;'\][]/g,r=>{if(r===r.toLowerCase()){const a=Object.keys(i).find(c=>i[c]===r);return a||""}const s=Object.keys(i).find(a=>i[a]===r.toLowerCase());return s?s.toUpperCase():""}):t.replace(/[A-z/,.;'\][]/g,r=>r===r.toLowerCase()?i[r]:i[r.toLowerCase()].toUpperCase())}static RemoveEmoji(t){const o=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return t.replace(o,"")}static CanBeTranslited(t){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(t)}static StringsEquals(t,o){const i=t.toLowerCase().replaceAll(/\s/g,""),r=o.toLowerCase().replaceAll(/\s/g,""),s=ke.Translit(i),a=ke.Translit(r);return i.includes(r)||s.includes(r)||i.includes(a)}static SearchIn(t,o){return ke.StringsEquals(t,o)}static SearchInFields(t,o){let i=!1;for(let r=0;r<o.length;r++)if(ke.SearchIn(o[r],t)){i=!0;break}return i}static FormatToPercentage(t){return`${t}%`}static ApplyClassToSubStr(t,o,i){const r=i??"highlight-text",s=new RegExp(ke.GetVariants(o).join("|"),"gi");return t.replace(s,`<span class="${r}">$&</span>`)}static GetVariants(t){const o=ke.Translit(t);return[t,ke.Capitalize(t),t.toLowerCase(),t.toUpperCase(),o,ke.Capitalize(o),o.toLowerCase(),o.toUpperCase()]}static ContainsNum(t){return/\d/.test(t)}static JoinSnake(...t){return t.join("_")}static GetDynamicCountName(t,o){const i=[2,0,1,1,1,2];return t.length+" "+o[t.length%100>4&&t.length%100<20?2:i[t.length%10<5?t.length%10:5]]}static TrimText(t){return typeof t=="string"?t.trim():t}}const jt=class jt{static BuildClass(t,o){o&&Object.keys(o).forEach(i=>{const r=o[i];if(this.isPrimitive(r)){const s=t[i]instanceof Date||this.isDateProperty(t,i);r===""&&s?t[i]=void 0:s?t[i]=this.toValidDate(r):t[i]=r}else if(r!=null&&!Array.isArray(r))if(t[i]&&t[i].constructor)t[i]=new t[i].constructor(r);else{const s=Reflect.getMetadata(i,t);s&&(t[i]=new s[i](r))}if(Array.isArray(r)){if(r.length===0)return;const s=Reflect.getMetadata(i,t);r.length!==0&&!s&&(t[i]=r),s&&(t[i]=r.map(a=>new s[i](a)))}})}static isPrimitive(t){return t!==null&&typeof t<"u"&&t!==Object(t)}static isDateProperty(t,o){return(Reflect.getMetadata("class:dateKeys",t.constructor)||[]).includes(o)}static toValidDate(t){const o=t instanceof Date?t:new Date(t);return Number.isNaN(o.getTime())?void 0:o}static RemoveFromClassByIndex(t,o,i){jt.RemoveFromClass(t,o,i)}static RemoveFromClassById(t,o,i){if(!t)return;const r=o.findIndex(s=>s.id===t);if(!(r<0))return jt.RemoveFromClass(r,o,i),t}static RemoveFromClass(t,o,i){if(t<0)return;const r=o[t].id;r&&i&&i.push(r),o.splice(t,1)}static GetPropertyName(t){const o=new t;return new Proxy(o,{get(i,r){return r}})}static InitClassInstance(t,o){const i=t.constructor(o);return jt.BuildClass(i),i.id=nt.UUID(),i}static ExistsWithId(t,o){return t.some(i=>i.id===o)}static DeepMap(t){return o=>Array.isArray(o)?o.map(jt.DeepMap(t)):Object(o)===o?Object.fromEntries(Object.entries(o).map(([i,r])=>[i,jt.DeepMap(t)(r)])):t(o)}static DeepTrim(t){return this.DeepMap(ke.TrimText)(t)}};d(jt,"GetClassConstructor",t=>(o,i)=>{const r=Reflect.getMetadata(`property:${i}`,o)||{};r[i]=t,Reflect.defineMetadata(i,r,o)}),d(jt,"IsDate",(t,o)=>{const i=Reflect.getMetadata("class:dateKeys",t.constructor)||[];i.includes(o)||i.push(o),Reflect.defineMetadata("class:dateKeys",i,t.constructor)});let ee=jt,Xn=class sc{constructor(t){d(this,"id");d(this,"address");d(this,"description");d(this,"contactId");ee.BuildClass(this,t)}static Create(){const t=new sc;return t.id=nt.UUID(),t}};class Ti{static Setup(t="http://localhost",o="9000",i="api"){this.staticUrl=ke.BuildSafeUrl(t,o,i),this.staticUrl=$i(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}d(Ti,"staticUrl","");class $t{constructor(t){d(this,"name","");d(this,"url","");d(this,"src","");d(this,"raw");d(this,"blob");d(this,"file");d(this,"type","");d(this,"id");d(this,"originalName","");d(this,"fileSystemPath","");d(this,"itemId");d(this,"itemOneId");d(this,"description","");d(this,"order",0);ee.BuildClass(this,t)}getFileUrl(){return this.url?new URL(this.url,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Lt&&Lt.tagName.toUpperCase()==="SCRIPT"&&Lt.src||new URL("sprof.umd.cjs",document.baseURI).href):this.fileSystemPath?new URL(`${Ti.StaticUrl}/${this.fileSystemPath}`,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Lt&&Lt.tagName.toUpperCase()==="SCRIPT"&&Lt.src||new URL("sprof.umd.cjs",document.baseURI).href):""}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(t,o){const i=new $t;return i.id=o??nt.UUID(),i.originalName=t.name,i.file=t.blob,i.fileSystemPath=nt.UUID(),i}setFile(t){this.id||(this.id=nt.UUID()),this.originalName=t.name,this.file=t,this.fileSystemPath=nt.UUID(),this.url=t.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(t,o){if(t.target){let i="";return o&&(i=`@/assets/img/${o}`),new URL(i,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Lt&&Lt.tagName.toUpperCase()==="SCRIPT"&&Lt.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(t){const o=t.split(".");return o[o.length-1]}}class ps{constructor(t){d(this,"id");d(this,"name","");d(this,"surname","");d(this,"patronymic","");d(this,"isMale",!0);d(this,"dateBirth",new Date);d(this,"contactId");d(this,"slug","");d(this,"postIndex","");d(this,"address","");d(this,"editNameMode",!1);ee.BuildClass(this,t)}setEditNameMode(t){this.editNameMode=t}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(t){return t?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=ke.Capitalize(this.name),this.surname=ke.Capitalize(this.surname),this.patronymic=ke.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(t){this.surname=t.surname,this.name=t.name,this.patronymic=t.patronymic}}class cn{constructor(t){d(this,"id");d(this,"number");d(this,"description");d(this,"contactId");ee.BuildClass(this,t)}static Create(){const t=new cn;return t.id=nt.UUID(),t}}class Io{constructor(t){d(this,"id");d(this,"address");d(this,"description");ee.BuildClass(this,t)}}class Ro{constructor(t){d(this,"id");d(this,"login","");d(this,"email","");d(this,"password","");ee.BuildClass(this,t)}static Create(){const t=new Ro;return t.id=nt.UUID(),t}}class Pi{constructor(t){d(this,"id");d(this,"address");d(this,"description");ee.BuildClass(this,t)}}let zc=(Wt=class{},d(Wt,"Phone",cn),d(Wt,"FileInfo",$t),d(Wt,"Website",Pi),d(Wt,"Email",Xn),d(Wt,"Human",ps),d(Wt,"PostAddress",Io),d(Wt,"UserAccount",Ro),Wt);class Tt{static Shuffle(t){for(let o=t.length-1;o>0;o--){const i=Math.floor(Math.random()*(o+1));[t[o],t[i]]=[t[i],t[o]]}}static GenerateNumsRange(t,o,i=1){return Array.from({length:(o-t)/i+1},(r,s)=>t+s*i)}static GetLast(t){return t[t.length-1]}static GetFirst(t){return t[0]}static GetRandEL(t){return t[Math.floor(Math.random()*t.length)]}static Sort(t){t.forEach((o,i)=>o.order=i)}static Refill(t,o){t.splice(0,t.length),t.push(...o)}static Eq(t,o){return t.length===o.length&&(t==null?void 0:t.every((i,r)=>t[r]==o[r]))}static SwipeById(t,o,i){const r=t.findIndex(a=>o.id===a.id),s=t.findIndex(a=>i.id===a.id);r<0||s<0||([t[r],t[s]]=[t[s],t[r]])}static Swap(t,o,i){if(o<0||o>=t.length||i<0||i>=t.length)return;const r=t[o];t[o]=t[i],t[i]=r}static MoveUp(t,o){t[o].order=o-1,t[o-1]&&(t[o-1].order=o),[t[o],t[o-1]]=[t[o-1],t[o]]}static MoveDown(t,o){t[o].order=o+1,t[o+1]&&(t[o+1].order=o),[t[o],t[o+1]]=[t[o+1],t[o]]}}var Ae=(n=>(n.Date="date",n.String="string",n.Boolean="boolean",n.Number="number",n.Set="set",n.Join="join",n.ArrayString="arrayString",n.ArrayNumber="arrayNumber",n))(Ae||{}),We=(n=>(n.Eq="=",n.Ne="!=",n.Gt=">",n.Lt="<",n.Btw="between",n.In="in",n.Like="like",n.Null="is null",n.NotNull="is not null",n))(We||{}),Dc=Object.defineProperty,Fc=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Dc(t,o,r),r};const gs=class Eo{constructor(t){d(this,"id");d(this,"model","");d(this,"label","");d(this,"col","");d(this,"operator",We.Eq);d(this,"date1");d(this,"date2");d(this,"value1","");d(this,"boolean",!1);d(this,"number",0);d(this,"type",Ae.String);d(this,"set",[]);d(this,"isSet",!1);d(this,"joinTable","");d(this,"joinTableModel","");d(this,"joinTableFk","");d(this,"joinTablePk","");d(this,"joinTableId","");d(this,"joinTableIdCol","");ee.BuildClass(this,t)}eq(t){if(!t)return!1;if(this.type===Ae.Join){const o=t.model===this.model&&t.operator===this.operator&&this.joinTableModel===t.joinTableModel;return t.operator===We.In?o&&Tt.Eq(this.set,t.set):o}return t.model===this.model&&t.col===this.col&&t.operator===this.operator}valueEq(t){return!this||!t||!this.eq(t)?!1:this.type===Ae.Boolean?this.boolean===(t==null?void 0:t.boolean):this.type===Ae.String?this.value1===(t==null?void 0:t.value1):this.type===Ae.Join&&this.set.length?Tt.Eq(this.set,t.set):!1}toUrlQuery(){const t=this.type?`"type":"${this.type}"`:"",o=this.model?`"model":"${this.model}"`:"",i=this.col?`"col":"${this.col}"`:"",r=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===Ae.Boolean?`"boolean":${this.boolean}`:"",c=this.type===Ae.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",l=this.type===Ae.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",f=this.type===Ae.Number?`"number":${this.number}`:"",u=this.type===Ae.Set||this.operator===We.In?`"set":${JSON.stringify(this.set)}`:"",m=this.type===Ae.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[t,o,i,r,s,a,c,l,f,u,m].filter(h=>h!=="").toString()}isUnaryFilter(){return this.operator===We.Eq||this.operator===We.Gt||this.operator===We.Lt}isBetweenFilter(){return this.operator===We.Btw}isSetFilter(){return this.operator===We.In}static Create(t,o,i){const r=new Eo;return r.model=t.GetClassName(),r.col=o??"",r.type=i,r.type===Ae.Number&&(r.value1="0"),r.type===Ae.String&&(r.value1=""),r.type===Ae.Boolean&&(r.value1="false",r.operator=We.Eq),r}static CreateFilterModelWithJoin(t,o,i,r,s,a,c,l){const f=new Eo;return f.id=Zt(),f.joinTable=i,f.joinTablePk=r,f.joinTableFk=s,f.col=o,f.type=a,c&&(f.joinTableId=c),l&&(f.joinTableIdCol=l),f}static CreateFilterModelWithJoinV2(t,o,i,r,s,a,c){const l=new Eo;return l.model=t,l.joinTableModel=i,l.joinTablePk=r,l.joinTableFk=s,l.col=o,l.type=Ae.Join,a&&(l.joinTableId=a),c&&(l.joinTableIdCol=c),l}static OnlyIfSecondModelExists(t,o){const i=new Eo;return i.id=Zt(),i.model=ke.ToCamelCase(t.GetClassName()),i.joinTableModel=ke.ToCamelCase(o.GetClassName()),i.type=Ae.Join,i}addToSet(...t){t.forEach(o=>{if(this.set.indexOf(o)===-1){this.set.push(o);return}this.set=this.set.filter(i=>i!==o)})}pushToSet(...t){t.forEach(o=>{this.set.indexOf(o)===-1&&this.set.push(o)})}replaceSet(...t){this.set=t}setBoolean(t){this.boolean=t}toRef(){return e.ref(this)}setDate1(t){this.date1=t}setDate2(t){this.date2=t}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(t,o){if(!t&&!o){this.dropDates();return}if(!o){this.setDate1(t),this.operator=We.Eq;return}this.setDate2(o),this.operator=We.Btw}};Fc([ee.GetClassConstructor(String)],gs.prototype,"set");let Mi=gs;class Oc{constructor(){d(this,"operation",We.Lt);d(this,"column","");d(this,"value");d(this,"initial",!0);d(this,"tableName","");d(this,"version","");d(this,"model","")}toUrlQuery(){const t=this.operation?`"operation":"${this.operation}"`:"",o=this.column?`"column":"${this.column}"`:"",i=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,r=i?`"value":"${i}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[t,o,r,s,a].filter(c=>c!=="").toString()}}class Ao{constructor(t){d(this,"offset",0);d(this,"rowsPerPage",25);d(this,"rowsNumber",0);d(this,"cursor",new Oc);d(this,"cursorMode",!1);d(this,"append",!1);d(this,"allLoaded",!1);d(this,"version","");ee.BuildClass(this,t)}setLoadMore(t,o,i){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=We.Gt,this.cursor.column=o,this.cursor.tableName=i,this.cursorMode=!0}setLoadMoreV2(t,o,i){this.cursor.value=t,this.cursor.initial=!1,this.cursor.operation=We.Gt,this.cursor.column=o,this.cursor.model=i,this.cursorMode=!0,this.version="v2"}setOffset(t){this.offset=t}toUrlQuery(){const t=`"offset":${this.offset}`,o=`"limit":${this.limit}`,i=`"cursorMode":${this.cursorMode}`,r=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[t,o,i,r,s,a].toString()}setAllLoaded(t){this.allLoaded=!(t>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.rowsPerPage+1}drop(){this.offset=0,this.rowsPerPage=25,ee.BuildClass(this)}}var mt=(n=>(n.Asc="asc",n.Desc="desc",n))(mt||{});class zo{constructor(t){d(this,"model","");d(this,"col","");d(this,"order");d(this,"label","");d(this,"default",!1);d(this,"selected",!1);ee.BuildClass(this,t)}static Create(t,o,i=mt.Asc,r,s){const a=new zo;return a.model=t.GetClassName(),a.col=o??"",a.order=i??mt.Asc,a.label=r??"",a.default=s??!1,a}isAsc(){return this.order===mt.Asc}isDesc(){return this.order===mt.Desc}eq(t){return t.model===this.model&&t.col===this.col&&t.order===this.order}toUrlQuery(){const t=this.model?`"model":"${this.model}"`:"",o=this.col?`"col":"${this.col}"`:"",i=this.order?`"order":"${this.order}"`:"";return[t,o,i].toString()}asc(){this.order=mt.Asc}desc(){this.order=mt.Desc}}class Do{constructor(){d(this,"model","");d(this,"cols",[]);d(this,"models",[])}static Create(t,o){const i=new Do;return i.model=t.GetClassName(),i.cols=o,i}}var Lc=Object.defineProperty,Fo=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Lc(t,o,r),r};const Zn=(st=class{constructor(t){d(this,"id");d(this,"f",[]);d(this,"s",[]);d(this,"p",new Ao);d(this,"t",new Do);ee.BuildClass(this,t)}static Get(){return this.instance||(this.instance=st.create()),this.instance}static create(){return e.reactive(new st)}createFrom(t){const o=new st(JSON.parse(t));this.f=o.f}clearForHTTP(){const t=new st(this);return t.f=this.f.map(o=>st.EmptyEntiries(o)),t.s=this.s.map(o=>st.EmptyEntiries(o)),t.p=st.EmptyEntiries(this.p),t.t=st.EmptyEntiries(this.t),t}static EmptyEntiries(t){if(!t)return;const i=Object.entries(t).filter(([r,s])=>r!=="label"&&s!==""&&s!==null);return Object.fromEntries(i)}findFilterModel(t){return this.f.find(o=>t.id===o.id)}getFirstSortModel(){return Tt.GetLast(this.s)}setSortModel(t){t&&(this.s[0]=t)}setS(t){this.s[0]=t}setF(t){this.f.push(t)}replaceF(t,o){this.removeF(o),t&&this.setF(t)}removeF(t){const o=this.f.findIndex(i=>i.eq(t));ee.RemoveFromClassByIndex(o,this.f)}reset(){this.f=[],this.s=[],this.p=new Ao}resetF(){this.f=[]}},d(st,"instance"),st);Fo([ee.GetClassConstructor(Mi)],Zn.prototype,"f"),Fo([ee.GetClassConstructor(zo)],Zn.prototype,"s"),Fo([ee.GetClassConstructor(Ao)],Zn.prototype,"p"),Fo([ee.GetClassConstructor(Do)],Zn.prototype,"t");let ht=Zn,_c=(So=class{},d(So,"SortModel",zo),d(So,"FilterModel",Mi),d(So,"FTSP",ht),So);function ys(n,t){return function(){return n.apply(t,arguments)}}const{toString:Hc}=Object.prototype,{getPrototypeOf:Nn}=Object,{iterator:Jn,toStringTag:ws}=Symbol,Oo=(({hasOwnProperty:n})=>(t,o)=>n.call(t,o))(Object.prototype),Kn=(n,t)=>{let o=n;const i=[];for(;o!=null&&o!==Object.prototype;){if(i.indexOf(o)!==-1)return!1;if(i.push(o),Oo(o,t))return!0;o=Nn(o)}return!1},Uc=(n,t)=>n!=null&&Kn(n,t)?n[t]:void 0,Ii=(n=>t=>{const o=Hc.call(t);return n[o]||(n[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),kt=n=>(n=n.toLowerCase(),t=>Ii(t)===n),Lo=n=>t=>typeof t===n,{isArray:dn}=Array,$n=Lo("undefined");function Tn(n){return n!==null&&!$n(n)&&n.constructor!==null&&!$n(n.constructor)&&ot(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const bs=kt("ArrayBuffer");function vc(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&bs(n.buffer),t}const qc=Lo("string"),ot=Lo("function"),Ss=Lo("number"),Pn=n=>n!==null&&typeof n=="object",jc=n=>n===!0||n===!1,_o=n=>{if(!Pn(n))return!1;const t=Nn(n);return(t===null||t===Object.prototype||Nn(t)===null)&&!Kn(n,ws)&&!Kn(n,Jn)},Wc=n=>{if(!Pn(n)||Tn(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Gc=kt("Date"),Qc=kt("File"),Yc=n=>!!(n&&typeof n.uri<"u"),Xc=n=>n&&typeof n.getParts<"u",Zc=kt("Blob"),Jc=kt("FileList"),Kc=n=>Pn(n)&&ot(n.pipe);function ed(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Cs=ed(),ks=typeof Cs.FormData<"u"?Cs.FormData:void 0,td=n=>{if(!n)return!1;if(ks&&n instanceof ks)return!0;const t=Nn(n);if(!t||t===Object.prototype||!ot(n.append))return!1;const o=Ii(n);return o==="formdata"||o==="object"&&ot(n.toString)&&n.toString()==="[object FormData]"},nd=kt("URLSearchParams"),[od,id,rd,sd]=["ReadableStream","Request","Response","Headers"].map(kt),ad=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eo(n,t,{allOwnKeys:o=!1}={}){if(n===null||typeof n>"u")return;let i,r;if(typeof n!="object"&&(n=[n]),dn(n))for(i=0,r=n.length;i<r;i++)t.call(null,n[i],i,n);else{if(Tn(n))return;const s=o?Object.getOwnPropertyNames(n):Object.keys(n),a=s.length;let c;for(i=0;i<a;i++)c=s[i],t.call(null,n[c],c,n)}}function xs(n,t){if(Tn(n))return null;t=t.toLowerCase();const o=Object.keys(n);let i=o.length,r;for(;i-- >0;)if(r=o[i],t===r.toLowerCase())return r;return null}const fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Es=n=>!$n(n)&&n!==fn;function Ri(...n){const{caseless:t,skipUndefined:o}=Es(this)&&this||{},i={},r=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&xs(i,a)||a,l=Oo(i,c)?i[c]:void 0;_o(l)&&_o(s)?i[c]=Ri(l,s):_o(s)?i[c]=Ri({},s):dn(s)?i[c]=s.slice():(!o||!$n(s))&&(i[c]=s)};for(let s=0,a=n.length;s<a;s++){const c=n[s];if(!c||Tn(c)||(eo(c,r),typeof c!="object"||dn(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let f=0;f<l.length;f++){const u=l[f];bd.call(c,u)&&r(c[u],u)}}return i}const ld=(n,t,o,{allOwnKeys:i}={})=>(eo(t,(r,s)=>{o&&ot(r)?Object.defineProperty(n,s,{__proto__:null,value:ys(r,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{__proto__:null,value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),n),cd=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),dd=(n,t,o,i)=>{n.prototype=Object.create(t.prototype,i),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(n.prototype,o)},fd=(n,t,o,i)=>{let r,s,a;const c={};if(t=t||{},n==null)return t;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)a=r[s],(!i||i(a,n,t))&&!c[a]&&(t[a]=n[a],c[a]=!0);n=o!==!1&&Nn(n)}while(n&&(!o||o(n,t))&&n!==Object.prototype);return t},ud=(n,t,o)=>{n=String(n),(o===void 0||o>n.length)&&(o=n.length),o-=t.length;const i=n.indexOf(t,o);return i!==-1&&i===o},md=n=>{if(!n)return null;if(dn(n))return n;let t=n.length;if(!Ss(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=n[t];return o},hd=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Nn(Uint8Array)),pd=(n,t)=>{const i=(n&&n[Jn]).call(n);let r;for(;(r=i.next())&&!r.done;){const s=r.value;t.call(n,s[0],s[1])}},gd=(n,t)=>{let o;const i=[];for(;(o=n.exec(t))!==null;)i.push(o);return i},yd=kt("HTMLFormElement"),wd=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,i,r){return i.toUpperCase()+r}),{propertyIsEnumerable:bd}=Object.prototype,Sd=kt("RegExp"),Bs=(n,t)=>{const o=Object.getOwnPropertyDescriptors(n),i={};eo(o,(r,s)=>{let a;(a=t(r,s,n))!==!1&&(i[s]=a||r)}),Object.defineProperties(n,i)},Cd=n=>{Bs(n,(t,o)=>{if(ot(n)&&["arguments","caller","callee"].includes(o))return!1;const i=n[o];if(ot(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kd=(n,t)=>{const o={},i=r=>{r.forEach(s=>{o[s]=!0})};return dn(n)?i(n):i(String(n).split(t)),o},xd=()=>{},Ed=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function Bd(n){return!!(n&&ot(n.append)&&n[ws]==="FormData"&&n[Jn])}const Vd=n=>{const t=new WeakSet,o=i=>{if(Pn(i)){if(t.has(i))return;if(Tn(i))return i;if(!("toJSON"in i)){t.add(i);const r=dn(i)?[]:{};return eo(i,(s,a)=>{const c=o(s);!$n(c)&&(r[a]=c)}),t.delete(i),r}}return i};return o(n)},Nd=kt("AsyncFunction"),$d=n=>n&&(Pn(n)||ot(n))&&ot(n.then)&&ot(n.catch),Vs=((n,t)=>n?setImmediate:t?((o,i)=>(fn.addEventListener("message",({source:r,data:s})=>{r===fn&&s===o&&i.length&&i.shift()()},!1),r=>{i.push(r),fn.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",ot(fn.postMessage)),Td=typeof queueMicrotask<"u"?queueMicrotask.bind(fn):typeof process<"u"&&process.nextTick||Vs,Ns=n=>n!=null&&ot(n[Jn]),x={isArray:dn,isArrayBuffer:bs,isBuffer:Tn,isFormData:td,isArrayBufferView:vc,isString:qc,isNumber:Ss,isBoolean:jc,isObject:Pn,isPlainObject:_o,isEmptyObject:Wc,isReadableStream:od,isRequest:id,isResponse:rd,isHeaders:sd,isUndefined:$n,isDate:Gc,isFile:Qc,isReactNativeBlob:Yc,isReactNative:Xc,isBlob:Zc,isRegExp:Sd,isFunction:ot,isStream:Kc,isURLSearchParams:nd,isTypedArray:hd,isFileList:Jc,forEach:eo,merge:Ri,extend:ld,trim:ad,stripBOM:cd,inherits:dd,toFlatObject:fd,kindOf:Ii,kindOfTest:kt,endsWith:ud,toArray:md,forEachEntry:pd,matchAll:gd,isHTMLForm:yd,hasOwnProperty:Oo,hasOwnProp:Oo,hasOwnInPrototypeChain:Kn,getSafeProp:Uc,reduceDescriptors:Bs,freezeMethods:Cd,toObjectSet:kd,toCamelCase:wd,noop:xd,toFiniteNumber:Ed,findKey:xs,global:fn,isContextDefined:Es,isSpecCompliantForm:Bd,toJSONObject:Vd,isAsyncFn:Nd,isThenable:$d,setImmediate:Vs,asap:Td,isIterable:Ns,isSafeIterable:n=>n!=null&&Kn(n,Jn)&&Ns(n)},Pd=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Md=n=>{const t={};let o,i,r;return n&&n.split(`
|
|
15
|
-
`).forEach(function(a){r=a.indexOf(":"),o=a.substring(0,r).trim().toLowerCase(),i=a.substring(r+1).trim(),!(!o||t[o]&&Pd[o])&&(o==="set-cookie"?t[o]?t[o].push(i):t[o]=[i]:t[o]=t[o]?t[o]+", "+i:i)}),t};function Id(n){let t=0,o=n.length;for(;t<o;){const i=n.charCodeAt(t);if(i!==9&&i!==32)break;t+=1}for(;o>t;){const i=n.charCodeAt(o-1);if(i!==9&&i!==32)break;o-=1}return t===0&&o===n.length?n:n.slice(t,o)}const Rd=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ad=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ai(n,t){return x.isArray(n)?n.map(o=>Ai(o,t)):Id(String(n).replace(t,""))}const zd=n=>Ai(n,Rd),Dd=n=>Ai(n,Ad);function $s(n){const t=Object.create(null);return x.forEach(n.toJSON(),(o,i)=>{t[i]=Dd(o)}),t}const Ts=Symbol("internals");function to(n){return n&&String(n).trim().toLowerCase()}function Ho(n){return n===!1||n==null?n:x.isArray(n)?n.map(Ho):zd(String(n))}function Fd(n){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=o.exec(n);)t[i[1]]=i[2];return t}const Od=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function zi(n,t,o,i,r){if(x.isFunction(i))return i.call(this,t,o);if(r&&(t=o),!!x.isString(t)){if(x.isString(i))return t.indexOf(i)!==-1;if(x.isRegExp(i))return i.test(t)}}function Ld(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,i)=>o.toUpperCase()+i)}function _d(n,t){const o=x.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+o,{__proto__:null,value:function(r,s,a){return this[i].call(this,t,r,s,a)},configurable:!0})})}let Ge=class{constructor(t){t&&this.set(t)}set(t,o,i){const r=this;function s(c,l,f){const u=to(l);if(!u)return;const m=x.findKey(r,u);(!m||r[m]===void 0||f===!0||f===void 0&&r[m]!==!1)&&(r[m||l]=Ho(c))}const a=(c,l)=>x.forEach(c,(f,u)=>s(f,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)a(t,o);else if(x.isString(t)&&(t=t.trim())&&!Od(t))a(Md(t),o);else if(x.isObject(t)&&x.isSafeIterable(t)){let c=Object.create(null),l,f;for(const u of t){if(!x.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],x.hasOwnProp(c,f)?(l=c[f],c[f]=x.isArray(l)?[...l,u[1]]:[l,u[1]]):c[f]=u[1]}a(c,o)}else t!=null&&s(o,t,i);return this}get(t,o){if(t=to(t),t){const i=x.findKey(this,t);if(i){const r=this[i];if(!o)return r;if(o===!0)return Fd(r);if(x.isFunction(o))return o.call(this,r,i);if(x.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=to(t),t){const i=x.findKey(this,t);return!!(i&&this[i]!==void 0&&(!o||zi(this,this[i],i,o)))}return!1}delete(t,o){const i=this;let r=!1;function s(a){if(a=to(a),a){const c=x.findKey(i,a);c&&(!o||zi(i,i[c],c,o))&&(delete i[c],r=!0)}}return x.isArray(t)?t.forEach(s):s(t),r}clear(t){const o=Object.keys(this);let i=o.length,r=!1;for(;i--;){const s=o[i];(!t||zi(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const o=this,i={};return x.forEach(this,(r,s)=>{const a=x.findKey(i,s);if(a){o[a]=Ho(r),delete o[s];return}const c=t?Ld(s):String(s).trim();c!==s&&delete o[s],o[c]=Ho(r),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return x.forEach(this,(i,r)=>{i!=null&&i!==!1&&(o[r]=t&&x.isArray(i)?i.join(", "):i)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(`
|
|
16
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const i=new this(t);return o.forEach(r=>i.set(r)),i}static accessor(t){const i=(this[Ts]=this[Ts]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=to(a);i[c]||(_d(r,a),i[c]=!0)}return x.isArray(t)?t.forEach(s):s(t),this}};Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),x.reduceDescriptors(Ge.prototype,({value:n},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[o]=i}}}),x.freezeMethods(Ge);const Hd="[REDACTED ****]";function Ud(n){if(x.hasOwnProp(n,"toJSON"))return!0;let t=Object.getPrototypeOf(n);for(;t&&t!==Object.prototype;){if(x.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function vd(n,t){const o=new Set(t.map(s=>String(s).toLowerCase())),i=[],r=s=>{if(s===null||typeof s!="object"||x.isBuffer(s))return s;if(i.indexOf(s)!==-1)return;s instanceof Ge&&(s=s.toJSON()),i.push(s);let a;if(x.isArray(s))a=[],s.forEach((c,l)=>{const f=r(c);x.isUndefined(f)||(a[l]=f)});else{if(!x.isPlainObject(s)&&Ud(s))return i.pop(),s;a=Object.create(null);for(const[c,l]of Object.entries(s)){const f=o.has(c.toLowerCase())?Hd:r(l);x.isUndefined(f)||(a[c]=f)}}return i.pop(),a};return r(n)}let U=class ac extends Error{static from(t,o,i,r,s,a){const c=new ac(t.message,o||t.code,i,r,s);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,o,i,r,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,o&&(this.code=o),i&&(this.config=i),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,o=t&&x.hasOwnProp(t,"redact")?t.redact:void 0,i=x.isArray(o)&&o.length>0?vd(t,o):x.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}};U.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",U.ERR_BAD_OPTION="ERR_BAD_OPTION",U.ECONNABORTED="ECONNABORTED",U.ETIMEDOUT="ETIMEDOUT",U.ECONNREFUSED="ECONNREFUSED",U.ERR_NETWORK="ERR_NETWORK",U.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",U.ERR_DEPRECATED="ERR_DEPRECATED",U.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",U.ERR_BAD_REQUEST="ERR_BAD_REQUEST",U.ERR_CANCELED="ERR_CANCELED",U.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",U.ERR_INVALID_URL="ERR_INVALID_URL",U.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const qd=null,Ps=100;function Di(n){return x.isPlainObject(n)||x.isArray(n)}function Ms(n){return x.endsWith(n,"[]")?n.slice(0,-2):n}function Fi(n,t,o){return n?n.concat(t).map(function(r,s){return r=Ms(r),!o&&s?"["+r+"]":r}).join(o?".":""):t}function jd(n){return x.isArray(n)&&!n.some(Di)}const Wd=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Uo(n,t,o){if(!x.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,o=x.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,b){return!x.isUndefined(b[M])});const i=o.metaTokens,r=o.visitor||k,s=o.dots,a=o.indexes,c=o.Blob||typeof Blob<"u"&&Blob,l=o.maxDepth===void 0?Ps:o.maxDepth,f=c&&x.isSpecCompliantForm(t),u=[];if(!x.isFunction(r))throw new TypeError("visitor must be a function");function m(E){if(E===null)return"";if(x.isDate(E))return E.toISOString();if(x.isBoolean(E))return E.toString();if(!f&&x.isBlob(E))throw new U("Blob is not supported. Use a Buffer instead.");if(x.isArrayBuffer(E)||x.isTypedArray(E)){if(f&&typeof c=="function")return new c([E]);if(typeof Buffer<"u")return Buffer.from(E);throw new U("Blob is not supported. Use a Buffer instead.",U.ERR_NOT_SUPPORT)}return E}function h(E){if(E>l)throw new U("Object is too deeply nested ("+E+" levels). Max depth: "+l,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function w(E,M){if(l===1/0)return JSON.stringify(E);const b=[];return JSON.stringify(E,function(y,I){if(!x.isObject(I))return I;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(I),h(M+b.length-1),I})}function k(E,M,b){let V=E;if(x.isReactNative(t)&&x.isReactNativeBlob(E))return t.append(Fi(b,M,s),m(E)),!1;if(E&&!b&&typeof E=="object"){if(x.endsWith(M,"{}"))M=i?M:M.slice(0,-2),E=w(E,1);else if(x.isArray(E)&&jd(E)||(x.isFileList(E)||x.endsWith(M,"[]"))&&(V=x.toArray(E)))return M=Ms(M),V.forEach(function(I,D){!(x.isUndefined(I)||I===null)&&t.append(a===!0?Fi([M],D,s):a===null?M:M+"[]",m(I))}),!1}return Di(E)?!0:(t.append(Fi(b,M,s),m(E)),!1)}const N=Object.assign(Wd,{defaultVisitor:k,convertValue:m,isVisitable:Di});function $(E,M,b=0){if(!x.isUndefined(E)){if(h(b),u.indexOf(E)!==-1)throw new Error("Circular reference detected in "+M.join("."));u.push(E),x.forEach(E,function(y,I){(!(x.isUndefined(y)||y===null)&&r.call(t,y,x.isString(I)?I.trim():I,M,N))===!0&&$(y,M?M.concat(I):[I],b+1)}),u.pop()}}if(!x.isObject(n))throw new TypeError("data must be an object");return $(n),t}function Is(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(i){return t[i]})}function Oi(n,t){this._pairs=[],n&&Uo(n,this,t)}const Rs=Oi.prototype;Rs.append=function(t,o){this._pairs.push([t,o])},Rs.toString=function(t){const o=t?i=>t.call(this,i,Is):Is;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};function Gd(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function As(n,t,o){if(!t)return n;n=n||"";const i=x.isFunction(o)?{serialize:o}:o,r=x.getSafeProp(i,"encode")||Gd,s=x.getSafeProp(i,"serialize");let a;if(s?a=s(t,i):a=x.isURLSearchParams(t)?t.toString():new Oi(t,i).toString(r),a){const c=n.indexOf("#");c!==-1&&(n=n.slice(0,c)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class zs{constructor(){this.handlers=[]}use(t,o,i){return this.handlers.push({fulfilled:t,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Li={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Qd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_i=typeof window<"u"&&typeof document<"u",Hi=typeof navigator=="object"&&navigator||void 0,Yd=_i&&(!Hi||["ReactNative","NativeScript","NS"].indexOf(Hi.product)<0),Xd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zd=_i&&window.location.href||"http://localhost",Le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_i,hasStandardBrowserEnv:Yd,hasStandardBrowserWebWorkerEnv:Xd,navigator:Hi,origin:Zd},Symbol.toStringTag,{value:"Module"})),...Qd};function Jd(n,t){return Uo(n,new Le.classes.URLSearchParams,{visitor:function(o,i,r,s){return Le.isNode&&x.isBuffer(o)?(this.append(i,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const Ds=Ps;function Fs(n){if(n>Ds)throw new U("FormData field is too deeply nested ("+n+" levels). Max depth: "+Ds,U.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Kd(n){const t=[],o=/\w+|\[(\w*)]/g;let i;for(;(i=o.exec(n))!==null;)Fs(t.length),t.push(i[0]==="[]"?"":i[1]||i[0]);return t}function ef(n){const t={},o=Object.keys(n);let i;const r=o.length;let s;for(i=0;i<r;i++)s=o[i],t[s]=n[s];return t}function Os(n){function t(o,i,r,s){Fs(s);let a=o[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=o.length;return a=!a&&x.isArray(r)?r.length:a,l?(x.hasOwnProp(r,a)?r[a]=x.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i,!c):((!x.hasOwnProp(r,a)||!x.isObject(r[a]))&&(r[a]=[]),t(o,i,r[a],s)&&x.isArray(r[a])&&(r[a]=ef(r[a])),!c)}if(x.isFormData(n)&&x.isFunction(n.entries)){const o={};return x.forEachEntry(n,(i,r)=>{t(Kd(i),r,o,0)}),o}return null}const Mn=(n,t)=>n!=null&&x.hasOwnProp(n,t)?n[t]:void 0;function tf(n,t,o){if(x.isString(n))try{return(t||JSON.parse)(n),x.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(o||JSON.stringify)(n)}const no={transitional:Li,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const i=o.getContentType()||"",r=i.indexOf("application/json")>-1,s=x.isObject(t);if(s&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return r?JSON.stringify(Os(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){const l=Mn(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return Jd(t,l).toString();if((c=x.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=Mn(this,"env"),u=f&&f.FormData;return Uo(c?{"files[]":t}:t,u&&new u,l)}}return s||r?(o.setContentType("application/json",!1),tf(t)):t}],transformResponse:[function(t){const o=Mn(this,"transitional")||no.transitional,i=o&&o.forcedJSONParsing,r=Mn(this,"responseType"),s=r==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(i&&!r||s)){const c=!(o&&o.silentJSONParsing)&&s;try{return JSON.parse(t,Mn(this,"parseReviver"))}catch(l){if(c)throw l.name==="SyntaxError"?U.from(l,U.ERR_BAD_RESPONSE,this,null,Mn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch","query"],n=>{no.headers[n]={}});function Ui(n,t){const o=this||no,i=t||o,r=Ge.from(i.headers);let s=i.data;return x.forEach(n,function(c){s=c.call(o,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function Ls(n){return!!(n&&n.__CANCEL__)}let oo=class extends U{constructor(t,o,i){super(t??"canceled",U.ERR_CANCELED,o,i),this.name="CanceledError",this.__CANCEL__=!0}};function _s(n,t,o){const i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):t(new U("Request failed with status code "+o.status,o.status>=400&&o.status<500?U.ERR_BAD_REQUEST:U.ERR_BAD_RESPONSE,o.config,o.request,o))}function nf(n){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return t&&t[1]||""}function of(n,t){n=n||10;const o=new Array(n),i=new Array(n);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=i[s];a||(a=f),o[r]=l,i[r]=f;let m=s,h=0;for(;m!==r;)h+=o[m++],m=m%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),f-a<t)return;const w=u&&f-u;return w?Math.round(h*1e3/w):void 0}}function rf(n,t){let o=0,i=1e3/t,r,s;const a=(f,u=Date.now())=>{o=u,r=null,s&&(clearTimeout(s),s=null),n(...f)};return[(...f)=>{const u=Date.now(),m=u-o;m>=i?a(f,u):(r=f,s||(s=setTimeout(()=>{s=null,a(r)},i-m)))},()=>r&&a(r)]}const vo=(n,t,o=3)=>{let i=0;const r=of(50,250);return rf(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=c!=null?Math.min(a,c):a,f=Math.max(0,l-i),u=r(f);i=Math.max(i,l);const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c?(c-l)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};n(m)},o)},Hs=(n,t)=>{const o=n!=null;return[i=>t[0]({lengthComputable:o,total:n,loaded:i}),t[1]]},Us=n=>(...t)=>x.asap(()=>n(...t)),sf=Le.hasStandardBrowserEnv?((n,t)=>o=>(o=new URL(o,Le.origin),n.protocol===o.protocol&&n.host===o.host&&(t||n.port===o.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,af=Le.hasStandardBrowserEnv?{write(n,t,o,i,r,s,a){if(typeof document>"u")return;const c=[`${n}=${encodeURIComponent(t)}`];x.isNumber(o)&&c.push(`expires=${new Date(o).toUTCString()}`),x.isString(i)&&c.push(`path=${i}`),x.isString(r)&&c.push(`domain=${r}`),s===!0&&c.push("secure"),x.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let o=0;o<t.length;o++){const i=t[o].replace(/^\s+/,""),r=i.indexOf("=");if(r!==-1&&i.slice(0,r)===n)try{return decodeURIComponent(i.slice(r+1))}catch{return i.slice(r+1)}}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function lf(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function cf(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}const df=/^https?:(?!\/\/)/i,ff=/[\t\n\r]/g;function uf(n){let t=0;for(;t<n.length&&n.charCodeAt(t)<=32;)t++;return n.slice(t)}function mf(n){return uf(n).replace(ff,"")}function vs(n,t){if(typeof n=="string"&&df.test(mf(n)))throw new U('Invalid URL: missing "//" after protocol',U.ERR_INVALID_URL,t)}function qs(n,t,o,i){vs(t,i);let r=!lf(t);return n&&(r||o===!1)?(vs(n,i),cf(n,t)):t}const js=n=>n instanceof Ge?{...n}:n;function un(n,t){n=n||{},t=t||{};const o=Object.create(null);Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function i(u,m,h,w){return x.isPlainObject(u)&&x.isPlainObject(m)?x.merge.call({caseless:w},u,m):x.isPlainObject(m)?x.merge({},m):x.isArray(m)?m.slice():m}function r(u,m,h,w){if(x.isUndefined(m)){if(!x.isUndefined(u))return i(void 0,u,h,w)}else return i(u,m,h,w)}function s(u,m){if(!x.isUndefined(m))return i(void 0,m)}function a(u,m){if(x.isUndefined(m)){if(!x.isUndefined(u))return i(void 0,u)}else return i(void 0,m)}function c(u){const m=x.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!x.isUndefined(m))if(x.isPlainObject(m)){if(x.hasOwnProp(m,u))return m[u]}else return;const h=x.hasOwnProp(n,"transitional")?n.transitional:void 0;if(x.isPlainObject(h)&&x.hasOwnProp(h,u))return h[u]}function l(u,m,h){if(x.hasOwnProp(t,h))return i(u,m);if(x.hasOwnProp(n,h))return i(void 0,u)}const f={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(u,m,h)=>r(js(u),js(m),h,!0)};return x.forEach(Object.keys({...n,...t}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const h=x.hasOwnProp(f,m)?f[m]:r,w=x.hasOwnProp(n,m)?n[m]:void 0,k=x.hasOwnProp(t,m)?t[m]:void 0,N=h(w,k,m);x.isUndefined(N)&&h!==l||(o[m]=N)}),x.hasOwnProp(t,"validateStatus")&&x.isUndefined(t.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(x.hasOwnProp(n,"validateStatus")?o.validateStatus=i(void 0,n.validateStatus):delete o.validateStatus),o}const hf=["content-type","content-length"];function pf(n,t,o){if(o!=="content-only"){n.set(t);return}Object.entries(t||{}).forEach(([i,r])=>{hf.includes(i.toLowerCase())&&n.set(i,r)})}const gf=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,o)=>String.fromCharCode(parseInt(o,16)));function Ws(n){const t=un({},n),o=h=>x.hasOwnProp(t,h)?t[h]:void 0,i=o("data");let r=o("withXSRFToken");const s=o("xsrfHeaderName"),a=o("xsrfCookieName");let c=o("headers");const l=o("auth"),f=o("baseURL"),u=o("allowAbsoluteUrls"),m=o("url");if(t.headers=c=Ge.from(c),t.url=As(qs(f,m,u,t),o("params"),o("paramsSerializer")),l){const h=x.getSafeProp(l,"username")||"",w=x.getSafeProp(l,"password")||"";try{c.set("Authorization","Basic "+btoa(h+":"+(w?gf(w):"")))}catch(k){throw U.from(k,U.ERR_BAD_OPTION_VALUE,n)}}if(x.isFormData(i)&&(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv||x.isReactNative(i)?c.setContentType(void 0):x.isFunction(i.getHeaders)&&pf(c,i.getHeaders(),o("formDataHeaderPolicy"))),Le.hasStandardBrowserEnv&&(x.isFunction(r)&&(r=r(t)),r===!0||r==null&&sf(t.url))){const w=s&&a&&af.read(a);w&&c.set(s,w)}return t}const yf=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(o,i){const r=Ws(n);let s=r.data;const a=Ge.from(r.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:f}=r,u,m,h,w,k;function N(){w&&w(),k&&k(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let $=new XMLHttpRequest;$.open(r.method.toUpperCase(),r.url,!0),$.timeout=r.timeout;function E(){if(!$)return;const b=Ge.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),y={data:!c||c==="text"||c==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:b,config:n,request:$};_s(function(D){o(D),N()},function(D){i(D),N()},y),$=null}"onloadend"in $?$.onloadend=E:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.startsWith("file:"))||setTimeout(E)},$.onabort=function(){$&&(i(new U("Request aborted",U.ECONNABORTED,n,$)),N(),$=null)},$.onerror=function(V){const y=V&&V.message?V.message:"Network Error",I=new U(y,U.ERR_NETWORK,n,$);I.event=V||null,i(I),N(),$=null},$.ontimeout=function(){let V=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const y=r.transitional||Li;r.timeoutErrorMessage&&(V=r.timeoutErrorMessage),i(new U(V,y.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,n,$)),N(),$=null},s===void 0&&a.setContentType(null),"setRequestHeader"in $&&x.forEach($s(a),function(V,y){$.setRequestHeader(y,V)}),x.isUndefined(r.withCredentials)||($.withCredentials=!!r.withCredentials),c&&c!=="json"&&($.responseType=r.responseType),f&&([h,k]=vo(f,!0),$.addEventListener("progress",h)),l&&$.upload&&([m,w]=vo(l),$.upload.addEventListener("progress",m),$.upload.addEventListener("loadend",w)),(r.cancelToken||r.signal)&&(u=b=>{$&&(i(!b||b.type?new oo(null,n,$):b),$.abort(),N(),$=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const M=nf(r.url);if(M&&!Le.protocols.includes(M)){i(new U("Unsupported protocol "+M+":",U.ERR_BAD_REQUEST,n)),N();return}$.send(s||null)})},wf=(n,t)=>{if(n=n?n.filter(Boolean):[],!t&&!n.length)return;const o=new AbortController;let i=!1;const r=function(l){if(!i){i=!0,a();const f=l instanceof Error?l:this.reason;o.abort(f instanceof U?f:new oo(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{s=null,r(new U(`timeout of ${t}ms exceeded`,U.ETIMEDOUT))},t);const a=()=>{n&&(s&&clearTimeout(s),s=null,n.forEach(l=>{l.unsubscribe?l.unsubscribe(r):l.removeEventListener("abort",r)}),n=null)};n.forEach(l=>l.addEventListener("abort",r,{once:!0}));const{signal:c}=o;return c.unsubscribe=()=>x.asap(a),c},bf=function*(n,t){let o=n.byteLength;if(o<t){yield n;return}let i=0,r;for(;i<o;)r=i+t,yield n.slice(i,r),i=r},Sf=async function*(n,t){for await(const o of Cf(n))yield*bf(o,t)},Cf=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:o,value:i}=await t.read();if(o)break;yield i}}finally{await t.cancel()}},Gs=(n,t,o,i)=>{const r=Sf(n,t);let s=0,a,c=l=>{a||(a=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await r.next();if(f){c(),l.close();return}let m=u.byteLength;if(o){let h=s+=m;o(h)}l.enqueue(new Uint8Array(u))}catch(f){throw c(f),f}},cancel(l){return c(l),r.return()}},{highWaterMark:2})},qo=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,kf=(n,t,o)=>t+2<o&&qo(n.charCodeAt(t+1))&&qo(n.charCodeAt(t+2));function xf(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const t=n.indexOf(",");if(t<0)return 0;const o=n.slice(5,t),i=n.slice(t+1);if(/;base64/i.test(o)){let a=i.length;const c=i.length;for(let w=0;w<c;w++)if(i.charCodeAt(w)===37&&w+2<c){const k=i.charCodeAt(w+1),N=i.charCodeAt(w+2);qo(k)&&qo(N)&&(a-=2,w+=2)}let l=0,f=c-1;const u=w=>w>=2&&i.charCodeAt(w-2)===37&&i.charCodeAt(w-1)===51&&(i.charCodeAt(w)===68||i.charCodeAt(w)===100);f>=0&&(i.charCodeAt(f)===61?(l++,f--):u(f)&&(l++,f-=3)),l===1&&f>=0&&(i.charCodeAt(f)===61||u(f))&&l++;const h=Math.floor(a/4)*3-(l||0);return h>0?h:0}let s=0;for(let a=0,c=i.length;a<c;a++){const l=i.charCodeAt(a);if(l===37&&kf(i,a,c))s+=1,a+=2;else if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&a+1<c){const f=i.charCodeAt(a+1);f>=56320&&f<=57343?(s+=4,a++):s+=3}else s+=3}return s}const vi="1.18.1",Qs=64*1024,{isFunction:jo}=x,Ef=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,o)=>String.fromCharCode(parseInt(o,16))),Ys=n=>{if(!x.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},Xs=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Bf=n=>{const t=n.indexOf("://");let o=n;return t!==-1&&(o=o.slice(t+3)),o.includes("@")||o.includes(":")},Vf=n=>{const t=x.global!==void 0&&x.global!==null?x.global:globalThis,{ReadableStream:o,TextEncoder:i}=t;n=x.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},n);const{fetch:r,Request:s,Response:a}=n,c=r?jo(r):typeof fetch=="function",l=jo(s),f=jo(a);if(!c)return!1;const u=c&&jo(o),m=c&&(typeof i=="function"?(E=>M=>E.encode(M))(new i):async E=>new Uint8Array(await new s(E).arrayBuffer())),h=l&&u&&Xs(()=>{let E=!1;const M=new s(Le.origin,{body:new o,method:"POST",get duplex(){return E=!0,"half"}}),b=M.headers.has("Content-Type");return M.body!=null&&M.body.cancel(),E&&!b}),w=f&&u&&Xs(()=>x.isReadableStream(new a("").body)),k={stream:w&&(E=>E.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!k[E]&&(k[E]=(M,b)=>{let V=M&&M[E];if(V)return V.call(M);throw new U(`Response type '${E}' is not supported`,U.ERR_NOT_SUPPORT,b)})});const N=async E=>{if(E==null)return 0;if(x.isBlob(E))return E.size;if(x.isSpecCompliantForm(E))return(await new s(Le.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(x.isArrayBufferView(E)||x.isArrayBuffer(E))return E.byteLength;if(x.isURLSearchParams(E)&&(E=E+""),x.isString(E))return(await m(E)).byteLength},$=async(E,M)=>{const b=x.toFiniteNumber(E.getContentLength());return b??N(M)};return async E=>{let{url:M,method:b,data:V,signal:y,cancelToken:I,timeout:D,onDownloadProgress:te,onUploadProgress:Se,responseType:ye,headers:Me,withCredentials:tt="same-origin",fetchOptions:ct,maxContentLength:Be,maxBodyLength:Bt}=Ws(E);const dt=x.isNumber(Be)&&Be>-1,bt=x.isNumber(Bt)&&Bt>-1,St=de=>x.hasOwnProp(E,de)?E[de]:void 0;let nn=r||fetch;ye=ye?(ye+"").toLowerCase():"text";let ft=wf([y,I&&I.toAbortSignal()],D),ue=null;const v=ft&&ft.unsubscribe&&(()=>{ft.unsubscribe()});let Ue,Gt=null;const be=()=>new U("Request body larger than maxBodyLength limit",U.ERR_BAD_REQUEST,E,ue);try{let de;const Ke=St("auth");if(Ke){const K=x.getSafeProp(Ke,"username")||"",Ie=x.getSafeProp(Ke,"password")||"";de={username:K,password:Ie}}if(Bf(M)){const K=new URL(M,Le.origin);if(!de&&(K.username||K.password)){const Ie=Ys(K.username),at=Ys(K.password);de={username:Ie,password:at}}(K.username||K.password)&&(K.username="",K.password="",M=K.href)}if(de&&(Me.delete("authorization"),Me.set("Authorization","Basic "+btoa(Ef((de.username||"")+":"+(de.password||""))))),dt&&typeof M=="string"&&M.startsWith("data:")&&xf(M)>Be)throw new U("maxContentLength size of "+Be+" exceeded",U.ERR_BAD_RESPONSE,E,ue);if(bt&&b!=="get"&&b!=="head"){const K=await N(V);if(typeof K=="number"&&isFinite(K)&&(Ue=K,K>Bt))throw be()}const Qt=bt&&(x.isReadableStream(V)||x.isStream(V)),xn=(K,Ie,at)=>Gs(K,Qs,Ct=>{if(bt&&Ct>Bt)throw Gt=be();Ie&&Ie(Ct)},at);if(h&&b!=="get"&&b!=="head"&&(Se||Qt)){if(Ue=Ue??await $(Me,V),Ue!==0||Qt){let K=new s(M,{method:"POST",body:V,duplex:"half"}),Ie;if(x.isFormData(V)&&(Ie=K.headers.get("content-type"))&&Me.setContentType(Ie),K.body){const[at,Ct]=Se&&Hs(Ue,vo(Us(Se)))||[];V=xn(K.body,at,Ct)}}}else if(Qt&&!l&&u&&b!=="get"&&b!=="head")V=xn(V);else if(Qt&&l&&!h&&b!=="get"&&b!=="head")throw new U("Stream request bodies are not supported by the current fetch implementation",U.ERR_NOT_SUPPORT,E,ue);x.isString(tt)||(tt=tt?"include":"omit");const $e=l&&"credentials"in s.prototype;if(x.isFormData(V)){const K=Me.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&Me.delete("content-type")}Me.set("User-Agent","axios/"+vi,!1);const Vt={...ct,signal:ft,method:b.toUpperCase(),headers:$s(Me.normalize()),body:V,duplex:"half",credentials:$e?tt:void 0};ue=l&&new s(M,Vt);let ve=await(l?nn(ue,ct):nn(M,Vt));const on=Ge.from(ve.headers);if(dt){const K=x.toFiniteNumber(on.getContentLength());if(K!=null&&K>Be)throw new U("maxContentLength size of "+Be+" exceeded",U.ERR_BAD_RESPONSE,E,ue)}const rn=w&&(ye==="stream"||ye==="response");if(w&&ve.body&&(te||dt||rn&&v)){const K={};["status","statusText","headers"].forEach(Dt=>{K[Dt]=ve[Dt]});const Ie=x.toFiniteNumber(on.getContentLength()),[at,Ct]=te&&Hs(Ie,vo(Us(te),!0))||[];let lt=0;const En=Dt=>{if(dt&&(lt=Dt,lt>Be))throw new U("maxContentLength size of "+Be+" exceeded",U.ERR_BAD_RESPONSE,E,ue);at&&at(Dt)};ve=new a(Gs(ve.body,Qs,En,()=>{Ct&&Ct(),v&&v()}),K)}ye=ye||"text";let qe=await k[x.findKey(k,ye)||"text"](ve,E);if(dt&&!w&&!rn){let K;if(qe!=null&&(typeof qe.byteLength=="number"?K=qe.byteLength:typeof qe.size=="number"?K=qe.size:typeof qe=="string"&&(K=typeof i=="function"?new i().encode(qe).byteLength:qe.length)),typeof K=="number"&&K>Be)throw new U("maxContentLength size of "+Be+" exceeded",U.ERR_BAD_RESPONSE,E,ue)}return!rn&&v&&v(),await new Promise((K,Ie)=>{_s(K,Ie,{data:qe,headers:Ge.from(ve.headers),status:ve.status,statusText:ve.statusText,config:E,request:ue})})}catch(de){if(v&&v(),ft&&ft.aborted&&ft.reason instanceof U){const Ke=ft.reason;throw Ke.config=E,ue&&(Ke.request=ue),de!==Ke&&Object.defineProperty(Ke,"cause",{__proto__:null,value:de,writable:!0,enumerable:!1,configurable:!0}),Ke}if(Gt)throw ue&&!Gt.request&&(Gt.request=ue),Gt;if(de instanceof U)throw ue&&!de.request&&(de.request=ue),de;if(de&&de.name==="TypeError"&&/Load failed|fetch/i.test(de.message)){const Ke=new U("Network Error",U.ERR_NETWORK,E,ue,de&&de.response);throw Object.defineProperty(Ke,"cause",{__proto__:null,value:de.cause||de,writable:!0,enumerable:!1,configurable:!0}),Ke}throw U.from(de,de&&de.code,E,ue,de&&de.response)}}},Nf=new Map,Zs=n=>{let t=n&&n.env||{};const{fetch:o,Request:i,Response:r}=t,s=[i,r,o];let a=s.length,c=a,l,f,u=Nf;for(;c--;)l=s[c],f=u.get(l),f===void 0&&u.set(l,f=c?new Map:Vf(t)),u=f;return f};Zs();const qi={http:qd,xhr:yf,fetch:{get:Zs}};x.forEach(qi,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:t})}});const Js=n=>`- ${n}`,$f=n=>x.isFunction(n)||n===null||n===!1;function Tf(n,t){n=x.isArray(n)?n:[n];const{length:o}=n;let i,r;const s={};for(let a=0;a<o;a++){i=n[a];let c;if(r=i,!$f(i)&&(r=qi[(c=String(i)).toLowerCase()],r===void 0))throw new U(`Unknown adapter '${c}'`);if(r&&(x.isFunction(r)||(r=r.get(t))))break;s[c||"#"+a]=r}if(!r){const a=Object.entries(s).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=o?a.length>1?`since :
|
|
17
|
-
`+a.map(Js).join(`
|
|
18
|
-
`):" "+Js(a[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+c,U.ERR_NOT_SUPPORT)}return r}const Ks={getAdapter:Tf,adapters:qi};function ji(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new oo(null,n)}function ea(n){return ji(n),n.headers=Ge.from(n.headers),n.data=Ui.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ks.getAdapter(n.adapter||no.adapter,n)(n).then(function(i){ji(n),n.response=i;try{i.data=Ui.call(n,n.transformResponse,i)}finally{delete n.response}return i.headers=Ge.from(i.headers),i},function(i){if(!Ls(i)&&(ji(n),i&&i.response)){n.response=i.response;try{i.response.data=Ui.call(n,n.transformResponse,i.response)}finally{delete n.response}i.response.headers=Ge.from(i.response.headers)}return Promise.reject(i)})}const Wo={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Wo[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});const ta={};Wo.transitional=function(t,o,i){function r(s,a){return"[Axios v"+vi+"] Transitional option '"+s+"'"+a+(i?". "+i:"")}return(s,a,c)=>{if(t===!1)throw new U(r(a," has been removed"+(o?" in "+o:"")),U.ERR_DEPRECATED);return o&&!ta[a]&&(ta[a]=!0,console.warn(r(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,a,c):!0}},Wo.spelling=function(t){return(o,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Pf(n,t,o){if(typeof n!="object"||n===null)throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let r=i.length;for(;r-- >0;){const s=i[r],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const c=n[s],l=c===void 0||a(c,s,n);if(l!==!0)throw new U("option "+s+" must be "+l,U.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new U("Unknown option "+s,U.ERR_BAD_OPTION)}}const Go={assertOptions:Pf,validators:Wo},Qe=Go.validators;let mn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zs,response:new zs}}async request(t,o){try{return await this._request(t,o)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=(()=>{if(!r.stack)return"";const a=r.stack.indexOf(`
|
|
19
|
-
`);return a===-1?"":r.stack.slice(a+1)})();try{if(!i.stack)i.stack=s;else if(s){const a=s.indexOf(`
|
|
20
|
-
`),c=a===-1?-1:s.indexOf(`
|
|
21
|
-
`,a+1),l=c===-1?"":s.slice(c+1);String(i.stack).endsWith(l)||(i.stack+=`
|
|
22
|
-
`+s)}}catch{}}throw i}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=un(this.defaults,o);const{transitional:i,paramsSerializer:r,headers:s}=o;i!==void 0&&Go.assertOptions(i,{silentJSONParsing:Qe.transitional(Qe.boolean),forcedJSONParsing:Qe.transitional(Qe.boolean),clarifyTimeoutError:Qe.transitional(Qe.boolean),legacyInterceptorReqResOrdering:Qe.transitional(Qe.boolean),advertiseZstdAcceptEncoding:Qe.transitional(Qe.boolean),validateStatusUndefinedResolves:Qe.transitional(Qe.boolean)},!1),r!=null&&(x.isFunction(r)?o.paramsSerializer={serialize:r}:Go.assertOptions(r,{encode:Qe.function,serialize:Qe.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Go.assertOptions(o,{baseUrl:Qe.spelling("baseURL"),withXsrfToken:Qe.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=s&&x.merge(s.common,s[o.method]);s&&x.forEach(["delete","get","head","post","put","patch","query","common"],k=>{delete s[k]}),o.headers=Ge.concat(a,s);const c=[];let l=!0;this.interceptors.request.forEach(function(N){if(typeof N.runWhen=="function"&&N.runWhen(o)===!1)return;l=l&&N.synchronous;const $=o.transitional||Li;$&&$.legacyInterceptorReqResOrdering?c.unshift(N.fulfilled,N.rejected):c.push(N.fulfilled,N.rejected)});const f=[];this.interceptors.response.forEach(function(N){f.push(N.fulfilled,N.rejected)});let u,m=0,h;if(!l){const k=[ea.bind(this),void 0];for(k.unshift(...c),k.push(...f),h=k.length,u=Promise.resolve(o);m<h;)u=u.then(k[m++],k[m++]);return u}h=c.length;let w=o;for(;m<h;){const k=c[m++],N=c[m++];try{w=k(w)}catch($){N.call(this,$);break}}try{u=ea.call(this,w)}catch(k){return Promise.reject(k)}for(m=0,h=f.length;m<h;)u=u.then(f[m++],f[m++]);return u}getUri(t){t=un(this.defaults,t);const o=qs(t.baseURL,t.url,t.allowAbsoluteUrls,t);return As(o,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){mn.prototype[t]=function(o,i){return this.request(un(i||{},{method:t,url:o,data:i&&x.hasOwnProp(i,"data")?i.data:void 0}))}}),x.forEach(["post","put","patch","query"],function(t){function o(i){return function(s,a,c){return this.request(un(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}mn.prototype[t]=o(),t!=="query"&&(mn.prototype[t+"Form"]=o(!0))});let Mf=class lc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(s){o=s});const i=this;this.promise.then(r=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](r);i._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{i.subscribe(c),s=c}).then(r);return a.cancel=function(){i.unsubscribe(s)},a},t(function(s,a,c){i.reason||(i.reason=new oo(s,a,c),o(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const t=new AbortController,o=i=>{t.abort(i)};return this.subscribe(o),t.signal.unsubscribe=()=>this.unsubscribe(o),t.signal}static source(){let t;return{token:new lc(function(r){t=r}),cancel:t}}};function If(n){return function(o){return n.apply(null,o)}}function Rf(n){return x.isObject(n)&&n.isAxiosError===!0}const Wi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Wi).forEach(([n,t])=>{Wi[t]=n});function na(n){const t=new mn(n),o=ys(mn.prototype.request,t);return x.extend(o,mn.prototype,t,{allOwnKeys:!0}),x.extend(o,t,null,{allOwnKeys:!0}),o.create=function(r){return na(un(n,r))},o}const xe=na(no);xe.Axios=mn,xe.CanceledError=oo,xe.CancelToken=Mf,xe.isCancel=Ls,xe.VERSION=vi,xe.toFormData=Uo,xe.AxiosError=U,xe.Cancel=xe.CanceledError,xe.all=function(t){return Promise.all(t)},xe.spread=If,xe.isAxiosError=Rf,xe.mergeConfig=un,xe.AxiosHeaders=Ge,xe.formToJSON=n=>Os(x.isHTMLForm(n)?new FormData(n):n),xe.getAdapter=Ks.getAdapter,xe.HttpStatusCode=Wi,xe.default=xe;const{Axios:_b,AxiosError:Hb,CanceledError:Ub,isCancel:vb,CancelToken:qb,VERSION:jb,all:Wb,Cancel:Gb,isAxiosError:Qb,spread:Yb,toFormData:Xb,AxiosHeaders:Zb,HttpStatusCode:Jb,formToJSON:Kb,getAdapter:eS,mergeConfig:tS,create:nS}=xe;var io=(n=>(n.GET="get",n.POST="post",n.PUT="put",n.DELETE="delete",n))(io||{});const ro=(()=>{function n(){const l=r();return!(!l||l==="undefined")}function t(l){l.accessToken&&localStorage.setItem("access_token",l.accessToken),l.refreshToken&&localStorage.setItem("refresh_token",l.refreshToken)}function o(){const l=localStorage.getItem("user");return l?JSON.parse(l).id:""}function i(){const l=localStorage.getItem("user");if(l)return JSON.parse(l)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(l){if(!n())return;const f=ro.getUser();f&&(f.human=l,localStorage.setItem("user",JSON.stringify(f)))}return{isAuth:n,setTokens:t,getAccessToken:r,getRefreshToken:s,getUserId:o,clearTokens:a,getUser:i,updateHuman:c}})();class Gi{constructor(t){d(this,"code",400);d(this,"err","");ee.BuildClass(this,t)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(t,o){const i=t.config;if(t.response){if(t.response.status===401&&!i._retry)return i._retry=!0,o.defaults.headers.common.token=ro.getAccessToken(),t.config.headers.token=ro.getAccessToken(),t.config.baseURL=void 0,o.request(i);if(t.response.status>=500){if(t.response.data==="неверный логин или пароль"){Xt.Error("Неверный логин или пароль");return}Xt.Error("Ошибка на сервере, попробуйте позже")}if(t.response.status>=400&&t.response.status<500){const r=new Gi(t.response.data).getErr();r&&Xt.Error(r)}return Promise.reject(t)}}}const In=xe.create();In.interceptors.response.use(n=>n,async n=>await Gi.Handle(n,In));class so{static async Get(t,o,i){return await In({method:io.GET,url:t,headers:o,responseType:i})}static async Post(t,o,i,r){return o["Content-Type"]="multipart/form-data",await In({method:io.POST,url:t,headers:o,responseType:i,data:r})}static async Put(t,o,i){return o["Content-Type"]="multipart/form-data",await In({method:io.PUT,url:t,headers:o,data:i})}static async Delete(t,o){return await In({method:io.DELETE,url:t,headers:o})}}class Jt{constructor(t){d(this,"name","");ee.BuildClass(this,t)}static Set(t,o){if(typeof sessionStorage>"u")return;const i={data:o,time:Date.now()};try{sessionStorage.setItem(t,JSON.stringify(i))}catch{}}static Get(t,o){if(typeof sessionStorage>"u")return null;const i=sessionStorage.getItem(t);if(!i)return null;try{const r=JSON.parse(i);return(Date.now()-r.time)/6e4>(o??10)?(sessionStorage.removeItem(t),null):r.data}catch{return sessionStorage.removeItem(t),null}}static Clear(t){if(!(typeof sessionStorage>"u")){if(t){sessionStorage.removeItem(t);return}sessionStorage.clear()}}static async TryGet(t,o,i){const r=Jt.Get(t,i);if(r)return r;const s=await o();return s&&Jt.Set(t,s),s}}var Qi=(n=>(n.ContentType="Content-Type",n.Token="token",n))(Qi||{}),oa=(n=>(n.ApplicationJson="application/json",n.MultipartFormData="multipart/form-data",n))(oa||{});const he=class he{static Setup(t="http://localhost",o,i="api"){this.baseUrl=ke.BuildSafeUrl(t,o,i),this.host=t,this.apiVersion=i}static newWebSocket(t){const o=this.host.replace("http","ws")+"/ws/"+t;return new WebSocket(o)}static download(t,o){const i=he.getDownloadFileName(t,o.headers);if(!(o.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const r=URL.createObjectURL(o.data),s=document.createElement("a");s.href=r,s.setAttribute("download",i),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(t,o){if(t)return t;const i=o["content-disposition"];if(!i)return"file";const r=i.indexOf('"')+1,s=i.lastIndexOf('"'),a=i.substring(r,s);return a||"file"}static getHeaders(t){const o=Nt.Get(ut.AccessToken);return t||(t=he.headers),o&&(t[Qi.Token]=o),t??he.headers}static returnResponse(t,o){if(o)return t!=null&&t.isBlob?he.download(t.downloadFileName,o):o.data}static async Get(t){return he.returnResponse(t,await so.Get(he.buildUrl((t==null?void 0:t.query)??""),he.getHeaders(t==null?void 0:t.headers),he.getResponseType(t==null?void 0:t.isBlob)))}static async Post(t){return he.returnResponse(t,await so.Post(he.buildUrl(t==null?void 0:t.query),he.getHeaders(t==null?void 0:t.headers),he.getResponseType(t.isBlob),he.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Put(t){return he.returnResponse(t,await so.Put(he.buildUrl(t==null?void 0:t.query),he.getHeaders(t==null?void 0:t.headers),he.createFormDataPayload(t==null?void 0:t.payload,t==null?void 0:t.fileInfos)))}static async Delete(t){return he.returnResponse(t,await so.Delete(he.buildUrl(t==null?void 0:t.query),he.getHeaders(t==null?void 0:t.headers)))}static async Subscribe(t){const{query:o}=t;return new EventSource(he.buildUrl(o))}static buildUrl(t=""){try{return $i(this.baseUrl,t)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}static getResponseType(t){return t?"blob":"json"}static createFormDataPayload(t,o){const i=new FormData;if(i.append("form",JSON.stringify(t)),o)for(const r of o)r.file&&i.append(r.id??"files",r.file,r.originalName);return i}};d(he,"baseUrl",""),d(he,"apiVersion","api"),d(he,"host",""),d(he,"headers",{[Qi.ContentType]:oa.ApplicationJson});let we=he;const F=(n,t)=>{const o=n.__vccOpts||n;for(const[i,r]of t)o[i]=r;return o},Af={},zf={style:{"text-align":"center"}};function Df(n,t){return e.openBlock(),e.createElementBlock("div",zf,[...t[0]||(t[0]=[e.createElementVNode("h1",null,"Страница не найдена",-1)])])}const ia=F(Af,[["render",Df]]),Ff=[{path:"/:pathMatch(.*)*",name:"NotFound",component:ia}],yt=class yt{static Setup(t,o=""){this.router=t,this.title=o,this.ChangeDocumentTitle(),this.AddRoutes(Ff)}static Get(){return this.router}static AddRoutes(t){t.forEach(o=>{this.Get().addRoute(o)})}static async To(t){await this.Get().push(t)}static async ToHome(){}static async Replace(t){await this.Get().replace(t)}static Id(){return yt.GetStringParam("id")}static Slug(){return yt.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return yt.GetStringQueryParam("qid")}static Route(){var t;return(t=this.Get())==null?void 0:t.currentRoute.value}static RouterPushBlank(t){const o=this.Get().resolve({path:t});window.open(o==null?void 0:o.href,"_blank")}static GetPath(){var o;const t=(o=yt.Route())==null?void 0:o.path.split("/");return!t||t.length<=0?"":t[t.length-1]}static async ToAdmin(t){if(!t){await this.Get().push("/admin");return}let o=t;o[0]==="/"&&(o=t.substring(1)),await yt.To(`/admin/${o}`)}static GetStringQueryParam(t){return String(this.Route().query[t])}static GetNumberQueryParam(t){return Number(this.Route().query[t]??0)}static GetStringParam(t){var o;return(o=this.Route())==null?void 0:o.params[t]}static SetQueryParam(t,o){const i=new URL(window.location);i.searchParams.set(t,String(o)),history.replaceState(null,"",i)}static Resolve(t){return this.Get().resolve(t)}};d(yt,"router"),d(yt,"title",""),d(yt,"ChangeDocumentTitle",(t="")=>{let o=yt.Route().meta.title??t;o&&(o=" | "+o),document.title=yt.title+o});let Pt=yt;const Of=10,Yi=new Map;class Ee{constructor(t,o){d(this,"items",e.reactive([]));d(this,"item");d(this,"options",e.reactive([]));d(this,"count",e.ref(0));d(this,"classConstructor");d(this,"url","");d(this,"searchStr",e.ref(""));this.classConstructor=t,this.item=e.reactive(new this.classConstructor),this.url=o}Set(t){Object.assign(this.item,new this.classConstructor(t))}getUrl(t){return t?`${this.url}/${t}`:this.url}async GetOptions(t="name",o="id",i){const r=`${this.getUrl()}/options/${t}/${o}`,s=`pf-options:${r}`,a=(i==null?void 0:i.cache)!==!1;if(a&&!(i!=null&&i.force)){const f=Jt.Get(s,(i==null?void 0:i.ttl)??Of);if(f){this.SetOptions(f);return}}const c=Yi.get(s);if(c){await c;return}const l=(async()=>{try{const f=await we.Get({query:r});if(!f)return;this.SetOptions(f),a&&Jt.Set(s,f)}catch(f){console.warn("GetOptions failed:",f)}finally{Yi.delete(s)}})();Yi.set(s,l),await l}InvalidateOptions(t="name",o="id"){Jt.Clear(`pf-options:${this.getUrl()}/options/${t}/${o}`)}async SearchOptions(t,o="name",i="id",r){const s=new URLSearchParams;t&&s.set("query",t),r&&s.set("limit",String(r));const a=s.toString(),c=`${this.getUrl()}/options/${o}/${i}${a?`?${a}`:""}`;try{const f=await we.Get({query:c})??[];return this.SetOptions(f),f}catch(l){return console.warn("SearchOptions failed:",l),[]}}SetOptions(t){this.options.splice(0,this.options.length),this.options.push(...t)}async GetAll(t){try{let o;const i=we.Get;t&&t.withCache?o=await Jt.TryGet(this.getUrl(),i):o=await i({query:this.getUrl()}),Array.isArray(o)?this.SetAll(o):this.SetAllWithCount(o)}catch(o){console.warn("GetAll failed:",o)}}async Get(t){try{t||(t=Pt.Id()),this.Set(await we.Get({query:this.getUrl(t)}))}catch(o){console.warn("Get failed:",o)}}async GetBySlug(t){try{t||(t=Pt.Slug()),this.Set(await O.H.HttpClient.Get({query:this.getUrl("by-slug/"+t)}))}catch(o){console.warn("GetBySlug failed:",o)}}async FTSP(t){try{const i=((t==null?void 0:t.ftsp)??ht.Get()).clearForHTTP(),r={payload:{ftsp:i},query:this.getUrl("ftsp")},s=await we.Post(r);if(!s)return;const a=s.data??s;if(Array.isArray(a))this.SetAll(a);else if(a&&Array.isArray(a.items)){const c=a;if(i.p.append){this.AppendToAll(c.items);return}this.SetAllWithCount(c)}}catch(o){console.warn("FTSP failed:",o)}}async Create(t){try{const o=t??this.item,i={payload:o,query:this.getUrl()};o.getFileInfos&&(i.fileInfos=o.getFileInfos());const r=await we.Post(i);return this.InvalidateOptions(),r}catch(o){console.warn("Create failed:",o)}}async CreateAndSet(t){const o=await this.Create(t);this.Set(o)}async CreateMany(t){if(!t)return;const o=[];t.forEach(i=>{o.push(new Promise(()=>this.Create(i)))}),Promise.all(o)}async Update(t){try{const o=t??this.item,i={query:this.getUrl(`${o.id}`),payload:o};o.getFileInfos&&(i.fileInfos=o.getFileInfos(),i.fileInfos.forEach(s=>s.url=""));const r=await we.Put(i);return this.InvalidateOptions(),r}catch(o){console.warn("Update failed:",o)}}async UpdateAndSet(t){const o=await this.Update(t);this.Set(o)}async UpdateAndReset(t){await this.Update(t??this.item),this.Set()}async Remove(t){if(t)try{await we.Delete({query:this.getUrl(`${t}`)}),this.InvalidateOptions(),this.RemoveItem(t)}catch(o){console.warn("Remove failed:",o)}}async UpdateMany(t){if(t||(t=this.items),!t)return;const o=[];t.forEach(i=>{o.push(new Promise(()=>this.Update(i)))}),Promise.all(o)}SetAll(t){this.items.splice(0,this.items.length),t&&this.items.push(...t.map(o=>new this.classConstructor(o)))}SetAllWithCount(t){this.SetAll(t.items),this.count.value=t.count}RemoveItem(t){const o=this.items.findIndex(i=>i.id===t);o<0||this.items.splice(o,1)}AppendToAll(t){if(t){if(Array.isArray(t)){const o=t.map(i=>new this.classConstructor(i));this.items.push(...o);return}this.items.push(new this.classConstructor(t))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){ee.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(t){if(t){if(Array.isArray(t)){const o=t.map(i=>new this.classConstructor(i));this.items.unshift(...o);return}this.items.unshift(new this.classConstructor(t))}}get Items(){return this.items}get ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(t=>O.H.Strings.SearchInFields(this.searchStr.value,t.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function Lf(n,t){n=="left"&&t.next(),n=="right"&&t.prev()}const _f=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Hf{static GetRandColor(t){return Tt.GetRandEL(t??_f)}}function ra(n,t){const o=[],i=t||mt.Asc,r=i===mt.Asc?mt.Desc:mt.Asc;return Object.values(n).forEach(s=>{o.push(s(i)),o.push(s(r))}),o.length>0&&!o.some(s=>s.default)&&(o[0].default=!0),t&&o.forEach(s=>{s.default&&(s.default=s.order===t)}),o}let Uf=class{constructor(){d(this,"startHour",9);d(this,"endHour",19);d(this,"timelinePxHeight",50);d(this,"timelineStep",Yn.FiveMinutes);d(this,"activeTime","");d(this,"activeObjectId","");d(this,"dragged",!1);d(this,"draggedStartTime","");d(this,"draggedEndTime","");d(this,"timelines",Mo[Yn.FiveMinutes])}startDrag(t,o){this.draggedStartTime=t,this.draggedEndTime=o,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=Mo[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Tt.GenerateNumsRange(this.startHour,this.endHour)}};const Xi=n=>n===8||n===46,vf=n=>n>46&&n<58,qf=n=>n>34&&n<41,jf=n=>n+".",Wf=(n,t,o)=>{Xi(t)||qf(t)||(!vf(t)||o>9)&&n.preventDefault()};function Gf(n,t){if(t>8){let o=n.substring(0,2).replace(".","1");Number(o)>31&&(o="31");let i=n.substring(3,5).replace(".","1");Number(i)>12&&(i="12");let r=n.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),n=o+"."+i+"."+r}return n}function Qf(n){const t=n.keyCode;let o=n.srcElement.value;const i=o.length;Wf(n,t,i),!Xi(t)&&(i===2||i===5)&&(o=jf(o));const r=n.srcElement.value+String.fromCharCode(n.which);if(Xi(t)){n.srcElement.value=o;return}o.length===0&&Number(r)>3&&(o="3",n.preventDefault()),o.length===1&&Number(r)>31&&(o="31",n.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(o=o.substring(0,3)+"12",n.preventDefault()),o=Gf(o,i),n.srcElement.value=o}const Yf=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],Xf="ru-RU";class Ye{constructor(){d(this,"locale","ru-RU")}static Format(t,o){if(!t)return"";const i={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return o&&(i.year=o.year||o.year===void 0?o.year:i.year,i.month=o.month||o.month===void 0?o.month:i.month,i.day=o.day||o.day===void 0?o.day:i.day,i.hour=o.hour??i.hour,i.minute=o.minute??i.minute),Intl.DateTimeFormat(Xf,i).format(new Date(t))}static FormatWithTime(t){return Ye.Format(t,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(t){const o=t.split(".");return new Date(`${o[2]}-${o[1]}-${o[0]}`)}static GetPeriod(t,o,i){return`${this.Format(t,i)}-${this.Format(o,i)}`}static GetShortDayName(t){return t?Yf[t.getDay()]:""}static GetCurrentWeekPeriod(t){const o=new Date,i=new Date(o.getFullYear(),o.getMonth(),o.getDate()-o.getDay()+1),r=new Date(o.getFullYear(),o.getMonth(),i.getDate()+7);return this.GetPeriod(i,r,t||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(t,o){const i=new Date,r=new Date,s=Ye.SplitHourTime(t),a=Ye.SplitHourTime(o);return i.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-i.getTime())/1e3/60}static HourTimeinMunutes(t){const o=Ye.SplitHourTime(t);return o[0]*60+o[1]}static SplitHourTime(t){const o=t.split(":");return[Number(o[0]),Number(o[1])]}static AddMinutesToHM(t,o){const i=new Date,r=Ye.SplitHourTime(t);i.setHours(r[0],r[1],0,0);const s=new Date(i.getTime()+o*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}static GetMonthsDiff(t,o){return o.getMonth()-t.getMonth()+12*(o.getFullYear()-t.getFullYear())}static StringToDate(t){const o=t.split(".");return new Date(`${o[2]}-${o[1]}-${o[0]}`)}static GetDateOrToday(t){return t?t.date:new Date}static InPeriod(t,o,i){return new Date(t)>=new Date(o)&&new Date(t)<=new Date(i)}static GetDatesFromPeriod(t,o){const i=[new Date(t)];let r=t;for(;r<=o;)r=Ye.AddDays(r,1),i.push(r);return i}static AddDays(t,o){const i=new Date(t);return i.setDate(i.getDate()+o),i}static Eq(t,o){return t.getTime()===o.getTime()}static ParseRu(t){if(!t)return null;const o=String(t).match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!o)return null;const i=+o[1],r=+o[2],s=+o[3];if(i<1||i>31||r<1||r>12||s<1900||s>2100)return null;const a=new Date(s,r-1,i);return a.getFullYear()!==s||a.getMonth()!==r-1||a.getDate()!==i?null:a}static ToRu(t){if(!t||Number.isNaN(t.getTime()))return"";const o=String(t.getDate()).padStart(2,"0"),i=String(t.getMonth()+1).padStart(2,"0");return`${o}.${i}.${t.getFullYear()}`}static RuToIso(t){const o=Ye.ParseRu(t);if(!o)return"";const i=String(o.getMonth()+1).padStart(2,"0"),r=String(o.getDate()).padStart(2,"0");return`${o.getFullYear()}-${i}-${r}`}static IsoToRu(t){if(!t)return"";const o=String(t).match(/^(\d{4})-(\d{2})-(\d{2})/);if(o)return`${o[3]}.${o[2]}.${o[1]}`;const i=new Date(t);return Number.isNaN(i.getTime())?"":Ye.ToRu(i)}}class Zf{constructor(){d(this,"dragged",!1);d(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(t){this.dragged=!0,t&&t.dataTransfer&&t.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class sa{static Get(t){const o=t.split(".");return o[o.length-1]}}const Jf=(()=>{function n(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function t(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){n(s,[a]);return}const l=c.split(",");l.push(a),n(s,l)}function i(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const l=c.split(",").filter(f=>f!==a);n(s,l)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:o,removeFromFavourite:i,setFavourite:n,isFavourite:t,clearFavourite:r}})();class Kf{constructor(){d(this,"list",[]);d(this,"defaultSortModel");d(this,"changeFlag",!1)}Set(t){this.Reset(),t&&(Array.isArray(t)?this.list=t:this.list=ra(t),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(t=>t.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const hn=new Kf;function eu(){const n=e.ref(!1),t=e.ref(!1);return{confirmLeave:n,saveButtonClick:t,beforeWindowUnload:s=>{n.value&&s.preventDefault()},formUpdated:()=>{n.value=!0},showConfirmModal:(s,a)=>{n.value&&!t.value?s():a()}}}const tu=(()=>{const n=(s,a)=>e.onBeforeMount(async()=>{O.F.FTSP.Get().reset(),hn.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:t,showConfirmModal:o}=eu(),i=s=>gc.onBeforeRouteLeave((a,c,l)=>{o((s||r)(),l)}),r=s=>async()=>{t.value=!0;try{s&&await s()}catch{return}};return{onBeforeMount:n,onBeforeRouteLeave:i,submit:r}})();function aa(n,t){const o=[];if(n)for(let i=0;i<Math.ceil(n.length/t);i++)o[i]=n.slice(i*t,i*t+t);return o}class Zi{constructor(){d(this,"items",[]);d(this,"idx",0);d(this,"key","")}preSelect(){const t=Pt.GetStringQueryParam(this.key);if(!t||t==="undefined"){this.Select(0);return}const o=this.items.findIndex(i=>i.slug===t);o>-1&&this.Select(o)}static Create(t,o){const i=new Zi;return i.key=t,i.items=o,i.items.length&&i.preSelect(),i}Select(t){if(this.items.length){if(t===void 0)return this.preSelect();this.idx=t,Pt.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const pi=class pi{static Format(t){let o=t;if(!o)t=o;else{(o[0]==="7"||o[0]==="8")&&o.length!==1&&(o=o.slice(1));const i=o.replace(/\+7|[^\d]/g,""),r=i.length;switch(!0){case r===0:t="";break;case(r===1&&o.length===1&&i==="7"):case(r===1&&o.length===1&&i==="8"):t="+7 (";break;case r<4:t=`+7 (${i}`;break;case r<7:t=`+7 (${i.slice(0,3)}) ${i.slice(3)}`;break;case r<9:t=`+7 (${i.slice(0,3)}) ${i.slice(3,6)}-${i.slice(6,8)}`;break;default:t=`+7 (${i.slice(0,3)}) ${i.slice(3,6)}-${i.slice(6,8)}-${i.slice(8,10)}`;break}}return t}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};d(pi,"validatePhone",(t,o,i)=>{pi.getPhoneRegExp().test(o)||!o?i():i(new Error("Пожалуйста, введите корректный номер телефона"))});let Ji=pi;class nu{static Count(t){const o=t.filter(s=>s.rating!==0);let i=0;o.forEach(s=>i=i+s.rating);const r=i/o.length;return isNaN(r)?0:Number((i/o.length).toFixed(2))}}class ou{static async Auth(t){t&&t()}static Dev(){}}class iu{constructor(){d(this,"startHour",9);d(this,"startHM",`${this.startHour}:00`);d(this,"endHour",19);d(this,"endHM",`${this.endHour}:00`);d(this,"timelinePxHeight",50);d(this,"timelineStep",Yn.FiveMinutes);d(this,"timelines",Mo[Yn.FiveMinutes])}periodIsCorrect(t,o){return se.GtOrEq(t,this.startHM)&&se.GtOrEq(this.endHM,o)}setTimelineStep(t){this.timelineStep=t,this.setTimelines()}setTimelines(){this.timelines=Mo[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Tt.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(t,o,i,r){return r.filter(s=>s.id!==i).every(s=>!se.PeriodsIntersects(t,o,s.startTime,s.endTime))}sortByStartTime(t){t.sort((o,i)=>se.HMtoM(o.startTime)-se.HMtoM(i.startTime))}}const ru=-68;function su(n,t){if(!n){document.body.scrollTo({top:0,behavior:"smooth"});return}const o=document.querySelector(n),i=t??ru;let r=0;o&&(r=o.getBoundingClientRect().top+i+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class au{static Sort(t){t.forEach((o,i)=>o.order=i)}}class Qo{static Wait(t,o){return new Promise(i=>setTimeout(()=>i(o),t))}static WaitS(t,o){return Qo.Wait(se.S(t),o)}static WaitM(t,o){return Qo.Wait(se.M(t),o)}}class Rn{static Message(t){var i;const o=(i=t==null?void 0:t.response)==null?void 0:i.data;if(typeof o=="string"&&o)return o;if(o&&typeof o=="object"){const r=o;if(r.error)return r.error;if(r.message)return r.message}return t instanceof Error&&t.message?t.message:""}static async Run(t,o={}){var i,r;try{const s=await t();return!o.silent&&o.success&&Xt.Success(o.success),(i=o.onSuccess)==null||i.call(o,s),{ok:!0,data:s}}catch(s){return o.silent||Xt.Error(o.message||Rn.Message(s)||"Произошла ошибка"),(r=o.onError)==null||r.call(o,s),{ok:!1,error:s}}}static async Silent(t){return Rn.Run(t,{silent:!0})}}const An=n=>n===""||n===null||n===void 0||Array.isArray(n)&&n.length===0,lu=(n="Обязательное поле")=>t=>An(t)?n:!0,cu=(n="Некорректный email")=>t=>An(t)||/^\S+@\S+\.\S+$/.test(String(t))?!0:n,du=(n,t=`Минимум ${n} символов`)=>o=>An(o)||String(o).length>=n?!0:t,fu=(n,t=`Максимум ${n} символов`)=>o=>An(o)||String(o).length<=n?!0:t,uu=(n,t="Некорректное значение")=>o=>An(o)||n.test(String(o))?!0:t,la=(n="Некорректная дата",t=!1)=>o=>An(o)?t?n:!0:Ye.ParseRu(String(o))?!0:n,mu=Object.freeze(Object.defineProperty({__proto__:null,Compose:(...n)=>t=>{for(const o of n){const i=o(t);if(i!==!0)return i}return!0},DateRu:la,Email:cu,MaxLen:fu,MinLen:du,Regex:uu,Required:lu},Symbol.toStringTag,{value:"Module"})),hu=n=>new Promise(t=>{if(document.querySelector(n))return t(document.querySelector(n));const o=new MutationObserver(()=>{document.querySelector(n)&&(o.disconnect(),t(document.querySelector(n)))});o.observe(document.body,{childList:!0,subtree:!0})});class Yo{constructor(t){d(this,"id");d(this,"message","");d(this,"userName");d(this,"createdOn",new Date);d(this,"chatId");d(this,"type","message");ee.BuildClass(this,t)}static Create(t,o,i,r){const s=new Yo;return s.id=Zt(),s.chatId=t,s.message=i,s.userName=r,s}static CreatePingMessage(){const t=new Yo;return t.type="ping",t.id=Zt(),t}isMessage(){return this.type==="message"||this.type===""}}const pu="";class gu{constructor(t="",o="",i="set"){d(this,"client");d(this,"endpoint","");d(this,"query","");d(this,"period",2e4);ee.BuildClass(this,{endpoint:t,query:o,mutation:i}),this.connect(),this.ping()}send(t){!this.client||this.client.readyState!==1||this.client.send(t)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Yo.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=t=>{t.data})}buildUrl(){const t=`ws/${this.endpoint}/${this.query}`;return new URL(t,pu.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}let yu=(ie=class{},d(ie,"Arrays",Tt),d(ie,"Axios",so),d(ie,"BaseStore",Ee),d(ie,"Cache",Jt),d(ie,"Classes",ee),d(ie,"CarouselSwipe",Lf),d(ie,"Color",Hf),d(ie,"CreateSortModels",ra),d(ie,"Cursor",Uf),d(ie,"DateMask",Qf),d(ie,"Dates",Ye),d(ie,"Dragger",Zf),d(ie,"Extension",sa),d(ie,"Favourite",Jf),d(ie,"Hooks",tu),d(ie,"HttpClient",we),d(ie,"Id",nt),d(ie,"MakeCarousel",aa),d(ie,"Period",Vi),d(ie,"PhoneService",Ji),d(ie,"Rating",nu),d(ie,"Router",Pt),d(ie,"RouterGuard",ou),d(ie,"Scheduler",iu),d(ie,"Scroll",su),d(ie,"Sorter",au),d(ie,"Static",Ti),d(ie,"Strings",ke),d(ie,"Time",se),d(ie,"Timer",Qo),d(ie,"Token",ro),d(ie,"Try",Rn),d(ie,"Menus",Zi),d(ie,"Validate",mu),d(ie,"WaitElement",hu),d(ie,"WebSocketClient",gu),ie);class wu{constructor(){d(this,"limit",25);d(this,"count",0);d(this,"curPage",1);d(this,"storeModule","")}setCurPage(t){this.curPage=t}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const ca=new wu;var da=(n=>(n.TableList="tableList",n.Default="",n))(da||{}),Mt=(n=>(n.None="None",n.Next="Next",n.Prev="Prev",n))(Mt||{}),fa=(n=>(n.Year="Год",n.Month="Месяц",n.Week="Неделя",n.Day="День",n))(fa||{}),ua=(n=>(n.YouTube="YouTube",n.VK="VK",n.Instagram="Instagram",n.Facebook="Facebook",n))(ua||{}),Ki=(n=>(n.simple="simple",n.oneToMany="oneToMany",n.manyToMany="manyToMany",n))(Ki||{});const bu=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:da,Animations:Mt,CalendarScale:fa,LocalStoreKeys:ut,SocialTypes:ua,ValueRelation:Ki},Symbol.toStringTag,{value:"Module"}));let Su=class{async Login(t=Fe.Form.GetValues()){const o=await we.Post({query:"auth/login",payload:t});if(!o)throw"Ошибка авторизации";Fe.Status.SetState(o)}async LoginAs(t){await we.Post({query:"auth/login-as",payload:{email:t}})}async Register(t=Fe.Form.GetValues()){const o=await we.Post({query:"auth/register",payload:t});if(!o)throw o}async RestorePassword(t=Fe.Form.GetValues()){await we.Post({query:"auth/restore-password",payload:t})}async PasswordChange(t=Fe.Form.GetValues()){t.id=Pt.GetStringParam("userId"),await we.Put({query:"auth/password-change",payload:t})}async RefreshToken(){await we.Post({query:"auth/refresh-token",payload:{refreshToken:ro.getRefreshToken()}})}async CheckUuid(t){await we.Get({query:`auth/check-uuid/${t.userId}/${t.uniqueId}`})}async ConfirmEmail(t){await we.Get({query:`auth/confirm-email/${t}`})}async EmailIsConfirm(t){await we.Get({query:`auth/email-is-confirm/${t}`})}};const Cu=new Su;var ku=Object.defineProperty,Xo=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&ku(t,o,r),r};const ao=class cc{constructor(t){d(this,"id");d(this,"description","");d(this,"time","");d(this,"latitude","");d(this,"longitude","");d(this,"emails",[]);d(this,"postAddresses",[new Io]);d(this,"phones",[]);d(this,"websites",[]);ee.BuildClass(this,t)}addEmail(){const t=Xn.Create();return t.contactId=this.id,this.emails.push(t),t}addPhone(){const t=cn.Create();return t.contactId=this.id,this.phones.push(t),t}static Create(){const t=new cc;return t.id=nt.UUID(),t}removeEmail(t){ee.RemoveFromClassById(t,this.emails)}removePhone(t){ee.RemoveFromClassById(t,this.phones)}addPostAddress(){this.postAddresses.push(new Io)}addWebsite(){this.websites.push(new Pi)}pushFirst(){this.emails.length||this.emails.push(new Xn),this.phones.length||this.phones.push(new cn)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(t){this.description=t}updateTime(t){this.time=t}updateLatitude(t){this.latitude=t}updateLongitutde(t){this.longitude=t}};Xo([ee.GetClassConstructor(Xn)],ao.prototype,"emails"),Xo([ee.GetClassConstructor(Io)],ao.prototype,"postAddresses"),Xo([ee.GetClassConstructor(cn)],ao.prototype,"phones"),Xo([ee.GetClassConstructor(Pi)],ao.prototype,"websites");let xu=ao,Eu=class extends Ee{constructor(){super(xu,"contacts")}};const Bu=new Eu;let Vu=class extends Ee{constructor(){super(Xn,"emails")}};const Nu=new Vu;let $u=class extends Ee{constructor(){super(ps,"humans")}};const Tu=new $u;let Pu=class extends Ee{constructor(){super(cn,"phones")}};const Mu=new Pu;class Iu{constructor(t){d(this,"id");d(this,"nameRus","");ee.BuildClass(this,t)}}var Ru=Object.defineProperty,Au=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Ru(t,o,r),r};class ma{constructor(t){d(this,"id");d(this,"nameRus","");d(this,"fields",[]);ee.BuildClass(this,t)}}Au([ee.GetClassConstructor(Iu)],ma.prototype,"fields");let zu=class extends Ee{constructor(){super(ma,"schemas")}};const Du=new zu;class ha{constructor(t){d(this,"id","");d(this,"value","");d(this,"label","");d(this,"key","");d(this,"description","");d(this,"route","");d(this,"searchElementMetas",[]);ee.BuildClass(this,t)}}class Fu{constructor(t){d(this,"id");d(this,"name","");d(this,"label","");ee.BuildClass(this,t)}}var Ou=Object.defineProperty,pa=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Ou(t,o,r),r};class zn{constructor(t){d(this,"id");d(this,"key","");d(this,"label","");d(this,"order",0);d(this,"route","");d(this,"table","");d(this,"active",!0);d(this,"searchColumn","");d(this,"descriptionColumn","");d(this,"labelColumn","");d(this,"valueColumn","");d(this,"options",[]);d(this,"searchGroupMetaColumns",[]);ee.BuildClass(this,t)}}pa([ee.GetClassConstructor(ha)],zn.prototype,"options"),pa([ee.GetClassConstructor(Fu)],zn.prototype,"searchGroupMetaColumns");class er{constructor(t){d(this,"query","");d(this,"key","");d(this,"params","");d(this,"suggester",!1);d(this,"mustBeTranslated",!0);d(this,"options",[]);d(this,"searchGroupId","");d(this,"searchGroups",[]);d(this,"searchGroup",new zn);d(this,"searchObjects",[]);d(this,"pagination",new Ao);d(this,"count",0);t&&(this.query=t.query,t.searchGroups&&(this.searchGroups=t.searchGroups.map(o=>new zn(o))),t.searchGroup&&(this.searchGroup=new zn(t.searchGroup)),t.options&&(this.options=t.options.map(o=>new ha(o))),this.count=t.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(t){const o=this.searchGroups.find(i=>i.id===t);o?this.searchGroup=o:this.searchGroup=new zn}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Pt.Route().query.groupId)}setQuery(){const t=Pt.Route().query.query;t&&(this.query=t)}}let Lu=class{constructor(){d(this,"isSearchDrawerOpen",e.ref(!1));d(this,"searchModel",e.reactive(new er));d(this,"searchGroups",e.reactive([]));d(this,"count",0)}async Search(t){const o=await we.Get({query:`search?key=${t.key}&query=${t.query}`});o&&o.searchGroup&&o.searchGroup.options.forEach(i=>{t.searchObjects.push({id:i.id,value:i.value,label:i.label,description:i.description})})}async mainSearch(t){this.SetSearchModel(await we.Get({query:`search/main?searchModel=${t.toUrl()}`}))}async Full(t){t.options=[],t.searchGroups.forEach(i=>{i.options=[]});const o=await we.Get({query:`search/main?searchModel=${t.toUrl()}`});return this.SetSearchModel(o),o}ToggleDrawer(t){this.isSearchDrawerOpen.value=t,this.searchModel=new er}SetSearchModel(t){t&&(this.searchModel=new er(t))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const tr=new Lu;let _u=class extends Ee{constructor(){super(Ro,"users-accounts")}};const Hu=new _u;var Xe=(n=>(n.String="string",n.Text="text",n.Number="number",n.Date="date",n.DateTime="dateTime",n.Radio="radio",n.Set="set",n.Boolean="boolean",n.Files="files",n.File="file",n.MatrixRadio="matrixRadio",n.MatrixSet="matrixSet",n))(Xe||{});class ga{constructor(t){d(this,"id");d(this,"name",Xe.String);d(this,"valueRelation",Ki.simple);ee.BuildClass(this,t)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===Xe.Radio)return"RadioProp";if(this.name===Xe.Set)return"SetProp";if(this.name===Xe.Number)return"NumberProp";if(this.name===Xe.String)return"StringProp"}}let Uu=class extends Ee{constructor(){super(ga,"value-types")}};const vu=new Uu;let ya=(wt=class{},d(wt,"Auth",Cu),d(wt,"Contacts",Bu),d(wt,"Emails",Nu),d(wt,"FileInfos",new Ee($t,"file-infos")),d(wt,"Humans",Tu),d(wt,"Phones",Mu),d(wt,"Schemas",Du),d(wt,"UserAccounts",Hu),d(wt,"ValueTypes",vu),d(wt,"Search",tr),wt);var Ze=(n=>(n.XS="xs",n.S="s",n.M="m",n.L="l",n.XL="xl",n))(Ze||{});let qu=(tn=class{},d(tn,"Orders",mt),d(tn,"Sizes",Ze),d(tn,"Statuses",me),d(tn,"DataTypes",Ae),d(tn,"ValueTypes",Xe),d(tn,"Operators",We),tn);class ju{constructor(){d(this,"title","");d(this,"buttons",[]);d(this,"editTitle",e.ref(!1));d(this,"showEdit",e.ref(!1))}Set(t="",o){typeof t=="function"?this.title=t():typeof t=="string"?this.title=t:this.title=t.value,this.buttons=o}}const Wu=new ju;class Gu{constructor(){d(this,"menu",[]);d(this,"path","");d(this,"isOpen",!0);d(this,"filterString","")}Set(t){this.menu=t}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(t=>{var o;return ke.SearchIn(t.name,this.filterString)||((o=t.children)==null?void 0:o.some(i=>ke.SearchIn(i.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(t){this.path=t}GetPath(){return this.path}SetFilter(t){this.filterString=t}GetChildren(t){var o;return this.filterString?(o=t.children)==null?void 0:o.filter(i=>ke.SearchIn(i.name,this.filterString)):t.children}}const Qu=new Gu;class Yu{constructor(){d(this,"Menu",e.reactive(Qu));d(this,"Head",e.reactive(Wu))}}const Xu=new Yu,wa="Да",ba="Нет";class Zu extends Vn{constructor(){super(...arguments);d(this,"confirmButtonText",wa);d(this,"cancelButtonText",ba);d(this,"persistent",!0);d(this,"resolve");d(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(o){const i=typeof o=="string"?{text:o}:o;return this.confirmButtonText=i.confirmButtonText??wa,this.cancelButtonText=i.cancelButtonText??ba,this.persistent=i.persistent??!0,super.showMessage(i,this.type),new Promise((r,s)=>{if(this.resolve=r,this.reject=s,typeof C.Dialog.create!="function"){console.warn("[sprof] Quasar Dialog plugin is not installed. Add `app.use(Quasar, { plugins: { Dialog } })` (imported from 'quasar') to your app."),this.Settle(()=>s({type:"cancel"}));return}const a=C.Dialog.create({title:this.title||void 0,message:this.text,html:Vn.ContainsHtml(this.text),persistent:this.persistent,ok:{label:this.confirmButtonText,flat:!0,color:"primary"},cancel:{label:this.cancelButtonText,flat:!0,color:"warning"}});a.onOk(()=>this.Settle(()=>r({type:"submit"}))),a.onCancel(()=>this.Settle(()=>s({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var o;return(o=this.resolve)==null?void 0:o.call(this,!0)})}Cancel(){this.Settle(()=>{var o;return(o=this.reject)==null?void 0:o.call(this)})}Settle(o){o==null||o(),this.resolve=void 0,this.reject=void 0}}const Ju=new Zu;class Ku{constructor(){d(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class em extends Ku{Show(){super.show()}Hide(){super.hide()}}const tm=new em;class Kt{}d(Kt,"Admin",Xu),d(Kt,"Dialog",Ju),d(Kt,"Loading",tm),d(Kt,"Notify",Xt),d(Kt,"Btn",ln),d(Kt,"Input",as);class O{}d(O,"Auth",e.reactive(Fe)),d(O,"UI",e.reactive(Kt)),d(O,"Paginator",e.reactive(ca)),d(O,"S",ya),d(O,"H",yu),d(O,"C",zc),d(O,"T",qu),d(O,"I",bu),d(O,"F",_c);const lo=e.defineComponent({inheritAttrs:!1,__name:"PBadge",props:{label:{type:[String,Number],default:void 0},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},floating:{type:Boolean,default:!1},multiLine:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},setup(n){const t=e.useAttrs(),o=e.computed(()=>{const i={};for(const r of Object.keys(t))["label","color","text-color","outline","rounded","floating","multi-line","transparent"].includes(r)||(i[r]=t[r]);return i});return(i,r)=>(e.openBlock(),e.createBlock(e.unref(C.QBadge),e.mergeProps(e.unref(o),{label:n.label||void 0,color:n.color||void 0,"text-color":n.textColor||void 0,outline:n.outline,rounded:n.rounded,floating:n.floating,"multi-line":n.multiLine,transparent:n.transparent}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["label","color","text-color","outline","rounded","floating","multi-line","transparent"]))}}),ne=e.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:Ze.M,required:!1},type:{type:String,default:me.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(n){const t=n,o=e.useAttrs(),i=e.computed(()=>{const M={};for(const b of Object.keys(o))["disable","color","size","flat","outline","unelevated","type"].includes(b)||(M[b]=o[b]);return M}),r=["submit","button","reset"],s=e.computed(()=>r.includes(t.type)),a=e.computed(()=>s.value?t.type:void 0),c=e.computed(()=>s.value?me.Primary:t.type),l=e.computed(()=>{const M={};return t.margin&&(M.margin=t.margin),t.padding&&(M.padding=t.padding),t.width&&(M.maxWidth=t.width,M.minWidth=t.width),t.height&&(M.minHeight=t.height,M.maxHeight=t.height),t.fontSize&&(M.fontSize=t.fontSize),M}),f={[me.Primary]:"primary",[me.Success]:"positive",[me.Warning]:"warning",[me.Error]:"negative",[me.Info]:"info"},u=e.computed(()=>o.color!==void 0?o.color:f[c.value]??"primary"),m={[Ze.XS]:"xs",[Ze.S]:"sm",[Ze.M]:"md",[Ze.L]:"lg",[Ze.XL]:"xl"},h=["xs","sm","md","lg","xl"],w=e.computed(()=>o.size!==void 0?o.size:h.includes(t.size)?t.size:m[t.size]??"md"),k=e.computed(()=>o.flat!==void 0?o.flat:["text","pag","text_ano"].includes(t.skin)),N=e.computed(()=>o.outline!==void 0?o.outline:t.skin==="invert"),$=e.computed(()=>o.unelevated!==void 0?o.unelevated:t.skin==="base"),E=e.computed(()=>o.disable??t.disabled);return(M,b)=>(e.openBlock(),e.createBlock(e.unref(C.QBtn),e.mergeProps(e.unref(i),{style:e.unref(l),color:e.unref(u),size:e.unref(w),flat:e.unref(k),outline:e.unref(N),unelevated:e.unref($),disable:e.unref(E),type:e.unref(a),"no-wrap":""}),{default:e.withCtx(()=>[e.renderSlot(M.$slots,"default"),e.createTextVNode(" "+e.toDisplayString(n.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"]))}}),nm=["innerHTML"],om={key:1},nr=F(e.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},fontSize:{type:String,required:!1,default:""},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(n){const t=n,o={color:t.color||void 0,fontSize:t.fontSize||void 0,fontWeight:t.fontWeight||void 0,background:t.background||void 0,padding:t.padding||void 0,width:t.width||void 0,maxWidth:t.width||void 0,minWidth:t.minWidth||void 0,margin:t.margin||void 0,justifyContent:t.justifyContent||void 0};return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["string",n.customClass]),style:o,onClick:r[0]||(r[0]=s=>i.$emit("click"))},[e.createVNode(e.unref(C.QItemLabel),null,{default:e.withCtx(()=>[n.isHtml?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:n.string},null,8,nm)):(e.openBlock(),e.createElementBlock("span",om,e.toDisplayString(n.string),1))]),_:1})],2))}}),[["__scopeId","data-v-049d3e33"]]),it=F(e.defineComponent({inheritAttrs:!1,__name:"PTooltip",props:{tooltipText:{type:String,default:void 0,required:!1},timeout:{type:Number,default:0,required:!1},typeStyle:{type:String,default:"primary",required:!1},height:{type:String,default:"16px",required:!1},relPosition:{type:String,default:"right",required:!1},level:{type:String,default:"top",required:!1}},setup(n){const t=n,o=e.useAttrs(),i=e.computed(()=>{const l={};for(const f of Object.keys(o))f!=="delay"&&(l[f]=o[f]);return l}),r={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},s=e.computed(()=>{const l=t.relPosition==="left"?"right":"left";return`${t.level==="top"?"top":"bottom"} ${l}`}),a=e.computed(()=>{const l=t.relPosition==="left"?"right":"left";return`${t.level==="top"?"bottom":"top"} ${l}`}),c=e.computed(()=>({background:r[t.typeStyle],whiteSpace:"pre",height:t.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(l,f)=>n.tooltipText?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0},e.unref(i),{class:"tooltip-wrapper"}),[e.renderSlot(l.$slots,"default",{},void 0,!0),e.createVNode(e.unref(C.QTooltip),{delay:n.timeout,anchor:e.unref(s),self:e.unref(a),class:"tooltip-box",style:e.normalizeStyle(e.unref(c))},{default:e.withCtx(()=>[e.createVNode(nr,{string:n.tooltipText,padding:"0 3px",height:n.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])],16)):(e.openBlock(),e.createBlock(e.unref(C.QTooltip),e.mergeProps({key:1},e.unref(i),{delay:n.timeout,class:"tooltip-box"}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["delay"]))}}),[["__scopeId","data-v-ee5e83fd"]]),It={title:"Контактная информация",phonesTitle:"Телефоны",emailsTitle:"Электронная почта",addPhone:"Добавить телефон",addEmail:"Добавить email",noPhones:"Нет телефонных номеров",noEmails:"Нет email адресов",copied:"Скопировано в буфер обмена",copiedNumber:"Номер скопирован в буфер обмена",copiedEmail:"Email скопирован в буфер обмена",saved:"Сохранено",deleted:"Удалено",enterPhone:"Введите номер телефона",enterEmail:"Введите email адрес"},im=e.defineComponent({inheritAttrs:!1,__name:"PInput",props:e.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},width:{type:String,required:!1,default:""},size:{type:String,default:Ze.M,required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},rules:{type:Array,required:!1,default:void 0},error:{type:Boolean,default:!1},errorMessage:{type:String,default:"",required:!1}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(n,{expose:t,emit:o}){const i=o,r=e.useModel(n,"modelValue"),s=e.useAttrs(),a=e.computed(()=>typeof s.id=="string"?s.id:void 0),c=e.computed(()=>{const y={};for(const I of Object.keys(s))I!=="id"&&I!=="disable"&&(y[I]=s[I]);return y}),l=n,f=e.computed(()=>{var y;return!!((y=l.rules)!=null&&y.length)}),u=e.computed(()=>{const y=l.size==="sm"?Ze.S:l.size==="xs"?Ze.XS:l.size;return y===Ze.M?void 0:`p-field--${y}`}),m=e.computed(()=>s.disable??l.disabled),h=e.ref(null);function w(){var y;(y=h.value)==null||y.focus()}function k(){var y;(y=h.value)==null||y.blur()}function N(){var y;(y=h.value)==null||y.select()}function $(){var y;return(y=h.value)==null?void 0:y.getNativeElement()}async function E(){var y;return await((y=h.value)==null?void 0:y.validate())??!0}function M(){var y;(y=h.value)==null||y.resetValidation()}t({focus:w,blur:k,select:N,getNativeElement:$,validate:E,resetValidation:M});const b=()=>{i("input",r.value)},V=e.computed(()=>{const y={};return l.margin&&(y.margin=l.margin),l.padding&&(y.padding=l.padding),l.width&&(y.width=l.width),l.borderColor&&(y["--p-border-color"]=l.borderColor),y});return(y,I)=>(e.openBlock(),e.createBlock(e.unref(C.QInput),e.mergeProps({ref_key:"input",ref:h,modelValue:r.value,"onUpdate:modelValue":I[0]||(I[0]=D=>r.value=D)},e.unref(c),{for:e.unref(a),label:n.label||void 0,mask:n.mask,disable:e.unref(m),rules:n.rules,error:n.error,"error-message":n.errorMessage,"hide-bottom-space":!n.error&&!n.errorMessage&&!e.unref(f),"input-style":{color:n.color||void 0},style:e.unref(V),class:["p-input",e.unref(u)],outlined:"",dense:"","onUpdate:modelValue":b,onBlur:I[1]||(I[1]=D=>y.$emit("blur",r.value)),onFocus:I[2]||(I[2]=D=>y.$emit("focus",r.value)),onClear:I[3]||(I[3]=D=>y.$emit("clear"))}),e.createSlots({before:e.withCtx(()=>[e.renderSlot(y.$slots,"before",{},()=>[e.renderSlot(y.$slots,"default",{},void 0,!0)],!0)]),append:e.withCtx(()=>[e.renderSlot(y.$slots,"append",{},()=>[e.renderSlot(y.$slots,"right",{},void 0,!0)],!0)]),_:2},[y.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,y.$slots.after?{name:"after",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,y.$slots.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,y.$slots.error?{name:"error",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,y.$slots.hint?{name:"hint",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,y.$slots.counter?{name:"counter",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,y.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","error","error-message","hide-bottom-space","input-style","style","class"]))}}),et=F(im,[["__scopeId","data-v-b2f80e0a"]]),pn=e.defineComponent({inheritAttrs:!1,__name:"PDialog",props:{modelValue:{type:Boolean,default:!1,required:!1},persistent:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},emits:["update:modelValue"],setup(n,{expose:t,emit:o}){const i=n,r=o,s=e.ref(i.modelValue);e.watch(()=>i.modelValue,h=>{s.value=h},{immediate:!0});const a=h=>{s.value=h,r("update:modelValue",h)};t({show:()=>a(!0),hide:()=>a(!1),toggle:()=>a(!s.value),opened:s});const u=e.useAttrs(),m=e.computed(()=>{const h={};for(const w of Object.keys(u))["modelValue","persistent","maximized","transition-show","transition-hide","onUpdate:modelValue"].includes(w)||(h[w]=u[w]);return h});return(h,w)=>(e.openBlock(),e.createBlock(e.unref(C.QDialog),e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":w[0]||(w[0]=k=>e.isRef(s)?s.value=k:null)},e.unref(m),{persistent:n.persistent,maximized:n.maximized,"transition-show":n.transitionShow,"transition-hide":n.transitionHide,"onUpdate:modelValue":a}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:2},[h.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"title")]),key:"0"}:void 0,h.$slots.header?{name:"header",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"header")]),key:"1"}:void 0,h.$slots.body?{name:"body",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"body")]),key:"2"}:void 0,h.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(h.$slots,"footer")]),key:"3"}:void 0]),1040,["modelValue","persistent","maximized","transition-show","transition-hide"]))}}),rm={class:"q-mb-md"},sm={class:"text-subtitle1 text-weight-medium text-grey-9"},am={class:"text-caption text-grey-6 q-mt-xs"},co=e.defineComponent({__name:"PContactFormDeleteDialog",props:e.mergeModels({title:{type:String,default:"Удалить элемент?"},subtitle:{type:String,default:"Это действие нельзя отменить."},loading:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["confirm"],["update:modelValue"]),setup(n){const t=C.ClosePopup,o=e.useModel(n,"modelValue");return(i,r)=>(e.openBlock(),e.createBlock(pn,{modelValue:o.value,"onUpdate:modelValue":r[1]||(r[1]=s=>o.value=s),persistent:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{style:{width:"340px","max-width":"90vw"}},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),{class:"column items-center q-pt-xl q-pb-sm text-center"},{default:e.withCtx(()=>[e.createElementVNode("div",rm,[e.createVNode(e.unref(C.QIcon),{name:"delete_outline",size:"40px",color:"negative"})]),e.createElementVNode("div",sm,e.toDisplayString(n.title),1),e.createElementVNode("div",am,e.toDisplayString(n.subtitle),1)]),_:1}),e.createVNode(e.unref(C.QCardActions),{class:"q-px-lg q-pb-lg justify-between"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(ne,{flat:"",label:"Отмена",color:"grey-7","no-caps":""},null,512),[[e.unref(t)]]),e.createVNode(ne,{unelevated:"",label:"Удалить",color:"negative",loading:n.loading,"no-caps":"",onClick:r[0]||(r[0]=s=>i.$emit("confirm"))},null,8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),lm={class:"q-mr-md"},cm={class:"text-subtitle1 text-weight-medium text-grey-9"},fo=e.defineComponent({__name:"PContactFormEditDialog",props:e.mergeModels({icon:{type:String,default:"edit"},title:{type:String,default:"Редактирование"},saving:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["save"],["update:modelValue"]),setup(n){const t=C.ClosePopup,o=e.useModel(n,"modelValue");return(i,r)=>(e.openBlock(),e.createBlock(pn,{modelValue:o.value,"onUpdate:modelValue":r[1]||(r[1]=s=>o.value=s),persistent:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{style:{width:"380px","max-width":"90vw"}},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),{class:"row items-center q-pb-none"},{default:e.withCtx(()=>[e.createElementVNode("div",lm,[e.createVNode(ne,{flat:"",round:"",dense:"",icon:n.icon,color:"primary",size:"md",disable:!0},null,8,["icon"])]),e.createElementVNode("div",cm,e.toDisplayString(n.title),1),e.createVNode(e.unref(C.QSpace)),e.withDirectives(e.createVNode(ne,{flat:"",round:"",dense:"",icon:"close",size:"sm",color:"grey-6"},null,512),[[e.unref(t)]])]),_:1}),e.createVNode(e.unref(C.QCardSection),{class:"q-pt-md"},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3}),e.createVNode(e.unref(C.QCardActions),{class:"q-px-lg q-pb-lg justify-between"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(ne,{flat:"",label:"Отмена",color:"grey-7","no-caps":""},null,512),[[e.unref(t)]]),e.createVNode(ne,{unelevated:"",label:"Сохранить",color:"primary",loading:n.saving,"no-caps":"",onClick:r[0]||(r[0]=s=>i.$emit("save"))},null,8,["loading"])]),_:1})]),_:3})]),_:3},8,["modelValue"]))}}),dm={class:"q-mt-sm"},fm={class:"row items-center justify-between q-mb-xs q-px-xs"},um={class:"row items-center q-gutter-xs"},mm={class:"text-uppercase text-caption text-weight-medium text-grey-7"},hm={class:"row items-center q-gutter-sm",style:{"min-width":"0",flex:"1"}},pm={style:{"min-width":"0"}},gm={class:"text-body2 text-weight-medium text-grey-9 ellipsis"},ym={key:0,class:"text-caption text-grey-6 ellipsis"},wm={class:"row items-center no-wrap q-gutter-xs"},bm={key:1,class:"column items-center q-py-lg bg-grey-1 rounded-borders"},Sm={class:"text-body2 text-grey-7"},gn=F(e.defineComponent({__name:"PContactFormViewEmails",props:{presetted:{},contact:{},adapter:{},labels:{}},setup(n){const t=n,o=e.computed(()=>({...It,...t.labels})),i=e.computed(()=>t.adapter.emails(t.contact)),r=e.ref(!1),s=e.ref(-1),a=e.ref(null),c=e.ref(""),l=e.ref(""),f=e.ref(!1),u=e.ref(!1),m=e.ref(!1),h=e.ref(!1),w=e.ref(-1),k=async V=>{V&&(await navigator.clipboard.writeText(V),O.UI.Notify.Success(o.value.copiedEmail))},N=V=>{var y,I;s.value=V,a.value=i.value[V],c.value=t.adapter.emailValue(i.value[V]),l.value=((I=(y=t.adapter).emailDescription)==null?void 0:I.call(y,i.value[V]))??"",r.value=!0},$=async()=>{if(!a.value||!c.value){O.UI.Notify.Warning(o.value.enterEmail);return}f.value=!0;try{Object.assign(a.value,{...a.value,email:c.value,description:l.value}),await t.adapter.updateEmail(a.value),r.value=!1,O.UI.Notify.Success(o.value.saved)}catch{O.UI.Notify.Error("Ошибка при сохранении")}finally{f.value=!1}},E=async()=>{u.value=!0;try{await t.adapter.addEmail(t.contact),N(i.value.length-1)}catch{O.UI.Notify.Error("Ошибка при добавлении")}finally{u.value=!1}},M=V=>{w.value=V,h.value=!0},b=async()=>{var V,y;m.value=!0;try{const I=i.value[w.value];await t.adapter.removeEmail((y=(V=t.adapter).emailId)==null?void 0:y.call(V,I)),i.value.splice(w.value,1),h.value=!1,O.UI.Notify.Success(o.value.deleted)}catch{O.UI.Notify.Error("Ошибка при удалении")}finally{m.value=!1}};return(V,y)=>(e.openBlock(),e.createElementBlock("div",dm,[e.createElementVNode("div",fm,[e.createElementVNode("div",um,[e.createVNode(e.unref(C.QIcon),{name:"email",size:"16px",color:"primary"}),e.createElementVNode("span",mm,e.toDisplayString(e.unref(o).emailsTitle),1),e.unref(i).length>0?(e.openBlock(),e.createBlock(lo,{key:0,rounded:"",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).length),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(ne,{flat:"",dense:"",icon:"add",label:"Добавить",size:"sm",color:"primary","no-caps":"",loading:e.unref(u),onClick:E},null,8,["loading"])]),e.unref(i).length>0?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,name:"list",tag:"div",class:"column q-gutter-xs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(I,D)=>{var te,Se,ye,Me,tt,ct;return e.openBlock(),e.createElementBlock("div",{key:((Se=(te=n.adapter).emailId)==null?void 0:Se.call(te,I))??D,class:e.normalizeClass(["row items-center justify-between q-pa-sm bg-grey-1 rounded-borders",V.$q.dark.isActive?"":"hover-item"]),style:{border:"1px solid transparent",transition:"all 0.2s ease"}},[e.createElementVNode("div",hm,[e.createVNode(e.unref(C.QIcon),{name:"email",size:"16px",color:"positive"}),e.createElementVNode("div",pm,[e.createElementVNode("div",gm,e.toDisplayString(n.adapter.emailValue(I)),1),(Me=(ye=n.adapter).emailDescription)!=null&&Me.call(ye,I)?(e.openBlock(),e.createElementBlock("div",ym,e.toDisplayString((ct=(tt=n.adapter).emailDescription)==null?void 0:ct.call(tt,I)),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wm,[e.createVNode(ne,{flat:"",round:"",dense:"",icon:"content_copy",size:"sm",color:"grey-6",onClick:Be=>k(n.adapter.emailValue(I))},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("Скопировать email",-1)])]),_:1})]),_:1},8,["onClick"]),e.createVNode(ne,{flat:"",round:"",dense:"",icon:"edit",size:"sm",color:"grey-6",onClick:Be=>N(D)},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("Редактировать",-1)])]),_:1})]),_:1},8,["onClick"]),D>=n.presetted?(e.openBlock(),e.createBlock(ne,{key:0,flat:"",round:"",dense:"",icon:"delete",size:"sm",color:"negative",onClick:Be=>M(D)},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[6]||(y[6]=[e.createTextVNode("Удалить email",-1)])]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])],2)}),128))]),_:1})):(e.openBlock(),e.createElementBlock("div",bm,[e.createVNode(e.unref(C.QIcon),{name:"email",size:"32px",color:"grey-4",class:"q-mb-sm"}),e.createElementVNode("div",Sm,e.toDisplayString(e.unref(o).noEmails),1),y[7]||(y[7]=e.createElementVNode("div",{class:"text-caption text-grey-5 q-mb-sm"},"Нажмите «Добавить», чтобы указать email",-1)),e.createVNode(ne,{icon:"add",label:"Добавить email",color:"primary",outline:"",size:"sm",loading:e.unref(u),onClick:E},null,8,["loading"])])),e.createVNode(fo,{modelValue:e.unref(r),"onUpdate:modelValue":y[2]||(y[2]=I=>e.isRef(r)?r.value=I:null),icon:"email",title:"Редактирование email",saving:e.unref(f),onSave:$},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createBlock(et,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":y[0]||(y[0]=I=>e.isRef(c)?c.value=I:null),dense:"",autofocus:"",label:"Email адрес",type:"email",class:"q-mb-md",rules:[I=>!!I||e.unref(o).enterEmail,I=>!I||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I)||"Некорректный email"],"lazy-rules":"",outlined:"","bg-color":"grey-1"},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"email",color:"primary"})]),_:1},8,["modelValue","rules"])):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createBlock(et,{key:1,modelValue:e.unref(l),"onUpdate:modelValue":y[1]||(y[1]=I=>e.isRef(l)?l.value=I:null),dense:"",label:"Описание (например: Рабочая, Личная)",outlined:"","bg-color":"grey-1"},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"notes",color:"grey-6"})]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","saving"]),e.createVNode(co,{modelValue:e.unref(h),"onUpdate:modelValue":y[3]||(y[3]=I=>e.isRef(h)?h.value=I:null),title:"Удалить email адрес?",subtitle:"Это действие нельзя отменить.",loading:e.unref(m),onConfirm:b},null,8,["modelValue","loading"])]))}}),[["__scopeId","data-v-f39373c3"]]),Cm={class:"q-mt-sm"},km={class:"row items-center justify-between q-mb-xs q-px-xs"},xm={class:"row items-center q-gutter-xs"},Em={class:"text-uppercase text-caption text-weight-medium text-grey-7"},Bm={class:"row items-center q-gutter-sm",style:{"min-width":"0",flex:"1"}},Vm={style:{"min-width":"0"}},Nm={class:"text-body2 text-weight-medium text-grey-9 ellipsis"},$m={key:0,class:"text-caption text-grey-6 ellipsis"},Tm={class:"row items-center no-wrap q-gutter-xs"},Pm={key:1,class:"column items-center q-py-lg bg-grey-1 rounded-borders"},Mm={class:"text-body2 text-grey-7"},yn=F(e.defineComponent({__name:"PContactFormViewPhones",props:{presetted:{},contact:{},adapter:{},labels:{}},setup(n){const t=n,o=e.computed(()=>({...It,...t.labels})),i=e.computed(()=>t.adapter.phones(t.contact)),r=e.ref(!1),s=e.ref(-1),a=e.ref(null),c=e.ref(""),l=e.ref(""),f=e.ref(!1),u=e.ref(!1),m=e.ref(!1),h=e.ref(!1),w=e.ref(-1),k=async V=>{V&&(await navigator.clipboard.writeText(V),O.UI.Notify.Success(o.value.copiedNumber))},N=V=>{var y,I;s.value=V,a.value=i.value[V],c.value=t.adapter.phoneNumber(i.value[V]),l.value=((I=(y=t.adapter).phoneDescription)==null?void 0:I.call(y,i.value[V]))??"",r.value=!0},$=async()=>{if(!a.value||!c.value){O.UI.Notify.Warning(o.value.enterPhone);return}f.value=!0;try{Object.assign(a.value,{...a.value,number:c.value,description:l.value}),await t.adapter.updatePhone(a.value),r.value=!1,O.UI.Notify.Success(o.value.saved)}catch{O.UI.Notify.Error("Ошибка при сохранении")}finally{f.value=!1}},E=async()=>{u.value=!0;try{await t.adapter.addPhone(t.contact),N(i.value.length-1)}catch{O.UI.Notify.Error("Ошибка при добавлении")}finally{u.value=!1}},M=V=>{w.value=V,h.value=!0},b=async()=>{var V,y;m.value=!0;try{const I=i.value[w.value];await t.adapter.removePhone((y=(V=t.adapter).phoneId)==null?void 0:y.call(V,I)),i.value.splice(w.value,1),h.value=!1,O.UI.Notify.Success(o.value.deleted)}catch{O.UI.Notify.Error("Ошибка при удалении")}finally{m.value=!1}};return(V,y)=>(e.openBlock(),e.createElementBlock("div",Cm,[e.createElementVNode("div",km,[e.createElementVNode("div",xm,[e.createVNode(e.unref(C.QIcon),{name:"phone",size:"16px",color:"primary"}),e.createElementVNode("span",Em,e.toDisplayString(e.unref(o).phonesTitle),1),e.unref(i).length>0?(e.openBlock(),e.createBlock(lo,{key:0,rounded:"",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).length),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(ne,{flat:"",dense:"",icon:"add",label:"Добавить",size:"sm",color:"primary","no-caps":"",loading:e.unref(u),onClick:E},null,8,["loading"])]),e.unref(i).length>0?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,name:"list",tag:"div",class:"column q-gutter-xs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(I,D)=>{var te,Se,ye,Me,tt,ct;return e.openBlock(),e.createElementBlock("div",{key:((Se=(te=n.adapter).phoneId)==null?void 0:Se.call(te,I))??D,class:e.normalizeClass(["row items-center justify-between q-pa-sm bg-grey-1 rounded-borders",V.$q.dark.isActive?"":"hover-item"]),style:{border:"1px solid transparent",transition:"all 0.2s ease"}},[e.createElementVNode("div",Bm,[e.createVNode(e.unref(C.QIcon),{name:"phone",size:"16px",color:"positive"}),e.createElementVNode("div",Vm,[e.createElementVNode("div",Nm,e.toDisplayString(n.adapter.phoneNumber(I)),1),(Me=(ye=n.adapter).phoneDescription)!=null&&Me.call(ye,I)?(e.openBlock(),e.createElementBlock("div",$m,e.toDisplayString((ct=(tt=n.adapter).phoneDescription)==null?void 0:ct.call(tt,I)),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Tm,[e.createVNode(ne,{flat:"",round:"",dense:"",icon:"content_copy",size:"sm",color:"grey-6",onClick:Be=>k(n.adapter.phoneNumber(I))},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("Скопировать номер",-1)])]),_:1})]),_:1},8,["onClick"]),e.createVNode(ne,{flat:"",round:"",dense:"",icon:"edit",size:"sm",color:"grey-6",onClick:Be=>N(D)},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("Редактировать",-1)])]),_:1})]),_:1},8,["onClick"]),D>=n.presetted?(e.openBlock(),e.createBlock(ne,{key:0,flat:"",round:"",dense:"",icon:"delete",size:"sm",color:"negative",onClick:Be=>M(D)},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...y[6]||(y[6]=[e.createTextVNode("Удалить номер",-1)])]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])],2)}),128))]),_:1})):(e.openBlock(),e.createElementBlock("div",Pm,[e.createVNode(e.unref(C.QIcon),{name:"phone",size:"32px",color:"grey-4",class:"q-mb-sm"}),e.createElementVNode("div",Mm,e.toDisplayString(e.unref(o).noPhones),1),y[7]||(y[7]=e.createElementVNode("div",{class:"text-caption text-grey-5 q-mb-sm"},"Нажмите «Добавить», чтобы указать номер",-1)),e.createVNode(ne,{icon:"add",label:"Добавить телефон",color:"primary",outline:"",size:"sm",loading:e.unref(u),onClick:E},null,8,["loading"])])),e.createVNode(fo,{modelValue:e.unref(r),"onUpdate:modelValue":y[2]||(y[2]=I=>e.isRef(r)?r.value=I:null),icon:"phone",title:"Редактирование телефона",saving:e.unref(f),onSave:$},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createBlock(et,{key:0,modelValue:e.unref(c),"onUpdate:modelValue":y[0]||(y[0]=I=>e.isRef(c)?c.value=I:null),mask:n.adapter.phoneMask(e.unref(a)),dense:"",autofocus:"",label:"Номер телефона",class:"q-mb-md",rules:[I=>!!I||e.unref(o).enterPhone],"lazy-rules":"",outlined:"","bg-color":"grey-1"},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"phone",color:"primary"})]),_:1},8,["modelValue","mask","rules"])):e.createCommentVNode("",!0),e.unref(a)&&e.unref(s)>=n.presetted?(e.openBlock(),e.createBlock(et,{key:1,modelValue:e.unref(l),"onUpdate:modelValue":y[1]||(y[1]=I=>e.isRef(l)?l.value=I:null),dense:"",label:"Описание (например: Рабочий, Личный)",outlined:"","bg-color":"grey-1"},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"notes",color:"grey-6"})]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue","saving"]),e.createVNode(co,{modelValue:e.unref(h),"onUpdate:modelValue":y[3]||(y[3]=I=>e.isRef(h)?h.value=I:null),title:"Удалить телефонный номер?",subtitle:"Это действие нельзя отменить.",loading:e.unref(m),onConfirm:b},null,8,["modelValue","loading"])]))}}),[["__scopeId","data-v-375fabb6"]]),Im={class:"row items-center q-gutter-sm"},Rm={class:"text-weight-medium text-grey-9"},Am=e.defineComponent({__name:"PContactForm",props:{contact:{},adapter:{},title:{default:It.title},phonesPresetted:{default:3},emailsPresetted:{default:2},margin:{default:"0"},labels:{}},setup(n){const t=n,o=e.computed(()=>({...It,...t.labels})),i=e.computed(()=>t.adapter.phones(t.contact)),r=e.computed(()=>t.adapter.emails(t.contact)),s=e.computed(()=>t.adapter.copyAll(t.contact)),a=e.ref(!1),c=()=>{a.value=!a.value},l=async()=>{const f=s.value;f&&(await navigator.clipboard.writeText(f),O.UI.Notify.Success(o.value.copied))};return(f,u)=>(e.openBlock(),e.createBlock(e.unref(C.QCard),{flat:"",bordered:"",class:"contact-form-card",style:e.normalizeStyle({margin:n.margin})},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"row items-center cursor-pointer q-py-sm q-px-md bg-grey-1",onClick:c},[e.createElementVNode("div",Im,[e.createVNode(ne,{flat:"",round:"",dense:"",icon:e.unref(a)?"keyboard_arrow_right":"keyboard_arrow_down",size:"sm",color:"grey-6"},null,8,["icon"]),e.createVNode(e.unref(C.QIcon),{name:"contact_phone",size:"18px",color:"primary"}),e.createElementVNode("span",Rm,e.toDisplayString(n.title),1),e.unref(i).length+e.unref(r).length>0?(e.openBlock(),e.createBlock(lo,{key:0,outline:"",color:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).length+e.unref(r).length),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(C.QSpace)),e.createElementVNode("div",{class:"row items-center q-gutter-xs",onClick:u[0]||(u[0]=e.withModifiers(()=>{},["stop"]))},[e.unref(s)?(e.openBlock(),e.createBlock(ne,{key:0,flat:"",dense:"",round:"",icon:"content_copy",size:"sm",color:"grey-6",onClick:l},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...u[1]||(u[1]=[e.createTextVNode("Скопировать все контакты",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)])]),e.createVNode(e.unref(C.QSlideTransition),null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[e.createVNode(e.unref(C.QSeparator)),e.createVNode(e.unref(C.QCardSection),{class:"q-pt-xs q-pb-md q-px-md"},{default:e.withCtx(()=>[e.createVNode(yn,{contact:n.contact,adapter:n.adapter,presetted:n.phonesPresetted,labels:e.unref(o)},null,8,["contact","adapter","presetted","labels"]),e.createVNode(e.unref(C.QSeparator),{class:"q-my-sm"}),e.createVNode(gn,{contact:n.contact,adapter:n.adapter,presetted:n.emailsPresetted,labels:e.unref(o)},null,8,["contact","adapter","presetted","labels"])]),_:1})],512),[[e.vShow,!e.unref(a)]])]),_:1})]),_:1},8,["style"]))}}),or=F(Am,[["__scopeId","data-v-327b9235"]]),zm={class:"contact-edit-wrapper"},ir=F(e.defineComponent({__name:"PContactFormEdit",props:{contact:{},adapter:{},phonesPresetted:{default:3},emailsPresetted:{default:2},labels:{}},setup(n){const t=e.computed(()=>({...It}));return(o,i)=>(e.openBlock(),e.createElementBlock("div",zm,[e.createVNode(yn,{contact:n.contact,adapter:n.adapter,presetted:n.phonesPresetted,labels:e.unref(t)},null,8,["contact","adapter","presetted","labels"]),i[0]||(i[0]=e.createElementVNode("div",{class:"edit-sections-divider"},null,-1)),e.createVNode(gn,{contact:n.contact,adapter:n.adapter,presetted:n.emailsPresetted,labels:e.unref(t)},null,8,["contact","adapter","presetted","labels"])]))}}),[["__scopeId","data-v-14530e9f"]]),Dm={class:"edit-emails-wrapper"},rr=F(e.defineComponent({__name:"PContactFormEditEmails",props:{contact:{},adapter:{},presetted:{default:2},labels:{}},setup(n){const t=e.computed(()=>({...It}));return(o,i)=>(e.openBlock(),e.createElementBlock("div",Dm,[e.createVNode(gn,{contact:n.contact,adapter:n.adapter,presetted:n.presetted,labels:e.unref(t)},null,8,["contact","adapter","presetted","labels"])]))}}),[["__scopeId","data-v-2f0b3c6b"]]),Fm={class:"edit-phones-wrapper"},sr=F(e.defineComponent({__name:"PContactFormEditPhones",props:{contact:{},adapter:{},presetted:{default:3},labels:{}},setup(n){const t=e.computed(()=>({...It}));return(o,i)=>(e.openBlock(),e.createElementBlock("div",Fm,[e.createVNode(yn,{contact:n.contact,adapter:n.adapter,presetted:n.presetted,labels:e.unref(t)},null,8,["contact","adapter","presetted","labels"])]))}}),[["__scopeId","data-v-59e80623"]]),Om={class:"contact-view-wrapper"},ar=F(e.defineComponent({__name:"PContactFormView",props:{contact:{},adapter:{},labels:{}},setup(n){const t=e.computed(()=>({...It}));return(o,i)=>(e.openBlock(),e.createElementBlock("div",Om,[e.createVNode(yn,{contact:n.contact,adapter:n.adapter,labels:e.unref(t)},null,8,["contact","adapter","labels"]),i[0]||(i[0]=e.createElementVNode("div",{class:"view-sections-divider"},null,-1)),e.createVNode(gn,{contact:n.contact,adapter:n.adapter,labels:e.unref(t)},null,8,["contact","adapter","labels"])]))}}),[["__scopeId","data-v-3747c197"]]);function Sa(n){n.component("PContactForm",or),n.component("PContactFormDeleteDialog",co),n.component("PContactFormEdit",ir),n.component("PContactFormEditDialog",fo),n.component("PContactFormEditEmails",rr),n.component("PContactFormEditPhones",sr),n.component("PContactFormView",ar),n.component("PContactFormViewEmails",gn),n.component("PContactFormViewPhones",yn)}const Lm=Object.freeze(Object.defineProperty({__proto__:null,PContactForm:or,PContactFormDeleteDialog:co,PContactFormEdit:ir,PContactFormEditDialog:fo,PContactFormEditEmails:rr,PContactFormEditPhones:sr,PContactFormView:ar,PContactFormViewEmails:gn,PContactFormViewPhones:yn,default:Sa,defaultContactsLabels:It},Symbol.toStringTag,{value:"Module"}));class wn{constructor(t){d(this,"id");d(this,"name","");d(this,"score",0);d(this,"order",0);d(this,"showMoreQuestions",!1);d(this,"showOther",!1);d(this,"fieldId");d(this,"isMatrixY",!1);O.H.Classes.BuildClass(this,t)}static Create(t){const o=new wn;return o.id=O.H.Id.UUID(),o.fieldId=t,o}}class Ca{constructor(t){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fieldId");O.H.Classes.BuildClass(this,t)}}class lr{constructor(t){d(this,"id");d(this,"name","");d(this,"order",0);O.H.Classes.BuildClass(this,t)}}class Dn{constructor(t){d(this,"id");d(this,"name","");d(this,"fieldId");O.H.Classes.BuildClass(this,t)}static Create(t){const o=new Dn;return o.id=O.H.Id.UUID(),o.fieldId=t,o}}var _m=Object.defineProperty,uo=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&_m(t,o,r),r};const bn=class xi{constructor(t){d(this,"id");d(this,"name","");d(this,"code","");d(this,"valueTypeId");d(this,"order",0);d(this,"ageCompare",!1);d(this,"answerVariants",[]);d(this,"answerVariantsForDelete",[]);d(this,"fieldExamples",[]);d(this,"fieldVariants",[]);d(this,"valueType",new ga);d(this,"fieldMeasures",[]);d(this,"showSet",!1);d(this,"showRadio",!1);d(this,"isEdit",!1);d(this,"children",[]);d(this,"parentId");d(this,"formSectionId");d(this,"selected",!1);O.H.Classes.BuildClass(this,t),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(t=>!t.isMatrixY)}getMatrixY(){return this.answerVariants.filter(t=>t.isMatrixY)}static Create(t){const o=new xi;return o.id=O.H.Id.UUID(),o.formSectionId=t,o}getRegisterPropertyRadioOriginalValue(t){const o=this.answerVariants.find(i=>i.id===t);return o?o.name:""}addRadioItem(t){const o=new wn(t);o.order=this.answerVariants.length,this.answerVariants.push(o)}removeRadioItem(t){const o=this.answerVariants[t].id;o&&this.answerVariantsForDelete.push(o),this.answerVariants.splice(t,1)}changeRelation(t){const o=t.find(i=>i.id===this.valueTypeId);if(o){if(o.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(o.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=o}}editRegisterProperty(t){this.isEdit=t??!this.isEdit}sortExamples(){this.fieldExamples.forEach((t,o)=>t.order=o)}addRegisterPropertyMeasure(t){this.fieldMeasures.push(new lr(t))}addRegisterPropertyVariant(){this.fieldVariants.push(new Dn)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(t){this.valueType=t,this.valueTypeId=t.id}setName(t){this.name=t}addAnswerVariant(){const t=wn.Create(this.id);return t.name="Вариант",t.order=this.answerVariants.length,this.answerVariants.push(t),t}addChild(){const t=xi.Create();return t.parentId=this.id,t.name="Вопрос",t.order=this.children.length,this.children.push(t),t}addFieldVariant(){const t=Dn.Create(this.id);return this.fieldVariants.push(t),t}copy(){const t=new xi(this);return t.id=O.H.Id.UUID(),t.answerVariants.forEach(o=>{o.id=O.H.Id.UUID(),o.fieldId=t.id}),t.children=t.children.map(o=>{const i=o.copy();return i.parentId=t.id,i}),t}};uo([O.H.Classes.GetClassConstructor(wn)],bn.prototype,"answerVariants"),uo([O.H.Classes.GetClassConstructor(Ca)],bn.prototype,"fieldExamples"),uo([O.H.Classes.GetClassConstructor(Dn)],bn.prototype,"fieldVariants"),uo([O.H.Classes.GetClassConstructor(lr)],bn.prototype,"fieldMeasures"),uo([O.H.Classes.GetClassConstructor(bn)],bn.prototype,"children");let Zo=bn;class cr{constructor(t){d(this,"id");d(this,"answerId");d(this,"comment","");d(this,"fileInfoId");d(this,"fileInfo",new $t);O.H.Classes.BuildClass(this,t)}}class Sn{constructor(t){d(this,"id");d(this,"answerVariantId");d(this,"answerVariantIdY");d(this,"fieldFillId");O.H.Classes.BuildClass(this,t)}static Create(t,o){const i=new Sn;return i.id=Zt(),i.fieldFillId=t,i.answerVariantId=o,i}static GetClassName(){return"selectedAnswerVariant"}}var Hm=Object.defineProperty,dr=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Hm(t,o,r),r};const Jo=class rs{constructor(t){d(this,"id");d(this,"valueString");d(this,"valueOther");d(this,"valueNumber");d(this,"valueDate");d(this,"fileInfo",new $t);d(this,"fileInfoId");d(this,"order",0);d(this,"selectedAnswerVariants",[]);d(this,"patientId");d(this,"fieldId");d(this,"formFillId");d(this,"answerVariantId");d(this,"filled",!1);d(this,"researchResultId");d(this,"answerFiles",[]);d(this,"answerFilesForDelete",[]);O.H.Classes.BuildClass(this,t)}setFilled(t){this.filled=t}static Create(t,o){const i=new rs;return i.id=Zt(),i.fieldId=t.id,i.formFillId=o,i.order=t.order,i.valueNumber=0,i.valueString="",i.valueDate=new Date,i}setString(t){this.valueString=t,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(t){this.valueNumber=t,this.valueNumber&&(this.filled=!0)}setOther(t){this.valueOther=t,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(t){this.valueDate=t,this.filled=!!t}setRadio(t){this.answerVariantId=t,this.filled=!!this.answerVariantId}static CreateMany(t,o){return t.map(i=>rs.Create(i,o))}addFile(){const t=new cr;return t.id=Zt(),t.answerId=this.id,this.answerFiles.push(t),t}getFileInfos(){const t=[];return this.answerFiles.forEach(o=>t.push(o.fileInfo)),t}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(t,o){const i=Sn.Create(this.id,t);return i.answerVariantIdY=o,this.selectedAnswerVariants.push(i),this.filled=!0,i}getMatrixValue(t,o){return this.selectedAnswerVariants.find(i=>i.answerVariantId===t&&i.answerVariantIdY===o)}addSelectedAnswerVariant(t){const o=Sn.Create(this.id,t);return this.selectedAnswerVariants.push(o),this.filled=!0,o}static GetClassName(){return"answer"}showOther(t){const o=t.find(i=>i.showOther);return o?this.answerVariantId===o.id||this.selectedAnswerVariants.some(i=>i.answerVariantId===o.id):!1}};dr([O.H.Classes.IsDate],Jo.prototype,"valueDate"),dr([O.H.Classes.GetClassConstructor(Sn)],Jo.prototype,"selectedAnswerVariants"),dr([O.H.Classes.GetClassConstructor(cr)],Jo.prototype,"answerFiles");let Fn=Jo;class Um{constructor(t){d(this,"id");d(this,"fieldId");O.H.Classes.BuildClass(this,t)}static GetClassName(){return"fieldFilter"}}var vm=Object.defineProperty,qm=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&vm(t,o,r),r};const ka=class dc{constructor(t){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"fields",[]);d(this,"formId");O.H.Classes.BuildClass(this,t)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(t){return`${this.getN()}.${t+1}`}getSubFieldN(t,o){return`${this.getFieldN(t)}.${o+1}`}static Create(t){const o=new dc;return o.id=O.H.Id.UUID(),o.formId=t,o}addField(){const t=Zo.Create(this.id);return this.fields.push(t),this.sortFields(),t}sortFields(){this.fields.forEach((t,o)=>t.order=o)}getAnswerVariants(){const t=[];return this.fields.forEach(o=>t.push(...o.answerVariants)),t}};qm([O.H.Classes.GetClassConstructor(Zo)],ka.prototype,"fields");let Ko=ka;var jm=Object.defineProperty,Wm=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&jm(t,o,r),r};const xa=class fc{constructor(t){d(this,"id");d(this,"name","");d(this,"order",0);d(this,"isLaboratory",!1);d(this,"formSections",[]);d(this,"isEdit",!1);d(this,"withDates",!1);d(this,"withScores",!1);d(this,"selectedForExport",!1);d(this,"filterString","");d(this,"showOnlyNotFilled",!1);d(this,"showOnlyFilled",!1);O.H.Classes.BuildClass(this,t)}static GetClassName(){return"Form"}static Create(){const t=new fc;return t.id=O.H.Id.UUID(),t}editRegisterGroup(t){this.isEdit=t??!this.isEdit}addFormSection(){const t=Ko.Create(this.id);return this.formSections.push(t),O.H.Sorter.Sort(this.formSections),t}getFields(){const t=this.formSections.map(i=>i.fields).flat(),o=t.map(i=>i.children).flat();return t.concat(o).filter(i=>i.children.length===0)}};Wm([O.H.Classes.GetClassConstructor(Ko)],xa.prototype,"formSections");let Ea=xa;var Gm=Object.defineProperty,Qm=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Gm(t,o,r),r};const Ba=class uc{constructor(t){d(this,"id");d(this,"date",new Date);d(this,"editMode",!1);d(this,"userFormId");d(this,"fillingPercentage",0);d(this,"fieldFills",[]);d(this,"num","");d(this,"formId");O.H.Classes.BuildClass(this,t)}static Create(t){const o=new uc;return o.id=O.H.Id.UUID(),o.formId=t.id,o.fieldFills.push(...Fn.CreateMany(t.getFields(),o.id)),o}addFieldFill(t){this.fieldFills.push(t)}getFieldFill(t){var o;return(o=this.fieldFills)==null?void 0:o.find(i=>i.fieldId===t)}pushRegisterProperty(t){const o=new Fn;o.researchResultId=t,this.fieldFills.push(o)}getRegisterPropertyToPatient(t){return this.fieldFills.filter(o=>o.researchResultId===t)}getOrCreateFieldFill(t){let o=this.getFieldFill(t.id);return o||(o=Fn.Create(t),this.addFieldFill(o)),o}getFileInfos(){const t=[];return this.fieldFills.forEach(o=>t.push(...o.getFileInfos())),t}calculateFilling(){const t=this.fieldFills.filter(i=>i.filled).length,o=this.fieldFills.length;this.fillingPercentage=Math.round(t/o*100)}getFieldFillByFieldId(t){return this.fieldFills.find(o=>o.fieldId===t)}getFieldVariantFieldFill(t){return this.fieldFills.find(o=>o.answerVariantId===t)}getFieldsFieldFillsMap(t){const o={};return t.forEach(i=>{var r;if(i.code){const s=(r=this.getFieldFillByFieldId(i.id))==null?void 0:r.valueNumber;o[i.code]=s}}),o}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};Qm([O.H.Classes.GetClassConstructor(Fn)],Ba.prototype,"fieldFills");let Va=Ba;const Ym=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:wn,Field:Zo,FieldExample:Ca,FieldFill:Fn,FieldFillFile:cr,FieldFilter:Um,FieldMeasure:lr,FieldVariant:Dn,Form:Ea,FormFill:Va,FormSection:Ko,SelectedAnswerVariant:Sn},Symbol.toStringTag,{value:"Module"}));let Xm=class extends Ee{constructor(){super(wn,"answer-variants")}};const Zm=new Xm;let Jm=class extends Ee{constructor(){super(Fn,"field-fills")}};const Km=new Jm;let eh=class extends Ee{constructor(){super(Zo,"fields")}};const th=new eh;let nh=class extends Ee{constructor(){super(Va,"form-fills")}};const oh=new nh;let ih=class extends Ee{constructor(){super(Ko,"form-sections")}};const rh=new ih;let sh=class extends Ee{constructor(){super(Ea,"forms")}};const ah=new sh;let lh=class extends Ee{constructor(){super(Sn,"selected-answer-variants")}};const ch=new lh,dh=Object.freeze(Object.defineProperty({__proto__:null,C:Ym,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:Zm,FieldFills:Km,Fields:th,FormFills:oh,FormSections:rh,Forms:ah,SelectedAnswerVariants:ch},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ei{constructor(t){d(this,"id");d(this,"name","");d(this,"link","");d(this,"selected",!1);d(this,"hide",!1);d(this,"editMode",!1);d(this,"color","");d(this,"background","");d(this,"order",0);d(this,"menuId");d(this,"iconId");d(this,"icon",new $t);d(this,"iconName","");d(this,"svgCode","");ee.BuildClass(this,t)}addFile(t){this.icon.id||(this.icon.id=nt.UUID()),this.icon.originalName=t.name,this.icon.file=t.raw}}var fh=Object.defineProperty,uh=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&fh(t,o,r),r};class fr{constructor(t){d(this,"id");d(this,"name","");d(this,"link","");d(this,"top",!0);d(this,"side",!0);d(this,"show",!1);d(this,"hide",!1);d(this,"active",!1);d(this,"order",0);d(this,"selected",!1);d(this,"editMode",!1);d(this,"subMenus",[]);d(this,"subMenusForDelete",[]);d(this,"iconId");d(this,"icon",new $t);ee.BuildClass(this,t)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const t=[];return t.push(this.icon),this.subMenus.forEach(o=>{t.push(o.icon)}),t}addFile(t){this.icon.id||(this.icon.id=nt.UUID()),this.icon.originalName=t.name,this.icon.file=t.raw}addSubMenu(){this.subMenus.push(new ei)}removeSubMenu(t){const o=this.subMenus[t].id;o&&this.subMenusForDelete.push(o),this.subMenus.splice(t,1)}setColorsForSubMenus(){const t=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let o=0;this.subMenus.forEach(i=>{i.color=t[o],o=t.length-1?o=0:o++})}containPath(t){return this.link===t||!!this.subMenus.find(o=>o.link===t)}static GetClassName(){return"menu"}}uh([ee.GetClassConstructor(ei)],fr.prototype,"subMenus");const mh=Object.freeze(Object.defineProperty({__proto__:null,Menu:fr,SubMenu:ei},Symbol.toStringTag,{value:"Module"}));let hh=class extends O.H.BaseStore{constructor(){super(fr,"menus")}};const ph=new hh;let gh=class extends O.H.BaseStore{constructor(){super(ei,"sub-menus")}};const yh=new gh,wh=Object.freeze(Object.defineProperty({__proto__:null,C:mh,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:ph,SubMenus:yh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Ht{constructor(t){d(this,"id");d(this,"name","");d(this,"description","");d(this,"startTime","");d(this,"endTime","");d(this,"scheduleId");d(this,"sessionId");d(this,"payload",{});O.H.Classes.BuildClass(this,t)}static Create(t){const o=new Ht;return o.id=O.H.Id.UUID(),o.scheduleId=t,o.startTime="9:00",o.endTime="9:30",o}}var bh=Object.defineProperty,Sh=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&bh(t,o,r),r};const Na=class mc{constructor(t){d(this,"id");d(this,"name","");d(this,"description","");d(this,"startTime","");d(this,"endTime","");d(this,"scheduleId");d(this,"slots",[]);O.H.Classes.BuildClass(this,t)}static Create(t){const o=new mc;return o.id=O.H.Id.UUID(),o.scheduleId=t,o.startTime="9:00",o.endTime="9:30",o}};Sh([O.H.Classes.GetClassConstructor(Ht)],Na.prototype,"slots");let On=Na;var Ch=Object.defineProperty,$a=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&Ch(t,o,r),r};const ur=class hc{constructor(t){d(this,"id");d(this,"name","");d(this,"description","");d(this,"scheduleDayId");d(this,"placeId");d(this,"sessions",[]);d(this,"slots",[]);O.H.Classes.BuildClass(this,t)}static Create(t,o){const i=new hc;return i.id=O.H.Id.UUID(),i.placeId=t,i.scheduleDayId=o,i}addSession(){const t=On.Create(this.id);return this.sessions.push(t),t}addSlot(){const t=Ht.Create(this.id);return this.slots.push(t),t}};$a([O.H.Classes.GetClassConstructor(On)],ur.prototype,"sessions"),$a([O.H.Classes.GetClassConstructor(Ht)],ur.prototype,"slots");let mo=ur;var kh=Object.defineProperty,xh=(n,t,o,i)=>{for(var r=void 0,s=n.length-1,a;s>=0;s--)(a=n[s])&&(r=a(t,o,r)||r);return r&&kh(t,o,r),r};const Ta=class pc{constructor(t){d(this,"id");d(this,"date",new Date(0));d(this,"description","");d(this,"ownerId");d(this,"ownerType","");d(this,"schedules",[]);O.H.Classes.BuildClass(this,t)}static Create(t,o,i=new Date){const r=new pc;return r.id=O.H.Id.UUID(),r.ownerId=t,r.ownerType=o||"",r.date=i,r}};xh([O.H.Classes.GetClassConstructor(mo)],Ta.prototype,"schedules");let ti=Ta;class Ln{constructor(t){d(this,"id");d(this,"name","");d(this,"description","");d(this,"color","");O.H.Classes.BuildClass(this,t)}static Create(){const t=new Ln;return t.id=O.H.Id.UUID(),t}}const Eh=Object.freeze(Object.defineProperty({__proto__:null,Schedule:mo,ScheduleDay:ti,SchedulePlace:Ln,ScheduleSession:On,ScheduleSlot:Ht},Symbol.toStringTag,{value:"Module"})),ae=n=>n?O.H.Time.HMtoM(n):NaN,Je=n=>O.H.Time.ConcatHM(Math.floor(n/60),n%60),Cn=n=>{if(!n)return"";const t=O.H.Time.HmsToHm(n);return/^\d{1,2}:\d{2}$/.test(t)?t:""},_n=(n,t)=>O.H.Time.DiffM(n,t),xt=(n,t)=>O.H.Time.AddMtoHM(n,t),mr=(n,t)=>{const o=ae(n.startTime),i=ae(t.startTime);return isFinite(o)?isFinite(i)?o-i:-1:1},ho=(n,t)=>{const o=ae(n.startTime),i=ae(n.endTime),r=ae(t.startTime),s=ae(t.endTime);return!isFinite(o)||!isFinite(i)||!isFinite(r)||!isFinite(s)?!1:o<s&&r<i},po=(n,t)=>Math.round(n/t)*t,Pa=(n,t=8*60,o=20*60)=>{let i=t,r=o;for(const{item:c}of n){const l=ae(c.startTime),f=ae(c.endTime);isFinite(l)&&(i=Math.min(i,l)),isFinite(f)&&(r=Math.max(r,f))}const s=Math.floor(i/60)*60,a=Math.ceil(r/60)*60;return{start:s,end:a,total:a-s||60}},Ma=(n,t)=>{const o=ae(n.item.startTime),i=ae(n.item.endTime);if(!isFinite(o)||!isFinite(i))return{top:"0%",height:"48px"};const r=(o-t.start)/t.total*100,s=Math.max((i-o)/t.total*100,2.5);return{top:r+"%",height:s+"%"}},Ia=(n,t)=>{const o=ae(n.startTime),i=ae(n.endTime);if(!isFinite(o)||!isFinite(i)||i<=o)return{top:"0%",height:"auto"};const r=i-o,s=ae(t.startTime),a=ae(t.endTime),c=isFinite(s)?Math.max((s-o)/r*100,0):0;let l=isFinite(s)&&isFinite(a)?(a-s)/r*100:8;return l=Math.min(Math.max(l,3),100-c),{top:c+"%",height:l+"%"}},Ra=(n,t,o)=>n.some(i=>i.item.id===t.item.id||t.kind==="session"&&i.kind==="slot"&&i.item.sessionId===t.item.id?!1:o(t.item,i.item)),Aa=(n,t,o)=>n.some(i=>i.id!==t.id&&o(t,i)),za=(n,t,o,i)=>{if(!(!isFinite(t)||!isFinite(o)||o<=t))return(n||[]).find(r=>{const s=i(r.startTime),a=i(r.endTime);return isFinite(s)&&isFinite(a)&&t>=s&&o<=a})},Da=n=>n<26?"h-tiny":n<34?"h-short":n<60?"h-medium":"h-full",hr={hall:"Зал",halls:"Залы",session:"Секция",sessions:"Секции",slot:"Событие",slots:"События",addHall:"Добавить зал",addSession:"Добавить секцию",addSlot:"Добавить событие",addDay:"Добавить день",deleteDay:"Удалить день",deleteDayConfirm:"Удалить день {date}? Вместе с ним будут удалены все залы, секции и события.",deleteHall:"Удалить расписание (зал)",noDays:"Сначала укажите даты",noHalls:"Для этого дня не добавлены залы.",date:"Дата",newHallPlaceholder:"Название нового зала",create:"Создать",close:"Закрыть",save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",grid:"Сетка",list:"Список",startTime:"Начало",endTime:"Конец",sessionSelect:"Секция",sessionsTitle:"Секции",slotsTitle:"События",noSlots:"Пусто",noSlotsInDay:"Докладов нет",conflictTitle:"Пересечение с другим блоком в этом зале",changeDurationTitle:"Изменить длительность",gridStepTitle:"Шаг сетки при перетаскивании и изменении длительности",gridZoomTitle:"Масштаб: сколько пикселей на час",viewTitle:"Вид: сетка по часам или список",gridHint:"Перетаскивайте блоки мышью или пальцем — в другой зал или на другое время. Блоки не сдвигают друг друга: пересечения подсвечиваются красным. Событие, брошенное внутрь секции, автоматически становится её частью. Секции помечены фиолетовым корешком. Клик по блоку — редактирование, нижняя кромка — длительность, двойной клик по пустому месту — новое событие.",listHint:"Перетаскивайте строки — порядок сохраняется, время блоков при этом не меняется.",alreadyAdded:"Зал уже добавлен в этот день",selectDayFirst:"Сначала выберите день",cannotCreate:"Не удалось добавить зал: сервер не ответил",createFailed:"Ошибка при добавлении зала",hallCreated:"Зал «{name}» создан",hallCreateFailed:"Не удалось создать зал",hallNotAdded:"Не удалось добавить зал: сервер не ответил",dayAdded:"День добавлен",saveEventFirst:"Сначала сохраните",correctStartTime:"Укажите корректное время начала",name:"Название",description:"Описание",participants:"Участники",enterName:"Введите название",intoSession:"в секцию",conflictCount:"пересечение"},Fa={createDay(n){return ti.Create(void 0,void 0,n)},createSchedule(n,t){return mo.Create(n,t)},createSession(n){const t=(n==null?void 0:n.sessions)||[],o=t[t.length-1],i=(o==null?void 0:o.endTime)||"9:00",r=On.Create(n==null?void 0:n.id);return r.startTime=i,r.endTime=O.H.Time.AddMtoHM(i,30),r},createSlot(n){return Ht.Create(n==null?void 0:n.id)},createPlace(n){const t=Ln.Create();return t.name=n||"",t}},Bh={class:"date-field"},Vh=F(e.defineComponent({__name:"DateField",props:{modelValue:{default:""},label:{default:""}},emits:["update:modelValue"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(!1),s=e.ref(""),a=e.computed(()=>{if(!o.modelValue)return"";const f=new Date(`${o.modelValue}T00:00:00`);return isNaN(f.getTime())?o.modelValue:f.toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})});e.watch(r,f=>{f&&(s.value=o.modelValue||"")});const c=()=>{i("update:modelValue",s.value),r.value=!1},l=()=>{r.value=!1};return(f,u)=>(e.openBlock(),e.createElementBlock("div",Bh,[e.createVNode(e.unref(C.QInput),{"model-value":a.value,label:n.label,dense:"",outlined:"",readonly:"",class:"date-field__input","hide-bottom-space":""},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"event",size:"18px",class:"text-grey-6"})]),append:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"expand_more",size:"18px",class:"cursor-pointer text-grey-6"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QPopupProxy),{modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=m=>r.value=m),"transition-show":"scale","transition-hide":"scale"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{class:"date-field__popup",bordered:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QDate),{modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=m=>s.value=m),mask:"YYYY-MM-DD",color:"primary",navigation:"","today-btn":""},null,8,["modelValue"]),e.createVNode(e.unref(C.QCardActions),{align:"right",class:"q-pt-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QBtn),{flat:"",dense:"",label:"Отмена",color:"grey-7",onClick:l}),e.createVNode(e.unref(C.QBtn),{flat:"",dense:"",label:"Готово",color:"primary",onClick:c})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","label"])]))}}),[["__scopeId","data-v-5eaf00e0"]]),Nh={class:"time-field"},Hn=F(e.defineComponent({__name:"TimeField",props:{modelValue:{default:""},label:{default:""}},emits:["update:modelValue"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(!1),s=e.ref("09:00"),a=m=>{const h=/^(\d{1,2}):(\d{2})$/.exec((m??"").trim());return h?`${h[1].padStart(2,"0")}:${h[2]}`:"09:00"},c=m=>{const h=/^(\d{2}):(\d{2})$/.exec(m??"");return h?`${Number(h[1])}:${h[2]}`:m},l=e.computed(()=>o.modelValue||"");e.watch(r,m=>{m&&(s.value=a(o.modelValue))});const f=()=>{i("update:modelValue",c(s.value)),r.value=!1},u=()=>{r.value=!1};return(m,h)=>(e.openBlock(),e.createElementBlock("div",Nh,[e.createVNode(e.unref(C.QInput),{"model-value":l.value,label:n.label,dense:"",outlined:"",readonly:"",class:"time-field__input","hide-bottom-space":""},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"schedule",size:"18px",class:"text-grey-6"})]),append:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"expand_more",size:"18px",class:"cursor-pointer text-grey-6"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QPopupProxy),{modelValue:r.value,"onUpdate:modelValue":h[1]||(h[1]=w=>r.value=w),"transition-show":"scale","transition-hide":"scale"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{class:"time-field__popup",bordered:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QTime),{modelValue:s.value,"onUpdate:modelValue":h[0]||(h[0]=w=>s.value=w),format24h:"",color:"primary",class:"q-pa-sm"},null,8,["modelValue"]),e.createVNode(e.unref(C.QCardActions),{align:"right",class:"q-pt-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QBtn),{flat:"",dense:"",label:"Отмена",color:"grey-7",onClick:u}),e.createVNode(e.unref(C.QBtn),{flat:"",dense:"",label:"Готово",color:"primary",onClick:f})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model-value","label"])]))}}),[["__scopeId","data-v-5c1e0137"]]),$h={class:"schedule-admin"},Th={key:0,class:"no-days text-center text-grey q-py-xl"},Ph={class:"schedule-toolbar row items-center q-gutter-sm q-mb-md"},Mh={key:0,class:"day-tabs-wrap row items-center"},Ih={class:"day-tab-label"},Rh={key:3,class:"row items-center q-gutter-xs zoom-control"},Ah={key:0,class:"grid-view"},zh={key:0,class:"text-grey text-center q-py-lg"},Dh={class:"grid-header"},Fh={class:"row items-center justify-center q-gutter-xs"},Oh={class:"ellipsis"},Lh={class:"time-gutter"},_h=["data-schedule-id","onDblclick","onContextmenu"],Hh=["title","onPointerdown","onClick","onContextmenu"],Uh={class:"block-content"},vh={class:"block-time"},qh={class:"block-name ellipsis"},jh={key:0,class:"block-speakers ellipsis"},Wh={key:0,class:"session-perfoms"},Gh=["title","onPointerdown","onClick","onContextmenu"],Qh={class:"nested-time"},Yh={class:"nested-name ellipsis"},Xh={key:0,class:"nested-speakers ellipsis"},Zh=["title","onPointerdown"],Jh={class:"block-actions"},Kh=["title","onPointerdown"],ep=["title"],tp={class:"session-spine-name"},np={class:"block-time"},op={key:0,class:"session-badge"},ip={key:1,class:"conflict-badge"},rp={class:"block-name ellipsis"},sp={class:"text-caption text-grey-6 q-pa-xs"},ap={key:1,class:"list-view"},lp={class:"row items-center q-gutter-sm"},cp={class:"text-subtitle2"},dp={key:0,class:"sub-block"},fp={class:"sub-title"},up={class:"list-row session-row"},mp={key:0,class:"nested-list"},hp={class:"col-4 ellipsis"},pp={class:"time-text"},gp={class:"sub-block"},yp={class:"sub-title"},wp={class:"list-row slot-row"},bp={key:0,class:"text-grey text-center q-py-sm"},Sp={class:"text-caption text-grey-6 q-mb-sm"},Cp={class:"text-h6"},kp={class:"row items-center q-gutter-sm q-mb-md"},xp={key:0,class:"text-grey text-center q-py-md"},Ep={class:"col ellipsis"},Bp={class:"text-h6"},Vp={class:"text-h6"},Np={class:"row q-col-gutter-sm q-mb-sm"},$p={class:"col-6"},Tp={class:"col-6"},Pp=["onClick"],Oa="schedule-grid-step",La="schedule-grid-zoom",Mp=15,Ip=60,_a=6,Ha=F(e.defineComponent({__name:"ScheduleGridEditor",props:{days:{},places:{},persist:{},labels:{default:()=>({})},factories:{default:()=>({})},hallName:{type:Function,default:void 0},dayTitle:{type:Function,default:void 0},slotName:{type:Function,default:void 0},slotSubtitle:{type:Function,default:void 0},sessionName:{type:Function,default:void 0},slotListOf:{type:Function,default:void 0},nestedSlotListOf:{type:Function,default:void 0},sessionsEnabled:{type:Boolean,default:!0},daysEnabled:{type:Boolean,default:!0},placesEnabled:{type:Boolean,default:!0}},setup(n){var ic,rc;const t=n,o=e.computed(()=>t.sessionsEnabled!==!1),i=e.computed(()=>t.daysEnabled!==!1),r=e.computed(()=>t.placesEnabled!==!1),s=e.computed(()=>({...hr,duplicate:"Дублировать",...t.labels})),a=e.computed(()=>({...Fa,...t.factories})),c=p=>t.slotListOf?t.slotListOf(p):(p==null?void 0:p.slots)||[],l=p=>t.nestedSlotListOf?t.nestedSlotListOf(p):(p==null?void 0:p.slots)||[],f=p=>(p==null?void 0:p.name)||s.value.hall,u=p=>t.sessionName?t.sessionName(p):(p==null?void 0:p.name)||`${s.value.session} ${(p==null?void 0:p.startTime)||""}–${(p==null?void 0:p.endTime)||""}`.trim(),m=p=>t.slotName?t.slotName(p):(p==null?void 0:p.name)||s.value.slot,h=p=>t.slotSubtitle?t.slotSubtitle(p):"",w=e.ref("grid"),k=e.ref((rc=(ic=t.days)==null?void 0:ic[0])==null?void 0:rc.id),N=e.ref(!1),$=e.ref(""),E=e.ref(!1),M=e.ref(!1),b=e.ref(null),V=e.ref(null),y=e.ref(null),I=e.ref(void 0),D=e.ref(null),te=e.ref(null),Se=e.ref(!1),ye=e.ref(0),Me=e.ref(null),tt=[{label:"5 мин",value:5},{label:"10 мин",value:10},{label:"15 мин",value:15},{label:"30 мин",value:30}],ct=[{label:"20 px/ч",value:20},{label:"30 px/ч",value:30},{label:"40 px/ч",value:40},{label:"60 px/ч",value:60},{label:"90 px/ч",value:90},{label:"120 px/ч",value:120},{label:"160 px/ч",value:160},{label:"200 px/ч",value:200},{label:"240 px/ч",value:240}],Be=e.computed(()=>[{label:s.value.grid,value:"grid",icon:"calendar_view_week"},{label:s.value.list,value:"list",icon:"view_list"}]),Bt=(p,g,S)=>{const P=Number(localStorage.getItem(p));return g.includes(P)?P:S},dt=e.ref(Bt(Oa,tt.map(p=>p.value),Mp)),bt=e.ref(Bt(La,ct.map(p=>p.value),Ip)),St=e.computed(()=>dt.value);e.watch(dt,p=>localStorage.setItem(Oa,String(p))),e.watch(bt,p=>localStorage.setItem(La,String(p)));const nn=e.computed(()=>Math.max(Ce.value.total/60*bt.value,360)),ft=e.computed(()=>nn.value+"px"),ue=e.computed(()=>[...t.days||[]].sort((p,g)=>new Date(p.date).getTime()-new Date(g.date).getTime())),v=e.computed(()=>ue.value.find(p=>p.id===k.value));e.watch(()=>ue.value.map(p=>p.id).join(","),()=>{var p;(!k.value||!ue.value.some(g=>g.id===k.value))&&(k.value=(p=ue.value[0])==null?void 0:p.id)});const Ue=p=>{if(t.dayTitle)return t.dayTitle(p);const g=new Date(p.date);return isNaN(g.getTime())||g.getFullYear()<2e3?"Дата":g.toLocaleDateString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"})},Gt=p=>{const g=new Date(p);return isNaN(g.getTime())||g.getFullYear()<2e3?"":g.toISOString().slice(0,10)},be=async(p,g)=>{g&&(p.date=new Date(g),await t.persist.updateDay(p),await t.persist.refresh())},de=p=>{b.value=p,M.value=!0},Ke=async()=>{const p=b.value;M.value=!1,b.value=null,await Qt(p)},Qt=async p=>{var S;if(!p)return;for(const P of $e(p))await at(P);await t.persist.removeDay(p);const g=(t.days||[]).indexOf(p);g>=0&&t.days.splice(g,1),await t.persist.refresh(),k.value=(S=ue.value[0])==null?void 0:S.id},xn=async()=>{var L,Q;const p=ue.value,g=p[p.length-1],S=g?new Date(new Date(g.date).getTime()+864e5):new Date;let P;try{P=a.value.createDay(S)}catch{t.persist.notify("warning",s.value.saveEventFirst);return}try{await((Q=(L=t.persist).createDay)==null?void 0:Q.call(L,P));for(const fe of t.places||[])await rn(fe,P);await t.persist.refresh()}catch{t.persist.notify("negative",s.value.createFailed);return}k.value=P.id,t.persist.notify("positive",`${s.value.dayAdded}: ${Ue(P)}`)},$e=p=>((p==null?void 0:p.schedules)||[]).slice().sort((g,S)=>{const P=Vt(g),L=Vt(S);return P.localeCompare(L,"ru")}),Vt=p=>{if(t.hallName)return t.hallName(p);const g=p.place||(t.places||[]).find(S=>S.id===p.placeId);return(g==null?void 0:g.name)||s.value.hall},ve=()=>{N.value=!0},on=e.computed(()=>{const p=v.value,g=new Set(((p==null?void 0:p.schedules)||[]).map(S=>S.placeId));return(t.places||[]).filter(S=>!g.has(S.id))}),rn=async(p,g)=>{if(t.persist.bindPlaceToDay){await t.persist.bindPlaceToDay(p,g,a.value.createSchedule);return}const S=a.value.createSchedule(p.id,g.id);await t.persist.createSchedule(S)},qe=async p=>{N.value=!1;const g=v.value;if(!g){t.persist.notify("warning",s.value.selectDayFirst);return}if($e(g).some(S=>S.placeId===p.id)){t.persist.notify("warning",s.value.alreadyAdded);return}try{await rn(p,g)}catch(S){console.warn("addPlaceToDay failed:",S),t.persist.notify("negative",s.value.createFailed),await t.persist.refresh();return}await t.persist.refresh(),k.value=g.id},K=async()=>{var S,P,L;const p=(S=$.value)==null?void 0:S.trim();if(!p){t.persist.notify("warning",s.value.enterName);return}const g=a.value.createPlace(p);try{if(!await((L=(P=t.persist).createPlace)==null?void 0:L.call(P,g))){t.persist.notify("negative",s.value.hallCreateFailed);return}}catch(Q){console.warn("createPlace failed:",Q),t.persist.notify("negative",s.value.hallCreateFailed);return}$.value="",await qe(g),t.persist.notify("positive",s.value.hallCreated.replace("{name}",p))},Ie=async p=>{await at(p);const g=Ct(p);g&&(g.schedules=(g.schedules||[]).filter(S=>S.id!==p.id)),await t.persist.refresh()},at=async p=>{for(const g of p.sessions||[]){for(const S of l(g))await t.persist.removeSlot(S);await t.persist.removeSession(g)}for(const g of c(p))await t.persist.removeSlot(g);await t.persist.removeSchedule(p)},Ct=p=>(t.days||[]).find(g=>(g.schedules||[]).some(S=>S.id===p.id)),lt=p=>[...l(p)].sort(mr),En=p=>(p.sessions||[]).some(g=>l(g).length>0),Dt=new WeakMap,Co=p=>{const g=Dt.get(p),S=c(p);if(g&&g.src===S)return g.list;const P=new Set((p.sessions||[]).map(Q=>Q.id)),L=S.filter(Q=>!Q.sessionId||!P.has(Q.sessionId));return Dt.set(p,{src:S,list:L}),L},Gn=p=>[...o.value?(p.sessions||[]).map(g=>({kind:"session",item:g})):[],...Co(p).map(g=>({kind:"slot",item:g}))],Yr=p=>o.value?(p.sessions||[]).map(g=>({kind:"session",item:g})):[],Ce=e.computed(()=>{var g,S;const p=(((g=v.value)==null?void 0:g.schedules)||[]).flatMap(P=>Gn(P));for(const P of((S=v.value)==null?void 0:S.schedules)||[])for(const L of P.sessions||[])p.push(...lt(L).map(Q=>({kind:"slot",item:Q})));return Pa(p)}),Xr=e.computed(()=>{const p=[];for(let g=Ce.value.start;g<=Ce.value.end;g+=60)p.push({min:g,label:Je(g)});return p}),Zr=e.computed(()=>{const p=[];for(let g=Ce.value.start+30;g<Ce.value.end;g+=60)p.push({min:g,label:Je(g)});return p}),gi=p=>Ma(p,Ce.value),ko=e.computed(()=>{if(!D.value||!y.value)return{};const p=Ce.value,g=(D.value.minutes-p.start)/p.total*100,S=Math.max(y.value.duration/p.total*100,2.5);return{top:g+"%",height:S+"%"}}),B=e.computed(()=>!D.value||!y.value?"":Je(D.value.minutes+y.value.duration)),T=e.computed(()=>{if(!D.value)return{};const p=Ce.value,g=(D.value.minutes-p.start)/p.total*100,S=Math.max(St.value/p.total*100,1.5);return{top:g+"%",height:S+"%"}}),R=e.computed(()=>{var L,Q,fe,Ne,Re;if(!D.value||!y.value||!y.value.id)return 0;const p=Qn(D.value.scheduleId);if(!p)return 0;const g={startTime:D.value.time,endTime:B.value},S=(L=D.value.session)==null?void 0:L.id;let P=0;for(const A of Gn(p))A.item.id!==((Q=y.value)==null?void 0:Q.id)&&(((fe=y.value)==null?void 0:fe.kind)==="slot"&&A.kind==="session"&&A.item.id===S||ho(g,A.item)&&P++);if(((Ne=y.value)==null?void 0:Ne.kind)==="slot"&&D.value.session)for(const A of lt(D.value.session))A.id!==((Re=y.value)==null?void 0:Re.id)&&ho(g,A)&&P++;return P}),_=e.computed(()=>R.value>0),Z=(p,g)=>Ra(Gn(p),g,ho),Te=(p,g)=>Aa(lt(p),g,ho),Ve=(p,g)=>Ia(p,g),oe=p=>{const g=Ce.value,S=ae(p.item.startTime),P=ae(p.item.endTime);return!isFinite(S)||!isFinite(P)?48:(P-S)/g.total*nn.value},H=p=>Da(oe(p)),q=p=>{const g=t.slotName?t.slotName(p.item):p.item.name||(p.kind==="session"?s.value.session:s.value.slot);if(p.kind==="slot"&&H(p)!=="h-full"){const S=h(p.item);if(S)return`${g} — ${S}`}return g},j=(p,g)=>{const S=m(p);if(g!=="h-full"){const P=h(p);if(P)return`${S} — ${P}`}return S},W=p=>{const g=`${p.item.startTime||"?"}–${p.item.endTime||"?"}`;if(p.kind==="slot"){const S=h(p.item);return[m(p.item),g,S?`${s.value.participants}: ${S}`:""].filter(Boolean).join(`
|
|
23
|
-
`)}return[u(p.item),g].filter(Boolean).join(`
|
|
24
|
-
`)},re=p=>{const g=h(p);return[m(p),`${p.startTime}–${p.endTime}`,g?`${s.value.participants}: ${g}`:""].filter(Boolean).join(`
|
|
25
|
-
`)},pe=(p,g)=>{var S;return{conflict:Te(p.item,g),dragging:((S=Ft.value)==null?void 0:S.perfom.id)===g.id,[H(p)]:!0}},ge=e.ref(null),je=(p,g)=>{const S=p.getBoundingClientRect(),P=Math.min(Math.max((g-S.top)/S.height,0),1);return Ce.value.start+po(P*Ce.value.total,St.value)},yi=(p,g)=>{g.target.closest(".block-actions, .block-resize")||g.button!==0||Se.value||(ge.value={gi:p,startX:g.clientX,startY:g.clientY,moved:!1},window.addEventListener("pointermove",wi),window.addEventListener("pointerup",Ll),window.addEventListener("pointercancel",es),window.addEventListener("keydown",Hl))},wi=p=>{const g=ge.value;if(g){if(!g.moved){if(Math.hypot(p.clientX-g.startX,p.clientY-g.startY)<_a)return;g.moved=!0;const S=_n(g.gi.item.startTime,g.gi.item.endTime);y.value={kind:g.gi.kind,id:g.gi.item.id,name:g.gi.item.name||(g.gi.kind==="session"?s.value.session:s.value.slot),duration:isFinite(S)&&S>0?S:30},document.body.style.userSelect="none",document.body.style.cursor="grabbing"}Jr(p.clientX,p.clientY),fb(p.clientX,p.clientY)}},Jr=(p,g)=>{var Ne,Re;const S=document.elementFromPoint(p,g),P=S==null?void 0:S.closest(".hall-col"),L=P==null?void 0:P.getAttribute("data-schedule-id");if(!P||!L){I.value=void 0,D.value=null;return}const Q=Qn(L);if(!Q)return;I.value=Q.id;const fe=je(P,g);D.value={scheduleId:Q.id,minutes:fe,time:Je(fe),hallName:Vt(Q),...((Ne=y.value)==null?void 0:Ne.kind)==="slot"&&o.value?{session:Si(Q.sessions,fe,fe+(((Re=y.value)==null?void 0:Re.duration)||30),ae)}:{}},te.value={x:p,y:g}},fb=(p,g)=>{const S=Me.value;if(!S)return;const P=S.getBoundingClientRect();g<P.top+48?S.scrollTop-=14:g>P.bottom-48&&(S.scrollTop+=14),p<P.left+48?S.scrollLeft-=14:p>P.right-48&&(S.scrollLeft+=14)},Ll=p=>{ub(p)},ub=async p=>{const g=ge.value;if(Kr(),ge.value=null,!g||!g.moved)return;ye.value=Date.now();const S=document.elementFromPoint(p.clientX,p.clientY),P=S==null?void 0:S.closest(".hall-col"),L=P==null?void 0:P.getAttribute("data-schedule-id"),Q=L?Qn(L):void 0;if(P&&Q){const fe=je(P,p.clientY);await jl(Q,fe)}_l()},Kr=()=>{window.removeEventListener("pointermove",wi),window.removeEventListener("pointerup",Ll),window.removeEventListener("pointercancel",es),window.removeEventListener("keydown",Hl)},_l=()=>{ge.value=null,y.value=null,I.value=void 0,D.value=null,te.value=null,document.body.style.userSelect="",document.body.style.cursor="",ye.value=Date.now()},es=()=>{Kr(),_l()},Hl=p=>{p.key==="Escape"&&es()};e.onBeforeUnmount(()=>{Kr(),ns(),xb(),document.body.style.userSelect="",document.body.style.cursor=""});const bi=p=>{if(!p)return null;for(const g of t.days||[])for(const S of g.schedules||[]){const P=(S.sessions||[]).find(Q=>Q.id===p);if(P)return{kind:"session",item:P,schedule:S};const L=c(S).find(Q=>Q.id===p);if(L)return{kind:"slot",item:L,schedule:S}}return null},mb=()=>{var p;return bi((p=y.value)==null?void 0:p.id)},hb=(p,g)=>{g.preventDefault(),g.stopPropagation();const S=p.item,P=ae(S.startTime),L=ae(S.endTime);if(!isFinite(P)||!isFinite(L))return;const Q=g.clientY;Se.value=!0;const fe=A=>{const G=(A.clientY-Q)/bt.value*60,J=po(L+G,St.value);S.endTime=Je(Math.max(J,P+St.value))},Ne=async()=>{window.removeEventListener("pointermove",fe),window.removeEventListener("pointerup",Re),Se.value=!1,ye.value=Date.now();const A=bi(S.id);A&&(await sn(S,A.kind),await t.persist.refresh())},Re=()=>{Ne()};window.addEventListener("pointermove",fe),window.addEventListener("pointerup",Re)},Ft=e.ref(null),pb=(p,g,S)=>{if(S.target.closest(".nested-edit, .nested-resize")||S.button!==0||Se.value)return;const P=S.target.closest(".session-perfoms"),L=ae(p.startTime),Q=ae(p.endTime),fe=_n(g.startTime,g.endTime);!P||!isFinite(L)||!isFinite(Q)||Q<=L||(Ft.value={perfom:g,session:p,startX:S.clientX,startY:S.clientY,moved:!1,savedStart:g.startTime,savedEnd:g.endTime,sessionStart:L,sessionDur:Q-L,durMin:isFinite(fe)&&fe>0?fe:30,container:P},window.addEventListener("pointermove",Ul),window.addEventListener("pointerup",vl),window.addEventListener("pointercancel",ts),window.addEventListener("keydown",ql))},Ul=p=>{const g=Ft.value;if(!g)return;if(!g.moved){if(Math.hypot(p.clientX-g.startX,p.clientY-g.startY)<_a)return;g.moved=!0,document.body.style.userSelect="none",document.body.style.cursor="grabbing"}const S=g.container.getBoundingClientRect(),P=Math.min(Math.max((p.clientY-S.top)/S.height,0),1);let L=g.sessionStart+po(P*g.sessionDur,St.value);const Q=g.sessionStart+g.sessionDur-g.durMin;L=Math.min(Math.max(L,g.sessionStart),Math.max(Q,g.sessionStart)),g.perfom.startTime=Je(L),g.perfom.endTime=Je(L+g.durMin),te.value={x:p.clientX,y:p.clientY}},vl=p=>{gb(p)},gb=async p=>{var fe;const g=Ft.value;if(ns(),Ft.value=null,te.value=null,document.body.style.userSelect="",document.body.style.cursor="",!g||!g.moved)return;ye.value=Date.now();const S=document.elementFromPoint(p.clientX,p.clientY),P=S==null?void 0:S.closest(".hall-col"),L=P==null?void 0:P.getAttribute("data-schedule-id"),Q=L?Qn(L):void 0;if(P&&Q){y.value={kind:"slot",id:g.perfom.id,name:g.perfom.name||s.value.slot,duration:g.durMin};const Ne=je(P,p.clientY),Re=Je(Ne),A=_n(g.perfom.startTime,g.perfom.endTime),G=xt(Re,A>0?A:30),J=((fe=Ql(g.perfom))==null?void 0:fe.id)===Q.id&&g.perfom.startTime===Re&&g.perfom.endTime===G;await jl(Q,Ne),J&&(await t.persist.updateSlot(g.perfom),await t.persist.refresh()),y.value=null;return}g.perfom.startTime=Cn(g.perfom.startTime),g.perfom.endTime=Cn(g.perfom.endTime),g.perfom.startTime&&(await t.persist.updateSlot(g.perfom),await t.persist.refresh())},ts=()=>{const p=Ft.value;ns(),p&&(p.perfom.startTime=p.savedStart,p.perfom.endTime=p.savedEnd),Ft.value=null,te.value=null,document.body.style.userSelect="",document.body.style.cursor=""},ns=()=>{window.removeEventListener("pointermove",Ul),window.removeEventListener("pointerup",vl),window.removeEventListener("pointercancel",ts),window.removeEventListener("keydown",ql)},ql=p=>{p.key==="Escape"&&ts()},yb=(p,g,S)=>{S.preventDefault(),S.stopPropagation();const P=ae(p.startTime),L=ae(p.endTime),Q=ae(g.startTime),fe=S.target.closest(".nested-perfom"),Ne=fe==null?void 0:fe.closest(".session-perfoms");if(!fe||!Ne||!isFinite(P)||!isFinite(L)||L<=P||!isFinite(Q))return;const Re=Ne.getBoundingClientRect(),A=L-P;Se.value=!0;const G=Yt=>{const Pb=Math.min(Math.max((Yt.clientY-Re.top)/Re.height,0),1),Mb=Math.min(Math.max(Q+St.value,P+po(Pb*A,St.value)),L);g.endTime=Je(Mb)},J=async()=>{window.removeEventListener("pointermove",G),window.removeEventListener("pointerup",Y),Se.value=!1,ye.value=Date.now(),await t.persist.updateSlot(g),await t.persist.refresh()},Y=()=>{J()};window.addEventListener("pointermove",G),window.addEventListener("pointerup",Y)},jl=async(p,g)=>{var G;I.value=void 0,D.value=null,te.value=null;const S=mb();if(!S)return;const P=Je(g),L=_n(S.item.startTime,S.item.endTime),Q=xt(P,L>0?L:30);if(((G=S.schedule)==null?void 0:G.id)===p.id&&S.item.startTime===P&&S.item.endTime===Q)return;const fe=S.item.startTime;if(S.item.startTime=P,S.item.endTime=Q,S.kind==="slot"&&o.value){const J=Si(p.sessions,ae(P),ae(Q),ae);J?S.item.sessionId=J.id:delete S.item.sessionId}else S.kind==="slot"&&delete S.item.sessionId;if(S.kind==="session"){const J=ae(P)-ae(fe);for(const Y of lt(S.item))Y.startTime&&(Y.startTime=xt(Y.startTime,J),Y.endTime&&(Y.endTime=xt(Y.endTime,J)),Y.scheduleId=p.id,await sn(Y,"slot"))}const Ne=S.schedule,Re=S.kind==="session"?p.sessions:c(p),A=S.item;if(Ne&&Ne.id!==p.id){A.scheduleId=p.id;const J=S.kind==="session"?Ne.sessions:c(Ne);O.H.Classes.RemoveFromClassById(A.id,J,[]),Re.push(A)}await sn(A,S.kind),await t.persist.refresh()},wb=async(p,g)=>{if(g.target.closest(".timeline-block"))return;const S=je(g.currentTarget,g.clientY),P=a.value.createSlot(p);if(P.startTime=Je(S),P.endTime=Je(S+30),o.value){const Q=Si(p.sessions,S,S+30,ae);Q!=null&&Q.id&&(P.sessionId=Q.id)}await t.persist.createSlot(P),await t.persist.refresh();const L=bi(P.id);L&&an(L)},Wl=async(p,g,S)=>{if(p.added){if(p.added.element.scheduleId=g.id,S==="slot"&&p.added.element.sessionId&&((g.sessions||[]).some(L=>L.id===p.added.element.sessionId)||delete p.added.element.sessionId),await sn(p.added.element,S),S==="session")for(const P of l(p.added.element))P.scheduleId=g.id,await t.persist.updateSlot(P);await t.persist.refresh()}},Qn=p=>{for(const g of t.days||[]){const S=(g.schedules||[]).find(P=>P.id===p);if(S)return S}},Si=(p,g,S,P)=>za(p,g,S,P),Gl=p=>o.value?((p==null?void 0:p.sessions)||[]).map(g=>({id:g.id,label:u(g)})):[],Ql=p=>{for(const g of t.days||[])for(const S of g.schedules||[])if(c(S).some(P=>P.id===p.id)||p.sessionId&&(S.sessions||[]).some(P=>P.id===p.sessionId))return S},Yl=e.computed(()=>{const p=V.value;if(p)return p.kind==="session"?Qn(p.item.scheduleId)||Xl(p.item,"session"):Ql(p.item)}),bb=e.computed(()=>{const p=V.value;return!p||p.kind!=="slot"?[]:Gl(Yl.value)}),Xl=(p,g)=>{for(const S of t.days||[])for(const P of S.schedules||[])if(g==="session"){if((P.sessions||[]).some(L=>L.id===p.id))return P}else if(c(P).some(L=>L.id===p.id))return P},Zl=async(p,g)=>{g?p.sessionId=g:delete p.sessionId,await t.persist.updateSlot(p),await t.persist.refresh()},Jl=async p=>{if(!o.value)return;const g=a.value.createSession(p);await t.persist.createSession(g),await t.persist.refresh()},Sb=async(p,g)=>{const S=a.value.createSlot(p);if(S.startTime=Je(g),S.endTime=xt(S.startTime,30),o.value){const L=Si(p.sessions,g,g+30,ae);L!=null&&L.id&&(S.sessionId=L.id)}await t.persist.createSlot(S),await t.persist.refresh();const P=bi(S.id);P&&an(P)},Kl=async p=>{const g=a.value.createSlot(p),S=[...c(p)].sort(mr).slice(-1)[0];g.startTime=Cn(S==null?void 0:S.endTime)||"9:00",g.endTime=xt(g.startTime,30),await t.persist.createSlot(g),await t.persist.refresh()},Ot=e.ref(null),Cb=p=>{Ot.value=null,p.action()},os=(p,g)=>{const S=g.length*34+12;Ot.value={x:Math.min(p.clientX,window.innerWidth-210),y:Math.min(p.clientY,window.innerHeight-S-8),items:g}},ec=()=>{Ot.value=null},tc=()=>{Ot.value=null},nc=p=>{p.key==="Escape"&&(Ot.value=null)},Ci=()=>{Ot.value=null},is=e.ref(!1),kb=()=>{is.value||(window.addEventListener("click",ec),window.addEventListener("contextmenu",tc),window.addEventListener("keydown",nc),window.addEventListener("scroll",Ci,!0),window.addEventListener("resize",Ci),is.value=!0)},xb=()=>{window.removeEventListener("click",ec),window.removeEventListener("contextmenu",tc),window.removeEventListener("keydown",nc),window.removeEventListener("scroll",Ci,!0),window.removeEventListener("resize",Ci),is.value=!1};kb();const Eb=(p,g)=>{const S=[{icon:"edit",label:s.value.edit,action:()=>an(p)},{icon:"content_copy",label:s.value.duplicate,action:()=>void oc(p)},{icon:"delete",label:s.value.delete,danger:!0,action:()=>void xo(p.item,p.kind)}];os(g,S)},Bb=(p,g)=>{const S={kind:"slot",item:p},P=[{icon:"edit",label:s.value.edit,action:()=>an(S)},{icon:"content_copy",label:s.value.duplicate,action:()=>void oc(S)},{icon:"delete",label:s.value.delete,danger:!0,action:()=>void xo(p,"slot")}];os(g,P)},Vb=(p,g)=>{const S=je(g.currentTarget,g.clientY),P=Je(S),L=[{icon:"mic",label:`${s.value.addSlot} · ${P}`,action:()=>void Sb(p,S)}];o.value&&L.push({icon:"groups",label:`${s.value.addSession} · ${P}`,action:()=>void Nb(p,S)}),os(g,L)},Nb=async(p,g)=>{if(!o.value)return;const S=a.value.createSession(p);S.startTime=Je(g),S.endTime=xt(S.startTime,30),await t.persist.createSession(S),await t.persist.refresh()},oc=async p=>{const g=Qn(p.item.scheduleId)||Xl(p.item,p.kind);if(!g)return;const S=_n(p.item.startTime,p.item.endTime)||30,P=Cn(p.item.endTime)||"9:00";if(p.kind==="slot"){const L=a.value.createSlot(g);L.name=p.item.name?`${p.item.name} (копия)`:p.item.name,L.startTime=P,L.endTime=xt(P,S),L.sessionId=p.item.sessionId,p.item.description&&(L.description=p.item.description),p.item.payload&&(L.payload={...p.item.payload}),await t.persist.createSlot(L)}else{const L=a.value.createSession(g);L.name=p.item.name?`${p.item.name} (копия)`:p.item.name,L.startTime=P,L.endTime=xt(P,S),L.scheduleId=g.id,await t.persist.createSession(L)}await t.persist.refresh()},xo=async(p,g)=>{if(g==="slot")await t.persist.removeSlot(p);else{for(const S of l(p))delete S.sessionId,await t.persist.updateSlot(S);await t.persist.removeSession(p)}await t.persist.refresh()},sn=async(p,g)=>{const S=Cn(p.startTime),P=Cn(p.endTime);if(!S){t.persist.notify("warning",s.value.correctStartTime);return}p.startTime=S,p.endTime=P||xt(S,30),g==="slot"?await t.persist.updateSlot(p):await t.persist.updateSession(p)},an=p=>{Se.value||Date.now()-ye.value<400||(V.value={kind:p.kind,item:p.item},E.value=!0)},$b=async()=>{const p=V.value;p&&(await sn(p.item,p.kind),E.value=!1,V.value=null,await t.persist.refresh())},Tb=async()=>{const p=V.value;p&&(await xo(p.item,p.kind),E.value=!1,V.value=null)},ki=(p,g,S,P)=>{p[g]=S,sn(p,P)};return t.persist.loadOptions&&t.persist.loadOptions(),(p,g)=>{var Ne,Re;const S=e.resolveComponent("PButton"),P=e.resolveComponent("PTooltip"),L=e.resolveComponent("PSelect"),Q=e.resolveComponent("PInput"),fe=e.resolveComponent("PDialog");return e.openBlock(),e.createElementBlock("div",$h,[(Ne=n.days)!=null&&Ne.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Ph,[i.value?(e.openBlock(),e.createElementBlock("div",Mh,[e.createVNode(e.unref(C.QTabs),{modelValue:k.value,"onUpdate:modelValue":g[0]||(g[0]=A=>k.value=A),dense:"",class:"day-tabs","active-color":"primary"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ue.value,A=>(e.openBlock(),e.createBlock(e.unref(C.QTab),{key:A.id,name:A.id,class:"day-tab"},{default:e.withCtx(()=>[e.createElementVNode("span",Ih,e.toDisplayString(Ue(A)),1),e.createVNode(e.unref(C.QIcon),{name:"close",size:"14px",class:"day-tab-close",onClick:e.withModifiers(G=>de(A),["stop"])},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.deleteDay),1)]),_:1})]),_:1},8,["onClick"])]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"primary",icon:"add",class:"day-add-btn",onClick:xn},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.addDay),1)]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QSpace)),i.value&&v.value?(e.openBlock(),e.createBlock(Vh,{key:1,"model-value":Gt(v.value.date),label:s.value.date,class:"date-input","onUpdate:modelValue":g[1]||(g[1]=A=>be(v.value,A))},null,8,["model-value","label"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(S,{key:2,size:"sm",color:"primary",outline:"",icon:"add",label:s.value.addHall,onClick:ve},null,8,["label"])):e.createCommentVNode("",!0),w.value==="grid"?(e.openBlock(),e.createElementBlock("div",Rh,[e.createVNode(e.unref(C.QIcon),{name:"grid_on",size:"18px",class:"text-grey-6"}),e.createVNode(L,{modelValue:dt.value,"onUpdate:modelValue":g[2]||(g[2]=A=>dt.value=A),options:tt,clearable:!1,size:"sm",dense:"","hide-bottom-space":"",class:"step-select"},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.gridStepTitle),1)]),_:1})]),_:1},8,["modelValue"]),e.createVNode(e.unref(C.QIcon),{name:"zoom_in",size:"18px",class:"text-grey-6"}),e.createVNode(L,{modelValue:bt.value,"onUpdate:modelValue":g[3]||(g[3]=A=>bt.value=A),options:ct,clearable:!1,size:"sm",dense:"","hide-bottom-space":"",class:"zoom-select"},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.gridZoomTitle),1)]),_:1})]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),e.createVNode(L,{modelValue:w.value,"onUpdate:modelValue":g[4]||(g[4]=A=>w.value=A),options:Be.value,clearable:!1,size:"sm",dense:"","hide-bottom-space":"",class:"view-select"},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.viewTitle),1)]),_:1})]),_:1},8,["modelValue","options"])]),w.value==="grid"?(e.openBlock(),e.createElementBlock("div",Ah,[$e(v.value).length?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"gridScrollRef",ref:Me,class:"grid-scroll"},[e.createElementVNode("div",{class:"grid-wrap",style:e.normalizeStyle({"--halls":$e(v.value).length,"--hours":Math.max(Ce.value.total/60,1),"--half-hours":Math.max(Ce.value.total/60*2,2)})},[e.createElementVNode("div",Dh,[g[19]||(g[19]=e.createElementVNode("div",{class:"time-gutter"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($e(v.value),A=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["hall-head",{"drag-over":I.value===A.id}])},[e.createElementVNode("div",Fh,[e.createVNode(e.unref(C.QIcon),{name:"meeting_room",size:"15px"}),e.createElementVNode("span",Oh,e.toDisplayString(Vt(A)),1),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"primary",icon:"mic",onClick:G=>Kl(A)},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.addSlot),1)]),_:1})]),_:1},8,["onClick"]),o.value?(e.openBlock(),e.createBlock(S,{key:0,size:"sm",flat:"",dense:"",color:"primary",icon:"groups",onClick:G=>Jl(A)},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.addSession),1)]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(S,{key:1,size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:G=>Ie(A)},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.deleteHall),1)]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])],2))),128))]),e.createElementVNode("div",{class:"grid-body",style:e.normalizeStyle({height:ft.value})},[e.createElementVNode("div",Lh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Xr.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.min,class:"hour-label",style:e.normalizeStyle({top:(A.min-Ce.value.start)/Ce.value.total*100+"%"})},e.toDisplayString(A.label),5))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Zr.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.min,class:"half-label",style:e.normalizeStyle({top:(A.min-Ce.value.start)/Ce.value.total*100+"%"})},e.toDisplayString(A.label),5))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($e(v.value),A=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["hall-col",{"drag-over":I.value===A.id}]),"data-schedule-id":A.id,onDblclick:G=>wb(A,G),onContextmenu:e.withModifiers(G=>Vb(A,G),["prevent","stop"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Gn(A),G=>{var J;return e.openBlock(),e.createElementBlock("div",{key:G.item.id,class:e.normalizeClass(["timeline-block",[G.kind,{conflict:Z(A,G),dragging:((J=y.value)==null?void 0:J.id)===G.item.id},H(G)]]),style:e.normalizeStyle(gi(G)),title:W(G),onPointerdown:Y=>yi(G,Y),onClick:Y=>an(G),onContextmenu:e.withModifiers(Y=>Eb(G,Y),["prevent","stop"])},[e.createVNode(e.unref(C.QIcon),{name:"drag_indicator",class:"drag-handle"}),e.createElementVNode("div",Uh,[e.createElementVNode("div",vh,e.toDisplayString(G.item.startTime)+"–"+e.toDisplayString(G.item.endTime),1),e.createElementVNode("div",qh,e.toDisplayString(q(G)),1),G.kind==="slot"&&h(G.item)?(e.openBlock(),e.createElementBlock("div",jh,e.toDisplayString(h(G.item)),1)):e.createCommentVNode("",!0)]),G.kind==="session"&<(G.item).length?(e.openBlock(),e.createElementBlock("div",Wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(lt(G.item),Y=>(e.openBlock(),e.createElementBlock("div",{key:Y.id,class:e.normalizeClass(["nested-perfom",pe(G,Y)]),style:e.normalizeStyle(Ve(G.item,Y)),title:re(Y),onPointerdown:e.withModifiers(Yt=>pb(G.item,Y,Yt),["stop"]),onClick:e.withModifiers(Yt=>an({kind:"slot",item:Y}),["stop"]),onContextmenu:e.withModifiers(Yt=>Bb(Y,Yt),["prevent","stop"])},[e.createElementVNode("div",Qh,e.toDisplayString(Y.startTime)+"–"+e.toDisplayString(Y.endTime),1),e.createElementVNode("div",Yh,e.toDisplayString(j(Y,H(G))),1),h(Y)?(e.openBlock(),e.createElementBlock("div",Xh,e.toDisplayString(h(Y)),1)):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QIcon),{name:"edit",size:"11px",class:"nested-edit"}),e.createElementVNode("div",{class:"nested-resize",title:s.value.changeDurationTitle,onPointerdown:e.withModifiers(Yt=>yb(G.item,Y,Yt),["stop","prevent"])},null,40,Zh)],46,Gh))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",Jh,[Z(A,G)?(e.openBlock(),e.createBlock(e.unref(C.QIcon),{key:0,name:"warning",size:"12px",class:"conflict-icon"},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.conflictTitle),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QIcon),{name:"edit",size:"13px",class:"edit-icon",onClick:e.withModifiers(Y=>an(G),["stop"])},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.edit),1)]),_:1})]),_:1},8,["onClick"])]),e.createElementVNode("div",{class:"block-resize",title:s.value.changeDurationTitle,onPointerdown:e.withModifiers(Y=>hb(G,Y),["stop","prevent"])},null,40,Kh)],46,Hh)}),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Yr(A),G=>{var J;return e.openBlock(),e.createElementBlock("div",{key:"spine-"+G.item.id,class:e.normalizeClass(["session-spine",{dragging:((J=y.value)==null?void 0:J.id)===G.item.id}]),style:e.normalizeStyle(gi(G)),title:u(G.item)},[e.createVNode(e.unref(C.QIcon),{name:"groups",size:"11px"}),e.createElementVNode("span",tp,e.toDisplayString(u(G.item)),1)],14,ep)}),128)),D.value&&D.value.scheduleId===A.id&&y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["drop-zone",{conflict:_.value}]),style:e.normalizeStyle(T.value)},null,6)):e.createCommentVNode("",!0),D.value&&D.value.scheduleId===A.id&&y.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["drop-preview",[y.value.kind,{conflict:_.value}]]),style:e.normalizeStyle(ko.value)},[e.createElementVNode("div",np,[e.createTextVNode(e.toDisplayString(D.value.time)+"–"+e.toDisplayString(B.value)+" ",1),D.value.session?(e.openBlock(),e.createElementBlock("span",op,e.toDisplayString(s.value.intoSession),1)):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock("span",ip," ⚠ "+e.toDisplayString(s.value.conflictCount)+": "+e.toDisplayString(R.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",rp,e.toDisplayString(y.value.name),1)],6)):e.createCommentVNode("",!0)],42,_h))),128))],4),e.createElementVNode("div",sp,e.toDisplayString(s.value.gridHint),1)],4)],512)):(e.openBlock(),e.createElementBlock("div",zh,[e.createTextVNode(e.toDisplayString(s.value.noHalls)+" ",1),r.value?(e.openBlock(),e.createBlock(S,{key:0,flat:"",color:"primary",size:"sm",label:s.value.addHall,onClick:ve},null,8,["label"])):e.createCommentVNode("",!0)])),te.value&&D.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"drag-time-chip",style:e.normalizeStyle({left:te.value.x+"px",top:te.value.y+"px"})},[e.createVNode(e.unref(C.QIcon),{name:"schedule",size:"12px"}),e.createTextVNode(" "+e.toDisplayString(D.value.time)+" · "+e.toDisplayString(D.value.hallName)+" ",1),D.value.session?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[g[20]||(g[20]=e.createTextVNode(" · ",-1)),e.createVNode(e.unref(C.QIcon),{name:"groups",size:"12px"}),e.createTextVNode(" "+e.toDisplayString(s.value.intoSession)+" «"+e.toDisplayString(u(D.value.session))+"» ",1)],64)):e.createCommentVNode("",!0),R.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g[21]||(g[21]=e.createTextVNode(" · ",-1)),e.createVNode(e.unref(C.QIcon),{name:"warning",size:"12px"}),e.createTextVNode(" "+e.toDisplayString(R.value),1)],64)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(Re=Ft.value)!=null&&Re.moved&&te.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:"drag-time-chip",style:e.normalizeStyle({left:te.value.x+"px",top:te.value.y+"px"})},[e.createVNode(e.unref(C.QIcon),{name:"schedule",size:"12px"}),e.createTextVNode(" "+e.toDisplayString(Ft.value.perfom.startTime)+"–"+e.toDisplayString(Ft.value.perfom.endTime)+" · "+e.toDisplayString(s.value.intoSession),1)],4)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($e(v.value),A=>(e.openBlock(),e.createBlock(e.unref(C.QCard),{key:A.id,class:"hall-card q-mb-md"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),{class:"hall-card-head"},{default:e.withCtx(()=>[e.createElementVNode("div",lp,[e.createVNode(e.unref(C.QIcon),{name:"meeting_room",size:"18px",color:"primary"}),e.createElementVNode("span",cp,e.toDisplayString(Vt(A)),1),e.createVNode(e.unref(C.QSpace)),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"primary",icon:"add",label:s.value.session,onClick:G=>Jl(A)},null,8,["label","onClick"]),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"primary",icon:"add",label:s.value.slot,onClick:G=>Kl(A)},null,8,["label","onClick"]),r.value?(e.openBlock(),e.createBlock(S,{key:0,size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:G=>Ie(A)},{default:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.deleteHall),1)]),_:1})]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1024),e.createVNode(e.unref(C.QCardSection),{class:"q-pt-none"},{default:e.withCtx(()=>{var G;return[o.value&&((G=A.sessions)!=null&&G.length)?(e.openBlock(),e.createElementBlock("div",dp,[e.createElementVNode("div",fp,[e.createVNode(e.unref(C.QIcon),{name:"groups",size:"15px"}),e.createTextVNode(" "+e.toDisplayString(s.value.sessionsTitle),1)]),e.createVNode(e.unref(Bo),{list:A.sessions,"item-key":"id",group:"sessions",handle:".drag-handle",class:"draggable-list",onChange:J=>Wl(J,A,"session")},{item:e.withCtx(({element:J})=>[e.createElementVNode("div",up,[e.createVNode(e.unref(C.QIcon),{name:"drag_indicator",class:"drag-handle"}),e.createVNode(Q,{"model-value":J.name,label:s.value.name,dense:"",outlined:"",class:"col-4","onUpdate:modelValue":Y=>J.name=Y,onBlur:Y=>sn(J,"session")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),e.createVNode(Hn,{"model-value":J.startTime,label:s.value.startTime,class:"time-input","onUpdate:modelValue":Y=>ki(J,"startTime",Y,"session")},null,8,["model-value","label","onUpdate:modelValue"]),e.createVNode(Hn,{"model-value":J.endTime,label:s.value.endTime,class:"time-input","onUpdate:modelValue":Y=>ki(J,"endTime",Y,"session")},null,8,["model-value","label","onUpdate:modelValue"]),e.renderSlot(p.$slots,"session-row-extra",{element:J,schedule:A},void 0,!0),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:Y=>xo(J,"session")},null,8,["onClick"])]),lt(J).length?(e.openBlock(),e.createElementBlock("div",mp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(lt(J),Y=>(e.openBlock(),e.createElementBlock("div",{key:Y.id,class:"list-row nested-row"},[e.createVNode(e.unref(C.QIcon),{name:"mic",size:"14px",class:"nested-icon"}),e.createElementVNode("div",hp,e.toDisplayString(m(Y)),1),e.createElementVNode("div",pp,e.toDisplayString(Y.startTime)+"–"+e.toDisplayString(Y.endTime),1),e.createVNode(e.unref(C.QSpace)),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"primary",icon:"edit",onClick:Yt=>an({kind:"slot",item:Y})},null,8,["onClick"])]))),128))])):e.createCommentVNode("",!0)]),_:2},1032,["list","onChange"])])):e.createCommentVNode("",!0),e.createElementVNode("div",gp,[e.createElementVNode("div",yp,[e.createVNode(e.unref(C.QIcon),{name:"mic",size:"15px"}),e.createTextVNode(" "+e.toDisplayString(s.value.slotsTitle),1)]),e.createVNode(e.unref(Bo),{list:Co(A),"item-key":"id",group:"slots",handle:".drag-handle",class:"draggable-list",onChange:J=>Wl(J,A,"slot")},{item:e.withCtx(({element:J})=>[e.createElementVNode("div",wp,[e.createVNode(e.unref(C.QIcon),{name:"drag_indicator",class:"drag-handle"}),e.createVNode(Q,{"model-value":J.name,label:s.value.name,dense:"",outlined:"",class:"col-4","onUpdate:modelValue":Y=>J.name=Y,onBlur:Y=>sn(J,"slot")},null,8,["model-value","label","onUpdate:modelValue","onBlur"]),e.createVNode(Hn,{"model-value":J.startTime,label:s.value.startTime,class:"time-input","onUpdate:modelValue":Y=>ki(J,"startTime",Y,"slot")},null,8,["model-value","label","onUpdate:modelValue"]),e.createVNode(Hn,{"model-value":J.endTime,label:s.value.endTime,class:"time-input","onUpdate:modelValue":Y=>ki(J,"endTime",Y,"slot")},null,8,["model-value","label","onUpdate:modelValue"]),o.value?(e.openBlock(),e.createBlock(L,{key:0,"model-value":J.sessionId,label:s.value.sessionSelect,dense:"",outlined:"",clearable:"",class:"session-select",options:Gl(A),"option-value":"id","option-label":"label","onUpdate:modelValue":Y=>Zl(J,Y)},null,8,["model-value","label","options","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"slot-row-extra",{element:J,schedule:A},void 0,!0),e.createVNode(S,{size:"sm",flat:"",dense:"",color:"negative",icon:"delete",onClick:Y=>xo(J,"slot")},null,8,["onClick"])])]),_:2},1032,["list","onChange"]),!Co(A).length&&!En(A)?(e.openBlock(),e.createElementBlock("div",bp,e.toDisplayString(s.value.noSlotsInDay),1)):e.createCommentVNode("",!0)])]}),_:2},1024)]),_:2},1024))),128)),e.createElementVNode("div",Sp,e.toDisplayString(s.value.listHint),1)]))],64)):(e.openBlock(),e.createElementBlock("div",Th,[e.createVNode(e.unref(C.QIcon),{name:"event_busy",size:"48px",class:"q-mb-sm"}),e.createElementVNode("div",null,e.toDisplayString(s.value.noDays),1),e.createVNode(S,{color:"primary",outline:"",label:s.value.addDay,icon:"event",class:"q-mt-sm",onClick:xn},null,8,["label"])])),e.createVNode(fe,{modelValue:N.value,"onUpdate:modelValue":g[7]||(g[7]=A=>N.value=A)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{style:{width:"700px","max-width":"80vw"}},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),null,{default:e.withCtx(()=>[e.createElementVNode("div",Cp,e.toDisplayString(s.value.addHall),1)]),_:1}),e.createVNode(e.unref(C.QCardSection),null,{default:e.withCtx(()=>[e.createElementVNode("div",kp,[e.createVNode(Q,{modelValue:$.value,"onUpdate:modelValue":g[5]||(g[5]=A=>$.value=A),label:s.value.newHallPlaceholder,dense:"",outlined:"",class:"col",onKeyup:e.withKeys(K,["enter"])},null,8,["modelValue","label"]),e.createVNode(S,{color:"primary",label:s.value.create,icon:"add",dense:"",onClick:K},null,8,["label"])]),e.renderSlot(p.$slots,"places-list",{day:v.value,add:qe},()=>[on.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xp,e.toDisplayString(s.value.noHalls),1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(on.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:"place-row row items-center q-gutter-sm"},[e.createVNode(e.unref(C.QIcon),{name:"meeting_room",size:"16px",color:"primary"}),e.createElementVNode("span",Ep,e.toDisplayString(f(A)),1),e.createVNode(S,{size:"sm",color:"primary",outline:"",label:s.value.addHall,icon:"add",dense:"",onClick:G=>qe(A)},null,8,["label","onClick"])]))),128))],!0)]),_:3}),e.createVNode(e.unref(C.QCardActions),{align:"right"},{default:e.withCtx(()=>[e.createVNode(S,{label:s.value.close,color:"primary",onClick:g[6]||(g[6]=A=>N.value=!1)},null,8,["label"])]),_:1})]),_:3})]),_:3},8,["modelValue"]),e.createVNode(fe,{modelValue:M.value,"onUpdate:modelValue":g[9]||(g[9]=A=>M.value=A)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{style:{width:"420px","max-width":"90vw"}},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),null,{default:e.withCtx(()=>[e.createElementVNode("div",Bp,e.toDisplayString(s.value.deleteDay),1)]),_:1}),e.createVNode(e.unref(C.QCardSection),{class:"q-pt-none"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.deleteDayConfirm.replace("{date}",b.value?Ue(b.value):"")),1)]),_:1}),e.createVNode(e.unref(C.QCardActions),{align:"right"},{default:e.withCtx(()=>[e.createVNode(S,{flat:"",label:s.value.cancel,color:"primary",onClick:g[8]||(g[8]=A=>M.value=!1)},null,8,["label"]),e.createVNode(S,{label:s.value.delete,color:"negative",onClick:Ke},null,8,["label"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(fe,{modelValue:E.value,"onUpdate:modelValue":g[16]||(g[16]=A=>E.value=A)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{style:{width:"640px","max-width":"90vw"}},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),null,{default:e.withCtx(()=>{var A;return[e.createElementVNode("div",Vp,e.toDisplayString(((A=V.value)==null?void 0:A.kind)==="session"?s.value.session:s.value.slot),1)]}),_:1}),V.value?(e.openBlock(),e.createBlock(e.unref(C.QCardSection),{key:0,class:"q-pt-none"},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:V.value.item.name,"onUpdate:modelValue":g[10]||(g[10]=A=>V.value.item.name=A),label:s.value.name,dense:"",outlined:"",class:"q-mb-sm"},null,8,["modelValue","label"]),e.createElementVNode("div",Np,[e.createElementVNode("div",$p,[e.createVNode(Hn,{modelValue:V.value.item.startTime,"onUpdate:modelValue":g[11]||(g[11]=A=>V.value.item.startTime=A),label:s.value.startTime,dense:"",outlined:""},null,8,["modelValue","label"])]),e.createElementVNode("div",Tp,[e.createVNode(Hn,{modelValue:V.value.item.endTime,"onUpdate:modelValue":g[12]||(g[12]=A=>V.value.item.endTime=A),label:s.value.endTime,dense:"",outlined:""},null,8,["modelValue","label"])])]),V.value.kind==="slot"&&o.value?(e.openBlock(),e.createBlock(L,{key:0,"model-value":V.value.item.sessionId,label:s.value.sessionSelect,dense:"",outlined:"",clearable:"",class:"q-mb-sm",options:bb.value,"option-value":"id","option-label":"label","onUpdate:modelValue":g[13]||(g[13]=A=>Zl(V.value.item,A))},null,8,["model-value","label","options"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"edit-form",{kind:V.value.kind,item:V.value.item,schedule:Yl.value},void 0,!0),V.value.kind==="slot"?(e.openBlock(),e.createBlock(Q,{key:1,modelValue:V.value.item.description,"onUpdate:modelValue":g[14]||(g[14]=A=>V.value.item.description=A),label:s.value.description,type:"textarea",rows:"2",dense:"",outlined:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0)]),_:3})):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QCardActions),{align:"right"},{default:e.withCtx(()=>[V.value?(e.openBlock(),e.createBlock(S,{key:0,flat:"",color:"negative",label:s.value.delete,onClick:Tb},null,8,["label"])):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QSpace)),e.createVNode(S,{flat:"",label:s.value.cancel,color:"primary",onClick:g[15]||(g[15]=A=>E.value=!1)},null,8,["label"]),e.createVNode(S,{label:s.value.save,color:"primary",onClick:$b},null,8,["label"])]),_:1})]),_:3})]),_:3},8,["modelValue"]),Ot.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"ctx-menu",style:e.normalizeStyle({left:Ot.value.x+"px",top:Ot.value.y+"px"}),onClick:g[17]||(g[17]=e.withModifiers(()=>{},["stop"])),onContextmenu:g[18]||(g[18]=e.withModifiers(()=>{},["prevent","stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ot.value.items,(A,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,class:e.normalizeClass(["ctx-item",{"ctx-item--danger":A.danger}]),onClick:J=>Cb(A)},[e.createVNode(e.unref(C.QIcon),{name:A.icon,size:"15px"},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(A.label),1)],10,Pp))),128))],36)):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-bda5dfed"]]),Rp={class:"schedule-timeline"},Ap={key:0,class:"timeline-container"},zp={class:"day-header"},Dp={class:"day-title"},Fp={class:"timeline"},Op={key:0,class:"schedule-place"},Lp={class:"events-column"},_p={key:0,class:"event-item session-item"},Hp={class:"event-content"},Up={class:"event-time"},vp={class:"event-main"},qp={class:"event-name"},jp={key:0,class:"speakers-list"},Wp=["onClick"],Gp={class:"speaker-details"},Qp={class:"speaker-name"},Yp={class:"bio-text"},Xp=["onClick"],Zp={key:0,class:"perfom-divider"},Jp={class:"event-content"},Kp={class:"event-time"},eg={class:"event-main"},tg={class:"event-name"},ng={class:"event-badges"},og={key:0,class:"speakers-list"},ig=["onClick"],rg={class:"speaker-details"},sg={class:"speaker-name"},ag={class:"bio-text"},lg={key:1,class:"no-program"},Ua=F(e.defineComponent({__name:"ScheduleTimeline",props:{days:{},dayTitle:{type:Function,default:void 0},placeName:{type:Function,default:void 0},showPlace:{type:Boolean,default:!0},slotName:{type:Function,default:void 0},slotParticipants:{type:Function,default:void 0},sessionParticipants:{type:Function,default:void 0},participantName:{type:Function,default:void 0},participantBio:{type:Function,default:void 0},sessionName:{type:Function,default:void 0},noProgramText:{default:"Программа пока не опубликована"},slotListOf:{type:Function,default:void 0},nestedSlotListOf:{type:Function,default:void 0},slotClickable:{type:Boolean,default:!1}},emits:["open-participant","slot-click"],setup(n,{emit:t}){const o=n,i=t,r=e.computed(()=>({noProgram:o.noProgramText||"Программа пока не опубликована"})),s=b=>{if(o.dayTitle)return o.dayTitle(b);const V=new Date(b.date);return isNaN(V.getTime())||V.getFullYear()<2e3?"":V.toLocaleDateString("ru-RU",{weekday:"long",day:"numeric",month:"long",year:"numeric"})},a=b=>{var V;return o.placeName?o.placeName(b):((V=b.place)==null?void 0:V.name)||b.placeName||""},c=b=>o.slotName?o.slotName(b):(b==null?void 0:b.name)||"",l=b=>o.sessionName?o.sessionName(b):(b==null?void 0:b.name)||"",f=b=>o.slotParticipants?o.slotParticipants(b):(b==null?void 0:b.participants)||[],u=b=>o.sessionParticipants?o.sessionParticipants(b):(b==null?void 0:b.participants)||[],m=b=>{var V,y;return o.participantName?o.participantName(b):(b==null?void 0:b.name)||(b==null?void 0:b.fullName)||((y=(V=b==null?void 0:b.human)==null?void 0:V.getFullName)==null?void 0:y.call(V))||""},h=b=>o.participantBio?o.participantBio(b):(b==null?void 0:b.bio)||(b==null?void 0:b.regalias)||"",w=b=>o.slotListOf?o.slotListOf(b):(b==null?void 0:b.slots)||[],k=b=>o.nestedSlotListOf?o.nestedSlotListOf(b):(b==null?void 0:b.slots)||[],N=b=>b.schedules.filter(V=>{var y;return w(V).length>0||(((y=V.sessions)==null?void 0:y.length)||0)>0}),$=b=>{const V=[],y=new Set((b.sessions||[]).map(D=>D.id));for(const D of b.sessions||[]){V.push({kind:"session",item:D,nested:!1,index:0});for(const te of k(D))V.push({kind:"slot",item:te,nested:!0,index:0})}let I=0;for(const D of w(b).filter(te=>!te.sessionId||!y.has(te.sessionId)))V.push({kind:"slot",item:D,nested:!1,index:I++});return V},E=e.computed(()=>{var b;return(b=o.days)==null?void 0:b.some(V=>{var y;return(y=V.schedules)==null?void 0:y.some(I=>{var D;return w(I).length>0||(((D=I.sessions)==null?void 0:D.length)||0)>0})})}),M=(b,V)=>`${b} - ${V}`;return(b,V)=>(e.openBlock(),e.createElementBlock("div",Rp,[E.value?(e.openBlock(),e.createElementBlock("div",Ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.days,y=>(e.openBlock(),e.createElementBlock("div",{key:y.id,class:"day-section"},[e.createElementVNode("div",zp,[e.createElementVNode("div",Dp,[e.createVNode(e.unref(C.QIcon),{name:"calendar_month",size:"16px",class:"day-icon"}),e.createTextVNode(" "+e.toDisplayString(s(y)),1)])]),e.createElementVNode("div",Fp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N(y),I=>(e.openBlock(),e.createElementBlock("div",{key:I.id,class:"time-slot"},[n.showPlace&&a(I)?(e.openBlock(),e.createElementBlock("div",Op,[e.createVNode(e.unref(C.QIcon),{name:"meeting_room",size:"14px"}),e.createTextVNode(" "+e.toDisplayString(a(I)),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Lp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($(I),D=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:D.item.id},[D.kind==="session"?(e.openBlock(),e.createElementBlock("div",_p,[e.createElementVNode("div",Hp,[e.createElementVNode("div",Up,e.toDisplayString(M(D.item.startTime,D.item.endTime)),1),e.createElementVNode("div",vp,[e.createElementVNode("div",qp,e.toDisplayString(l(D.item)),1),u(D.item).length?(e.openBlock(),e.createElementBlock("div",jp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u(D.item),te=>(e.openBlock(),e.createElementBlock("div",{key:te.id,class:"speaker-item",onClick:Se=>i("open-participant",te)},[e.createElementVNode("div",Gp,[e.createElementVNode("div",Qp,[e.createVNode(e.unref(C.QIcon),{name:"groups",size:"13px",class:"chair-icon"}),e.createTextVNode(" "+e.toDisplayString(m(te)),1)]),e.createElementVNode("div",Yp,e.toDisplayString(h(te)),1)])],8,Wp))),128))])):e.createCommentVNode("",!0)])])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["event-item",[{"event-active":D.item.active,"nested-item":D.nested},{clickable:o.slotClickable}]]),onClick:te=>o.slotClickable&&i("slot-click",D.item)},[!D.nested&&D.index>0?(e.openBlock(),e.createElementBlock("div",Zp)):e.createCommentVNode("",!0),e.createElementVNode("div",Jp,[e.createElementVNode("div",Kp,e.toDisplayString(M(D.item.startTime,D.item.endTime)),1),e.createElementVNode("div",eg,[e.createElementVNode("div",tg,e.toDisplayString(c(D.item)),1),e.createElementVNode("div",ng,[e.renderSlot(b.$slots,"badges",{item:D.item},void 0,!0)]),f(D.item).length?(e.openBlock(),e.createElementBlock("div",og,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(D.item),te=>(e.openBlock(),e.createElementBlock("div",{key:te.id,class:"speaker-item",onClick:Se=>i("open-participant",te)},[e.createElementVNode("div",rg,[e.createElementVNode("div",sg,[e.createVNode(e.unref(C.QIcon),{name:"mic",size:"13px",class:"chair-icon"}),e.createTextVNode(" "+e.toDisplayString(m(te)),1)]),e.createElementVNode("div",ag,e.toDisplayString(h(te)),1)])],8,ig))),128))])):e.createCommentVNode("",!0)])])],10,Xp))],64))),128))])]))),128))])]))),128))])):(e.openBlock(),e.createElementBlock("div",lg,[e.createVNode(e.unref(C.QIcon),{name:"event_note",size:"40px",class:"no-program-icon"}),e.createElementVNode("p",null,e.toDisplayString(r.value.noProgram),1)])),e.renderSlot(b.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-a0112395"]]),cg=Object.freeze(Object.defineProperty({__proto__:null,ScheduleGridEditor:Ha,ScheduleTimeline:Ua},Symbol.toStringTag,{value:"Module"})),dg=Object.freeze(Object.defineProperty({__proto__:null,addMtoHM:xt,blockSizeClass:Da,blockStyle:Ma,byStart:mr,diffM:_n,findEnclosingSession:za,fromMin:Je,gridBounds:Pa,hasConflict:Ra,intersects:ho,nestedConflict:Aa,nestedSlotStyle:Ia,normTime:Cn,snapMinutes:po,toMin:ae},Symbol.toStringTag,{value:"Module"}));let fg=class extends Ee{constructor(){super(ti,"schedule-days")}};const ug=new fg;let mg=class extends Ee{constructor(){super(Ln,"schedule-places")}};const hg=new mg;let pg=class extends Ee{constructor(){super(On,"schedule-sessions")}};const gg=new pg;let yg=class extends Ee{constructor(){super(Ht,"schedule-slots")}};const wg=new yg;let bg=class extends Ee{constructor(){super(mo,"schedule-timetables")}};const Sg=new bg,Cg=Object.freeze(Object.defineProperty({__proto__:null,C:Eh,Components:cg,H:dg,S:Object.freeze(Object.defineProperty({__proto__:null,ScheduleDaysStore:ug,SchedulePlacesStore:hg,ScheduleSessionsStore:gg,ScheduleSlotsStore:wg,SchedulesStore:Sg},Symbol.toStringTag,{value:"Module"})),T:Object.freeze(Object.defineProperty({__proto__:null,defaultFactories:Fa,defaultScheduleLabels:hr},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),pr=e.defineComponent({inheritAttrs:!1,__name:"PChip",props:{label:{type:String,default:""},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},square:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},removable:{type:Boolean,default:!1}},emits:["remove","update:model-value","update:selected"],setup(n,{emit:t}){const o=t,i=e.useAttrs(),r=e.computed(()=>{const s={};for(const a of Object.keys(i))["label","color","text-color","outline","square","dense","removable"].includes(a)||(s[a]=i[a]);return s});return(s,a)=>(e.openBlock(),e.createBlock(e.unref(C.QChip),e.mergeProps(e.unref(r),{label:n.label||void 0,color:n.color||void 0,"text-color":n.textColor||void 0,outline:n.outline,square:n.square,dense:n.dense,removable:n.removable,onRemove:a[0]||(a[0]=c=>o("remove"))}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:2},[s.$slots.avatar?{name:"avatar",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"avatar")]),key:"0"}:void 0,s.$slots.remove?{name:"remove",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"remove")]),key:"1"}:void 0]),1040,["label","color","text-color","outline","square","dense","removable"]))}}),kg={class:"tags-selector"},xg={key:0,class:"empty-state"},ni=F(e.defineComponent({__name:"POptionsListSingle",props:{store:{}},emits:["select"],setup(n,{emit:t}){const o=n,i=e.ref(""),r=o.store.Options,s=e.computed(()=>r.filter(l=>O.H.Strings.SearchIn(l.label,i.value))),a=t;e.onBeforeMount(async()=>{await o.store.GetOptions()});const c=async l=>{await o.store.Get(l.value),a("select",o.store.Item)};return(l,f)=>{const u=e.resolveDirective("ripple");return e.openBlock(),e.createElementBlock("div",kg,[e.createVNode(et,{modelValue:e.unref(i),"onUpdate:modelValue":f[0]||(f[0]=m=>e.isRef(i)?i.value=m:null),placeholder:"Поиск...",dense:"",outlined:"",clearable:"",class:"search-input"},null,8,["modelValue"]),e.createVNode(e.unref(C.QScrollArea),{style:{height:"350px"},class:"q-mt-sm"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QList),{dense:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),m=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(C.QItem),{key:m.value,clickable:"",class:"tag-item",onClick:h=>c(m)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QItemSection),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.label),1)]),_:2},1024)]),_:2},1032,["onClick"])),[[u]])),128)),e.unref(s).length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xg,"Ничего не найдено"))]),_:1})]),_:1})])}}}),[["__scopeId","data-v-e735c5f5"]]),Eg={title:"Редактирование",confirmLabel:"Сохранить",cancelLabel:"Отмена",width:"720px",disabled:!1,showConfirm:!0},Bg={class:"edit-dialog-header"},Vg={class:"edit-dialog-title"},Ng={class:"edit-dialog-content"},$g={key:0,class:"edit-dialog-actions"},Un=F(e.defineComponent({__name:"PEditDialog",props:e.mergeDefaults({modelValue:{type:Boolean},title:{},confirmLabel:{},cancelLabel:{},width:{},disabled:{type:Boolean},showConfirm:{type:Boolean}},Eg),emits:["update:modelValue","confirm","close"],setup(n,{expose:t,emit:o}){const i=C.ClosePopup,r=n,s=o,a=e.ref(!1);e.watch(()=>r.modelValue,h=>{a.value=h},{immediate:!0});const c=async()=>{s("confirm"),l()},l=()=>{s("close"),a.value=!1,s("update:modelValue",!1)},f=()=>{a.value&&l()};t({opened:a,toggle:()=>{a.value=!a.value,s("update:modelValue",a.value)}});const m=async()=>{await e.nextTick();const h=document.querySelector('.edit-dialog-content input, .edit-dialog-content textarea, .edit-dialog-content [tabindex]:not([tabindex="-1"])');h&&"focus"in h&&h.focus()};return(h,w)=>(e.openBlock(),e.createBlock(pn,{modelValue:e.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=k=>e.isRef(a)?a.value=k:null),l],position:"top",onKeydown:[e.withKeys(c,["enter"]),e.withKeys(f,["escape"])],onShow:m},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"edit-dialog",style:e.normalizeStyle({width:r.width})},[e.createElementVNode("div",Bg,[e.createElementVNode("div",Vg,e.toDisplayString(r.title),1),e.withDirectives(e.createVNode(ne,{icon:"close",flat:"",dense:"",round:"",size:"sm"},null,512),[[e.unref(i)]])]),e.createElementVNode("div",Ng,[e.renderSlot(h.$slots,"default",{},void 0,!0)]),r.showConfirm?(e.openBlock(),e.createElementBlock("div",$g,[e.withDirectives(e.createVNode(ne,{flat:"",label:r.cancelLabel,size:"sm"},null,8,["label"]),[[e.unref(i)]]),e.createVNode(ne,{flat:"",label:r.confirmLabel,color:"primary",disable:r.disabled,size:"sm",onClick:c},null,8,["label","disable"])])):e.createCommentVNode("",!0)],4)]),_:3},8,["modelValue"]))}}),[["__scopeId","data-v-c53a00e7"]]),gr=F(e.defineComponent({__name:"PTableBadge",props:{row:{},prop:{},store:{},storeOpts:{},labelKey:{default:"name"}},emits:["click"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(),s=()=>{r.value.toggle(),i("click")},a=async c=>{o.row[o.prop]=c,await o.store.Update(o.row),r.value.toggle()};return(c,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.prop,class:"tags-cell"},{default:e.withCtx(()=>{var f,u,m;return[e.createVNode(pr,{color:(f=n.row[n.prop])!=null&&f.id?"primary":"grey-3","text-color":(u=n.row[n.prop])!=null&&u.id?"white":"grey-6",outline:!((m=n.row[n.prop])!=null&&m.id),size:"sm",clickable:"",class:"tags-chip",onClick:s},{default:e.withCtx(()=>{var h;return[(h=n.row[n.prop])!=null&&h.id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.row[n.prop][n.labelKey]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(C.QIcon),{name:"add",size:"16px"}),l[0]||(l[0]=e.createTextVNode(" Добавить ",-1))],64))]}),_:1},8,["color","text-color","outline"])]}),_:1})),e.createVNode(Un,{ref_key:"edit",ref:r,"show-confirm":!1},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{},()=>[e.createVNode(ni,{store:n.storeOpts,onSelect:a},null,8,["store"])],!0)]),_:3},512)],64))}}),[["__scopeId","data-v-f71dd34b"]]),Tg={class:"tag-name"},Pg={key:0,class:"tag-extra"},yr=e.defineComponent({__name:"PTableBadges",props:{items:{},row:{},prop:{},store:{},storeOpts:{},labelKey:{default:"name"},cellKey:{default:""}},setup(n){const t=n,o=e.ref(),i=e.computed(()=>t.items!==void 0?t.items:t.row?t.row[t.prop??""]:[]),r=e.computed(()=>i.value?(Array.isArray(i.value)?i.value:[i.value]).filter(u=>u==null?void 0:u.id):[]),s=e.computed(()=>r.value.length),a=e.computed(()=>{var f;return((f=r.value[0])==null?void 0:f[t.labelKey])||""}),c=e.computed(()=>Math.max(0,s.value-1)),l=async f=>{t.row&&t.prop&&t.store&&(t.row[t.prop]=f,await t.store.Update(t.row)),o.value.toggle()};return(f,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.cellKey,class:"tags-cell"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["tags-badge",{empty:!e.unref(s),clickable:e.unref(s)}]),onClick:u[1]||(u[1]=e.withModifiers(m=>e.unref(s)?e.unref(o).toggle():void 0,["stop"]))},[e.unref(s)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",Tg,e.toDisplayString(e.unref(a)),1),e.unref(c)?(e.openBlock(),e.createElementBlock("span",Pg,"+"+e.toDisplayString(e.unref(c)),1)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(e.unref(C.QIcon),{key:1,name:"add",size:"18px",color:"grey-5",onClick:u[0]||(u[0]=m=>e.unref(o).toggle())}))],2)]),_:1})),e.createVNode(Un,{ref_key:"edit",ref:o,"show-confirm":!1},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},()=>[n.storeOpts?(e.openBlock(),e.createBlock(ni,{key:0,store:n.storeOpts,onSelect:l},null,8,["store"])):e.createCommentVNode("",!0)])]),_:3},512)],64))}}),Mg={key:0,class:"relation-label"},Ig={class:"relation-count"},wr=F(e.defineComponent({__name:"PTableCount",props:{label:{},count:{},to:{},cellKey:{default:""}},emits:["click"],setup(n,{emit:t}){const o=n,i=t,r=()=>{o.count!==0&&(o.to&&O.H.Router.To(o.to),i("click"))};return(s,a)=>(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.cellKey,class:"relation-cell"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["relation-badge",{"has-items":n.count>0}]),onClick:r},[n.label?(e.openBlock(),e.createElementBlock("span",Mg,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Ig,e.toDisplayString(n.count),1)],2)]),_:1}))}}),[["__scopeId","data-v-a8600204"]]),br=e.defineComponent({__name:"PTableEdit",props:{domen:{},row:{}},setup(n){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(C.QTd),{"auto-width":""},{default:e.withCtx(()=>[e.createVNode(ne,{size:"sm",round:"",dense:"",icon:"edit",color:"primary",class:"q-mr-xs",onClick:o[0]||(o[0]=i=>e.unref(O).H.Router.To(`/admin/${n.domen}/${n.row.id}`))})]),_:1}))}}),Rg={class:"cell-text"},Sr=F(e.defineComponent({__name:"PTableNumber",props:{row:{},prop:{default:"name"},store:{},readonly:{type:Boolean,default:!1},label:{default:""},decimals:{default:void 0},min:{default:void 0},max:{default:void 0},step:{default:void 0},emptyPlaceholder:{default:"—"},tooltipThreshold:{default:10}},setup(n){const t=n,o=e.ref(),i=e.computed(()=>t.row[t.prop]),r=e.computed(()=>!!t.store&&!t.readonly),s=e.computed(()=>{const l=i.value;return l!=null&&String(l).length>t.tooltipThreshold}),a=e.computed(()=>{const l=i.value;return l==null||l===""?t.emptyPlaceholder:typeof l=="number"&&t.decimals!==void 0?l.toFixed(t.decimals):String(l)}),c=async()=>{t.store&&await t.store.Update(t.row)};return(l,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.prop,class:"p-table-number-cell"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["editable-cell",{clickable:e.unref(r)}]),onClick:f[0]||(f[0]=u=>e.unref(r)?e.unref(o).toggle():void 0)},[e.createElementVNode("span",Rg,e.toDisplayString(e.unref(a)),1),e.unref(s)?(e.openBlock(),e.createBlock(it,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)),1)]),_:1})):e.createCommentVNode("",!0)],2)]),_:1})),e.unref(r)?(e.openBlock(),e.createBlock(Un,{key:0,ref_key:"edit",ref:o,onConfirm:c},{default:e.withCtx(()=>[e.createVNode(et,{modelValue:n.row[n.prop],"onUpdate:modelValue":f[1]||(f[1]=u=>n.row[n.prop]=u),modelModifiers:{number:!0},type:"number",class:"q-mb-md",autofocus:"",label:n.label,min:n.min,max:n.max,step:n.step},null,8,["modelValue","label","min","max","step"])]),_:1},512)):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-4e17e527"]]),go=e.defineComponent({inheritAttrs:!1,__name:"PSelect",props:e.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""},size:{type:String,default:Ze.M,required:!1},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},inPadding:{type:String,required:!1,default:""},options:{type:Array,required:!1,default:()=>[]},emitValue:{type:Boolean,default:!0},mapOptions:{type:Boolean,default:!0},optionValue:{type:String,default:"value"},optionLabel:{type:String,default:"label"},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change","clear"],["update:modelValue"]),setup(n,{expose:t,emit:o}){const i=e.useModel(n,"modelValue"),r=o,s=e.ref(null);function a(){var y;(y=s.value)==null||y.focus()}function c(){var y;(y=s.value)==null||y.blur()}function l(){var y;(y=s.value)==null||y.showPopup()}function f(){var y;(y=s.value)==null||y.hidePopup()}async function u(){var y;return await((y=s.value)==null?void 0:y.validate())??!0}function m(){var y;(y=s.value)==null||y.resetValidation()}t({focus:a,blur:c,showPopup:l,hidePopup:f,validate:u,resetValidation:m});const h=e.useAttrs(),w=e.computed(()=>typeof h.id=="string"?h.id:void 0),k=e.computed(()=>{const y={};for(const I of Object.keys(h))I!=="id"&&I!=="disable"&&(y[I]=h[I]);return y}),N=n,$=e.computed(()=>h.disable??N.disabled),E=e.computed(()=>{const y=N.size==="sm"?Ze.S:N.size==="xs"?Ze.XS:N.size;return y===Ze.M?void 0:`p-field--${y}`}),M=y=>{r("change",y)},b=()=>{r("clear",void 0)},V=e.computed(()=>{const y={};return N.margin&&(y.margin=N.margin),N.padding&&(y.padding=N.padding),N.width&&(y.width=N.width),N.inPadding&&(y.padding=N.inPadding),y});return(y,I)=>(e.openBlock(),e.createBlock(e.unref(C.QSelect),e.mergeProps({ref_key:"selectRef",ref:s,modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=D=>i.value=D)},e.unref(k),{for:e.unref(w),options:n.options,label:n.label||void 0,placeholder:n.placeholder,clearable:n.clearable,rules:n.rules,disable:e.unref($),readonly:n.readonly,"emit-value":n.emitValue,"map-options":n.mapOptions,"option-value":n.optionValue,"option-label":n.optionLabel,"input-style":{color:n.color||void 0},style:e.unref(V),class:["p-select",e.unref(E)],outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":M,onClear:b}),e.createSlots({before:e.withCtx(()=>[e.renderSlot(y.$slots,"before",{},()=>[e.renderSlot(y.$slots,"left")])]),append:e.withCtx(()=>[e.renderSlot(y.$slots,"append",{},()=>[e.renderSlot(y.$slots,"right")])]),_:2},[y.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"prepend")]),key:"0"}:void 0,y.$slots.after?{name:"after",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"after")]),key:"1"}:void 0,y.$slots.default?{name:"default",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),key:"2"}:void 0,y.$slots.label?{name:"label",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"label")]),key:"3"}:void 0,y.$slots.error?{name:"error",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"error")]),key:"4"}:void 0,y.$slots.hint?{name:"hint",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"hint")]),key:"5"}:void 0,y.$slots.counter?{name:"counter",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"counter")]),key:"6"}:void 0,y.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"loading")]),key:"7"}:void 0,y.$slots.selected?{name:"selected",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"selected")]),key:"8"}:void 0,y.$slots.option?{name:"option",fn:e.withCtx(D=>[e.renderSlot(y.$slots,"option",e.normalizeProps(e.guardReactiveProps(D)))]),key:"9"}:void 0,y.$slots["no-option"]?{name:"no-option",fn:e.withCtx(D=>[e.renderSlot(y.$slots,"no-option",e.normalizeProps(e.guardReactiveProps(D)))]),key:"10"}:void 0,y.$slots["before-options"]?{name:"before-options",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"before-options")]),key:"11"}:void 0,y.$slots["after-options"]?{name:"after-options",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"after-options")]),key:"12"}:void 0,y.$slots["selected-item"]?{name:"selected-item",fn:e.withCtx(D=>[e.renderSlot(y.$slots,"selected-item",e.normalizeProps(e.guardReactiveProps(D)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","rules","disable","readonly","emit-value","map-options","option-value","option-label","input-style","style","class"]))}}),Cr=F(e.defineComponent({__name:"PTableSelect",props:{row:{},prop:{},storeOpts:{},store:{}},setup(n){const t=n,o=e.computed(()=>t.storeOpts.Options);return e.onBeforeMount(async()=>{await t.storeOpts.GetOptions()}),(i,r)=>(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.prop,class:"relation-cell"},{default:e.withCtx(()=>[e.createVNode(go,{modelValue:n.row[n.prop+"Id"],"onUpdate:modelValue":r[0]||(r[0]=s=>n.row[n.prop+"Id"]=s),clearable:!1,dense:"",filled:"","map-options":"",options:e.unref(o)},null,8,["modelValue","options"])]),_:1}))}}),[["__scopeId","data-v-a2c49ff8"]]),Ag={class:"cell-text"},kr=F(e.defineComponent({__name:"PTableString",props:{row:{},prop:{default:"name"},store:{},maxLength:{default:200},truncateLength:{default:40},readonly:{type:Boolean,default:!1},label:{default:""}},setup(n){const t=n,o=e.ref(),i=e.computed(()=>t.row[t.prop]||""),r=e.computed(()=>!!t.store&&!t.readonly),s=e.computed(()=>{const l=i.value;return typeof l=="string"&&l.length>t.truncateLength}),a=e.computed(()=>{const l=i.value;return typeof l!="string"?l:l.length>t.truncateLength?l.slice(0,t.truncateLength)+"...":l}),c=async()=>{t.store&&await t.store.Update(t.row)};return(l,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.prop,class:"p-table-string-cell"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["editable-cell",{clickable:e.unref(r)}]),onClick:f[0]||(f[0]=u=>e.unref(r)?e.unref(o).toggle():void 0)},[e.createElementVNode("span",Ag,e.toDisplayString(e.unref(a)),1),e.unref(s)?(e.openBlock(),e.createBlock(it,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)),1)]),_:1})):e.createCommentVNode("",!0)],2)]),_:1})),e.unref(r)?(e.openBlock(),e.createBlock(Un,{key:0,ref_key:"edit",ref:o,onConfirm:c},{default:e.withCtx(()=>[e.createVNode(et,{modelValue:n.row[n.prop],"onUpdate:modelValue":f[1]||(f[1]=u=>n.row[n.prop]=u),class:"q-mb-md",maxlength:n.maxLength,autofocus:"",label:n.label},null,8,["modelValue","maxlength","label"])]),_:1},512)):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-8856da5a"]]),xr=F(e.defineComponent({__name:"PTable",props:{cols:{},items:{},store:{default:void 0},ftsp:{default:void 0},rowKey:{default:"name"},rowsPerPageOptions:{default:()=>[25,50,75,100]},paginationLabel:{type:Function,default:(n,t,o)=>`${n}-${t} из ${o}`},lead:{type:Boolean,default:!0},rowAttrs:{type:Function,default:void 0},dense:{type:Boolean,default:!1},hideBottom:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["request"],setup(n,{emit:t}){const o=n,i=O.F.FTSP.create(),r=e.computed(()=>o.ftsp??i),s=t,a=e.ref({page:0,rowsNumber:c(),rowsPerPage:25,sortBy:"desc",descending:!1});function c(){var m;const u=(m=o.store)==null?void 0:m.Count;return typeof u=="number"?u:Number((u==null?void 0:u.value)??0)||0}e.watch(c,u=>{a.value.rowsNumber=u});const l=u=>{r.value.p.offset=(u.pagination.page-1)*u.pagination.rowsPerPage,r.value.p.rowsPerPage=u.pagination.rowsPerPage,a.value.page=u.pagination.page,a.value.rowsPerPage=u.pagination.rowsPerPage},f=async u=>{l(u),o.store&&await o.store.FTSP({ftsp:r.value}),s("request")};return(u,m)=>(e.openBlock(),e.createBlock(e.unref(C.QTable),{pagination:e.unref(a),"onUpdate:pagination":m[0]||(m[0]=h=>e.isRef(a)?a.value=h:null),columns:n.cols,rows:n.items,"row-key":n.rowKey,flat:"",bordered:"","rows-per-page-label":"На странице","pagination-label":n.paginationLabel,"rows-per-page-options":n.rowsPerPageOptions,dense:n.dense,"hide-bottom":n.hideBottom,loading:n.loading,class:"p-table",onRequest:f},{header:e.withCtx(h=>[e.renderSlot(u.$slots,"header",{props:h},()=>[e.createVNode(e.unref(C.QTr),{props:h},{default:e.withCtx(()=>[n.lead?(e.openBlock(),e.createBlock(e.unref(C.QTh),{key:0,"auto-width":""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.cols,w=>(e.openBlock(),e.createBlock(e.unref(C.QTh),{key:w.name,props:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label),1)]),_:2},1032,["props"]))),128))]),_:2},1032,["props"])],!0)]),body:e.withCtx(h=>[e.renderSlot(u.$slots,"body",e.normalizeProps(e.guardReactiveProps(h)),()=>{var w;return[e.createVNode(e.unref(C.QTr),e.mergeProps({props:h},((w=n.rowAttrs)==null?void 0:w.call(n,h.row))??{}),{default:e.withCtx(()=>[n.lead?(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:0,"auto-width":""},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"lead",{row:h.row},void 0,!0)]),_:2},1024)):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default",{row:h.row,props:h},void 0,!0)]),_:2},1040,["props"])]},!0)]),_:3},8,["pagination","columns","rows","row-key","pagination-label","rows-per-page-options","dense","hide-bottom","loading"]))}}),[["__scopeId","data-v-4626673c"]]);function va(n){n.component("PTable",xr),n.component("PTableBadge",gr),n.component("PTableBadges",yr),n.component("PTableCount",wr),n.component("PTableEdit",br),n.component("PTableNumber",Sr),n.component("PTableSelect",Cr),n.component("PTableString",kr)}const zg=Object.freeze(Object.defineProperty({__proto__:null,PTable:xr,PTableBadge:gr,PTableBadges:yr,PTableCount:wr,PTableEdit:br,PTableNumber:Sr,PTableSelect:Cr,PTableString:kr,default:va},Symbol.toStringTag,{value:"Module"})),Dg=["innerHTML"],Er=F(e.defineComponent({__name:"PTabs",props:{tabsStore:{type:Object,required:!0},vertical:{type:Boolean,default:!1},color:{type:String,default:"",required:!1},dark:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},emits:["select"],setup(n,{emit:t}){const o=n,i=t;e.onBeforeMount(()=>{o.tabsStore.Select()});const r=s=>{o.tabsStore.Select(s),i("select")};return(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tabs-wrapper",{compact:n.compact,vertical:n.vertical}])},[e.createVNode(e.unref(C.QTabs),{"model-value":n.tabsStore.value,vertical:n.vertical,class:e.normalizeClass(["tabs-header",n.color?`bg-${n.color} text-white`:"",{"tabs-header--dark":n.dark}]),dense:"",align:"justify","narrow-indicator":"","active-class":"active-tab","onUpdate:modelValue":r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabsStore.items,c=>(e.openBlock(),e.createBlock(e.unref(C.QTab),{key:c.value,name:c.value,label:c.htmlLabel?void 0:c.label,icon:c.icon,"no-caps":""},{default:e.withCtx(()=>[c.htmlLabel?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:c.htmlLabel},null,8,Dg)):e.createCommentVNode("",!0),c.alert?(e.openBlock(),e.createBlock(e.unref(C.QBadge),{key:1,color:"negative",floating:"",rounded:""},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode("!",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:2},1032,["name","label","icon"]))),128))]),_:1},8,["model-value","vertical","class"]),e.createVNode(e.unref(C.QTabPanels),{"model-value":n.tabsStore.value,animated:"",class:"tabs-panels","transition-prev":"slide-right","transition-next":"slide-left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabsStore.items,c=>(e.openBlock(),e.createBlock(e.unref(C.QTabPanel),{key:c.value,name:c.value,class:"tab-panel"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{item:c,tab:c},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.component)))],!0)]),_:2},1032,["name"]))),128))]),_:3},8,["model-value"])],2))}}),[["__scopeId","data-v-80676320"]]),Fg={class:"q-pa-md"},Br=F(e.defineComponent({__name:"PTabsLeft",props:{buttons:{type:Array,default:()=>[]},tabsStore:{type:Object,required:!0}},emits:["select"],setup(n,{emit:t}){const o=n,i=t,r=a=>{o.tabsStore.Select(a),i("select")},s=e.ref(20);return(a,c)=>(e.openBlock(),e.createBlock(e.unref(C.QSplitter),{modelValue:e.unref(s),"onUpdate:modelValue":c[0]||(c[0]=l=>e.isRef(s)?s.value=l:null),class:"full-height"},{before:e.withCtx(()=>[e.createVNode(e.unref(C.QTabs),{vertical:"",class:"text-teal","model-value":n.tabsStore.value,"onUpdate:modelValue":r},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabsStore.items,l=>(e.openBlock(),e.createBlock(e.unref(C.QTab),{key:l.value,name:l.value,label:l.label,"no-caps":""},null,8,["name","label"]))),128))]),_:1},8,["model-value"]),e.createElementVNode("div",Fg,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.buttons,(l,f)=>(e.openBlock(),e.createBlock(ne,{key:f,label:l.text,color:l.color,class:"q-mb-sm full-width",onClick:u=>l.action(l)},null,8,["label","color","onClick"]))),128))])]),after:e.withCtx(()=>[e.createVNode(e.unref(C.QTabPanels),{"model-value":n.tabsStore.value,animated:"",class:"shadow-2 rounded-borders"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabsStore.GetItems(),l=>(e.openBlock(),e.createBlock(e.unref(C.QTabPanel),{key:l.value,name:l.value},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{item:l},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component)))],!0)]),_:2},1032,["name"]))),128))]),_:3},8,["model-value"])]),_:3},8,["modelValue"]))}}),[["__scopeId","data-v-a7a16408"]]);class oi{constructor(){d(this,"items",[]);d(this,"idx",0);d(this,"key","");d(this,"value","")}preSelect(){var o;const t=O.H.Router.GetStringQueryParam(this.key);if(!t||t==="undefined"){this.Select((o=this.items[0])==null?void 0:o.value);return}this.Select(t)}static ToTab(t,o="",i=""){return{label:i,value:o,...t}}static Create(t,o){const i=new oi;return i.key=t,i.items=o.map(r=>r&&typeof r=="object"&&"component"in r?{...r,component:e.markRaw(r.component)}:r),i.items.length&&i.preSelect(),i}Select(t){if(!this.items.length)return;if(t===void 0)return this.preSelect();this.idx=this.items.findIndex(i=>i.value===t),this.value=t;const o=this.GetValue();o&&O.H.Router.SetQueryParam(this.key,o)}GetMenu(){return this.items[this.idx]}GetComponent(){var t;return(t=this.items[this.idx])==null?void 0:t.component}GetValue(){var t;return(t=this.items[this.idx])==null?void 0:t.value}GetItems(){return this.items}}function qa(n){n.component("PTabs",Er),n.component("PTabsLeft",Br)}const Og=Object.freeze(Object.defineProperty({__proto__:null,Contacts:Lm,Forms:dh,Menus:wh,Schedule:Cg,Table:zg,Tabs:Object.freeze(Object.defineProperty({__proto__:null,PTabs:Er,PTabsLeft:Br,TabsStore:oi,default:qa},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),ja=e.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:e.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"md"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:t}){const o=e.useModel(n,"modelValue"),i=t,r=e.useAttrs(),s=e.computed(()=>{const c={};for(const l of Object.keys(r))c[l]=r[l];return c}),a=()=>{i("change",o.value)};return(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:"p-checkbox",style:e.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[e.createVNode(e.unref(C.QCheckbox),e.mergeProps({modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f)},e.unref(s),{label:n.label||void 0,size:n.size,style:{fontSize:n.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),Lg={class:"row items-center justify-end"},Wa="DD.MM.YYYY",Ga=e.defineComponent({__name:"PDateInput",props:e.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},modelType:{type:String,default:void 0,required:!1},invalidMessage:{type:String,default:"Некорректная дата",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{default:null},modelModifiers:{}}),emits:e.mergeModels(["blur","input"],["update:modelValue"]),setup(n,{emit:t}){const o=C.ClosePopup,i=n,r=t,s=e.useModel(n,"modelValue"),a=Wa.replace(/[DMY]/g,"#"),c=e.ref(null),l=b=>{if(i.modelType){c.value=i.modelType;return}b instanceof Date?c.value="date":(typeof b=="string"&&b||c.value===null)&&(c.value="string")},f=b=>b?b instanceof Date?Ye.ToRu(b):Ye.IsoToRu(String(b)):"",u=b=>Ye.ParseRu(b),m=e.ref(f(s.value));l(s.value);const h=e.computed(()=>{const b=m.value;return!b||b.length<10||la(i.invalidMessage,!0)(b)===!0?"":i.invalidMessage}),w=e.ref(!1);e.watch(s,b=>{l(b);const V=f(b);V!==m.value&&(w.value=!0,m.value=V,w.value=!1)});const k=b=>{if(!b){const D=c.value==="date"?null:"";s.value=D,r("input",D);return}const V=b instanceof Date?Ye.ToRu(b):String(b);if(!/^\d{2}\.\d{2}\.\d{4}$/.test(V))return;const y=u(V);if(!y)return;if(c.value==="date"){s.value=y,r("input",y);return}const I=Ye.RuToIso(V);I&&(s.value=I,r("input",I))};e.watch(m,b=>{w.value||k(b)});const N=b=>{k(typeof b=="number"?String(b):b)},$=()=>{const b=m.value;!b||b.length===10&&!!u(b)||(w.value=!0,m.value=f(s.value),w.value=!1),m.value!==f(s.value)&&r("blur",s.value)},E=async()=>{await e.nextTick(),await e.nextTick(),r("blur",s.value)},M={days:"Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),daysShort:"Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"дни"};return(b,V)=>(e.openBlock(),e.createBlock(et,{modelValue:e.unref(m),"onUpdate:modelValue":[V[1]||(V[1]=y=>e.isRef(m)?m.value=y:null),N],class:"fit",label:n.label,placeholder:n.placeholder,mask:e.unref(a),dense:n.dense,outlined:n.outlined,clearable:n.clearable,disable:n.disable,readonly:n.readonly,margin:n.margin,padding:n.padding,width:n.width,rules:n.rules,error:!!e.unref(h),"error-message":e.unref(h),inputmode:"numeric",onBlur:$},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"event",class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QPopupProxy),{cover:"","transition-show":"scale","transition-hide":"scale"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QDate),{modelValue:e.unref(m),"onUpdate:modelValue":[V[0]||(V[0]=y=>e.isRef(m)?m.value=y:null),E],mask:Wa,"today-btn":"",locale:M},{default:e.withCtx(()=>[e.createElementVNode("div",Lg,[e.withDirectives(e.createVNode(ne,{label:"Готово",color:"primary",flat:""},null,512),[[e.unref(o)]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),before:e.withCtx(()=>[e.renderSlot(b.$slots,"before")]),append:e.withCtx(()=>[e.renderSlot(b.$slots,"append")]),_:3},8,["modelValue","label","placeholder","mask","dense","outlined","clearable","disable","readonly","margin","padding","width","rules","error","error-message"]))}}),_g={class:"row items-center justify-end"},Hg={class:"row items-center justify-end"},Qa=e.defineComponent({__name:"PDateTimeInput",props:e.mergeModels({label:{type:String,default:"Дата и время"},placeholder:{type:String,default:"ДД.ММ.ГГГГ ЧЧ:мм"},disable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:""},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=C.ClosePopup,o=e.useModel(n,"modelValue"),i=e.ref(""),r=e.ref(""),s=e.ref(""),a=k=>k?C.date.formatDate(k,"DD.MM.YYYY HH:mm"):"",c=k=>{if(!k||!/^\d{2}\.\d{2}\.\d{4} \d{2}:\d{2}$/.test(k))return null;const N=C.date.extractDate(k,"DD.MM.YYYY HH:mm");return Number.isNaN(N.getTime())?null:N},l=k=>{o.value=k},f=k=>{const N=String(k??"");i.value=N.replace(/[_\s]/g,"")===""?"":N},u=()=>{const k=c(i.value);k?l(k):i.value===""?l(null):i.value=a(o.value)},m=()=>{if(r.value){const k=o.value?C.date.formatDate(o.value,"HH:mm"):"00:00",N=`${r.value} ${k}`,$=c(N);$&&(i.value=a($),l($))}r.value=""},h=()=>{if(s.value){const k=o.value?C.date.formatDate(o.value,"DD.MM.YYYY"):"",N=C.date.formatDate(new Date,"DD.MM.YYYY"),$=k?`${k} ${s.value}`:`${N} ${s.value}`,E=c($);E&&(i.value=a(E),l(E))}s.value=""};e.watch(o,k=>{k!==c(i.value)&&(i.value=a(k??null))},{immediate:!0});const w={days:"Понедельник_Вторник_Среда_Четверг_Пятница_Суббота_Воскресенье".split("_"),daysShort:"Пн_Вт_Ср_Чт_Пт_Сб_Вс".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),firstDayOfWeek:1,format24h:!0,pluralDay:"дни"};return(k,N)=>(e.openBlock(),e.createBlock(et,{"model-value":e.unref(i),label:n.label,placeholder:n.placeholder,disable:n.disable,readonly:n.readonly,error:n.error,"error-message":n.errorMessage,rules:n.rules,mask:"##.##.#### ##:##","fill-mask":"","onUpdate:modelValue":f,onBlur:u},{prepend:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"event",class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QPopupProxy),{cover:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QDate),{modelValue:e.unref(r),"onUpdate:modelValue":N[0]||(N[0]=$=>e.isRef(r)?r.value=$:null),mask:"DD.MM.YYYY",locale:w},{default:e.withCtx(()=>[e.createElementVNode("div",_g,[e.withDirectives(e.createVNode(ne,{label:"OK",color:"primary",flat:"",onClick:m},null,512),[[e.unref(t)]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),append:e.withCtx(()=>[e.createVNode(e.unref(C.QIcon),{name:"access_time",class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QPopupProxy),{cover:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QTime),{modelValue:e.unref(s),"onUpdate:modelValue":N[1]||(N[1]=$=>e.isRef(s)?s.value=$:null),mask:"HH:mm",format24h:"",locale:w},{default:e.withCtx(()=>[e.createElementVNode("div",Hg,[e.withDirectives(e.createVNode(ne,{label:"OK",color:"primary",flat:"",onClick:h},null,512),[[e.unref(t)]])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model-value","label","placeholder","disable","readonly","error","error-message","rules"]))}}),Ug=F(e.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"flex-line flex",style:e.normalizeStyle({margin:n.margin,padding:n.padding,width:n.width,minWidth:n.minWidth,maxWidth:n.maxWidth,height:n.height,justifyContent:n.justifyContent,background:n.background,alignItems:n.alignItems})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-71357bc9"]]),vg={key:0,class:"p-form__actions row justify-end q-gutter-sm q-mt-md"},qg=F(e.defineComponent({name:"PForm",__name:"PForm",props:e.mergeModels({greedy:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},noErrorFocus:{type:Boolean,default:!1},noResetFocus:{type:Boolean,default:!1}},{valid:{type:Boolean,default:void 0},validModifiers:{}}),emits:e.mergeModels(["submit","reset","validation-success","validation-error"],["update:valid"]),setup(n,{expose:t,emit:o}){const i=o,r=e.useModel(n,"valid"),s=e.ref(!0),a=E=>{s.value=E,r.value!==void 0&&(r.value=E)},c=e.ref(),l=()=>{a(!0),i("validation-success")},f=()=>{a(!1),i("validation-error")},u=E=>{i("submit",E)},m=()=>{var E;(E=c.value)==null||E.resetValidation(),a(!0),i("reset")},h=async()=>{var M;const E=await((M=c.value)==null?void 0:M.validate())??!1;return a(E),E},w=()=>{var E;(E=c.value)==null||E.resetValidation(),a(!0)};return t({validate:h,resetValidation:w,focus:()=>{var E;return(E=c.value)==null?void 0:E.focus()},submit:E=>{var M;return(M=c.value)==null?void 0:M.submit(E)},reset:E=>{var M;return(M=c.value)==null?void 0:M.reset(E)}}),(E,M)=>(e.openBlock(),e.createBlock(e.unref(C.QForm),{ref_key:"qFormRef",ref:c,greedy:n.greedy,autofocus:n.autofocus,"no-error-focus":n.noErrorFocus,"no-reset-focus":n.noResetFocus,class:"p-form",onSubmit:u,onReset:m,onValidationSuccess:l,onValidationError:f},{default:e.withCtx(()=>[e.renderSlot(E.$slots,"default",{},void 0,!0),E.$slots.actions?(e.openBlock(),e.createElementBlock("div",vg,[e.renderSlot(E.$slots,"actions",{valid:e.unref(s),validate:h,resetValidation:w},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["greedy","autofocus","no-error-focus","no-reset-focus"]))}}),[["__scopeId","data-v-a64ba3d2"]]),jg={class:"p-hint-popup"},Vr=F(e.defineComponent({__name:"PHint",props:{text:{}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.text?(e.openBlock(),e.createBlock(e.unref(C.QIcon),{key:0,name:"help_outline",size:"15px",class:"p-hint-icon",onClick:i[0]||(i[0]=e.withModifiers(r=>t.value=!0,["stop"]))},{default:e.withCtx(()=>[e.createVNode(it,{anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"320px"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.text),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QMenu),{modelValue:e.unref(t),"onUpdate:modelValue":i[1]||(i[1]=r=>e.isRef(t)?t.value=r:null),anchor:"top middle",self:"bottom middle",offset:[0,6],"max-width":"340px"},{default:e.withCtx(()=>[e.createElementVNode("div",jg,e.toDisplayString(n.text),1)]),_:1},8,["modelValue"])],64))}}),[["__scopeId","data-v-7c2a3d62"]]),Wg=F(e.defineComponent({__name:"IconMinus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#minus"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[e.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),Gg=F(e.defineComponent({__name:"IconPlus",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#plus"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[e.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),Qg=e.defineComponent({inheritAttrs:!1,__name:"PInputNumber",props:e.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:Number.MAX_VALUE,required:!1},min:{type:Number,default:Number.NEGATIVE_INFINITY,required:!1},step:{type:Number,default:1,required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{default:0},modelModifiers:{}}),emits:e.mergeModels(["blur","input","change"],["update:modelValue"]),setup(n,{emit:t}){const o=t,i=e.useAttrs(),r=e.computed(()=>typeof i.id=="string"?i.id:void 0),s=e.computed(()=>{const y={};for(const I of Object.keys(i))I!=="id"&&(y[I]=i[I]);return y}),a=n,c=()=>{const y=a.step.toString();return y.includes(".")?y.split(".")[1].length:0},l=c(),f=e.useModel(n,"modelValue"),m=(y=>Math.min(Math.max(y,a.min),a.max))(f.value);m!==f.value&&(f.value=m);const h=e.ref(m.toFixed(c())),w=e.computed(()=>{const y={};return a.margin&&(y.margin=a.margin),a.padding&&(y.padding=a.padding),y}),k=y=>{const I=Math.pow(10,l);return Math.round(y*I)/I},N=(y,...I)=>{f.value=k(y),h.value=k(y).toFixed(c()),I.forEach(D=>o(D,f.value))},$=(y,...I)=>{a.disabled||y>a.max||y<a.min||N(y,...I)},E=()=>$(+h.value+a.step,"change"),M=()=>$(+h.value-a.step,"change"),b=y=>$(Number(y),"input"),V=()=>$(+h.value,"change","blur");return(y,I)=>(e.openBlock(),e.createBlock(e.unref(C.QInput),e.mergeProps(e.unref(s),{for:e.unref(r),"model-value":e.unref(h),label:n.label||void 0,rules:n.rules,class:"p-input-number",type:"number",disable:n.disabled,"input-style":{color:n.disabled?"var(--font-secondary-disabled-color)":n.color,textAlign:"center"},style:e.unref(w),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":b,onBlur:V}),{before:e.withCtx(()=>[e.createVNode(e.unref(C.QBtn),{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:M},{default:e.withCtx(()=>[e.createVNode(Wg)]),_:1})]),append:e.withCtx(()=>[e.createVNode(e.unref(C.QBtn),{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:E},{default:e.withCtx(()=>[e.createVNode(Gg)]),_:1})]),_:1},16,["for","model-value","label","rules","disable","input-style","style"]))}}),Yg=F(Qg,[["__scopeId","data-v-d5544390"]]),Xg=F(e.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.open);e.watch(()=>o.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,i("open",a)};return(a,c)=>{const l=e.resolveComponent("PString");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.shift?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({minWidth:n.widthClosed,maxWidth:n.widthClosed,height:n.height})},null,4)),e.createElementVNode("div",{class:"LS-body",style:e.normalizeStyle({marginLeft:e.unref(r)?"0":`calc(${n.widthClosed} - ${n.widthOpened})`,minWidth:n.widthOpened,maxWidth:n.widthOpened,boxShadow:n.shadow?"5px 0 5px -3px var(--brand-shadow-color)":"none",position:n.shift?"relative":"absolute",background:n.background,height:n.height})},[e.createElementVNode("div",{class:"LS-content",style:e.normalizeStyle({width:`calc(100% - ${n.widthClosed})`,height:n.height,background:"var(--brand-surface)"})},[e.renderSlot(a.$slots,"default",{},void 0,!0)],4),e.createVNode(e.unref(C.QBtn),{class:"click-line",flat:"","no-caps":"",style:e.normalizeStyle({width:n.widthClosed,minWidth:n.widthClosed,height:n.height,borderRadius:"0"}),onClick:c[0]||(c[0]=f=>s(!e.unref(r)))},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createBlock(l,{key:0,string:n.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):e.createCommentVNode("",!0),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l,{key:1,string:n.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-483e850f"]]),Zg=e.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(n){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(C.QList),{tag:"ul",style:e.normalizeStyle({margin:n.margin,padding:n.padding,width:n.width})},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),Jg=e.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1},background:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(C.QItem),{tag:"li",style:e.normalizeStyle({margin:n.margin,padding:n.padding,borderBottom:n.showDivider?"1px solid":"none",background:n.background})},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["style"]))}}),Kg={key:0,class:"p-loader__state"},e1={key:0,class:"p-loader__text"},t1={key:1,class:"p-loader__state"},n1={class:"p-loader__text"},o1={key:2,class:"p-loader__state"},i1={key:0,class:"p-loader__text"},r1=F(e.defineComponent({name:"PLoader",__name:"PLoader",props:{loading:{type:Boolean,default:!1},error:{default:""},empty:{type:Boolean,default:!1},loadingText:{default:""},emptyText:{default:""},emptyIcon:{default:"inbox"},retryLabel:{default:""},spinnerSize:{default:"36px"},iconSize:{default:"48px"},spinnerColor:{default:"primary"},inline:{type:Boolean,default:!1}},emits:["retry"],setup(n,{emit:t}){const o=t;return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["p-loader",{"p-loader--inline":n.inline}])},[n.loading?(e.openBlock(),e.createElementBlock("div",Kg,[e.createVNode(e.unref(C.QSpinner),{color:n.spinnerColor,size:n.spinnerSize},null,8,["color","size"]),n.loadingText?(e.openBlock(),e.createElementBlock("div",e1,e.toDisplayString(n.loadingText),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"loading",{},void 0,!0)])):n.error?(e.openBlock(),e.createElementBlock("div",t1,[e.createVNode(e.unref(C.QIcon),{name:"error_outline",size:n.iconSize,class:"p-loader__icon--error"},null,8,["size"]),e.createElementVNode("div",n1,e.toDisplayString(n.error),1),n.retryLabel?(e.openBlock(),e.createBlock(ne,{key:0,unelevated:"",color:"primary",label:n.retryLabel,class:"q-mt-md",onClick:r[0]||(r[0]=s=>o("retry"))},null,8,["label"])):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"error",{retry:()=>o("retry")},void 0,!0)])):n.empty?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(e.unref(C.QIcon),{name:n.emptyIcon,size:n.iconSize,class:"p-loader__icon--empty"},null,8,["name","size"]),n.emptyText?(e.openBlock(),e.createElementBlock("div",i1,e.toDisplayString(n.emptyText),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"empty",{},void 0,!0)])):e.renderSlot(i.$slots,"default",{},void 0,!0,3)],2))}}),[["__scopeId","data-v-fb83c4ac"]]),Ya=e.defineComponent({__name:"POpts",props:{label:{},item:{},store:{},prop:{},storeOpts:{},optLabel:{},optValue:{},disabled:{type:Boolean},hint:{}},setup(n){var c;const t=n,o=((c=t.storeOpts)==null?void 0:c.Options)??[],i=e.ref(o);async function r(l,f,u,m){var N,$;const w="set"+(((N=f[0])==null?void 0:N.toUpperCase())+f.slice(1)),k=l[w];typeof k=="function"?k(u):(l[f]=u,l[f+"Id"]=u==null?void 0:u.id),await(($=m==null?void 0:m.Update)==null?void 0:$.call(m,l))}const s=(l,f)=>{if(l===""){f(()=>{i.value=o});return}f(()=>{i.value=o.filter(u=>O.H.Strings.SearchInFields(l,[u.label]))})},a=async l=>{const f=l==null?"":typeof l=="string"?l:l.value;f?(await t.storeOpts.Get(f),await r(t.item,t.prop,t.storeOpts.Item,t.store)):await r(t.item,t.prop,void 0,t.store)};return e.onBeforeMount(async()=>{o.length>0||await t.storeOpts.GetOptions(t.optLabel,t.optValue)}),(l,f)=>(e.openBlock(),e.createBlock(go,{"use-input":"",options:e.unref(i),"model-value":n.item[n.prop+"Id"],label:n.label,disable:n.disabled,"map-options":"",clearable:"",dense:"",outlined:"","hide-bottom-space":"","onUpdate:modelValue":a,onFilter:s},{append:e.withCtx(()=>[e.createVNode(Vr,{text:n.hint},null,8,["text"])]),_:1},8,["options","model-value","label","disable"]))}}),s1=e.defineComponent({__name:"PRadio",props:e.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:""},size:{type:String,default:"md"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:t}){const o=e.useModel(n,"modelValue"),i=t,r=n,s=()=>{i("change",r.value)};return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:"p-radio",style:e.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[e.createVNode(e.unref(C.QRadio),{modelValue:o.value,"onUpdate:modelValue":[c[0]||(c[0]=l=>o.value=l),s],val:n.value,name:n.name,label:n.label||void 0,size:n.size,style:e.normalizeStyle({fontSize:n.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4))}}),a1=F(e.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.open);e.watch(()=>o.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,i("open",a)};return(a,c)=>{const l=e.resolveComponent("PString");return e.openBlock(),e.createElementBlock("div",{class:"wrapper",style:e.normalizeStyle({maxHeight:n.height,height:n.height})},[e.createElementVNode("div",{class:"content",style:e.normalizeStyle({paddingRight:n.shift?"0":`${n.widthClosed}`})},[e.renderSlot(a.$slots,"content",{},void 0,!0)],4),e.createElementVNode("div",{class:"RS-body",style:e.normalizeStyle({marginRight:e.unref(r)?"0":`calc(${n.widthClosed} - ${n.widthOpened})`,minWidth:n.widthOpened,maxWidth:n.widthOpened,boxShadow:n.shadow?"-5px 0 5px -3px var(--brand-shadow-color)":"none",position:n.shift?"relative":"absolute"})},[e.createVNode(e.unref(C.QBtn),{class:"click-line",flat:"","no-caps":"",style:e.normalizeStyle({width:n.widthClosed,minWidth:n.widthClosed,height:n.height,borderRadius:"0"}),onClick:c[0]||(c[0]=f=>s(!e.unref(r)))},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createBlock(l,{key:0,string:n.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):e.createCommentVNode("",!0),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l,{key:1,string:n.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),e.createElementVNode("div",{class:"RS-content",style:e.normalizeStyle({width:`calc(${n.widthOpened} - ${n.widthClosed} - 2px)`,background:n.background,height:n.height})},[e.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-e4dd5846"]]),l1="var(--brand-shadow-color, rgb(0 0 0 / 30%))",c1=F(e.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"},divider:{type:Boolean,default:!1},dividerColor:{type:String,default:"var(--border-color-default, rgb(0 0 0 / 12%))"}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"sticky-block",style:e.normalizeStyle({zIndex:1+n.zIndex,top:n.top,background:n.background,padding:n.padding,boxShadow:n.shadow?`0 0 5px 2px ${l1}`:"none",borderBottom:n.divider?"1px solid":"none",borderColor:n.dividerColor})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-7da943db"]]),Xa=F(e.defineComponent({__name:"PTableToggle",props:{row:{},prop:{},store:{},readonly:{type:Boolean,default:!1}},setup(n){const t=n,o=e.computed(()=>t.row[t.prop]),i=async()=>{t.row[t.prop]=!t.row[t.prop],await t.store.Update(t.row)};return(r,s)=>(e.openBlock(),e.createBlock(e.unref(C.QTd),{key:n.prop},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["toggle-cell",{clickable:!t.readonly}]),onClick:s[0]||(s[0]=a=>t.readonly?void 0:i())},[e.createVNode(e.unref(C.QIcon),{name:e.unref(o)?"check_circle":"radio_button_unchecked",color:e.unref(o)?"positive":"grey-5",size:"20px"},null,8,["name","color"]),e.createVNode(it,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)?"Включено":"Выключено"),1)]),_:1})],2)]),_:1}))}}),[["__scopeId","data-v-96a76c56"]]),d1=F(e.defineComponent({inheritAttrs:!1,__name:"PTextarea",props:e.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},resize:{type:String,default:"vertical",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:e.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(n){const t=e.useModel(n,"modelValue"),o=e.useAttrs(),i=e.computed(()=>typeof o.id=="string"?o.id:void 0),r=e.computed(()=>{const l={};for(const f of Object.keys(o))f!=="id"&&(l[f]=o[f]);return l}),s=n,a=e.computed(()=>({color:s.color||void 0,resize:s.resize})),c=e.computed(()=>{const l={};return s.margin&&(l.margin=s.margin),s.padding&&(l.padding=s.padding),s.borderColor&&(l["--p-border-color"]=s.borderColor),l});return(l,f)=>(e.openBlock(),e.createBlock(e.unref(C.QInput),e.mergeProps({modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=u=>t.value=u)},e.unref(r),{for:e.unref(i),label:n.label||void 0,mask:n.mask,rules:n.rules,type:"textarea","input-style":e.unref(a),style:e.unref(c),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":f[1]||(f[1]=u=>l.$emit("input",t.value)),onBlur:f[2]||(f[2]=u=>l.$emit("blur",t.value)),onFocus:f[3]||(f[3]=u=>l.$emit("focus",t.value))}),{before:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},void 0,!0)]),append:e.withCtx(()=>[e.renderSlot(l.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","rules","input-style","style"]))}}),[["__scopeId","data-v-4cbcc0ca"]]),Za=e.defineComponent({inheritAttrs:!1,__name:"PToggle",props:e.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},size:{type:String,default:"md"},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(["change"],["update:modelValue"]),setup(n,{emit:t}){const o=e.useModel(n,"modelValue"),i=t,r=e.useAttrs(),s=e.computed(()=>{const c={};for(const l of Object.keys(r))c[l]=r[l];return c}),a=()=>{i("change",o.value)};return(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:"p-toggle",style:e.normalizeStyle({padding:n.padding,margin:n.margin,maxWidth:n.width})},[e.createVNode(e.unref(C.QToggle),e.mergeProps({modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f)},e.unref(s),{label:n.label||void 0,size:n.size,style:{fontSize:n.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),f1={class:"top-slider-content"},u1={class:"center"},m1=F(e.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.open);e.watch(()=>o.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,i("open",a)};return(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=e.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))]})),e.createElementVNode("div",{class:"top-slider",style:e.normalizeStyle({marginTop:e.unref(r)?"0":`calc(${n.sliderOffHeight} - ${n.sliderOnHeight})`,height:n.sliderOnHeight}),onClick:c[3]||(c[3]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",f1,[e.createElementVNode("div",u1,[e.renderSlot(a.$slots,"default",{},void 0,!0)])]),e.createVNode(e.unref(C.QBtn),{class:"click-line",flat:"","no-caps":"",style:e.normalizeStyle({height:n.sliderOffHeight,minHeight:n.sliderOffHeight,borderRadius:"0"}),onClick:c[2]||(c[2]=l=>s(!e.unref(r)))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64))}}),[["__scopeId","data-v-3f29d8f7"]]);function h1(n){n.component("PButton",ne),n.component("PBadge",lo),n.component("PCheckBox",ja),n.component("PChip",pr),n.component("PDateInput",Ga),n.component("PDateTimeInput",Qa),n.component("PDialog",pn),n.component("PFlex",Ug),n.component("PForm",qg),n.component("PHint",Vr),n.component("PInput",et),n.component("PInputNumber",Yg),n.component("PLeftSlider",Xg),n.component("PList",Zg),n.component("PListItem",Jg),n.component("PLoader",r1),n.component("POptionsListSingle",ni),n.component("POpts",Ya),n.component("PRadio",s1),n.component("PRightSlider",a1),n.component("PSelect",go),n.component("PSticky",c1),n.component("PString",nr),n.component("PTextarea",d1),n.component("PTopSlider",m1),n.component("PTableToggle",Xa),n.component("PToggle",Za),n.component("PTooltip",it)}const p1={key:0,class:"mainblock"},g1={class:"mainblock-right"},y1={class:"body"},w1=F(e.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(n){const t=n,o=e.ref(!1),i=e.ref(!0),r=e.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{i.value=!i.value};return e.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),o.value=!0}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(a.$slots,"main",{},void 0,!0),e.unref(o)?(e.openBlock(),e.createElementBlock("div",p1,[e.createElementVNode("div",{class:"mainblock-left",style:e.normalizeStyle({minWidth:e.unref(r)?"100%":n.menuWidth,maxWidth:e.unref(r)?"100%":n.menuWidth,marginLeft:e.unref(r)?"-110%":"0",position:e.unref(r)?"fixed":"relative",top:e.unref(r)?"140px":""})},[e.createElementVNode("div",{class:"left-menu",style:e.normalizeStyle({minWidth:e.unref(r)?"auto":n.menuWidth,boxShadow:e.unref(r)?"0 0px 10px 0px var(--brand-shadow-color)":"",marginLeft:!e.unref(i)&&e.unref(r)?"110%":"0",borderTopLeftRadius:e.unref(r)?"0":"",borderBottomLeftRadius:e.unref(r)?"0":""}),onClick:c[0]||(c[0]=l=>s())},[e.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),e.createElementVNode("div",g1,[a.$slots.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title",style:e.normalizeStyle({display:a.$slots.title?"flex":"none"})},[e.createElementVNode("div",{class:"icon",style:e.normalizeStyle({display:e.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[e.renderSlot(a.$slots,"icon",{},void 0,!0)],4),e.renderSlot(a.$slots,"title",{},void 0,!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",y1,[e.renderSlot(a.$slots,"body",{},void 0,!0)])])])):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-27d39fb2"]]),b1={class:"mainblock-right"},S1={class:"body"},C1=F(e.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(n){const t=n,o=e.ref(!1),i=e.ref(!0),r=e.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{i.value=!i.value};return e.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(t.mobileWidth){case"1330px":return r.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return r.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return r.value=window.matchMedia("(max-width: 768px)").matches}return r.value=window.matchMedia("(max-width: 1330px)").matches}),o.value=!0}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(a.$slots,"main",{},void 0,!0),e.unref(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mainblock",style:e.normalizeStyle({display:e.unref(r)?"block":"flex"})},[e.createElementVNode("div",{class:"mainblock-left",style:e.normalizeStyle({minWidth:e.unref(r)?"100%":n.menuWidth,display:n.leftWidth!=="0px"?"flex":"none",top:e.unref(r)?"58px":"80px"})},[e.createElementVNode("div",{class:"left-menu",style:e.normalizeStyle({minWidth:e.unref(r)?"100%":n.menuWidth,boxShadow:e.unref(r)?"0 0px 10px 0px var(--brand-shadow-color)":"",marginLeft:(!e.unref(i)&&e.unref(r),"0"),overflowX:e.unref(r)?"scroll":"hidden",display:e.unref(r)?"flex":"block",background:e.unref(r)?"var(--brand-surface)":"",overflowY:e.unref(r)?"hidden":"auto"}),onClick:c[0]||(c[0]=l=>s())},[e.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),e.createElementVNode("div",b1,[e.createElementVNode("div",{class:"title",style:e.normalizeStyle({position:n.titleSticky?"sticky":"relative",top:n.titleSticky?e.unref(r)?"108px":"58px":"0",zIndex:n.titleSticky?"10":""})},[e.createElementVNode("div",{class:"icon",style:e.normalizeStyle({display:e.unref(r)?"flex":"none"}),onClick:c[1]||(c[1]=l=>s())},[e.renderSlot(a.$slots,"icon",{},void 0,!0)],4),e.renderSlot(a.$slots,"title",{},void 0,!0)],4),e.createElementVNode("div",S1,[e.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):e.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-250d645c"]]),k1={class:"item"},x1={class:"move"},E1={class:"item-tools"},B1=["onClick"],V1={class:"item-description"},N1=["onUpdate:modelValue"],$1=F(e.defineComponent({__name:"AdminGallery",props:{images:{type:Array,reguired:!0,default:()=>[]},defaultRatio:{type:Number,required:!1,default:1},upload:{type:Boolean,required:!1,default:!0}},emits:["addImage","ratio","remove","sort"],setup(n,{emit:t}){const o=n,i=t,r=async c=>{i("addImage",c)},s=async c=>{ee.RemoveFromClassById(c.id,o.images,[]),i("remove",c)},a=()=>{Tt.Sort(o.images),i("sort")};return(c,l)=>{const f=e.resolveComponent("PUploderImage"),u=e.resolveComponent("Move");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Bo),{class:"groups",list:n.images,"item-key":"id",handle:".move",onEnd:a},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",k1,[e.createElementVNode("div",x1,[e.createElementVNode("div",E1,[l[0]||(l[0]=e.createElementVNode("svg",{class:"icon-move"},[e.createElementVNode("use",{"xlink:href":"#move"})],-1)),e.createElementVNode("button",{class:"admin-del2",onClick:e.withModifiers(h=>s(m),["prevent"])},"Удалить",8,B1)]),e.createVNode(f,{"file-info":m,height:150,"default-ratio":n.defaultRatio,onRemoveFile:h=>s(m),onCrop:h=>r(m)},null,8,["file-info","default-ratio","onRemoveFile","onCrop"])]),e.createElementVNode("div",V1,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h=>m.description=h,class:"item-description-form",placeholder:"..."},null,8,N1),[[e.vModelText,m.description]])])])]),_:1},8,["list"]),e.createVNode(u)],64)}}}),[["__scopeId","data-v-b7a40b40"]]),Ja=F(e.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(n){return e.useCssVars(t=>({d143e9f0:n.maxWidth,b9d56180:n.width,v52bd0ff4:n.background,v1795aeac:n.gridGap,v0cfa7c52:n.gridTemplateColumns,v0c6d2a1f:n.gridTemplateRows,a3ccd918:n.margin})),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["grid-block",n.customClass])},[e.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]),T1={class:"container"},P1={class:"slide-box"},M1={class:"image"},I1={class:"image-box"},R1=["id","src","alt"],A1={class:"link-number"},z1=["id","onClick"],D1=F(e.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(n){e.useCssVars(w=>({cc7105da:o}));const t=n,o=`${t.animationTime}ms`,i=e.ref(t.startActiveGroupIndex),r=e.ref(Mt.None),s=e.ref(aa(t.events,t.quantity)),a=e.computed(()=>s.value[i.value]);e.onMounted(()=>{});const c=()=>i.value=i.value+1<s.value.length?i.value+1:0,l=()=>i.value=i.value-1<0?s.value.length-1:i.value-1,f=w=>{r.value=w,setTimeout(()=>r.value=Mt.None,t.animationTime)},u=w=>{w!=i.value&&(f(w<i.value?Mt.Prev:Mt.Next),setTimeout(()=>i.value=w,t.animationTime/2))},m=()=>{f(Mt.Next),setTimeout(c,t.animationTime/2)},h=()=>{f(Mt.Prev),setTimeout(l,t.animationTime/2)};return(w,k)=>(e.openBlock(),e.createElementBlock("div",{class:"field",style:e.normalizeStyle({height:n.height,maxHeight:n.maxHeight})},[e.createElementVNode("div",T1,[(e.openBlock(),e.createElementBlock("svg",{class:"icon-arrow",onClick:k[0]||(k[0]=e.withModifiers(N=>h(),["stop"]))},[...k[3]||(k[3]=[e.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),e.createElementVNode("div",P1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(N,$)=>(e.openBlock(),e.createElementBlock("div",{key:$,class:e.normalizeClass({animationnext:e.unref(r)===e.unref(Mt).Next,animationprev:e.unref(r)===e.unref(Mt).Prev})},[e.createElementVNode("div",M1,[e.createElementVNode("div",I1,[e.createElementVNode("img",{id:N.fileInfo.getImageUrl(),style:e.normalizeStyle({height:`calc(${n.height} - 110px)`,maxHeight:`calc(${n.maxHeight} - 110px)`}),src:N.fileInfo.getImageUrl(),alt:N.fileInfo.originalName,onClick:k[1]||(k[1]=E=>w.showImageInFullScreen())},null,12,R1)])])],2))),128))]),(e.openBlock(),e.createElementBlock("svg",{class:"icon-arrow",onClick:k[2]||(k[2]=e.withModifiers(N=>m(),["stop"]))},[...k[4]||(k[4]=[e.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),e.createElementVNode("div",A1,[e.createVNode(Ja,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(N,$)=>(e.openBlock(),e.createElementBlock("div",{id:$.toString(),key:$,class:"number",style:e.normalizeStyle({background:$.toString()===e.unref(i).toString()?"var(--palette-grey-5)":""}),onClick:e.withModifiers(E=>u($),["stop"])},e.toDisplayString($+1),13,z1))),128))]),_:1})])],4))}}),[["__scopeId","data-v-747a736b"]]),F1=e.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.x),s=e.ref(o.y),a=e.computed(()=>r.value+"px"),c=e.computed(()=>s.value+"px"),l=()=>{i("close")};return(f,u)=>{const m=e.resolveDirective("click-outside");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"context-window",style:e.normalizeStyle({left:e.unref(a),top:e.unref(c)})},[e.renderSlot(f.$slots,"default")],4)),[[m,l]])}}}),O1={class:"drop-item"},L1={key:0,class:"drop-item-list"},_1=F(e.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(n){const t=n,o=e.ref(t.rolledUp),i=async()=>{o.value=!o.value};return(r,s)=>{const a=e.resolveComponent("PString"),c=e.resolveComponent("IconArrowDrop");return e.openBlock(),e.createElementBlock("div",O1,[e.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=l=>i())},[e.createVNode(a,{"font-size":"13px","font-weight":"600",string:n.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),e.createElementVNode("div",{style:e.normalizeStyle({transform:e.unref(o)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[e.createVNode(c,{size:"10px",margin:"0"})],4)]),e.unref(o)?(e.openBlock(),e.createElementBlock("div",L1,[e.renderSlot(r.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),H1=e.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Mi,required:!0}},emits:["load"],setup(n,{emit:t}){const o=n,i=e.ref(!1),r=t,s=()=>{o.model.setBoolean(i.value),i.value?O.F.FTSP.Get().setF(o.model):O.F.FTSP.Get().removeF(o.model),r("load")};return(a,c)=>{const l=e.resolveComponent("PCheckBox");return e.openBlock(),e.createBlock(l,{modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=f=>e.isRef(i)?i.value=f:null),label:n.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),U1=F(e.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1},ftsp:{type:Object,required:!1}},emits:["load"],setup(n,{emit:t}){const o=n,i=t,r=e.computed(()=>o.ftsp??ht.Get()),s=e.ref(void 0),a=async l=>{r.value.replaceF(l,s.value),s.value=l,r.value.p.drop()},c=async l=>{await a(l),i("load")};return(l,f)=>{const u=e.resolveComponent("PString"),m=e.resolveComponent("PButton"),h=e.resolveComponent("GridContainer"),w=e.resolveComponent("InfoItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{string:n.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),e.createVNode(w,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"var(--brand-surface-deep)","border-color":"var(--brand-chart-divider)",padding:"7px","with-hover":!1},{title:e.withCtx(()=>[...f[0]||(f[0]=[])]),default:e.withCtx(()=>[e.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.models,(k,N)=>(e.openBlock(),e.createBlock(m,{key:N,color:"blue",height:"auto",text:k.label,"is-toggle":k.valueEq(e.unref(s)),"toggle-mode":!0,inverse:n.inverse,onClick:$=>c(k.valueEq(e.unref(s))?void 0:k)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-d07d614a"]]),v1=["value","label"],q1=F(e.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(n,{emit:t}){const o=t,i=ht.Get(),r=e.ref(void 0),s=async c=>{i.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),o("load")};return(c,l)=>{const f=e.resolveComponent("PSelect");return e.openBlock(),e.createBlock(f,{modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=u=>e.isRef(r)?r.value=u:null),clearable:e.unref(r),placeholder:n.defaultLabel,onChange:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.models,(u,m)=>(e.openBlock(),e.createElementBlock("option",{key:m,value:u,label:u.label},null,8,v1))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-039d56fb"]]),j1=F(e.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"var(--brand-surface)"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"var(--whiteSpace-general-1x)"},borderColor:{type:String,required:!1,default:"var(--font-color-focus)"},margin:{type:String,required:!1,default:"var(--whiteSpace-general-_25x)"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"var(--typography-font-size-l)"},withIcon:{type:Boolean,required:!1,default:!1}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"general-block-item",style:e.normalizeStyle({background:n.background,height:n.height,width:n.width,borderColor:n.borderColor,padding:n.padding,margin:n.margin,transform:n.scale&&e.unref(t)?"scale(1.03, 1.03)":""}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[e.createElementVNode("div",{class:"green",style:e.normalizeStyle({width:`${n.ready}`})},null,4),e.createElementVNode("div",{class:"general-block-item-title",style:e.normalizeStyle({fontSize:n.fontSize})},[e.renderSlot(o.$slots,"general-item",{},void 0,!0)],4),e.createElementVNode("div",{class:"tools-icon",style:e.normalizeStyle({display:n.withIcon?"flex":"none"})},[...i[2]||(i[2]=[e.createElementVNode("svg",{class:"icon-del"},[e.createElementVNode("use",{"xlink:href":"#del"})],-1)])],4),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[e.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-d8f4a0c2"]]),W1={key:0,class:"blur"},G1={style:{display:"flex","justify-content":"center"}},Q1=F(e.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"var(--button-primary-background)"},borderColor:{type:String,required:!1,default:"var(--border-color-default)"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(n,{emit:t}){const o=n,i=t,r=o.customClass!==""?o.customClass:"inside-class",s=e.ref(!1),a=e.ref(!1),c=e.ref(!1),l=e.ref(o.close);e.watch(()=>o.close,()=>{a.value=!1});const f=V=>{V.stopPropagation(),V.key==="Escape"&&(o.showSaveDialog?c.value=!0:a.value=!1)};e.watch(a,async()=>{var V,y;await e.nextTick(),a.value?((y=(V=document.getElementById("info-item-opened-content"))==null?void 0:V.querySelector("input"))==null||y.focus(),document.body.addEventListener("keydown",f)):document.body.removeEventListener("keydown",f,!1),a.value===!1&&i("after-close")});const u=()=>{i("click"),a.value=!!o.withOpenWindow,l.value!==o.close&&(a.value=!1,l.value=!l.value)},m=e.computed(()=>o.customClass===""?{width:o.width,minHeight:"40px",height:"auto",maxWidth:o.maxWidth,minWidth:o.minWidth,margin:o.baseBoxMargin}:void 0),h=e.computed(()=>a.value&&o.withOpenWindow),w=e.computed(()=>({background:o.background?o.background:void 0,zIndex:h.value?"2":"0",padding:h.value?"0":o.padding,margin:o.margin,width:h.value?o.openWidth:o.width,height:h.value?o.openHeight:o.height,minHeight:"40px",maxWidth:o.maxWidth,minWidth:o.minWidth,borderColor:s.value||a.value?o.colorSelected:o.borderColor,color:s.value?o.colorSelected:"var(--font-color-focus)",boxShadow:s.value||a.value?`0px 0px 1px 1px ${o.colorSelected}`:"none",alignItems:h.value?"end":"center",cursor:(o.withHover,"pointer")})),k=e.computed(()=>({height:h.value?"0":"",overflow:o.closeWindowOverflow,width:o.width})),N=e.computed(()=>({height:h.value?"auto":"0"})),$=e.computed(()=>({color:s.value?o.colorSelected:"var(--font-color-focus)",fill:s.value?o.colorSelected:"var(--font-color-focus)",background:o.background})),E=()=>{o.showSaveDialog?c.value=!0:a.value=!1},M=async()=>{await i("keyup-enter"),o.close&&(a.value=!1),c.value=!1},b=()=>{a.value=!1,c.value=!1};return(V,y)=>{const I=e.resolveComponent("PString"),D=e.resolveComponent("PButton"),te=e.resolveComponent("PModal"),Se=e.resolveDirective("click-outside");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(a)?(e.openBlock(),e.createElementBlock("div",W1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"base-box",style:e.normalizeStyle(e.unref(m)),onClick:y[2]||(y[2]=e.withModifiers(ye=>u(),["prevent","stop"]))},[e.createElementVNode("div",{class:e.normalizeClass(["body",e.unref(r)]),style:e.normalizeStyle(e.unref(w)),onMouseenter:y[0]||(y[0]=ye=>n.withHover?s.value=!0:s.value=!1),onMouseleave:y[1]||(y[1]=ye=>s.value=!1)},[e.unref(a)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["close-window",n.customClass]),style:e.normalizeStyle(e.unref(k))},[e.renderSlot(V.$slots,"default",{},void 0,!0)],6)),e.unref(a)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:e.normalizeStyle(e.unref(N))},[e.renderSlot(V.$slots,"open-inside-content",{},void 0,!0)],4)),[[Se,E,void 0,{prevent:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-title",style:e.normalizeStyle(e.unref($))},[e.renderSlot(V.$slots,"title",{},()=>[e.createVNode(I,{string:n.title,"font-size":"10px",padding:"0 0 0 3px",style:e.normalizeStyle({color:e.unref(s)?"var(--button-primary-background)":"var(--brand-font-hint)",transition:"var(--transition-default)"})},null,8,["string","style"])],!0)],4)],38)],4),e.createVNode(te,{show:e.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:e.withCtx(()=>[e.createElementVNode("div",G1,[e.createVNode(D,{text:"Не сохранять",onClick:b}),e.createVNode(D,{text:"Сохранять",onClick:M})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-177dbf0e"]]),Y1=F(e.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(n,{emit:t}){const o=e.ref(!1),i=t,r=s=>{o.value=!o.value,i("select",s)};return(s,a)=>{const c=e.resolveComponent("PString"),l=e.resolveComponent("PButton"),f=e.resolveComponent("InfoItem");return e.openBlock(),e.createBlock(f,{close:e.unref(o),title:n.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.list,u=>(e.openBlock(),e.createBlock(l,{key:u,type:"admin",color:"blue",text:u,onClick:m=>r(u)},null,8,["text","onClick"]))),128)),e.createVNode(l,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=u=>r(void 0))})]),default:e.withCtx(()=>[e.createVNode(c,{string:n.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-7d166501"]]),X1={class:"mainblock"},Z1={class:"mainline"},J1=F(e.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",X1,[e.createElementVNode("div",Z1,[e.createElementVNode("div",{class:"mainblock-left",style:e.normalizeStyle({minWidth:n.leftWidth,maxWidth:n.leftWidth,background:n.background,display:n.leftWidth!=="0px"?"block":"none"})},[e.renderSlot(t.$slots,"left",{},void 0,!0)],4),e.createElementVNode("div",{class:"mainblock-right",style:e.normalizeStyle({background:n.background})},[e.renderSlot(t.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),Ka=F(e.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#search"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-64e76eb7"]]),K1={class:"search-list"},ey=["onClick"],el=F(e.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]},width:{type:[Number,String],default:""},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--box-shadow)"}},emits:["select","input"],setup(n,{emit:t}){const o=t,i=n,r=e.ref(i.modelValue),s=e.ref([]);async function a(){o("input",r.value),await c()}async function c(){i.searchFunc&&(s.value=await i.searchFunc(r.value))}async function l(f){r.value="",o("select",f)}return(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:"container",style:e.normalizeStyle({width:n.width})},[e.createVNode(et,{modelValue:e.unref(r),"onUpdate:modelValue":u[0]||(u[0]=m=>e.isRef(r)?r.value=m:null),placeholder:"Найти",onInput:a},{right:e.withCtx(()=>[e.createVNode(Ka,{size:"24px"})]),_:1},8,["modelValue"]),e.unref(r)&&e.unref(r).length>=2?(e.openBlock(),e.createElementBlock("div",{key:0,class:"result",style:e.normalizeStyle({maxHeight:n.maxHeightResultList,zIndex:n.zIndexResultList,boxShadow:n.boxShadowResultList})},[e.createElementVNode("ul",K1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),m=>(e.openBlock(),e.createElementBlock("li",{key:m.value,onClick:h=>l(m)},e.toDisplayString(m.label),9,ey))),128))])],4)):e.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),ty=F(e.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(n){const t=e.useModel(n,"modelValue"),o=async()=>{};return(i,r)=>{const s=e.resolveComponent("PInput");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(s,{modelValue:t.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>t.value.number=a),onBlur:o},null,8,["modelValue"]),e.createVNode(s,{modelValue:t.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>t.value.description=a),onBlur:o},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-905da89d"]]),ny={style:{display:"flex","justify-content":"center",width:"100%"}},oy={class:"pag-number"},iy={class:"pag-ul"},ry={key:2},sy=F(e.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(n){const t=n,o=m=>m?"active":"neutral",i=m=>m?"not-active":"neutral",r=e.ref(ca),s=e.ref(!1),a=e.ref(!1);r.value.count=t.store.Count.value,e.watch(t.store.Count,()=>{r.value.count=t.store.Count.value});const c=async m=>{if(m!==r.value.curPage&&(m<1&&(m=1),m>r.value.pagesCount()&&(m=r.value.pagesCount()),!t.showConfirm))return await l(m)},l=async(m,h)=>{r.value.setCurPage(m),ht.Get().p.offset=(m-1)*r.value.limit,await t.store.FTSP(),u()},f=e.computed(()=>{const m=r.value.pagesCount();return m<8?Tt.GenerateNumsRange(2,m-1).filter(h=>h<m&&h>1):Tt.GenerateNumsRange(r.value.curPage-2,r.value.curPage+3).filter(h=>h<m&&h>1)}),u=()=>{const m=document.querySelector(".el-table__body-wrapper"),h=document.querySelector("#list");m?m.scrollTo({top:0}):h&&h.scrollTo({top:0})};return e.onBeforeUnmount(()=>{ht.Get().p.drop()}),(m,h)=>{const w=e.resolveComponent("ArrowLeft"),k=e.resolveComponent("PButton"),N=e.resolveComponent("DoubleArrowLeft"),$=e.resolveComponent("EllipsisSvg"),E=e.resolveComponent("DoubleArrowRight"),M=e.resolveComponent("ArrowRight");return e.openBlock(),e.createElementBlock("div",ny,[e.createElementVNode("div",{class:"pag-container",style:e.normalizeStyle({justifyContent:n.justifyContent})},[e.createElementVNode("div",oy,[e.createVNode(k,{skin:"pag",type:i(e.unref(r).curPage===1),onClick:h[0]||(h[0]=b=>c(e.unref(r).curPage-1))},{default:e.withCtx(()=>[e.createVNode(w)]),_:1},8,["type"]),e.createElementVNode("ul",iy,[e.createElementVNode("li",null,[e.createVNode(k,{skin:"pag",type:o(e.unref(r).curPage===1),text:"1",onClick:h[1]||(h[1]=b=>c(1))},null,8,["type"])]),e.unref(r).pagesCount()>8&&e.unref(r).curPage>4?(e.openBlock(),e.createElementBlock("li",{key:0,onMouseenter:h[3]||(h[3]=b=>s.value=!0),onMouseleave:h[4]||(h[4]=b=>s.value=!1)},[e.createVNode(k,{skin:"pag",type:"neutral",onClick:h[2]||(h[2]=b=>c(e.unref(r).curPage-5))},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createBlock(N,{key:0})):(e.openBlock(),e.createBlock($,{key:1}))]),_:1})],32)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),b=>(e.openBlock(),e.createElementBlock("li",{key:b},[e.createVNode(k,{skin:"pag",type:o(b===e.unref(r).curPage),text:b,onClick:V=>c(b)},null,8,["type","text","onClick"])]))),128)),e.unref(r).pagesCount()>=8&&e.unref(r).curPage<e.unref(r).pagesCount()-3?(e.openBlock(),e.createElementBlock("li",{key:1,onMouseenter:h[6]||(h[6]=b=>a.value=!0),onMouseleave:h[7]||(h[7]=b=>a.value=!1)},[e.createVNode(k,{skin:"pag",type:"neutral",onClick:h[5]||(h[5]=b=>c(e.unref(r).curPage+5))},{default:e.withCtx(()=>[e.unref(a)?(e.openBlock(),e.createBlock(E,{key:0})):(e.openBlock(),e.createBlock($,{key:1}))]),_:1})],32)):e.createCommentVNode("",!0),e.unref(r).pagesCount()>1?(e.openBlock(),e.createElementBlock("li",ry,[e.createVNode(k,{skin:"pag",type:o(e.unref(r).pagesCount()===e.unref(r).curPage),text:e.unref(r).pagesCount(),onClick:h[8]||(h[8]=b=>c(e.unref(r).pagesCount()))},null,8,["type","text"])])):e.createCommentVNode("",!0)]),e.createVNode(k,{skin:"pag",type:i(e.unref(r).curPage===e.unref(r).pagesCount()),onClick:h[9]||(h[9]=b=>c(e.unref(r).curPage+1))},{default:e.withCtx(()=>[e.createVNode(M)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),ay=F(e.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},width:{type:[Number,String],default:"var(--input-width-default, 100%)"},focus:{type:Boolean,default:!1},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--brand-shadow-color) 0px 5px 5px"}},emits:["select","load","input"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.modelValue),s=e.ref();let a=tr.SearchModel();e.watch(()=>o.focus,()=>{o.focus&&setTimeout(()=>{s.value.focus(),r.value=""},500)});const c=async u=>{if(u.length<2)return;s.value.activated=!0,a=tr.SearchModel(),a.searchObjects=[],a.query=u,a.key=o.keyValue;const m=a.searchGroups.find(h=>h.key===o.keyValue);return m&&(a.searchGroup=m),await ya.Search.Search(a),a.searchObjects},l=async u=>{i("select",u),r.value=""},f=u=>{i("input",u),u.length===0&&i("input","")};return(u,m)=>(e.openBlock(),e.createBlock(el,{ref_key:"searchForm",ref:s,modelValue:e.unref(r),"onUpdate:modelValue":m[0]||(m[0]=h=>e.isRef(r)?r.value=h:null),"max-height-result-list":n.maxHeightResultList,"z-index-result-list":n.zIndexResultList,"box-shadow-result-list":n.boxShadowResultList,width:n.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:n.placeholder,"search-func":c,"trigger-on-focus":n.showSuggestions,suggestions:e.unref(a).searchObjects,onSelect:l,onInput:f},null,8,["modelValue","max-height-result-list","z-index-result-list","box-shadow-result-list","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-b1e3a0ef"]]),ly={class:"mainblock-body"},cy={class:"mainblock-footer"},dy=F(e.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"mainblock",style:e.normalizeStyle({background:n.background,padding:n.padding})},[e.createElementVNode("div",{class:"mainblock-header",style:e.normalizeStyle({background:n.background})},[e.renderSlot(t.$slots,"header",{},void 0,!0)],4),e.createElementVNode("div",ly,[e.renderSlot(t.$slots,"body",{},void 0,!0)]),e.createElementVNode("div",cy,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),fy={class:"right-slider-content"},uy={class:"right-slider-content-header"},my={class:"right-slider-content-box"},hy={class:"right-slider-button"},py=F(e.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(!1);e.watch(()=>o.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,i("toggle",a)};return(a,c)=>{const l=e.resolveComponent("PString");return e.openBlock(),e.createElementBlock("div",{class:"right-slider",style:e.normalizeStyle({marginRight:e.unref(r)?`calc(${n.sliderOffWidth} - ${n.sliderOnWidth})`:"0",width:n.sliderOnWidth})},[e.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=f=>s(!e.unref(r)))},[e.unref(r)?(e.openBlock(),e.createBlock(l,{key:0,string:n.titleClose,"font-size":"16px",padding:"0",color:"var(--font-color-focus)"},null,8,["string"])):e.createCommentVNode("",!0),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l,{key:1,string:n.titleOpen,"font-size":"16px",padding:"0",color:"var(--font-color-focus)"},null,8,["string"]))]),e.createElementVNode("div",fy,[e.createElementVNode("div",uy,[e.renderSlot(a.$slots,"header",{},void 0,!0)]),e.createElementVNode("div",my,[e.renderSlot(a.$slots,"default",{},void 0,!0)])]),e.createElementVNode("div",hy,[e.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-f1a51897"]]),gy={class:"mainblock"},yy={class:"body-block"},wy={class:"tab-block"},by=F(e.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(!1),s=e.ref(window.matchMedia("(max-width: 768px)").matches),a=l=>{i("toggle",l)},c=e.ref(!1);return e.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(o.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),r.value=!0}),(l,f)=>(e.openBlock(),e.createElementBlock("div",gy,[e.createElementVNode("div",{class:"slider-block",style:e.normalizeStyle({marginRight:e.unref(s)?n.isToggle?"49px":`calc(49px - ${n.sliderOnWidth})`:n.isToggle?n.sliderOffWidth:`calc(${n.sliderOffWidth} - ${n.sliderOnWidth})`,width:n.sliderOnWidth,minHeight:n.sliderOffWidth,height:n.isToggle?"auto":"100px"})},[e.createElementVNode("div",{class:"slider-icon",style:e.normalizeStyle({border:n.isToggle?"1px solid var(--palette-primary-base-1)":"1px solid var(--palette-success)",background:n.isToggle?"var(--brand-surface)":"var(--palette-success-4)"}),onClick:f[0]||(f[0]=u=>a(!n.isToggle)),onMouseenter:f[1]||(f[1]=u=>c.value=!0),onMouseleave:f[2]||(f[2]=u=>c.value=!1)},[e.createElementVNode("div",{class:"icon-block",style:e.normalizeStyle({transform:e.unref(c)?n.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":n.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:n.isToggle?"var(--palette-primary-base-1)":"var(--palette-success)"})},[e.renderSlot(l.$slots,"icon",{},void 0,!0)],4)],36),e.createElementVNode("div",{class:"slider-info",style:e.normalizeStyle({width:`calc(${n.sliderOnWidth} - ${n.sliderOffWidth})`})},[e.renderSlot(l.$slots,"slider-body",{},void 0,!0)],4)],4),e.createElementVNode("div",yy,[e.renderSlot(l.$slots,"body",{},void 0,!0)]),e.createElementVNode("div",wy,[e.renderSlot(l.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-15d9f837"]]),Sy=["label","value"],Cy=F(e.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(n,{emit:t}){const o={[Xe.String]:"Текстовый ответ",[Xe.Text]:"Развёрнутый текстовый ответ",[Xe.Number]:"Числовой ответ",[Xe.Date]:"Ответ в виде даты",[Xe.Radio]:"Выбор одного из вариантов",[Xe.Set]:"Выбор нескольких вариантов",[Xe.File]:"Ответ в виде файла",[Xe.MatrixRadio]:"Матрица с одним выбором",[Xe.MatrixSet]:"Матрица с несколькими выборами"},i=t,r=s=>{i("select",s)};return(s,a)=>{const c=e.resolveComponent("PString"),l=e.resolveComponent("PSelect");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),e.createVNode(l,{"model-value":n.selectedType,placeholder:"Вид ответа",onChange:r},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(f,u)=>e.createElementVNode("option",{key:f,label:f,value:u},null,8,Sy)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),ky=["label","value"],xy=F(e.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(n,{emit:t}){const o=e.ref(!1),i=t,r=e.ref();e.onBeforeMount(()=>{o.value=!0,r.value=hn.GetDefault()});const s=async c=>{r.value=c??hn.GetDefault(),i("load")},a=async c=>{await s(c)};return(c,l)=>{var u;const f=e.resolveComponent("PSelect");return e.unref(o)?(e.openBlock(),e.createBlock(f,{key:0,modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=m=>e.isRef(r)?r.value=m:null),"popper-append-to-body":!1,clearable:!((u=e.unref(r))!=null&&u.default),"value-key":"label",onChange:a,onClear:l[1]||(l[1]=m=>a())},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(hn).Get(),(m,h)=>(e.openBlock(),e.createElementBlock("option",{key:h,label:m.label,value:m},null,8,ky))),128))]),_:1},8,["modelValue","clearable"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-14ebe27e"]]),Ey=["label","value"],By=F(e.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250},ftsp:{type:Object,required:!1}},emits:["load"],setup(n,{emit:t}){const o=n,i=t,r=e.computed(()=>o.ftsp??ht.Get()),s=e.ref();e.onBeforeMount(()=>{s.value=hn.GetDefault()});const a=async l=>{l||(s.value=hn.GetDefault()),r.value.setSortModel(s.value),r.value.p.drop(),i("load")},c=async l=>{await a(l)};return(l,f)=>{var m;const u=e.resolveComponent("PSelect");return e.openBlock(),e.createBlock(u,{modelValue:e.unref(s),"onUpdate:modelValue":f[0]||(f[0]=h=>e.isRef(s)?s.value=h:null),"popper-append-to-body":!1,clearable:!((m=e.unref(s))!=null&&m.default),"value-key":"label",onChange:c},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(hn).Get(),(h,w)=>(e.openBlock(),e.createElementBlock("option",{key:w,label:h.label,value:h},null,8,Ey))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-858d4187"]]),Vy={class:"switch-container"},Ny={class:"line"},$y={class:"line"},Ty=F(e.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(n,{emit:t}){const o=n,i={background:"inherit",border:"1px solid var(--brand-chart-divider)"},r=()=>o.firstModel.valueEq(f.value)?void 0:i,s=()=>f.value?i:void 0,a=()=>o.secondModel.valueEq(f.value)?void 0:i,c=m=>{var w;return{color:(w=f.value)!=null&&w.valueEq(m)?"var(--button-primary-background)":"var(--brand-font-hint)"}},l=t,f=e.ref(void 0),u=async m=>{var h;(h=f.value)!=null&&h.valueEq(m)||(f.value=m,l("load"))};return(m,h)=>{const w=e.resolveComponent("PString");return e.openBlock(),e.createElementBlock("div",Vy,[e.createElementVNode("div",Ny,[e.createVNode(w,{string:n.firstModel.label,"font-size":"12px",padding:"0",style:e.normalizeStyle(c(n.firstModel)),onClick:h[0]||(h[0]=k=>u(n.firstModel))},null,8,["string","style"]),e.createVNode(w,{string:"Все","font-size":"12px",padding:"0",style:e.normalizeStyle(c()),onClick:h[1]||(h[1]=k=>u())},null,8,["style"]),e.createVNode(w,{string:n.secondModel.label,"font-size":"12px",padding:"0",style:e.normalizeStyle(c(n.secondModel)),onClick:h[2]||(h[2]=k=>u(n.secondModel))},null,8,["string","style"])]),e.createElementVNode("div",$y,[e.createElementVNode("div",{class:e.normalizeClass(["switch-knob1",{active:n.firstModel.valueEq(e.unref(f))}]),style:e.normalizeStyle(r()),onClick:h[3]||(h[3]=k=>u(n.firstModel))},null,6),e.createElementVNode("div",{class:e.normalizeClass(["switch-knob2",{active:!e.unref(f)}]),style:e.normalizeStyle(s()),onClick:h[4]||(h[4]=k=>u())},null,6),e.createElementVNode("div",{class:e.normalizeClass(["switch-knob3",{active:n.secondModel.valueEq(e.unref(f))}]),style:e.normalizeStyle(a()),onClick:h[5]||(h[5]=k=>u(n.secondModel))},null,6),h[6]||(h[6]=e.createElementVNode("div",{class:"switch-axis"},null,-1)),h[7]||(h[7]=e.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),h[8]||(h[8]=e.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),h[9]||(h[9]=e.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-c179d9c1"]]),Py={},My={class:"flex"};function Iy(n,t){return e.openBlock(),e.createElementBlock("div",My,[e.renderSlot(n.$slots,"default",{},void 0,!0)])}const Ry=F(Py,[["render",Iy],["__scopeId","data-v-5023d414"]]),Ay=F(e.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(n,{emit:t}){const o=e.ref(!1),i=t,r=async()=>{i("submit"),o.value=!o.value};return(s,a)=>{const c=e.resolveComponent("PString"),l=e.resolveComponent("PButton"),f=e.resolveComponent("GridContainer"),u=e.resolveComponent("InfoItem");return e.openBlock(),e.createBlock(u,{title:n.title,icon:"edit-title","with-hover":!0,close:e.unref(o),width:"100%",onKeyupEnter:r},{"open-inside-content":e.withCtx(()=>[e.createVNode(f,{"custom-class":"grid"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{},void 0,!0),e.createVNode(l,{type:"admin",color:"blue",text:"Сохранить",onClick:r})]),_:3})]),default:e.withCtx(()=>[n.content.length>0?(e.openBlock(),e.createBlock(c,{key:0,string:n.content},null,8,["string"])):(e.openBlock(),e.createBlock(c,{key:1,string:"Введите данные",color:"var(--brand-font-hint)"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-7e05ece4"]]),zy={class:"top-slider-content"},Dy={class:"center"},Fy=F(e.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(!0);e.watch(()=>o.toggle,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,i("toggle",a)};return(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=e.withModifiers(l=>r.value=!0,["prevent"])),c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))]})),e.createElementVNode("div",{class:"top-slider",style:e.normalizeStyle({marginTop:e.unref(r)?`calc(${n.sliderOffHeight} - ${n.sliderOnHeight})`:"0",height:n.sliderOnHeight}),onClick:c[3]||(c[3]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",zy,[e.createElementVNode("div",Dy,[e.renderSlot(a.$slots,"default",{},void 0,!0)])]),e.createElementVNode("div",{class:"click-line",style:e.normalizeStyle({height:n.sliderOffHeight}),onClick:c[2]||(c[2]=l=>s(!e.unref(r)))},[e.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-35a8d04d"]]);function Oy(n){n.component("PageNotFound",ia),n.component("AdaptiveContainer",w1),n.component("AdaptiveContainerHorizontal",C1),n.component("AdminGallery",$1),n.component("CarouselImages",D1),n.component("ContextWindow",F1),n.component("DropList",_1),n.component("FilterCheckbox",H1),n.component("FiltersButtonsSelect",U1),n.component("FilterSelect",q1),n.component("GeneralItem",j1),n.component("GridContainer",Ja),n.component("InfoItem",Q1),n.component("InfoItemSelectButtons",Y1),n.component("LeftRightContainer",J1),n.component("PAutocomplete",el),n.component("PhoneForm",ty),n.component("PPagination",sy),n.component("RemoteSearch",ay),n.component("ResearcheContainer",dy),n.component("RightSliderContainer",py),n.component("RightTabsContainer",by),n.component("SelectValueType",Cy),n.component("SortList",xy),n.component("SortSelect",By),n.component("Switch3Pos",Ty),n.component("ThemeWrapper",Ry),n.component("ToggleInfoItem",Ay),n.component("TopSliderContainer",Fy)}const Ly=F(e.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#download"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),e.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-94c18208"]]),_y=F(e.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#filter"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),e.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-d11e6069"]]),Hy=F(e.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[e.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ca16a90c"]]),Uy=F(e.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-48c8e6e2"]]),tl=F(e.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#close"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[e.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cbcad2a0"]]),vy=F(e.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#edit"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[e.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-55ea5a5c"]]),qy=F(e.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#email"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-99358e0a"]]),jy=F(e.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[e.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-05547f14"]]),Wy=F(e.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#phone"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[e.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-131f6ba1"]]),Gy=F(e.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size})},[...o[0]||(o[0]=[e.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])],6)),o[1]||(o[1]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[e.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),e.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-4d8b581f"]]),Qy=F(e.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:"16px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-46c690c8"]]),Yy=F(e.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:"16px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-b688738b"]]),Xy=F(e.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:"16px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-bd131770"]]),Zy=F(e.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:"16px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)])],38)),i[3]||(i[3]=e.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[e.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-db5832a2"]]),Jy=F(e.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:"16px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(n){const t=e.ref(!1);return(o,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["icon",n.iconClass]),style:e.normalizeStyle({margin:n.margin,width:n.size,height:n.size,fill:n.hoverColor?e.unref(t)?n.hoverColor:n.color:(e.unref(t),n.color)}),onMouseenter:i[0]||(i[0]=r=>t.value=!0),onMouseleave:i[1]||(i[1]=r=>t.value=!1)},[...i[2]||(i[2]=[e.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)])],38)),i[3]||(i[3]=e.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-5abed3e4><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-5abed3e4><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-5abed3e4></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-5abed3e4></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-5abed3e4></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-5abed3e4"]]);function Ky(n){n.component("IconDownload",Ly),n.component("IconFilter",_y),n.component("ArrowLeft",Qy),n.component("ArrowRight",Yy),n.component("DoubleArrowLeft",Xy),n.component("DoubleArrowRight",Zy),n.component("EllipsisSvg",Jy),n.component("IconArrowLeft",Hy),n.component("IconCheckDefault",Uy),n.component("IconClose",tl),n.component("IconEdit",vy),n.component("IconEmail",qy),n.component("IconMove",jy),n.component("IconPhone",Wy),n.component("IconSearch",Ka),n.component("IconSelectArrow",Gy)}const e0=e.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(n){const t=e.ref(n.initActiveIdx),o=i=>{t.value=i};return e.watch(()=>n.initActiveIdx,()=>{o(n.initActiveIdx)}),{changeActiveId:o,activeIdx:t}}});function t0(n,t,o,i,r,s){return e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(n.$slots,"default",{activeIdx:n.activeIdx,changeActiveId:n.changeActiveId})])}const n0=F(e0,[["render",t0]]),o0=e.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"var(--brand-surface)"},backgroundAttention:{type:String,required:!1,default:"var(--brand-surface)"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(n,{emit:t}){const o=e.ref(n.activeId==="0"),i=()=>{o.value=!o.value,t("changeActiveId",n.tabId)};return e.onUpdated(()=>{n.activeId&&n.activeId!==n.tabId&&(o.value=!0)}),e.onBeforeMount(()=>{n.activeId&&n.activeId!==n.tabId&&(o.value=!1)}),{collapsed:o,handleItemClick:i}}}),i0=["for"],r0={class:"inside-icon"};function s0(n,t,o,i,r,s){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"tab",style:e.normalizeStyle({margin:n.margin,height:n.isCollaps&&n.collapsed?"60px":"","box-shadow":n.selectable&&n.activeId===n.tabId?"0px 0px 1px 2px var(--button-primary-background)":""})},[n.isCollaps&&n.collapsed?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:t[0]||(t[0]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[...t[3]||(t[3]=[e.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)])])):n.isCollaps&&!n.collapsed?(e.openBlock(),e.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:t[1]||(t[1]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[...t[4]||(t[4]=[e.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("label",{for:n.tabId,onClick:t[2]||(t[2]=(...a)=>n.handleItemClick&&n.handleItemClick(...a))},[e.createElementVNode("div",{style:e.normalizeStyle({cursor:n.isCollaps?"pointer":"default",background:n.changeColor?n.background:n.backgroundAttention,padding:n.padding,borderRadius:"var(--border-radius-default)"}),class:"tab-name"},[e.createElementVNode("div",r0,[e.renderSlot(n.$slots,"icon",{},void 0,!0)]),e.createElementVNode("div",{class:"title-in",style:e.normalizeStyle({marginRight:n.isCollaps?"50px":"0",width:n.isCollaps?"calc(100% - 50px)":"100%"})},[e.renderSlot(n.$slots,"inside-title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)],4),e.createElementVNode("div",{class:e.normalizeClass(["tools-bar",{"hidden-part":n.showToolsOnHover}])},[e.renderSlot(n.$slots,"tools",{},void 0,!0)],2)],4)],8,i0),e.createElementVNode("div",{style:e.normalizeStyle({maxHeight:n.isCollaps?"":"1000000vh",background:n.changeColor?n.background:n.backgroundAttention}),class:e.normalizeClass(n.collapsed?"tab-content-down":"tab-content-up")},[e.renderSlot(n.$slots,"default",{},void 0,!0)],6)],4),t[5]||(t[5]=e.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-6fb8269e><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-6fb8269e><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-6fb8269e></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-6fb8269e><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-6fb8269e></path></symbol></svg>',1))],64)}const a0=F(o0,[["render",s0],["__scopeId","data-v-6fb8269e"]]),l0={class:"tab"},c0={class:"rotate"},d0=F(e.defineComponent({__name:"VerticalCollapseContainer",setup(n){const t=e.ref(!1),o=async()=>{t.value=!t.value};return(i,r)=>{const s=e.resolveComponent("ArrowRight"),a=e.resolveComponent("ArrowLeft");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",l0,[e.renderSlot(i.$slots,"main",{},void 0,!0),e.createElementVNode("div",{style:e.normalizeStyle({width:e.unref(t)?"50%":"20px",transition:"0.3s"}),class:"left"},[e.createElementVNode("div",{style:e.normalizeStyle({width:e.unref(t)?"100%":"0",transition:"0.3s"}),class:"left-content"},[e.renderSlot(i.$slots,"inside-content-left",{},void 0,!0)],4),e.createElementVNode("div",{class:"arrow-bar",onClick:o},[e.createElementVNode("div",c0,[e.renderSlot(i.$slots,"inside-title",{},void 0,!0)]),e.unref(t)?(e.openBlock(),e.createBlock(s,{key:0,"icon-class":"icon-arrow"})):(e.openBlock(),e.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),e.createElementVNode("div",{style:e.normalizeStyle({width:e.unref(t)?"50%":"100%",transition:"0.3s"}),class:"right"},[e.renderSlot(i.$slots,"inside-content-right",{},void 0,!0)],4)]),e.createVNode(a),e.createVNode(s)],64)}}}),[["__scopeId","data-v-0efb3cd1"]]),f0={class:"add-block_body"},u0=F(e.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(n){return(t,o)=>{const i=e.resolveComponent("PSticky");return e.openBlock(),e.createElementBlock("div",{class:"add-block",style:e.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[e.createVNode(i,{top:n.top,"z-index":n.zIndex},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),e.createElementVNode("div",f0,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),m0=F(e.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"add-block",style:e.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-30f46b57"]]),h0={class:"add-block_body"},p0=F(e.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(n){return(t,o)=>{const i=e.resolveComponent("PSticky"),r=e.resolveComponent("PContainer");return e.openBlock(),e.createBlock(r,{background:n.background,margin:n.margin,padding:n.padding},{default:e.withCtx(()=>[e.createVNode(i,{top:n.top,"z-index":n.zIndex},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),e.createElementVNode("div",h0,[e.renderSlot(t.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-caedda9d"]]),g0={class:"select-dialog"},y0={class:"select-dialog-header"},w0={class:"select-dialog-title"},b0={class:"select-dialog-content"},S0={class:"select-dialog-actions"},nl=F(e.defineComponent({__name:"PAddDialog",props:e.mergeModels({title:{type:String,default:""},store:{type:Object,required:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:e.mergeModels(["add","close"],["update:modelValue"]),setup(n,{expose:t,emit:o}){const i=n,r=o,s=e.useModel(n,"modelValue"),a=e.ref([]),c=C.Ripple,l=C.ClosePopup,f=async()=>{await i.store.GetOptions(),a.value=i.store.Options},u=async $=>{await i.store.Get($.value);const E=i.store.Item,M=new E.constructor(E);r("add",M),m()},m=()=>{r("close"),s.value=!1},h=$=>{$||r("close")},w=()=>{s.value&&m()},k=()=>{s.value=!s.value},N=async()=>{await e.nextTick();const $=document.querySelector(".select-dialog-content .q-item");$&&"focus"in $&&$.focus()};return t({opened:s,toggle:k}),e.onBeforeMount(f),($,E)=>(e.openBlock(),e.createBlock(pn,{modelValue:s.value,"onUpdate:modelValue":[E[0]||(E[0]=M=>s.value=M),h],position:"top",onKeydown:e.withKeys(w,["escape"]),onShow:N},{default:e.withCtx(()=>[e.createElementVNode("div",g0,[e.createElementVNode("div",y0,[e.createElementVNode("div",w0,e.toDisplayString(n.title),1),e.withDirectives(e.createVNode(ne,{icon:"close",flat:"",dense:"",round:"",size:"sm"},null,512),[[e.unref(l)]])]),e.createElementVNode("div",b0,[e.createVNode(e.unref(C.QList),{bordered:"",separator:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),M=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(C.QItem),{key:M.value,clickable:"",class:"q-px-md q-py-sm",onClick:b=>u(M)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QItemSection),null,{default:e.withCtx(()=>[e.createVNode(e.unref(C.QItemLabel),{class:"text-body1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.label),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["onClick"])),[[e.unref(c)]])),128))]),_:1})]),e.createElementVNode("div",S0,[e.withDirectives(e.createVNode(ne,{flat:"",label:"Закрыть",size:"sm",color:"negative"},null,512),[[e.unref(l)]])])])]),_:1},8,["modelValue"]))}}),[["__scopeId","data-v-00945a5f"]]),C0=["src"],k0={key:0,class:"header-row"},x0={class:"title-wrapper"},E0={key:0,class:"title-icon"},B0={class:"title-text"},V0={class:"text-subtitle1 text-weight-medium"},N0={key:0,class:"caption-row"},$0={class:"text-caption"},T0=["innerHTML"],P0={key:1,class:"card-footer"},ol=F(e.defineComponent({__name:"PCard",props:{height:{type:String,default:"auto"},maxHeight:{type:String,default:"none"},img:{type:String,default:""},title:{type:String,default:""},content:{type:String,default:""},caption:{type:String,default:""},icon:{type:String,default:""},isMain:{type:Boolean,default:!1},noPointer:{type:Boolean,default:!1},noHover:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:t}){const o=e.ref(null),i=n,r=t,s=e.computed(()=>i.img?i.isMain?"365px":"200px":"0"),a=c=>{i.noPointer||r("click",c)};return(c,l)=>(e.openBlock(),e.createBlock(e.unref(C.QCard),{class:e.normalizeClass(["card",{"no-hover":n.noHover,"cursor-pointer":!n.noPointer}]),flat:"",bordered:"",style:e.normalizeStyle({height:n.height}),onClick:a},{default:e.withCtx(()=>[n.img?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image-container",style:e.normalizeStyle({height:s.value})},[e.createElementVNode("img",{class:"image-img",src:n.img,alt:"image",style:e.normalizeStyle({height:s.value})},null,12,C0)],4)):e.createCommentVNode("",!0),e.createVNode(e.unref(C.QCardSection),{class:"card-content",style:e.normalizeStyle({maxHeight:n.maxHeight})},{default:e.withCtx(()=>[n.title||c.$slots.title||c.$slots.icon?(e.openBlock(),e.createElementBlock("div",k0,[e.createElementVNode("div",x0,[n.icon||c.$slots.icon?(e.openBlock(),e.createElementBlock("div",E0,[e.renderSlot(c.$slots,"icon",{},()=>[e.createVNode(e.unref(C.QIcon),{name:n.icon,size:"20px",color:"primary"},null,8,["name"])],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",B0,[e.renderSlot(c.$slots,"title",{},()=>[e.createElementVNode("span",V0,e.toDisplayString(n.title),1)],!0)])]),c.$slots.caption||n.caption?(e.openBlock(),e.createElementBlock("div",N0,[e.renderSlot(c.$slots,"caption",{},()=>[e.createElementVNode("span",$0,e.toDisplayString(n.caption),1)],!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.title||c.$slots.title?(e.openBlock(),e.createBlock(e.unref(C.QSeparator),{key:1,class:"header-separator"})):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:o,class:"content-wrapper"},[e.renderSlot(c.$slots,"default",{},()=>[n.content?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.isMain?"main-content":"preview-content"),innerHTML:n.content},null,10,T0)):e.createCommentVNode("",!0)],!0)],512)]),_:3},8,["style"]),c.$slots.footer?(e.openBlock(),e.createElementBlock("div",P0,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]),_:3},8,["style","class"]))}}),[["__scopeId","data-v-d4a8199b"]]),M0={key:0,class:"list-title"},I0={class:"draggable-item"},R0={class:"drag-handle"},A0={class:"item-content"},z0={key:0,class:"item-actions"},D0={class:"item-content"},F0={key:0,class:"item-actions"},O0={key:4,class:"add-button-container"},L0=e.defineComponent({__name:"PCrudList",props:{sortable:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},title:{type:String,required:!0,default:""},store:{type:O.H.BaseStore,default:void 0},addFunc:{type:Function,default:void 0},addToList:{type:Boolean,default:!0},removeFromList:{type:Boolean,default:!0},margin:{type:String,required:!0,default:"0"},background:{type:String,required:!0,default:"var(--background-color)"}},emits:["add","remove","update","sort"],setup(n,{emit:t}){e.useCssVars(l=>({v1e4e6727:n.background}));const o=n,i=t,r=async()=>{const l=o.addFunc?await o.addFunc():void 0;l&&(typeof l.order<"u"&&(l.order=o.list.length),o.addToList&&o.store&&o.store.AppendToAll(l),o.store&&await o.store.Create(l)),await c(),i("add",l)},s=async l=>{o.removeFromList&&O.H.Classes.RemoveFromClassById(l,o.list),o.store&&await o.store.Remove(l),await c(),i("remove",l)},a=async l=>{o.store&&await o.store.Update(l),i("update",l)},c=async()=>{!o.sortable||o.list.length===0||typeof o.list[0].order>"u"||(O.H.Sorter.Sort(o.list),o.store&&await o.store.UpdateMany(o.list),i("sort"))};return(l,f)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(l.$attrs,{style:{margin:n.margin,boxSizing:"border-box"},class:"ordered-list"}),[n.title?(e.openBlock(),e.createElementBlock("div",M0,e.toDisplayString(n.title),1)):e.renderSlot(l.$slots,"title",{},void 0,!0,1),n.sortable?(e.openBlock(),e.createBlock(e.unref(Bo),{key:2,class:"draggable-list",list:n.list,"item-key":"id",handle:".drag-handle",onEnd:c},{item:e.withCtx(({element:u,index:m})=>[e.createElementVNode("div",I0,[e.createElementVNode("div",R0,[e.createVNode(e.unref(C.QIcon),{name:"drag_indicator",class:"drag-icon"})]),e.createElementVNode("div",A0,[e.renderSlot(l.$slots,"default",{item:u,update:a,index:m},()=>[e.createVNode(et,{modelValue:u.name,"onUpdate:modelValue":h=>u.name=h,outlined:"",dense:"",class:"content-input",onBlur:h=>a(u)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),n.showDelete?(e.openBlock(),e.createElementBlock("div",z0,[e.createVNode(ne,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:h=>s(u.id)},null,8,["onClick"])])):e.createCommentVNode("",!0)])]),_:3},8,["list"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.list,(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"static-item",style:e.normalizeStyle({background:n.background})},[e.createElementVNode("div",D0,[e.renderSlot(l.$slots,"default",{item:u,update:a,index:m},()=>[e.createVNode(et,{modelValue:u.name,"onUpdate:modelValue":h=>u.name=h,outlined:"",dense:"",class:"content-input",onBlur:h=>a(u)},null,8,["modelValue","onUpdate:modelValue","onBlur"])],!0)]),n.showDelete?(e.openBlock(),e.createElementBlock("div",F0,[e.createVNode(ne,{icon:"delete",flat:"",round:"",dense:"",color:"negative",class:"delete-btn",onClick:h=>s(u.id)},null,8,["onClick"])])):e.createCommentVNode("",!0)],4))),128)),n.showAdd?(e.openBlock(),e.createElementBlock("div",O0,[e.createVNode(ne,{color:"secondary",label:"Добавить",icon:"add",class:"add-btn",onClick:r})])):e.createCommentVNode("",!0)],16))}}),il=F(L0,[["__scopeId","data-v-f865563d"]]),_0={class:"del-block_title"},H0={class:"del-block_body"},U0=F(e.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"del-block",style:e.normalizeStyle({margin:n.margin,background:n.background,padding:n.padding})},[e.createElementVNode("div",_0,[e.renderSlot(t.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",H0,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),rl=F(e.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},maxHeight:{type:String,default:"70vh"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(n,{emit:t}){const o=n,i=t,r=a=>{a.key==="Escape"&&s()};e.onMounted(()=>{document.body.addEventListener("keydown",r)}),e.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{o.closable&&i("close")};return(a,c)=>{const l=e.resolveComponent("IconClose");return e.openBlock(),e.createElementBlock(e.Fragment,null,[n.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:"blur",onClick:s})):e.createCommentVNode("",!0),n.show?(e.openBlock(),e.createElementBlock("div",{key:1,class:"modal-w",style:e.normalizeStyle({maxWidth:n.width,width:n.width,margin:n.margin,padding:n.padding,top:n.top,maxHeight:n.maxHeight})},[n.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[e.createVNode(l,{size:"20px"})])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-6f3c0556"]]);function v0(n){n.component("CollapseContainer",n0),n.component("CollapseItem",a0),n.component("VerticalCollapseContainer",d0),n.component("PAdd",u0),n.component("PAddDialog",nl),n.component("PCard",ol),n.component("PCrudList",il),n.component("PEditDialog",Un),n.component("PModal",rl),n.component("PContainer",m0),n.component("PContainerStickyHead",p0),n.component("PDel",U0)}const q0={class:"btn-group"},sl=F(e.defineComponent({__name:"PAuthForm",props:{width:{type:String,default:"auto"},margin:{type:String,default:"auto"},padding:{type:String,default:"0"},background:{type:String,default:"inherit"}},emits:["submit"],setup(n,{emit:t}){const o=t,i=e.computed(()=>Fe.Form.GetButtons()),r=e.useTemplateRef("fields"),s=async c=>{if(!c.isSubmit){Fe.Form.SetChunk(c.GetChunk()),a();return}const l=Fe.Form.Validate();if(l.length>0){Kt.Notify.Error(l.join("<br/>"));return}o("submit")},a=()=>{if(!r.value)return;const c=r.value[0];c&&c.$refs.input.focus()};return e.onMounted(async()=>{await a()}),e.onBeforeUnmount(()=>{Fe.Form.Reset()}),(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:"auth-card",style:e.normalizeStyle({maxWidth:n.width,margin:n.margin,padding:n.padding,background:n.background})},[e.createVNode(nr,{string:e.unref(Fe).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Fe).Form.GetFields(),f=>(e.openBlock(),e.createBlock(et,{id:f.id,key:f.id,ref_for:!0,ref_key:"fields",ref:r,modelValue:f.value,"onUpdate:modelValue":u=>f.value=u,autocomplete:"nope",type:f.IsPassword?"password":"text",placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),e.createElementVNode("div",q0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(f,u)=>(e.openBlock(),e.createBlock(ne,{id:f.id,key:f.GetChunk(),disabled:e.unref(Fe).Form.IsBlock,type:u===0?e.unref(me).Success:e.unref(me).Primary,skin:"base",text:f.text,margin:"10px 0 0 0",width:"100%",onClick:m=>s(f)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),j0=e.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(n){const t=()=>{Fe.Form.Reset(),Fe.Modal.Close()};return(o,i)=>(e.openBlock(),e.createBlock(rl,{show:e.unref(Fe).Modal.Visible,closable:e.unref(Fe).Modal.Closable,width:n.width,padding:n.padding,onClose:t},{default:e.withCtx(()=>[e.createVNode(sl,{margin:n.margin,padding:"0",onSubmit:i[0]||(i[0]=r=>o.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),W0=["onClick"],G0=F(e.defineComponent({__name:"PMenuTabs",props:{menus:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"var(--brand-surface)"},margin:{type:String,required:!1,default:"var(--tabs-margin, 0 10px 10px 10px)"},borderRadius:{type:String,required:!1,default:"var(--tabs-border-radius, 10px)"}},emits:["select"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(window.innerWidth),s=e.ref(),a=e.ref(Number(o.tabHeight.replace(/[^+\d]/g,""))),c=()=>{r.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(o.tabHeight.replace(/[^+\d]/g,""))};e.onMounted(()=>window.addEventListener("resize",c)),e.onUnmounted(()=>window.removeEventListener("resize",c));const l=e.computed(()=>`calc(100% - ${a.value}px + 1px)`);e.onBeforeMount(()=>{o.menus.Select()});const f=u=>{o.menus.Select(u),i("select")};return(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"mainblock",style:e.normalizeStyle({height:`calc(100% - ${n.outTopMargin} - ${n.tabHeight}`,margin:n.margin,borderRadius:n.borderRadius})},[e.createElementVNode("div",{ref_key:"menuRef",ref:s,class:"top-menu",style:e.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${n.minMenuItemWidth}, 1fr))`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.menus.items,(h,w)=>(e.openBlock(),e.createElementBlock("div",{key:w},[e.createElementVNode("div",{class:e.normalizeClass({"selected-tab":w===n.menus.idx,tab:w!==n.menus.idx}),style:e.normalizeStyle({minHeight:n.tabHeight,maxHeight:n.tabHeight}),onClick:k=>f(w)},e.toDisplayString(h.name),15,W0)]))),128))],4),e.createElementVNode("div",{class:"body-container",style:e.normalizeStyle({background:n.background,height:e.unref(l)})},[e.renderSlot(u.$slots,"default",{},()=>[n.menus.idx>-1?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.menus.GetComponent()),{key:0})):e.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-45817c53"]]),Q0=["id"],Y0=["for"],X0={class:"left-field"},Z0=["href","download"],J0={key:1,class:"text-field__input"},K0={class:"right-field"},ew=e.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new $t},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(n,{emit:t}){const o=n,i=t,r=nt.GUID(),s=nt.GUID(),a=()=>{const f=document.getElementById(r);if(!f.files)return;const u=f.files[0];if(!u)return;if(!l(u.name)){Xt.Error(`Загруженный файл должен быть в одном из форматов: ${o.formats.join(", ")}`);return}const m=new $t;m.setFile(u),m.url=URL.createObjectURL(u),i("upload",m)},c=()=>{i("remove")};e.onMounted(()=>{const f=document.getElementById(s);f&&(f.onclick=()=>{var u;return(u=document.getElementById(r))==null?void 0:u.click()})});const l=f=>{let u=sa.Get(f);return!!o.formats.includes(u.toLowerCase())};return(f,u)=>{const m=e.resolveComponent("PString"),h=e.resolveComponent("PFlex"),w=e.resolveComponent("PButton");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("input",{id:e.unref(r),type:"file",hidden:"",onChange:a},null,40,Q0),e.createElementVNode("div",{class:"text-field",style:e.normalizeStyle({margin:n.margin,padding:n.padding})},[n.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"text-field__label",for:n.label},e.toDisplayString(n.label),9,Y0)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"field",style:e.normalizeStyle({borderColor:n.borderColor})},[e.createElementVNode("div",X0,[e.createVNode(h,null,{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},void 0,!0),e.createVNode(m,{string:n.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),n.fileInfo&&n.fileInfo.originalName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-field__input",style:e.normalizeStyle({color:n.color})},[e.createElementVNode("a",{href:n.fileInfo.getFileUrl(),target:"_blank",download:n.fileInfo.originalName},[e.createElementVNode("div",null,e.toDisplayString(n.fileInfo.originalName),1)],8,Z0),e.createVNode(w,{skin:"text",type:"del",onClick:c},{default:e.withCtx(()=>[e.createVNode(tl,{size:"20px",margin:"0 5px"})]),_:1})],4)):(e.openBlock(),e.createElementBlock("div",J0,[e.createVNode(m,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),e.createElementVNode("div",K0,[e.createVNode(w,{id:e.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:n.fileInfo&&n.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),tw=F(ew,[["__scopeId","data-v-8b73ee22"]]);function al(n,t){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),o.push.apply(o,i)}return o}function le(n){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?al(Object(o),!0).forEach(function(i){pt(n,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):al(Object(o)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(o,i))})}return n}function pt(n,t,o){return t in n?Object.defineProperty(n,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[t]=o,n}function nw(n,t){if(n==null)return{};var o,i,r=function(a,c){if(a==null)return{};var l,f,u={},m=Object.keys(a);for(f=0;f<m.length;f++)l=m[f],c.indexOf(l)>=0||(u[l]=a[l]);return u}(n,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)o=s[i],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(n,o)&&(r[o]=n[o])}return r}function kn(n){return function(t){if(Array.isArray(t))return Nr(t)}(n)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(n)||function(t,o){if(t){if(typeof t=="string")return Nr(t,o);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Nr(t,o)}}(n)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Nr(n,t){(t==null||t>n.length)&&(t=n.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=n[o];return i}var ll,ow,ii,Pe=(ll=function(n){/*!
|
|
27
|
-
Copyright (c) 2018 Jed Watson.
|
|
28
|
-
Licensed under the MIT License (MIT), see
|
|
29
|
-
http://jedwatson.github.io/classnames
|
|
30
|
-
*/(function(){var t={}.hasOwnProperty;function o(){for(var i=[],r=0;r<arguments.length;r++){var s=arguments[r];if(s){var a=typeof s;if(a==="string"||a==="number")i.push(s);else if(Array.isArray(s)){if(s.length){var c=o.apply(null,s);c&&i.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var l in s)t.call(s,l)&&s[l]&&i.push(l);else i.push(s.toString())}}return i.join(" ")}n.exports?(o.default=o,n.exports=o):window.classNames=o})()},ll(ii={path:ow,exports:{},require:function(n,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&ii.path)}},ii.exports),ii.exports),Et=function(n){return function(t,o){if(!t)return n;var i;typeof t=="string"?i=t:o=t;var r=n;return i&&(r+="__"+i),r+(o?Object.keys(o).reduce(function(s,a){var c=o[a];return c&&(s+=" "+(typeof c=="boolean"?r+"--"+a:r+"--"+a+"_"+c)),s},""):"")}};function $r(n,t,o){var i,r,s,a,c;function l(){var u=Date.now()-a;u<t&&u>=0?i=setTimeout(l,t-u):(i=null,o||(c=n.apply(s,r),s=r=null))}t==null&&(t=100);var f=function(){s=this,r=arguments,a=Date.now();var u=o&&!i;return i||(i=setTimeout(l,t)),u&&(c=n.apply(s,r),s=r=null),c};return f.clear=function(){i&&(clearTimeout(i),i=null)},f.flush=function(){i&&(c=n.apply(s,r),s=r=null,clearTimeout(i),i=null)},f}$r.debounce=$r;var Tr=$r,X=function(){return X=Object.assign||function(n){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},X.apply(this,arguments)};/*! *****************************************************************************
|
|
31
|
-
Copyright (c) Microsoft Corporation.
|
|
32
|
-
|
|
33
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
34
|
-
purpose with or without fee is hereby granted.
|
|
35
|
-
|
|
36
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
38
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
39
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
40
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
41
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
42
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
-
***************************************************************************** */function cl(n,t){var o,i;return n&&t?(o=""+n+t[0].toUpperCase()+t.slice(1),i=n+"-"+t):(o=n||t,i=n||t),{name:o,classname:i}}function dl(n){return/^blob:/.test(n)}function fl(n){return dl(n)||function(t){return/^data:/.test(t)}(n)}function vn(n){return!!(n&&n.constructor&&n.call&&n.apply)}function ze(n){return n===void 0}function ri(n){return typeof n=="object"&&n!==null}function Pr(n,t,o){var i={};return ri(n)?(Object.keys(t).forEach(function(r){ze(n[r])?i[r]=t[r]:ri(t[r])?ri(n[r])?i[r]=Pr(n[r],t[r],o[r]):i[r]=n[r]?t[r]:o[r]:t[r]===!0||t[r]===!1?i[r]=!!n[r]:i[r]=n[r]}),i):n?t:o}function si(n){var t=Number(n);return Number.isNaN(t)?n:t}function ul(n){return typeof(n=="number"||function(t){return typeof t=="object"&&t!==null}(n)&&toString.call(n)=="[object Number]")&&!ml(n)}function ml(n){return n!=n}function hl(n,t){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}var yo=function(n,t){n===void 0&&(n={}),t===void 0&&(t={}),this.type="manipulateImage",this.move=n,this.scale=t},iw=function(n,t){t===void 0&&(t={}),this.type="resize",this.directions=n,this.params=t},Mr=function(n){this.type="move",this.directions=n},rw=function(){function n(t,o,i,r,s){this.type="drag",this.nativeEvent=t,this.position=i,this.previousPosition=r,this.element=o,this.anchor=s}return n.prototype.shift=function(){var t=this,o=t.element,i=t.anchor,r=t.position;if(o){var s=o.getBoundingClientRect(),a=s.left,c=s.top;return{left:r.left-a-i.left,top:r.top-c-i.top}}return{left:0,top:0}},n}(),Ir={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(n){n.cancelable&&!this.disabled&&n.touches.length===1&&(this.touches=kn(n.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),n.touches.length&&this.initAnchor(this.touches.reduce(function(t,o){return{clientX:t.clientX+o.clientX/n.touches.length,clientY:t.clientY+o.clientY/n.touches.length}},{clientX:0,clientY:0})),n.preventDefault&&n.preventDefault(),n.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(n){this.touches.length&&(this.processMove(n,n.touches),n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation())},onMouseDown:function(n){if(!this.disabled){var t={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[t],this.initAnchor(t),n.stopPropagation()}},onMouseMove:function(n){this.touches.length&&(this.processMove(n,[{fake:!0,clientX:n.clientX,clientY:n.clientY}]),n.preventDefault&&n.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(n){var t=this.$refs.draggable.getBoundingClientRect(),o=t.left,i=t.right,r=t.bottom,s=t.top;this.anchor={left:n.clientX-o,top:n.clientY-s,bottom:r-n.clientY,right:i-n.clientX}},processMove:function(n,t){var o=kn(t);if(this.touches.length){if(this.touches.length===1&&o.length===1){var i=this.$refs.draggable;this.$emit("drag",new rw(n,i,{left:o[0].clientX,top:o[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=o}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Ir.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"draggable",class:o.classname,onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:t[3]||(t[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:t[4]||(t[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[e.renderSlot(n.$slots,"default")],34)};var Rr=Et("vue-handler-wrapper"),pl={name:"HandlerWrapper",components:{DraggableElement:Ir},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var n;if(this.horizontalPosition||this.verticalPosition){var t,o=cl(this.horizontalPosition,this.verticalPosition);n=Rr((pt(t={},o.classname,!0),pt(t,"disabled",this.disabled),t))}else n=Rr({disabled:this.disabled});return{root:n,draggable:Rr("draggable")}}},emits:["leave","enter","drag","drag-end"]};pl.render=function(n,t,o,i,r,s){var a=e.resolveComponent("DraggableElement");return e.openBlock(),e.createBlock("div",{class:s.classes.root},[e.createVNode(a,{class:s.classes.draggable,onDrag:t[1]||(t[1]=function(c){return n.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return n.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return n.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return n.$emit("enter")})},{default:e.withCtx(function(){return[e.renderSlot(n.$slots,"default")]}),_:3},8,["class"])],2)};var sw=Et("vue-line-wrapper"),gl={name:"LineWrapper",components:{DraggableElement:Ir},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var n;return sw((pt(n={},this.position,!0),pt(n,"disabled",this.disabled),n))}},emits:["leave","enter","drag","drag-end"]};gl.render=function(n,t,o,i,r,s){var a=e.resolveComponent("DraggableElement");return e.openBlock(),e.createBlock(a,{class:s.classname,onDrag:t[1]||(t[1]=function(c){return n.$emit("drag",c)}),onDragEnd:t[2]||(t[2]=function(c){return n.$emit("drag-end")}),onLeave:t[3]||(t[3]=function(c){return n.$emit("leave")}),onEnter:t[4]||(t[4]=function(c){return n.$emit("enter")})},{default:e.withCtx(function(){return[e.renderSlot(n.$slots,"default")]}),_:3},8,["class"])};var Rt=["left","right","top","bottom"],aw=["left","right"],lw=["top","bottom"],cw=["left","top"],dw=["fill-area","fit-area","stencil","none"],yl={left:0,top:0,width:0,height:0};function wl(n,t,o){return!(o=o||["width","height","left","top"]).some(function(i){return n[i]!==t[i]})}function At(n){return{left:n.left,top:n.top,right:n.left+n.width,bottom:n.top+n.height}}function qn(n,t){return{left:n.left-t.left,top:n.top-t.top}}function _e(n){return{left:n.left+n.width/2,top:n.top+n.height/2}}function wo(n,t){var o={left:0,top:0,right:0,bottom:0};return Rt.forEach(function(i){var r=t[i],s=At(n)[i];o[i]=r!==void 0&&s!==void 0?i==="left"||i==="top"?Math.max(0,r-s):Math.max(0,s-r):0}),o}function zt(n,t){return{left:n.left-t.left,top:n.top-t.top,width:n.width+t.left+t.right,height:n.height+t.top+t.bottom}}function ai(n){return{left:-n.left,top:-n.top}}function rt(n,t){return X(X({},n),{left:n.left+t.left,top:n.top+t.top})}function gt(n,t,o,i){if(t!==1){if(o){var r=_e(n);return{width:n.width*t,height:n.height*t,left:n.left+n.width*(1-t)/2+(o.left-r.left)*(1-t),top:n.top+n.height*(1-t)/2+(o.top-r.top)*(1-t)}}return{width:n.width*t,height:n.height*t,left:n.left+n.width*(1-t)/2,top:n.top+n.height*(1-t)/2}}return n}function ce(n){return n.width/n.height}function jn(n,t){return Math.min(t.right!==void 0&&t.left!==void 0?(t.right-t.left)/n.width:1/0,t.bottom!==void 0&&t.top!==void 0?(t.bottom-t.top)/n.height:1/0)}function Wn(n,t){var o={left:0,top:0},i=wo(n,t);return i.left&&i.left>0?o.left=i.left:i.right&&i.right>0&&(o.left=-i.right),i.top&&i.top>0?o.top=i.top:i.bottom&&i.bottom>0&&(o.top=-i.bottom),o}function Ar(n,t){var o;return t.minimum&&n<t.minimum?o=t.minimum:t.maximum&&n>t.maximum&&(o=t.maximum),o}function bl(n,t){var o=ce(n),i=ce(t);return t.width<1/0&&t.height<1/0?o>i?{width:t.width,height:t.width/o}:{width:t.height*o,height:t.height}:t.width<1/0?{width:t.width,height:t.width/o}:t.height<1/0?{width:t.height*o,height:t.height}:n}function Sl(n,t){var o=t*Math.PI/180;return{width:Math.abs(n.width*Math.cos(o))+Math.abs(n.height*Math.sin(o)),height:Math.abs(n.width*Math.sin(o))+Math.abs(n.height*Math.cos(o))}}function en(n,t){var o=t*Math.PI/180;return{left:n.left*Math.cos(o)-n.top*Math.sin(o),top:n.left*Math.sin(o)+n.top*Math.cos(o)}}function li(n,t){var o=wo(He(n,t),t);return o.left+o.right+o.top+o.bottom?o.left+o.right>o.top+o.bottom?Math.min((n.width+o.left+o.right)/n.width,jn(n,t)):Math.min((n.height+o.top+o.bottom)/n.height,jn(n,t)):1}function He(n,t,o){o===void 0&&(o=!1);var i=Wn(n,t);return rt(n,o?ai(i):i)}function zr(n){return{width:n.right!==void 0&&n.left!==void 0?n.right-n.left:1/0,height:n.bottom!==void 0&&n.top!==void 0?n.bottom-n.top:1/0}}function fw(n,t){return X(X({},n),{minWidth:Math.min(t.width,n.minWidth),minHeight:Math.min(t.height,n.minHeight),maxWidth:Math.min(t.width,n.maxWidth),maxHeight:Math.min(t.height,n.maxHeight)})}function Cl(n,t,o){o===void 0&&(o=!0);var i={};return Rt.forEach(function(r){var s=n[r],a=t[r];s!==void 0&&a!==void 0?i[r]=r==="left"||r==="top"?o?Math.max(s,a):Math.min(s,a):o?Math.min(s,a):Math.max(s,a):a!==void 0?i[r]=a:s!==void 0&&(i[r]=s)}),i}function ci(n,t){return Cl(n,t,!0)}function kl(n){var t=n.size,o=n.aspectRatio,i=n.ignoreMinimum,r=n.sizeRestrictions;return!!((t.correctRatio||ce(t)>=o.minimum&&ce(t)<=o.maximum)&&t.height<=r.maxHeight&&t.width<=r.maxWidth&&t.width&&t.height&&(i||t.height>=r.minHeight&&t.width>=r.minWidth))}function xl(n,t){return Math.pow(n.width-t.width,2)+Math.pow(n.height-t.height,2)}function Ut(n){var t=n.width,o=n.height,i=n.sizeRestrictions,r={minimum:n.aspectRatio&&n.aspectRatio.minimum||0,maximum:n.aspectRatio&&n.aspectRatio.maximum||1/0},s={width:Math.max(i.minWidth,Math.min(i.maxWidth,t)),height:Math.max(i.minHeight,Math.min(i.maxHeight,o))};function a(f,u){return u===void 0&&(u=!1),f.reduce(function(m,h){return kl({size:h,aspectRatio:r,sizeRestrictions:i,ignoreMinimum:u})&&(!m||xl(h,{width:t,height:o})<xl(m,{width:t,height:o}))?h:m},null)}var c=[];r&&[r.minimum,r.maximum].forEach(function(f){f&&c.push({width:s.width,height:s.width/f,correctRatio:!0},{width:s.height*f,height:s.height,correctRatio:!0})}),kl({size:s,aspectRatio:r,sizeRestrictions:i})&&c.push(s);var l=a(c)||a(c,!0);return l&&{width:l.width,height:l.height}}function Dr(n){var t=n.event,o=n.coordinates,i=n.positionRestrictions,r=i===void 0?{}:i,s=rt(o,t.directions);return rt(s,Wn(s,r))}function uw(n){var t=n.coordinates,o=n.transform,i=n.imageSize,r=n.sizeRestrictions,s=n.positionRestrictions,a=n.aspectRatio,c=n.visibleArea,l=function(u,m){return Dr({coordinates:u,positionRestrictions:s,event:new Mr({left:m.left-u.left,top:m.top-u.top})})},f=X({},t);return(Array.isArray(o)?o:[o]).forEach(function(u){var m={};ze((m=typeof u=="function"?u({coordinates:f,imageSize:i,visibleArea:c}):u).width)&&ze(m.height)||(f=function(h,w){var k=X(X(X({},h),Ut({width:w.width,height:w.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return l(k,{left:h.left,top:h.top})}(f,X(X({},f),m))),ze(m.left)&&ze(m.top)||(f=l(f,X(X({},f),m)))}),f}function mw(n){n.event;var t=n.getAreaRestrictions,o=n.boundaries,i=n.coordinates,r=n.visibleArea;n.aspectRatio;var s=n.stencilSize,a=n.sizeRestrictions,c=n.positionRestrictions;n.stencilReference;var l,f,u,m=X({},i),h=X({},r),w=X({},s);l=ce(w),f=ce(m),u===void 0&&(u=.001),(l===0||f===0?Math.abs(f-l)<u:Math.abs(f/l)<1+u&&Math.abs(f/l)>1-u)||(m=X(X({},m),Ut({sizeRestrictions:a,width:m.width,height:m.height,aspectRatio:{minimum:ce(w),maximum:ce(w)}})));var k=li(h=gt(h,m.width*o.width/(h.width*w.width)),t({visibleArea:h,type:"resize"}));return k!==1&&(h=gt(h,k),m=gt(m,k)),h=He(h=rt(h,qn(_e(m),_e(h))),t({visibleArea:h,type:"move"})),{coordinates:m=He(m,ci(At(h),c)),visibleArea:h}}function hw(n){var t=n.event,o=n.getAreaRestrictions,i=n.boundaries,r=n.coordinates,s=n.visibleArea;n.aspectRatio,n.stencilSize,n.sizeRestrictions;var a=n.positionRestrictions;n.stencilReference;var c=X({},r),l=X({},s);if(r&&s&&t.type!=="manipulateImage"){var f={width:0,height:0};l.width,i.width,ce(i)>ce(c)?(f.height=.8*i.height,f.width=f.height*ce(c)):(f.width=.8*i.width,f.height=f.width*ce(c));var u=li(l=gt(l,c.width*i.width/(l.width*f.width)),o({visibleArea:l,type:"resize"}));l=gt(l,u),u!==1&&(f.height/=u,f.width/=u),l=He(l=rt(l,qn(_e(c),_e(l))),o({visibleArea:l,type:"move"})),c=He(c,ci(At(l),a))}return{coordinates:c,visibleArea:l}}function pw(n){var t=n.event,o=n.coordinates,i=n.visibleArea,r=n.getAreaRestrictions,s=X({},i),a=X({},o);if(t.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),l=Math.max(0,a.height-s.height);c>l?s=gt(s,Math.min(a.width/s.width,jn(s,r({visibleArea:s,type:"resize"})))):l>c&&(s=gt(s,Math.min(a.height/s.height,jn(s,r({visibleArea:s,type:"resize"}))))),s=He(s=rt(s,ai(Wn(a,At(s)))),r({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function gw(n){var t=n.imageSize,o=n.visibleArea,i=n.coordinates,r=o||t;return{left:(o?o.left:0)+r.width/2-i.width/2,top:(o?o.top:0)+r.height/2-i.height/2}}function yw(n){var t=n.imageSize,o=n.visibleArea,i=n.aspectRatio,r=n.sizeRestrictions,s=o||t,a=Math.min(i.maximum||1/0,Math.max(i.minimum||0,ce(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return Ut(X(X({},c),{aspectRatio:i,sizeRestrictions:r}))}function ww(n){var t,o,i=n.imageSize,r=n.visibleArea,s=n.boundaries,a=n.aspectRatio,c=n.sizeRestrictions,l=n.stencilSize,f=r||i;return ce(f)>ce(s)?o=(t=l.height*f.height/s.height)*ce(l):t=(o=l.width*f.width/s.width)/ce(l),Ut({width:o,height:t,aspectRatio:a,sizeRestrictions:c})}function bw(n){var t=n.getAreaRestrictions,o=n.coordinates,i=n.imageSize,r=ce(n.boundaries);if(o){var s={height:Math.max(o.height,i.height),width:Math.max(o.width,i.width)},a=bl({width:ce(s)>r?s.width:s.height*r,height:ce(s)>r?s.width/r:s.height},zr(t())),c={left:o.left+o.width/2-a.width/2,top:o.top+o.height/2-a.height/2,width:a.width,height:a.height},l=wo(o,At(X({left:0,top:0},i))),f={};return!l.left&&!l.right&&c.width<=i.width&&(f.left=0,f.right=i.width),!l.top&&!l.bottom&&c.height<=i.height&&(f.top=0,f.bottom=i.height),He(c,f)}var u=ce(i);return a={height:u>r?i.height:i.width/r,width:u>r?i.height*r:i.width},{left:i.width/2-a.width/2,top:i.height/2-a.height/2,width:a.width,height:a.height}}function di(n,t){return Cl(n,At(t))}function Sw(n){var t=n.event,o=n.coordinates,i=n.visibleArea,r=n.sizeRestrictions,s=n.getAreaRestrictions,a=n.positionRestrictions,c=n.adjustStencil,l=t.scale,f=t.move,u=X({},i),m=X({},o),h=1,w=1,k=l.factor&&Math.abs(l.factor-1)>.001;u=rt(u,{left:f.left||0,top:f.top||0});var N={stencil:{minimum:Math.max(r.minWidth?r.minWidth/m.width:0,r.minHeight?r.minHeight/m.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/m.width:1/0,r.maxHeight?r.maxHeight/m.height:1/0,jn(m,a))},area:{maximum:jn(u,s({visibleArea:u,type:"resize"}))}};l.factor&&k&&(l.factor<1?(w=Math.max(l.factor,N.stencil.minimum))>1&&(w=1):l.factor>1&&(w=Math.min(l.factor,Math.min(N.area.maximum,N.stencil.maximum)))<1&&(w=1)),w&&(u=gt(u,w,l.center));var $=o.left-i.left,E=i.width+i.left-(o.width+o.left),M=o.top-i.top,b=i.height+i.top-(o.height+o.top);return u=He(u=rt(u,Wn(u,{left:a.left!==void 0?a.left-$*w:void 0,top:a.top!==void 0?a.top-M*w:void 0,bottom:a.bottom!==void 0?a.bottom+b*w:void 0,right:a.right!==void 0?a.right+E*w:void 0})),s({visibleArea:u,type:"move"})),m.width=m.width*w,m.height=m.height*w,m.left=u.left+$*w,m.top=u.top+M*w,m=He(m,ci(At(u),a)),l.factor&&k&&c&&(l.factor>1?h=Math.min(N.area.maximum,l.factor)/w:l.factor<1&&(h=Math.max(m.height/u.height,m.width/u.width,l.factor/w)),h!==1&&(u=rt(u=He(u=gt(u,h,l.factor>1?l.center:_e(m)),s({visibleArea:u,type:"move"})),ai(Wn(m,At(u)))))),{coordinates:m,visibleArea:u}}function Cw(n){var t=n.aspectRatio,o=n.getAreaRestrictions,i=n.coordinates,r=n.visibleArea,s=n.sizeRestrictions,a=n.positionRestrictions,c=n.imageSize,l=n.previousImageSize,f=n.angle,u=X({},i),m=X({},r),h=en(_e(X({left:0,top:0},l)),f);return(u=X(X({},Ut({sizeRestrictions:s,aspectRatio:t,width:u.width,height:u.height})),en(_e(u),f))).left-=h.left-c.width/2+u.width/2,u.top-=h.top-c.height/2+u.height/2,m=gt(m,li(m,o({visibleArea:m,type:"resize"}))),{coordinates:u=He(u,a),visibleArea:m=He(m=rt(m,qn(_e(u),_e(i))),o({visibleArea:m,type:"move"}))}}function kw(n){var t=n.flip,o=n.previousFlip,i=n.rotate,r=n.getAreaRestrictions,s=n.coordinates,a=n.visibleArea,c=n.imageSize,l=X({},s),f=X({},a),u=o.horizontal!==t.horizontal,m=o.vertical!==t.vertical;if(u||m){var h=en({left:c.width/2,top:c.height/2},-i),w=en(_e(l),-i),k=en({left:u?h.left-(w.left-h.left):w.left,top:m?h.top-(w.top-h.top):w.top},i);l=rt(l,qn(k,_e(l))),w=en(_e(f),-i),f=He(f=rt(f,qn(k=en({left:u?h.left-(w.left-h.left):w.left,top:m?h.top-(w.top-h.top):w.top},i),_e(f))),r({visibleArea:f,type:"move"}))}return{coordinates:l,visibleArea:f}}function El(n){var t=n.directions,o=n.coordinates,i=n.positionRestrictions,r=i===void 0?{}:i,s=n.sizeRestrictions,a=n.preserveRatio,c=n.compensate,l=X({},t),f=zt(o,l).width,u=zt(o,l).height;f<0&&(l.left<0&&l.right<0?(l.left=-(o.width-s.minWidth)/(l.left/l.right),l.right=-(o.width-s.minWidth)/(l.right/l.left)):l.left<0?l.left=-(o.width-s.minWidth):l.right<0&&(l.right=-(o.width-s.minWidth))),u<0&&(l.top<0&&l.bottom<0?(l.top=-(o.height-s.minHeight)/(l.top/l.bottom),l.bottom=-(o.height-s.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(o.height-s.minHeight):l.bottom<0&&(l.bottom=-(o.height-s.minHeight)));var m=wo(zt(o,l),r);c&&(m.left&&m.left>0&&m.right===0?(l.right+=m.left,l.left-=m.left):m.right&&m.right>0&&m.left===0&&(l.left+=m.right,l.right-=m.right),m.top&&m.top>0&&m.bottom===0?(l.bottom+=m.top,l.top-=m.top):m.bottom&&m.bottom>0&&m.top===0&&(l.top+=m.bottom,l.bottom-=m.bottom),m=wo(zt(o,l),r));var h={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Rt.forEach(function(N){var $=m[N];$&&l[N]&&(h[N]=Math.max(0,1-$/l[N]))}),a){var w=Math.min.apply(null,Rt.map(function(N){return h[N]}));w!==1/0&&Rt.forEach(function(N){l[N]*=w})}else Rt.forEach(function(N){h[N]!==1/0&&(l[N]*=h[N])});if(f=zt(o,l).width,u=zt(o,l).height,l.right+l.left&&(f>s.maxWidth?h.width=(s.maxWidth-o.width)/(l.right+l.left):f<s.minWidth&&(h.width=(s.minWidth-o.width)/(l.right+l.left))),l.bottom+l.top&&(u>s.maxHeight?h.height=(s.maxHeight-o.height)/(l.bottom+l.top):u<s.minHeight&&(h.height=(s.minHeight-o.height)/(l.bottom+l.top))),a){var k=Math.min(h.width,h.height);k!==1/0&&Rt.forEach(function(N){l[N]*=k})}else h.width!==1/0&&aw.forEach(function(N){l[N]*=h.width}),h.height!==1/0&&lw.forEach(function(N){l[N]*=h.height});return l}function fi(n,t,o){return t==0&&o==0?n/2:t==0?0:o==0?n:n*Math.abs(t/(t+o))}var xw=Et("vue-simple-handler"),Ew=Et("vue-simple-handler-wrapper"),Fr={name:"SimpleHandler",components:{HandlerWrapper:pl},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var n,t=(pt(n={},this.horizontalPosition,!!this.horizontalPosition),pt(n,this.verticalPosition,!!this.verticalPosition),pt(n,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),pt(n,"hover",this.hover),n);return{default:Pe(xw(t),this.defaultClass,this.hover&&this.hoverClass),wrapper:Pe(Ew(t),this.wrapperClass)}}},methods:{onDrag:function(n){this.$emit("drag",n)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Fr.render=function(n,t,o,i,r,s){var a=e.resolveComponent("HandlerWrapper");return e.openBlock(),e.createBlock(a,{class:s.classes.wrapper,"vertical-position":o.verticalPosition,"horizontal-position":o.horizontalPosition,disabled:o.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:e.withCtx(function(){return[e.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Bw=Et("vue-simple-line"),Vw=Et("vue-simple-line-wrapper"),Or={name:"SimpleLine",components:{LineWrapper:gl},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Pe(Bw(pt({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Pe(Vw(pt({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(n){this.$emit("drag",n)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Or.render=function(n,t,o,i,r,s){var a=e.resolveComponent("LineWrapper");return e.openBlock(),e.createBlock(a,{class:s.classes.wrapper,position:o.position,disabled:o.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:e.withCtx(function(){return[e.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Lr=Et("vue-bounding-box"),Nw=["east","west",null],$w=["south","north",null],Bl={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Fr}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return Or}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var n=[];return Nw.forEach(function(t){$w.forEach(function(o){if(t!==o){var i=cl(t,o),r=i.name,s=i.classname;n.push({name:r,classname:s,verticalDirection:o,horizontalDirection:t})}})}),{points:n}},computed:{style:function(){var n={};return this.width&&this.height&&(n.width="".concat(this.width,"px"),n.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),n},classes:function(){var n=this.handlersClasses,t=this.handlersWrappersClasses,o=this.linesClasses,i=this.linesWrappersClasses;return{root:Lr(),handlers:n,handlersWrappers:t,lines:o,linesWrappers:i}},lineNodes:function(){var n=this,t=[];return this.points.forEach(function(o){o.horizontalDirection&&o.verticalDirection||!n.lines[o.name]||t.push({name:o.name,component:n.linesComponent,class:Pe(n.classes.lines.default,n.classes.lines[o.name],!n.resizable&&n.classes.lines.disabled),wrapperClass:Pe(n.classes.linesWrappers.default,n.classes.linesWrappers[o.name],!n.resizable&&n.classes.linesWrappers.disabled),hoverClass:n.classes.lines.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!n.resizable})}),t},handlerNodes:function(){var n=this,t=[],o=this.width,i=this.height;return this.points.forEach(function(r){if(n.handlers[r.name]){var s={name:r.name,component:n.handlersComponent,class:Pe(n.classes.handlers.default,n.classes.handlers[r.name]),wrapperClass:Pe(n.classes.handlersWrappers.default,n.classes.handlersWrappers[r.name]),hoverClass:n.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!n.resizable};if(o&&i){var a=r.horizontalDirection,c=r.verticalDirection,l=a==="east"?o:a==="west"?0:o/2,f=c==="south"?i:c==="north"?0:i/2;s.wrapperClass=Lr("handler"),s.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(f,"px)")},n.transitions&&n.transitions.enabled&&(s.wrapperStyle.transition="".concat(n.transitions.time,"ms ").concat(n.transitions.timingFunction))}else s.wrapperClass=Lr("handler",pt({},r.classname,!0));t.push(s)}}),t}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(n,t,o){var i,r=n.shift(),s=r.left,a=r.top,c={left:0,right:0,top:0,bottom:0};t==="west"?c.left-=s:t==="east"&&(c.right+=s),o==="north"?c.top-=a:o==="south"&&(c.bottom+=a),!o&&t?i="width":o&&!t&&(i="height"),this.resizable&&this.$emit("resize",new iw(c,{allowedDirections:{left:t==="west"||!t,right:t==="east"||!t,bottom:o==="south"||!o,top:o==="north"||!o},preserveAspectRatio:n.nativeEvent&&n.nativeEvent.shiftKey,respectDirection:i}))}},emits:["resize","resize-end"]};Bl.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[e.renderSlot(n.$slots,"default"),e.createVNode("div",null,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(s.lineNodes,function(a){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[1]||(t[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(s.handlerNodes,function(a){return e.openBlock(),e.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:t[2]||(t[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Tw=Et("vue-draggable-area"),Vl={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Tw()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(n){if(n.cancelable){var t=this.movable&&n.touches.length===1;t&&(this.touches=kn(n.touches)),(this.touchStarted||t)&&(n.preventDefault(),n.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(n){this.touches.length>=1&&(this.touchStarted?(this.processMove(n,n.touches),n.preventDefault(),n.stopPropagation()):hl({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:n.touches[0].clientX,y:n.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(n){if(this.movable&&n.button===0){var t={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[t],this.initAnchor(t),n.stopPropagation()}},onMouseMove:function(n){this.touches.length&&(this.processMove(n,[{fake:!0,clientX:n.clientX,clientY:n.clientY}]),n.preventDefault&&n.cancelable&&n.preventDefault(),n.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(n){var t=this.$refs.container.getBoundingClientRect(),o=t.left,i=t.top;this.anchor={x:n.clientX-o,y:n.clientY-i}},processMove:function(n,t){var o=kn(t);if(this.touches.length){var i=this.$refs.container.getBoundingClientRect(),r=i.left,s=i.top;this.touches.length===1&&o.length===1&&this.$emit("move",new Mr({left:o[0].clientX-(r+this.anchor.x),top:o[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Vl.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[e.renderSlot(n.$slots,"default")],544)};function _r(n){var t,o;return{rotate:n.rotate||0,flip:{horizontal:((t=n==null?void 0:n.flip)===null||t===void 0?void 0:t.horizontal)||!1,vertical:((o=n==null?void 0:n.flip)===null||o===void 0?void 0:o.vertical)||!1}}}function Pw(n){return new Promise(function(t,o){try{if(n)if(/^data:/i.test(n))t(function(l){l=l.replace(/^data:([^;]+);base64,/gim,"");for(var f=atob(l),u=f.length,m=new ArrayBuffer(u),h=new Uint8Array(m),w=0;w<u;w++)h[w]=f.charCodeAt(w);return m}(n));else if(/^blob:/i.test(n)){var i=new FileReader;i.onload=function(l){t(l.target.result)},s=n,a=function(l){i.readAsArrayBuffer(l)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){r.readyState===4&&(r.status===200||r.status===0?t(r.response):o("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){r.getResponseHeader("content-type")!=="image/jpeg"&&r.abort()},r.withCredentials=!1,r.open("GET",n,!0),r.responseType="arraybuffer",r.send(null)}else o("Error: the image is empty")}catch(l){o(l)}var s,a,c})}function Nl(n){var t=n.rotate,o=n.flip,i=n.scaleX,r=n.scaleY,s="";return s+=" rotate("+t+"deg) ",s+=" scaleX("+i*(o.horizontal?-1:1)+") ",s+=" scaleY("+r*(o.vertical?-1:1)+") "}function Mw(n){try{var t,o=new DataView(n),i=void 0,r=void 0,s=void 0,a=void 0;if(o.getUint8(0)===255&&o.getUint8(1)===216)for(var c=o.byteLength,l=2;l+1<c;){if(o.getUint8(l)===255&&o.getUint8(l+1)===225){s=l;break}l++}if(s&&(i=s+10,function(w,k,N){var $,E="";for($=k,N+=k;$<N;$++)E+=String.fromCharCode(w.getUint8($));return E}(o,s+4,4)==="Exif")){var f=o.getUint16(i);if(((r=f===18761)||f===19789)&&o.getUint16(i+2,r)===42){var u=o.getUint32(i+4,r);u>=8&&(a=i+u)}}if(a){for(var m=o.getUint16(a,r),h=0;h<m;h++)if(l=a+12*h+2,o.getUint16(l,r)===274){l+=8,t=o.getUint16(l,r),o.setUint16(l,1,r);break}}return t}catch{return null}}function $l(n,t){var o=t.getBoundingClientRect(),i=o.left,r=o.top,s={left:0,top:0},a=0;return n.forEach(function(c){s.left+=(c.clientX-i)/n.length,s.top+=(c.clientY-r)/n.length}),n.forEach(function(c){a+=hl({x:s.left,y:s.top},{x:c.clientX-i,y:c.clientY-r})}),{centerMass:s,spread:a,count:n.length}}var Tl={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Tr(this.processEnd),this.touches=[]},methods:{processMove:function(n,t){if(this.touches.length){if(this.touches.length===1&&t.length===1)this.$emit("move",new yo({left:this.touches[0].clientX-t[0].clientX,top:this.touches[0].clientY-t[0].clientY}));else if(this.touches.length>1&&this.touchResize){var o=$l(t,this.$refs.container),i=this.oldGeometricProperties;i.count===o.count&&i.count>1&&this.$emit("resize",new yo({left:i.centerMass.left-o.centerMass.left,top:i.centerMass.top-o.centerMass.top},{factor:i.spread/o.spread,center:o.centerMass})),this.oldGeometricProperties=o}this.touches=t}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(n){return this.eventsFilter?this.eventsFilter(n,this.transforming)!==!1:(n.preventDefault(),n.stopPropagation(),!0)},onTouchStart:function(n){if(n.cancelable&&(this.touchMove||this.touchResize&&n.touches.length>1)&&this.processEvent(n)){var t=this.$refs.container,o=t.getBoundingClientRect(),i=o.left,r=o.top,s=o.bottom,a=o.right;this.touches=kn(n.touches).filter(function(c){return c.clientX>i&&c.clientX<a&&c.clientY>r&&c.clientY<s}),this.oldGeometricProperties=$l(this.touches,t)}},onTouchEnd:function(n){n.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(n){var t=this;if(this.touches.length){var o=kn(n.touches).filter(function(i){return!i.identifier||t.touches.find(function(r){return r.identifier===i.identifier})});this.processEvent(n)&&(this.processMove(n,o),this.processStart())}},onMouseDown:function(n){if(this.mouseMove&&"buttons"in n&&n.buttons===1&&this.processEvent(n)){var t={fake:!0,clientX:n.clientX,clientY:n.clientY};this.touches=[t],this.processStart()}},onMouseMove:function(n){this.touches.length&&this.processEvent(n)&&this.processMove(n,[{clientX:n.clientX,clientY:n.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(n){if(this.wheelResize&&this.processEvent(n)){var t=this.$refs.container.getBoundingClientRect(),o=t.left,i=t.top,r=1+this.wheelResize.ratio*(a=n.deltaY||n.detail||n.wheelDelta,(c=+a)==0||ml(c)?c:c>0?1:-1),s={left:n.clientX-o,top:n.clientY-i};this.$emit("resize",new yo({},{factor:r,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};Tl.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"container",onTouchstart:t[1]||(t[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:t[2]||(t[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:t[3]||(t[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[e.renderSlot(n.$slots,"default")],544)};var Hr={components:{TransformableImage:Tl},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};Hr.render=function(n,t,o,i,r,s){var a=e.resolveComponent("transformable-image");return e.openBlock(),e.createBlock(a,{"touch-move":o.touchMove,"touch-resize":o.touchResize,"mouse-move":o.mouseMove,"wheel-resize":o.wheelResize,onMove:t[1]||(t[1]=function(c){return n.$emit("move",c)}),onResize:t[2]||(t[2]=function(c){return n.$emit("resize",c)})},{default:e.withCtx(function(){return[e.renderSlot(n.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var ui=Et("vue-preview"),Pl={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:ui({fill:this.fill}),wrapper:ui("wrapper"),imageWrapper:ui("image-wrapper"),image:Pe(ui("image"),this.imageClass)}},style:function(){if(this.fill)return{};var n={};return this.width&&(n.width="".concat(this.size.width,"px")),this.height&&(n.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n},wrapperStyle:function(){var n={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n},imageStyle:function(){if(this.coordinates&&this.image){var n=this.coordinates.width/this.size.width,t=le(le({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/n,scaleY:1/n}),o=this.imageSize.width,i=this.imageSize.height,r=Sl({width:o,height:i},t.rotate),s={width:"".concat(o,"px"),height:"".concat(i,"px"),left:"0px",top:"0px"},a={rotate:{left:(o-r.width)*t.scaleX/2,top:(i-r.height)*t.scaleY/2},scale:{left:(1-t.scaleX)*o/2,top:(1-t.scaleY)*i/2}};return s.transform=`translate(
|
|
44
|
-
`.concat(-this.coordinates.left/n-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/n-a.rotate.top-a.scale.top,"px) ")+Nl(t),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(n){(n.width||n.height)&&this.onChangeImage()}},mounted:function(){var n=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){n.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var n=this.$refs.image;this.calculatedImageSize.height=n.naturalHeight,this.calculatedImageSize.width=n.naturalWidth},refresh:function(){var n=this.$refs.root;this.width||(this.calculatedSize.width=n.clientWidth),this.height||(this.calculatedSize.height=n.clientHeight)},onChangeImage:function(){var n=this.$refs.image;n&&n.complete&&this.refreshImage(),this.refresh()}}};Pl.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[e.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[e.withDirectives(e.createVNode("img",{ref:"image",src:o.image&&o.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[e.vShow,o.image&&o.image.src]])],6)],6)};var Ml={components:{Preview:Pl},inheritAttrs:!1};Ml.render=function(n,t,o,i,r,s){var a=e.resolveComponent("preview");return e.openBlock(),e.createBlock(a,e.mergeProps(n.$attrs,{fill:!0}),null,16)};var Ur=Et("vue-rectangle-stencil"),Il={name:"RectangleStencil",components:{StencilPreview:Ml,BoundingBox:Bl,DraggableArea:Vl},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Fr}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Or}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Pe(Ur({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Pe(Ur("preview"),this.previewClass),boundingBox:Pe(Ur("bounding-box"),this.boundingBoxClass)}},style:function(){var n=this.stencilCoordinates,t=n.height,o=n.width,i=n.left,r=n.top,s={width:"".concat(o,"px"),height:"".concat(t,"px"),transform:"translate(".concat(i,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},methods:{onMove:function(n){this.$emit("move",n),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(n){this.$emit("resize",n),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Il.render=function(n,t,o,i,r,s){var a=e.resolveComponent("stencil-preview"),c=e.resolveComponent("draggable-area"),l=e.resolveComponent("bounding-box");return e.openBlock(),e.createBlock("div",{class:s.classes.stencil,style:s.style},[e.createVNode(l,{width:o.stencilCoordinates.width,height:o.stencilCoordinates.height,transitions:o.transitions,class:s.classes.boundingBox,handlers:o.handlers,"handlers-component":o.handlersComponent,"handlers-classes":o.handlersClasses,"handlers-wrappers-classes":o.handlersWrappersClasses,lines:o.lines,"lines-component":o.linesComponent,"lines-classes":o.linesClasses,"lines-wrappers-classes":o.linesWrappersClasses,resizable:o.resizable,onResize:s.onResize,onResizeEnd:s.onResizeEnd},{default:e.withCtx(function(){return[e.createVNode(c,{movable:o.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:e.withCtx(function(){return[e.createVNode(a,{image:o.image,coordinates:o.coordinates,width:o.stencilCoordinates.width,height:o.stencilCoordinates.height,class:s.classes.preview,transitions:o.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var Iw=["transitions"],vt=Et("vue-advanced-cropper"),Rl={name:"Cropper",components:{BackgroundWrapper:Hr},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Il}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Hr}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(n){return dw.indexOf(n)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(n){return!(typeof n=="string"&&n!=="fill"&&n!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(n){var t=n.event,o=n.coordinates,i=n.aspectRatio,r=n.positionRestrictions,s=n.sizeRestrictions,a=X(X({},o),{right:o.left+o.width,bottom:o.top+o.height}),c=t.params||{},l=X({},t.directions),f=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(l.left=0,l.right=0),s.heightFrozen&&(l.top=0,l.bottom=0),Rt.forEach(function(V){f[V]||(l[V]=0)});var u=zt(a,l=El({coordinates:a,directions:l,sizeRestrictions:s,positionRestrictions:r})).width,m=zt(a,l).height,h=c.preserveRatio?ce(a):Ar(u/m,i);if(h){var w=c.respectDirection;if(w||(w=a.width>=a.height||h===1?"width":"height"),w==="width"){var k=u/h-a.height;if(f.top&&f.bottom){var N=l.top,$=l.bottom;l.bottom=fi(k,$,N),l.top=fi(k,N,$)}else f.bottom?l.bottom=k:f.top?l.top=k:f.right?l.right=0:f.left&&(l.left=0)}else if(w==="height"){var E=a.width-m*h;if(f.left&&f.right){var M=l.left,b=l.right;l.left=-fi(E,M,b),l.right=-fi(E,b,M)}else f.left?l.left=-E:f.right?l.right=-E:f.top?l.top=0:f.bottom&&(l.bottom=0)}l=El({directions:l,coordinates:a,sizeRestrictions:s,positionRestrictions:r,preserveRatio:!0,compensate:c.compensate})}return u=zt(a,l).width,m=zt(a,l).height,(h=c.preserveRatio?ce(a):Ar(u/m,i))&&Math.abs(h-u/m)>.001&&Rt.forEach(function(V){f[V]||(l[V]=0)}),Dr({event:new Mr({left:-l.left,top:-l.top}),coordinates:{width:o.width+l.right+l.left,height:o.height+l.top+l.bottom,left:o.left,top:o.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:Dr},initStretcher:{type:Function,default:function(n){var t=n.stretcher,o=n.imageSize,i=ce(o);t.style.width=o.width+"px",t.style.height=t.clientWidth/i+"px",t.style.width=t.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(n){var t=n.visibleArea,o=n.coordinates,i=n.aspectRatio,r=n.sizeRestrictions,s=n.positionRestrictions,a=X(X({},o),Ut({width:o.width,height:o.height,aspectRatio:i,sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minHeight:Math.min(t.height,r.minHeight),minWidth:Math.min(t.width,r.minWidth)}}));return a=He(a=rt(a,qn(_e(o),_e(a))),ci(At(t),s))}},fitVisibleArea:{type:Function,default:function(n){var t=n.visibleArea,o=n.boundaries,i=n.getAreaRestrictions,r=n.coordinates,s=X({},t);s.height=s.width/ce(o),s.top+=(t.height-s.height)/2,(r.height-s.height>0||r.width-s.width>0)&&(s=gt(s,Math.max(r.height/s.height,r.width/s.width)));var a=ai(Wn(r,At(s=gt(s,li(s,i({visibleArea:s,type:"resize"}))))));return s.width<r.width&&(a.left=0),s.height<r.height&&(a.top=0),s=He(s=rt(s,a),i({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(n){var t=n.visibleArea,o=n.boundaries,i=n.imageSize,r=n.imageRestriction,s=n.type,a={};return r==="fill-area"?a={left:0,top:0,right:i.width,bottom:i.height}:r==="fit-area"&&(ce(o)>ce(i)?(a={top:0,bottom:i.height},t&&s==="move"&&(t.width>i.width?(a.left=-(t.width-i.width)/2,a.right=i.width-a.left):(a.left=0,a.right=i.width))):(a={left:0,right:i.width},t&&s==="move"&&(t.height>i.height?(a.top=-(t.height-i.height)/2,a.bottom=i.height-a.top):(a.top=0,a.bottom=i.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(n){return{minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(n){var t=n.imageSize,o={};return n.imageRestriction!=="none"&&(o={left:0,top:0,right:t.width,bottom:t.height}),o}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:le({},yl)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var n=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(n))+Math.abs(this.imageAttributes.height*Math.sin(n)),height:Math.abs(this.imageAttributes.width*Math.sin(n))+Math.abs(this.imageAttributes.height*Math.cos(n))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var n=Pr(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Pr(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:n}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var n=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:ze(this.minWidth)?0:si(this.minWidth),minHeight:ze(this.minHeight)?0:si(this.minHeight),maxWidth:ze(this.maxWidth)?1/0:si(this.maxWidth),maxHeight:ze(this.maxHeight)?1/0:si(this.maxHeight)});if(n=function(i){var r=i.areaRestrictions,s=i.sizeRestrictions,a=i.boundaries,c=i.positionRestrictions,l=X(X({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(l.maxWidth=Math.min(l.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(l.maxHeight=Math.min(l.maxHeight,c.bottom-c.top));var f=zr(r),u=bl(a,f);return f.width<1/0&&(!l.maxWidth||l.maxWidth>u.width)&&(l.maxWidth=Math.min(l.maxWidth,u.width)),f.height<1/0&&(!l.maxHeight||l.maxHeight>u.height)&&(l.maxHeight=Math.min(l.maxHeight,u.height)),l.minWidth>l.maxWidth&&(l.minWidth=l.maxWidth,l.widthFrozen=!0),l.minHeight>l.maxHeight&&(l.minHeight=l.maxHeight,l.heightFrozen=!0),l}({sizeRestrictions:n,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var t=this.getStencilSize(),o=zr(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));n.maxWidth=Math.min(n.maxWidth,o.width*t.width/this.boundaries.width),n.maxHeight=Math.min(n.maxHeight,o.height*t.height/this.boundaries.height),n.maxWidth<n.minWidth&&(n.minWidth=n.maxWidth),n.maxHeight<n.minHeight&&(n.minHeight=n.maxHeight)}return n}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:vt(),image:Pe(vt("image"),this.imageClass),stencil:vt("stencil"),boundaries:Pe(vt("boundaries"),this.boundariesClass),stretcher:Pe(vt("stretcher")),background:Pe(vt("background"),this.backgroundClass),foreground:Pe(vt("foreground"),this.foregroundClass),imageWrapper:Pe(vt("image-wrapper")),cropperWrapper:Pe(vt("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var n=this.coordinates,t=n.width,o=n.height,i=n.left,r=n.top;return{width:t/this.coefficient,height:o/this.coefficient,left:(i-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var n={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(n.opacity="0"),n},imageStyle:function(){var n=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},t={left:(n.width-this.imageSize.width)/(2*this.coefficient),top:(n.height-this.imageSize.height)/(2*this.coefficient)},o={left:(1-1/this.coefficient)*n.width/2,top:(1-1/this.coefficient)*n.height/2},i=le(le({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/n.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/n.height)}),r={width:"".concat(n.width,"px"),height:"".concat(n.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-t.left-o.left-this.imageTransforms.translateX,"px, ").concat(-t.top-o.top-this.imageTransforms.translateY,"px)")+Nl(i)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var n=this;this.$nextTick(function(){n.resetCoordinates(),n.runAutoZoom("setCoordinates"),n.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(n,t){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(o){return n[o]!==t[o]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Tr(this.update,this.debounce),this.debouncedDisableTransitions=Tr(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var n=this.initialized?this.prepareResult(le({},this.coordinates)):this.defaultCoordinates(),t={rotate:this.imageTransforms.rotate%360,flip:le({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var o=this;return{image:this.image,coordinates:n,visibleArea:this.visibleArea?le({},this.visibleArea):null,imageTransforms:t,get canvas(){return o.canvas?o.getCanvas():void 0}}}return{image:this.image,coordinates:n,visibleArea:this.visibleArea?le({},this.visibleArea):null,canvas:void 0,imageTransforms:t}},zoom:function(n,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.transitions,r=i===void 0||i;this.onManipulateImage(new yo({},{factor:1/n,center:t}),{normalize:!1,transitions:r})},move:function(n,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.transitions,r=i===void 0||i;this.onManipulateImage(new yo({left:n||0,top:t||0}),{normalize:!1,transitions:r})},setCoordinates:function(n){var t=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.autoZoom,r=i===void 0||i,s=o.transitions,a=s===void 0||s;this.$nextTick(function(){t.imageLoaded?(t.transitionsActive||(a&&t.enableTransitions(),t.coordinates=t.applyTransform(n),r&&t.runAutoZoom("setCoordinates"),a&&t.debouncedDisableTransitions()),t.onChange()):t.delayedTransforms=n})},refresh:function(){var n=this,t=this.$refs.image;if(this.src&&t)return this.initialized?this.updateVisibleArea().then(function(){n.onChange()}):this.resetVisibleArea().then(function(){n.onChange()})},reset:function(){var n=this;return this.resetVisibleArea().then(function(){n.onChange(!1)})},awaitRender:function(n){var t=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){n(),t.awaiting=!1}))},prepareResult:function(n){return this.roundResult?function(t){var o=t.coordinates,i=t.sizeRestrictions,r=t.positionRestrictions,s={width:Math.round(o.width),height:Math.round(o.height),left:Math.round(o.left),top:Math.round(o.top)};return s.width>i.maxWidth?s.width=Math.floor(o.width):s.width<i.minWidth&&(s.width=Math.ceil(o.width)),s.height>i.maxHeight?s.height=Math.floor(o.height):s.height<i.minHeight&&(s.height=Math.ceil(o.height)),He(s,r)}(le(le({},this.getPublicProperties()),{},{positionRestrictions:di(this.positionRestrictions,this.visibleArea),coordinates:n})):n},processAutoZoom:function(n,t,o,i){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?mw:this.autoZoom?hw:pw);var s=r({event:{type:n,params:i},visibleArea:t,coordinates:o,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return le(le({},s),{},{changed:!wl(s.visibleArea,t)||!wl(s.coordinates,o)})},runAutoZoom:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.transitions,i=o!==void 0&&o,r=nw(t,Iw),s=this.processAutoZoom(n,this.visibleArea,this.coordinates,r),a=s.visibleArea,c=s.coordinates,l=s.changed;i&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,i&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(n){return function(t){var o=t.event,i=t.visibleArea,r=t.coefficient;if(o.type==="manipulateImage")return X(X({},o),{move:{left:o.move&&o.move.left?r*o.move.left:0,top:o.move&&o.move.top?r*o.move.top:0},scale:{factor:o.scale&&o.scale.factor?o.scale.factor:1,center:o.scale&&o.scale.center?{left:o.scale.center.left*r+i.left,top:o.scale.center.top*r+i.top}:null}});if(o.type==="resize"){var s=X(X({},o),{directions:X({},o.directions)});return Rt.forEach(function(c){s.directions[c]*=r}),s}if(o.type==="move"){var a=X(X({},o),{directions:X({},o.directions)});return cw.forEach(function(c){a.directions[c]*=r}),a}return o}(le(le({},this.getPublicProperties()),{},{event:n}))},getCanvas:function(){if(this.$refs.canvas){var n=this.$refs.canvas,t=this.$refs.image,o=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(c,l,f){var u=f.rotate,m=f.flip,h={width:l.naturalWidth,height:l.naturalHeight},w=Sl(h,u),k=c.getContext("2d");c.height=w.height,c.width=w.width,k.save();var N=en(_e(X({left:0,top:0},h)),u);return k.translate(-(N.left-w.width/2),-(N.top-w.height/2)),k.rotate(u*Math.PI/180),k.translate(m.horizontal?h.width:0,m.vertical?h.height:0),k.scale(m.horizontal?-1:1,m.vertical?-1:1),k.drawImage(l,0,0,h.width,h.height),k.restore(),c}(this.$refs.sourceCanvas,t,this.imageTransforms):t,i=le({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(c){return c.find(function(l){return f=l,!Number.isNaN(parseFloat(f))&&isFinite(f);var f})},s=Ut({sizeRestrictions:{minWidth:r([i.width,i.minWidth])||0,minHeight:r([i.height,i.minHeight])||0,maxWidth:r([i.width,i.maxWidth])||1/0,maxHeight:r([i.height,i.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(i.maxArea&&s.width*s.height>i.maxArea){var a=Math.sqrt(i.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,l,f,u,m){c.width=u?u.width:f.width,c.height=u?u.height:f.height;var h=c.getContext("2d");h.clearRect(0,0,c.width,c.height),m&&(m.imageSmoothingEnabled&&(h.imageSmoothingEnabled=m.imageSmoothingEnabled),m.imageSmoothingQuality&&(h.imageSmoothingQuality=m.imageSmoothingQuality),m.fillColor&&(h.fillStyle=m.fillColor,h.fillRect(0,0,c.width,c.height),h.save()));var w=f.left<0?-f.left:0,k=f.top<0?-f.top:0;h.drawImage(l,f.left+w,f.top+k,f.width,f.height,w*(c.width/f.width),k*(c.height/f.height),c.width,c.height)}(n,o,this.coordinates,s,i),n}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(n){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],o=this.visibleArea&&t?fw(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,i=this.visibleArea&&t?di(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return uw({transform:n,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:o,positionRestrictions:i,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var n=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var t=this.defaultSize;t||(t=this.stencilSize?ww:yw);var o=this.sizeRestrictions;o.minWidth,o.minHeight,o.maxWidth,o.maxHeight;var i=vn(t)?t({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):t,r=this.defaultPosition||gw,s=[i,function(a){var c=a.coordinates;return le({},vn(r)?r({coordinates:c,imageSize:n.imageSize,visibleArea:n.visibleArea}):n.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,kn(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!0),this.delayedTransforms=null}},clearImage:function(){var n=this;this.imageLoaded=!1,setTimeout(function(){var t=n.$refs.stretcher;t&&(t.style.height="auto",t.style.width="auto"),n.coordinates=n.defaultCoordinates(),n.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var n=this,t=this.$refs.stretcher,o=this.$refs.cropper;return this.initStretcher({cropper:o,stretcher:t,imageSize:this.imageSize}),this.$nextTick().then(function(){var i={cropper:o,imageSize:n.imageSize};if(vn(n.defaultBoundaries)?n.boundaries=n.defaultBoundaries(i):n.defaultBoundaries==="fit"?n.boundaries=function(r){var s=r.cropper,a=r.imageSize,c=s.clientHeight,l=s.clientWidth,f=c,u=a.width*c/a.height;return u>l&&(u=l,f=a.height*l/a.width),{width:u,height:f}}(i):n.boundaries=function(r){var s=r.cropper;return{width:s.clientWidth,height:s.clientHeight}}(i),!n.boundaries.width||!n.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var n=this;return this.appliedImageTransforms=le(le({},this.defaultImageTransforms),{},{flip:le({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){n.priority!=="visible-area"&&(n.visibleArea=null,n.resetCoordinates());var t,o,i,r,s,a,c=n.defaultVisibleArea||bw;n.visibleArea=vn(c)?c({imageSize:n.imageSize,boundaries:n.boundaries,coordinates:n.priority!=="visible-area"?n.coordinates:null,getAreaRestrictions:n.getAreaRestrictions,stencilSize:n.getStencilSize()}):n.defaultVisibleArea,n.visibleArea=(t={visibleArea:n.visibleArea,boundaries:n.boundaries,getAreaRestrictions:n.getAreaRestrictions},o=t.visibleArea,i=t.boundaries,r=t.getAreaRestrictions,s=X({},o),a=ce(i),s.width/s.height!==a&&(s.height=s.width/a),He(s,r({visibleArea:s,type:"move"}))),n.priority==="visible-area"?n.resetCoordinates():n.coordinates=n.fitCoordinates({visibleArea:n.visibleArea,coordinates:n.coordinates,aspectRatio:n.getAspectRatio(),positionRestrictions:n.positionRestrictions,sizeRestrictions:n.sizeRestrictions}),n.runAutoZoom("resetVisibleArea")}).catch(function(){n.visibleArea=null})},updateVisibleArea:function(){var n=this;return this.updateBoundaries().then(function(){n.visibleArea=n.fitVisibleArea({imageSize:n.imageSize,boundaries:n.boundaries,visibleArea:n.visibleArea,coordinates:n.coordinates,getAreaRestrictions:n.getAreaRestrictions}),n.coordinates=n.fitCoordinates({visibleArea:n.visibleArea,coordinates:n.coordinates,aspectRatio:n.getAspectRatio(),positionRestrictions:n.positionRestrictions,sizeRestrictions:n.sizeRestrictions}),n.runAutoZoom("updateVisibleArea")}).catch(function(){n.visibleArea=null})},onChange:function(){var n=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];n&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var n,t=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(r){if(fl(r))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(r)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},l=function(f){return f.port||((f.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&l(c)==l(s))}(this.src)){var o=ze(this.crossOrigin)?this.canvas:this.crossOrigin;o===!0&&(o="anonymous"),this.imageAttributes.crossOrigin=o||null}if(this.checkOrientation){var i=(n=this.src,new Promise(function(r){Pw(n).then(function(s){var a=Mw(s);r(s?{source:n,arrayBuffer:s,orientation:a}:{source:n,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),r({source:n,arrayBuffer:null,orientation:null})})}));setTimeout(function(){i.then(t.onParseImage)},this.transitionTime)}else setTimeout(function(){t.onParseImage({source:t.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var n=this,t=this.$refs.image;t&&!this.imageLoaded&&(this.imageAttributes.height=t.naturalHeight,this.imageAttributes.width=t.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){n.$emit("ready"),n.onChange(!1)}))},onParseImage:function(n){var t=this,o=n.source,i=n.arrayBuffer,r=n.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,i&&r&&r>1?dl(o)||!fl(o)?(this.imageAttributes.src=URL.createObjectURL(new Blob([i])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var l=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(l):l.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(i):this.imageAttributes.src=o,vn(this.defaultTransforms)?this.appliedImageTransforms=_r(this.defaultTransforms()):ri(this.defaultTransforms)?this.appliedImageTransforms=_r(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=_r({});if(s)switch(s){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(r),this.defaultImageTransforms=le(le({},this.appliedImageTransforms),{},{flip:le({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=t.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?t.onSuccessLoadImage():t.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(n){var t=this;this.transitionsOptions.enabled||this.awaitRender(function(){t.coordinates=t.moveAlgorithm(le(le({},t.getPublicProperties()),{},{positionRestrictions:di(t.positionRestrictions,t.visibleArea),coordinates:t.coordinates,event:t.normalizeEvent(n)})),t.onChange()})},onResize:function(n){var t=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var o=t.sizeRestrictions,i=Math.min(t.coordinates.width,t.coordinates.height,20*t.coefficient);t.coordinates=t.resizeAlgorithm(le(le({},t.getPublicProperties()),{},{positionRestrictions:di(t.positionRestrictions,t.visibleArea),sizeRestrictions:{maxWidth:Math.min(o.maxWidth,t.visibleArea.width),maxHeight:Math.min(o.maxHeight,t.visibleArea.height),minWidth:Math.max(o.minWidth,i),minHeight:Math.max(o.minHeight,i)},event:t.normalizeEvent(n)})),t.onChange(),t.ticking=!1})},onManipulateImage:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var o=t.transitions,i=o!==void 0&&o,r=t.normalize,s=r===void 0||r;i&&this.enableTransitions();var a=Sw(le(le({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(n):n,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,l=a.coordinates;this.visibleArea=c,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),i&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=n.visibleArea,o=n.type,i=o===void 0?"move":o;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:t,type:i})},getAspectRatio:function(n){var t,o,i=this.stencilProps,r=i.aspectRatio,s=i.minAspectRatio,a=i.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();t=c.minimum,o=c.maximum}if(ze(t)&&(t=ze(r)?s:r),ze(o)&&(o=ze(r)?a:r),!n&&(ze(t)||ze(o))){var l=this.getStencilSize(),f=l?ce(l):null;ze(t)&&(t=ul(f)?f:void 0),ze(o)&&(o=ul(f)?f:void 0)}return{minimum:t,maximum:o}},getStencilSize:function(){if(this.stencilSize)return n={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},t=n.boundaries,o=n.stencilSize,i=n.aspectRatio,Ar(ce(r=vn(o)?o({boundaries:t,aspectRatio:i}):o),i)&&(r=Ut({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:i.minimum,maximum:i.maximum}})),(r.width>t.width||r.height>t.height)&&(r=Ut({sizeRestrictions:{maxWidth:t.width,maxHeight:t.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:ce(r),maximum:ce(r)}})),r;var n,t,o,i,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return le({},yl)},flip:function(n,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.transitions,r=i===void 0||i;if(!this.transitionsActive){r&&this.enableTransitions();var s=le({},this.imageTransforms.flip),a=kw({flip:{horizontal:n?!s.horizontal:s.horizontal,vertical:t?!s.vertical:s.vertical},previousFlip:s,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),c=a.visibleArea,l=a.coordinates;n&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),t&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=l,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.transitions,i=o===void 0||o;if(!this.transitionsActive){i&&this.enableTransitions();var r=le({},this.imageSize);this.appliedImageTransforms.rotate+=n;var s=Cw({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:n,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,l=this.processAutoZoom("rotateImage",a,c);a=l.visibleArea,c=l.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),i&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Rw={key:0,ref:"canvas",style:{display:"none"}},Aw={key:1,ref:"sourceCanvas",style:{display:"none"}};Rl.render=function(n,t,o,i,r,s){return e.openBlock(),e.createBlock("div",{ref:"cropper",class:s.classes.cropper},[e.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),e.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:e.withCtx(function(){return[e.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),e.createVNode("div",{class:s.classes.imageWrapper},[e.createVNode("img",{ref:"image",crossorigin:r.imageAttributes.crossOrigin,src:r.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:t[1]||(t[1]=e.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),e.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.stencilComponent),e.mergeProps({ref:"stencil",image:s.image,coordinates:r.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},o.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[e.vShow,r.imageLoaded]]),o.canvas?(e.openBlock(),e.createBlock("canvas",Rw,null,512)):e.createCommentVNode("",!0),o.canvas?(e.openBlock(),e.createBlock("canvas",Aw,null,512)):e.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const zw={width:0,height:0,left:0,top:0};class vr{constructor(){d(this,"id");d(this,"ratio",0);d(this,"src","");d(this,"coordinates",zw)}setCoordinates(t){this.coordinates=t}getCoordinates(){return this.coordinates}static Create(t,o=0,i){const r=new vr;return r.src=t,r.ratio=o,r.id=i,r}setRatio(t){this.ratio=t}getRatio(){return this.ratio}setSrc(t){this.src=t}getSrc(){return this.src}}const Dw={class:"cropper-wrapper"},Fw={class:"row justify-end q-mt-md"},Ow=F(e.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","update:ratio"],setup(n,{emit:t}){const o=n,i=t,r=e.ref(o.ratio),s=e.ref(vr.Create(o.src,o.ratio));s.value.setRatio(r.value);const a=e.ref(),c=e.computed(()=>[{label:"2:3 (формат A4)",value:2/3},{label:"4:3 (для карточек новостей)",value:4/3},{label:"1:1 (для фото сотрудников)",value:1},{label:"3:2",value:3/2},{label:"16:9",value:16/9},{label:"3:4 (вертикальное изображение)",value:3/4},{label:"Задать пропорции вручную",value:0}]),l=u=>{s.value.setRatio(u)},f=async()=>{const u=a.value.getResult();u&&u.canvas.toBlob(m=>{var h;i("crop",{blob:m,src:(h=u.canvas)==null?void 0:h.toDataURL()}),i("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(u,m)=>(e.openBlock(),e.createElementBlock("div",Dw,[e.createVNode(go,{modelValue:r.value,"onUpdate:modelValue":[m[0]||(m[0]=h=>r.value=h),m[1]||(m[1]=h=>l(h))],clearable:!1,options:c.value,label:"Задайте пропорции фото","emit-value":"","map-options":"",class:"q-mb-md"},null,8,["modelValue","options"]),e.createVNode(e.unref(Rl),{ref_key:"cropperRef",ref:a,src:s.value.src,"stencil-props":{aspectRatio:s.value.ratio},class:"cropper-container",onChange:m[2]||(m[2]=h=>s.value.setCoordinates(h.coordinates))},null,8,["src","stencil-props"]),e.createElementVNode("div",Fw,[e.createVNode(ne,{flat:"",label:"Сохранить",color:"primary",onClick:f})])]))}}),[["__scopeId","data-v-be2e2071"]]),Lw={class:"uploader-content"},_w={class:"uploader-icon"},Hw={class:"tools-button absolute-full column items-center justify-center"},Uw={class:"row q-gutter-sm"},vw=F(e.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{},height:{default:150},emitCrop:{type:Boolean,default:!1},ratio:{default:1},acceptTypes:{default:"image/*"},maxFileSize:{default:10485760}},emits:["crop","removeFile","update:ratio"],setup(n,{emit:t}){const o=C.ClosePopup,i=n,r=t,s=e.ref(),a=e.ref(),c=e.ref(`file-uploader-${Math.random().toString(36).substring(2,9)}`),l=e.ref(!1),f=e.ref();e.onMounted(()=>{e.nextTick(()=>{var b;const M=(b=a.value)==null?void 0:b.querySelector(".q-uploader__input");M&&!M.getAttribute("aria-label")&&M.setAttribute("aria-label","Добавить изображение")})});const u=e.ref(i.ratio),m=e.ref(""),h=e.computed(()=>({width:`${i.height*u.value}px`,height:`${i.height}px`,maxWidth:"100%"})),w=e.computed(()=>({width:`${i.height*u.value}px`,height:`${i.height}px`,maxWidth:"100%"})),k=()=>{s.value=void 0,u.value=1,r("update:ratio",1),r("removeFile")},N=M=>{M.blob.src=M.src,i.fileInfo.setFile&&i.fileInfo.setFile(M.blob),i.fileInfo.fileSystemPath&&(s.value=i.fileInfo),l.value=!1,r("crop")},$=M=>{m.value=M.url,l.value=!0},E=M=>{if(M.length===0)return;const b=M[0];b.url=URL.createObjectURL(b),s.value=b,i.fileInfo.setFile&&i.fileInfo.setFile(b),i.withCrop&&$(s.value)};return e.watch(u,M=>{r("update:ratio",M)}),e.watch(()=>[i.fileInfo.description,i.fileInfo.order,i.fileInfo.fileSystemPath],()=>{i.fileInfo.fileSystemPath&&(s.value=i.fileInfo,i.fileInfo.getFileUrl&&(s.value.url=i.fileInfo.getFileUrl()))}),e.onBeforeMount(()=>{i.fileInfo.fileSystemPath&&(s.value=i.fileInfo,i.fileInfo.getFileUrl&&(s.value.url=i.fileInfo.getFileUrl()))}),(M,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rootEl",ref:a,class:"column items-center q-my-md"},[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"img-container relative-position",style:e.normalizeStyle(e.unref(h))},[e.createVNode(e.unref(C.QImg),{src:e.unref(s).url,ratio:e.unref(u),class:"uploaded-image",alt:"Загруженное изображение","spinner-color":"primary"},null,8,["src","ratio"]),e.createElementVNode("div",Hw,[e.createElementVNode("div",Uw,[e.createVNode(ne,{round:"",dense:"",color:"white","text-color":"primary",icon:"crop",size:"md","aria-label":"Изменить обрезку",onClick:b[0]||(b[0]=V=>$(e.unref(s)))},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...b[5]||(b[5]=[e.createTextVNode("Изменить обрезку",-1)])]),_:1})]),_:1}),e.createVNode(ne,{round:"",dense:"",color:"white","text-color":"negative",icon:"delete",size:"md","aria-label":"Удалить изображение",onClick:k},{default:e.withCtx(()=>[e.createVNode(it,null,{default:e.withCtx(()=>[...b[6]||(b[6]=[e.createTextVNode("Удалить изображение",-1)])]),_:1})]),_:1})])])],4)):(e.openBlock(),e.createBlock(e.unref(C.QUploader),{key:0,id:e.unref(c),ref_key:"uploader",ref:f,class:"img-uploader",style:e.normalizeStyle(e.unref(w)),flat:"",bordered:"",accept:n.acceptTypes,"max-file-size":n.maxFileSize,"hide-upload-btn":"",onAdded:E,onRemoved:k},{header:e.withCtx(()=>[e.createElementVNode("div",Lw,[e.createVNode(e.unref(C.QUploaderAddTrigger)),e.createElementVNode("div",_w,[e.createVNode(e.unref(C.QIcon),{name:"add_photo_alternate",size:"48px",color:"primary"})]),b[4]||(b[4]=e.createElementVNode("div",{class:"uploader-text text-primary text-center"},[e.createElementVNode("div",{class:"text-weight-medium"},"Добавить изображение"),e.createElementVNode("div",{class:"text-caption text-grey-6 q-mt-xs"}," Перетащите файл или нажмите для загрузки ")],-1))])]),_:1},8,["id","style","accept","max-file-size"])),e.createVNode(pn,{modelValue:e.unref(l),"onUpdate:modelValue":b[3]||(b[3]=V=>e.isRef(l)?l.value=V:null),persistent:""},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCard),{class:"full-height"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QCardSection),{class:"row items-center q-pb-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.QSpace)),e.withDirectives(e.createVNode(ne,{icon:"close",flat:"",round:"",dense:"","aria-label":"Закрыть"},null,512),[[e.unref(o)]])]),_:1}),e.createVNode(e.unref(C.QCardSection),{class:"cropper-section"},{default:e.withCtx(()=>[e.createVNode(Ow,{ratio:e.unref(u),"onUpdate:ratio":b[1]||(b[1]=V=>e.isRef(u)?u.value=V:null),src:e.unref(m),onCrop:N,onClose:b[2]||(b[2]=V=>l.value=!1)},null,8,["ratio","src"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],512))}}),[["__scopeId","data-v-e078917d"]]);function qw(n){n.component("PMenuTabs",G0),n.component("PUploaderFile",tw),n.component("PUploaderImage",vw),n.component("PAuthForm",sl),n.component("PAuthModal",j0)}const jw={install:function(n){h1(n),v0(n),Ky(n),qw(n),Oy(n)}};function Ww(n,t={}){const{quasarPlugins:o=!0}=t;o&&n.use(C.Quasar,{plugins:{Notify:C.Notify,Dialog:C.Dialog}}),jw.install(n),qa(n),Sa(n),va(n)}class Gw extends $o{constructor(){super(...arguments);d(this,"label","Логин");d(this,"name","login");d(this,"validator",new ls);d(this,"method",Bn.Login);d(this,"id","field-auth-login")}}function Qw(n,t={}){const o=t.ftsp??ht.Get(),i=e.ref(!1),r=e.computed(()=>n.Items),s=e.computed(()=>n.Count.value),a=e.computed(()=>n.Item),c=e.computed({get:()=>n.searchStr.value,set:k=>{n.searchStr.value=k}});return{loading:i,items:r,count:s,item:a,searchStr:c,ftsp:o,load:async()=>{i.value=!0;try{await n.FTSP({ftsp:o})}finally{i.value=!1}},get:k=>n.Get(k),create:k=>n.Create(k),update:k=>n.Update(k),remove:k=>n.Remove(k),reset:()=>{o.reset(),n.ResetState()}}}function Yw(n=ht.Get()){const t=e.reactive(n),o=e.computed(()=>t.f),i=e.computed(()=>t.f.length);return{filters:o,count:i,add:f=>{t.setF(f)},replace:(f,u)=>{t.replaceF(f,u)},remove:f=>{t.removeF(f)},has:f=>!!t.findFilterModel(f),clear:()=>{t.resetF()}}}function Xw(n,t={}){const o=e.ref(!1),i=e.ref(""),r=e.ref(null),s=e.ref(!1);let a=!1,c=!1;t.disposeOnUnmount!==!1&&e.getCurrentScope()&&e.onScopeDispose(()=>{c=!0});const l=Math.max(1,Math.floor(t.attempts??1)),f=Math.max(0,t.delay??2e3),u=w=>new Promise(k=>setTimeout(k,w)),m=async(w=!1)=>{if(!(c||a)&&!(t.once&&s.value&&!w)){a=!0,o.value=!0,i.value="";try{for(let k=1;k<=l;k++){const N=await Rn.Run(()=>Promise.resolve(n(w)),{silent:!t.notify});if(N.ok){if(c)return;r.value=N.data,s.value=!0;return}if(k===l){if(c)return;i.value=Rn.Message(N.error)||t.message||"Не удалось загрузить данные";return}await u(f*k)}}finally{a=!1,c||(o.value=!1)}}},h=()=>{r.value=null,i.value="",s.value=!1};return t.immediate&&m(),{loading:o,error:i,data:r,loaded:e.computed(()=>s.value),failed:e.computed(()=>!!i.value),failedFirstLoad:e.computed(()=>!!i.value&&r.value===null),load:m,reset:h}}function Zw(n,t={}){const{labelCol:o="name",valueCol:i="id",immediate:r=!0,searchable:s=!1,debounceMs:a=300,limit:c,...l}=t,f=e.ref("");let u;const m=k=>n.GetOptions(o,i,{...l,...k}),h=()=>n.InvalidateOptions(o,i),w=k=>n.SearchOptions(k,o,i,c).then(()=>{});return s?e.watch(f,k=>{u&&clearTimeout(u),u=setTimeout(()=>{w(k)},a)}):r&&e.onMounted(()=>{m()}),{options:e.computed(()=>n.Options),isLoading:e.computed(()=>n.Options.length===0),load:m,invalidate:h,query:f,search:w}}const qr=Symbol("page-ftsp");function Al(){return ht.create()}function Jw(n){const t=n??Al();return e.getCurrentInstance()&&e.provide(qr,t),t}function zl(){return e.inject(qr,null)??ht.Get()}function Kw(){return e.computed(()=>zl())}function eb(n=ht.Get()){const t=e.reactive(n),o=e.computed({get:()=>t.p.getPageNum(),set:k=>{t.p.offset=(Math.max(1,Math.round(k))-1)*t.p.rowsPerPage}}),i=e.computed({get:()=>t.p.rowsPerPage,set:k=>{t.p.rowsPerPage=k,t.p.offset=0}}),r=e.computed(()=>t.p.rowsNumber),s=e.computed(()=>({page:o.value,rowsPerPage:i.value,rowsNumber:r.value}));return{page:o,rowsPerPage:i,rowsNumber:r,goTo:k=>{o.value=k},next:()=>{t.p.offset+=t.p.rowsPerPage},prev:()=>{t.p.offset=Math.max(0,t.p.offset-t.p.rowsPerPage)},reset:()=>{t.p.offset=0},drop:()=>{t.p.drop()},setLoadMore:(k,N,$)=>{t.p.setLoadMore(k,N,$)},setLoadMoreV2:(k,N,$)=>{t.p.setLoadMoreV2(k,N,$)},setAllLoaded:k=>{t.p.setAllLoaded(k)},pagination:s}}const Dl="web-desktop",Fl=768;function jr(n,t=!1){return n<=Fl?"web-mobile":t?"web-tablet":"web-desktop"}let bo=!1;function tb(){var n;bo=!0,typeof document<"u"&&(localStorage==null||localStorage.removeItem("pf-theme"),document.documentElement.setAttribute("data-theme","light"),(n=document.body)==null||n.classList.remove("body--dark"))}function nb(){return bo}function ob(n={}){const{brandbook:t,platform:o,storageKey:i="pf-theme",defaultTheme:r,autoPlatform:s=!1}=n,a=document.documentElement,c=typeof localStorage<"u"?localStorage.getItem(i):null,l=bo?"light":c==="dark"||c==="light"?c:r??"light",f=e.ref(l),u=typeof window<"u"?window.innerWidth:1440,m=typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches,h=e.ref(s?jr(u,m):o??Dl);t&&a.setAttribute("data-brandbook",t),a.setAttribute("data-theme",f.value),a.setAttribute("data-platform",h.value),e.watch(f,$=>{const E=bo?"light":$;a.setAttribute("data-theme",E),document.body.classList.toggle("body--dark",E==="dark"),typeof localStorage<"u"&&(bo?localStorage.removeItem(i):localStorage.setItem(i,E))},{immediate:!0}),e.watch(h,$=>{a.setAttribute("data-platform",$)},{immediate:!0});let w;const k=()=>{h.value=jr(window.innerWidth,(w==null?void 0:w.matches)??!1)};s&&typeof window<"u"&&(w=window.matchMedia("(pointer: coarse)"),window.addEventListener("resize",k,{passive:!0}),w.addEventListener("change",k),e.getCurrentScope()&&e.onScopeDispose(()=>{window.removeEventListener("resize",k),w==null||w.removeEventListener("change",k)}));const N=e.ref(f.value==="dark");return e.watch(f,$=>{N.value=$==="dark"}),{theme:f,isDark:N,set:$=>{f.value=$},toggle:()=>{f.value=f.value==="dark"?"light":"dark"},platform:h,setPlatform:$=>{h.value=$}}}function ib(n="pf-theme"){const t=typeof localStorage<"u"?localStorage.getItem(n):null;return t==="dark"||t==="light"?t:void 0}const rb={primary:"#476db5",secondary:"#8aa5d4",accent:"#66c0e4",positive:"#6a9e2c",negative:"#d43a4c",info:"#2f88ab",warning:"#d97a2b",dark:"#1e293b","dark-page":"#0f172a"},sb={primary:"#5e6ce7",secondary:"#4a6088",accent:"#ffc353",positive:"#00b5a4",negative:"#e46862",info:"#31ccec",warning:"#f59433",dark:"#1e1e1e","dark-page":"#121212"},ab=5*60*1e3,lb=5*1e3;let Ol=!1,Wr=0,mi=!1,Gr=!1;function hi(n,t,o="",i=!1){const r=n.UserInfo(),s={operation:t,reason:o,userName:(r==null?void 0:r.username)||(r==null?void 0:r.email)||"",userId:(r==null?void 0:r.id)||"",roleCode:((r==null?void 0:r.roles)||[])[0]||"",accessToken:n.getToken()||""};try{const a=JSON.stringify(s);if(!we.baseUrl){fetch("/api/auth/log",{method:"POST",headers:{"Content-Type":"application/json",...n.getToken()?{token:n.getToken()}:{}},body:a,keepalive:!0}).catch(c=>console.warn("[AuthLog] Ранний запрос не отправлен",t,c));return}if(i&&typeof navigator.sendBeacon=="function"){navigator.sendBeacon("/api/auth/log",new Blob([a],{type:"application/json"}));return}we.Post({query:"auth/log",payload:s})}catch(a){console.warn("[AuthLog] Не удалось отправить событие",t,a)}}function Qr(n,t,o=!1){mi||(mi=!0,hi(n,"logout",t,o))}function cb(n){if(Ol)return;Ol=!0,n.on("login",()=>{const o=Date.now();o-Wr<lb||(Wr=o,mi=!1,Gr=!1,hi(n,"login"))}),n.on("logout",()=>{Gr=!0,Qr(n,"user")}),n.on("session-expired",()=>Qr(n,"token-expired")),n.isAuth()&&(Wr=Date.now(),mi=!1,hi(n,"login"));const t=()=>{n.isAuth()&&Qr(n,Gr?"user":"tab-close",!0)};window.addEventListener("pagehide",t),window.addEventListener("beforeunload",t),window.setInterval(()=>{n.isAuth()&&hi(n,"heartbeat")},ab)}const db=["PF","PFM"];z.AuthButtonLogin=Ei,z.AuthButtonRefresh=ss,z.AuthButtonRegister=Bi,z.AuthButtonRestore=No,z.AuthChunks=De,z.AuthFieldsIds=_t,z.AuthFormSettings=ds,z.AuthMethods=Bn,z.DEFAULT_PLATFORM=Dl,z.EmailField=To,z.LoginField=Gw,z.MOBILE_MAX_WIDTH=Fl,z.PAddDialog=nl,z.PBadge=lo,z.PButton=ne,z.PCard=ol,z.PCheckBox=ja,z.PChip=pr,z.PContactForm=or,z.PContactFormDeleteDialog=co,z.PContactFormEdit=ir,z.PContactFormEditDialog=fo,z.PContactFormEditEmails=rr,z.PContactFormEditPhones=sr,z.PContactFormView=ar,z.PContactFormViewEmails=gn,z.PContactFormViewPhones=yn,z.PCrudList=il,z.PDateInput=Ga,z.PDateTimeInput=Qa,z.PDialog=pn,z.PEditDialog=Un,z.PF=O,z.PFM=Og,z.PHint=Vr,z.PInput=et,z.POptionsListSingle=ni,z.POpts=Ya,z.PSelect=go,z.PTable=xr,z.PTableBadge=gr,z.PTableBadges=yr,z.PTableCount=wr,z.PTableEdit=br,z.PTableNumber=Sr,z.PTableSelect=Cr,z.PTableString=kr,z.PTableToggle=Xa,z.PTabs=Er,z.PTabsLeft=Br,z.PToggle=Za,z.PageFTSPKey=qr,z.PasswordField=Po,z.PasswordRepeatField=cs,z.Schedule=mo,z.ScheduleDay=ti,z.ScheduleDefaultLabels=hr,z.ScheduleGridEditor=Ha,z.SchedulePlace=Ln,z.ScheduleSession=On,z.ScheduleSlot=Ht,z.ScheduleTimeline=Ua,z.TabsStore=oi,z.createPageFTSP=Al,z.defaultContactsLabels=It,z.getStoredTheme=ib,z.initAuthLog=cb,z.installSprof=Ww,z.isThemeLockedLight=nb,z.lockLightTheme=tb,z.pfName=db,z.providePageFTSP=Jw,z.quasarBrandExample=sb,z.quasarBrandRdkb=rb,z.resolvePlatform=jr,z.useCrud=Qw,z.useFilters=Yw,z.useLoader=Xw,z.useOptions=Zw,z.usePageFTSP=zl,z.usePageFTSPRef=Kw,z.usePagination=eb,z.useTheme=ob,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
|