vendor: 6,875 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DuUCwkpm.js","./CxRbxkJ4.js","./InviteContainer.B4-UprFS.css","./ta7q0Q9b.js","./C7Vh-TtW.js","./D6Ej7AFj.js","./DX08ZGZQ.js","./Cy44ML8s.js","./KhHjYBeq.js","./CehlO0Gb.js","./C4EVSc4V.js","./7T392Tni.js","./DgcPsyM3.js","./index.B6yCTPlc.css","./DqyobASF.js","./D96ex32P.js","./z6WWQ7h4.js","./B-5AVBeC.js","./C4fWf-oJ.js","./DWVR2gLZ.js","./D3-dlZSQ.js","./CUHPGqDa.js","./about-house.CAwEeJQ7.css","./D1aYbp1J.js","./D8sXZyeb.js","./CYHCy5OX.js","./BK6YUEi8.js","./BP0wDAc1.js","./BB4mSJ97.js","./CcNGzMUb.js","./news.EvP2SoaH.css","./sVVM3vaS.js","./CGMS6XBu.js","./Utituqzh.js","./CNgP7T_C.js","./master.Dzt4x3hV.css","./meusWOhq.js","./B1wy9y0-.js","./index.BQ8Aixgf.css","./BjDC78mm.js","./CqkleIqs.js","./0V0cf9V1.js","./nyBEN3y6.js","./error-404.BBhU_iaz.css","./CzkXCiF8.js","./error-500.Da-Z0YA7.css"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();function vm(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const rs={},Qa=[],qr=()=>{},zb=()=>!1,gu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),H1=e=>e.startsWith("onUpdate:"),Es=Object.assign,bm=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},gC=Object.prototype.hasOwnProperty,Qt=(e,t)=>gC.call(e,t),ht=Array.isArray,Xa=e=>Il(e)==="[object Map]",q1=e=>Il(e)==="[object Set]",Hg=e=>Il(e)==="[object Date]",yC=e=>Il(e)==="[object RegExp]",bt=e=>typeof e=="function",as=e=>typeof e=="string",Dn=e=>typeof e=="symbol",zt=e=>e!==null&&typeof e=="object",Wb=e=>(zt(e)||bt(e))&&bt(e.then)&&bt(e.catch),Gb=Object.prototype.toString,Il=e=>Gb.call(e),_C=e=>Il(e).slice(8,-1),xm=e=>Il(e)==="[object Object]",j1=e=>as(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wo=vm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U1=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},vC=/-\w/g,dn=U1(e=>e.replace(vC,t=>t.slice(1).toUpperCase())),bC=/\B([A-Z])/g,yo=U1(e=>e.replace(bC,"-$1").toLowerCase()),z1=U1(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ld=U1(e=>e?`on${z1(e)}`:""),Nr=(e,t)=>!Object.is(e,t),Za=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Yb=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},km=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kb=e=>{const t=as(e)?Number(e):NaN;return isNaN(t)?e:t};let qg;const W1=()=>qg||(qg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kt(e){if(ht(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=as(n)?CC(n):kt(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(as(e)||zt(e))return e}const xC=/;(?![^(]*\))/g,kC=/:([^]+)/,wC=/\/\*[^]*?\*\//g;function CC(e){const t={};return e.replace(wC,"").split(xC).forEach(s=>{if(s){const n=s.split(kC);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function oe(e){let t="";if(as(e))t=e;else if(ht(e))for(let s=0;s<e.length;s++){const n=oe(e[s]);n&&(t+=n+" ")}else if(zt(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function Ja(e){if(!e)return null;let{class:t,style:s}=e;return t&&!as(t)&&(e.class=oe(t)),s&&(e.style=kt(s)),e}const $C="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",SC=vm($C);function Qb(e){return!!e||e===""}function AC(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=yu(e[n],t[n]);return s}function yu(e,t){if(e===t)return!0;let s=Hg(e),n=Hg(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Dn(e),n=Dn(t),s||n)return e===t;if(s=ht(e),n=ht(t),s||n)return s&&n?AC(e,t):!1;if(s=zt(e),n=zt(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(l&&!u||!l&&u||!yu(e[o],t[o]))return!1}}return String(e)===String(t)}function Xb(e,t){return e.findIndex(s=>yu(s,t))}const Zb=e=>!!(e&&e.__v_isRef===!0),b=e=>as(e)?e:e==null?"":ht(e)||zt(e)&&(e.toString===Gb||!bt(e.toString))?Zb(e)?b(e.value):JSON.stringify(e,Jb,2):String(e),Jb=(e,t)=>Zb(t)?Jb(e,t.value):Xa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[xf(n,i)+" =>"]=r,s),{})}:q1(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>xf(s))}:Dn(t)?xf(t):zt(t)&&!ht(t)&&!xm(t)?String(t):t,xf=(e,t="")=>{var s;return Dn(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Ds;class e5{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ds&&(Ds.active?(this.parent=Ds,this.index=(Ds.scopes||(Ds.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Ds;try{return Ds=this,t()}finally{Ds=s}}}on(){++this._on===1&&(this.prevScope=Ds,Ds=this)}off(){if(this._on>0&&--this._on===0){if(Ds===this)Ds=this.prevScope;else{let t=Ds;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function _u(e){return new e5(e)}function _o(){return Ds}function Zo(e,t=!1){Ds&&Ds.cleanups.push(e)}let cs;const kf=new WeakSet;class t5{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 4,740 bytes, line 2
2=void 0,Ds&&(Ds.active?Ds.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kf.has(this)&&(kf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||n5(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,jg(this),r5(this);const t=cs,s=pr;cs=this,pr=!0;try{return this.fn()}finally{i5(this),cs=t,pr=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$m(t);this.deps=this.depsTail=void 0,jg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Rp(this)&&this.run()}get dirty(){return Rp(this)}}let s5=0,Oc,Fc;function n5(e,t=!1){if(e.flags|=8,t){e.next=Fc,Fc=e;return}e.next=Oc,Oc=e}function wm(){s5++}function Cm(){if(--s5>0)return;if(Fc){let t=Fc;for(Fc=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Oc;){let t=Oc;for(Oc=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function r5(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i5(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),$m(n),IC(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Rp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(o5(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function o5(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gc)||(e.globalVersion=Gc,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Rp(e))))return;e.flags|=2;const t=e.dep,s=cs,n=pr;cs=e,pr=!0;try{r5(e);const r=e.fn(e._value);(t.version===0||Nr(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{cs=s,pr=n,i5(e),e.flags&=-3}}function $m(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)$m(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function IC(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let pr=!0;const a5=[];function Ii(){a5.push(pr),pr=!1}function Ti(){const e=a5.pop();pr=e===void 0?!0:e}function jg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=cs;cs=void 0;try{t()}finally{cs=s}}}let Gc=0;class TC{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class G1{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!cs||!pr||cs===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==cs)s=this.activeLink=new TC(cs,this),cs.deps?(s.prevDep=cs.depsTail,cs.depsTail.nextDep=s,cs.depsTail=s):cs.deps=cs.depsTail=s,l5(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=cs.depsTail,s.nextDep=void 0,cs.depsTail.nextDep=s,cs.depsTail=s,cs.deps===s&&(cs.deps=n)}return s}trigger(t){this.version++,Gc++,this.notify(t)}notify(t){wm();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Cm()}}}function l5(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)l5(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Yd=new WeakMap,Go=Symbol(""),Mp=Symbol(""),Yc=Symbol("");function Qs(e,t,s){if(pr&&cs){let n=Yd.get(e);n||Yd.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new G1),r.map=n,r.key=s),r.track()}}function mi(e,t,s,n,r,i){const o=Yd.get(e);if(!o){Gc++;return}const l=u=>{u&&u.trigger()};if(wm(),t==="clear")o.forEach(l);else{const u=ht(e),d=u&&j1(s);if(u&&s==="length"){const f=Number(n);o.forEach((h,g)=>{(g==="length"||g===Yc||!Dn(g)&&g>=f)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(Yc)),t){case"add":u?d&&l(o.get("length")):(l(o.get(Go)),Xa(e)&&l(o.get(Mp)));break;case"delete":u||(l(o.get(Go)),Xa(e)&&l(o.get(Mp)));break;case"set":Xa(e)&&l(o.get(Go));break}}Cm()}function PC(e,t){const s=Yd.get(e);return s&&s.get(t)}function Ia(e){const t=Lt(e);return t===e?t:(Qs(t,"iterate",Yc),Tn(e)?t:t.map(mr))}function Y1(e){return Qs(e=Lt(e),"iterate",Yc),e}function Or(e,t){return Yr(e)?ll(hr(e)?mr(t):t):mr(t)}const DC={__proto__:null,[Symbol.iterator](){return wf(this,Symbol.iterator,e=>Or(this,e))},concat(...e){return Ia(this).concat(...e.map(t=>ht(t)?Ia(t):t))}
vendor: 9,876 bytes, line 2
2,entries(){return wf(this,"entries",e=>(e[1]=Or(this,e[1]),e))},every(e,t){return li(this,"every",e,t,void 0,arguments)},filter(e,t){return li(this,"filter",e,t,s=>s.map(n=>Or(this,n)),arguments)},find(e,t){return li(this,"find",e,t,s=>Or(this,s),arguments)},findIndex(e,t){return li(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return li(this,"findLast",e,t,s=>Or(this,s),arguments)},findLastIndex(e,t){return li(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return li(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cf(this,"includes",e)},indexOf(...e){return Cf(this,"indexOf",e)},join(e){return Ia(this).join(e)},lastIndexOf(...e){return Cf(this,"lastIndexOf",e)},map(e,t){return li(this,"map",e,t,void 0,arguments)},pop(){return ic(this,"pop")},push(...e){return ic(this,"push",e)},reduce(e,...t){return Ug(this,"reduce",e,t)},reduceRight(e,...t){return Ug(this,"reduceRight",e,t)},shift(){return ic(this,"shift")},some(e,t){return li(this,"some",e,t,void 0,arguments)},splice(...e){return ic(this,"splice",e)},toReversed(){return Ia(this).toReversed()},toSorted(e){return Ia(this).toSorted(e)},toSpliced(...e){return Ia(this).toSpliced(...e)},unshift(...e){return ic(this,"unshift",e)},values(){return wf(this,"values",e=>Or(this,e))}};function wf(e,t,s){const n=Y1(e),r=n[t]();return n!==e&&!Tn(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const EC=Array.prototype;function li(e,t,s,n,r,i){const o=Y1(e),l=o!==e&&!Tn(e),u=o[t];if(u!==EC[t]){const h=u.apply(e,i);return l?mr(h):h}let d=s;o!==e&&(l?d=function(h,g){return s.call(this,Or(e,h),g,e)}:s.length>2&&(d=function(h,g){return s.call(this,h,g,e)}));const f=u.call(o,d,n);return l&&r?r(f):f}function Ug(e,t,s,n){const r=Y1(e),i=r!==e&&!Tn(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,f,h){return l&&(l=!1,d=Or(e,d)),s.call(this,d,Or(e,f),h,e)}):s.length>3&&(o=function(d,f,h){return s.call(this,d,f,h,e)}));const u=r[t](o,...n);return l?Or(e,u):u}function Cf(e,t,s){const n=Lt(e);Qs(n,"iterate",Yc);const r=n[t](...s);return(r===-1||r===!1)&&X1(s[0])?(s[0]=Lt(s[0]),n[t](...s)):r}function ic(e,t,s=[]){Ii(),wm();const n=Lt(e)[t].apply(e,s);return Cm(),Ti(),n}const LC=vm("__proto__,__v_isRef,__isVue"),c5=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn));function RC(e){Dn(e)||(e=String(e));const t=Lt(this);return Qs(t,"has",e),t.hasOwnProperty(e)}class u5{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?g5:m5:i?h5:p5).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ht(t);if(!r){let u;if(o&&(u=DC[s]))return u;if(s==="hasOwnProperty")return RC}const l=Reflect.get(t,s,it(t)?t:n);if((Dn(s)?c5.has(s):LC(s))||(r||Qs(t,"get",s),i))return l;if(it(l)){const u=o&&j1(s)?l:l.value;return r&&zt(u)?Fp(u):u}return zt(l)?r?Fp(l):Ws(l):l}}class d5 extends u5{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=ht(t)&&j1(s);if(!this._isShallow){const d=Yr(i);if(!Tn(n)&&!Yr(n)&&(i=Lt(i),n=Lt(n)),!o&&it(i)&&!it(n))return d||(i.value=n),!0}const l=o?Number(s)<t.length:Qt(t,s),u=Reflect.set(t,s,n,it(t)?t:r);return t===Lt(r)&&(l?Nr(n,i)&&mi(t,"set",s,n):mi(t,"add",s,n)),u}deleteProperty(t,s){const n=Qt(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&mi(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Dn(s)||!c5.has(s))&&Qs(t,"has",s),n}ownKeys(t){return Qs(t,"iterate",ht(t)?"length":Go),Reflect.ownKeys(t)}}class f5 extends u5{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const MC=new d5,OC=new f5,FC=new d5(!0),NC=new f5(!0),Op=e=>e,Ku=e=>Reflect.getPrototypeOf(e);function BC(e,t,s){return function(...n){const r=this.__v_raw,i=Lt(r),o=Xa(i),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=r[e](...n),f=s?Op:t?ll:mr;return!t&&Qs(i,"iterate",u?Mp:Go),Es(Object.create(d),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:l?[f(h[0]),f(h[1])]:f(h),done:g}}})}}function Qu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function VC(e,t){const s={get(r){const i=this.__v_raw,o=Lt(i),l=Lt(r);e||(Nr(r,l)&&Qs(o,"get",r),Qs(o,"get",l));const{has:u}=Ku(o),d=t?Op:e?ll:mr;if(u.call(o,r))return d(i.get(r));if(u.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Qs(Lt(r),"iterate",Go),r.size},has(r){const i=this.__v_raw,o=Lt(i),l=Lt(r);return e||(Nr(r,l)&&Qs(o,"has",r),Qs(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,u=Lt(l),d=t?Op:e?ll:mr;return!e&&Qs(u,"iterate",Go),l.forEach((f,h)=>r.call(i,d(f),d(h),o))}};return Es(s,e?{add:Qu("add"),set:Qu("set"),delete:Qu("delete"),clear:Qu("clear")}:{add(r){const i=Lt(this),o=Ku(i),l=Lt(r),u=!t&&!Tn(r)&&!Yr(r)?l:r;return o.has.call(i,u)||Nr(r,u)&&o.has.call(i,r)||Nr(l,u)&&o.has.call(i,l)||(i.add(u),mi(i,"add",u,u)),this},set(r,i){!t&&!Tn(i)&&!Yr(i)&&(i=Lt(i));const o=Lt(this),{has:l,get:u}=Ku(o);let d=l.call(o,r);d||(r=Lt(r),d=l.call(o,r));const f=u.call(o,r);return o.set(r,i),d?Nr(i,f)&&mi(o,"set",r,i):mi(o,"add",r,i),this},delete(r){const i=Lt(this),{has:o,get:l}=Ku(i);let u=o.call(i,r);u||(r=Lt(r),u=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return u&&mi(i,"delete",r,void 0),d},clear(){const r=Lt(this),i=r.size!==0,o=r.clear();return i&&mi(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=BC(r,e,t)}),s}function K1(e,t){const s=VC(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(Qt(s,r)&&r in n?s:n,r,i)}const HC={get:K1(!1,!1)},qC={get:K1(!1,!0)},jC={get:K1(!0,!1)},UC={get:K1(!0,!0)},p5=new WeakMap,h5=new WeakMap,m5=new WeakMap,g5=new WeakMap;function zC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ws(e){return Yr(e)?e:Q1(e,!1,MC,HC,p5)}function Br(e){return Q1(e,!1,FC,qC,h5)}function Fp(e){return Q1(e,!0,OC,jC,m5)}function $f(e){return Q1(e,!0,NC,UC,g5)}function Q1(e,t,s,n,r){if(!zt(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=zC(_C(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function hr(e){return Yr(e)?hr(e.__v_raw):!!(e&&e.__v_isReactive)}function Yr(e){return!!(e&&e.__v_isReadonly)}function Tn(e){return!!(e&&e.__v_isShallow)}function X1(e){return e?!!e.__v_raw:!1}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}function vo(e){return!Qt(e,"__v_skip")&&Object.isExtensible(e)&&Yb(e,"__v_skip",!0),e}const mr=e=>zt(e)?Ws(e):e,ll=e=>zt(e)?Fp(e):e;function it(e){return e?e.__v_isRef===!0:!1}function X(e){return y5(e,!1)}function fn(e){return y5(e,!0)}function y5(e,t){return it(e)?e:new WC(e,t)}class WC{constructor(t,s){this.dep=new G1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Lt(t),this._value=s?t:mr(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Tn(t)||Yr(t);t=n?t:Lt(t),Nr(t,s)&&(this._rawValue=t,this._value=n?t:mr(t),this.dep.trigger())}}function a(e){return it(e)?e.value:e}function Fr(e){return bt(e)?e():a(e)}const GC={get:(e,t,s)=>t==="__v_raw"?e:a(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return it(r)&&!it(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function _5(e){return hr(e)?e:new Proxy(e,GC)}class YC{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new G1,{get:n,set:r}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function KC(e){return new YC(e)}function v5(e){const t=ht(e)?new Array(e.length):{};for(const s in e)t[s]=b5(e,s);return t}class QC{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Dn(s)?s:String(s),this._raw=Lt(t);let r=!0,i=t;if(!ht(t)||Dn(this._key)||!j1(this._key))do r=!X1(i)||Tn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=a(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&it(this._raw[this._key])){const s=this._object[this._key];if(it(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return PC(this._raw,this._key)}}class XC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function oo(e,t,s){return it(e)?e:bt(e)?new XC(e):zt(e)&&arguments.length>1?b5(e,t,s):X(e)}function b5(e,t,s){return new QC(e,t,s)}class ZC{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new G1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&cs!==this)return n5(this,!0),!0}get value(){const t=this.dep.track();return o5(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function JC(e,t,s=!1){let n,r;return bt(e)?n=e:(n=e.get,r=e.set),new ZC(n,r,s)}const Xu={},Kd=new WeakMap;let Fo;function e$(e,t=!1,s=Fo){if(s){let n=Kd.get(s);n||Kd.set(s,n=[]),n.push(e)}}function t$(e,t,s=rs){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:u}=s,d=$=>r?$:Tn($)||r===!1||r===0?gi($,1):gi($);let f,h,g,m,_=!1,v=!1;if(it(e)?(h=()=>e.value,_=Tn(e)):hr(e)?(h=()=>d(e),_=!0):ht(e)?(v=!0,_=e.some($=>hr($)||Tn($)),h=()=>e.map($=>{if(it($))return $.value;if(hr($))return d($);if(bt($))return u?u($,2):$()})):bt(e)?t?h=u?()=>u(e,2):e:h=()=>
vendor: 6,042 bytes, line 2
2{if(g){Ii();try{g()}finally{Ti()}}const $=Fo;Fo=f;try{return u?u(e,3,[m]):e(m)}finally{Fo=$}}:h=qr,t&&r){const $=h,S=r===!0?1/0:r;h=()=>gi($(),S)}const k=_o(),x=()=>{f.stop(),k&&k.active&&bm(k.effects,f)};if(i&&t){const $=t;t=(...S)=>{const I=$(...S);return x(),I}}let C=v?new Array(e.length).fill(Xu):Xu;const w=$=>{if(!(!(f.flags&1)||!f.dirty&&!$))if(t){const S=f.run();if($||r||_||(v?S.some((I,P)=>Nr(I,C[P])):Nr(S,C))){g&&g();const I=Fo;Fo=f;try{const P=[S,C===Xu?void 0:v&&C[0]===Xu?[]:C,m];C=S,u?u(t,3,P):t(...P)}finally{Fo=I}}}else f.run()};return l&&l(w),f=new t5(h),f.scheduler=o?()=>o(w,!1):w,m=$=>e$($,!1,f),g=f.onStop=()=>{const $=Kd.get(f);if($){if(u)u($,4);else for(const S of $)S();Kd.delete(f)}},t?n?w(!0):C=f.run():o?o(w.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function gi(e,t=1/0,s){if(t<=0||!zt(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,it(e))gi(e.value,t,s);else if(ht(e))for(let n=0;n<e.length;n++)gi(e[n],t,s);else if(q1(e)||Xa(e))e.forEach(n=>{gi(n,t,s)});else if(xm(e)){for(const n in e)gi(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&gi(e[n],t,s)}return e}function vu(e,t,s,n){try{return n?e(...n):e()}catch(r){Tl(r,t,s)}}function Zn(e,t,s,n){if(bt(e)){const r=vu(e,t,s,n);return r&&Wb(r)&&r.catch(i=>{Tl(i,t,s)}),r}if(ht(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Zn(e[i],t,s,n));return r}}function Tl(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||rs;if(t){let l=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,u,d)===!1)return}l=l.parent}if(i){Ii(),vu(i,null,10,[e,u,d]),Ti();return}}s$(e,s,r,n,o)}function s$(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const an=[];let Rr=-1;const el=[];let Zi=null,Oa=0;const x5=Promise.resolve();let Qd=null;function lt(e){const t=Qd||x5;return e?t.then(this?e.bind(this):e):t}function n$(e){let t=Rr+1,s=an.length;for(;t<s;){const n=t+s>>>1,r=an[n],i=Qc(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function Sm(e){if(!(e.flags&1)){const t=Qc(e),s=an[an.length-1];!s||!(e.flags&2)&&t>=Qc(s)?an.push(e):an.splice(n$(t),0,e),e.flags|=1,k5()}}function k5(){Qd||(Qd=x5.then(w5))}function Kc(e){ht(e)?el.push(...e):Zi&&e.id===-1?Zi.splice(Oa+1,0,e):e.flags&1||(el.push(e),e.flags|=1),k5()}function zg(e,t,s=Rr+1){for(;s<an.length;s++){const n=an[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;an.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Xd(e){if(el.length){const t=[...new Set(el)].sort((s,n)=>Qc(s)-Qc(n));if(el.length=0,Zi){Zi.push(...t);return}for(Zi=t,Oa=0;Oa<Zi.length;Oa++){const s=Zi[Oa];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Zi=null,Oa=0}}const Qc=e=>e.id==null?e.flags&2?-1:1/0:e.id;function w5(e){try{for(Rr=0;Rr<an.length;Rr++){const t=an[Rr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rr<an.length;Rr++){const t=an[Rr];t&&(t.flags&=-2)}Rr=-1,an.length=0,Xd(),Qd=null,(an.length||el.length)&&w5()}}let js=null,C5=null;function Zd(e){const t=js;return js=e,C5=e&&e.type.__scopeId||null,t}function Xe(e,t=js,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&n1(-1);const i=Zd(t);let o;try{o=e(...r)}finally{Zd(i),n._d&&n1(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function pn(e,t){if(js===null)return e;const s=t0(js),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,u=rs]=t[r];i&&(bt(i)&&(i={mounted:i,updated:i}),i.deep&&gi(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function Mr(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let u=l.dir[n];u&&(Ii(),Zn(u,s,8,[e.el,l,e,t]),Ti())}}function ks(e,t){if(qs){let s=qs.provides;const n=qs.parent&&qs.parent.provides;n===s&&(s=qs.provides=Object.create(n)),s[e]=t}}function ts(e,t,s=!1){const n=vr();if(n||Yo){let r=Yo?Yo._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&bt(t)?t.call(n&&n.proxy):t}}function bu(){return!!(vr()||Yo)}const r$=Symbol.for("v-scx"),i$=()=>ts(r$);function Pl(e,t){return Am(e,null,t)}function Se(e,t,s){return Am(e,t,s)}function Am(e,t,s=rs){const{immediate:n,deep:r,flush:i,once:o}=s,l=Es({},s),u=t&&n||!t&&i!=="post";let d;if(dl){if(i==="sync"){const m=i$();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=qr,m.resume=qr,m.pause=qr,m}}const f=qs;l.call=(m,_,v)=>Zn(m,f,_,v);let h=!1;i==="post"?l.scheduler=m=>{$s(m,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,_)=>{_?m():Sm(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const g=t$(e,t,l);return dl&&(d?d.push(g):u&&g()),g}function o$(e,t,s){const n=this.proxy,r=as(e)?e.includes(".")?$5(n,e):()=>n[e]:e.bind(n,n);let i;bt(t)?i=t:(i=t.handler,s=t);const o=ku(this),l=Am(r,i.bind(n),s);return o(),l}function $5(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Qi=new WeakMap,S5=Symbol("_vte"),A5=e=>e.__isTeleport,Ho=e=>e&&(e.disabled||e.disabled===""),a$=e=>e&&(e.defer||e.defer===""),Wg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Gg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Np=(e,t)=>{const s=e&&e.to;return as(s)?t?t(s):null:s},l$={name:"Teleport",__isTeleport:!0,process(e,t,s,n,r,i,o,l,u,d){const{mc:f,pc:h,pbc:g,o:{insert:m,querySelector:_,createText:v,createComment:k,parentNode:x}}=d,C=Ho(t.props);let{dynamicChildren:w}=t;const $=(P,L,D)=>{P.shapeFlag&16&&f(P.children,L,D,r,i,o,l,u)},S=(P=t)=>{const L=Ho(P.props),D=P.target=Np(P.props,_),R=Bp(D,P,v,m);D&&(o!=="svg"&&Wg(D)?o="svg":o!=="mathml"&&Gg(D)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(D),L||($(P,D,R),Ac(P,!1)))},I=P=>{const L=()=>
2{if(Qi.get(P)===L){if(Qi.delete(P),Ho(P.props)){const D=x(P.el)||s;$(P,D,P.anchor),Ac(P,!0)}S(P)}};Qi.set(P,L),$s(L,i)};if(e==null){const P=t.el=v(""),L=t.anchor=v("");if(m(P,s,n),m(L,s,n),a$(t.props)||i&&i.pendingBranch){I(t);return}C&&($(t,s,L),Ac(t,!0)),S()}else{t.el=e.el;const P=t.anchor=e.anchor,L=Qi.get(e);if(L){L.flags|=8,Qi.delete(e),I(t);return}t.targetStart=e.targetStart;const D=t.target=e.target,R=t.targetAnchor=e.targetAnchor,F=Ho(e.props),N=F?s:D,z=F?P:R;if(o==="svg"||Wg(D)?o="svg":(o==="mathml"||Gg(D))&&(o="mathml"),w?(g(e.dynamicChildren,w,N,r,i,o,l),Mm(e,t,!0)):u||h(e,t,N,z,r,i,o,l,!1),C)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zu(t,s,P,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=t.target=Np(t.props,_);me&&Zu(t,me,null,d,0)}else F&&Zu(t,D,R,d,1);Ac(t,C)}},remove(e,t,s,{um:n,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:f,target:h,props:g}=e,m=i||!Ho(g),_=Qi.get(e);if(_&&(_.flags|=8,Qi.delete(e)),h&&(r(d),r(f)),i&&r(u),!_&&o&16)for(let v=0;v<l.length;v++){const k=l[v];n(k,t,s,m,!!k.dynamicChildren)}},move:Zu,hydrate:c$};function Zu(e,t,s,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:u,children:d,props:f}=e,h=i===2;if(h&&n(o,t,s),!Qi.has(e)&&(!h||Ho(f))&&u&16)for(let g=0;g<d.length;g++)r(d[g],t,s,2);h&&n(l,t,s)}function c$(e,t,s,n,r,i,{o:{nextSibling:o,parentNode:l,querySelector:u,insert:d,createText:f}},h){function g(k,x){let C=x;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,k._lpa=t.targetAnchor&&o(t.targetAnchor);break}}C=o(C)}}function m(k,x){x.anchor=h(o(k),x,l(k),s,n,r,i)}const _=t.target=Np(t.props,u),v=Ho(t.props);if(_){const k=_._lpa||_.firstChild;t.shapeFlag&16&&(v?(m(e,t),g(_,k),t.targetAnchor||Bp(_,t,f,d,l(e)===_?e:null)):(t.anchor=o(e),g(_,k),t.targetAnchor||Bp(_,t,f,d),h(k&&o(k),t,_,s,n,r,i))),Ac(t,v)}else v&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const u$=l$;function Ac(e,t){const s=e.ctx;if(s&&s.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Bp(e,t,s,n,r=null){const i=t.targetStart=s(""),o=t.targetAnchor=s("");return i[S5]=o,e&&(n(i,e,r),n(o,e,r)),o}const jn=Symbol("_leaveCb"),oc=Symbol("_enterCb");function d$(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return je(()=>{e.isMounted=!0}),Tt(()=>{e.isUnmounting=!0}),e}const Hn=[Function,Array],I5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hn,onEnter:Hn,onAfterEnter:Hn,onEnterCancelled:Hn,onBeforeLeave:Hn,onLeave:Hn,onAfterLeave:Hn,onLeaveCancelled:Hn,onBeforeAppear:Hn,onAppear:Hn,onAfterAppear:Hn,onAppearCancelled:Hn},T5=e=>{const t=e.subTree;return t.component?T5(t.component):t},f$={name:"BaseTransition",props:I5,setup(e,{slots:t}){const s=vr(),n=d$();return()=>{const r=t.default&&E5(t.default(),!0),i=r&&r.length?P5(r):s.subTree?E():void 0;if(!i)return;const o=Lt(e),{mode:l}=o;if(n.isLeaving)return Sf(i);const u=Yg(i);if(!u)return Sf(i);let d=Vp(u,o,n,s,h=>d=h);u.type!==Ss&&cl(u,d);let f=s.subTree&&Yg(s.subTree);if(f&&f.type!==Ss&&!fr(f,u)&&T5(s).type!==Ss){let h=Vp(f,o,n,s);if(cl(f,h),l==="out-in"&&u.type!==Ss)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete h.afterLeave,f=void 0},Sf(i);l==="in-out"&&u.type!==Ss?h.delayLeave=(g,m,_)=>{const v=D5(n,f);v[String(f.key)]=f,g[jn]=()=>{m(),g[jn]=void 0,delete d.delayedLeave,f=void 0},d.delayedLeave=()=>{_(),delete d.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function P5(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Ss){t=s;break}}return t}const p$=f$;function D5(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Vp(e,t,s,n,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:g,onLeave:m,onAfterLeave:_,onLeaveCancelled:v,onBeforeAppear:k,onAppear:x,onAfterAppear:C,onAppearCancelled:w}=t,$=String(e.key),S=D5(s,e),I=(D,R)=>{D&&Zn(D,n,9,R)},P=(D,R)=>{const F=R[1];I(D,R),ht(D)?D.every(N=>N.length<=1)&&F():D.length<=1&&F()},L={mode:o,persisted:l,beforeEnter(D){let R=u;if(!s.isMounted)if(i)R=k||u;else return;D[jn]&&D[jn](!0);const F=S[$];F&&fr(e,F)&&F.el[jn]&&F.el[jn](),I(R,[D])},enter(D){if(S[$]===e)return;let R=d,F=f,N=h;if(!s.isMounted)if(i)R=x||d,F=C||f,N=w||h;else return;let z=!1;D[oc]=ge=>{z||(z=!0,ge?I(N,[D]):I(F,[D]),L.delayedLeave&&L.delayedLeave(),D[oc]=void 0)};const me=D[oc].bind(null,!1);R?P(R,[D,me]):me()},leave(D,R){const F=String(e.key);if(D[oc]&&D[oc](!0),s.isUnmounting)return R();I(g,[D]);let N=!1;D[jn]=me=>{N||(N=!0,R(),me?I(v,[D]):I(_,[D]),D[jn]=void 0,S[F]===e&&delete S[F])};const z=D[jn].bind(null,!1);S[F]=e,m?P(m,[D,z]):z()},clone(D){const R=Vp(D,t,s,n,r);return r&&r(R),R}};return L}function Sf(e){if(xu(e))return e=Kr(e),e.children=null,e}function Yg(e){if(!xu(e))return A5(e.type)&&e.children?P5(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&bt(s.default))return s.default()}}function cl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,cl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function E5(e,t=!1,s){let n=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=s==null?o.key:String(s)+String(o.key!=null?o.key:i);o.type===j?(o.patchFlag&128&&r++,n=n.concat(E5(o.children,t,l))):(t||o.type!==Ss)&&n.push(l!=null?Kr(o,{key:l}):o)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function G(e,t){return bt(e)?Es({name:e.name},t,{setup:e}):e}
vendor: 1,538 bytes, line 2
2function Im(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function xlt(e){const t=vr(),s=fn(null);if(t){const r=t.refs===rs?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>s.value,set:i=>s.value=i})}return s}function Kg(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Jd=new WeakMap;function tl(e,t,s,n,r=!1){if(ht(e)){e.forEach((v,k)=>tl(v,t&&(ht(t)?t[k]:t),s,n,r));return}if(ki(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&tl(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?t0(n.component):n.el,o=r?null:i,{i:l,r:u}=e,d=t&&t.r,f=l.refs===rs?l.refs={}:l.refs,h=l.setupState,g=Lt(h),m=h===rs?zb:v=>Kg(f,v)?!1:Qt(g,v),_=(v,k)=>!(k&&Kg(f,k));if(d!=null&&d!==u){if(Qg(t),as(d))f[d]=null,m(d)&&(h[d]=null);else if(it(d)){const v=t;_(d,v.k)&&(d.value=null),v.k&&(f[v.k]=null)}}if(bt(u))vu(u,l,12,[o,f]);else{const v=as(u),k=it(u);if(v||k){const x=()=>{if(e.f){const C=v?m(u)?h[u]:f[u]:_()||!e.k?u.value:f[e.k];if(r)ht(C)&&bm(C,i);else if(ht(C))C.includes(i)||C.push(i);else if(v)f[u]=[i],m(u)&&(h[u]=f[u]);else{const w=[i];_(u,e.k)&&(u.value=w),e.k&&(f[e.k]=w)}}else v?(f[u]=o,m(u)&&(h[u]=o)):k&&(_(u,e.k)&&(u.value=o),e.k&&(f[e.k]=o))};if(o){const C=()=>{x(),Jd.delete(e)};C.id=-1,Jd.set(e,C),$s(C,s)}else Qg(e),x()}}}function Qg(e){const t=Jd.get(e);t&&(t.flags|=8,Jd.delete(e))}let Xg=!1;const Ta=()=>{Xg||(console.error("Hydration completed but contains mismatches."),Xg=!0)},h$=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",m$=e=>
vendor: 18,239 bytes, lines 2-4
2e.namespaceURI.includes("MathML"),Ju=e=>{if(e.nodeType===1){if(h$(e))return"svg";if(m$(e))return"mathml"}},ja=e=>e.nodeType===8;function g$(e){const{mt:t,p:s,o:{patchProp:n,createText:r,nextSibling:i,parentNode:o,remove:l,insert:u,createComment:d}}=e,f=(w,$)=>{if(!$.hasChildNodes()){s(null,w,$),Xd(),$._vnode=w;return}h($.firstChild,w,null,null,null),Xd(),$._vnode=w},h=(w,$,S,I,P,L=!1)=>{L=L||!!$.dynamicChildren;const D=ja(w)&&w.data==="[",R=()=>v(w,$,S,I,P,D),{type:F,ref:N,shapeFlag:z,patchFlag:me}=$;let ge=w.nodeType;$.el=w,me===-2&&(L=!1,$.dynamicChildren=null);let fe=null;switch(F){case ao:ge!==3?$.children===""?(u($.el=r(""),o(w),w),fe=w):fe=R():(w.data!==$.children&&(Ta(),w.data=$.children),fe=i(w));break;case Ss:C(w)?(fe=i(w),x($.el=w.content.firstChild,w,S)):ge!==8||D?fe=R():fe=i(w);break;case Bc:if(D&&(w=i(w),ge=w.nodeType),ge===1||ge===3){fe=w;const te=!$.children.length;for(let V=0;V<$.staticCount;V++)te&&($.children+=fe.nodeType===1?fe.outerHTML:fe.data),V===$.staticCount-1&&($.anchor=fe),fe=i(fe);return D?i(fe):fe}else R();break;case j:D?fe=_(w,$,S,I,P,L):fe=R();break;default:if(z&1)(ge!==1||$.type.toLowerCase()!==w.tagName.toLowerCase())&&!C(w)?fe=R():fe=g(w,$,S,I,P,L);else if(z&6){$.slotScopeIds=P;const te=o(w);if(D?fe=k(w):ja(w)&&w.data==="teleport start"?fe=k(w,w.data,"teleport end"):fe=i(w),t($,te,null,S,I,Ju(te),L),ki($)&&!$.type.__asyncResolved){let V;D?(V=T(j),V.anchor=fe?fe.previousSibling:te.lastChild):V=w.nodeType===3?Qe(""):T("div"),V.el=w,$.component.subTree=V}}else z&64?ge!==8?fe=R():fe=$.type.hydrate(w,$,S,I,P,L,e,m):z&128&&(fe=$.type.hydrate(w,$,S,I,Ju(o(w)),P,L,e,h))}return N!=null&&tl(N,null,I,$),fe},g=(w,$,S,I,P,L)=>{L=L||!!$.dynamicChildren;const{type:D,props:R,patchFlag:F,shapeFlag:N,dirs:z,transition:me}=$,ge=D==="input"||D==="option";if(ge||F!==-1){z&&Mr($,null,S,"created");let fe=!1;if(C(w)){fe=e6(null,me)&&S&&S.vnode.props&&S.vnode.props.appear;const V=w.content.firstChild;if(fe){const pe=V.getAttribute("class");pe&&(V.$cls=pe),me.beforeEnter(V)}x(V,w,S),$.el=w=V}if(N&16&&!(R&&(R.innerHTML||R.textContent))){let V=m(w.firstChild,$,w,S,I,P,L);for(V&&!ed(w,1)&&Ta();V;){const pe=V;V=V.nextSibling,l(pe)}}else if(N&8){let V=$.children;V[0]===` 3`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:pe}=w;pe!==V&&pe!==V.replace(/\r\n|\r/g,` 4`)&&(ed(w,0)||Ta(),w.textContent=$.children)}if(R){if(ge||!L||F&48){const V=w.tagName.includes("-");for(const pe in R)(ge&&(pe.endsWith("value")||pe==="indeterminate")||gu(pe)&&!Wo(pe)||pe[0]==="."||V&&!Wo(pe))&&n(w,pe,null,R[pe],void 0,S)}else if(R.onClick)n(w,"onClick",null,R.onClick,void 0,S);else if(F&4&&hr(R.style))for(const V in R.style)R.style[V]}let te;(te=R&&R.onVnodeBeforeMount)&&yn(te,S,$),z&&Mr($,null,S,"beforeMount"),((te=R&&R.onVnodeMounted)||z||fe)&&i6(()=>{te&&yn(te,S,$),fe&&me.enter(w),z&&Mr($,null,S,"mounted")},I)}return w.nextSibling},m=(w,$,S,I,P,L,D)=>{D=D||!!$.dynamicChildren;const R=$.children,F=R.length;let N=!1;for(let z=0;z<F;z++){const me=D?R[z]:R[z]=In(R[z]),ge=me.type===ao;w?(ge&&!D&&z+1<F&&In(R[z+1]).type===ao&&(u(r(w.data.slice(me.children.length)),S,i(w)),w.data=me.children),w=h(w,me,I,P,L,D)):ge&&!me.children?u(me.el=r(""),S):(N||(N=!0,ed(S,1)||Ta()),s(null,me,S,null,I,P,Ju(S),L))}return w},_=(w,$,S,I,P,L)=>{const{slotScopeIds:D}=$;D&&(P=P?P.concat(D):D);const R=o(w),F=m(i(w),$,R,S,I,P,L);return F&&ja(F)&&F.data==="]"?i($.anchor=F):(Ta(),u($.anchor=d("]"),R,F),F)},v=(w,$,S,I,P,L)=>{if(ed(w.parentElement,1)||Ta(),$.el=null,L){const F=k(w);for(;;){const N=i(w);if(N&&N!==F)l(N);else break}}const D=i(w),R=o(w);return l(w),s(null,$,R,D,S,I,Ju(R),P),S&&(S.vnode.el=$.el,e0(S,$.el)),D},k=(w,$="[",S="]")=>{let I=0;for(;w;)if(w=i(w),w&&ja(w)&&(w.data===$&&I++,w.data===S)){if(I===0)return i(w);I--}return w},x=(w,$,S)=>{const I=$.parentNode;I&&I.replaceChild(w,$);let P=S;for(;P;)P.vnode.el===$&&(P.vnode.el=P.subTree.el=w),P=P.parent},C=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[f,h]}const Zg="data-allow-mismatch",y$={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ed(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Zg);)e=e.parentElement;const s=e&&e.getAttribute(Zg);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(y$[t])}}W1().requestIdleCallback;W1().cancelIdleCallback;function _$(e,t){if(ja(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ja(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const ki=e=>!!e.type.__asyncLoader;function Xc(e){bt(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:u}=e;let d=null,f,h=0;const g=()=>(h++,d=null,m()),m=()=>{let _;return d||(_=d=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),u)return new Promise((k,x)=>{u(v,()=>k(g()),()=>x(v),h+1)});throw v}).then(v=>_!==d&&d?d:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),f=v,v)))};return G({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(_,v,k){let x=!1;(v.bu||(v.bu=[])).push(()=>x=!0);const C=()=>{x||k()},w=i?()=>{const $=i(C,S=>_$(_,S));$&&(v.bum||(v.bum=[])).push($)}:C;f?w():m().then(()=>!v.isUnmounted&&w())},get __asyncResolved(){return f},setup(){const _=qs;if(Im(_),f)return()=>td(f,_);const v=S=>{d=null,Tl(S,_,13,!n)};if(l&&_.suspense||dl)return m().then(S=>()=>td(S,_)).catch(S=>(v(S),()=>n?T(n,{error:S}):null));const k=X(!1),x=X(),C=X(!!r);let w,$;return wn(()=>{w!=null&&clearTimeout(w),$!=null&&clearTimeout($)}),r&&($=setTimeout(()=>{_.isUnmounted||(C.value=!1)},r)),o!=null&&(w=setTimeout(()=>{if(!_.isUnmounted&&!k.value&&!x.value){const S=new Error(`Async component timed out after ${o}ms.`);v(S),x.value=S}},o)),m().then(()=>{_.isUnmounted||(k.value=!0,_.parent&&xu(_.parent.vnode)&&_.parent.update())}).catch(S=>{if(_.isUnmounted){d=null;return}v(S),x.value=S}),()=>{if(k.value&&f)return td(f,_);if(x.value&&n)return T(n,{error:x.value});if(s&&!C.value)return td(s,_)}}})}function td(e,t){const{ref:s,props:n,children:r,ce:i}=t.vnode,o=T(e,n,r);return o.ref=s,o.ce=i,delete t.vnode.ce,o}const xu=e=>e.type.__isKeepAlive,v$={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=vr(),n=s.ctx;if(!n.renderer)return()=>{const C=t.default&&t.default();return C&&C.length===1?C[0]:C};const r=new Map,i=new Set;let o=null;const l=s.suspense,{renderer:{p:u,m:d,um:f,o:{createElement:h}}}=n,g=h("div");n.activate=(C,w,$,S,I)=>{const P=C.component;d(C,w,$,0,l),u(P.vnode,C,w,$,P,l,S,C.slotScopeIds,I),$s(()=>{P.isDeactivated=!1,P.a&&Za(P.a);const L=C.props&&C.props.onVnodeMounted;L&&yn(L,P.parent,C)},l)},n.deactivate=C=>{const w=C.component;t1(w.m),t1(w.a),d(C,g,null,1,l),$s(()=>{w.da&&Za(w.da);const $=C.props&&C.props.onVnodeUnmounted;$&&yn($,w.parent,C),w.isDeactivated=!0},l)};function m(C){Af(C),f(C,s,l,!0)}function _(C){r.forEach((w,$)=>{const S=Kp(ki(w)?w.type.__asyncResolved||{}:w.type);S&&!C(S)&&v($)})}function v(C){const w=r.get(C);w&&(!o||!fr(w,o))?m(w):o&&Af(o),r.delete(C),i.delete(C)}Se(()=>[e.include,e.exclude],([C,w])=>{C&&_($=>Ic(C,$)),w&&_($=>!Ic(w,$))},{flush:"post",deep:!0});let k=null;const x=()=>{k!=null&&(s1(s.subTree.type)?$s(()=>{r.set(k,sd(s.subTree))},s.subTree.suspense):r.set(k,sd(s.subTree)))};return je(x),M5(x),Tt(()=>{r.forEach(C=>{const{subTree:w,suspense:$}=s,S=sd(w);if(C.type===S.type&&C.key===S.key){Af(S);const I=S.component.da;I&&$s(I,$);return}m(C)})}),()=>{if(k=null,!t.default)return o=null;const C=t.default(),w=C[0];if(C.length>1)return o=null,C;if(!Jo(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return o=null,w;let $=sd(w);if($.type===Ss)return o=null,$;const S=$.type,I=Kp(ki($)?$.type.__asyncResolved||{}:S),{include:P,exclude:L,max:D}=e;if(P&&(!I||!Ic(P,I))||L&&I&&Ic(L,I))return $.shapeFlag&=-257,o=$,w;const R=$.key==null?S:$.key,F=r.get(R);return $.el&&($=Kr($),w.shapeFlag&128&&(w.ssContent=$)),k=R,F?($.el=F.el,$.component=F.component,$.transition&&cl($,$.transition),$.shapeFlag|=512,i.delete(R),i.add(R)):(i.add(R),D&&i.size>parseInt(D,10)&&v(i.values().next().value)),$.shapeFlag|=256,o=$,s1(w.type)?w:$}}},b$=v$;function Ic(e,t){return ht(e)?e.some(s=>Ic(s,t)):as(e)?e.split(",").includes(t):yC(e)?(e.lastIndex=0,e.test(t)):!1}function Tm(e,t){L5(e,"a",t)}function Pm(e,t){L5(e,"da",t)}function L5(e,t,s=qs){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Z1(t,n,s),s){let r=s.parent;for(;r&&r.parent;)xu(r.parent.vnode)&&x$(n,t,s,r),r=r.parent}}function x$(e,t,s,n){const r=Z1(t,e,n,!0);wn(()=>{bm(n[t],r)},s)}function Af(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function sd(e){return e.shapeFlag&128?e.ssContent:e}function Z1(e,t,s=qs,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ii();const l=ku(s),u=Zn(t,s,e,o);return l(),Ti(),u});return n?r.unshift(i):r.push(i),i}}const Ri=e=>(t,s=qs)=>{(!dl||e==="sp")&&Z1(e,(...n)=>t(...n),s)},R5=Ri("bm"),je=Ri("m"),k$=Ri("bu"),M5=Ri("u"),Tt=Ri("bum"),wn=Ri("um"),w$=Ri("sp"),C$=Ri("rtg"),$$=Ri("rtc");function O5(e,t=qs){Z1("ec",e,t)}const Dm="components",S$="directives";function Ae(e,t){return Em(Dm,e,!0,t)||e}const F5=Symbol.for("v-ndc");function Jn(e){return as(e)?Em(Dm,e,!1)||e:e||F5}function A$(e){return Em(S$,e)}function Em(e,t,s=!0,n=!1){const r=js||qs;if(r){const i=r.type;if(e===Dm){const l=Kp(i,!1);if(l&&(l===t||l===dn(t)||l===z1(dn(t))))return i}const o=Jg(r[e]||i[e],t)||Jg(r.appContext[e],t);return!o&&n?i:o}}function Jg(e,t){return e&&(e[t]||e[dn(t)]||e[z1(dn(t))])}function le(e,t,s,n){let r;const i=s&&s[n],o=ht(e);if(o||as(e)){const l=o&&hr(e);let u=!1,d=!1;l&&(u=!Tn(e),d=Yr(e),e=Y1(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(u?d?ll(mr(e[f])):mr(e[f]):e[f],f,void 0,i&&i[f])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i&&i[l])}else if(zt(e))if(e[Symbol.iterator])r=Array.from(e,(l,u)=>t(l,u,void 0,i&&i[u]));else{const l=Object.keys(e);r=new Array(l.length);for(let u=0,d=l.length;u<d;u++){const f=l[u];r[u]=t(e[f],f,u,i&&i[u])}}else r=[];return s&&(s[n]=r),r}function klt(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(ht(n))for(let r=0;r<n.length;r++)e[n[r].name]=n[r].fn;else n&&(e[n.name]=n.key?(...r)=>{const i=n.fn(...r);return i&&(i.key=n.key),i}:n.fn)}return e}function er(e,t,s={},n,r){if(js.ce||js.parent&&ki(js.parent)&&js.parent.ce){const d=Object.keys(s).length>0;return t!=="default"&&(s.name=t),p(),K(j,null,[T("slot",s,n&&n())],d?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),p();const o=i&&N5(i(s)),l=s.key||o&&o.key,u=K(j,{key:(l&&!Dn(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!r&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),i&&i._c&&(i._d=!0),u}function N5(e){return e.some(t=>Jo(t)?!(t.type===Ss||t.type===j&&!N5(t.children)):!0)?e:null}function I$(e,t){const s={};for(const n in e)s[t&&/[A-Z]/.test(n)?`on:${n}`:Ld(n)]=e[n];return s}const Hp=e=>e?c6(e)?t0(e):Hp(e.parent):null,Nc=Es(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Hp(e.parent),$root:e=>Hp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>H5(e),$forceUpdate:e=>e.f||(e.f=()=>{Sm(e.update)}),$nextTick:e=>e.n||(e.n=lt.bind(e.proxy)),$watch:e=>o$.bind(e)}),If=(e,t)=>e!==rs&&!e.__isScriptSetup&&Qt(e,t),T$={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:u}=e;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(If(n,t))return o[t]=1,n[t];if(r!==rs&&Qt(r,t))return o[t]=2,r[t];if(Qt(i,t))return o[t]=3,i[t];if(s!==rs&&Qt(s,t))return o[t]=4,s[t];qp&&(o[t]=0)}}const d=Nc[t];let f,h;if(d)return t==="$attrs"&&Qs(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==rs&&Qt(s,t))return o[t]=4,s[t];if(h=u.config.globalProperties,Qt(h,t))return h[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return If(r,t)?(r[t]=s,!0):n!==rs&&Qt(n,t)?(n[t]=s,!0):Qt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let u;return!!(s[l]||e!==rs&&l[0]!=="$"&&Qt(e,l)||If(t,l)||Qt(i,l)||Qt(n,l)||Qt(Nc,l)||Qt(r.config.globalProperties,l)||(u=o.__cssModules)&&u[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Qt(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function B5(){return P$().slots}function P$(e){const t=vr();return t.setupContext||(t.setupContext=d6(t))}function ey(e){return ht(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qp=!0;function D$(e){const t=H5(e),s=e.proxy,n=e.ctx;qp=!1,t.beforeCreate&&ty(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:u,inject:d,created:f,beforeMount:h,mounted:g,beforeUpdate:m,updated:_,activated:v,deactivated:k,beforeDestroy:x,beforeUnmount:C,destroyed:w,unmounted:$,render:S,renderTracked:I,renderTriggered:P,errorCaptured:L,serverPrefetch:D,expose:R,inheritAttrs:F,components:N,directives:z,filters:me}=t;if(d&&E$(d,n,null),o)for(const te in o){const V=o[te];bt(V)&&(n[te]=V.bind(s))}if(r){const te=r.call(s,s);zt(te)&&(e.data=Ws(te))}if(qp=!0,i)for(const te in i){const V=i[te],pe=bt(V)?V.bind(s,s):bt(V.get)?V.get.bind(s,s):qr,ye=!bt(V)&&bt(V.set)?V.set.bind(s):qr,ne=A({get:pe,set:ye});Object.defineProperty(n,te,{enumerable:!0,configurable:!0,get:()=>ne.value,set:ve=>ne.value=ve})}if(l)for(const te in l)V5(l[te],n,s,te);if(u){const te=bt(u)?u.call(s):u;Reflect.ownKeys(te).forEach(V=>{ks(V,te[V])})}f&&ty(f,e,"c");function fe(te,V){ht(V)?V.forEach(pe=>te(pe.bind(s))):V&&te(V.bind(s))}if(fe(R5,h),fe(je,g),fe(k$,m),fe(M5,_),fe(Tm,v),fe(Pm,k),fe(O5,L),fe($$,I),fe(C$,P),fe(Tt,C),fe(wn,$),fe(w$,D),ht(R))if(R.length){const te=e.exposed||(e.exposed={});R.forEach(V=>{Object.defineProperty(te,V,{get:()=>s[V],set:pe=>s[V]=pe,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===qr&&(e.render=S),F!=null&&(e.inheritAttrs=F),N&&(e.components=N),z&&(e.directives=z),D&&Im(e)}function E$(e,t,s=qr){ht(e)&&(e=jp(e));for(const n in e){const r=e[n];let i;zt(r)?"default"in r?i=ts(r.from||n,r.default,!0):i=ts(r.from||n):i=ts(r),it(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function ty(e,t,s){Zn(ht(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function V5(e,t,s,n){let r=n.includes(".")?$5(s,n):()=>s[n];if(as(e)){const i=t[e];bt(i)&&Se(r,i)}else if(bt(e))Se(r,e.bind(s));else if(zt(e))if(ht(e))e.forEach(i=>V5(i,t,s,n));else{const i=bt(e.handler)?e.handler.bind(s):t[e.handler];bt(i)&&Se(r,i,e)}}function H5(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let u;return l?u=l:!r.length&&!s&&!n?u=t:(u={},r.length&&r.forEach(d=>e1(u,d,o,!0)),e1(u,t,o)),zt(t)&&i.set(t,u),u}function e1(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&e1(e,i,s,!0),r&&r.forEach(o=>e1(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=L$[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const L$={data:sy,props:ny,emits:ny,methods:Tc,computed:Tc,beforeCreate:nn,created:nn,beforeMount:nn,mounted:nn,beforeUpdate:nn,updated:nn,beforeDestroy:nn,beforeUnmount:nn,destroyed:nn,unmounted:nn,activated:nn,deactivated:nn,errorCaptured:nn,serverPrefetch:nn,components:Tc,directives:Tc,watch:M$,provide:sy,inject:R$};function sy(e,t){return t?e?function(){return Es(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function R$(e,t){return Tc(jp(e),jp(t))}function jp(e){if(ht(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function nn(e,t){return e?[...new Set([].concat(e,t))]:t}function Tc(e,t){return e?Es(Object.create(null),e,t):t}function ny(e,t){return e?ht(e)&&ht(t)?[...new Set([...e,...t])]:Es(Object.create(null),ey(e),ey(t??{})):t}function M$(e,t){if(!e)return t;if(!t)return e;const s=Es(Object.create(null),e);for(const n in t)s[n]=nn(e[n],t[n]);return s}function q5(){return{app:null,config:{isNativeTag:zb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let O$=0;function F$(e,t){return function(n,r=null){bt(n)||(n=Es({},n)),r!=null&&!zt(r)&&(r=null);const i=q5(),o=new WeakSet,l=[];let u=!1;const d=i.app={_uid:O$++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:hS,get config(){return i.config},set config(f){},use(f,...h){return o.has(f)||(f&&bt(f.install)?(o.add(f),f.install(d,...h)):bt(f)&&(o.add(f),f(d,...h))),d},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),d},component(f,h){return h?(i.components[f]=h,d):i.components[f]},directive(f,h){return h?(i.directives[f]=h,d):i.directives[f]},mount(f,h,g){if(!u){const m=d._ceVNode||T(n,r);return m.appContext=i,g===!0?g="svg":g===!1&&(g=void 0),h&&t?t(m,f):e(m,f,g),u=!0,d._container=f,f.__vue_app__=d,t0(m.component)}},onUnmount(f){l.push(f)},unmount(){u&&(Zn(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,h){return i.provides[f]=h,d},runWithContext(f){const h=Yo;Yo=d;try{return f()}finally{Yo=h}}};return d}}let Yo=null;const N$=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dn(t)}Modifiers`]||e[`${yo(t)}Modifiers`];function B$(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||rs;let r=s;const i=t.startsWith("update:"),o=i&&N$(n,t.slice(7));o&&(o.trim&&(r=s.map(f=>as(f)?f.trim():f)),o.number&&(r=s.map(km)));let l,u=n[l=Ld(t)]||n[l=Ld(dn(t))];!u&&i&&(u=n[l=Ld(yo(t))]),u&&Zn(u,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Zn(d,e,6,r)}}const V$=new WeakMap;function j5(e,t,s=!1){const n=s?V$:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!bt(e)){const u=d=>{const f=j5(d,t,!0);f&&(l=!0,Es(o,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}
vendor: 9,857 bytes, line 4
4return!i&&!l?(zt(e)&&n.set(e,null),null):(ht(i)?i.forEach(u=>o[u]=null):Es(o,i),zt(e)&&n.set(e,o),o)}function J1(e,t){return!e||!gu(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qt(e,t[0].toLowerCase()+t.slice(1))||Qt(e,yo(t))||Qt(e,t))}function Tf(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:u,render:d,renderCache:f,props:h,data:g,setupState:m,ctx:_,inheritAttrs:v}=e,k=Zd(e);let x,C;try{if(s.shapeFlag&4){const $=r||n,S=$;x=In(d.call(S,$,f,h,m,g,_)),C=l}else{const $=t;x=In($.length>1?$(h,{attrs:l,slots:o,emit:u}):$(h,null)),C=t.props?l:q$(l)}}catch($){Vc.length=0,Tl($,e,1),x=T(Ss)}let w=x;if(C&&v!==!1){const $=Object.keys(C),{shapeFlag:S}=w;$.length&&S&7&&(i&&$.some(H1)&&(C=j$(C,i)),w=Kr(w,C,!1,!0))}return s.dirs&&(w=Kr(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(s.dirs):s.dirs),s.transition&&cl(w,s.transition),x=w,Zd(k),x}function H$(e,t=!0){let s;for(let n=0;n<e.length;n++){const r=e[n];if(Jo(r)){if(r.type!==Ss||r.children==="v-if"){if(s)return;s=r}}else return}return s}const q$=e=>{let t;for(const s in e)(s==="class"||s==="style"||gu(s))&&((t||(t={}))[s]=e[s]);return t},j$=(e,t)=>{const s={};for(const n in e)(!H1(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function U$(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:u}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?ry(n,o,d):!!o;if(u&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const g=f[h];if(U5(o,n,g)&&!J1(d,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?ry(n,o,d):!0:!!o;return!1}function ry(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(U5(t,e,i)&&!J1(s,i))return!0}return!1}function U5(e,t,s){const n=e[s],r=t[s];return s==="style"&&zt(n)&&zt(r)?!yu(n,r):n!==r}function e0({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const z5={},W5=()=>Object.create(z5),G5=e=>Object.getPrototypeOf(e)===z5;function z$(e,t,s,n=!1){const r={},i=W5();e.propsDefaults=Object.create(null),Y5(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Br(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function W$(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=Lt(r),[u]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let g=f[h];if(J1(e.emitsOptions,g))continue;const m=t[g];if(u)if(Qt(i,g))m!==i[g]&&(i[g]=m,d=!0);else{const _=dn(g);r[_]=Up(u,l,_,m,e,!1)}else m!==i[g]&&(i[g]=m,d=!0)}}}else{Y5(e,t,r,i)&&(d=!0);let f;for(const h in l)(!t||!Qt(t,h)&&((f=yo(h))===h||!Qt(t,f)))&&(u?s&&(s[h]!==void 0||s[f]!==void 0)&&(r[h]=Up(u,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!Qt(t,h))&&(delete i[h],d=!0)}d&&mi(e.attrs,"set","")}function Y5(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let u in t){if(Wo(u))continue;const d=t[u];let f;r&&Qt(r,f=dn(u))?!i||!i.includes(f)?s[f]=d:(l||(l={}))[f]=d:J1(e.emitsOptions,u)||(!(u in n)||d!==n[u])&&(n[u]=d,o=!0)}if(i){const u=Lt(s),d=l||rs;for(let f=0;f<i.length;f++){const h=i[f];s[h]=Up(r,u,h,d[h],e,!Qt(d,h))}}return o}function Up(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=Qt(o,"default");if(l&&n===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&bt(u)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const f=ku(r);n=d[s]=u.call(null,t),f()}}else n=u;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===yo(s))&&(n=!0))}return n}const G$=new WeakMap;function K5(e,t,s=!1){const n=s?G$:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let u=!1;if(!bt(e)){const f=h=>{u=!0;const[g,m]=K5(h,t,!0);Es(o,g),m&&l.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!u)return zt(e)&&n.set(e,Qa),Qa;if(ht(i))for(let f=0;f<i.length;f++){const h=dn(i[f]);iy(h)&&(o[h]=rs)}else if(i)for(const f in i){const h=dn(f);if(iy(h)){const g=i[f],m=o[h]=ht(g)||bt(g)?{type:g}:Es({},g),_=m.type;let v=!1,k=!0;if(ht(_))for(let x=0;x<_.length;++x){const C=_[x],w=bt(C)&&C.name;if(w==="Boolean"){v=!0;break}else w==="String"&&(k=!1)}else v=bt(_)&&_.name==="Boolean";m[0]=v,m[1]=k,(v||Qt(m,"default"))&&l.push(h)}}const d=[o,l];return zt(e)&&n.set(e,d),d}function iy(e){return e[0]!=="$"&&!Wo(e)}const Lm=e=>e==="_"||e==="_ctx"||e==="$stable",Rm=e=>ht(e)?e.map(In):[In(e)],Y$=(e,t,s)=>{if(t._n)return t;const n=Xe((...r)=>Rm(t(...r)),s);return n._c=!1,n},Q5=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Lm(r))continue;const i=e[r];if(bt(i))t[r]=Y$(r,i,n);else if(i!=null){const o=Rm(i);t[r]=()=>o}}},X5=(e,t)=>{const s=Rm(t);e.slots.default=()=>s},Z5=(e,t,s)=>{for(const n in t)(s||!Lm(n))&&(e[n]=t[n])},K$=(e,t,s)=>{const n=e.slots=W5();if(e.vnode.shapeFlag&32){const r=t._;r?(Z5(n,t,s),s&&Yb(n,"_",r,!0)):Q5(t,n)}else t&&X5(e,t)},Q$=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=rs;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Z5(r,t,s):(i=!t.$stable,Q5(t,r)),o=t}else t&&(X5(e,t),o={default:1});if(i)for(const l in r)!Lm(l)&&o[l]==null&&delete r[l]},$s=i6;function X$(e){return J5(e)}function Z$(e){return J5(e,g$)}function J5(e,t){const s=W1();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:u,setText:d,setElementText:f,parentNode:h,nextSibling:g,setScopeId:m=qr,insertStaticContent:_}=e,v=(H,Y,W,_e=null,ae=null,M=null,q=void 0,re=null,ce=!!Y.dynamicChildren)=>{if(H===Y)return;H&&!fr(H,Y)&&(_e=de(H),ve(H,ae,M,!0),H=null),Y.patchFlag===-2&&(ce=!1,Y.dynamicChildren=null);const{type:ie,ref:$e,shapeFlag:se}=Y;switch(ie){case ao:k(H,Y,W,_e);break;case Ss:x(H,Y,W,_e);break;case Bc:H==null&&C(Y,W,_e,q);break;case j:N(H,Y,W,_e,ae,M,q,re,ce);break;default:se&1?S(H,Y,W,_e,ae,M,q,re,ce):se&6?z(H,Y,W,_e,ae,M,q,re,ce):(se&64||se&128)&&ie.process(H,Y,W,_e,ae,M,q,re,ce,ze)}$e!=null&&ae?tl($e,H&&H.ref,M,Y||H,!Y):$e==null&&H&&H.ref!=null&&tl(H.ref,null,M,H,!0)},k=(H,Y,W,_e)=>{if(H==null)n(Y.el=l(Y.children),W,_e);else{const ae=Y.el=H.el;Y.children!==H.children&&d(ae,Y.children)}},x=(H,Y,W,_e)=>{H==null?n(Y.el=u(Y.children||""),W,_e):Y.el=H.el},C=(H,Y,W,_e)=>{[H.el,H.anchor]=_(H.children,Y,W,_e,H.el,H.anchor)},w=({el:H,anchor:Y},W,_e)=>{let ae;for(;H&&H!==Y;)ae=g(H),n(H,W,_e),H=ae;n(Y,W,_e)},$=({el:H,anchor:Y})=>{let W;for(;H&&H!==Y;)W=g(H),r(H),H=W;r(Y)},S=(H,Y,W,_e,ae,M,q,re,ce)=>{if(Y.type==="svg"?q="svg":Y.type==="math"&&(q="mathml"),H==null)I(Y,W,_e,ae,M,q,re,ce);else{const ie=H.el&&H.el._isVueCE?H.el:null;try{ie&&ie._beginPatch(),D(H,Y,ae,M,q,re,ce)}finally{ie&&ie._endPatch()}}},I=(H,Y,W,_e,ae,M,q,re)=>{let ce,ie;const{props:$e,shapeFlag:se,transition:xe,dirs:Ve}=H;if(ce=H.el=o(H.type,M,$e&&$e.is,$e),se&8?f(ce,H.children):se&16&&L(H.children,ce,null,_e,ae,Pf(H,M),q,re),Ve&&Mr(H,null,_e,"created"),P(ce,H,H.scopeId,q,_e),$e){for(const Je in $e)Je!=="value"&&!Wo(Je)&&i(ce,Je,null,$e[Je],M,_e);"value"in $e&&i(ce,"value",null,$e.value,M),(ie=$e.onVnodeBeforeMount)&&yn(ie,_e,H)}Ve&&Mr(H,null,_e,"beforeMount");const Ze=e6(ae,xe);Ze&&xe.beforeEnter(ce),n(ce,Y,W),((ie=$e&&$e.onVnodeMounted)||Ze||Ve)&&$s(()=>{ie&&yn(ie,_e,H),Ze&&xe.enter(ce),Ve&&Mr(H,null,_e,"mounted")},ae)},P=(H,Y,W,_e,ae)=>{if(W&&m(H,W),_e)for(let M=0;M<_e.length;M++)m(H,_e[M]);if(ae){let M=ae.subTree;if(Y===M||s1(M.type)&&(M.ssContent===Y||M.ssFallback===Y)){const q=ae.vnode;P(H,q,q.scopeId,q.slotScopeIds,ae.parent)}}},L=(H,Y,W,_e,ae,M,q,re,ce=0)=>{for(let ie=ce;ie<H.length;ie++){const $e=H[ie]=re?hi(H[ie]):In(H[ie]);v(null,$e,Y,W,_e,ae,M,q,re)}},D=(H,Y,W,_e,ae,M,q)=>{const re=Y.el=H.el;let{patchFlag:ce,dynamicChildren:ie,dirs:$e}=Y;ce|=H.patchFlag&16;const se=H.props||rs,xe=Y.props||rs;let Ve;if(W&&To(W,!1),(Ve=xe.onVnodeBeforeUpdate)&&yn(Ve,W,Y,H),$e&&Mr(Y,H,W,"beforeUpdate"),W&&To(W,!0),(se.innerHTML&&xe.innerHTML==null||se.textContent&&xe.textContent==null)&&f(re,""),ie?R(H.dynamicChildren,ie,re,W,_e,Pf(Y,ae),M):q||V(H,Y,re,null,W,_e,Pf(Y,ae),M,!1),ce>0){if(ce&16)F(re,se,xe,W,ae);else if(ce&2&&se.class!==xe.class&&i(re,"class",null,xe.class,ae),ce&4&&i(re,"style",se.style,xe.style,ae),ce&8){const Ze=Y.dynamicProps;for(let Je=0;Je<Ze.length;Je++){const dt=Ze[Je],ft=se[dt],It=xe[dt];(It!==ft||dt==="value")&&i(re,dt,ft,It,ae,W)}}ce&1&&H.children!==Y.children&&f(re,Y.children)}else!q&&ie==null&&F(re,se,xe,W,ae);((Ve=xe.onVnodeUpdated)||$e)&&$s(()=>{Ve&&yn(Ve,W,Y,H),$e&&Mr(Y,H,W,"updated")},_e)},R=(H,Y,W,_e,ae,M,q)=>{for(let re=0;re<Y.length;re++){const ce=H[re],ie=Y[re],$e=ce.el&&(ce.type===j||!fr(ce,ie)||ce.shapeFlag&198)?h(ce.el):W;v(ce,ie,$e,null,_e,ae,M,q,!0)}},F=(H,Y,W,_e,ae)=>{if(Y!==W){if(Y!==rs)for(const M in Y)!Wo(M)&&!(M in W)&&i(H,M,Y[M],null,ae,_e);for(const M in W){if(Wo(M))continue;const q=W[M],re=Y[M];q!==re&&M!=="value"&&i(H,M,re,q,ae,_e)}"value"in W&&i(H,"value",Y.value,W.value,ae)}},N=(H,Y,W,_e,ae,M,q,re,ce)=>{const ie=Y.el=H?H.el:l(""),$e=Y.anchor=H?H.anchor:l("");let{patchFlag:se,dynamicChildren:xe,slotScopeIds:Ve}=Y;Ve&&(re=re?re.concat(Ve):Ve),H==null?(n(ie,W,_e),n($e,W,_e),L(Y.children||[],W,$e,ae,M,q,re,ce)):se>0&&se&64&&xe&&H.dynamicChildren&&H.dynamicChildren.length===xe.length?(R(H.dynamicChildren,xe,W,ae,M,q,re),(Y.key!=null||ae&&Y===ae.subTree)&&Mm(H,Y,!0)):V(H,Y,W,$e,ae,M,q,re,ce)},z=(H,Y,W,_e,ae,M,q,re,ce)=>{Y.slotScopeIds=re,H==null?Y.shapeFlag&512?ae.ctx.activate(Y,W,_e,q,ce):me(Y,W,_e,ae,M,q,ce):ge(H,Y,ce)},me=(H,Y,W,_e,ae,M,q)=>{const re=H.component=cS(H,_e,ae);if(xu(H)&&(re.ctx.renderer=ze),uS(re,!1,q),re.asyncDep){if(ae&&ae.registerDep(re,fe,q),!H.el){const ce=re.subTree=T(Ss);x(null,ce,Y,W),H.placeholder=ce.el}}else fe(re,H,Y,W,ae,M,q)},ge=(H,Y,W)=>{const _e=Y.component=H.component;if(U$(H,Y,W))if(_e.asyncDep&&!_e.asyncResolved){te(_e,Y,W);return}
vendor: 2,645 bytes, line 4
4else _e.next=Y,_e.update();else Y.el=H.el,_e.vnode=Y},fe=(H,Y,W,_e,ae,M,q)=>{const re=()=>{if(H.isMounted){let{next:se,bu:xe,u:Ve,parent:Ze,vnode:Je}=H;{const ss=t6(H);if(ss){se&&(se.el=Je.el,te(H,se,q)),ss.asyncDep.then(()=>{$s(()=>{H.isUnmounted||ie()},ae)});return}}let dt=se,ft;To(H,!1),se?(se.el=Je.el,te(H,se,q)):se=Je,xe&&Za(xe),(ft=se.props&&se.props.onVnodeBeforeUpdate)&&yn(ft,Ze,se,Je),To(H,!0);const It=Tf(H),Wt=H.subTree;H.subTree=It,v(Wt,It,h(Wt.el),de(Wt),H,ae,M),se.el=It.el,dt===null&&e0(H,It.el),Ve&&$s(Ve,ae),(ft=se.props&&se.props.onVnodeUpdated)&&$s(()=>yn(ft,Ze,se,Je),ae)}else{let se;const{el:xe,props:Ve}=Y,{bm:Ze,m:Je,parent:dt,root:ft,type:It}=H,Wt=ki(Y);if(To(H,!1),Ze&&Za(Ze),!Wt&&(se=Ve&&Ve.onVnodeBeforeMount)&&yn(se,dt,Y),To(H,!0),xe&&ut){const ss=()=>{H.subTree=Tf(H),ut(xe,H.subTree,H,ae,null)};Wt&&It.__asyncHydrate?It.__asyncHydrate(xe,H,ss):ss()}else{ft.ce&&ft.ce._hasShadowRoot()&&ft.ce._injectChildStyle(It,H.parent?H.parent.type:void 0);const ss=H.subTree=Tf(H);v(null,ss,W,_e,H,ae,M),Y.el=ss.el}if(Je&&$s(Je,ae),!Wt&&(se=Ve&&Ve.onVnodeMounted)){const ss=Y;$s(()=>yn(se,dt,ss),ae)}(Y.shapeFlag&256||dt&&ki(dt.vnode)&&dt.vnode.shapeFlag&256)&&H.a&&$s(H.a,ae),H.isMounted=!0,Y=W=_e=null}};H.scope.on();const ce=H.effect=new t5(re);H.scope.off();const ie=H.update=ce.run.bind(ce),$e=H.job=ce.runIfDirty.bind(ce);$e.i=H,$e.id=H.uid,ce.scheduler=()=>Sm($e),To(H,!0),ie()},te=(H,Y,W)=>{Y.component=H;const _e=H.vnode.props;H.vnode=Y,H.next=null,W$(H,Y.props,_e,W),Q$(H,Y.children,W),Ii(),zg(H),Ti()},V=(H,Y,W,_e,ae,M,q,re,ce=!1)=>{const ie=H&&H.children,$e=H?H.shapeFlag:0,se=Y.children,{patchFlag:xe,shapeFlag:Ve}=Y;if(xe>0){if(xe&128){ye(ie,se,W,_e,ae,M,q,re,ce);return}else if(xe&256){pe(ie,se,W,_e,ae,M,q,re,ce);return}}Ve&8?($e&16&&He(ie,ae,M),se!==ie&&f(W,se)):$e&16?Ve&16?ye(ie,se,W,_e,ae,M,q,re,ce):He(ie,ae,M,!0):($e&8&&f(W,""),Ve&16&&L(se,W,_e,ae,M,q,re,ce))},pe=(H,Y,W,_e,ae,M,q,re,ce)=>{H=H||Qa,Y=Y||Qa;const ie=H.length,$e=Y.length,se=Math.min(ie,$e);let xe;for(xe=0;xe<se;xe++){const Ve=Y[xe]=ce?hi(Y[xe]):In(Y[xe]);v(H[xe],Ve,W,null,ae,M,q,re,ce)}ie>$e?He(H,ae,M,!0,!1,se):L(Y,W,_e,ae,M,q,re,ce,se)},ye=(H,Y,W,_e,ae,M,q,re,ce)=>{let ie=0;const $e=Y.length;let se=H.length-1,xe=$e-1;for(;ie<=se&&ie<=xe;){const Ve=H[ie],Ze=Y[ie]=ce?hi(Y[ie]):In(Y[ie]);if(fr(Ve,Ze))v(Ve,Ze,W,null,ae,M,q,re,ce);else break;ie++}for(;ie<=se&&ie<=xe;){const Ve=H[se],Ze=Y[xe]=ce?hi(Y[xe]):In(Y[xe]);if(fr(Ve,Ze))v(Ve,Ze,W,null,ae,M,q,re,ce);else break;se--,xe--}if(ie>se){if(ie<=xe){const Ve=xe+1,Ze=Ve<$e?Y[Ve].el:_e;for(;ie<=xe;)v(null,Y[ie]=ce?hi(Y[ie]):In(Y[ie]),W,Ze,ae,M,q,re,ce),ie++}}else if(ie>xe)for(;ie<=se;
vendor: 10,060 bytes, line 4
4)ve(H[ie],ae,M,!0),ie++;else{const Ve=ie,Ze=ie,Je=new Map;for(ie=Ze;ie<=xe;ie++){const Gt=Y[ie]=ce?hi(Y[ie]):In(Y[ie]);Gt.key!=null&&Je.set(Gt.key,ie)}let dt,ft=0;const It=xe-Ze+1;let Wt=!1,ss=0;const Ps=new Array(It);for(ie=0;ie<It;ie++)Ps[ie]=0;for(ie=Ve;ie<=se;ie++){const Gt=H[ie];if(ft>=It){ve(Gt,ae,M,!0);continue}let Le;if(Gt.key!=null)Le=Je.get(Gt.key);else for(dt=Ze;dt<=xe;dt++)if(Ps[dt-Ze]===0&&fr(Gt,Y[dt])){Le=dt;break}Le===void 0?ve(Gt,ae,M,!0):(Ps[Le-Ze]=ie+1,Le>=ss?ss=Le:Wt=!0,v(Gt,Y[Le],W,null,ae,M,q,re,ce),ft++)}const Ms=Wt?J$(Ps):Qa;for(dt=Ms.length-1,ie=It-1;ie>=0;ie--){const Gt=Ze+ie,Le=Y[Gt],ee=Y[Gt+1],Pe=Gt+1<$e?ee.el||s6(ee):_e;Ps[ie]===0?v(null,Le,W,Pe,ae,M,q,re,ce):Wt&&(dt<0||ie!==Ms[dt]?ne(Le,W,Pe,2):dt--)}}},ne=(H,Y,W,_e,ae=null)=>{const{el:M,type:q,transition:re,children:ce,shapeFlag:ie}=H;if(ie&6){ne(H.component.subTree,Y,W,_e);return}if(ie&128){H.suspense.move(Y,W,_e);return}if(ie&64){q.move(H,Y,W,ze);return}if(q===j){n(M,Y,W);for(let se=0;se<ce.length;se++)ne(ce[se],Y,W,_e);n(H.anchor,Y,W);return}if(q===Bc){w(H,Y,W);return}if(_e!==2&&ie&1&&re)if(_e===0)re.persisted&&!M[jn]?n(M,Y,W):(re.beforeEnter(M),n(M,Y,W),$s(()=>re.enter(M),ae));else{const{leave:se,delayLeave:xe,afterLeave:Ve}=re,Ze=()=>{H.ctx.isUnmounted?r(M):n(M,Y,W)},Je=()=>{const dt=M._isLeaving||!!M[jn];M._isLeaving&&M[jn](!0),re.persisted&&!dt?Ze():se(M,()=>{Ze(),Ve&&Ve()})};xe?xe(M,Ze,Je):Je()}else n(M,Y,W)},ve=(H,Y,W,_e=!1,ae=!1)=>{const{type:M,props:q,ref:re,children:ce,dynamicChildren:ie,shapeFlag:$e,patchFlag:se,dirs:xe,cacheIndex:Ve,memo:Ze}=H;if(se===-2&&(ae=!1),re!=null&&(Ii(),tl(re,null,W,H,!0),Ti()),Ve!=null&&(Y.renderCache[Ve]=void 0),$e&256){Y.ctx.deactivate(H);return}const Je=$e&1&&xe,dt=!ki(H);let ft;if(dt&&(ft=q&&q.onVnodeBeforeUnmount)&&yn(ft,Y,H),$e&6)Ee(H.component,W,_e);else{if($e&128){H.suspense.unmount(W,_e);return}Je&&Mr(H,null,Y,"beforeUnmount"),$e&64?H.type.remove(H,Y,W,ze,_e):ie&&!ie.hasOnce&&(M!==j||se>0&&se&64)?He(ie,Y,W,!1,!0):(M===j&&se&384||!ae&&$e&16)&&He(ce,Y,W),_e&&J(H)}const It=Ze!=null&&Ve==null;(dt&&(ft=q&&q.onVnodeUnmounted)||Je||It)&&$s(()=>{ft&&yn(ft,Y,H),Je&&Mr(H,null,Y,"unmounted"),It&&(H.el=null)},W)},J=H=>{const{type:Y,el:W,anchor:_e,transition:ae}=H;if(Y===j){he(W,_e);return}if(Y===Bc){$(H);return}const M=()=>{r(W),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(H.shapeFlag&1&&ae&&!ae.persisted){const{leave:q,delayLeave:re}=ae,ce=()=>q(W,M);re?re(H.el,M,ce):ce()}else M()},he=(H,Y)=>{let W;for(;H!==Y;)W=g(H),r(H),H=W;r(Y)},Ee=(H,Y,W)=>{const{bum:_e,scope:ae,job:M,subTree:q,um:re,m:ce,a:ie}=H;t1(ce),t1(ie),_e&&Za(_e),ae.stop(),M&&(M.flags|=8,ve(q,H,Y,W)),re&&$s(re,Y),$s(()=>{H.isUnmounted=!0},Y)},He=(H,Y,W,_e=!1,ae=!1,M=0)=>{for(let q=M;q<H.length;q++)ve(H[q],Y,W,_e,ae)},de=H=>{if(H.shapeFlag&6)return de(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Y=g(H.anchor||H.el),W=Y&&Y[S5];return W?g(W):Y};let Me=!1;const De=(H,Y,W)=>{let _e;H==null?Y._vnode&&(ve(Y._vnode,null,null,!0),_e=Y._vnode.component):v(Y._vnode||null,H,Y,null,null,null,W),Y._vnode=H,Me||(Me=!0,zg(_e),Xd(),Me=!1)},ze={p:v,um:ve,m:ne,r:J,mt:me,mc:L,pc:V,pbc:R,n:de,o:e};let Ue,ut;return t&&([Ue,ut]=t(ze)),{render:De,hydrate:Ue,createApp:F$(De,Ue)}}function Pf({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function To({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function e6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Mm(e,t,s=!1){const n=e.children,r=t.children;if(ht(n)&&ht(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=hi(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Mm(o,l)),l.type===ao&&(l.patchFlag===-1&&(l=r[i]=hi(l)),l.el=o.el),l.type===Ss&&!l.el&&(l.el=o.el)}}function J$(e){const t=e.slice(),s=[0];let n,r,i,o,l;const u=e.length;for(n=0;n<u;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<d?i=l+1:o=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function t6(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:t6(t)}function t1(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function s6(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?s6(t.subTree):null}const s1=e=>e.__isSuspense;let zp=0;const eS={name:"Suspense",__isSuspense:!0,process(e,t,s,n,r,i,o,l,u,d){if(e==null)tS(t,s,n,r,i,o,l,u,d);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}sS(e,t,s,n,r,o,l,u,d)}},hydrate:nS,normalize:rS},n6=eS;function Zc(e,t){const s=e.props&&e.props[t];bt(s)&&s()}function tS(e,t,s,n,r,i,o,l,u){const{p:d,o:{createElement:f}}=u,h=f("div"),g=e.suspense=r6(e,r,n,t,h,s,i,o,l,u);d(null,g.pendingBranch=e.ssContent,h,null,n,g,i,o),g.deps>0?(Zc(e,"onPending"),Zc(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,i,o),sl(g,e.ssFallback)):g.resolve(!1,!0)}function sS(e,t,s,n,r,i,o,l,{p:u,um:d,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,m=t.ssFallback,{activeBranch:_,pendingBranch:v,isInFallback:k,isHydrating:x}=h;if(v)h.pendingBranch=g,fr(v,g)?(u(v,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():k&&(x||(u(_,m,s,n,r,null,i,o,l),sl(h,m)))):(h.pendingId=zp++,x?(h.isHydrating=!1,h.activeBranch=v):d(v,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),k?(u(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0?h.resolve():(u(_,m,s,n,r,null,i,o,l),sl(h,m))):_&&fr(_,g)?(u(_,g,s,n,r,h,i,o,l),h.resolve(!0)):(u(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0&&h.resolve()));else if(_&&fr(_,g))u(_,g,s,n,r,h,i,o,l),sl(h,g);else if(Zc(t,"onPending"),h.pendingBranch=g,g.shapeFlag&512?h.pendingId=g.component.suspenseId:h.pendingId=zp++,u(null,g,h.hiddenContainer,null,r,h,i,o,l),h.deps<=0)h.resolve();else{const{timeout:C,pendingId:w}=h;C>0?setTimeout(()=>{h.pendingId===w&&h.fallback(m)},C):C===0&&h.fallback(m)}}function r6(e,t,s,n,r,i,o,l,u,d,f=!1){const{p:h,m:g,um:m,n:_,o:{parentNode:v,remove:k}}=d;let x;const C=iS(e);C&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const w=e.props?Kb(e.props.timeout):void 0,$=i,S={vnode:e,parent:t,parentComponent:s,namespace:o,container:n,hiddenContainer:r,deps:0,pendingId:zp++,timeout:typeof w=="number"?w:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(I=!1,P=!1){const{vnode:L,activeBranch:D,pendingBranch:R,pendingId:F,effects:N,parentComponent:z,container:me,isInFallback:ge}=S;let fe=!1;if(S.isHydrating)S.isHydrating=!1;else if(!I){fe=D&&R.transition&&R.transition.mode==="out-in";let pe=!1;fe&&(D.transition.afterLeave=()=>{F===S.pendingId&&(g(R,me,i===$&&!pe?_(D):i,0),Kc(N),ge&&L.ssFallback&&(L.ssFallback.el=null))}),D&&!S.isFallbackMountPending&&(v(D.el)===me&&(i=_(D),pe=!0),m(D,z,S,!0),!fe&&ge&&L.ssFallback&&$s(()=>L.ssFallback.el=null,S)),fe||g(R,me,i,0)}S.isFallbackMountPending=!1,sl(S,R),S.pendingBranch=null,S.isInFallback=!1;let te=S.parent,V=!1;for(;te;){if(te.pendingBranch){te.effects.push(...N),V=!0;break}te=te.parent}!V&&!fe&&Kc(N),S.effects=[],C&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Zc(L,"onResolve")},fallback(I){if(!S.pendingBranch)return;const{vnode:P,activeBranch:L,parentComponent:D,container:R,namespace:F}=S;Zc(P,"onFallback");const N=_(L),z=()=>{S.isFallbackMountPending=!1,S.isInFallback&&(h(null,I,R,N,D,null,F,l,u),sl(S,I))},me=I.transition&&I.transition.mode==="out-in";me&&(S.isFallbackMountPending=!0,L.transition.afterLeave=z),S.isInFallback=!0,m(L,D,null,!0),me||z()},move(I,P,L){S.activeBranch&&g(S.activeBranch,I,P,L),S.container=I},next(){return S.activeBranch&&_(S.activeBranch)},registerDep(I,P,L){const D=!!S.pendingBranch;D&&S.deps++;const R=I.vnode.el;I.asyncDep.catch(F=>{Tl(F,I,0)}).then(F=>{if(I.isUnmounted||S.isUnmounted||S.pendingId!==I.suspenseId)return;Gp(),I.asyncResolved=!0;const{vnode:N}=I;Yp(I,F),R&&(N.el=R);const z=!R&&I.subTree.el;P(I,N,v(R||I.subTree.el),R?null:_(I.subTree),S,o,L),z&&(N.placeholder=null,k(z)),e0(I,N.el),D&&--S.deps===0&&S.resolve()})},unmount(I,P){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,s,I,P),S.pendingBranch&&m(S.pendingBranch,s,I,P)}};return S}function nS(e,t,s,n,r,i,o,l,u){const d=t.suspense=r6(t,n,s,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),f=u(e,d.pendingBranch=t.ssContent,s,d,i,o);return d.deps===0&&d.resolve(!1,!0),f}function rS(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=oy(n?s.default:s),e.ssFallback=n?oy(s.fallback):T(Ss)}function oy(e){let t;if(bt(e)){const s=ul&&e._c;s&&(e._d=!1,p()),e=e(),s&&(e._d=!0,t=_n,o6())}return ht(e)&&(e=H$(e)),e=In(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function i6(e,t){t&&t.pendingBranch?ht(e)?t.effects.push(...e):t.effects.push(e):Kc(e)}function sl(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;s.el=r,n&&n.subTree===s&&(n.vnode.el=r,e0(n,r))}function iS(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const j=Symbol.for("v-fgt"),ao=Symbol.for("v-txt"),Ss=Symbol.for("v-cmt"),Bc=Symbol.for("v-stc"),Vc=[];let _n=null;function p(e=!1){Vc.push(_n=e?null:[])}function o6(){Vc.pop(),_n=Vc[Vc.length-1]||null}let ul=1;function n1(e,t=!1){ul+=e,e<0&&_n&&t&&(_n.hasOnce=!0)}function a6(e){return e.dynamicChildren=ul>0?_n||Qa:null,o6(),ul>0&&_n&&_n.push(e),e}function y(e,t,s,n,r,i){return a6(c(e,t,s,n,r,i,!0))}function K(e,t,s,n,r){return a6(T(e,t,s,n,r,!0))}function Jo(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}const l6=({key:e})=>e??null,Rd=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?as(e)||it(e)||bt(e)?{i:js,r:e,k:t,f:!!s}:e:null);function c(e,t=null,s=null,n=0,r=null,i=e===j?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,t
vendor: 4,696 bytes, line 4
4ype:e,props:t,key:t&&l6(t),ref:t&&Rd(t),scopeId:C5,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:js};return l?(Om(u,s),i&128&&e.normalize(u)):s&&(u.shapeFlag|=as(s)?8:16),ul>0&&!o&&_n&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&_n.push(u),u}const T=oS;function oS(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===F5)&&(e=Ss),Jo(e)){const l=Kr(e,t,!0);return s&&Om(l,s),ul>0&&!i&&_n&&(l.shapeFlag&6?_n[_n.indexOf(e)]=l:_n.push(l)),l.patchFlag=-2,l}if(pS(e)&&(e=e.__vccOpts),t){t=Jc(t);let{class:l,style:u}=t;l&&!as(l)&&(t.class=oe(l)),zt(u)&&(X1(u)&&!ht(u)&&(u=Es({},u)),t.style=kt(u))}const o=as(e)?1:s1(e)?128:A5(e)?64:zt(e)?4:bt(e)?2:0;return c(e,t,s,n,r,o,i,!0)}function Jc(e){return e?X1(e)||G5(e)?Es({},e):e:null}function Kr(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:u}=e,d=t?ca(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&l6(d),ref:t&&t.ref?s&&i?ht(i)?i.concat(Rd(t)):[i,Rd(t)]:Rd(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==j?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kr(e.ssContent),ssFallback:e.ssFallback&&Kr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&cl(f,u.clone(f)),f}function Qe(e=" ",t=0){return T(ao,null,e,t)}function ls(e,t){const s=T(Bc,null,e);return s.staticCount=t,s}function E(e="",t=!1){return t?(p(),K(Ss,null,e)):T(Ss,null,e)}function In(e){return e==null||typeof e=="boolean"?T(Ss):ht(e)?T(j,null,e.slice()):Jo(e)?hi(e):T(ao,null,String(e))}function hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kr(e)}function Om(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ht(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Om(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!G5(t)?t._ctx=js:r===3&&js&&(js.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:js},s=32):(t=String(t),n&64?(s=16,t=[Qe(t)]):s=8);e.children=t,e.shapeFlag|=s}function ca(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=oe([t.class,n.class]));else if(r==="style")t.style=kt([t.style,n.style]);else if(gu(r)){const i=t[r],o=n[r];o&&i!==o&&!(ht(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!H1(r)&&(t[r]=o)}else r!==""&&(t[r]=n[r])}return t}function yn(e,t,s,n=null){Zn(e,t,7,[s,n])}const aS=q5();let lS=0;function cS(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||aS,i={uid:lS++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new e5(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:K5(n,r),emitsOptions:j5(n,r),emit:null,emitted:null,propsDefaults:rs,inheritAttrs:n.inheritAttrs,ctx:rs,data:rs,props:rs,attrs:rs,slots:rs,refs:rs,setupState:rs,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=B$.bind(null,i),e.ce&&e.ce(i),i}let qs=null;const vr=()=>qs||js;let r1,Wp;{const e=W1(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};r1=t("__VUE_INSTANCE_SETTERS__",s=>qs=s),Wp=t("__VUE_SSR_SETTERS__",s=>dl=s)}const ku=e=>{const t=qs;return r1(e),e.scope.on(),()=>{e.scope.off(),r1(t)}},Gp=()=>{qs&&qs.scope.off(),r1(null)};function c6(e){return e.vnode.shapeFlag&4}let dl=!1;function uS(e,t=!1,s=!1){t&&Wp(t);const{props:n,children:r}=e.vnode,i=c6(e);z$(e,n,i,t),K$(e,r,s||t);const o=i?dS(e,t):void 0;return t&&Wp(!1),o}function dS(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,T$);const{setup:n}=s;if(n){Ii();const r=e.setupContext=n.length>1?d6(e):null,i=ku(e),o=vu(n,e,0,[e.props,r]),l=Wb(o);if(Ti(),i(),(l||e.sp)&&!ki(e)&&Im(e),l){if(o.then(Gp,Gp),t)return o.then(u=>{Yp(e,u)}).catch(u=>{Tl(u,e,0)});e.asyncDep=o}else Yp(e,o)}else u6(e)}
vendor: 1,725 bytes, line 4
4function Yp(e,t,s){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:zt(t)&&(e.setupState=_5(t)),u6(e)}function u6(e,t,s){const n=e.type;e.render||(e.render=n.render||qr);{const r=ku(e);Ii();try{D$(e)}finally{Ti(),r()}}}const fS={get(e,t){return Qs(e,"get",""),e[t]}};function d6(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,fS),slots:e.slots,emit:e.emit,expose:t}}function t0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_5(vo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Nc)return Nc[s](e)},has(t,s){return s in t||s in Nc}})):e.proxy}function Kp(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function pS(e){return bt(e)&&"__vccOpts"in e}const A=(e,t)=>JC(e,t,dl);function ot(e,t,s){try{n1(-1);const n=arguments.length;return n===2?zt(t)&&!ht(t)?Jo(t)?T(e,null,[t]):T(e,t):T(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Jo(s)&&(s=[s]),T(e,t,s))}finally{n1(1)}}const hS="3.5.38";let Qp;const ay=typeof window<"u"&&window.trustedTypes;if(ay)try{Qp=ay.createPolicy("vue",{createHTML:e=>e})}catch{}const f6=Qp?e=>Qp.createHTML(e):e=>e,mS="http://www.w3.org/2000/svg",gS="http://www.w3.org/1998/Math/MathML",pi=typeof document<"u"?document:null,ly=pi&&pi.createElement("template"),yS={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?pi.createElementNS(mS,e):t==="mathml"?pi.createElementNS(gS,e):s?pi.createElement(e,{is:s}):pi.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>pi.createTextNode(e),createComment:e=>pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,224 bytes, line 4
4{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{ly.innerHTML=f6(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=ly.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},ji="transition",ac="animation",eu=Symbol("_vtc"),p6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_S=Es({},I5,p6),vS=e=>(e.displayName="Transition",e.props=_S,e),Un=vS((e,{slots:t})=>ot(p$,bS(e),t)),Po=(e,t=[])=>{ht(e)?e.forEach(s=>s(...t)):e&&e(...t)},cy=e=>e?ht(e)?e.some(t=>t.length>1):e.length>1:!1;function bS(e){const t={};for(const N in e)N in p6||(t[N]=e[N]);if(e.css===!1)return t;const{name:s="v",type:n,duration:r,enterFromClass:i=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:l=`${s}-enter-to`,appearFromClass:u=i,appearActiveClass:d=o,appearToClass:f=l,leaveFromClass:h=`${s}-leave-from`,leaveActiveClass:g=`${s}-leave-active`,leaveToClass:m=`${s}-leave-to`}=e,_=xS(r),v=_&&_[0],k=_&&_[1],{onBeforeEnter:x,onEnter:C,onEnterCancelled:w,onLeave:$,onLeaveCancelled:S,onBeforeAppear:I=x,onAppear:P=C,onAppearCancelled:L=w}=t,D=(N,z,me,ge)=>{N._enterCancelled=ge,Do(N,z?f:l),Do(N,z?d:o),me&&me()},R=(N,z)=>{N._isLeaving=!1,Do(N,h),Do(N,m),Do(N,g),z&&z()},F=N=>(z,me)=>{const ge=N?P:C,fe=()=>D(z,N,me);Po(ge,[z,fe]),uy(()=>{Do(z,N?u:i),ci(z,N?f:l),cy(ge)||dy(z,n,v,fe)})};return Es(t,{onBeforeEnter(N){Po(x,[N]),ci(N,i),ci(N,o)},onBeforeAppear(N){Po(I,[N]),ci(N,u),ci(N,d)},onEnter:F(!1),onAppear:F(!0),onLeave(N,z){N._isLeaving=!0;const me=()=>R(N,z);ci(N,h),N._enterCancelled?(ci(N,g),hy(N)):(hy(N),ci(N,g)),uy(()=>{N._isLeaving&&(Do(N,h),ci(N,m),cy($)||dy(N,n,k,me))}),Po($,[N,me])},onEnterCancelled(N){D(N,!1,void 0,!0),Po(w,[N])},onAppearCancelled(N){D(N,!0,void 0,!0),Po(L,[N])},onLeaveCancelled(N){R(N),Po(S,[N])}})}function xS(e){if(e==null)return null;if(zt(e))return[Df(e.enter),Df(e.leave)];{const t=Df(e);return[t,t]}}function Df(e){return Kb(e)}function ci(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[eu]||(e[eu]=new Set)).add(t)}function Do(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[eu];s&&(s.delete(t),s.size||(e[eu]=void 0))}function uy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kS=0;function dy(e,t,s,n){const r=e._endId=++kS,i=()=>{r===e._endId&&n()};if(s!=null)return setTimeout(i,s);const{type:o,timeout:l,propCount:u}=wS(e,t);if(!o)return n();const d=o+"end";let f=0;const h=()=>{e.removeEventListener(d,g),i()},g=m=>{m.target===e&&++f>=u&&h()};setTimeout(()=>{f<u&&h()},l+1),e.addEventListener(d,g)}function wS(e,t){const s=window.getComputedStyle(e),n=_=>(s[_]||"").split(", "),r=n(`${ji}Delay`),i=n(`${ji}Duration`),o=fy(r,i),l=n(`${ac}Delay`),u=n(`${ac}Duration`),d=fy(l,u);let f=null,h=0,g=0;t===ji?o>0&&(f=ji,h=o,g=i.length):t===ac?d>0&&(f=ac,h=d,g=u.length):(h=Math.max(o,d),f=h>0?o>d?ji:ac:null,g=f?f===ji?i.length:u.length:0);const m=f===ji&&/\b(?:transform|all)(?:,|$)/.test(n(`${ji}Property`).toString());return{type:f,timeout:h,propCount:g,hasTransform:m}}function fy(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>py(s)+py(e[n])))}function py(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hy(e){return(e?e.ownerDocument:document).body.offsetHeight}function CS(e,t,s){const n=e[eu];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const i1=Symbol("_vod"),h6=Symbol("_vsh"),$S={name:"show",beforeMount(e,{value:t},{transition:s}){e[i1]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):lc(e,t)}
vendor: 5,581 bytes, line 4
4,mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),lc(e,!0),n.enter(e)):n.leave(e,()=>{lc(e,!1)}):lc(e,t))},beforeUnmount(e,{value:t}){lc(e,t)}};function lc(e,t){e.style.display=t?e[i1]:"none",e[h6]=!t}const SS=Symbol(""),AS=/(?:^|;)\s*display\s*:/;function IS(e,t,s){const n=e.style,r=as(s);let i=!1;if(s&&!r){if(t)if(as(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Pc(n,l,"")}else for(const o in t)s[o]==null&&Pc(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?PS(e,o,!as(t)&&t?t[o]:void 0,l)||Pc(n,o,l):Pc(n,o,"")}}else if(r){if(t!==s){const o=n[SS];o&&(s+=";"+o),n.cssText=s,i=AS.test(s)}}else t&&e.removeAttribute("style");i1 in e&&(e[i1]=i?n.display:"",e[h6]&&(n.display="none"))}const my=/\s*!important$/;function Pc(e,t,s){if(ht(s))s.forEach(n=>Pc(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=TS(e,t);my.test(s)?e.setProperty(yo(n),s.replace(my,""),"important"):e[n]=s}}const gy=["Webkit","Moz","ms"],Ef={};function TS(e,t){const s=Ef[t];if(s)return s;let n=dn(t);if(n!=="filter"&&n in e)return Ef[t]=n;n=z1(n);for(let r=0;r<gy.length;r++){const i=gy[r]+n;if(i in e)return Ef[t]=i}return t}function PS(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&as(n)&&s===n}const yy="http://www.w3.org/1999/xlink";function _y(e,t,s,n,r,i=SC(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(yy,t.slice(6,t.length)):e.setAttributeNS(yy,t,s):s==null||i&&!Qb(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Dn(s)?String(s):s)}function vy(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?f6(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(l!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Qb(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function qo(e,t,s,n){e.addEventListener(t,s,n)}function DS(e,t,s,n){e.removeEventListener(t,s,n)}const by=Symbol("_vei");function ES(e,t,s,n,r=null){const i=e[by]||(e[by]={}),o=i[t];if(n&&o)o.value=n;else{const[l,u]=LS(t);if(n){const d=i[t]=OS(n,r);qo(e,l,d,u)}else o&&(DS(e,l,o,u),i[t]=void 0)}}const xy=/(?:Once|Passive|Capture)$/;function LS(e){let t;if(xy.test(e)){t={};let n;for(;n=e.match(xy);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yo(e.slice(2)),t]}let Lf=0;const RS=Promise.resolve(),MS=()=>Lf||(RS.then(()=>Lf=0),Lf=Date.now());function OS(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(ht(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let u=0;u<o.length&&!n._stopped;u++){const d=o[u];d&&Zn(d,t,5,l)}}else Zn(r,t,5,[n])};return s.value=e,s.attached=MS(),s}const ky=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,FS=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?CS(e,n,o):t==="style"?IS(e,s,n):gu(t)?H1(t)||ES(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):NS(e,t,n,o))?(vy(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_y(e,t,n,o,i,t!=="value")):e._isVueCE&&(BS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!as(n)))?vy(e,dn(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),_y(e,t,n,o))};function NS(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ky(t)&&bt(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ky(t)&&as(s)?!1:t in e}function BS(e,t){const s=e._def.props;if(!s)return!1;const n=dn(t);return Array.isArray(s)?s.some(r=>dn(r)===n):Object.keys(s).some(r=>dn(r)===n)}const o1=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ht(t)?s=>Za(t,s):t};function VS(e){e.target.composing=!0}function wy(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const nl=Symbol("_assign");function Cy(e,t,s){return t&&(e=e.trim()),s&&(e=km(e)),e}const jr={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[nl]=o1(r);const i=n||r.props&&r.props.type==="number";qo(e,t?"change":"input",o=>{o.target.composing||e[nl](Cy(e.value,s,i))}),(s||i)&&qo(e,"change",()=>{e.value=Cy(e.value,s,i)}),t||(qo(e,"compositionstart",VS),qo(e,"compositionend",wy),qo(e,"change",wy))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[nl]=o1(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?km(e.value):e.value,u=t??"";if(l===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===u)||(e.value=u)}},$y={deep:!0,created(e,t,s){e[nl]=o1(s),qo(e,"change",()=>{const n=e._modelValue,r=HS(e),i=e.checked,o=e[nl];if(ht(n)){const l=Xb(n,r),u=l!==-1;if(i&&!u)o(n.concat(r));else if(!i&&u){const d=[...n];d.splice(l,1),o(d)}}else if(q1(n)){const l=new Set(n);i?l.add(r):l.delete(r),o(l)}else o(m6(e,i))})}
4,mounted:Sy,beforeUpdate(e,t,s){e[nl]=o1(s),Sy(e,t,s)}};function Sy(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(ht(t))r=Xb(t,n.props.value)>-1;else if(q1(t))r=t.has(n.props.value);else{if(t===s)return;r=yu(t,m6(e,!0))}e.checked!==r&&(e.checked=r)}function HS(e){return"_value"in e?e._value:e.value}function m6(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const qS=["ctrl","shift","alt","meta"],jS={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>qS.some(s=>e[`${s}Key`]&&!t.includes(s))},St=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=jS[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},US={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qr=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(r=>{if(!("key"in r))return;const i=yo(r.key);if(t.some(o=>o===i||US[o]===i))return e(r)}))},g6=Es({patchProp:FS},yS);let Hc,Ay=!1;function y6(){return Hc||(Hc=X$(g6))}function zS(){return Hc=Ay?Hc:Z$(g6),Ay=!0,Hc}const WS=((...e)=>{y6().render(...e)}),GS=((...e)=>{const t=y6().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=v6(n);if(!r)return;const i=t._component;!bt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,_6(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t}),YS=((...e)=>{const t=zS().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=v6(n);if(r)return s(r,!0,_6(r))},t});function _6(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function v6(e){return as(e)?document.querySelector(e):e}const KS=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,QS=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,XS=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ZS(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){JS(e);return}return t}function JS(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function eA(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const s=e.trim();if(s.length<=9)switch(s.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!XS.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(KS.test(e)||QS.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ZS)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const b6=/#/g,x6=/&/g,tA=/\//g,sA=/=/g,nA=/\?/g,s0=/\+/g,rA=/%5e/gi,iA=/%60/gi,oA=/%7c/gi,aA=/%20/gi,lA=/%2f/gi,cA=/%252f/gi;function k6(e){return encodeURI(""+e).replace(oA,"|")}function Xp(e){return k6(typeof e=="string"?e:JSON.stringify(e)).replace(s0,"%2B").replace(aA,"+").replace(b6,"%23").replace(x6,"%26").replace(iA,"`").replace(rA,"^").replace(tA,"%2F")}function Rf(e){return Xp(e).replace(sA,"%3D")}function uA(e){return k6(e).replace(b6,"%23").replace(nA,"%3F").replace(cA,"%2F").replace(x6,"%26").replace(s0,"%2B")}function ea(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function dA(e){return ea(e.replace(lA,"%252F"))}function fA(e){return ea(e.replace(s0," "))}function pA(e){return ea(e.replace(s0," "))}function Fm(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const s of e.split("&")){const n=s.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=fA(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=pA(n[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function hA(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(s=>`${Rf(e)}=${Xp(s)}`).join("&"):`${Rf(e)}=${Xp(t)}`:Rf(e)}function mA(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
4hA(t,e[t])).filter(Boolean).join("&")}const gA=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,yA=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_A=/^([/\\]\s*){2,}[^/\\]/,vA=/^[\s\0]*(blob|data|javascript|vbscript):$/i,bA=/\/$|\/\?|\/#/,xA=/^\.?\//;function Mi(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?gA.test(e):yA.test(e)||(t.acceptRelative?_A.test(e):!1)}function Zp(e){return!!e&&vA.test(e)}function Jp(e="",t){return t?bA.test(e):e.endsWith("/")}function tu(e="",t){if(!t)return(Jp(e)?e.slice(0,-1):e)||"/";if(!Jp(e,!0))return e||"/";let s=e,n="";const r=e.indexOf("#");r!==-1&&(s=e.slice(0,r),n=e.slice(r));const[i,...o]=s.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+n}function eh(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Jp(e,!0))return e||"/";let s=e,n="";const r=e.indexOf("#");if(r!==-1&&(s=e.slice(0,r),n=e.slice(r),!s))return n;const[i,...o]=s.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+n}function kA(e=""){return e.startsWith("/")}function Iy(e=""){return kA(e)?e:"/"+e}function wA(e,t){if(w6(t)||Mi(e))return e;const s=tu(t);if(e.startsWith(s)){const n=e[s.length];if(!n||n==="/"||n==="?")return e}return Ko(s,e)}function Ty(e,t){if(w6(t))return e;const s=tu(t);if(!e.startsWith(s))return e;const n=e[s.length];return n&&n!=="/"&&n!=="?"?e:"/"+e.slice(s.length).replace(/^\/+/,"")}function n0(e,t){const s=Nm(e),n={...Fm(s.search),...t};return s.search=mA(n),SA(s)}function w6(e){return!e||e==="/"}function CA(e){return e&&e!=="/"}function Ko(e,...t){let s=e||"";for(const n of t.filter(r=>CA(r)))if(s){const r=n.replace(xA,"");s=eh(s)+r}else s=n;return s}function C6(...e){const t=/\/(?!\/)/,s=e.filter(Boolean),n=[];let r=0;for(const o of s)if(!(!o||o==="/")){for(const[l,u]of o.split(t).entries())if(!(!u||u===".")){if(u===".."){if(n.length===1&&Mi(n[0]))continue;n.pop(),r--;continue}if(l===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+u;continue}n.push(u),r++}}let i=n.join("/");return r>=0?s[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:s[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*r)+i,s[s.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function $6(e,t){return ea(tu(e))===ea(tu(t))}function $A(e,t,s={}){return s.trailingSlash||(e=eh(e),t=eh(t)),s.leadingSlash||(e=Iy(e),t=Iy(t)),s.encoding||(e=ea(e),t=ea(t)),e===t}const S6=Symbol.for("ufo:protocolRelative");function Nm(e="",t){const s=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){const[,h,g=""]=s;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!Mi(e,{acceptRelative:!0}))return th(e);const[,n="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",l=""]=i.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:u,search:d,hash:f}=th(l);return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:o,pathname:u,search:d,hash:f,[S6]:!n}}function th(e=""){const[t="",s="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:s,hash:n}}function SA(e){const t=e.pathname||"",s=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[S6]?(e.protocol||"")+"//":"")+r+i+t+s+n}class AA extends Error{constructor(t,s){super(t,s),this.name="FetchError",s?.cause&&!this.cause&&(this.cause=s.cause)}}function IA(e){const t=e.error?.message||e.error?.toString()||"",s=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",r=`[${s}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${r}: ${i}${t?` ${t}`:""}`,l=new AA(o,e.error?{cause:e.error}:void 0);for(const u of["request","options","response"])Object.defineProperty(l,u,{get(){return e[u]}});for(const[u,d]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,u,{get(){return e.response&&e.response[d]}});return l}const TA=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Py(e="GET"){return TA.has(e.toUpperCase())}function PA(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const DA=new Set(["image/svg","application/xml","application/xhtml","application/html"]),EA=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function LA(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return EA.test(t)?"json":t==="text/event-stream"?"stream":DA.has(t)||t.startsWith("text/")?"text":"blob"}function RA(e,t,s,n){const r=MA(t?.headers??e?.headers,s?.headers,n);let i;return(s?.query||s?.params||t?.params||t?.query)&&(i={...s?.params,...s?.query,...t?.params,...t?.query}),{...s,...t,query:i,params:i,headers:r}}function MA(e,t,s){if(!t)return new s(e);const n=new s(t);if(e)for(const[r,i]of Symbol.iterator in e||Array.isArray(e)?e:new s(e))n.set(r,i);return n}
4async function nd(e,t){if(t)if(Array.isArray(t))for(const s of t)await s(e);else await t(e)}const OA=new Set([408,409,425,429,500,502,503,504]),FA=new Set([101,204,205,304]);function A6(e={}){const{fetch:t=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function r(l){const u=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!u){let f;typeof l.options.retry=="number"?f=l.options.retry:f=Py(l.options.method)?0:1;const h=l.response&&l.response.status||500;if(f>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(h):OA.has(h))){const g=typeof l.options.retryDelay=="function"?l.options.retryDelay(l):l.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(l.request,{...l.options,retry:f-1})}}const d=IA(l);throw Error.captureStackTrace&&Error.captureStackTrace(d,i),d}const i=async function(u,d={}){const f={request:u,options:RA(u,d,e.defaults,s),response:void 0,error:void 0};if(f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&(await nd(f,f.options.onRequest),f.options.headers instanceof s||(f.options.headers=new s(f.options.headers||{}))),typeof f.request=="string"&&(f.options.baseURL&&(f.request=wA(f.request,f.options.baseURL)),f.options.query&&(f.request=n0(f.request,f.options.query),delete f.options.query),"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params),f.options.body&&Py(f.options.method))if(PA(f.options.body)){const m=f.options.headers.get("content-type");typeof f.options.body!="string"&&(f.options.body=m==="application/x-www-form-urlencoded"?new URLSearchParams(f.options.body).toString():JSON.stringify(f.options.body)),m||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")}else("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half"));let h;if(!f.options.signal&&f.options.timeout){const m=new n;h=setTimeout(()=>{const _=new Error("[TimeoutError]: The operation was aborted due to timeout");_.name="TimeoutError",_.code=23,m.abort(_)},f.options.timeout),f.options.signal=m.signal}try{f.response=await t(f.request,f.options)}catch(m){return f.error=m,f.options.onRequestError&&await nd(f,f.options.onRequestError),await r(f)}finally{h&&clearTimeout(h)}if((f.response.body||f.response._bodyInit)&&!FA.has(f.response.status)&&f.options.method!=="HEAD"){const m=(f.options.parseResponse?"json":f.options.responseType)||LA(f.response.headers.get("content-type")||"");switch(m){case"json":{const _=await f.response.text(),v=f.options.parseResponse||eA;f.response._data=v(_);break}case"stream":{f.response._data=f.response.body||f.response._bodyInit;break}default:f.response._data=await f.response[m]()}}return f.options.onResponse&&await nd(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await nd(f,f.options.onResponseError),await r(f)):f.response},o=async function(u,d){return(await i(u,d))._data};return o.raw=i,o.native=(...l)=>t(...l),o.create=(l={},u={})=>A6({...e,...u,defaults:{...e.defaults,...u.defaults,...l}}),o}const a1=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),NA=a1.fetch?(...e)=>a1.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),BA=a1.Headers,VA=a1.AbortController,HA=A6({fetch:NA,Headers:BA,AbortController:VA}),qA=HA,jA=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Bm=()=>jA().app,UA=()=>Bm().baseURL,zA=()=>Bm().buildAssetsDir,Vm=(...e)=>C6(Ls(),zA(),...e),Ls=(...e)=>{const t=Bm(),s=t.cdnURL||t.baseURL;return e.length?C6(s,...e):s};globalThis.__buildAssetsURL=Vm,globalThis.__publicAssetsURL=Ls;globalThis.$fetch||(globalThis.$fetch=qA.create({baseURL:UA()}));"global"in globalThis||(globalThis.global=globalThis);function sh(e,t={},s){for(const n in e){const r=e[n],i=s?`${s}:${n}`:n;typeof r=="object"&&r!==null?sh(r,t,i):typeof r=="function"&&(t[i]=r)}return t}const I6=(()=>
4{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function T6(e,t,s,n){for(let r=s;r<e.length;r+=1)try{const i=n?n.run(()=>e[r](...t)):e[r](...t);if(i&&typeof i.then=="function")return Promise.resolve(i).then(()=>T6(e,t,r+1,n))}catch(i){return Promise.reject(i)}}function WA(e,t,s){if(e.length>0)return T6(e,t,0,I6(s))}function GA(e,t,s){if(e.length>0){const n=I6(s);return Promise.all(e.map(r=>n.run(()=>r(...t))))}}function Mf(e,t){for(const s of[...e])s(t)}var YA=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,s={}){if(!e||typeof t!="function")return()=>{};const n=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${n} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let s,n=(...r)=>(typeof s=="function"&&s(),s=void 0,n=void 0,t(...r));return s=this.hook(e,n),s}removeHook(e,t){const s=this._hooks[e];if(s){const n=s.indexOf(t);n!==-1&&s.splice(n,1),s.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const s=this._hooks[e]||[];this._hooks[e]=void 0;for(const n of s)this.hook(e,n)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=sh(e),s=Object.keys(t).map(n=>this.hook(n,t[n]));return()=>{for(const n of s)n();s.length=0}}removeHooks(e){const t=sh(e);for(const s in t)this.removeHook(s,t[s])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(WA,e,t)}callHookParallel(e,...t){return this.callHookWith(GA,e,t)}callHookWith(e,t,s){const n=this._before||this._after?{name:t,args:s,context:{}}:void 0;this._before&&Mf(this._before,n);const r=e(this._hooks[t]?[...this._hooks[t]]:[],s,t);return r instanceof Promise?r.finally(()=>{this._after&&n&&Mf(this._after,n)}):(this._after&&n&&Mf(this._after,n),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function P6(){return new YA}function KA(e={}){let t,s=!1;const n=o=>{if(t&&t!==o)throw new Error("Context conflict")};let r;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?r=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(r){const o=r.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,l)=>{l||n(o),t=o,s=!0},unset:()=>{t=void 0,s=!1},call:(o,l)=>{n(o),t=o;try{return r?r.run(o,l):l()}finally{s||(t=void 0)}},async callAsync(o,l){t=o;const u=()=>{t=o},d=()=>t===o?u:void 0;nh.add(d);try{const f=r?r.run(o,l):l();return s||(t=void 0),await f}finally{nh.delete(d)}}}}function QA(e={}){const t={};return{get(s,n={}){return t[s]||(t[s]=KA({...e,...n})),t[s]}}}const l1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Dy="__unctx__",XA=l1[Dy]||(l1[Dy]=QA()),ZA=(e,t={})=>XA.get(e,t),Ey="__unctx_async_handlers__",nh=l1[Ey]||(l1[Ey]=new Set);function Xs(e){const t=[];for(const r of nh){const i=r();i&&t.push(i)}const s=()=>{for(const r of t)r()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(r=>{throw s(),r})),[n,s]}const Ly=!1,JA=!1,Ry={id:"__nuxt-loader"},wlt={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},eI={deep:!1},tI={},sI="#__nuxt",D6="nuxt-app",My=36e5,nI="vite:preloadError";function E6(e=D6){return ZA(e,{asyncContext:!1})}const rI="__nuxt_plugin";function iI(e){let t=0;const s={_id:e.id||D6||"nuxt-app",_scope:_u(),provide:void 0,versions:{get nuxt(){return"4.4.8"},get vue(){return s.vueApp.version}},payload:Br({...e.ssrContext?.payload||{},data:Br({}),state:Ws({}),once:new Set,_errors:Br({})}),static:{data:{}},runWithContext(r){return s._scope.active&&!_o()?s._scope.run(()=>Oy(s,r)):Oy(s,r)},isHydrating:!0,deferHydration(){if(!s.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return s.isHydrating=!1,s.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Br({}),_state:Br({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const i in r)switch(i){case"data":case"state":case"_errors":Object.assign(s.payload[i],r[i]);break;default:s.payload[i]=r[i]}}s.hooks=P6(),s.hook=s.hooks.hook;{const r=s.hooks.callHook;s.hooks.callHook=(i,...o)=>Promise.resolve().then(()=>r(i,...o))}s.callHook=s.hooks.callHook,s.provide=(r,i)=>{const o="$"+r;rd(s,o,i),rd(s.vueApp.config.globalProperties,o,i)},rd(s.vueApp,"$nuxt",s),rd(s.vueApp.config.globalProperties,"$nuxt",s);{window.addEventListener(nI,i=>{s.callHook("app:chunkError",{error:i.payload}),i.payload?.message?.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Te;const r=s.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});s.hook("app:mounted",r)}const n=s.payload.config;return s.provide("config",n),s}function oI(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function aI(e,t){if(typeof t=="function"){const{provide:s}=await e.runWithContext(()=>t(e))||{};if(s&&typeof s=="object")for(const n in s)e.provide(n,s[n])}}async function lI(e,t){const s=new Set,n=[],r=[];let i,o=0;async function l(u){const d=u.dependsOn?.filter(f=>t.some(h=>h._name===f)&&!s.has(f))??[];if(d.length>0)n.push([new Set(d),u]);else{const f=aI(e,u).then(async()=>{u._name&&(s.add(u._name),await Promise.all(n.map(async([h,g])=>{h.has(u._name)&&(h.delete(u._name),h.size===0&&(o++,await l(g)))})))}).catch(h=>{if(!u.parallel&&!e.payload.error)throw h;i||=h});u.parallel?r.push(f):await f}}for(const u of t)oI(e,u);for(const u of t)await l(u);if(await Promise.all(r),o)for(let u=0;u<o;u++)await Promise.all(r);if(i)throw e.payload.error||i}function hs(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[rI]:!0,_name:t})}const cI=hs;function Oy(e,t,s){const n=()=>t();return E6(e._id).set(e),e.vueApp.runWithContext(n)}function uI(e){let t;return bu()&&(t=vr()?.appContext.app.$nuxt),t||=E6(e).tryUse(),t||null}function Te(e){const t=uI(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function kn(e){return Te().$config}function rd(e,t,s){Object.defineProperty(e,t,{get:()=>s})}function Of(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function rh(e,t,s=".",n){if(!Of(t))return rh(e,{},s,n);const r={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(n&&n(r,i,o,s)||(Array.isArray(o)&&Array.isArray(r[i])?r[i]=[...o,...r[i]]:Of(o)&&Of(r[i])?r[i]=rh(o,r[i],(s?`${s}.`:"")+i.toString(),n):r[i]=o))}return r}function L6(e){return(...t)=>t.reduce((s,n)=>rh(s,n,"",e),{})}const R6=L6();function dI(e,t){try{return t in e}catch{return!1}}
4class Fy extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,s={}){super(t,s),s.cause&&!this.cause&&(this.cause=s.cause)}toJSON(){const t={message:this.message,statusCode:ih(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=M6(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function fI(e){if(typeof e=="string")return new Fy(e);if(pI(e))return e;const t=new Fy(e.message??e.statusMessage??"",{cause:e.cause||e});if(dI(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ih(e.statusCode,t.statusCode):e.status&&(t.statusCode=ih(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const s=t.statusMessage;M6(t.statusMessage)!==s&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function pI(e){return e?.constructor?.__h3_error__===!0}const hI=/[^\u0009\u0020-\u007E]/g;function M6(e=""){return e.replace(hI,"")}function ih(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const mI=Symbol("layout-meta"),r0=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const is=()=>Te()?.$router,st=()=>bu()?ts(r0,Te()._route):Te()._route;function Clt(e){return e}const gI=(e,t,s={})=>{const n=Te(),r=s.global||typeof e!="string",i=t;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}r?n._middleware.global.push(i):n._middleware.named[e]=i},yI=()=>{try{if(Te()._processingMiddleware)return!0}catch{return!1}return!1},Bt=(e,t)=>{e||="/";const s=typeof e=="string"?e:"path"in e?_I(e):is().resolve(e).href;if(t?.open){const{protocol:d}=new URL(s,window.location.href);if(d&&Zp(d))throw new Error(`Cannot navigate to a URL with '${d}' protocol.`);const{target:f="_blank",windowFeatures:h={}}=t.open,g=[];for(const[m,_]of Object.entries(h))_!==void 0&&g.push(`${m.toLowerCase()}=${_}`);return open(s,f,g.join(", ")),Promise.resolve()}const n=Mi(s,{acceptRelative:!0}),r=t?.external||n;if(r){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:d}=new URL(s,window.location.href);if(d&&Zp(d))throw new Error(`Cannot navigate to a URL with '${d}' protocol.`)}const i=yI();if(!r&&i){if(t?.replace){if(typeof e=="string"){const{pathname:d,search:f,hash:h}=Nm(e);return{path:d,...f&&{query:Fm(f)},...h&&{hash:h},replace:!0}}return{...e,replace:!0}}return e}const o=is(),l=Te();if(r)return l._scope.stop(),t?.replace?location.replace(s):location.href=s,i?l.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const u=typeof e=="string"?vI(e):e;return t?.replace?o.replace(u):o.push(u)};function _I(e){return n0(e.path||"",e.query||{})+(e.hash||"")}function vI(e){const t=Nm(e);return uA(dA(t.pathname))+t.search+t.hash}const O6="__nuxt_error",i0=()=>oo(Te().payload,"error"),No=e=>{const t=lo(e);try{const s=i0();Te().hooks.callHook("app:error",t),s.value||=t}catch{throw t}return t},bI=async(e={})=>{const t=Te(),s=i0();t.callHook("app:error:cleared",e),e.redirect&&await is().replace(e.redirect),s.value=void 0},F6=e=>!!e&&typeof e=="object"&&O6 in e,lo=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=fI(e);return Object.defineProperty(t,O6,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};let N6;const fl=e=>N6=e,B6=Symbol();function oh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var qc;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(qc||(qc={}));function xI(){const e=_u(!0),t=e.run(()=>X({}));let s=[],n=[];const r=vo({install(i){fl(r),r._a=i,i.provide(B6,r),i.config.globalProperties.$pinia=r,n.forEac
4h(o=>s.push(o)),n=[]},use(i){return this._a?s.push(i):n.push(i),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return r}const V6=()=>{};function Ny(e,t,s,n=V6){e.add(t);const r=()=>{e.delete(t)&&n()};return!s&&_o()&&Zo(r),r}function Pa(e,...t){e.forEach(s=>{s(...t)})}const kI=e=>e(),By=Symbol(),Ff=Symbol();function ah(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],r=e[s];oh(r)&&oh(n)&&e.hasOwnProperty(s)&&!it(n)&&!hr(n)?e[s]=ah(r,n):e[s]=n}return e}const wI=Symbol();function CI(e){return!oh(e)||!Object.prototype.hasOwnProperty.call(e,wI)}const{assign:Xi}=Object;function $I(e){return!!(it(e)&&e.effect)}function SI(e,t,s,n){const{state:r,actions:i,getters:o}=t,l=s.state.value[e];let u;function d(){l||(s.state.value[e]=r?r():{});const f=v5(s.state.value[e]);return Xi(f,i,Object.keys(o||{}).reduce((h,g)=>(h[g]=vo(A(()=>{fl(s);const m=s._s.get(e);return o[g].call(m,m)})),h),{}))}return u=H6(e,d,t,s,n,!0),u}function H6(e,t,s={},n,r,i){let o;const l=Xi({actions:{}},s),u={deep:!0};let d,f,h=new Set,g=new Set,m;const _=n.state.value[e];!i&&!_&&(n.state.value[e]={});let v;function k(L){let D;d=f=!1,typeof L=="function"?(L(n.state.value[e]),D={type:qc.patchFunction,storeId:e,events:m}):(ah(n.state.value[e],L),D={type:qc.patchObject,payload:L,storeId:e,events:m});const R=v=Symbol();lt().then(()=>{v===R&&(d=!0)}),f=!0,Pa(h,D,n.state.value[e])}const x=i?function(){const{state:D}=s,R=D?D():{};this.$patch(F=>{Xi(F,R)})}:V6;function C(){o.stop(),h.clear(),g.clear(),n._s.delete(e)}const w=(L,D="")=>{if(By in L)return L[Ff]=D,L;const R=function(){fl(n);const F=Array.from(arguments),N=new Set,z=new Set;function me(te){N.add(te)}function ge(te){z.add(te)}Pa(g,{args:F,name:R[Ff],store:S,after:me,onError:ge});let fe;try{fe=L.apply(this&&this.$id===e?this:S,F)}catch(te){throw Pa(z,te),te}return fe instanceof Promise?fe.then(te=>(Pa(N,te),te)).catch(te=>(Pa(z,te),Promise.reject(te))):(Pa(N,fe),fe)};return R[By]=!0,R[Ff]=D,R},$={_p:n,$id:e,$onAction:Ny.bind(null,g),$patch:k,$reset:x,$subscribe(L,D={}){const R=Ny(h,L,D.detached,()=>F()),F=o.run(()=>Se(()=>n.state.value[e],N=>{(D.flush==="sync"?f:d)&&L({storeId:e,type:qc.direct,events:m},N)},Xi({},u,D)));return R},$dispose:C},S=Ws($);n._s.set(e,S);const P=(n._a&&n._a.runWithContext||kI)(()=>n._e.run(()=>(o=_u()).run(()=>t({action:w}))));for(const L in P){const D=P[L];if(it(D)&&!$I(D)||hr(D))i||(_&&CI(D)&&(it(D)?D.value=_[L]:ah(D,_[L])),n.state.value[e][L]=D);else if(typeof D=="function"){const R=w(D,L);P[L]=R,l.actions[L]=D}}return Xi(S,P),Xi(Lt(S),P),Object.defineProperty(S,"$state",{get:()=>n.state.value[e],set:L=>{k(D=>{Xi(D,L)})}}),n._p.forEach(L=>{Xi(S,o.run(()=>L({store:S,app:n._a,pinia:n,options:l})))}),_&&i&&s.hydrate&&s.hydrate(S.$state,_),d=!0,f=!0,S}function Ke(e,t,s){let n;const r=typeof t=="function";n=r?s:t;function i(o,l){const u=bu();return o=o||(u?ts(B6,null):null),o&&fl(o),o=N6,o._s.has(e)||(r?H6(e,t,n,o):SI(e,n,o)),o._s.get(e)}return i.$id=e,i}function ho(e){const t=Lt(e),s={};for(const n in t){const r=t[n];r.effect?s[n]=A({get:()=>e[n],set(i){e[n]=i}}):(it(r)||hr(r))&&(s[n]=oo(e,n))}return s}const AI=-1,II=-2,TI=-3,PI=-4,DI=-5,EI=-6,LI=-7,q6=2**32-1,lh=q6-1;function RI(e){return!(!Number.isInteger(e)||e<0||e>lh)}function MI(e){return!(!Number.isInteger(e)||e<0||e>q6)}function OI(e){return Uint8Array.fromBase64(e).buffer}function FI(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function NI(e){const t=atob(e),s=t.length,n=new Uint8Array(s);for(let r=0;r<s;r++)n[r]=t.charCodeAt(r);return n.buffer}const BI=typeof Uint8Array.fromBase64=="function",VI=typeof process=="object"&&process.versions?.node!==void 0,HI=BI?OI:VI?FI:NI;function qI(e,t){return jI(JSON.parse(e),t)}function jI(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const s=e,n=Array(s.length);let r=null;function i(o,l=!1){if(o===AI)return;if(o===TI)return NaN;if(o===PI)return 1/0;if(o===DI)return-1/0;if(o===EI)return-0;if(l||typeof o!="number")throw new Error("Invalid input");if(o in n)return n[o];const u=s[o];if(!u||typeof u!="object")n[o]=u;else if(Array.isArray(u))if(typeof u[0]=="string"){const d=u[0],f=t&&Object.hasOwn(t,d)?t[d]:void 0;if(f){let h=u[1];if(typeof h!="number"&&(h=s.push(u[1])-1),r??=new Set,r.has(h))throw new Error("Invalid circular reference");return r.add(h),n[o]=f(i(h)),r.delete(h),n[o]}switch(d){case"Date":n[o]=new Date(u[1]);break;case"Set":const h=new Set;n[o]=h;for(let _=1;_<u.length;_+=1)h.add(i(u[_]));break;case"Map":const g=new Map;n[o]=g;for(let _=1;_<u.length;_+=2)g.set(i(u[_]),i(u[_+1]));break;case"RegExp":n[o]=new RegExp(u[1],u[2]);break;case"Object":{const _=u[1];if(typeof s[_]=="object"&&s[_][0]!=="BigInt")throw new Error("Invalid input");n[o]=Object(i(_));break}case"BigInt":n[o]=BigInt(u[1]);break;case"null":const m=Object.create(null);n[o]=m;for(let _=1;_<u.length;_+=2){if(u[_]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");m[u[_]]=i(u[_+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(s[u[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=globalThis[d],v=i(u[1]);n[o]=u[2]!==void 0?new _(v,u[2],u[3]):new _(v);break}case"ArrayBuffer":{const _=u[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");const v=HI(_);n[o]=v;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const _=d.slice(9);n[o]=Temporal[_].from(u[1]);break}case"URL":{const _=new URL(u[1]);n[o]=_;break}case"URLSearchParams":{const _=new URLSearchParams(u[1]);n[o]=_;break}default:throw new Error(`Unknown type ${d}`)}}else if(u[0]===LI){const d=u[1];if(!MI(d))throw new Error("Invalid input");const f=[];n[o]=f,f[lh]=void 0,delete f[lh];for(let h=2;h<u.length;h+=2){const g=u[h];if(!RI(g)||g>=d)throw new Error("Invalid input");f[g]=i(u[h+1])}f.length=d}else{const d=new Array(u.length);n[o]=d;for(let f=0;f<u.length;f+=1){const h=u[f];
4h!==II&&(d[f]=i(h))}}else{const d={};n[o]=d;for(const f of Object.keys(u)){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=u[f];d[f]=i(h)}}return n[o]}return i(0)}const UI=new Set(["link","style","script","noscript"]),zI=new Set(["title","titleTemplate","script","style","noscript"]),ch=new Set(["base","meta","link","style","script","noscript"]),WI=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),GI=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),YI=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),KI=new Set(["templateParams","htmlAttrs","bodyAttrs"]),QI=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),XI=["name","property","http-equiv"],ZI=new Set(["viewport","description","keywords","robots"]);function j6(e){const t=e.split(":");return t.length?QI.has(t[1]):!1}function uh(e){const{props:t,tag:s}=e;if(GI.has(s))return s;if(s==="link"&&t.rel==="canonical")return"canonical";if(s==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const n of XI)if(t[n]!==void 0){const r=t[n],i=r&&typeof r=="string"&&r.includes(":"),o=r&&ZI.has(r),u=!(i||o)&&e.key?`:key:${e.key}`:"";return`${s}:${r}${u}`}}if(e.key)return`${s}:key:${e.key}`;if(t.id)return`${s}:id:${t.id}`;if(s==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(zI.has(s)){const n=e.textContent||e.innerHTML;if(n)return`${s}:content:${n}`}}function U6(e){const t=e._h||e._d;if(t)return t;const s=e.textContent||e.innerHTML;return s||`${e.tag}:${Object.entries(e.props).map(([n,r])=>`${n}:${String(r)}`).join(",")}`}function c1(e,t,s){typeof e==="function"&&(!s||s!=="titleTemplate"&&!(s[0]==="o"&&s[1]==="n"))&&(e=e());const r=t?t(s,e):e;if(Array.isArray(r))return r.map(i=>c1(i,t));if(r?.constructor===Object){const i={};for(const o of Object.keys(r))i[o]=c1(r[o],t,o);return i}return r}function JI(e,t){const s=e==="style"?new Map:new Set;function n(r){if(r==null||r===void 0)return;const i=String(r).trim();if(i)if(e==="style"){const[o,...l]=i.split(":").map(u=>u?u.trim():"");o&&l.length&&s.set(o,l.join(":"))}else i.split(" ").filter(Boolean).forEach(o=>s.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(r=>n(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{i&&i!=="false"&&(e==="style"?s.set(String(r).trim(),String(i)):n(r))}),s}function z6(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const s=ch.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([n,r])=>{if(n==="__proto__"||n==="constructor"||n==="prototype")return;if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=JI(n,r);return}if(YI.has(n)){if((n==="textContent"||n==="innerHTML")&&typeof r=="object"){let d=t.type;if(t.type||(d="application/json"),!d?.endsWith("json")&&d!=="speculationrules")return;t.type=d,e.props.type=d,e[n]=JSON.stringify(r)}else e[n]=r;return}const i=n.startsWith("data-"),o=s&&!i?n.toLowerCase():n,l=String(r),u=e.tag==="meta"&&o==="content";l==="true"||l===""?e.props[o]=i||u?l:!0:!r&&i&&l==="false"?e.props[o]="false":r!==void 0&&(e.props[o]=r)}),e}function eT(e,t){const s=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=z6({tag:e,props:{}},s);return n.key&&UI.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(r=>({...n,props:{...n.props,content:r}})):n}function tT(e,t){if(!e)return[];typeof e=="function"&&(e=e());const s=(r,i)=>{for(let o=0;o<t.length;o++)i=t[o](r,i);return i};e=s(void 0,e);const n=[];return e=c1(e,s),Object.entries(e||{}
4).forEach(([r,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])n.push(eT(r,o))}),n.flat()}const Vy=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Hy={base:-10,title:10},sT={critical:-8,high:-1,low:2},qy={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},nT=/@import/,cc=e=>e===""||e===!0;function rT(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let s=100;const n=sT[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:qy;if(t.tag in Hy)s=Hy[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(s=qy.meta[i])}else if(t.tag==="link"&&t.props.rel)s=r.link[t.props.rel];else if(t.tag==="script"){const i=String(t.props.type);cc(t.props.async)?s=r.script.async:t.props.src&&!cc(t.props.defer)&&!cc(t.props.async)&&i!=="module"&&!i.endsWith("json")||t.innerHTML&&!i.endsWith("json")?s=r.script.sync:(cc(t.props.defer)&&t.props.src&&!cc(t.props.async)||i==="module")&&(s=r.script.defer)}else t.tag==="style"&&(s=t.innerHTML&&nT.test(t.innerHTML)?r.style.imported:r.style.sync);return(s||100)+n}function jy(e,t){const s=typeof t=="function"?t(e):t,n=s.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,s),e.hooks.addHooks(s.hooks||{}))}function iT(e={}){const t=P6();t.addHooks(e.hooks||{});const s=!e.document,n=new Map,r=new Map,i=new Set,o={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:s,entries:n,headEntries(){return[...n.values()]},use:l=>jy(o,l),push(l,u){const d={...u||{}};delete d.head;const f=d._index??o._entryCount++,h={_i:f,input:l,options:d},g={_poll(m=!1){o.dirty=!0,!m&&i.add(f),t.callHook("entries:updated",o)},dispose(){n.delete(f)&&o.invalidate()},patch(m){(!d.mode||d.mode==="server"&&s||d.mode==="client"&&!s)&&(h.input=m,n.set(f,h),g._poll())}};return g.patch(l),g},async resolveTags(){const l={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",l);i.size;){const g=i.values().next().value;i.delete(g);const m=n.get(g);if(m){const _={tags:tT(m.input,e.propResolvers||[]).map(v=>Object.assign(v,m.options)),entry:m};await t.callHook("entries:normalize",_),m._tags=_.tags.map((v,k)=>(v._w=rT(o,v),v._p=(m._i<<10)+k,v._d=uh(v),v._d||(v._h=U6(v)),v))}}let u=!1;l.entries.flatMap(g=>(g._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(Vy).reduce((g,m)=>{const _=m._d||m._h;if(!g.has(_))return g.set(_,m);const v=g.get(_);if((m?.tagDuplicateStrategy||(KI.has(m.tag)?"merge":null)||(m.key&&m.key===v.key?"merge":null))==="merge"){const x={...v.props};Object.entries(m.props).forEach(([C,w])=>x[C]=C==="style"?new Map([...v.props.style||new Map,...w]):C==="class"?new Set([...v.props.class||new Set,...w]):w),g.set(_,{...m,props:x})}else m._p>>10===v._p>>10&&m.tag==="meta"&&j6(_)?(g.set(_,Object.assign([...Array.isArray(v)?v:[v],m],m)),u=!0):(m._w===v._w?m._p>v._p:m?._w<v?._w)&&g.set(_,m);return g},l.tagMap);const d=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(o._title=d?.textContent,f){const g=f?.textContent;if(o._titleTemplate=g,g){let m=typeof g=="function"?g(d?.textContent):g;typeof m=="string"&&!o.plugins.has("template-params")&&(m=m.replace("%s",d?.textContent||"")),d?m===null?l.tagMap.delete("title"):l.tagMap.set("title",{...d,textContent:m}):(f.tag="title",f.textContent=m)}}l.tags=Array.from(l.tagMap.values()),u&&(l.tags=l.tags.flat().sort(Vy)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const h=[];for(const g of l.tags){const{innerHTML:m,tag:_,props:v}=g;if(WI.has(_)&&!(Object.keys(v).length===0&&!g.innerHTML&&!g.textContent)&&!(_==="meta"&&!v.content&&!v["http-equiv"]&&!v.charset)){if(_==="script"&&m){if(String(v.type).endsWith("json")){const k=typeof m=="string"?m:JSON.stringify(m);g.innerHTML=k.replace(/</g,"\\u003C")}else typeof m=="string"&&(g.innerHTML=m.replace(new RegExp(`</${_}`,"g"),`<\\/${_}`));g._d=uh(g)}h.push(g)}}return h},invalidate(){for(const l of n.values())i.add(l._i);o.dirty=!0,t.callHook("entries:updated",o)}};
4return(e?.plugins||[]).forEach(l=>jy(o,l)),o.hooks.callHook("init",o),e.init?.forEach(l=>l&&o.push(l)),o}const oT=(e,t)=>it(t)?Fr(t):t,Hm="usehead";function aT(e){return{install(s){s.config.globalProperties.$unhead=e,s.config.globalProperties.$head=e,s.provide(Hm,e)}}.install}function lT(){if(bu()){const e=ts(Hm);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function cT(e,t={}){const s=t.head||lT();return s.ssr?s.push(e||{},t):uT(s,e,t)}function uT(e,t,s={}){const n=X(!1);let r;return Pl(()=>{const o=n.value?{}:c1(t,oT);r?r.patch(o):r=e.push(o,s)}),vr()&&(Tt(()=>{r.dispose()}),Pm(()=>{n.value=!0}),Tm(()=>{n.value=!1})),r}function dT(e){const t=e||Te();return t.ssrContext?.head||t.runWithContext(()=>{if(bu()){const s=ts(Hm);if(!s)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return s}})}function qm(e,t={}){const s=t.head||dT(t.nuxt);return cT(e,{head:s,...t})}const fT=(e,t)=>[],pT=e=>R6({},...fT("",typeof e=="string"?e.toLowerCase():e).map(t=>t.data).reverse()),hT=pT;let Md;function mT(){let e;return e=$fetch(Vm(`builds/meta/${kn().app.buildId}.json`),{responseType:"json"}).then(t=>{if(!t||typeof t!="object"||!Array.isArray(t.prerendered))throw new Error("[nuxt] Received malformed app manifest. Ensure that `builds/meta/*.json` is served as JSON by your hosting/proxy and not rewritten to an HTML fallback.");return t}),Md=e,e.catch(t=>{Md===e&&(Md=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function W6(){return Md||mT()}function G6(e){const t=typeof e=="string"?e:e.path;try{return hT(t.toLowerCase())}catch(s){return console.error("[nuxt] Error matching route rules.",s),{}}}async function Uy(e,t={}){return null}async function gT(e){return null}let Eo=null;async function yT(){if(Eo)return Eo;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await _T(e.textContent||""),s=e.dataset.src?await gT(e.dataset.src):void 0;return Eo={...t,...s,...window.__NUXT__},Eo.config?.public&&(Eo.config.public=Ws(Eo.config.public)),Eo}async function _T(e){return await qI(e,Te()._payloadRevivers)}function Y6(e,t){Te()._payloadRevivers[e]=t}const vT=cI(()=>{Y6("skipHydrate",e=>{})});function zy(e){try{return JSON.parse(e)}catch{return e}}const bT=[["NuxtError",e=>lo(e)],["EmptyShallowRef",e=>fn(e==="_"?void 0:e==="0n"?BigInt(0):zy(e))],["EmptyRef",e=>X(e==="_"?void 0:e==="0n"?BigInt(0):zy(e))],["ShallowRef",e=>fn(e)],["ShallowReactive",e=>Br(e)],["Ref",e=>X(e)],["Reactive",e=>Ws(e)]],xT=hs({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,s;for(const[n,r]of bT)Y6(n,r);Object.assign(e.payload,([t,s]=Xs(()=>e.runWithContext(yT)),t=await t,s(),t)),delete window.__NUXT__}});async function jm(e,t={}){const s=t.document||e.resolvedOptions.document;if(!s||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const i=new Map,o=new Promise(m=>{e.resolveTags().then(_=>{m(_.map(v=>{const k=i.get(v._d)||0,x={tag:v,id:(k?`${v._d}:${k}`:v._d)||v._h,shouldRender:!0};return v._d&&j6(v._d)&&i.set(v._d,k+1),x}))})});let l=e._dom;if(!l){l={title:s.title,elMap:new Map().set("htmlAttrs",s.documentElement).set("bodyAttrs",s.body)};for(const m of["body","head"]){const _=s[m]?.children;for(const v of _){const k=v.tagName.toLowerCase();if(!ch.has(k))continue;const x=z6({tag:k,props:{}},{innerHTML:v.innerHTML,...v.getAttributeNames().reduce((C,w)=>(C[w]=v.getAttribute(w),C),{})||{}});if(x.key=v.getAttribute("data-hid")||void 0,x._d=uh(x)||U6(x),l.elMap.has(x._d)){let C=1,w=x._d;for(;l.elMap.has(w);)w=`${x._d}:${C++}`;l.elMap.set(w,v)}else l.elMap.set(x._d,v)}}}l.pendingSideEffects={...l.sideEffects},l.sideEffects={};function u(m,_,v){const k=`${m}:${_}`;l.sideEffects[k]=v,delete l.pendingSideEffects[k]}function d({id:m,$el:_,tag:v}){const k=v.tag.endsWith("Attrs");l.elMap.set(m,_),k||(v.textContent&&v.textContent!==_.textContent&&(_.textContent=v.textContent),v.innerHTML&&v.innerHTML!==_.innerHTML&&(_.innerHTML=v.innerHTML),u(m,"el",()=>{_?.remove(),l.elMap.delete(m)}));for(const x in v.props){if(!Object.prototype.hasOwnProperty.call(v.props,x))continue;const C=v.props[x];if(x.startsWith("on")&&typeof C=="function"){const $=_?.dataset;if($&&$[`${x}fired`]){const S=x.slice(0,-5);C.call(_,new Event(S.substring(2)))}_.getAttribute(`data-${x}`)!==""&&((v.tag==="bodyAttrs"?s.defaultView:_).addEventListener(x.substring(2),C.bind(_)),_.setAttribute(`data-${x}`,""));continue}const w=`attr:${x}`;if(x==="class"){if(!C)continue;for(const $ of C)k&&u(m,`${w}:${$}`,()=>_.classList.remove($)),!_.classList.contains($)&&_.classList.add($)}else if(x==="style"){if(!C)continue;for(const[$,S]of C)u(m,`${w}:${$}`,()=>{_.style.removeProperty($)}),_.style.setProperty($,S)}else C!==!1&&C!==null&&(_.getAttribute(x)!==C&&_.setAttribute(x,C===!0?"":String(C)),k&&u(m,w,()=>_.removeAttribute(x)))}}const f=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},g=await o;for(const m of g){const{tag:_,shouldRender:v,id:k}=m;if(v){if(_.tag==="title"){s.title=_.textContent,u("title","",()=>s.title=l.title);continue}m.$el=m.$el||l.elMap.get(k),m.$el?d(m):ch.has(_.tag)&&f.push(m)}}for(const m of f){const _=m.tag.tagPosition||"head";m.$el=s.createElement(m.tag.tag),d(m),h[_]=h[_]||s.createDocumentFragment(),h[_].appendChild(m.$el)}for(const m of g)await e.hooks.callHook("dom:renderTag",m,s,u);h.head&&s.head.appendChild(h.head),h.bodyOpen&&s.body.insertBefore(h.bodyOpen,s.body.firstChild),h.bodyClose&&s.body.appendChild(h.bodyClose);for(const m in l.pendingSideEffects)l.pendingSideEffects[m]();e._dom=l,await e.hooks.callHook("dom:rendered",{renders:g}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function kT(e={}){const t=e.domOptions?.render||jm;e.document=e.document||(typeof window<"u"?document:void 0);const s=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return iT({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[s?JSON.parse(s):!1,...e.init||[]]})}function wT(e,t){let s=0;return()=>{const n=++s;t(()=>{s===n&&e()})}}function CT(e={}){const t=kT({domOptions:{render:wT(()=>jm(t),s=>setTimeout(s,0))},...e});return t.install=aT(t),t}const $T={disableDefaults:!0},ST=hs({name:"nuxt:head",enforce:"pre",setup(e){const t=CT($T);e.vueApp.use(t);{let s=!0;const n=async()=>{s=!1,await jm(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!s}),e.hooks.hook("page:start",()=>{s=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n);const r=t.push.bind(t);t.push=((i,o)=>{const l=r(i,o),u=l.dispose.bind(l);return l.dispose=()=>{const d=e["~transitionPromise"];d?d.then(u):u()},l})}}});const Fa=typeof document<"u";function K6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
4function AT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&K6(e.default)}const Yt=Object.assign;function Nf(e,t){const s={};for(const n in t){const r=t[n];s[n]=gr(r)?r.map(e):e(r)}return s}const jc=()=>{},gr=Array.isArray;function Wy(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Q6=Symbol("");function pl(e,t){return Yt(new Error,{type:e,[Q6]:!0},t)}function ui(e,t){return e instanceof Error&&Q6 in e&&(t==null||!!(e.type&t))}const X6=Symbol(""),Gy=Symbol(""),Um=Symbol(""),Z6=Symbol(""),dh=Symbol(""),IT={trailing:!0};function TT(e,t=25,s={}){if(s={...IT,...s},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let n,r,i=[],o,l;const u=(h,g)=>(o=PT(e,h,g),o.finally(()=>{if(o=null,s.trailing&&l&&!r){const m=u(h,l);return l=null,m}}),o),d=function(...h){return s.trailing&&(l=h),o||new Promise(g=>{const m=!r&&s.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const _=s.leading?n:u(this,h);l=null;for(const v of i)v(_);i=[]},t),m?(n=u(this,h),g(n)):i.push(g)})},f=h=>{h&&(clearTimeout(h),r=null)};return d.isPending=()=>!!r,d.cancel=()=>{f(r),i=[],l=null},d.flush=()=>
vendor: 4,274 bytes, line 4
4{if(f(r),!l||o)return;const h=l;return l=null,u(this,h)},d}async function PT(e,t,s){return await e.apply(t,s)}const J6=/#/g,DT=/&/g,ET=/\//g,LT=/=/g,RT=/\?/g,e8=/\+/g,MT=/%5B/g,OT=/%5D/g,t8=/%5E/g,FT=/%60/g,s8=/%7B/g,NT=/%7C/g,n8=/%7D/g,BT=/%20/g;function zm(e){return e==null?"":encodeURI(""+e).replace(NT,"|").replace(MT,"[").replace(OT,"]")}function VT(e){return zm(e).replace(s8,"{").replace(n8,"}").replace(t8,"^")}function fh(e){return zm(e).replace(e8,"%2B").replace(BT,"+").replace(J6,"%23").replace(DT,"%26").replace(FT,"`").replace(s8,"{").replace(n8,"}").replace(t8,"^")}function HT(e){return fh(e).replace(LT,"%3D")}function qT(e){return zm(e).replace(J6,"%23").replace(RT,"%3F")}function jT(e){return qT(e).replace(ET,"%2F")}function u1(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const UT=/\/$/,zT=e=>e.replace(UT,"");function Bf(e,t,s="/"){let n,r={},i="",o="";const l=t.indexOf("#");let u=t.indexOf("?");return u=l>=0&&u>l?-1:u,u>=0&&(n=t.slice(0,u),i=t.slice(u,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=KT(n??t,s),{fullPath:n+i+o,path:n,query:r,hash:u1(o)}}function WT(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Yy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function GT(e,t,s){const n=t.matched.length-1,r=s.matched.length-1;return n>-1&&n===r&&hl(t.matched[n],s.matched[r])&&r8(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function hl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function r8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!YT(e[s],t[s]))return!1;return!0}function YT(e,t){return gr(e)?Ky(e,t):gr(t)?Ky(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ky(e,t){return gr(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function KT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=s.length-1,o,l;for(o=0;o<n.length;o++)if(l=n[o],l!==".")if(l==="..")i>1&&i--;else break;return s.slice(0,i).join("/")+"/"+n.slice(o).join("/")}const qn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function QT(e){if(!e)if(Fa){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zT(e)}const XT=/^[^#]+#/;function ZT(e,t){return e.replace(XT,"#")+t}function JT(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const o0=()=>({left:window.scrollX,top:window.scrollY});function eP(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=JT(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qy(e,t){return(history.state?history.state.position-t:-1)+e}const ph=new Map;function tP(e,t){ph.set(e,t)}function sP(e){const t=ph.get(e);return ph.delete(e),t}function nP(e){return typeof e=="string"||e&&typeof e=="object"}function i8(e){return typeof e=="string"||typeof e=="symbol"}function rP(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<s.length;++n){const r=s[n].replace(e8," "),i=r.indexOf("="),o=u1(i<0?r:r.slice(0,i)),l=i<0?null:u1(r.slice(i+1));if(o in t){let u=t[o];gr(u)||(u=t[o]=[u]),u.push(l)}else t[o]=l}return t}function Xy(e){let t="";for(let s in e){const n=e[s];if(s=HT(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(gr(n)?n.map(r=>r&&fh(r)):[n&&fh(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function iP(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=gr(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}function uc(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}
4function oP(e,t,s){const n=e.value;if(!n)return;let r=n;const i=()=>{r[t].delete(s)};wn(i),Pm(i),Tm(()=>{const o=e.value;o&&(r=o),r[t].add(s)}),r[t].add(s)}function $lt(e){oP(ts(X6,{}),"leaveGuards",e)}function Ji(e,t,s,n,r,i=o=>o()){const o=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((l,u)=>{const d=g=>{g===!1?u(pl(4,{from:s,to:t})):g instanceof Error?u(g):nP(g)?u(pl(2,{from:t,to:g})):(o&&n.enterCallbacks[r]===o&&typeof g=="function"&&o.push(g),l())},f=i(()=>e.call(n&&n.instances[r],t,s,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(g=>u(g))})}function Vf(e,t,s,n,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(K6(u)){const d=(u.__vccOpts||u)[t];d&&i.push(Ji(d,s,n,o,l,r))}else{let d=u();i.push(()=>d.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=AT(f)?f.default:f;o.mods[l]=f,o.components[l]=h;const g=(h.__vccOpts||h)[t];return g&&Ji(g,s,n,o,l,r)()}))}}return i}function aP(e,t){const s=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const l=t.matched[o];l&&(e.matched.find(d=>hl(d,l))?n.push(l):s.push(l));const u=e.matched[o];u&&(t.matched.find(d=>hl(d,u))||r.push(u))}return[s,n,r]}let lP=()=>location.protocol+"//"+location.host;function o8(e,t){const{pathname:s,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Yy(l,"")}return Yy(s,e)+n+r}function cP(e,t,s,n){let r=[],i=[],o=null;const l=({state:g})=>{const m=o8(e,location),_=s.value,v=t.value;let k=0;if(g){if(s.value=m,t.value=g,o&&o===_){o=null;return}k=v?g.position-v.position:0}else n(m);r.forEach(x=>{x(s.value,_,{delta:k,type:"pop",direction:k?k>0?"forward":"back":""})})};function u(){o=s.value}function d(g){r.push(g);const m=()=>{const _=r.indexOf(g);_>-1&&r.splice(_,1)};return i.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(Yt({},g.state,{scroll:o0()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:u,listen:d,destroy:h}}function Zy(e,t,s,n=!1,r=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:r?o0():null}}function uP(e){const{history:t,location:s}=window,n={value:o8(e,s)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(u,d,f){const h=e.indexOf("#"),g=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+u:lP()+e+u;try{t[f?"replaceState":"pushState"](d,"",g),r.value=d}catch(m){console.error(m),s[f?"replace":"assign"](g)}}function o(u,d){i(u,Yt({},t.state,Zy(r.value.back,u,r.value.forward,!0),d,{position:r.value.position}),!0),n.value=u}function l(u,d){const f=Yt({},r.value,t.state,{forward:u,scroll:o0()});i(f.current,f,!0),i(u,Yt({},Zy(n.value,u,null),{position:f.position+1},d),!1),n.value=u}return{location:n,state:r,push:l,replace:o}}function dP(e){e=QT(e);const t=uP(e),s=cP(e,t.state,t.location,t.replace);function n(i,o=!0){o||s.pauseListeners(),history.go(i)}const r=Yt({location:"",base:e,go:n,createHref:ZT.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}const fP={type:0,value:""},pP=/[a-zA-Z0-9_]/;function hP(e){if(!e)return[[]];if(e==="/")return[[fP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${d}": ${m}`)}let s=0,n=s;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,u,d="",f="";function h(){d&&(s===0?i.push({type:0,value:d}):s===1||s===2||s===3?(i.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:d,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function g(){d+=u}for(;l<e.length;)switch(u=e[l++],s){case 0:u==="\\"?(n=s,s=4):u==="/"?(d&&h(),o()):u===":"?(h(),s=1):g();break;case 4:g(),s=n;break;case 1:u==="("?s=2:pP.test(u)?g():(h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+u:s=3:f+=u;break;case 3:h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,f="";break;default:t("Unknown state");break}return s===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),o(),r}const Jy="[^/]+?",mP={sensitive:!1,strict:!1,start:!0,end:!0},gP=/[.+*?^${}()[\]/\\]/g;function yP(e,t){const s=Yt({},mP,t),n=[];let r=s.start?"^":"";const i=[];for(const d of e){const f=d.length?[]:[90];s.strict&&!d.length&&(r+="/");for(let h=0;h<d.length;h++){const g=d[h];let m=40+(s.sensitive?.25:0);if(g.type===0)h||(r+="/"),r+=g.value.replace(gP,"\\$&"),m+=40;else if(g.type===1){const{value:_,repeatable:v,optional:k,regexp:x}=g;i.push({name:_,repeatable:v,optional:k}
vendor: 4,745 bytes, line 4
4);const C=x||Jy;if(C!==Jy){m+=10;try{new RegExp(`(${C})`)}catch($){throw new Error(`Invalid custom RegExp for param "${_}" (${C}): `+$.message)}}let w=v?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;h||(w=k&&d.length<2?`(?:/${w})`:"/"+w),k&&(w+="?"),r+=w,m+=20,k&&(m+=-8),v&&(m+=-20),C===".*"&&(m+=-50)}f.push(m)}n.push(f)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,s.sensitive?"":"i");function l(d){const f=d.match(o),h={};if(!f)return null;for(let g=1;g<f.length;g++){const m=f[g]||"",_=i[g-1];h[_.name]=m&&_.repeatable?m.split("/"):m}return h}function u(d){let f="",h=!1;for(const g of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const m of g)if(m.type===0)f+=m.value;else if(m.type===1){const{value:_,repeatable:v,optional:k}=m,x=_ in d?d[_]:"";if(gr(x)&&!v)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const C=gr(x)?x.join("/"):x;if(!C)if(k)g.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${_}"`);f+=C}}return f||"/"}return{re:o,score:n,keys:i,parse:l,stringify:u}}function _P(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function a8(e,t){let s=0;const n=e.score,r=t.score;for(;s<n.length&&s<r.length;){const i=_P(n[s],r[s]);if(i)return i;s++}if(Math.abs(r.length-n.length)===1){if(e_(n))return 1;if(e_(r))return-1}return r.length-n.length}function e_(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vP={strict:!1,end:!0,sensitive:!1};function bP(e,t,s){const n=yP(hP(e.path),s),r=Yt(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xP(e,t){const s=[],n=new Map;t=Wy(vP,t);function r(h){return n.get(h)}function i(h,g,m){const _=!m,v=s_(h);v.aliasOf=m&&m.record;const k=Wy(t,h),x=[v];if("alias"in h){const $=typeof h.alias=="string"?[h.alias]:h.alias;for(const S of $)x.push(s_(Yt({},v,{components:m?m.record.components:v.components,path:S,aliasOf:m?m.record:v})))}let C,w;for(const $ of x){const{path:S}=$;if(g&&S[0]!=="/"){const I=g.record.path,P=I[I.length-1]==="/"?"":"/";$.path=g.record.path+(S&&P+S)}if(C=bP($,g,k),m?m.alias.push(C):(w=w||C,w!==C&&w.alias.push(C),_&&h.name&&!n_(C)&&o(h.name)),l8(C)&&u(C),v.children){const I=v.children;for(let P=0;P<I.length;P++)i(I[P],C,m&&m.children[P])}m=m||C}return w?()=>{o(w)}:jc}function o(h){if(i8(h)){const g=n.get(h);g&&(n.delete(h),s.splice(s.indexOf(g),1),g.children.forEach(o),g.alias.forEach(o))}else{const g=s.indexOf(h);g>-1&&(s.splice(g,1),h.record.name&&n.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return s}function u(h){const g=CP(h,s);s.splice(g,0,h),h.record.name&&!n_(h)&&n.set(h.record.name,h)}function d(h,g){let m,_={},v,k;if("name"in h&&h.name){if(m=n.get(h.name),!m)throw pl(1,{location:h});k=m.record.name,_=Yt(t_(g.params,m.keys.filter(w=>!w.optional).concat(m.parent?m.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),h.params&&t_(h.params,m.keys.map(w=>w.name))),v=m.stringify(_)}else if(h.path!=null)v=h.path,m=s.find(w=>w.re.test(v)),m&&(_=m.parse(v),k=m.record.name,m.keys.forEach(w=>{w.optional&&!_[w.name]&&delete _[w.name]}));else{if(m=g.name?n.get(g.name):s.find(w=>w.re.test(g.path)),!m)throw pl(1,{location:h,currentLocation:g});k=m.record.name,_=Yt({},g.params,h.params),v=m.stringify(_)}const x=[];let C=m;for(;C;)x.unshift(C.record),C=C.parent;return{name:k,path:v,params:_,matched:x,meta:wP(x)}}e.forEach(h=>i(h));function f(){s.length=0,n.clear()}return{addRoute:i,resolve:d,removeRoute:o,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function t_(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function s_(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:kP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function kP(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function n_(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wP(e){return e.reduce((t,s)=>Yt(t,s.meta),{})}function CP(e,t){let s=0,n=t.length;for(;s!==n;){const i=s+n>>1;a8(e,t[i])<0?n=i:s=i+1}const r=$P(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function $P(e){let t=e;for(;t=t.parent;)if(l8(t)&&a8(e,t)===0)return t}
vendor: 6,618 bytes, line 4
4function l8({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function r_(e){const t=ts(Um),s=ts(Z6),n=A(()=>{const u=a(e.to);return t.resolve(u)}),r=A(()=>{const{matched:u}=n.value,{length:d}=u,f=u[d-1],h=s.matched;if(!f||!h.length)return-1;const g=h.findIndex(hl.bind(null,f));if(g>-1)return g;const m=i_(u[d-2]);return d>1&&i_(f)===m&&h[h.length-1].path!==m?h.findIndex(hl.bind(null,u[d-2])):g}),i=A(()=>r.value>-1&&TP(s.params,n.value.params)),o=A(()=>r.value>-1&&r.value===s.matched.length-1&&r8(s.params,n.value.params));function l(u={}){if(IP(u)){const d=t[a(e.replace)?"replace":"push"](a(e.to)).catch(jc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:A(()=>n.value.href),isActive:i,isExactActive:o,navigate:l}}function SP(e){return e.length===1?e[0]:e}const AP=G({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:r_,setup(e,{slots:t}){const s=Ws(r_(e)),{options:n}=ts(Um),r=A(()=>({[o_(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[o_(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const i=t.default&&SP(t.default(s));return e.custom?i:ot("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},i)}}});function IP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TP(e,t){for(const s in t){const n=t[s],r=e[s];if(typeof n=="string"){if(n!==r)return!1}else if(!gr(r)||r.length!==n.length||n.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function i_(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const o_=(e,t,s)=>e??t??s,PP=G({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=ts(dh),r=A(()=>e.route||n.value),i=ts(Gy,0),o=A(()=>{let d=a(i);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),l=A(()=>r.value.matched[o.value]);ks(Gy,A(()=>o.value+1)),ks(X6,l),ks(dh,r);const u=X();return Se(()=>[u.value,l.value,e.name],([d,f,h],[g,m,_])=>{f&&(f.instances[h]=d,m&&m!==f&&d&&d===g&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),d&&f&&(!m||!hl(f,m)||!g)&&(f.enterCallbacks[h]||[]).forEach(v=>v(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=l.value,g=h&&h.components[f];if(!g)return a_(s.default,{Component:g,route:d});const m=h.props[f],_=m?m===!0?d.params:typeof m=="function"?m(d):m:null,k=ot(g,Yt({},_,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(h.instances[f]=null)},ref:u}));return a_(s.default,{Component:k,route:d})||k}}});function a_(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const c8=PP;function DP(e){const t=xP(e.routes,e),s=e.parseQuery||rP,n=e.stringifyQuery||Xy,r=e.history,i=uc(),o=uc(),l=uc(),u=fn(qn);let d=qn;Fa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Nf.bind(null,de=>""+de),h=Nf.bind(null,jT),g=Nf.bind(null,u1);function m(de,Me){let De,ze;return i8(de)?(De=t.getRecordMatcher(de),ze=Me):ze=de,t.addRoute(ze,De)}function _(de){const Me=t.getRecordMatcher(de);Me&&t.removeRoute(Me)}function v(){return t.getRoutes().map(de=>de.record)}function k(de){return!!t.getRecordMatcher(de)}function x(de,Me){if(Me=Yt({},Me||u.value),typeof de=="string"){const Y=Bf(s,de,Me.path),W=t.resolve({path:Y.path},Me),_e=r.createHref(Y.fullPath);return Yt(Y,W,{params:g(W.params),redirectedFrom:void 0,href:_e})}let De;if(de.path!=null)De=Yt({},de,{path:Bf(s,de.path,Me.path).path});else{const Y=Yt({},de.params);for(const W in Y)Y[W]==null&&delete Y[W];De=Yt({},de,{params:h(Y)}),Me.params=h(Me.params)}const ze=t.resolve(De,Me),Ue=de.hash||"";ze.params=f(g(ze.params));const ut=WT(n,Yt({},de,{hash:VT(Ue),path:ze.path})),H=r.createHref(ut);return Yt({fullPath:ut,hash:Ue,query:n===Xy?iP(de.query):de.query||{}},ze,{redirectedFrom:void 0,href:H})}function C(de){return typeof de=="string"?Bf(s,de,u.value.path):Yt({},de)}function w(de,Me){if(d!==de)return pl(8,{from:Me,to:de})}function $(de){return P(de)}function S(de){return $(Yt(C(de),{replace:!0}))}function I(de,Me){const De=de.matched[de.matched.length-1];if(De&&De.redirect){const{redirect:ze}=De;let Ue=typeof ze=="function"?ze(de,Me):ze;return typeof Ue=="string"&&(Ue=Ue.includes("?")||Ue.includes("#")?Ue=C(Ue):{path:Ue},Ue.params={}),Yt({query:de.query,hash:de.hash,params:Ue.path!=null?{}:de.params},Ue)}}function P(de,Me){const De=d=x(de),ze=u.value,Ue=de.state,ut=de.force,H=de.replace===!0,Y=I(De,ze);if(Y)return P(Yt(C(Y),{state:typeof Y=="object"?Yt({},Ue,Y.state):Ue,force:ut,replace:H}),Me||De);const W=De;W.redirectedFrom=Me;let _e;return!ut&>(n,ze,De)&&(_e=pl(16,{to:W,from:ze}),ne(ze,ze,!0,!1)),(_e?Promise.resolve(_e):R(W,ze)).catch(ae=>ui(ae)?ui(ae,2)?ae:ye(ae):V(ae,W,ze)).then(ae=>{if(ae){if(ui(ae,2))return P(Yt({replace:H},C(ae.to),{state:typeof ae.to=="object"?Yt({},Ue,ae.to.state):Ue,force:ut}),Me||W)}else ae=N(W,ze,!0,H,Ue);return F(W,ze,ae),ae})}function L(de,Me){const De=w(de,Me);return De?Promise.reject(De):Promise.resolve()}function D(de){const Me=he.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(de):de()}function R(de,Me){let De;const[ze,Ue,ut]=aP(de,Me);De=Vf(ze.reverse(),"beforeRouteLeave",de,Me);for(const Y of ze)Y.leaveGuards.forEach(W=>{De.push(Ji(W,de,Me))});const H=L.bind(null,de,Me);return De.push(H),He(De).then(()=>{De=[];for(const Y of i.list())De.push(Ji(Y,de,Me));return De.push(H),He(De)}).then(()=>{De=Vf(Ue,"beforeRouteUpdate",de,Me);for(const Y of Ue)Y.updateGuards.forEach(W=>{De.push(Ji(W,de,Me))});return De.push(H),He(De)}).then(()=>{De=[];for(const Y of ut)if(Y.beforeEnter)if(gr(Y.beforeEnter))for(const W of Y.beforeEnter)De.push(Ji(W,de,Me));else De.push(Ji(Y.beforeEnter,de,Me));return De.push(H),He(De)}).then(()=>(de.matched.forEach(Y=>Y.enterCallbacks={}),De=Vf(ut,"beforeRouteEnter",de,Me,D),De.push(H),He(De))).then(()=>{De=[];for(const Y of o.list())De.push(Ji(Y,de,Me));return De.push(H),He(De)}).catch(Y=>ui(Y,8)?Y:Promise.reject(Y))}
4function F(de,Me,De){l.list().forEach(ze=>D(()=>ze(de,Me,De)))}function N(de,Me,De,ze,Ue){const ut=w(de,Me);if(ut)return ut;const H=Me===qn,Y=Fa?history.state:{};De&&(ze||H?r.replace(de.fullPath,Yt({scroll:H&&Y&&Y.scroll},Ue)):r.push(de.fullPath,Ue)),u.value=de,ne(de,Me,De,H),ye()}let z;function me(){z||(z=r.listen((de,Me,De)=>{if(!Ee.listening)return;const ze=x(de),Ue=I(ze,Ee.currentRoute.value);if(Ue){P(Yt(Ue,{replace:!0,force:!0}),ze).catch(jc);return}d=ze;const ut=u.value;Fa&&tP(Qy(ut.fullPath,De.delta),o0()),R(ze,ut).catch(H=>ui(H,12)?H:ui(H,2)?(P(Yt(C(H.to),{force:!0}),ze).then(Y=>{ui(Y,20)&&!De.delta&&De.type==="pop"&&r.go(-1,!1)}).catch(jc),Promise.reject()):(De.delta&&r.go(-De.delta,!1),V(H,ze,ut))).then(H=>{H=H||N(ze,ut,!1),H&&(De.delta&&!ui(H,8)?r.go(-De.delta,!1):De.type==="pop"&&ui(H,20)&&r.go(-1,!1)),F(ze,ut,H)}).catch(jc)}))}let ge=uc(),fe=uc(),te;function V(de,Me,De){ye(de);const ze=fe.list();return ze.length?ze.forEach(Ue=>Ue(de,Me,De)):console.error(de),Promise.reject(de)}function pe(){return te&&u.value!==qn?Promise.resolve():new Promise((de,Me)=>{ge.add([de,Me])})}function ye(de){return te||(te=!de,me(),ge.list().forEach(([Me,De])=>de?De(de):Me()),ge.reset()),de}function ne(de,Me,De,ze){const{scrollBehavior:Ue}=e;if(!Fa||!Ue)return Promise.resolve();const ut=!De&&sP(Qy(de.fullPath,0))||(ze||!De)&&history.state&&history.state.scroll||null;return lt().then(()=>Ue(de,Me,ut)).then(H=>H&&eP(H)).catch(H=>V(H,de,Me))}const ve=de=>r.go(de);let J;const he=new Set,Ee={currentRoute:u,listening:!0,addRoute:m,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:v,resolve:x,options:e,push:$,replace:S,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:fe.add,isReady:pe,install(de){de.component("RouterLink",AP),de.component("RouterView",c8),de.config.globalProperties.$router=Ee,Object.defineProperty(de.config.globalProperties,"$route",{enumerable:!0,get:()=>a(u)}),Fa&&!J&&u.value===qn&&(J=!0,$(r.location).catch(ze=>{}));const Me={};for(const ze in qn)Object.defineProperty(Me,ze,{get:()=>u.value[ze],enumerable:!0});de.provide(Um,Ee),de.provide(Z6,Br(Me)),de.provide(dh,u);const De=de.unmount;he.add(de),de.unmount=function(){he.delete(de),he.size<1&&(d=qn,z&&z(),z=null,u.value=qn,J=!1,te=!1),De()}}};function He(de){return de.reduce((Me,De)=>Me.then(()=>D(De)),Promise.resolve())}return Ee}const EP=/(:\w+)\([^)]+\)/g,LP=/(:\w+)[?+*]/g,RP=/:\w+/g,MP=(e,t)=>t.path.replace(EP,"$1").replace(LP,"$1").replace(RP,s=>e.params[s.slice(1)]?.toString()||""),hh=(e,t)=>{const s=e.route.matched.find(r=>r.components?.default===e.Component.type),n=t??s?.meta.key??(s&&MP(e.route,s));return typeof n=="function"?n(e.route):n},OP=(e,t)=>({default:()=>e?ot(b$,e===!0?{}:e,t):t});function u8(e){return Array.isArray(e)?e:[e]}const FP="modulepreload",NP=function(e,t){return new URL(e,t).href},l_={},wt=function(t,s,n){let r=Promise.resolve();if(s&&s.length>0){let d=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");r=d(s.map(f=>{if(f=NP(f,n),f in l_)return;l_[f]=!0;const h=f.endsWith(".css"),g=h?'[rel="stylesheet"]':"";if(n)for(let _=o.length-1;_>=0;_--){const v=o[_];if(v.href===f&&(!h||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${g}`))return;const m=document.createElement("link");if(m.rel=h?"stylesheet":FP,h||(m.as="script"),m.crossOrigin="",m.href=f,u&&m.setAttribute("nonce",u),document.head.appendChild(m),h)return new Promise((_,v)=>{m.addEventListener("load",_),m.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},BP={},Hf=[{name:"share-auth___ru",path:"/share/auth",component:()=>wt(()=>import("./CgFAKmCh.js"),[],import.meta.url)},{name:"share-emp-invite___ru",path:"/share/emp-invite",component:()=>wt(()=>import("./DuUCwkpm.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{name:"share-invite___ru",path:"/share/invite",component:()=>wt(()=>import("./ta7q0Q9b.js"),__vite__mapDeps([3,1,2]),import.meta.url)},{name:"account___ru",path:"/account",meta:{middleware:"authorized-resident"},component:()=>wt(()=>import("./C7Vh-TtW.js"),__vite__mapDeps([4,5,6,7,8]),import.meta.url)},{name:"bc___ru",path:"/bc",component:()=>wt(()=>import("./CehlO0Gb.js"),__vite__mapDeps([9,5,6,10,11,12,13]),import.meta.url)},{name:"categories___ru",path:"/categories",component:()=>wt(()=>import("./DqyobASF.js"),__vite__mapDeps([14,5,6,12]),import.meta.url)},{name:"claims___ru",path:"/claims",meta:{middleware:"authorized-resident"},component:()=>wt(()=>import("./D96ex32P.js"),__vite__mapDeps([15,5,6,7,8]),import.meta.url)},{name:"company___ru",path:"/company",component:()=>wt(()=>
4import("./z6WWQ7h4.js"),__vite__mapDeps([16,5,6,12]),import.meta.url)},{name:"discussions___ru",path:"/discussions",meta:{middleware:"authorized-resident"},component:()=>wt(()=>import("./B-5AVBeC.js"),__vite__mapDeps([17,5,6,7,8,18]),import.meta.url)},{name:BP?.name,path:"/house",meta:{middleware:"authorized-resident"},component:()=>wt(()=>import("./DWVR2gLZ.js"),__vite__mapDeps([19,5,6,8,20]),import.meta.url),children:[{name:"house-about-house___ru",path:"about-house",component:()=>wt(()=>import("./CUHPGqDa.js"),__vite__mapDeps([21,20,22]),import.meta.url)},{name:"house-active-residents___ru",path:"active-residents",component:()=>wt(()=>import("./D1aYbp1J.js"),__vite__mapDeps([23,20]),import.meta.url)},{name:"house-balance___ru",path:"balance",component:()=>wt(()=>import("./D8sXZyeb.js"),__vite__mapDeps([24,20]),import.meta.url)},{name:"house-debtors___ru",path:"debtors",component:()=>wt(()=>import("./CYHCy5OX.js"),__vite__mapDeps([25,26,20]),import.meta.url)},{name:"house-executors___ru",path:"executors",component:()=>wt(()=>import("./BP0wDAc1.js"),__vite__mapDeps([27,20]),import.meta.url)},{name:"house-maintenance-and-repair___ru",path:"maintenance-and-repair",component:()=>wt(()=>import("./BB4mSJ97.js"),__vite__mapDeps([28,20]),import.meta.url)},{name:"house-news___ru",path:"news",component:()=>wt(()=>import("./CcNGzMUb.js"),__vite__mapDeps([29,20,30]),import.meta.url)},{name:"house-polls___ru",path:"polls",component:()=>wt(()=>import("./sVVM3vaS.js"),__vite__mapDeps([31,20]),import.meta.url)},{name:"house-reports___ru",path:"reports",component:()=>wt(()=>import("./CNU4L8bn.js"),[],import.meta.url)},{name:"house-working-regime___ru",path:"working-regime",component:()=>wt(()=>import("./CGMS6XBu.js"),__vite__mapDeps([32,26,20]),import.meta.url)},{name:"house___ru",path:"",component:()=>wt(()=>import("./Utituqzh.js"),__vite__mapDeps([33,6]),import.meta.url)}]},{name:"login___ru",path:"/login",component:()=>wt(()=>import("./BqRZHnC0.js"),[],import.meta.url)},{name:"master___ru",path:"/master",component:()=>wt(()=>import("./CNgP7T_C.js"),__vite__mapDeps([34,10,5,6,12,35]),import.meta.url)},{name:"requisites___ru",path:"/requisites",component:()=>wt(()=>import("./meusWOhq.js"),__vite__mapDeps([36,5,6]),import.meta.url)},{name:"index___ru",path:"/",component:()=>wt(()=>import("./B1wy9y0-.js"),__vite__mapDeps([37,5,6,18,11,8,12,38]),import.meta.url)}],VP=(e,t)=>({default:()=>e?ot(Un,e===!0?{}:e,t):t.default?.()}),HP=/(:\w+)\([^)]+\)/g,qP=/(:\w+)[?+*]/g,jP=/:\w+/g;function c_(e){const t=e?.meta.key??e.path.replace(HP,"$1").replace(qP,"$1").replace(jP,s=>e.params[s.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function UP(e,t){return e===t||t===qn?!1:c_(e)!==c_(t)?!0:!e.matched.every((n,r)=>n.components&&n.components.default===t.matched[r]?.components?.default)}function u_(e){return Array.isArray(e)?e:[e]}function zP(e){const t=[];for(const s of e)s&&t.push({...s,onAfterLeave:s.onAfterLeave?u_(s.onAfterLeave):void 0,onBeforeLeave:s.onBeforeLeave?u_(s.onBeforeLeave):void 0});return R6(...t)}const WP={scrollBehavior(e,t,s){const n=Te(),r=is().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:d8(e.hash),behavior:r}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===qn?d_(e,t,s,r):new Promise(o=>{const l=()=>{requestAnimationFrame(()=>o(d_(e,t,s,r)))};n.hooks.hookOnce("page:loading:end",()=>{const u=n["~transitionPromise"];u?u.then(l):l()})})}};function d8(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function d_(e,t,s,n){return s||(e.hash?{el:e.hash,top:d8(e.hash),behavior:UP(e,t)?n:"instant"}:{left:0,top:0})}const GP={hashMode:!1,scrollBehaviorType:"auto"},Ui={...GP,...WP},YP=async(e,t)=>{let s,n;if(!e.meta?.validate)return;const r=([s,n]=Xs(()=>Promise.resolve(e.meta.validate(e))),s=await s,n(),s);if(r===!0)return;const i=lo({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),i};function KP(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=(crypto?.getRandomValues?.(new Uint8Array(1))[0]??Math.random()*16)&15;return(e==="x"?t:t&3|8).toString(16)})}const Ne=Ke("session",{state:()=>
4({sessionToken:null,savedResidenceId:null,deviceId:null,hasSeenOnboarding:!1,hasSeenSegmentation:!1,isSectionSwitcherVisible:!0}),getters:{isAuthorized:e=>!!e.sessionToken,getSession:e=>e.sessionToken,getDeviceId:e=>e.deviceId,getResidenceId:e=>e.savedResidenceId,shouldShowOnboarding:e=>!e.sessionToken&&!e.hasSeenOnboarding,shouldShowSegmentation:e=>!e.hasSeenSegmentation,shouldShowSectionSwitcher:e=>e.isSectionSwitcherVisible},actions:{setSession(e){e&&(this.sessionToken=e,this.markOnboardingSeen())},clearSession(){this.sessionToken&&this.markOnboardingSeen(),this.sessionToken=null,wt(async()=>{const{useProfileStore:e}=await Promise.resolve().then(()=>aM);return{useProfileStore:e}},void 0,import.meta.url).then(({useProfileStore:e})=>{e().clearProfile()})},clearResidenceId(){this.savedResidenceId=null},clearAll(){this.clearSession(),this.clearResidenceId()},setResidenceId(e){this.savedResidenceId=e},markOnboardingSeen(){this.hasSeenOnboarding=!0},markSegmentationSeen(){this.hasSeenSegmentation=!0},showSectionSwitcher(){this.isSectionSwitcherVisible=!0},hideSectionSwitcher(){this.isSectionSwitcherVisible=!1},initDeviceId(){if((this.deviceId??"")||typeof window>"u"||this.deviceId)return;const t=window.localStorage.getItem("device_id");if(t){this.deviceId=t;return}const s=KP();this.deviceId=s,window.localStorage.setItem("device_id",s)}},persist:{afterHydrate:({store:e})=>{e.$state.sessionToken&&e.$persist()}}});function un(e){const t={};for(const[s,n]of Object.entries(e))t[s]=Array.isArray(n)?n.filter(r=>r!=null):n;return t}const QP=(e,t)=>{const s=Ne(),n=e.query.panel||"",r=e.query.claimId||"",i=Array.isArray(e.query.ai_helper_id)?e.query.ai_helper_id[0]:e.query.ai_helper_id,o=new Set(["oss","real_estate_advisor","priemka"]),l=e.path==="/"&&n==="ai-helper"&&typeof i=="string"&&o.has(i);if(l&&(s.markOnboardingSeen(),s.markSegmentationSeen(),s.hideSectionSwitcher()),l&&i==="priemka")return Bt("https://priemka.butler.social/",{external:!0,replace:!0});if(e.path==="/"&&n==="claim-create-chat"&&r.trim()&&(s.markOnboardingSeen(),s.hideSectionSwitcher()),n&&new Set(["login","login-code","registration-address-list","registration-address","captcha"]).has(n)&&s.isAuthorized){const d=un(e.query);return delete d.panel,Bt({path:e.path,query:d},{replace:!0})}if(e.path==="/house/debtors")return Bt({path:"/house",query:{...un(e.query),panel:"house-debtors"}},{replace:!0});if(e.path==="/house/working-regime")return Bt({path:"/house",query:{...un(e.query),panel:"working-regime"}},{replace:!0});if(e.path==="/house/active-residents")return Bt({path:"/house",query:{...un(e.query),panel:"active-residents"}},{replace:!0});if(e.path==="/login"){const d=t?.path&&t.path!=="/login"?t.path:"/",f=t?.path&&t.path!=="/login"?t.query:{};return Bt({path:d,query:{...f,panel:"login"}},{replace:!0})}};function XP(e){return e&&typeof e=="object"?e:null}function f_(e,t){const s=XP(e);return{code:typeof s?.code=="number"?s.code:t.status,status:typeof s?.status=="number"?s.status:t.status,message:typeof s?.message=="string"?s.message:t.message,details:e}}function ZP(){return{code:403,status:403,message:"Unauthorized"}}const wi=(...e)=>{},f8=95,JP="agreements/unaccepted";function eD(e){return e}function tD(e){const t=new URLSearchParams;for(const[s,n]of Object.entries(e??{}))n!=null&&t.set(s,String(n));return t}function p_(e){return e instanceof Error?{message:e.message}:{message:String(e)}}function sD(e){return e&&typeof e=="object"?e:null}function nD(e){return sD(e)?.code===f8}function rD(e){return e.replace(/^\/+/,"").startsWith(JP)}function h_(e,t){rD(e)||t.code===f8&&wt(async()=>{const{useAgreementsStore:s}=await Promise.resolve().then(()=>Pot);return{useAgreementsStore:s}},void 0,import.meta.url).then(({useAgreementsStore:s})=>{s().open()})}function iD(){const e=Ne(),{public:{apiBaseUrl:t}}=kn();async function s(n,r,i,o,l=eD,u,d){try{const f=tD(o),h=d?.sessionTokenOverride??e.sessionToken;h&&f.set("btlrsid",h);const g=f.toString()?`?${f.toString()}`:"",m=`${t}/api/v3/website/${n}${g}`,_={"device-id":e.deviceId??"unknown"};let v;i!=null&&(i instanceof FormData?v=i:(_["Content-Type"]="application/json",v=JSON.stringify(i)));const k=await fetch(m,{method:r,headers:_,body:v,signal:u});if(d?.handleUnauthorized!==!1&&k.status===403&&h&&e.sessionToken===h)return e.clearAll(),await Bt("/login"),{ok:!1,error:ZP()};const x=await k.text(),C=x?JSON.parse(x):{};if(nD(C)){const w=f_(C,{status:k.status,message:k.statusText||"Unexpected error"});return h_(n,w),{ok:!1,error:w}}if(!k.ok){const w=f_(C,{status:k.status,message:k.statusText||"Unexpected error"});return h_(n,w),{ok:!1,error:w}}try{return{ok:!0,data:l(C)}}catch(w){return{ok:!1,error:p_(w)}}}catch(f){return f instanceof DOMException&&f.name==="AbortError"?{ok:!1,error:{code:-925,message:"Request aborted"}}:{ok:!1,error:p_(f)}}}return{get:(n,r,i,o,l)=>s(n,"GET",void 0,r,i,o,l),getApi:(n,r,i,o)=>s(n,"GET",void 0,r,i,o),postApi:(n,r,i,o,l)=>s(n,"POST",r,i,o,l),putApi:(n,r,i,o,l)=>s(n,"PUT",r,i,o,l),post:(n,r,i,o,l)=>s(n,"POST",r,i,o,l),put:(n,r,i,o,l,u)=>s(n,"PUT",r,i,o,l,u),delete:(n,r,i,o)=>s(n,"DELETE",void 0,r,i,o),deleteApi:(n,r,i,o)=>s(n,"DELETE",void 0,r,i,o),patch:(n,r,i,o,l)=>s(n,"PATCH",r,i,o,l)}}function oD(e){const t=e.info??{},s=t.email,n=e.confirmation??{},r=n.next_step??{};return{success:e.success??!1,aboutMe:t.about_me??"",isVisibleInNeighbors:t.is_visible_in_neighbors??!1,avatarUrl:t.avatar_url??"",firstName:t.first_name??"",lastName:t.last_name??"",middleName:t.middle_name??"",email:{email:typeof s=="string"?s:s?.email??"",emailNeedConfirm:typeof s=="string"?!1:s?.email_need_confirm??!1},confirmation:{stepsMap:(n.steps_map??[]).map(i=>({title:i?.title??"",isPassed:i?.is_passed??!1,description:i?.description??"",descriptionColor:i?.description_color??"",redirectLink:i?.redirect_link??"",iconUrl:i?.icon_url??""})),isConfirmed:n.is_confirmed??!1,nextStep:{title:r.title??"",redirectLink:r.redirect_link??""},progressValue:n.progress_value??0}}}const aD=new Set(["fio","email","address"]);function lD(e){return Array.isArray(e)?e.filter(t=>aD.has(t)):[]}function qf(e){return{success:e.success??!1,step:e.step??"",btlrsid:e.btlrsid??"",id:e.id??"",authIdRoute:e.auth_id_route??"",yaClientKey:e.ya_client_key??"",signupFields:lD(e.signup_fields)}}function cD(e){return{success:e.success??!1,step:e.step??"",svg:e.svg??""}}const Ua="Ðежилое помеÑение",p8="ÐÐФÐ",h8="ÐомеÑение",m_="ÐоммеÑÑеÑкое помеÑение",g_="ÐваÑÑиÑа",jf="ÐаÑиномеÑÑо",y_="Ðладовка",uD=new Map([[g_.toLocaleLowerCase("ru-RU"),g_],[jf.toLocaleLowerCase("ru-RU"),jf],["маÑино-меÑÑо",jf],[y_.toLocaleLowerCase("ru-RU"),y_],[m_.toLocaleLowerCase("ru-RU"),m_],[Ua.toLocaleLowerCase("ru-RU"),Ua],[p8.toLocaleLowerCase("ru-RU"),Ua],[h8.toLocaleLowerCase("ru-RU"),Ua]]);function dD(e){const t=e?.trim()??"";return t.length===0?"":uD.get(t.toLocaleLowerCase("ru-RU"))??Ua}function fD(e){return dD(e)}function dc(e){return e?.trim()??""}function a0(e){const t=e?.trim()??"";return t.length===0?"":t===p8?h8:t}function __(e){const t=e.me??{},n=(Array.isArray(e.select_addresses)?e.select_addresses:[]).filter(r=>!!r).map(r=>{const i=r.flat_type?.trim()??"";return{address:r.address??"",addressStreetPart:r.address_street_part??"",addressSettlementPart:r.address_settlement_part??"",premisesName:r.premises_name??"",flatType:i,normalizedFlatType:fD(i),flat:r.flat??"",residentId:r.resident_id??"",premisesId:r.premises_id??"",personalAccount:r.contract_number??"",personalAccountRepair:r.major_repair_contract_number??"",isKapremontOn:r.is_kapremont_on??!0,contractNumberManagementAllowed:r.contract_number_management_allowed??!1,newComplaintButton:r.new_complaint_button??!1,organizationName:r.organization_name??"",hideRatingInfo:r.hide_rating_info??!0,withOrganizationName:r.with_organization_name??!1,floor:r.floor||"",entrance:r.entrance||"",managementCompanyIcon:r.management_c
4ompany_icon??"",houseImage:r.house_image??"",premisesIconSvg:r.premises_icon_svg??"",premisesTitle:r.premises_title??"",isConnectedToButlerPro:r.is_connected_to_butlerpro??!1}});return{success:e.success??!1,isHideHistory:e.is_hide_history??!1,me:{phone:t.phone??"",lastName:t.last_name??"",firstName:t.first_name??"",middleName:t.middle_name??"",email:t.email??"",emailNeedConfirm:t.email_need_confirm??!1},selectAddresses:n}}function v_(e){const s=(Array.isArray(e.work_types)?e.work_types:[]).map(n=>pD(n));return{success:e.success??!1,workTypes:s}}function pD(e){const t=e??{};return{id:t.id??"",title:t.title??"",cost:t.cost??0,measureUnitId:t.measure_unit_id??"",categoryTitle:t.category_title??"",claimCategoryId:t.claim_category_id??"",templateUserMessage:t.template_user_message??"",isWaterDelivery:t.is_water_subscription===!0&&!!String(t.water_supplier_company_id??"").trim()}}function hD(e){return{success:e.success??!1,amount:e.amount??0}}function mD(e){const t=e.info??{};return{success:e.success??!1,info:{aboutMe:t.about_me??"",isVisibleInNeighbors:t.is_visible_in_neighbors??!1,avatarUrl:t.avatar_url??""}}}function b_(e){const t=e.invite??{};return{premisesInviteId:t.premises_invite_id??"",phone:t.phone??"",fio:t.fio??"",inviteLink:t.invite_link??"",defaultInviteText:t.default_invite_text??"",qrLink:t.qr_link??e.qr_link??"",flysheetLink:t.flysheet_link??""}}function gD(e){return{employees:Array.isArray(e.employees)?e.employees.map(yD):[],total:x_(e.total),invitedByMeCount:x_(e.invited_by_me_count),isShowEmployeeInviteButton:e.is_show_employee_invite_button??!1}}function yD(e){const t=e.resident_id??"",s=e.premises_invite_id??"";return{residentId:t,userId:e.user_id??"",fio:e.fio??"",subtitleText:e.subtitle_text??"",verificationStatus:e.verification_status??"",avatarUrl:e.avatar_url??"",organizationName:e.organization_name??"",premisesInviteId:s,inviteLink:e.invite_link??"",phone:e.phone??"",qrLink:e.qr_link??"",isInviteCardAvailable:e.is_invite_card_available===!0,isPending:!t&&!!s}}function x_(e){const t=Number.parseInt(String(e??""),10);return Number.isFinite(t)?t:0}function k_(e){return typeof e=="string"?e:""}function w_(e){return{enabled:e?.enabled??!1,priceText:k_(e?.price_text),timeText:k_(e?.time_text),address:e?.address??"",marker:e?.marker??""}}function _D(e){const t=e??{};return{id:t.food_menu_item_id??"",name:t.name??t.title??"",description:t.description??"",weightText:t.weight_text??"",portionText:t.portion_text??t.portion??"",imageUrl:t.image_url??"",priceText:t.price_text??"",oldPriceText:t.old_price_text||void 0,discountPercent:typeof t.discount_percent=="number"?t.discount_percent:void 0,count:typeof t.count=="number"?t.count:0}}function vD(e){const t=e??{};return{id:t.food_menu_category_id??"",name:t.name??"",items:Array.isArray(t.items)?t.items.map(_D):[]}}function m8(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:t?.text??"").filter(Boolean):[]}function C_(e){return{id:e.food_cart_item_id??"",menuItemId:e.food_menu_item_id??"",name:e.name??"",portion:e.portion_text??e.portion??"",imageUrl:e.image_url??"",priceText:e.price_text??"",amountText:e.amount_text??"",count:typeof e.count=="number"?e.count:0}}function Na(e){const t=e?.cart??e??{};return{restaurantId:t.food_restaurant_id??t.restaurant?.food_restaurant_id??"",deliveryType:t.delivery_type==="pickup"?"pickup":"delivery",items:Array.isArray(t.items)?t.items.map(C_):[],unavailableItems:Array.isArray(t.unavailable_items)?t.unavailable_items.map(C_):[],itemsCount:typeof t.items_count=="number"?t.items_count:0,itemsAmountText:t.items_amount_text??"",deliveryAmountText:t.delivery_amount_text??"",deliveryPriceText:t.restaurant?.delivery?.price_text??"",totalAmountText:t.total_amount_text??"",restaurantName:t.restaurant?.name??"",restaurantDescription:t.restaurant?.description??"",restaurantMarkers:m8(t.restaurant?.markers),pickupMarker:t.restaurant?.pickup?.marker??"",courierComment:t.courier_comment??"",canOrder:t.can_order??!1,canOrderError:t.can_order_error??"",deliveryAddress:t.delivery_address?.text??"",pickupAddress:t.restaurant?.pickup?.address??""}}function bD(e){const t=e.restaurant??{};return{restaurant:{id:t.food_restaurant_id??"",name:t.name??"",description:t.description??"",imageUrl:t.image_url??"",markers:m8(t.markers),delivery:w_(t.delivery),pickup:w_(t.pickup)},deliveryAddress:e.delivery_address?.text??"",menu:Array.isArray(e.menu)?e.menu.map(vD):[],cart:Na(e.cart)}}function yr(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}const rt=e=>typeof e=="string"||typeof e=="number"?String(e):"",yi=e=>Number.isFinite(Number(e))?Math.trunc(Number(e)):0,on=e=>e==null||e===""||!Number.isFinite(Number(e))?void 0:Math.trunc(Number(e)),An=e=>e==null||e===""?void 0:rt(e),ro=e=>e==null||e===""?void 0:typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0,l0=e=>Array.isArray(e)?e:[],xD=e=>
4l0(e).map(rt).filter(Boolean);function kD(e){if(typeof e=="string"||typeof e=="number")return{text:rt(e),textColor:"",backgroundColor:""};const t=yr(e);return{text:rt(t.text),textColor:rt(t.text_color),backgroundColor:rt(t.background_color)}}function Wm(e){const t=yr(e);return{id:rt(t.water_tariff_id),bottlesCount:yi(t.bottles_count),title:rt(t.title),amount:yi(t.amount),amountText:rt(t.amount_text),pricePerBottle:yi(t.price_per_bottle),pricePerBottleText:rt(t.price_per_bottle_text),markers:l0(t.markers).map(kD).filter(s=>s.text)}}function g8(e){if(!e)return null;const t=yr(e);return{id:rt(t.resident_organization_details_id),name:rt(t.name??t.organization_name??t.title),inn:rt(t.inn),email:rt(t.email??t.payer_email)}}function $_(e){const t=yr(e);return{text:rt(t.text),linkText:rt(t.link_text),url:rt(t.url)}}function wD(e){const t=yr(e);return{success:t.success===!0,message:rt(t.message),code:on(t.code??t.error_code),waterSupplierCompanyId:rt(t.water_supplier_company_id),title:rt(t.title),description:rt(t.description),markers:xD(t.markers),productName:rt(t.product_name),minAmount:yi(t.min_amount),minAmountText:rt(t.min_amount_text),offerUrl:rt(t.offer_url),supplierOfferUrl:rt(t.supplier_offer_url),tariffs:l0(t.tariffs).map(Wm).filter(s=>s.id),waterSubscriptionId:rt(t.water_subscription_id),subscriptionStatus:rt(t.subscription_status)}}function CD(e){const t=yr(e);return{success:t.success===!0,message:rt(t.message),code:on(t.code??t.error_code),tariff:Wm(t.tariff),deliveryDate:rt(t.delivery_date),deliveryDateText:rt(t.delivery_date_text),deliveryTimeText:rt(t.delivery_time_text),addressText:rt(t.address_text),payer:g8(t.payer),paymentTermDays:yi(t.payment_term_days),offer:$_(t.offer),supplierOffer:$_(t.supplier_offer)}}function y8(e){const t=yr(e),s=yr(t.claim),n={id:yi(t.water_delivery_id),number:yi(t.number),date:rt(t.date),dateText:rt(t.date_text),status:rt(t.status),statusTitle:rt(t.status_title),statusDescription:rt(t.status_description),isPaid:t.is_paid===!0,bottlesCount:yi(t.bottles_count),bottlesText:rt(t.bottles_text),amount:yi(t.amount),amountText:rt(t.amount_text),paymentDeadline:rt(t.payment_deadline),deliveryDate:rt(t.delivery_date),deliveryDateText:rt(t.delivery_date_text),deliveryTimeText:rt(t.delivery_time_text),paymentInvoiceId:rt(t.payment_invoice_id),hasInvoice:t.has_invoice===!0,claimId:rt(s.id),claimNumber:rt(s.number)},r=An(t.payment_deadline_text),i=ro(t.is_payment_overdue),o=An(t.payment_required_text),l=ro(t.needs_confirmation),u=ro(t.is_confirmed),d=on(t.bottles_received),f=on(t.empty_bottles_returned),h=ro(t.problem_reported),g=An(t.problem_comment);return{...n,...r!==void 0?{paymentDeadlineText:r}:{},...i!==void 0?{isPaymentOverdue:i}:{},...o!==void 0?{paymentRequiredText:o}:{},...l!==void 0?{needsConfirmation:l}:{},...u!==void 0?{isConfirmed:u}:{},...d!==void 0?{bottlesReceived:d}:{},...f!==void 0?{emptyBottlesReturned:f}:{},...h!==void 0?{problemReported:h}:{},...g!==void 0?{problemComment:g}:{}}}function Da(e){const t=yr(e);return{success:t.success===!0,message:rt(t.message),code:on(t.code??t.error_code),waterSubscriptionId:rt(t.water_subscription_id),status:rt(t.status),statusText:rt(t.status_text),tariff:Wm(t.tariff),addressText:rt(t.address_text),deliveryDate:rt(t.delivery_date),deliveryDateText:rt(t.delivery_date_text),deliveryTimeText:rt(t.delivery_time_text),nextBillingDate:rt(t.next_billing_date),nextBillingDateText:rt(t.next_billing_date_text),payer:g8(t.payer),deliveries:l0(t.deliveries).map(y8),canChangeTariff:t.can_change_tariff===!0,changeTariffHint:rt(t.change_tariff_hint),canPause:t.can_pause===!0,canResume:t.can_resume===!0,...on(t.tara_received_total)!==void 0?{taraReceivedTotal:on(t.tara_received_total)}:{},...on(t.tara_returned_total)!==void 0?{taraReturnedTotal:on(t.tara_returned_total)}:{},...on(t.tara_balance)!==void 0?{taraBalance:on(t.tara_balance)}:{}}}function _8(e){const t=yr(e),s=on(t.water_delivery_id),n=yr(t.unpaid_bill),r=on(n.water_delivery_id),i=r===void 0?void 0:{waterDeliveryId:r,...on(n.amount)!==void 0?{amount:on(n.amount)}:{},amountText:rt(n.amount_text),isOverdue:n.is_overdue===!0,statusText:rt(n.status_text),...An(n.payment_deadline)!==void 0?{paymentDeadline:An(n.payment_deadline)}:{},...An(n.payment_deadline_text)!==void 0?{paymentDeadlineText:An(n.payment_deadline_text)}:{},...ro(n.has_invoice)!==void 0?{hasInvoice:ro(n.has_invoice)}:{}};return{title:rt(t.title),waterSubscriptionId:rt(t.water_subscription_id),status:rt(t.status),statusText:rt(t.status_text),subtitle:rt(t.subtitle),...An(t.delivery_date)!==void 0?{deliveryDate:An(t.delivery_date)}:{},...An(t.delivery_date_text)!==void 0?{deliveryDateText:An(t.delivery_date_text)}:{},...An(t.delivery_time_text)!==void 0?{deliveryTimeText:An(t.delivery_time_text)}:{},...ro(t.needs_delivery_confirmation)!==void 0?{needsDeliveryConfirmation:ro(t.needs_delivery_confirmation)}:{},...s!==void 0?{waterDeliveryId:s}:{},...i?{unpaidBill:i}:{}}}function $D(e){if(typeof e=="string")return e.trim();if(!e)return"";const t=e.flat_type?.trim()??"",s=e.flat==null?"":String(e.flat).trim();
4return[t,s].filter(Boolean).join(" ")}function SD(e){return{id:e.food_menu_item_id??"",name:e.name??"",portion:e.portion_text??e.portion??"",imageUrl:e.image_url??"",priceText:e.price_text??"",amountText:e.amount_text??"",count:typeof e.count=="number"?e.count:0}}function fc(e){const t=e.order??e;return{id:typeof t.food_order_id=="number"?t.food_order_id:typeof t.id=="number"?t.id:0,number:t.number==null?"":String(t.number),createdAt:t.created_at??"",status:t.status??"",statusTitle:t.status_title??"",statusDescription:t.status_description??"",statusIconUrl:t.status_icon_url??"",deliveryTitle:t.delivery_title??"",addressTitle:t.address_title??"",address:t.address??"",addressDetails:$D(t.address_details),totalAmountText:t.total_amount_text??"",paymentStatusText:t.payment_status_text??"",paidFrom:t.paid_from||void 0,courierComment:t.courier_comment??"",items:Array.isArray(t.items)?t.items.map(SD):[],deliveryAmountText:t.delivery_amount_text??"",canPay:t.can_pay??!1,canCancel:t.can_cancel??!1,paymentSecondsLeft:typeof t.payment_seconds_left=="number"?t.payment_seconds_left:void 0,claim:{id:t.claim?.id??"",number:t.claim?.number??"",hasUnreadMessages:t.claim?.is_has_unread_meessages??!1,messagesAllowed:t.claim?.messages_allowed??!1}}}function AD(e){const t=e??{};return{id:t.id??"",title:t.title??"",iconUrl:t.icon_url??void 0,anotherWorkTypeId:t.another_work_type_id??void 0}}function ID(e){const s=(Array.isArray(e.categories)?e.categories:[]).map(n=>AD(n));return{success:e.success??!1,categories:s,anotherWorkTypeId:e.another_work_type_id??void 0}}function TD(e){return{id:e?.id??"",title:e?.title??"",value:e?.value??""}}function PD(e){return{id:e?.id??"",title:e?.title??""}}function DD(e){return{id:e?.id??"",title:e?.title??"",cost:e?.cost??0,measureUnit:TD(e?.measure_unit),claimCategory:PD(e?.claim_category)}}function ED(e){return{success:e.success??!1,workType:DD(e.work_type)}}function yt(e){return{success:e.success??!1}}function S_(e){return{success:e.success??!1,claim_id:e.claim_id,reopened_claim_id:e.reopened_claim_id??""}}function LD(e){return{cardId:e.card_id??"",createdAt:e.created_at??"",type:e.type??"",holder:e.holder??null,number:e.number??"",expiredAt:e.expired_at??"",prioritizedAt:e.prioritized_at??"",isPriority:e.is_priority??!1}}function RD(e){return{success:e.success??!1,cards:(e.cards??[]).map(LD)}}function MD(e){return{username:e.username??"",amount:e.amount??0}}function OD(e){return{success:e.success??!1,cloudpayments:MD(e.cloudpayments??{})}}function FD(e){return{success:e.success??!1,secureCheckNeeded:e.secure_check_needed??!1,reqUrl:e.req_url??"",finishUrl:e.finish_url??""}}function ND(e){return{success:e.success,claims:Array.isArray(e.claims)?e.claims:[]}}function BD(e){return{billId:typeof e?.bill_id=="string"?e.bill_id:"",name:typeof e?.name=="string"?e.name:"",comment:typeof e?.comment=="string"?e.comment:null,amount:typeof e?.amount=="string"?e.amount:"",amountInCents:typeof e?.amount_in_cents=="number"?e.amount_in_cents:0,statusText:typeof e?.status_text=="string"?e.status_text:"",statusTextColor:typeof e?.status_text_color=="string"?e.status_text_color:""}}function VD(e){return{date:typeof e?.date=="string"?e.date:"",payments:Array.isArray(e?.list)?e.list.map(t=>BD(t)):[]}}function HD(e){return{success:!!e?.success,groups:Array.isArray(e?.list)?e.list.map(t=>VD(t)):[]}}function qD(e){return{title:typeof e?.title=="string"?e.title:"",text:typeof e?.text=="string"?e.text:"",iconUrl:typeof e?.icon_url=="string"?e.icon_url:null}}function jD(e){return{text:typeof e?.text=="string"?e.text:"",textColor:typeof e?.text_color=="string"?e.text_color:"",backgroundColor:typeof e?.background_color=="string"?e.background_color:""}}function UD(e){return e?{billId:typeof e.bill_id=="string"?e.bill_id:"",name:typeof e.name=="string"?e.name:"",comment:typeof e.comment=="string"?e.comment:null,infoItems:Array.isArray(e.info_items)?e.info_items.map(t=>qD(t)):[],isAllowedPay:!!e.is_allowed_pay,markers:Array.isArray(e.markers)?e.markers.map(t=>jD(t)):[]}:null}function zD(e){return{success:!!e?.success,bill:UD(e?.bill)}}function WD(e){return{contractNumber:e.contract_number?A_(e.contract_number):null,majorRepairContractNumber:e.major_repair_contract_number?A_(e.major_repair_contract_number):null}}function GD(e){return{mainDebtTitle:e.main_debt_title??"",penaltiesDebtTitle:e.penalties_debt_title??"",totalDebtTitle:e.total_debt_title??"",urlForPay:e.url_for_pay??"",urlForSbp:e.url_for_sbp??"",urlForYandexPay:e.url_for_yandex_pay??"",disclaimerText:e.disclaimer_text??"",address:e.address??"",contractNumber:e.contract_number??"",flat:e.flat??""}}function A_(e){return{contractNumber:e.contract_number??"",title:e.title??"",titleTotalToBePaid:e.title_total_to_be_paid??"",isPaid:e.is_paid??!1}}function YD(e){return{success:e.success??!1,attentionText:e.attention_text??"",meteringDevices:Array.isArray(e.metering_devices)?e.metering_devices.filter(t=>t!=null).map(QD):[]}}function KD(e){return{success:e.success??!1,chart:Array.isArray(e.chart)?e.chart.filter(t=>t!=null).map(XD):[],history:Array.isArray(e.history)?e.history.filter(t=>t!=null).map(ZD):[]}}function QD(e){return{deviceId:String(e.device_id??""),title:e.title??"",subtitle:e.subtitle??"",lastReadingValue:mh(e.last_reading_value),lastReadingDate:e.last_reading_date??""}}function XD(e){return{title:e.title??"",diffCurrentPrev:mh(e.diff_current_prev),diffCurrentPrevRatio:mh(e.diff_current_prev_ratio)??0}}function ZD(e){return{title:e.title??"",rows:Array.isArray(e.rows)?e.rows.filter(t=>t!=null).map(JD):[]}}function JD(e){return{date:e.date??"",value:String(e.value??""),diffCurrentPrev:String(e.diff_current_prev??"")}}function mh(e){if(e==null||e==="")return null;const t=typeof e=="number"?e:Number(e.replace(",","."));return Number.isFinite(t)?t:null}function eE(e){return{success:e.success??!1,totalToBePaid:e.total_to_be_paid??0,pe
4naltyToBePaid:e.penalty_to_be_paid??0,urlForPay:e.url_for_pay??"",urlForSbp:e.url_for_sbp??"",urlForYandexPay:e.url_for_yandex_pay??"",attentionText:e.attention_text??"",titleTotalToBePaid:e.title_total_to_be_paid??"",titleCharges:e.title_charges??"",charges:Array.isArray(e.charges)?e.charges.filter(t=>t!=null).map(sE):[]}}function tE(e){return{success:e.success??!1,payments:Array.isArray(e.payments)?e.payments.filter(t=>t!=null).map(nE):[]}}function sE(e){return{id:String(e.id??""),title:e.title??"",amount:e.amount??0,paymentDocumentExt:e.payment_document_ext??"",paymentDocumentUrl:e.payment_document_url??"",urlForPay:e.url_for_pay??"",urlForSbp:e.url_for_sbp??"",card:v8(e.card??{})}}function nE(e){return{title:e.title??"",description:e.description??"",source:e.source??"",amount:e.amount??0,card:v8(e.card??{})}}function v8(e){return{title:e.title??"",amountTotal:e.amount_total??0,amountPenalties:e.amount_penalties??0,amountCommission:e.amount_commission??0,labelAmount:e.label_amount??"",amount:e.amount??0,paymentDocumentExt:e.payment_document_ext??"",paymentDocumentUrl:e.payment_document_url??"",receiptDocumentExt:e.receipt_document_ext??"",receiptDocumentUrl:e.receipt_document_url??"",urlForPay:e.url_for_pay??"",urlForSbp:e.url_for_sbp??""}}function rE(e){return{url:typeof e?.url=="string"?e.url:"",needAlert:!!e?.need_alert}}function iE(e){return{payload:rE(e?.payload),id:typeof e?.id=="string"?e.id:"",createdAtTime:typeof e?.created_at_time=="string"?e.created_at_time:"",maskedAsRead:!!e?.masked_as_read,text:typeof e?.text=="string"?e.text:"",title:typeof e?.title=="string"?e.title:"",body:typeof e?.body=="string"?e.body:""}}function oE(e){return{date:typeof e?.date=="string"?e.date:"",notifications:Array.isArray(e?.list)?e.list.map(t=>iE(t)):[]}}function aE(e){return{success:!!e?.success,groups:Array.isArray(e?.list)?e.list.map(t=>oE(t)):[]}}function lE(e){return{success:e.success??!1,claims:typeof e.claims=="number"?e.claims:0,posts:typeof e.posts=="number"?e.posts:0}}function cE(e){return{text:typeof e?.text=="string"?e.text:"",textColor:typeof e?.text_color=="string"?e.text_color:"",backgroundColor:typeof e?.background_color=="string"?e.background_color:"",iconUrl:typeof e?.icon_url=="string"?e.icon_url:"",needIndicator:typeof e?.need_indicator=="boolean"?e.need_indicator:!1}}function uE(e){return{id:typeof e?.claim_id=="string"?e.claim_id:"",createdAt:typeof e?.created_at=="string"?e.created_at:"",markers:Array.isArray(e?.markers)?e.markers.map(t=>cE(t)):[],text:typeof e?.text=="string"?e.text:"",title:typeof e?.title=="string"?e.title:"",workTypeName:typeof e?.work_type_name=="string"?e.work_type_name:"",amount:typeof e?.amount_string=="string"?e.amount_string:"",executorsLabel:typeof e?.executors_label=="string"?e.executors_label:"",isHasUnreadMessages:typeof e?.is_has_unread_meessages=="boolean"?e.is_has_unread_meessages:!1,messagesAllowed:typeof e?.messages_allowed=="boolean"?e.messages_allowed:!1,foodOrder:e?.food_order?{id:typeof e.food_order.food_order_id=="number"?e.food_order.food_order_id:0,number:e.food_order.number==null?"":String(e.food_order.number),status:typeof e.food_order.status=="string"?e.food_order.status:"",statusTitle:typeof e.food_order.status_title=="string"?e.food_order.status_title:"",isPaid:e.food_order.is_paid??!1,totalAmount:typeof e.food_order.total_amount=="number"?e.food_order.total_amount:0,totalAmountText:typeof e.food_order.total_amount_text=="string"?e.food_order.total_amount_text:""}:null}}function I_(e){return{success:!!e?.success,claims:Array.isArray(e?.claims)?e.claims.map(t=>uE(t)):[]}}function dE(e){const t=[e.address_settlement_part,e.address_street_part].filter(s=>s!=null&&s.length>0);return{houseId:e.house_id,fiasId:e.fias_id,address:t.join(", "),addressStreetPart:e.address_street_part,addressSettlementPart:e.address_settlement_part,from:e.from,isCompleteAddress:e.is_complete_address??!0,withOrganizationName:e.with_organization_name??!1}}function fE(e){return{success:e.success,suggestions:e.suggestions.map(dE),example:e.example??""}}function pE(e){const t=Array.isArray(e.elements)?e.elements:[];return{success:e.success??!1,elements:t.map(hE)}}function hE(e){const t=e??{};return{title:t.title??"",text:t.text??""}}function mE(e){const t=Array.isArray(e.agreements)?e.agreements:[];return{success:e.success??!1,agreements:t.map(gE)}}function gE(e){const t=e??{};return{type:t.type??"",header:t.header??"",text:t.text??""}}function yE(e){const t=Array.isArray(e.agreements)?e.agreements.filter(s=>typeof s=="string"):[];return{success:e.success??!1,agreements:t}}function _E(e){return{success:e.success??!1,count:e.push_message_badges_count??e.count??0}}function vE(e){const t=Array.isArray(e.categories)?e.categories:[];return{success:e.success??!1,categories:t.map(gh)}}function bE(e){const t=Array.isArray(e.household)?e.household:[],s=Array.isArray(e["for-home"])?e["for-home"]:[];return{success:e.success??!1,title:typeof e.title=="string"?e.title:"",household:t.map(gh),forHome:s.map(gh)}}function gh(e){const t=e??{},s=Array.isArray(t.work_types)?t.work_types.filter(o=>
4typeof o=="string"):[],n=typeof t.work_types_count=="number"?t.work_types_count:s.length,r=typeof t.icon_url=="string"&&t.icon_url.length>0?t.icon_url:void 0,i=typeof t.description=="string"&&t.description.length>0?t.description:void 0;return{id:typeof t.id=="string"?t.id:"",title:typeof t.title=="string"?t.title:"",isNewCategory:typeof t.is_new_category=="boolean"?t.is_new_category:!1,isFoodDelivery:t.is_food_delivery??!1,isWaterDelivery:t.is_water_subscription===!0&&!!String(t.water_supplier_company_id??"").trim(),iconUrl:r,workTypes:s,workTypesCount:n,description:i,markers:Array.isArray(t.markers)?t.markers.filter(o=>typeof o=="string"):[],priceFrom:typeof t.price_from=="number"?t.price_from:void 0,priceTo:typeof t.price_to=="number"?t.price_to:void 0}}function xE(e){const t=e??{};return{workTypeId:typeof t.work_type_id=="string"?t.work_type_id:"",title:typeof t.title=="string"?t.title:"",priceFromText:typeof t.price_from_text=="string"?t.price_from_text:"",priceFrom:typeof t.price_from=="number"?t.price_from:void 0,needShowBenefitMarker:t.need_show_benefit_marker===!0,templateUserMessage:typeof t.template_user_message=="string"?t.template_user_message:""}}function Uf(e){return{success:e.success??!1,categoryId:typeof e.category_id=="string"?e.category_id:"",title:typeof e.title=="string"?e.title:"",iconUrl:typeof e.icon_url=="string"?e.icon_url:"",description:typeof e.description=="string"?e.description:"",markers:Array.isArray(e.markers)?e.markers.filter(t=>typeof t=="string"):[],priceFrom:typeof e.price_from=="number"?e.price_from:void 0,priceTo:typeof e.price_to=="number"?e.price_to:void 0,items:Array.isArray(e.items)?e.items.map(xE):[]}}function T_(e){return{claimId:typeof e?.claim_id=="string"?e.claim_id:"",premisesId:typeof e?.premises_id=="string"?e.premises_id:""}}function kE(e){return{requestInterval:typeof e?.request_interval=="number"&&e.request_interval>0?e.request_interval:180,needWorkAcceptanceClaims:Array.isArray(e?.need_work_acceptance_claims)?e.need_work_acceptance_claims.map(t=>T_(t)):[],needPaymentClaims:Array.isArray(e?.need_payment_claims)?e.need_payment_claims.map(t=>T_(t)):[]}}function P_(e){const t=e?.average_rating!=null?e.average_rating:e?.rating!=null?e.rating:e?.stars_value,s=typeof t=="number"?t:Number(typeof t=="string"?t:Number.NaN);return{id:typeof e?.id=="string"?e.id:"",imageUrl:typeof e?.image_url=="string"?e.image_url:typeof e?.avatar_url=="string"?e.avatar_url:"",name:typeof e?.name=="string"?e.name:typeof e?.short_name=="string"?e.short_name:"",profession:typeof e?.profession=="string"?e.profession:"",rating:Number.isFinite(s)?s:0}}function D_(e){return{text:typeof e?.text=="string"?e.text:"",textColor:typeof e?.text_color=="string"?e.text_color:"",backgroundColor:typeof e?.background_color=="string"?e.background_color:"",iconUrl:typeof e?.icon_url=="string"?e.icon_url:"",needIndicator:typeof e?.need_indicator=="boolean"?e.need_indicator:!1}}function wE(e){return{id:typeof e?.id=="string"?e.id:"",url:typeof e?.url=="string"?e.url:typeof e?.link=="string"?e.link:"",previewUrl:typeof e?.preview_url=="string"?e.preview_url:"",name:typeof e?.name=="string"?e.name:"",type:typeof e?.type=="string"?e.type:typeof e?.mime_type=="string"?e.mime_type:""}}function CE(e){return{url:typeof e?.url=="string"?e.url:"",mimeType:typeof e?.mime_type=="string"?e.mime_type:"",name:typeof e?.name=="string"?e.name:"",isPaid:b8(e?.is_paid)}}function E_(e){return{url:typeof e?.url=="string"?e.url:"",mimeType:typeof e?.mime_type=="string"?e.mime_type:"",name:typeof e?.name=="string"?e.name:""}}function $E(e){return{title:typeof e?.title=="string"?e.title:"",description:typeof e?.description=="string"?e.description:"",date:typeof e?.date=="string"?e.date:"",status:typeof e?.status=="string"?e.status:"",isEnd:!!e?.is_end,isCurrent:!!e?.is_current,isFinal:!!e?.is_final}}function SE(e){return{title:typeof e?.title=="string"?e.title:"",subtitle:typeof e?.subtitle=="string"?e.subtitle:"",dateText:typeof e?.date_text=="string"?e.date_text:"",backgroundColor:typeof e?.background_color=="string"?e.background_color:"",detailsTitle:typeof e?.details_title=="string"?e.details_title:"",detailsSubtitle:typeof e?.details_subtitle=="string"?e.details_subtitle:""}}function L_(e){return{title:typeof e?.title=="string"?e.title:"",subtitle:typeof e?.subtitle=="string"?e.subtitle:"",backgroundColor:typeof e?.background_color=="string"?e.background_color:""}}function AE(e){return{title:e?.title?.toString()??"",subTitle:e?.sub_title?.toString()??"",qrLink:e?.qr_link?.toString()??"",shareText:e?.share_text?.toString()??"",iconCheck:e?.icon_check?.toString()??"",passImg:e?.pass_img?.toString()??""}}function _i(e){const t=typeof e=="number"?e:Number(typeof e=="string"?e:Number.NaN);return Number.isFinite(t)?t:0}function b8(e){return typeof e=="boolean"?e:typeof e=="string"?e==="true":!!e}function IE(e){return{listId:e?.list_id?.toString()??"",status:e?.
4status?.toString()??"",title:e?.title?.toString()??"",backgroundColor:e?.background_color?.toString()??"",count:_i(e?.count),amount:_i(e?.amount),iconUrl:e?.icon_url?.toString()??"",textColor:e?.text_color?.toString()??""}}function TE(e){return{title:e?.title?.toString()??"",subtitle:e?.subtitle?.toString()??"",iconUrl:e?.icon_url?.toString()??"",lists:Array.isArray(e?.lists)?e.lists.map(t=>IE(t)):[]}}function PE(e){return{workTypeId:e?.work_type_id?.toString()??"",count:_i(e?.count),amount:_i(e?.amount),title:e?.title?.toString()??"",cost:_i(e?.cost),measureUnitValue:e?.measure_unit_value?.toString()??""}}function DE(e){return{id:e?.id?.toString()??"",claimId:e?.claim_id?.toString()??"",status:e?.status?.toString()??"",statusName:e?.status_name?.toString()??"",textColor:e?.text_color?.toString()??"",backgroundColor:e?.background_color?.toString()??"",iconUrl:e?.icon_url?.toString()??"",title:e?.title?.toString()??"",name:e?.name?.toString()??"",text:e?.text?.toString()??"",baseCost:_i(e?.base_cost),listCost:_i(e?.list_cost),totalCost:_i(e?.total_cost),itemsCount:_i(e?.items_count),items:Array.isArray(e?.items)?e.items.map(t=>PE(t)):[],showSubmitButton:b8(e?.show_submit_button)}}function x8(e){const t=typeof e?.price=="number"?e.price:Number(typeof e?.price=="string"?e.price:Number.NaN),s=e?.executor?P_(e.executor):null,n=Array.isArray(e?.executors)?e.executors.map(k=>P_(k)):s?[s]:[],r=n[0]??s,i=typeof e?.new_messages=="number"?e.new_messages:Number(typeof e?.new_messages=="string"?e.new_messages:Number.NaN),o=typeof e?.description=="string"?e.description:typeof e?.text=="string"?e.text:"",l=typeof e?.text=="string"?e.text:o,u=e?.is_has_unread_meessages,d=e?.work_is_accepted,f=e?.need_accept_work,h=e?.need_payment,g=e?.can_be_canceled,m=e?.messages_allowed,_=e?.is_show_progress_steps,v=typeof e?.result_comment=="string"?e.result_comment:"";return{id:typeof e?.claim_id=="string"?e.claim_id:"",number:typeof e?.number=="string"?e.number:"",createdAt:typeof e?.created_at=="string"?e.created_at:"",status:typeof e?.status=="string"?e.status:"",address:typeof e?.address=="string"?e.address:"",flatAddress:typeof e?.flat_address=="string"?e.flat_address:"",price:Number.isFinite(t)?t:0,title:typeof e?.title=="string"?e.title:"",description:o,text:l,newMessages:Number.isFinite(i)?i:0,hasUnreadMessages:typeof u=="boolean"?u:typeof u=="string"?u==="true":!1,workTypeName:typeof e?.work_type_name=="string"?e.work_type_name:"",markers:Array.isArray(e?.markers)?e.markers.map(k=>D_(k)):[],additionalMarkers:Array.isArray(e?.additional_markers)?e.additional_markers.map(k=>D_(k)):[],amount:typeof e?.amount_string=="string"?e.amount_string:"",attachments:Array.isArray(e?.attachments)?e.attachments.map(k=>wE(k)):[],resultComment:v,resultFilesBefore:Array.isArray(e?.result_files_before)?e.result_files_before.map(k=>E_(k)):[],resultFilesAfter:Array.isArray(e?.result_files_after)?e.result_files_after.map(k=>E_(k)):[],arbitrationInfo:e?.arbitration_info?SE(e.arbitration_info):null,incidentInfo:e?.incident_info?L_(e.incident_info):null,claimInfoCard:e?.claim_info?L_(e.claim_info):null,qrInfo:e?.qr_pass&&typeof e.qr_pass=="object"&&!Array.isArray(e.qr_pass)?AE(e.qr_pass):null,additionalWorksList:e?.additional_works_list&&typeof e.additional_works_list=="object"&&!Array.isArray(e.additional_works_list)?TE(e.additional_works_list):null,invoices:Array.isArray(e?.invoices)?e.invoices.map(k=>CE(k)):[],waterDelivery:e?.water_delivery?y8(e.water_delivery):null,workIsAccepted:typeof d=="boolean"?d:typeof d=="string"?d==="true":null,needAcceptWork:typeof f=="boolean"?f:typeof f=="string"?f==="true":!!f,needPayment:typeof h=="boolean"?h:typeof h=="string"?h==="true":!1,canBeCanceled:typeof g=="boolean"?g:typeof g=="string"?g==="true":!1,messagesAllowed:typeof m=="boolean"?m:typeof m=="string"?m==="true":!!m,executors:n,executor:r,isShowProgressSteps:typeof _=="boolean"?_:typeof _=="string"?_==="true":!!_,steps:Array.isArray(e?.steps)?e.steps.map(k=>$E(k)):[]}}function EE(e){return{success:!!e?.success,claim:x8(e?.claim)}}function LE(e){const t=Array.isArray(e?.reasons)?e.reasons.filter(s=>typeof s=="string"):[];return{success:e?.success??!1,reasons:t}}function RE(e){return{fileName:typeof e?.file_name=="string"?e.file_name:"",url:typeof e?.url=="string"?e.url:""}}function ME(e){const t=e?.text;return{id:typeof e?.id=="string"?e.id:"",attachments:Array.isArray(e?.attachments)?e.attachments.map(s=>RE(s)):[],text:typeof t=="string"?t:null,createdAt:typeof e?.created_at=="string"?e.created_at:"",isMyMessage:!!e?.is_my_message,maskedAsRead:e?.executor_masked_as_read??!0}}function OE(e){return{success:!!e?.success,title:typeof e?.title=="string"?e.title:"",number:typeof e?.number=="string"?e.number:"",messages:Array.isArray(e?.messages)?e.messages.map(t=>ME(t)):[]}}function zf(e){return{oldChatId:typeof e?.old_chat_id=="string"?e.old_chat_id:"",newChatId:typeof e?.new_chat_id=="string"?e.new_chat_id:"",firstMessage:typeof e?.first_message=="string"?e.first_message:"",textButtons:Array.isArray(e?.text_buttons)?e.text_buttons.filter(t=>
4typeof t=="string"):[],userHasNoOrganizationDetails:!!e?.user_has_no_organization_details}}function FE(e){return{fileName:typeof e?.file_name=="string"?e.file_name:"",url:typeof e?.url=="string"?e.url:"",type:typeof e?.type=="string"?e.type:"",extension:typeof e?.extension=="string"?e.extension:""}}function NE(e){return{message:typeof e?.message=="string"?e.message:"",dateTime:typeof e?.date_time=="string"?e.date_time:"",isMyMessage:!!e?.is_my_message,attachments:Array.isArray(e?.attachments)?e.attachments.map(t=>FE(t)):[]}}function R_(e){return{success:!!e?.success,chatId:typeof e?.chat_id=="string"?e.chat_id:"",messages:Array.isArray(e?.messages)?e.messages.map(t=>NE(t)):[]}}function Wf(e){return{success:!!e?.success,chatId:typeof e?.chat_id=="string"?e.chat_id:"",botMessage:typeof e?.bot_message=="string"?e.bot_message:"",textButtons:Array.isArray(e?.text_buttons)?e.text_buttons.filter(t=>typeof t=="string"):[],chatIsOpen:!!e?.chat_is_open,claimId:typeof e?.claim_id=="string"?e.claim_id:"",claimCreatedSuccess:!!e?.claim_created_success,userHasNotCard:!!e?.user_has_not_card,userHasDebtBill:!!e?.user_has_debt_bill,userNeedRegistration:!!e?.user_need_registration,userHasNoOrganizationDetails:!!e?.user_has_no_organization_details,needEmailBlock:e?.need_email_block&&typeof e.need_email_block=="object"?{title:typeof e.need_email_block.title=="string"?e.need_email_block.title:"",buttonText:typeof e.need_email_block.button_text=="string"?e.need_email_block.button_text:""}:null}}function za(e){return e==null?"":String(e)}function BE(e){return e.company??e.data??e}function VE(e){return e.bank??e.data??e}function HE(e){const t=BE(e);return{organizationName:za(t.organization_name??t.name??t.payer),kpp:za(t.kpp),ogrn:za(t.ogrn),legalAddress:za(t.legal_address??t.address)}}function qE(e){const t=VE(e);return{bankName:za(t.bank_name??t.name),correspondentAccount:za(t.correspondent_account??t.correspondent_account_number??t.correspondentAccount)}}const jE=new Set(["fio","email","address"]);function UE(e){return Array.isArray(e)?e.filter(t=>jE.has(t)):[]}function zE(e){return{success:e.success??!1,cityAddress:e.city_address??"",houseAddress:e.house_address??"",signupFields:UE(e.signup_fields),hasSignupFields:Array.isArray(e.signup_fields),withOrganizationName:e.with_organization_name??!1}}function WE(e){return{success:e.success??!1,inviteLink:e.invite_link??"",defaultInviteText:e.default_invite_text??"",qrLink:e.qr_link??"",flysheetLink:e.flysheet_link??""}}function M_(e){return{success:e.success??!1,resident:{residentId:e.resident?.resident_id??""}}}function k8(e){return Array.isArray(e)?e.map(GE):[]}function GE(e){const t=e??{};return{title:t.title??"",color:t.color??"",backgroundColor:t.background_color??"",screen:t.screen??""}}function YE(e){return{success:e.success??!1,residentId:e.resident_id??"",ratingInfo:QE(e.rating_info),isShowOfficeInviteBlock:e.is_show_office_invite_block??!1,sectionsMap:Array.isArray(e.sections_map)?e.sections_map.map(XE):[],conversationsBlock:ZE(e.conversations_block),houseActivityBlock:JE(e.house_activity_block),myActivityBlock:tL(e.my_activity_block)}}function KE(e){const t=e.office_invite_block??{};return{countText:t.count_text??"",avatarsUrls:Array.isArray(t.avatars_urls)?t.avatars_urls.filter(s=>!!s):[],avatarsMoreText:t.avatars_more_text??null,pollsText:t.polls_text??null,isShowEmployeeInviteButton:t.is_show_employee_invite_button??!1}}function QE(e){if(!e)return null;const t=e;return{title:t.title??"",icon:t.icon??"",numberIcon:t.number_icon??"",needRatingButton:t.need_rating_button??!1,actionMarkers:k8(t.action_markers)}}function XE(e){const t=e??{};return{title:t.title??"",description:t.description??"",type:t.type??"",icon:t.icon??""}}function ZE(e){return e?{title:e.title??"",subtitle:e.subtitle??"",imageUrl:e.image_url??"",showUnreadIndicator:e.show_unread_indicator??!1}:null}function JE(e){return e?{initGroupUsers:Array.isArray(e.init_group_users)?e.init_group_users.map(eL):[],anotherInitGroupUsersCount:or(e.another_init_group_users_count),activeSurveysCount:or(e.active_surveys_count),activeMoneyFee:or(e.active_money_fee)}:null}function eL(e){const t=e??{};return{avatarUrl:t.avatar_url??"",isMe:t.is_me===!0}}
4function tL(e){return e?{invitedNeighborsCount:or(e.invited_neighbors_count),invitedNeighborsLastDayCount:or(e.invited_neighbors_last_day_count),surveysCount:or(e.surveys_count),surveyLastDayCount:or(e.survey_last_day_count),likesCount:or(e.likes_count),likesLastDayCount:or(e.likes_last_day_count),moneyFeesCount:or(e.money_fees_count),moneyFeesLastDayCount:or(e.money_fees_last_day_count)}:null}function or(e){if(typeof e=="number")return Math.trunc(e);const t=Number.parseInt(e?.toString()??"",10);return Number.isFinite(t)?t:0}function c0(e){const t=e??{};return{title:t.title??"",description:t.description??"",iconUrl:t.icon_url??""}}function u0(e){const t=e??{};return{title:t.title??"",description:t.description??"",imageUrl:t.image_url??t.icon_url??"",bannerName:t.banner_name??""}}function sL(e){return{success:e.success??!1,ratingInfo:e.rating_info?c0(e.rating_info):null,ratingOpportunityBanner:e.rating_opportunity_banner?u0(e.rating_opportunity_banner):null,notAllowedByRatingBlock:nL(e.not_allowed_by_rating_block),initGroupUsers:Array.isArray(e.init_group_users)?e.init_group_users.map(rL):[],total:w8(e.total)}}function nL(e){const t=e??{};return{title:t.title??"",description:t.description??"",opportunities:Array.isArray(t.opportunities)?t.opportunities:[]}}function rL(e){const t=e??{};return{userId:t.user_id??"",name:t.name??"",addressesText:t.addresses_text??"",avatarUrl:t.avatar_url??"",ratingIconUrl:t.rating_icon_url??"",invitedResidentsCount:w8(t.invited_residents_count),markers:Array.isArray(t.markers)?t.markers.map(iL):[],isConfirmed:t.is_confirmed===!0,canSendMessage:t.can_send_message===!0,hasNewMessage:t.has_new_message===!0}}function iL(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??""}}function oL(e){return{imageUrl:e.image_url??"",title:e.title??"",description:e.description??"",tasksList:Array.isArray(e.tasks_list)?e.tasks_list.map(String):[]}}function w8(e){if(typeof e=="number")return Math.trunc(e);const t=Number.parseInt(e?.toString()??"",10);return Number.isFinite(t)?t:0}function aL(e){return{success:e.success??!1,conversations:Array.isArray(e.conversations)?e.conversations.map(fL):[]}}function lL(e){return{success:e.success??!1,conversationId:e.conversation?.chat_conversation_id??""}}function cL(e){return{success:e.success??!1,recipient:e.recipient?C8(e.recipient):null,messages:Array.isArray(e.messages)?e.messages.map(Gm):[]}}function uL(e){return{success:e.success??!1,message:e.message?Gm(e.message):null}}function dL(e){return{success:e.success??!1,updatedCount:$8(e.updated_count)}}function fL(e){const t=e??{};return{chatConversationId:t.chat_conversation_id??"",recipient:t.recipient?C8(t.recipient):null,lastMessage:t.last_message?Gm(t.last_message):null,lastMessageAt:t.last_message_at??"",unreadCount:$8(t.unread_count)}}function C8(e){const t=e??{};return{userId:t.user_id??"",shortName:t.short_name??"",fullName:t.full_name??"",avatarUrl:t.avatar_url??""}}function Gm(e){const t=e??{};return{chatMessageId:t.chat_message_id??"",chatConversationId:t.chat_conversation_id??"",senderId:t.sender_id??"",body:t.body??"",readAt:t.read_at??"",createdAt:t.created_at??"",isMyMessage:t.is_my_message===!0,attachments:Array.isArray(t.attachments)?t.attachments.map(pL):[]}}function pL(e){const t=e??{};return{chatMessageAttachmentId:t.chat_message_attachment_id??"",originalName:t.original_name??"",mimeType:t.mime_type??"",url:t.url??""}}function $8(e){if(typeof e=="number")return Math.trunc(e);const t=Number.parseInt(e?.toString()??"",10);return Number.isFinite(t)?t:0}function hL(e){return{success:e.success??!1,executors:Array.isArray(e.executors)?e.executors.map(S8):[]}}function S8(e){const t=e??{},s=Number(t.average_rating??0);return{id:t.id??"",name:t.short_name??t.name??"",avatarUrl:t.avatar_url??"",profession:gL(t.profession),averageRating:Number.isFinite(s)?s:0}}function mL(e){const t=e.executor??{},s=Number(e.active_claims?.value??0);return{success:e.success??!1,executor:{...S8(t),onShift:t.on_shift??!1},activeClaims:{title:e.active_claims?.title??"ÐкÑивнÑÑ
заÑвок",value:Number.isFinite(s)?s:0}}}function gL(e){return typeof e=="string"?e:e?.value??""}function yL(e){return{success:e.success??!1,isICanCreate:e.is_i_can_create??!1,isShowNewSurveyButton:e.is_show_new_survey_button??!1,votingMinDaysCount:e.voting_min_days_count??0,votingMaxDaysCount:e.voting_max_days_count??0,ratingInfo:e.rating_info?c0(e.rating_info):null,ratingOpportunityBanner:e.rating_opportunity_banner?u0(e.rating_opportunity_banner):null,notAllowedByRatingText:e.not_allowed_by_rating_text??"",surveys:Array.isArray(e.surveys)?e.surveys.map(A8):[]}}function _L(e){return{success:e.success??!1,votingMinDaysCount:e.voting_min_days_count??0,votingMaxDaysCount:e.voting_max_days_count??0,survey:e.survey?A8(e.survey):null}}function A8(e){const t=e??{};return{createdAt:t.created_at??"",isICanManage:t.is_i_can_manage??!1,surveyId:t.survey_id??"",title:t.title??"",question:t.question??"",votingType:t.voting_type??"",votingFinishedAt:t.voting_finished_at??"",isIVoted:t.is_i_voted??!1,myVoice:t.my_voice??null,voiceValues:Array.isArray(t.voice_values)?t.voice_values.map(vL):[],votingResult:bL(t.voting_result),initiatorMarker:t.initiator_marker??"",attachments:Array.isArray(t.attachments)?t.attachments.map(wL):[]}}function vL(e){const t=e??{};return{id:t.id??0,value:t.value??null}}function bL(e){return Array.isArray(e)?e.map(xL):e&&typeof e=="object"?kL(e):null}function xL(e){const t=e??{};return{id:t.id??0,count:t.count??0,voicesCount:t.voices_count??0}}function kL(e){const t=e??{};return{value:t.value??null,voicesCount:t.voices_count??0}}function wL(e){const t=e??{};return{id:t.id??"",originalName:t.original_name??"",mimeType:t.mime_type??"",url:t.url??""}}function CL(e){return{success:e.success??!1,balance:e.balance??0,bonusBalance:e.bonus_balance??null,ratingInfo:e.rating_info?c0(e.rating_info):null,ratingOpportunityBanner:e.rating_opportunity_banner?u0(e.rating_opportunity_banner):null,moneyFees:Array.isArray(e.money_fees)?e.money_fees.map(I8):[],isICanManage:e.is_i_can_manage??!1,notAllowedByRatingText:e.not_allowed_by_rating_text??"",balanceInfo:AL(e.balance_info)}}function $L(e){return{success:e.success??!1,isICanManage:e.is_i_can_manage??!1,isICanRemove:e.is_i_can_remove??!1,screenParams:e.screen_params?IL(e.screen_params):null,moneyFee:I8(e.money_fee)}}function SL(e){return{success:e.success??!1,userBills:Array.isArray(e.user_bills)?e.user_bills.map(O_):[],data:Array.isArray(e.data)?e.data.map(O_):[],total:e.total??0}}function AL(e){const t=e??{};return{title:t.title??"ÐакоплениÑ",description:t.description??""}}function I8(e){const t=e??{};return{moneyFeeId:t.money_fee_id??"",mainTextValue:t.main_text_value??"",mainImgLink:t.main_img_link??"",amount:t.amount??0,name:t.name??"",description:t.description??"",paidAmount:String(t.paid_amount??""),comment:t.comment??"",type:t.type??"",residenceAmount:t.residence_amount??0,payersCount:t.payers_count??0,isFinished:t.is_finished??!1,isRemoved:t.is_removed??!1,isSuccessfully:t.is_successfully??!1,allowRepartition:t.allow_repartition??!1,initiator:t.initiator??"",finishedAt:t.finished_at??"",finishDate:t.finish_date??"",finishDatetimeIso:t.finish_datetime_iso??"",marker:t.marker?yh(t.marker):null,shareLink:t.share_link??"",markers:Array.isArray(t.markers)?t.markers.map(yh):[]}}function IL(e){return{typeTitleValue:e.type_title_value??"",resultTitleValue:e.result_title_value??"",mainGrayBlock:e.main_gray_block?TL(e.main_gray_block):null,progressBlock:e.progress_block?PL(e.progress_block):null,initiatorTextValue:e.initiator_text_value??"",finishDatetimeIso:e.finish_datetime_iso??"",finishDate:e.finish_date??"",isHideButtonPay:e.is_hide_button_pay??!0,countOfPayers:e.count_of_payers??""}}function TL(e){return{aboveMainTextValue:e.abovemain_text_value??"",aboveMainImgLink:e.abovemain_img_link??"",badgeTextValue:e.badge_text_value??"",badgeTextColor:e.badge_text_color??"",badgeBackgroun
4dColor:e.badge_background_color??"",mainTextValue:e.main_text_value??"",underMainTextValue:e.undermain_text_value??""}}function PL(e){return{isHide:e.is_hide??!1,progressStepBackgroundColor:e.progress_step_background_color??"#000000",items:Array.isArray(e.items)?e.items.map(DL):[]}}function DL(e){return{activeImgLink:e.active_img_link??"",notActiveImgLink:e.not_active_img_link??"",backgroundColor:e.background_color??"",isActive:e.is_active??!1}}function O_(e){const t=e??{};return{payerTitle:t.payer_title??"",avatarUrl:t.avatar_url??"",flatText:t.flat_text??"",markers:Array.isArray(t.markers)?t.markers.map(yh):[]}}function yh(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??""}}function EL(e){return{success:e.success??!1,isDebtExist:e.is_debt_exist??!1,debtTitle:e.debt_title??"",debtDescription:e.debt_description??"",debtors:Array.isArray(e.debtors)?e.debtors.map(LL):[]}}function LL(e){const t=e??{};return{title:t.title??"",debtTitle:t.debt_title??"",info:t.info??""}}function RL(e){return{success:e.success??!1,schedule:Array.isArray(e.schedule)?e.schedule.map(ML).filter(FL):[]}}function ML(e){const t=e??{};return{title:t.title??"",times:Array.isArray(t.times)?t.times.map(OL).filter(NL):[]}}function OL(e){const t=e??{};return{title:t.title??"",description:t.description??""}}function FL(e){return e.title.length>0||e.times.length>0}function NL(e){return e.title.length>0||e.description.length>0}function BL(e){return{success:e.success??!1,reports:Array.isArray(e.reports)?e.reports.map(VL).filter(HL):[]}}function VL(e){const t=e??{};return{reportId:t.report_id??"",title:t.title??"",comment:t.comment??"",fileLink:t.file_link??""}}function HL(e){return e.reportId.length>0||e.title.length>0||e.comment.length>0||e.fileLink.length>0}function qL(e){return{success:e.success??!1,managementCompany:e.management_company?jL(e.management_company):null}}function jL(e){return{id:e.id??"",fullName:e.full_name??"",name:e.name??"",inn:e.inn??"",ogrn:e.ogrn??"",ogrnDate:e.ogrn_date??"",ogrnDateFormatted:e.ogrn_date_formatted??"",license:e.license??"",address:e.address??"",email:e.email??"",phone:e.phone??"",phoneFormatted:e.phone_formatted??"",logoUrl:e.logo_url??"",markers:(e.markers??[]).map(t=>({text:t?.text??"",textColor:t?.text_color??"",backgroundColor:t?.background_color??"",iconUrl:t?.icon_url??""})).filter(WL),director:UL(e.director),emergencyPhones:(e.emergency_phones??[]).map(t=>({description:t?.description??"",phone:t?.phone??"",phoneFormatted:t?.phone_formatted??""})).filter(GL),schedule:(e.schedule??[]).map(t=>({title:t?.title??"",times:(t?.times??[]).map(s=>({title:s?.title??"",description:s?.description??""})).filter(s=>!!(s.title||s.description))})).filter(YL),infoText:e.info_text??"",attachments:(e.attachemnts??[]).map(zL).filter(t=>!!t.url)}}function UL(e){return!e?.fio&&!e?.photo_url?null:{fio:e.fio??"",photoUrl:e.photo_url??""}}function zL(e){return{id:e?.id??"",name:e?.name??"",url:e?.url??"",ext:e?.ext??"",size:e?.size??null,sizeText:e?.size_text??""}}function WL(e){return!!(e.text||e.iconUrl)}function GL(e){return!!(e.description||e.phone||e.phoneFormatted)}function YL(e){return!!(e.title||e.times.length)}function Gf(e){return{success:e.success??!1,title:e.title??"",description:e.description??"",currentRating:typeof e.current_rating=="number"?e.current_rating:0,currentRatingTitle:e.current_rating_title??"",imageUrl:e.image_url??"",marker:T8(e.marker),processPercentForNewRating:JL(e.process_percent_for_new_rating),nextRatingTitle:e.next_rating_title??"",nextRatingIcon:e.next_rating_icon??"",nextRatingOpportunities:Array.isArray(e.next_rating_opportunities)?e.next_rating_opportunities.map(_h):[],stepsForNewRating:Array.isArray(e.steps_for_new_rating)?e.steps_for_new_rating.map(QL):[],opportunities:Array.isArray(e.opportunities)?e.opportunities.map(_h):[],opportunitiesBackgroundColor:e.opportunities_background_color??"",premisesAddress:e.premises_address??"",inviteLink:e.invite_link??"",inviteShareText:e.invite_share_text??""}}function KL(e){return{success:e.success??!1,ratingList:Array.isArray(e.rating_list)?e.rating_list.map(XL):[],frequentQuestions:Array.isArray(e.frequent_questions)?e.frequent_questions.map(ZL):[]}}function T8(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??""}}function _h(e){const t=e??{};return{title:t.title??"",iconUrl:t.icon_url??""}}function QL(e){const t=e??{};return{isPassed:t.is_passed??!1,appStepActionIconUrl:t.app_step_action_icon_url??"",appStepIconUrl:t.app_step_icon_url??"",appStepTitle:t.app_step_title??"",appScreen:t.app_screen??"",processTitle:t.process_title??""}}function XL(e){const t=e??{};return{title:t.title??"",description:t.description??"",requirement:t.requirement??"",marker:T8(t.marker),opportunities:Array.isArray(t.opportunities)?t.opportunities.map(_h):[],imageUrl:t.image_url??""}}function ZL(e){const t=e??{};return{title:t.title??"",description:t.description??""}}function JL(e){return typeof e!="number"||!Number.isFinite(e)?0:Math.min(100,Math.max(0,e))}const eR=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","heic","heif"]);function tR(e){if((typeof e.mime_type=="string"?e.mime_type.toLowerCase():"").startsWith("image/"))return!0;const s=typeof e.original_name=="string"?e.original_name:typeof e.name=="string"?e.name:"";return eR.has((s.split(".").pop()??"").toLowerCase())}function sR(e){if(!e)return null;const t=typeof e.type=="string"?e.type:"";return{type:t,text:typeof e.text=="string"?e.text:"",isDone:t!=="in_progress"}}function F_(e,t){const s=e??{};return{id:typeof s.id=="string"?s.id:"",name:typeof s.original_name=="string"?s.original_name:typeof s.name=="string"?s.name:"",url:typeof s.url=="string"?s.url:"",mimeType:typeof s.mime_type=="string"?s.mime_type:"",isBefore:t,isImage:tR(s)}}function Ym(e){const t=Array.isArray(e?.claim_result_before)?e.claim_result_before.map(r=>F_(r,!0)):[],s=Array.isArray(e?.claim_result_after)?e.claim_result_after.map(r=>F_(r,!1)):[],n=[...t,...s];
4return{scheduledWorkForCreateClaimsId:typeof e?.scheduled_work_for_create_claims_id=="string"?e.scheduled_work_for_create_claims_id:"",scheduledWorkUkName:typeof e?.scheduled_work_uk_name=="string"?e.scheduled_work_uk_name:"",scheduledWorkTitle:typeof e?.scheduled_work_title=="string"?e.scheduled_work_title:"",claimExecutorShortName:typeof e?.claim_executor_short_name=="string"?e.claim_executor_short_name:"",scheduledWorkDescription:typeof e?.scheduled_work_description=="string"?e.scheduled_work_description:"",scheduledWorkAddress:typeof e?.scheduled_work_address=="string"?e.scheduled_work_address:"",scheduledWorkPlace:typeof e?.scheduled_work_place=="string"?e.scheduled_work_place:"",claimExecutor:e?.claim_executor?x8({executor:e.claim_executor}).executor:null,claimStatus:sR(e?.claim_status),claimId:typeof e?.claim_id=="string"?e.claim_id:"",claimCreatedAt:typeof e?.claim_created_at=="string"?e.claim_created_at:"",isShowWorkResult:!!e?.is_show_work_result,claimResultComment:typeof e?.claim_result_comment=="string"?e.claim_result_comment:"",claimResultBefore:t,claimResultAfter:s,allAttachmentImage:n.filter(r=>r.isImage),allAttachmentDocuments:n.filter(r=>!r.isImage),feedbackValue:typeof e?.feedback_value=="boolean"?e.feedback_value:null,isShowProgressSteps:!!e?.is_show_progress_steps,starsValue:typeof e?.stars_value=="number"?e.stars_value:null,isVisibleStarsDialog:!!e?.is_visible_stars_dialog,isVisibleStarsValue:!!e?.is_visible_stars_value}}function nR(e){return{success:!!e?.success,maintenanceAndRepair:Array.isArray(e?.scheduled_work)?e.scheduled_work.map(Ym):[]}}function rR(e){return{success:!!e?.success,total:typeof e?.total=="number"?e.total:0,history:Array.isArray(e?.history)?e.history.map(Ym):[]}}function iR(e){return{id:typeof e?.id=="string"?e.id:"",title:typeof e?.title=="string"?e.title:""}}function oR(e){return{success:!!e?.success,categories:Array.isArray(e?.categories)?e.categories.map(iR):[]}}function aR(e){return{title:typeof e?.title=="string"?e.title:"",date:typeof e?.date=="string"?e.date:"",isFinal:!!e?.is_final}}function lR(e){return{pageTitle:typeof e?.page_title=="string"?e.page_title:"",incidentTitle:typeof e?.incident_title=="string"?e.incident_title:"",showResultButton:!!e?.show_result_button,status:typeof e?.status=="string"?e.status:"",steps:Array.isArray(e?.steps)?e.steps.map(aR):[]}}const cR=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","heic","heif"]);function uR(e){if((typeof e.mime_type=="string"?e.mime_type.toLowerCase():"").startsWith("image/"))return!0;const s=typeof e.original_name=="string"?e.original_name:typeof e.name=="string"?e.name:"";return cR.has((s.split(".").pop()??"").toLowerCase())}function N_(e,t){const s=e??{};return{id:typeof s.id=="string"?s.id:"",name:typeof s.original_name=="string"?s.original_name:typeof s.name=="string"?s.name:"",url:typeof s.url=="string"?s.url:"",mimeType:typeof s.mime_type=="string"?s.mime_type:"",isBefore:t,isImage:uR(s)}}function dR(e){return{claimId:typeof e?.claim_id=="string"?e.claim_id:"",title:typeof e?.title=="string"?e.title:"",currentStep:typeof e?.current_step=="string"?e.current_step:"",date:typeof e?.date=="string"?e.date:"",status:typeof e?.status=="string"?e.status:"",showResultButton:!!e?.show_result_button}}function fR(e){return{title:typeof e?.title=="string"?e.title:"",date:typeof e?.date=="string"?e.date:"",isFinal:!!e?.is_final}}function pR(e){return{title:typeof e?.title=="string"?e.title:"",description:typeof e?.description=="string"?e.description:"",incidents:Array.isArray(e?.incidents)?e.incidents.map(dR):[]}}function hR(e){const t=Array.isArray(e?.result_files_before)?e.result_files_before.map(r=>N_(r,!0)):[],s=Array.isArray(e?.result_files_after)?e.result_files_after.map(r=>N_(r,!1)):[],n=[...t,...s];return{pageTitle:typeof e?.page_title=="string"?e.page_title:"",incidentTitle:typeof e?.incident_title=="string"?e.incident_title:"",showResultButton:!!e?.show_result_button,status:typeof e?.status=="string"?e.status:"",steps:Array.isArray(e?.steps)?e.steps.map(fR):[],resultComment:typeof e?.result_comment=="string"?e.result_comment:"",resultFilesBefore:t,resultFilesAfter:s,allAttachmentImage:n.filter(r=>r.isImage),allAttachmentDocuments:n.filter(r=>!r.isImage)}}function mR(e){return{success:e.success??!1,address:e.address??"",fiasId:e.fias_id??""}}function gR(e){return{success:e.success??!1,address:e.address??"",newComplaintButton:e.new_complaint_button??!1,showAiHelpers:e.blocks?.ai_helpers?.show===!0,showServicesV2:e.blocks?.services_v2?.show===!0,blocks:bR(e.blocks)}}function yR(e){const t=new Set,s=i=>{if(i.type!=="water_subscription_block"&&i.type!=="water_subscription")return!0;const o=i.content.waterSubscriptionId;return!o||t.has(o)?!1:(t.add(o),!0)},n=B_(e.left_column).filter(s),r=B_(e.right_column).filter(s);if(e.water_subscription_block){const o={type:"water_subscription_block",content:_8(e.water_subscription_block),rawContent:e.water_subscription_block};s(o)&&n.push(o)}return{success:e.success??!1,address:e.address??"",newComplaintButton:e.new_complaint_button??!1,newComplaintButtonTitle:e.new_complaint_button_title??"",leftColumn:n,right
4Column:r}}function B_(e){return Array.isArray(e)?e.filter(t=>{const s=(t?.type??"").trim();return!(s==="water_subscription"||s==="water_subscription_block")||Qm(t?.content)}).map(_R):[]}function _R(e){const t=(e?.type??"").trim(),s=e?.content??{},n=vR(t,s);return{type:t,content:n,rawContent:s}}function vR(e,t){const s=Qm(t)?t:{};switch(e){case"water_subscription":case"water_subscription_block":return _8(s);case"gku_block":return IR(s);case"residences_counter":return P8(s);case"rating":return D8(s);case"popular_categories":return M8(s);case"promo_banner":return vh(s);case"banners":return $R(s);case"posts":return wR(s);case"incidents":return ER(s);case"claims":return F8(s);case"butlerpro":return E8(s);case"download_app":return TR(s);case"premises_debt":return PR(s);case"contacts":return DR(s);case"services":return L8(s);case"scheduled_works":return HR(s);case"ai_helpers":case"ai-helpers":return Km(s);case"services_v2":case"for_home":return f1(s);default:return s}}function bR(e){const t=e??{},s=kR(t),[n]=s;return{residencesCounter:t.residences_counter?P8(t.residences_counter):void 0,promoBanner:n,promoBanners:s,rating:t.rating?D8(t.rating):void 0,services:t.services?L8(t.services):void 0,butlerProBlock:t.butlerProBlock?E8(t.butlerProBlock):void 0,posts:Array.isArray(t.posts)?t.posts.map(R8):void 0,popularCategories:t.popular_categories?M8(t.popular_categories):void 0,claims:t.claims?F8(t.claims):void 0,aiHelpers:t["ai-helpers"]?Km(t["ai-helpers"]):void 0}}function Km(e){return{title:e.title??"",description:e.description??"",items:Array.isArray(e.items)?e.items.map(xR):[]}}function xR(e){const t=e??{};return{id:t.id??"",type:t.type??"",categoryId:t.category_id??"",categoryName:t.category_name??""}}function kR(e){if(Array.isArray(e.promo_banners)){const s=e.promo_banners.filter(n=>!V_(n)).map(vh);if(s.length>0)return s}const t=e.promo_banner;return V_(t)||!t?[]:[vh(t)]}function V_(e){return e?[e.title,e.text,e.button_text,e.button_link,e.image_url,e.background_color].every(t=>!t):!0}function wR(e){const t=e??{};return{posts:Array.isArray(t.posts)?t.posts.map(R8):[]}}function P8(e){const t=CR(e.title);return{title:t.text,titleIsBold:t.isBold,buttonText:e.button_text??"",description:e.description??"",residencesCountText:e.residences_count_text??"",needResidencesProgressBar:e.need_residences_progress_bar??!1,registerResidencesFraction:j_(e.register_residences_fraction),needInviteButton:e.need_invite_button??!0,needResidencesFraction:j_(e.need_residences_fraction),needResidencesText:e.need_residences_text??"",invitationsText:e.invitations_text??"",imageUrl:e.image_url??""}}function CR(e){return typeof e=="string"?{text:e,isBold:!1}:{text:e?.text??"",isBold:e?.is_bold??!1}}function vh(e){return{title:e.title??"",text:e.text??"",buttonText:e.button_text??"",buttonLink:e.button_link??"",imageUrl:e.image_url??"",imageWidth:d1(e.image_width),imageHeight:d1(e.image_height),backgroundColor:e.background_color??""}}function $R(e){const t=e??{};return{banners:Array.isArray(t.banners)?t.banners.map(SR):[]}}function SR(e){const t=e??{};return{backgroundColor:t.background_color??"",title:t.title??"",description:t.description??"",buttonText:t.button_text??"",iconUrl:t.icon_url??"",imageHeight:d1(t.image_height),imageWidth:d1(t.image_width),url:t.url??"",premisesId:t.premises_id??"",titleColor:t.title_color??"",descriptionColor:t.description_color??"",buttonColor:t.button_color??"",buttonBackgroundColor:t.button_background_color??""}}function d1(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0}function D8(e){return{blockTitle:e.block_title??"",blockSubtitle:e.block_subtitle??"",ratingNumber:typeof e.rating_number=="number"?e.rating_number:0,ratingNumberIconUrl:e.rating_number_icon_url??"",appStepActionIconUrl:e.app_step_action_icon_url??"",appStepIconUrl:e.app_step_icon_url??"",appStepTitle:e.app_step_title??"",appScreen:e.app_screen??"",processTitle:e.process_title??"",nextRatingOpportunities:Array.isArray(e.next_rating_opportunities)?e.next_rating_opportunities.map(AR):[],actionMarkers:k8(e.action_markers),imageUrl:e.image_url??""}}function AR(e){const t=e??{};return{title:t.title??"",iconUrl:t.icon_url??""}}function IR(e){return{meteringDeviceValueSending:e.metering_device_value_sending??!1,gkuPayment:e.gku_payment??!1}}function E8(e){return{title:e.title??"",subtitle:e.subtitle??"",buttonText:e.button_text??"",url:e.url??""}}function TR(e){return{title:e.title??"",subtitle:e.subtitle??"",googlePlayUrl:e.google_play_url??"",appStoreUrl:e.app_store_url??"",rustoreUrl:e.rustore_url??"",apkUrl:e.apk_url??"",qrCodeUrl:e.qr_code_url??""}}function PR(e){return{debtTitle:e.debt_title??"",debtorsTitle:e.debtors_title??""}}function DR(e){return{premisesContactId:e.premises_contact_id??"",name:e.name??"",phone:e.phone??""}}function ER(e){return{title:e.title??"",subtitle:e.subtitle??"",incidentsTitles:Array.isArray(e.incidents_titles)?e.incidents_titles.filter(t=>typeof t=="string"):[]}}function L8(e){const t=e.money_fees;return{isStub:e.is_stub??!1,surveysCount:typeof e.surveys_count=="number"?e.surveys_count:0,surveys:e.surveys?H_(e.surveys,LR):void 0,moneyFees:Array.isArray(t)?t.map(q_):[],moneyFeesAction:Qm(t)?H_(t,q_):void 0}}function H_(e,t){const s=e??{};return{title:s.title??"",subtitle:s.subtitle??"",buttonText:s.button_text??"",items:Array.isArray(s.items)?s.items.map(t):[]}}function LR(e){const t=e??{};return{surveyId:t.survey_id??"",title:t.title??"",votingFinishedAt:t.voting_finished_at??"",buttonText:t.button_text??""}}function q_(e){const t=e??{};return{moneyFeeId:t.money_fee_id??"",description:t.description??"",paidAmount:t.paid_amount??"",mainTextValue:t.main_text_value??"",mainImgLink:t.main_img_link??"",markers:Array.isArray(t.markers)?t.markers.map(RR):[]}}function RR(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??""}}function R8(e){const t=e??{};return{postId:t.post_id??"",type:t.type??"",status:MR(t.status,t.status_color),rejectionComment:t.rejection_comment??"",title:t.title??"",body:t.body??"",price:typeof t.price=="number"?t.price:0,category:t.category??"",eventStartAt:t.event_start_at??"",eventFinishAt:t.event_finish_at??"",whatsappLink:t.whatsapp_link??"",telegramLink:t.telegram_link??"",maxLink:t.max_link??"",createdAt:t.created_at??"",isPublished:t.is_published??!1,author:OR(t.author),premises:FR(t.premises),likesCount:typeof t.likes_count=="number"?t.likes_count:0,commentsCount:typeof t.comments_count=="number"?t.comments_count:0,attendeesCount:typeof t.attendees_count=="number"?t.attendees_count:0,isLiked:t.is_liked??!1,isAttended:t.is_attended??!1,imageUrls:Array.isArray(t.image_urls)?t.image_urls.filter(s=>typeof s=="string"):[]}}function MR(e,t){return e==null?null:typeof e=="string"?{text:e,color:t??""}:{text:e.text??"",color:e.color??t??""}}function OR(e){const t=e??{};return{userId:t.user_id??"",firstName:t.first_name??"",lastName:t.last_name??"",fio:t.fio??"",avatarUrl:t.avatar_url??""}}function FR(e){const t=e??{};return{premisesId:t.premises_id??"",address:t.address??"",coordinates:{lat:typeof t.coordinates?.lat=="number"?t.coordinates.lat:0,lon:typeof t.coordinates?.lon=="number"?t.coordinates.lon:0},distance:typeof t.distance=="number"?t.distance:0}}function M8(e){return{categories:Array.isArray(e.categories)?e.categories.map(O8):[],services:e.services?f1(e.services):void 0,forHome:e.for_home?f1(e.for_home):void 0}}function f1(e){return{title:e.title??"",items:Array.isArray(e.items)?e.items.map(O8):[]}}function O8(e){const t=e??{},s=Array.isArray(t.work_types)?t.work_types.filter(n=>typeof n=="string"):[];return{id:t.id??"",title:t.title??"",iconUrl:t.icon_url||void 0,workTypes:s,workTypesCount:typeof t.work_types_count=="number"?t.work_types_count:s.length,description:t.description||void 0,markers:Array.isArray(t.markers)?t.markers.filter(n=>typeof n=="string"):[],priceFrom:typeof t.price_from=="number"?t.price_from:void 0,priceTo:typeof t.price_to=="number"?t.price_to:void 0,isNewCategory:t.is_new_category??!1,isFoodDelivery:t.is_food_delivery??!1,isWaterDelivery:t.is_water_subscription===!0&&!!String(t.water_supplier_company_id??"").trim()}}function F8(e){return{title:e.title??"",subtitle:e.subtitle??"",claims:Array.isArray(e.claims)?e.claims.map(NR):[]}}function NR(e){const t=e??{};return{title:t.title??"",status:VR(t.status),dateText:t.date_text??"",priceText:t.price_text??"",claimId:t.claim_id??"",createdAt:t.created_at??"",markers:Array.isArray(t.markers)?t.markers.map(BR
4):[],text:t.text??"",workTypeName:t.work_type_name??"",amountString:t.amount_string??"",isHasUnreadMessages:t.is_has_unread_meessages??!1,messagesAllowed:t.messages_allowed??!1}}function BR(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??"",iconUrl:t.icon_url??"",needIndicator:t.need_indicator??!1}}function VR(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??""}}function j_(e){return typeof e!="number"||Number.isNaN(e)?0:Math.max(0,Math.min(1,e))}function HR(e){const t=e??{};return{works:Array.isArray(t.works)?t.works.map(qR):[]}}function qR(e){const t=e??{},s=t.claim_status??{},n=s.type??"";return{scheduledWorkForCreateClaimsId:t.scheduled_work_for_create_claims_id??"",scheduledWorkUkName:t.scheduled_work_uk_name??"",scheduledWorkTitle:t.scheduled_work_title??"",claimExecutorShortName:t.claim_executor_short_name??null,scheduledWorkDescription:t.scheduled_work_description??"",claimStatus:{type:n,text:s.text??"",isDone:n!=="in_progress"}}}function Qm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ct(e){return typeof e=="string"?e:e==null?"":String(e)}function Od(e){if(typeof e=="number")return e;const t=Number(e);return Number.isFinite(t)?t:0}function io(e){return Math.trunc(Od(e))}function Wn(e){if(typeof e=="boolean")return e;const t=Ct(e).toLowerCase();return t==="true"||t==="1"}function U_(e){const t=e??{};return{success:Wn(t.success),posts:Array.isArray(t.posts)?t.posts.map(Xm):[],total:io(t.total)}}function jR(e){const t=e??{};return{success:Wn(t.success),post:Xm(t.post),anotherPostCountByAuthor:io(t.another_service_count_by_author)}}function UR(e){const t=e??{};return{success:Wn(t.success),reasons:Array.isArray(t.reasons)?t.reasons.map(KR).filter(s=>s.value.length>0):[]}}function zR(e){const t=e??{},s=z_(t.types,"type"),n=z_(t.categories,"category");return{success:Wn(t.success),types:s,categories:n,items:[...s,...n]}}function Xm(e){const t=e??{},s=Array.isArray(t.comments)?t.comments.map(r=>B8(r)):[],n=WR(t);return{postId:Ct(t.post_id),type:Ct(t.type),isMine:Wn(t.is_mine),isPublished:Wn(t.is_published),status:XR(t.status,t.status_color),rejectionComment:Ct(t.rejection_comment),title:Ct(t.title),body:Ct(t.body),price:io(t.price),category:Ct(t.category),eventStartAt:Ct(t.event_start_at),eventFinishAt:Ct(t.event_finish_at),whatsappLink:Ct(t.whatsapp_link),telegramLink:Ct(t.telegram_link),maxLink:Ct(t.max_link),createdAt:Ct(t.created_at),likesCount:io(t.likes_count),commentsCount:t.comments_count==null?s.length:io(t.comments_count),attendeesCount:io(t.attendees_count),isLiked:Wn(t.is_liked),isAttended:Wn(t.is_attended),previewImageUrl:Ct(t.preview_image_url),imageUrls:n.map(r=>r.url).filter(Boolean),attachments:n,author:t.author?N8(t.author):null,premises:t.premises?YR(t.premises):null,comments:s}}function WR(e){const t=Array.isArray(e.attachments)?e.attachments.map(GR):[],s=Array.isArray(e.image_urls)?e.image_urls.map(Ct).filter(Boolean):[];if(t.length>0)return[...t].sort((r,i)=>r.showPriority-i.showPriority);if(s.length>0)return s.map((r,i)=>({postAttachmentId:"",originalName:"",fileName:"",mimeType:"",showPriority:i,url:r}));const n=Ct(e.preview_image_url);return n?[{postAttachmentId:"",originalName:"",fileName:"",mimeType:"",showPriority:0,url:n}]:[]}function GR(e){const t=e??{};return{postAttachmentId:Ct(t.post_attachment_id),originalName:Ct(t.original_name),fileName:Ct(t.file_name),mimeType:Ct(t.mime_type),showPriority:io(t.show_priority),url:Ct(t.url)}}function N8(e){const t={userId:Ct(e.user_id),fio:Ct(e.fio),firstName:Ct(e.first_name),lastName:Ct(e.last_name),middleName:Ct(e.middle_name),avatarUrl:Ct(e.avatar_url)},s=t.fio||[t.lastName,t.firstName,t.middleName].filter(Boolean).join(" ");return{...t,fullName:s}}function YR(e){const t=Ct(e.address),s=Ct(e.kvp24_address);return{premisesId:Ct(e.premises_id),address:t,kvp24Address:s,displayAddress:t||s,coordinates:{lat:Od(e.coordinates?.lat),lon:Od(e.coordinates?.lon)},distance:Od(e.distance)}}function KR(e){const t=e??{};return{value:Ct(t.value),title:Ct(t.title)}}function z_(e,t){return Array.isArray(e)?e.map(s=>QR(s,t)).filter(s=>s.value.length>0):[]}function QR(e,t){const s=e??{},n=Ct(s.value);return{value:n,title:Ct(s.title)||n,type:t}}function B8(e,t){const s=e??{},n=s.author??s.user,r=n?N8(n):null,i=Ct(s.post_comment_id),o=Ct(s.reply_to_comment_id||t?.postCommentId),l=Ct(s.reply_to_name)||t?.author?.fullName||"",u={postCommentId:i,body:Ct(s.body||s.text),createdAt:Ct(s.created_at),replyToCommentId:o,replyToName:l,isRemoved:Wn(s.is_removed),isEdited:Wn(s.is_edited),isHighlighted:Wn(s.is_highlighted),like
4sCount:io(s.likes_count),isLiked:Wn(s.is_liked),authorRole:Ct(s.author_role),author:r,replies:[]},d=Array.isArray(s.replies)?s.replies.map(f=>B8(f,u)):[];return{...u,replies:d}}function XR(e,t){return e==null?null:typeof e=="string"?{text:e,color:Ct(t)}:{text:Ct(e.text),color:Ct(e.color||t)}}const bh=Ke("push",{state:()=>({fcmToken:null}),getters:{hasUsableToken:e=>typeof Notification>"u"?!1:Notification.permission==="granted"&&!!e.fcmToken},actions:{setToken(e){this.fcmToken=e},clear(){this.fcmToken=null},devicePushFields(){return this.hasUsableToken?{push_token_type:"fcm",push_token:this.fcmToken,is_prohibited_push_notifications:!1}:{is_prohibited_push_notifications:!0}}}});function ZR(e){const t=Array.isArray(e.categories)?e.categories:[];return{success:e.success??!1,categories:t.map(JR)}}function JR(e){const t=e??{},s=typeof t.icon_url=="string"&&t.icon_url.length>0?t.icon_url:void 0,n=typeof t.description=="string"&&t.description.length>0?t.description:void 0;return{id:typeof t.id=="string"?t.id:"",title:typeof t.title=="string"?t.title:"",description:n,iconUrl:s}}function eM(e){return{success:e.success??!1,ratingInfo:e.rating_info?c0(e.rating_info):null,ratingOpportunityBanner:e.rating_opportunity_banner?u0(e.rating_opportunity_banner):null,notAllowedByRatingText:e.not_allowed_by_rating_text??"",isICanManage:e.is_i_can_manage??!1,info:e.info?tM(e.info):null,chats:Array.isArray(e.chats)?e.chats.map(sM):[],cleaningSchedule:e.cleaning_schedule??"",initGroup:Array.isArray(e.init_group)?e.init_group.map(nM):[],ossFiles:Array.isArray(e.oss_files)?e.oss_files.map(V8):[],contacts:Array.isArray(e.contacts)?e.contacts.map(oM):[]}}function tM(e){const t=e??{};return{name:t.name??"",constructionYear:t.construction_year??null,entranceCount:t.entrance_count??null,floorCount:t.floor_count??null,imageUrl:t.image_url??""}}function sM(e){const t=e??{};return{premisesChatId:t.premises_chat_id??"",name:t.name??"",link:t.link??"",messenger:t.messenger??"",description:t.description??""}}function nM(e){const t=e??{};return{premisesInfoInitGroupId:t.premises_info_init_group_id??"",name:t.name??"",description:t.description??""}}function rM(e){const t=e??{},s=t.role==="init_group_man"||t.role==="entrance_senior"?t.role:"chairman";return{premisesInfoInitGroupId:t.premises_info_init_group_id??"",role:s,firstName:t.first_name??"",lastName:t.last_name??"",entrance:t.entrance??""}}function iM(e){return V8(e)}function V8(e){const t=e??{};return{premisesOssFileId:t.premises_oss_file_id??"",startAt:t.start_at??"",finishedAt:t.finished_at??"",agendaFile:t.agenda_file?W_(t.agenda_file):null,protocolFile:t.protocol_file?W_(t.protocol_file):null}}function W_(e){const t=e??{};return{originalName:t.original_name??"",mimeType:t.mime_type??"",url:t.url??""}}function oM(e){const t=e??{};return{premisesContactId:t.premises_contact_id??"",name:t.name??"",phone:t.phone??""}}function G_(e,t){for(const[s,n]of t.entries()){if(n.type==="attachment"){e.append(`attachment_client_ids[${s}]`,n.attachment.postAttachmentId||n.attachment.url);continue}e.append("files",n.file),e.append(`attachment_client_ids[${s}]`,n.clientId)}}function Y_(e,t){return{type:"file",file:e,clientId:typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${t}-${e.name}`}}function ue(){const{get:e,getApi:t,post:s,postApi:n,put:r,putApi:i,patch:o,delete:l,deleteApi:u}=iD(),d=async(O,B,Z)=>{const Ce=Ne();Ce.initDeviceId();const et={phone:O,device:{os_type:"web",vendor_id:Ce.deviceId,...bh().devicePushFields()},acceptances:{terms:!0,privacy:!0,consent:!0}};return B&&(et.segmentation_choice=B),Z&&(et.category_name=Z),s("auth",et,void 0,qf)},f=async(O,B,Z)=>s("auth/finish",{phone:O,code:Z,id:B},void 0,qf),h=async(O=null)=>{let B;return O!=null&&(B={btlrsid:O}),await e("preload/bysession",B,__)},g=async O=>await e("preload/bysession",void 0,__,void 0,{sessionTokenOverride:O,handleUnauthorized:!1}),m=async()=>await t("me",void 0,oD),_=async O=>{const B=new FormData;return B.append("avatar",O),await n("me/avatar",B)},v=async(O,B)=>{const Z={id:O};return B!=null&&B.length>0&&(Z.btlrsid=B),await e("residents/premises-invite/info",Z,zE)},k=async(O,B,Z)=>{const Ce={};return O!=null&&O.length>0&&(Ce.premises_id=O),B!=null&&B.length>0&&(Ce.btlrsid=B),Z!=null&&Z.length>0&&(Ce.resident_id=Z),await e("premises/screen",Ce,YE)},x=async(O,B=!1)=>await e(`residents/${O}/employees`,{page:1,count:50,invited_by_me:B},gD),C=async(O,B)=>await e(`residents/${O}/employee-invites/${B}`,void 0,b_),w=async O=>await l(`residents/${O}`,void 0,yt),$=async(O,B,Z)=>await s(`residents/${O}/employee-invites`,{phone:B,fio:Z},void 0,b_),S=async O=>
4await e("screen/office/office-invite-block/",{resident_id:O},KE),I=async O=>await e("premises/user-rating/my",{premises_id:O},Gf),P=async O=>await e("premises/user-rating/new-level-info",{premises_id:O},Gf),L=async(O,B)=>await s("premises/user-rating/my/view",{rating:B},{premises_id:O},Gf),D=async O=>await e("premises/user-rating/info",{premises_id:O},KL),R=async(O,B)=>await s("premises/user-rating/opportunity-banner/view",{opportunity_banner:B},{premises_id:O},yt),F=async O=>await t(`premises/${O}/info/screen`,void 0,eM),N=async(O,B)=>{const Z=new FormData;return B.imageFile&&Z.append("images",B.imageFile),B.info.name&&Z.append("name",B.info.name),B.info.constructionYear!=null&&Z.append("construction_year",String(B.info.constructionYear)),B.info.floorCount!=null&&Z.append("floor_count",String(B.info.floorCount)),B.info.entranceCount!=null&&Z.append("entrance_count",String(B.info.entranceCount)),B.removeImage&&Z.append("remove_image","true"),await i(`premises/${O}/info`,Z,void 0,()=>!0)},z=async(O,B,Z)=>{const Ce={messenger:Z.messenger};Z.link&&(Ce.link=Z.link),Z.name&&(Ce.name=Z.name),Z.description&&(Ce.description=Z.description);const et=B?{premises_chat_id:B}:void 0;return B?await i(`premises/${O}/info/chats`,Ce,et,()=>!0):await n(`premises/${O}/info/chats`,Ce,void 0,()=>!0)},me=async(O,B)=>await u(`premises/${O}/info/chats`,{premises_chat_id:B},()=>!0),ge=async(O,B)=>await n(`premises/${O}/info/cleaning-schedule`,{cleaning_schedule:B},void 0,()=>!0),fe=async O=>await t(`premises/${O}/info/cleaning-schedule/example`,void 0,B=>B.cleaning_schedule??""),te=async(O,B)=>await t(`premises/${O}/info/init-group`,{premises_info_init_group_id:B},Z=>rM(Z.premises_info_init_group)),V=async(O,B,Z)=>{const Ce={role:Z.role||"chairman"};return Z.lastName&&(Ce.last_name=Z.lastName),Z.firstName&&(Ce.first_name=Z.firstName),Z.entrance&&(Ce.entrance=Z.entrance),B?await i(`premises/${O}/info/init-group`,Ce,{premises_info_init_group_id:B},()=>!0):await n(`premises/${O}/info/init-group`,Ce,void 0,()=>!0)},pe=async(O,B)=>await u(`premises/${O}/info/init-group`,{premises_info_init_group_id:B},()=>!0),ye=async(O,B)=>await t(`premises/${O}/info/oss-files`,{premises_oss_file_id:B},Z=>iM(Z.premises_oss_file)),ne=async(O,B,Z)=>{const Ce=new FormData,et=new Date(Z.startAt),gt=new Date(Z.finishedAt);return gt.setHours(23,59,59,999),Z.agendaFile&&Ce.append("agenda",Z.agendaFile),Z.protocolFile&&Ce.append("protocol",Z.protocolFile),Ce.append("timezone",String(-new Date().getTimezoneOffset())),Ce.append("start_at",et.toISOString()),Ce.append("finished_at",gt.toISOString()),B&&!Z.agendaFile&&Ce.append("remove_agenda_file","false"),B&&!Z.protocolFile&&Ce.append("remove_protocol_file","false"),B?await i(`premises/${O}/info/oss-files`,Ce,{premises_oss_file_id:B},()=>!0):await n(`premises/${O}/info/oss-files`,Ce,void 0,()=>!0)},ve=async(O,B)=>await u(`premises/${O}/info/oss-files`,{premises_oss_file_id:B},()=>!0),J=async(O,B,Z)=>{const Ce={name:Z.name,phone:Z.phone.replace(/\D/g,"")};return B?await i(`premises/${O}/info/contacts`,Ce,{premises_contact_id:B},()=>!0):await n(`premises/${O}/info/contacts`,Ce,void 0,()=>!0)},he=async(O,B)=>await u(`premises/${O}/info/contacts`,{premises_contact_id:B},()=>!0),Ee=async O=>await e(`premises/${O}/invite-methods`,void 0,WE),He=async(O,B=1,Z=15)=>await e(`premises/${O}/init-group-users/list`,{"pagination[page]":B,"pagination[count]":Z},sL),de=async O=>await e(`premises/${O}/init-group-users/info`,void 0,oL),Me=async(O,B=1,Z=20)=>await e("chats/conversations",{premises_id:O,"pagination[page]":B,"pagination[count]":Z},aL),De=async O=>await s("chats/conversations",{user_id:O},void 0,lL),ze=async(O,B=1,Z=50)=>await e(`chats/conversations/${O}/messages`,{"pagination[page]":B,"pagination[count]":Z},cL),Ue=async(O,B,Z)=>{const Ce=new FormData;return B&&Ce.append("text",B),Z&&Ce.append("files",Z),await s(`chats/conversations/${O}/messages`,Ce,void 0,uL)},ut=async O=>await s(`chats/conversations/${O}/read`,void 0,void 0,dL),H=async O=>await t("executors/on-shift",{premises_id:O},hL),Y=async(O,B)=>await t(`executors/${O}/info`,{premises_id:B},mL),W=async({premisesId:O,page:B=1,count:Z=20,filter:Ce="active"})=>await e(`premises/${O}/surveys/redesigned`,{"pagination[page]":B,"pagination[count]":Z,filter:Ce},yL),_e=async(O,B,Z)=>await s(`premises/${O}/surveys/${B}/voice`,{value:Z},void 0,yt),ae=async(O,B)=>await t(`premises/${O}/surveys/redesigned/${B}`,void 0,_L),M=async(O,B)=>await l(`premises/${O}/surveys/redesigned/${B}`,void 0,yt),q=async({premisesId:O,title:B,question:Z,votingType:Ce,customValues:et,votingFinishedAt:gt,files:mt})=>{const Ot=new FormData;Ot.append("title",B),Ot.append("question",Z),Ot.append("voting_type",Ce),Ot.append("voting_finished_at",gt);for(const At of et)Ot.append("custom_values[]",At);for(const At of mt)Ot.append("files",At);return await s(`premises/${O}/surveys/redesigned`,Ot,void 0,yt)},re=async({premisesId:O,page:B=1,count:Z=10})=>await t(`premises/${O}/premises-balance`,{"pagination[page]":B,"pagination[count]":Z},CL),ce=async({premisesId:O,moneyFeeId:B})=>
4await t(`premises/${O}/premises-money-fee/${B}`,void 0,$L),ie=async(O,B)=>{const Z={name:B.name,comment:B.comment,type:"optional"};return B.amount!==void 0&&(Z.amount=B.amount),B.finishedAt&&(Z.finished_at=B.finishedAt),await s(`premises/${O}/premises-money-fee`,Z,void 0,yt)},$e=async(O,B,Z)=>{const Ce={name:Z.name,comment:Z.comment,type:"optional"};return Z.amount!==void 0&&(Ce.amount=Z.amount),Z.finishedAt&&(Ce.finished_at=Z.finishedAt),await r(`premises/${O}/premises-money-fee/${B}`,Ce,void 0,yt)},se=async(O,B)=>await s(`premises/${O}/premises-money-fee/${B}/finish`,void 0,void 0,yt),xe=async(O,B,Z,Ce)=>await s(`premises/${O}/premises-money-fee/${Z}/payment`,{amount:Ce},{resident_id:B},yt),Ve=async({premisesId:O,moneyFeeId:B,page:Z=1,count:Ce=10})=>await t(`premises/${O}/premises-money-fee/${B}/payers`,{"pagination[page]":Z,"pagination[count]":Ce},SL),Ze=async O=>await t(`premises/${O}/premises-debt`,void 0,EL),Je=async(O,B)=>{const Z={};return O&&(Z.contract_number=O),B&&(Z.major_repair_contract_number=B),await t("gku/contract-number/debts",Z,WD)},dt=async O=>await t(`gku/contract-number/${O}/payments/debt-pay-screen`,void 0,GD),ft=async(O,B)=>await s("gku/contract-number",{contract_number:O,resident_id:B},void 0,yt),It=async O=>await t(`gku/contract-number/${O}/metering`,void 0,YD),Wt=async(O,B)=>await s(`gku/contract-number/${O}/metering`,{values:B},void 0,yt),ss=async(O,B)=>await t(`gku/contract-number/${O}/metering/${B}/history`,void 0,KD),Ps=async O=>await t(`gku/contract-number/${O}/payments/screen`,void 0,eE),Ms=async O=>await t(`gku/contract-number/${O}/payments/history`,void 0,tE),Gt=async O=>await t(`premises/${O}/uk-schedule`,void 0,RL),Le=async({premisesId:O,categoryId:B})=>{const Z={};return O&&(Z.premises_id=O),B&&(Z["filter[category_id]"]=B),await t("scheduled-work",Z,nR)},ee=async({premisesId:O,maintenanceAndRepairId:B,claimId:Z})=>{const Ce={};return O&&(Ce.premises_id=O),Z&&(Ce.claim_id=Z),await t(`scheduled-work/${B}`,Ce,Ym)},Pe=async O=>{const B={};return O&&(B.premises_id=O),await t("scheduled-work/categories",B,oR)},Ge=async({premisesId:O,page:B,count:Z,categoryId:Ce,dateFrom:et,dateTo:gt})=>{const mt={page:B,count:Z};return O&&(mt.premises_id=O),Ce&&(mt["filter[category_id]"]=Ce),et&>&&(mt["filter[created_at_from]"]=et,mt["filter[created_at_to]"]=gt),await t("scheduled-work/history",mt,rR)},_t=async(O,B)=>await t(`premises/${O}/incidents/${B}`,void 0,lR),qt=async({premisesId:O,page:B,count:Z})=>await t(`premises/${O}/incidents`,{page:B,count:Z},pR),Ht=async(O,B)=>await t(`premises/${O}/incidents/${B}`,void 0,hR),ps=async({premisesId:O,claimId:B,value:Z,comment:Ce})=>{const et={value:Z},gt={};return Ce&&Ce.trim().length>0&&(et.comment=Ce.trim()),O&&(gt.premises_id=O),await s(`claims/${B}/feedback`,et,gt,yt)},ws=async O=>await t("management-company-reports",{address:O},BL),gs=async O=>{const B={};return O&&(B.premises_id=O),await t("management-company/details",B,qL)},xs=async(O,B,Z,Ce,et,gt=null,mt="",Ot="")=>{const At=dc(et),Pt={};return B.length>0&&(Pt.flat=B),At.length>0&&(Pt.flat_type=At),Z.length>0&&(Pt.entrance=Z),Ce.length>0&&(Pt.floor=Ce),At.length>0&&(Pt.flat_type=At),mt.trim().length>0&&(Pt.fio=mt.trim()),Ot.trim().length>0&&(Pt.organization_name=Ot.trim()),Pt.premises_invite_id=O,await s("residents/by-premises-invite",Pt,gt?{btlrsid:gt}:void 0,M_)},Zt=async(O,B,Z,Ce,et,gt,mt,Ot=null,At="")=>{const Pt=dc(mt),Ft={};Ce.length>0&&(Ft.flat=Ce),Pt.length>0&&(Ft.flat_type=Pt),et.length>0&&(Ft.entrance=et),gt.length>0&&(Ft.floor=gt),Pt.length>0&&(Ft.flat_type=Pt),At.trim().length>0&&(Ft.organization_name=At.trim());const Io={};return Io.premises_invite_id=O,Io.email=Z,Io.fio=B,Io.resident=Ft,await s("auth/signup-data-by-invite",Io,Ot?{btlrsid:Ot}:void 0,M_)},Ns=async O=>{const B={};return O!=null&&(B.premises_id=O),B.count=8,await e("services/categories/popular",B,vE)},en=async O=>{const B={};return O!=null&&(B.resident_id=O),await e("screens/services-v2",B,bE)},tn=async(O,B)=>{const Z={};return B!=null&&(Z.resident_id=B),await e(`screens/block/services-v2/${O}/work-types`,Z,Uf)},Os=async(O,B)=>await e(`screens/block/services-v2/${O}/work-types`,{resident_id:B},Uf),On=async O=>await e(`screens/block/services-v2/${O}/work-types`,void 0,Uf),wr=async(O,B)=>{const Z={};return O!=null&&(Z.premises_id=O),await e(`services/categories/${B}/work-types`,Z,v_)},Fn=async(O,B,Z)=>{const Ce={title:B};return O!=null&&(Ce.premises_id=O),await e("services/work-types/search",Ce,v_,Z)},Bi=async(O,B,Z,Ce)=>{const et={};B!=null&&(et.premises_id=B);const gt=Object.keys(et).length>0?et:void 0,mt={};return Ce>0&&(mt.rating=Ce),Z.length>0&&(mt.comment=Z),await s(`claims/${O}/accept-work`,mt,gt,yt)},ke=async(O,B,Z,Ce)=>{const et={};B!=null&&(et.premises_id=B);const gt=Object.keys(et).length>0?et:void 0,mt={};return Ce>0&&(mt.rating=Ce),Z.length>0&&(mt.comment=Z),await s(`claims/${O}/decline-work`,mt,gt,S_)},Fe=async(O,B,Z)=>{const Ce={};B!=null&&(Ce.premises_id=B);const et=Object.keys(Ce).length>0?Ce:void 0,gt={};return Z.length>0&&(gt.comment=Z),await s(`claims/${O}/cancel`,gt,et,yt)},ct=async()=>await e("claims/need-actions",void 0,kE),at=async(O,B)=>{const Z={};B!=null&&(Z.premises_id=B);const Ce=Object.keys(Z).length>0?Z:void 0;return await s(`claims/${O}/view-stage`,void 0,Ce,yt)},Mt=async(O,B)=>await s(`claims/${O}/payment`,void 0,{premises_id:B},yt),ys=async(O,B)=>{const Z={};return O!=null&&(Z.premises_id=O),await e(`services/work-types/${B}`,Z,ED)},Bs=async(O,B,Z,Ce)=>{const et={};return O!=null&&(et.premises_id=O,et.count=Z),await e(`services/work-types/${B}
4/get-amount`,et,hD,Ce)},Nn=async(O,B,Z,Ce,et,gt,mt)=>{const Ot={},At={};if(O!=null&&(Ot.resident_id=O),At.work_type_id=B,At.text=Z,Ce!=null&&Ce.length>0){const Pt=parseInt(Ce,0);isNaN(Pt)||(At.count=Ce)}return await s("services/claims",At,Ot,S_)},Bn=async O=>{const B={};return O!=null&&(B.premises_id=O),await e("services/categories",B,ID)},hn=async()=>await e("services/proxy/demo/categories",void 0,ZR),Vi=async()=>await e("cards",void 0,RD),Ao=async({page:O=1,count:B=25,timezone:Z,status:Ce,dateFrom:et,dateTo:gt}={})=>{const mt={"pagination[page]":O,"pagination[count]":B};return Z!=null&&(mt.timezone=Z),typeof Ce=="string"&&Ce.length>0&&(mt["filter[status]"]=Ce),typeof et=="string"&&et.length>0&&(mt["filter[date_from]"]=et),typeof gt=="string"&>.length>0&&(mt["filter[date_to]"]=gt),mt.is_paid_claim=!0,await e("payments",mt,HD)},Vn=async({billId:O,timezone:B})=>{const Z=B!=null?{timezone:B}:void 0;return await e(`payments/${O}`,Z,zD)},Dt=async O=>await s(`payments/${O}/pay`,void 0,void 0,yt),sn=async()=>await e("card/config",void 0,OD),ii=async(O,B)=>await s("card",{crypto_packet:O,finish_url:B},void 0,FD),nr=async O=>await o(`cards/${O}/prioritize`,void 0,void 0,yt),sc=async O=>await l(`cards/${O}`,void 0,yt),ka=async()=>await e("me",void 0,mD),wa=async(O,B)=>await s("screen/edit_personal_data/done",{fio:O,email:B},void 0,yt),oi=async O=>await r("me",{about_me:O},void 0,yt),Cr=async(O,B)=>await r("me/personal",{email:O},void 0,yt,void 0,B?{sessionTokenOverride:B,handleUnauthorized:!1}:void 0),rr=async O=>await s("me/email/confirm-request",{email:O},void 0,yt),Hi=async O=>await r("me/personal",{fio:O},void 0,yt),$r=async O=>await r("me",{is_visible_in_neighbors:O},void 0,yt),ai=async()=>await s("auth/logout",void 0,void 0,yt),$n=async()=>await l("me",void 0,yt),Ca=async O=>{const B={};return O!=null&&(B.premises_id=O),await e("claims/proxy/active",B,ND)},qi=async(O,B=!1,Z=1,Ce=8)=>await e(B?"claims/all":"claims/active",{premises_id:O,"pagination[page]":Z,"pagination[count]":Ce},I_),$a=async(O,B=1,Z=8)=>await e("claims/finished",{premises_id:O,"pagination[page]":B,"pagination[count]":Z},I_),Sa=async(O,B)=>{const Z={};return Z.premises_id=B,await e(`claims/${O}`,Z,EE)},nc=async(O,B,Z)=>{const Ce={premises_id:Z};return await e(`claims/${O}/additional-service-lists/${B}`,Ce,DE)},Aa=async(O,B,Z)=>{const Ce={premises_id:Z};return await s(`claims/${O}/additional-service-lists/${B}/approve`,void 0,Ce,yt)},Q=async(O,B,Z)=>{const Ce={premises_id:Z};return await s(`claims/${O}/additional-service-lists/${B}/decline`,void 0,Ce,yt)},Ie=async O=>await e("claims/cancel/reasons",{premises_id:O},LE),We=async(O,B)=>{const Z={};B!=null&&(Z.premises_id=B);const Ce=Object.keys(Z).length>0?Z:void 0;return await e(`claims/${O}/messages`,Ce,OE)},Be=async(O,B,Z,Ce)=>{const et={};B!=null&&(et.premises_id=B);const gt=Object.keys(et).length>0?et:void 0;let mt;return Ce?(mt=new FormData,Z&&mt.append("text",Z),mt.append("files",Ce)):mt=Z?{text:Z}:{},await s(`claims/${O}/messages`,mt,gt,yt)},ir=async(O,B)=>{const Z={premises_id:B};return await s(`claims/${O}/messages/read`,void 0,Z,yt)},qe=async O=>await e("resident-organization-details/company",{inn:O},HE),U=async O=>await e("resident-organization-details/bank",{bik:O},qE),we=async O=>await s("resident-organization-details",O,void 0,yt),Ye=async(O,B,Z)=>await e("ai-chat/payment-category",{resident_id:O,category_name:B,claim_category_id:Z},zf),nt=async(O,B,Z,Ce)=>{const et={chat_id:O,resident_id:B};return Z!=null&&(et.category_name=Z),Ce!=null&&(et.claim_category_id=Ce),await e("demo-ai-chat/first-message",et,zf)},$t=async O=>await e("ai-chat",{resident_id:O},zf),Et=async(O,B,Z,Ce)=>{const et={resident_id:B,category_name:Z,claim_category_id:Ce};return await e(`ai-chat/payment-category/history/${O}`,et,R_)},Cs=async(O,B)=>{const Z={resident_id:B};return await e(`ai-chat/history/${O}`,Z,R_)},_s=async(O,B,Z,Ce,et,gt,mt,Ot,At)=>{const Pt={premises_id:Z,resident_id:B,claim_category_id:et,category_name:Ce};gt!=null&&(Pt.work_type_name=gt),mt!=null&&(Pt.work_type_id=mt);const Ft=new FormData;
4return Ft.append("chat_id",O),Ot&&Ft.append("user_message",Ot),At&&Ft.append("files",At),await s("ai-chat/payment-category/message",Ft,Pt,Wf)},mn=async(O,B,Z,Ce,et,gt,mt,Ot,At)=>{const Pt={premises_id:Z,resident_id:B};Ce!=null&&(Pt.category_name=Ce),et!=null&&(Pt.claim_category_id=et),gt!=null&&(Pt.work_type_name=gt),mt!=null&&(Pt.work_type_id=mt);const Ft=new FormData;return Ft.append("chat_id",O),Ot&&Ft.append("user_message",Ot),At&&Ft.append("files",At),await s("demo-ai-chat/message",Ft,Pt,Wf)},Sn=async(O,B)=>await s("demo-ai-chat/reaction",{chat_id:O,reaction:B},void 0,Z=>({success:!!Z?.success})),rc=async(O,B)=>await s("demo-ai-chat/email",{chat_id:O,email:B},void 0,Z=>({success:!!Z?.success})),Vs=async(O,B,Z,Ce,et)=>{const gt={premises_id:Z,resident_id:B},mt=new FormData;return mt.append("chat_id",O),Ce&&mt.append("user_message",Ce),et&&mt.append("files",et),await s("ai-chat/message",mt,gt,Wf)},fC=async(O,B,Z)=>await e("houses/address/suggestions",{sub_address:O,btlrsid:B,houses_only:!1},fE,Z),pC=async(O,B)=>await e("houses/address/by-geo",{lat:O,lon:B},mR),hC=async O=>{const B=typeof O=="string"&&O.length>0?{fias_id:O}:void 0,Z=await e("screens/unauthorized",B,gR);return Z.ok,Z},mC=async O=>await e("screens/block/ai-helpers",O?{resident_id:O}:void 0,Km),Vg=async(O,B)=>{const Z=B?{resident_id:B}:void 0;return await e(`screens/block/${O}`,Z,f1)};return{fetchLoginPhone:d,fetchLoginCode:f,fetchUserInfoAndAddresses:h,fetchUserInfoForSessionSwitch:g,fetchProfileMe:m,uploadProfileAvatar:_,fetchPremisesInviteInfo:v,fetchPremisesScreen:k,fetchEmployees:x,fetchEmployeeInvite:C,revokeEmployeeAccess:w,createEmployeeInvite:$,fetchOfficeInviteBlock:S,fetchPremisesUserRating:I,fetchPremisesUserRatingNewLevelInfo:P,viewPremisesUserRating:L,fetchPremisesUserRatingInfo:D,viewRatingOpportunityBanner:R,fetchAboutHouse:F,saveAboutHouseInfo:N,saveAboutHouseChat:z,deleteAboutHouseChat:me,saveAboutHouseCleaning:ge,fetchAboutHouseCleaningExample:fe,fetchAboutHouseGroupDetails:te,saveAboutHouseGroup:V,deleteAboutHouseGroup:pe,fetchAboutHouseOssFile:ye,saveAboutHouseOssFile:ne,deleteAboutHouseOssFile:ve,saveAboutHouseContact:J,deleteAboutHouseContact:he,fetchPremisesInviteMethods:Ee,fetchActiveResidents:He,fetchActiveResidentsInfoOverlay:de,fetchHouseChatConversations:Me,createHouseChatConversation:De,fetchHouseChatMessages:ze,sendHouseChatMessage:Ue,markHouseChatMessagesRead:ut,fetchExecutorsOnShift:H,fetchExecutorInfo:Y,fetchPolls:W,sendPollVoice:_e,fetchPollDetails:ae,deletePoll:M,createPoll:q,fetchBalance:re,fetchBalanceMoneyFee:ce,createBalanceMoneyFee:ie,updateBalanceMoneyFee:$e,finishBalanceMoneyFee:se,payBalanceMoneyFee:xe,fetchBalanceMoneyFeePayers:Ve,fetchPremisesDebt:Ze,fetchAccountsDebtInfo:Je,fetchDebtPayInfo:dt,checkDebtAccountNumber:ft,fetchGkuMeters:It,sendGkuMeters:Wt,fetchGkuMeterHistory:ss,fetchGkuPaymentScreen:Ps,fetchGkuPaymentHistory:Ms,fetchUkSchedule:Gt,fetchMaintenanceAndRepairs:Le,fetchMaintenanceAndRepairById:ee,fetchMaintenanceAndRepairCategories:Pe,fetchMaintenanceAndRepairHistory:Ge,fetchMaintenanceAndRepairProgress:_t,fetchIncidents:qt,fetchIncidentDetail:Ht,sendMaintenanceAndRepairFeedback:ps,fetchManagementCompanyReports:ws,fetchManagementCompanyInfo:gs,addPremisesInviteResident:xs,fetchHomeClaimsCategories:Ns,fetchCategoriesWorks:wr,fetchCategoriesWorksAmount:Bs,fetchCreateClaim:Nn,fetchFlatClaimsCategories:Bn,fetchDemoCategories:hn,fetchCategoriesWorkDetail:ys,fetchCards:Vi,fetchPayments:Ao,fetchPaymentBill:Vn,payPaymentBill:Dt,fetchCreateCardInfo:sn,addCard:ii,prioritizeCard:nr,deleteCard:sc,fetchUserAdditionalInfo:ka,savePeronal:wa,saveAboutMe:oi,saveProfileVisible:$r,deleteUser:$n,logout:ai,fetchActiveClaims:Ca,fetchClaimInfo:Sa,fetchClaimCancelReasons:Ie,fetchClaimChatMessages:We,sendClaimChatMessage:Be,markClaimChatMessagesRead:ir,fetchResidentOrganizationCompany:qe,fetchResidentOrganizationBank:U,createResidentOrganizationDetails:we,fetchAiChatPaymentCategory:Ye,fetchDemoAiChatPaymentCategoryFirstMessage:nt,fetchAiChatPaymentCategoryHistory:Et,sendAiChatPaymentCategoryMessage:_s,sendDemoAiChatPaymentCategoryMessage:mn,sendDemoAiChatReaction:Sn,sendDemoAiChatEmail:rc,fetchAiChatFreeStart:$t,sendAiChatFreeMessage:Vs,fetchAiChatFreeHistory:Cs,fetchClaimsActive:qi,fetchClaimsFinished:$a,fetchAddresses:fC,fetchClaimAdditionalWorkCard:nc,approveClaimAdditionalWork:Aa,declineClaimAdditionalWork:Q,fetchHouseAddressByGeo:pC,fetchUnauthorizedScreen:hC,fetchScreenAiHelpers:mC,fetchScreenServicesV2:O=>Vg("services-v2",O),fetchScreenForHome:O=>Vg("for-home",O),fetchWaterScreen:(O,B)=>e("water/screen",{premises_id:O,resident_id:B},wD),fetchWaterCheckout:(O,B)=>e("water/checkout",{resident_id:O,water_tariff_id:B},CD),fetchWaterSubscription:O=>e("water/subscription",{resident_id:O},Da),createWaterSubscription:O=>s("water/subscription",{...O},void 0,Da),changeWaterTariff:(O,B)=>
4o("water/subscription/tariff",{resident_id:O,water_tariff_id:B},void 0,Da),waterSubscriptionAction:(O,B)=>s(`water/subscription/${O}`,{resident_id:B},void 0,Da),confirmWaterDelivery:(O,B)=>s(`water/deliveries/${O}/confirm`,{...B},void 0,Da),reportWaterDeliveryProblem:(O,B)=>s(`water/deliveries/${O}/problem`,{...B},void 0,Da),waterDeliveryInvoiceUrl:O=>{const B=Ne().sessionToken;return!B||!Number.isSafeInteger(O)||O<=0?"":`${String(kn().public.apiBaseUrl).replace(/\/$/,"")}/api/v3/website/water/deliveries/${O}/invoice?${new URLSearchParams({btlrsid:B})}`},fetchFoodRestaurant:async(O,B)=>await e("food/restaurant",{premises_id:O,resident_id:B||void 0},bD),fetchFoodCart:async O=>await e("food/cart",{food_restaurant_id:O},Na),updateFoodCartItem:async(O,B,Z)=>await s("food/cart/item",{food_restaurant_id:O,food_menu_item_id:B,count:Z},void 0,Na),updateFoodCartDeliveryType:async(O,B)=>await o("food/cart",{food_restaurant_id:O,delivery_type:B},void 0,Na),updateFoodCartComment:async(O,B)=>await o("food/cart",{food_restaurant_id:O,courier_comment:B},void 0,Na),clearFoodCart:async O=>await l("food/cart",{food_restaurant_id:O},Na),createFoodOrder:async(O,B)=>await s("food/order",{food_restaurant_id:O,...B?{resident_id:B}:{}}
4,void 0,fc),fetchFoodOrder:async O=>await e(`food/order/${O}`,void 0,fc),updateFoodOrderComment:async(O,B)=>await o(`food/order/${O}`,{courier_comment:B},void 0,fc),cancelFoodOrder:async O=>await s(`food/order/${O}/cancel`,void 0,void 0,fc),payFoodOrder:async(O,B)=>await s(`food/order/${O}/pay`,B?{card_id:B}:{},void 0,fc),fetchGeneralScreen:async O=>{const B=typeof O=="string"&&O.length>0?{resident_id:O}:void 0,Z=await e("screens/general",B,yR);return Z.ok,Z},fetchGeneralBadges:async(O,B)=>await e("screens/general/badges",{premises_id:O,resident_id:B},lE),fetchDiscussionPosts:async({residentId:O,page:B,count:Z,filters:Ce=[]})=>await t("posts",K_({resident_id:O,"pagination[page]":B,"pagination[count]":Z},Ce),U_),fetchMyDiscussionPosts:async({residentId:O,page:B,count:Z,filters:Ce=[]})=>await t("posts/my",K_({resident_id:O,"pagination[page]":B,"pagination[count]":Z},Ce),U_),fetchDiscussionPostFilters:async O=>await t("posts/filters",{resident_id:O},zR),fetchDiscussionPostDetail:async(O,B)=>await t(`posts/${O}`,{resident_id:B},jR),createDiscussionPost:async(O,B)=>{const Z=new FormData;Z.append("title",B.title),Z.append("body",B.body),Z.append("price",B.price),Z.append("type",B.type),B.eventStartAt&&Z.append("event_start_at",B.eventStartAt),B.eventFinishAt&&Z.append("event_finish_at",B.eventFinishAt),B.whatsappLink&&Z.append("whatsapp_link",B.whatsappLink),B.telegramLink&&Z.append("telegram_link",B.telegramLink),B.maxLink&&Z.append("max_link",B.maxLink);const Ce=B.photoItems??(B.files??[]).map(Y_);return G_(Z,Ce),await n("posts",Z,{resident_id:O},Xm)},updateDiscussionPost:async(O,B,Z)=>{const Ce=new FormData;Ce.append("title",Z.title),Ce.append("body",Z.body),Ce.append("price",Z.price),Ce.append("type",Z.type),Z.eventStartAt&&Ce.append("event_start_at",Z.eventStartAt),Z.eventFinishAt&&Ce.append("event_finish_at",Z.eventFinishAt),Ce.append("whatsapp_link",Z.whatsappLink??""),Ce.append("telegram_link",Z.telegramLink??""),Ce.append("max_link",Z.maxLink??"");const et=Z.photoItems??[...(Z.existingAttachments??[]).map(gt=>({type:"attachment",attachment:gt})),...(Z.files??[]).map(Y_)];return G_(Ce,et),await i(`posts/my/${O}`,Ce,{resident_id:B},yt)},deleteDiscussionPost:async(O,B)=>await u(`posts/my/${O}`,{resident_id:B},yt),likeDiscussionPost:async(O,B)=>await n(`posts/${O}/like`,void 0,{resident_id:B},yt),dislikeDiscussionPost:async(O,B)=>await u(`posts/${O}/like`,{resident_id:B},yt),attendDiscussionPost:async(O,B)=>await n(`posts/${O}/attend`,void 0,{premises_id:B},yt),unattendDiscussionPost:async(O,B)=>await u(`posts/${O}/attend`,{premises_id:B},yt),addDiscussionComment:async(O,B,Z)=>{const Ce={body:B};return Z&&(Ce.reply_to_comment_id=Z),await n(`posts/${O}/comments`,Ce,void 0,yt)},editDiscussionComment:async(O,B)=>await i(`posts/comments/${O}`,{body:B},void 0,yt),deleteDiscussionComment:async O=>await u(`posts/comments/${O}`,void 0,yt),likeDiscussionComment:async(O,B)=>await n(`posts/comments/${O}/like`,void 0,{resident_id:B},yt),dislikeDiscussionComment:async(O,B)=>await u(`posts/comments/${O}/like`,{resident_id:B},yt),fetchDiscussionCommentReportReasons:async()=>await t("posts/comments/report-reasons",void 0,UR),reportDiscussionComment:async(O,B)=>await n(`posts/comments/${O}/report`,{reason:B},void 0,yt),addAddress:async(O,B,Z,Ce,et,gt,mt=null)=>{const Ot=dc(et),At={};O.length>0&&(At.house_id=O),B.length>0&&(At.flat=B),Ot.length>0&&(At.flat_type=Ot),Z.length>0&&(At.entrance=Z),Ce.length>0&&(At.floor=Ce),gt.length>0&&(At.organization_name=gt),Ot.length>0&&(At.flat_type=Ot);let Pt;return mt!=null&&(Pt={btlrsid:mt}),await s("residents/by-house-id",At,Pt,yt)},deleteAddress:async O=>await l(`residents/${O}`,void 0,yt),saveAddress:async(O,B,Z,Ce,et,gt,mt,Ot,At)=>{const Pt=dc(gt),Ft={};return Ft.house_address=B,Ft.flat=Z,Ft.flat_type=Pt,Ce.length>0&&(Ft.entrance=Ce),et.length>0&&(Ft.floor=et),Pt.length>0&&(Ft.flat_type=Pt),mt.length>0&&(Ft.organization_name=mt),Ot!=null&&Ot.length>0&&(Ft.contract_number=Ot),At!=null&&At.length>0&&(Ft.major_repair_contract_number=At),await r(`residents/${O}`,Ft,void 0,yt)},addLoginPeronal:async(O,B,Z,Ce,et,gt,mt,Ot="",At="",Pt="")=>{const Ft=dc(mt),Io={btlrsid:O},Sr={};B.length>0&&(Sr.house_id=B),Z.length>0&&(Sr.house_address=Z),Ce.length>0&&(Sr.flat=Ce),Ft.length>0&&(Sr.flat_type=Ft),et.length>0&&(Sr.entrance=et),gt.length>0&&(Sr.floor=gt),Ot.trim().length>0&&(Sr.organization_name=Ot.trim()),Ft.length>0&&(Sr.flat_type=Ft);const Yu={};return Yu.resident=Sr,At.trim().length>0&&(Yu.fio=At.trim()),Pt.trim().length>0&&(Yu.email=Pt.trim()),await s("auth/signup-data",Yu,Io,yt)},getCaptha:async(O,B)=>{const Z=Ne(),Ce=bh();try{Z.initDeviceId()}catch{}
4const gt={os_type:"web",vendor_id:Z.deviceId};return Object.assign(gt,Ce.devicePushFields()),await s("auth/captcha",{phone:O,auth_id_route:B,device:gt},void 0,cD)},sendCaptha:async(O,B,Z)=>await s("auth/verify-captcha",{phone:O,auth_id_route:B,token:Z},void 0,qf),fetchFaq:async()=>await e("faq",void 0,pE),fetchAboutDocs:async()=>await e("docs/menu",void 0,mE),fetchUnacceptedAgreements:async()=>await e("agreements/unaccepted",void 0,yE),acceptUnacceptedAgreements:async O=>await s("agreements/accept",{agreements:O},void 0,yt),fetchBadges:async()=>await e("badges",void 0,_E),fetchNotifications:async({page:O=1,count:B=25}={})=>await e("notifications",{page:O,count:B},aE),sendPushToken:async O=>{const B=Ne().deviceId;return await s("devices",{push_token:O,push_token_type:"fcm",is_prohibited_push_notifications:!1,os_type:"web",vendor_id:B},void 0,yt)},fetchCategoriesWorksSearch:Fn,fetchClaimsNeedActions:ct,declineClaimWork:ke,acceptClaimWork:Bi,cancelClaim:Fe,markClaimStageViewed:at,payClaim:Mt,saveEmail:Cr,requestEmailConfirm:rr,saveFio:Hi,fetchMarkReadedNotifications:async()=>await s("notifications/read",void 0,void 0,yt),fetchServicesScreenV2:en,fetchServiceCategoryDetail:tn,fetchSharedServiceCategoryDetail:Os,fetchUnauthorizedServiceCategoryDetail:On,addPremisesInviteResidentWithRegistration:Zt,sendCompanyContactRequest:async(O,B,Z,Ce,et,gt,mt)=>await s("contact-request",{name:O,email:B,phone:Z,call_type:Ce,company_name:et,company_type:gt,captcha_token:mt},void 0,yt),sendBcContactRequest:async(O,B,Z,Ce)=>await s("contact-request/bc",{name:O,email:B,phone:Z,company_name:Ce},void 0,yt)}}function K_(e,t){const s={...e},n=t.filter(i=>i.type==="category"),r=t.filter(i=>i.type==="type");return n.forEach((i,o)=>{s[`filter[categories][${o}]`]=i.value}),r.forEach((i,o)=>{s[`filter[types][${o}]`]=i.value}),s}const H8="/images/avatar_placeholder.png",Zm=Ke("profile",{state:()=>({profileMe:null,isLoading:!1}),getters:{avatarUrl:e=>e.profileMe?.avatarUrl||H8,fullName:e=>{const t=e.profileMe;return t?[t.lastName,t.firstName,t.middleName].map(s=>s.trim()).filter(s=>s.length>0).join(" "):""}},actions:{async fetchProfileMe(){this.isLoading=!0;const t=await ue().fetchProfileMe();return t.ok&&(this.profileMe=t.data),this.isLoading=!1,t},clearProfile(){this.profileMe=null,this.isLoading=!1}}}),aM=Object.freeze(Object.defineProperty({__proto__:null,PROFILE_AVATAR_FALLBACK:H8,useProfileStore:Zm},Symbol.toStringTag,{value:"Module"}));let pc=null;const Re={flat:"ÐваÑÑиÑа",parkingSpot:"ÐаÑиномеÑÑо",storeRoom:"Ðладовка",commercialStoreroom:"ÐоммеÑÑеÑкое помеÑение",withoutFunctional:Ua},Oe=Ke("useUserInfo",{state:()=>({userInfo:null,residence:null,isLoading:!0,isLoaded:!1}),getters:{getUserAddress:e=>e.residence!=null?e.residence.addressStreetPart:"",getPremissesNameOrAddress:e=>e.residence!=null?e.residence.premisesName.length>0?e.residence.premisesName:e.residence.addressStreetPart:"",getUserResidence:e=>e.residence!=null?[a0(e.residence.flatType),e.residence.flat].filter(t=>t.length>0).join(" "):"",getUserName:e=>{if(!e.userInfo)return"";const{lastName:t="",firstName:s="",middleName:n=""}=e.userInfo.me;return[t,s,n].map(r=>r.trim()).filter(r=>r.length>0).join(" ")},getPhone:e=>lM(e.userInfo?.me.phone??"")},actions:{async fetchUserInfoAndAddresses(){return pc?await pc:(this.isLoading=!0,this.isLoaded=!1,pc=ue().fetchUserInfoAndAddresses().then(t=>(t.ok&&this.saveUser(t.data),t)).finally(()=>{this.isLoading=!1,this.isLoaded=!0,pc=null}),await pc)},saveUser(e){this.userInfo=e;const t=Ne();if(e.selectAddresses.length>0)if(t.savedResidenceId!=null){const s=e.selectAddresses.find(n=>n.residentId===t.savedResidenceId)||null;s!=null?(this.residence=s,t.setResidenceId(s.residentId)):(this.residence=e.selectAddresses[0],t.setResidenceId(e.selectAddresses[0].residentId))}else this.residence=e.selectAddresses[0],t.setResidenceId(e.selectAddresses[0].residentId);else this.residence=null,t.clearResidenceId();this.isLoaded=!0,t.isAuthorized&&Zm().fetchProfileMe()},saveAddress(e){this.residence=e,Ne().setResidenceId(e.residentId)}}});function lM(e){let s=e.replace(/\D/g,"");s.startsWith("8")?s="7"+s.slice(1):s.startsWith("9")&&(s="7"+s);const n=s.slice(0,11);if(!n.startsWith("7"))return e;const r=n.slice(1),i=r.slice(0,3),o=r.slice(3,6),l=r.slice(6,8),u=r.slice(8,10);let d="+7";if(r.length>0&&(d+=" ("+i),r.length>=3)d+=") "+o;else return d;if(r.length>=6)d+="-"+l;else return d;return r.length>=8&&(d+="-"+u),d}let Ea=null,Yf=0;function cM(){const e=Zm(),t=Ne(),s=Oe();async function n(o,l){const u=o.trim();if(!u)return"invalid-session";if(t.sessionToken===u)return"unchanged";const d=await ue().fetchUserInfoForSessionSwitch(u);return l!==Yf?"cancelled":d.ok?(t.clearResidenceId(),t.setSession(u),t.$persist(),"success"):d.error.status===403||d.error.code===403?"invalid-session":"failed"}async function r(o){if(Ea)return await Ea;const l=++Yf,u=n(o,l).finally(()=>{Ea===u&&(Ea=null)});return Ea=u,await u}function i(){Yf+=1,Ea=null,t.clearAll(),s.$reset(),e.clearProfile(),t.$persist()}return{logoutSilently:i,switchSession:r}}const uM=async e=>{let t,s;if(e.path!=="/share/auth")return;const n=Array.isArray(e.query.session)?e.query.session[0]:e.query.session,r=typeof n=="string"?n.trim():"";if(window.history.replaceState(window.history.state,"","/"),!r)return Bt("/",{replace:!0});const i=([t,s]=Xs(()=>cM().switchSession(r)),t=await t,s(),t);
4if(i==="success"||i==="unchanged"){window.location.replace("/");return}const{$i18n:o,$showSnackbar:l}=Te();return l(o.t("silentAuth.error")),Bt("/",{replace:!0})},dM=e=>{if(e.path!=="/share/chats/conversations")return;const t=e.query.conversation_id;return typeof t!="string"||t.trim()===""?Bt("/house",{replace:!0}):Bt({path:"/house",query:{...un(e.query),panel:"house-conversation-chat",conversation_id:t}},{replace:!0})},fM=async e=>{let t,s;if(e.path!=="/share/invite")return;const n=Ne();n.markOnboardingSeen(),n.hideSectionSwitcher();const r=e.query.id;if(typeof r=="string"&&r.trim())return;const i=Oe();n.isAuthorized&&!i.isLoaded&&([t,s]=Xs(()=>i.fetchUserInfoAndAddresses()),await t,s());const o=i.residence?.premisesId;return o?Bt({path:"/share/invite",query:{...e.query,id:o}},{replace:!0}):Bt("/")},pM={"/share/avatar":{edit:"avatar"},"/share/fio":{panel:"profile-personal-edit",edit:"fio"},"/share/email":{panel:"profile-personal-edit",edit:"email"}},hM=e=>{const t=pM[e.path];if(t)return Bt({path:"/account",query:{...un(e.query),...t}},{replace:!0})},mM=new Set(["butler.social","dev.butler.social","remote-team.art","localhost"]),gM=new Set(["category_id","charge_id","contract_number","money_fee_id","premises_id","resident_id","survey_id","work_type_id","work-types"]);function Jm(e){try{const t=e.trim();return t.startsWith("/")?new URL(t,"https://butler.social"):new URL(t)}catch{return null}}function gn(e,t){return e.searchParams.get(t)||void 0}function yM(e){const t={};for(const s of gM){const n=e.searchParams.getAll(s).filter(Boolean);n.length===1?t[s]=n[0]:n.length>1&&(t[s]=n)}return t}function xt(e,t,s={}){const n={...yM(t),...s},r=Object.fromEntries(Object.entries(n).filter(([,i])=>i!==void 0));return{path:e,query:r}}function d0(e){const t=Jm(e);return!!(t&&(t.protocol==="https:"||t.protocol==="http:")&&mM.has(t.hostname)&&t.pathname.startsWith("/share/"))}function p1(e){const t=Jm(e);if(!t||!d0(e))return null;const s=gn(t,"claim_id"),n=gn(t,"order_id"),r=gn(t,"category_id"),i=gn(t,"work_type_id"),o=gn(t,"id"),l=gn(t,"money_fee_id"),u=gn(t,"survey_id"),d=gn(t,"work-types"),f=gn(t,"charge_id"),h=gn(t,"contract_number"),g=gn(t,"conversation_id"),m=gn(t,"listId");switch(t.pathname){case"/share/home":return xt("/",t);case"/share/ai_helpers":return o==="priemka"?{path:"https://priemka.butler.social/",external:!0}:o==="oss"||o==="real_estate_advisor"?xt("/",t,{panel:"ai-helper",ai_helper_id:o}):null;case"/share/referral_link_share":return xt("/account",t,{panel:"invite"});case"/share/metering":return h?xt("/",t,{panel:"gku-meter",gku_account:h}):null;case"/share/meterings":return xt("/",t,{panel:"gku-meter"});case"/share/gku/payments":return h?xt("/",t,{panel:"gku-payment",gku_account:h}):null;case"/share/pay":return xt("/",t,{panel:f?"gku-payment-charge":"gku-payment",id:o,gku_account:o,gku_charge_id:f});case"/share/new_claim":return xt("/",t,{panel:"claim-create-chat"});case"/share/claim/detail":return r?xt("/",t,{panel:"service-category-detail",serviceCategoryId:r}):null;case"/share/claim/detail/chat":return r&&i?xt("/",t,{panel:"claim-create-chat",category_id:r,work_type_id:i}):null;case"/share/payment_services":return d?xt("/",t,{panel:"claim-create-chat",claimId:d,claim_category_id:d}):null;case"/share/services":return xt("/",t,{panel:"all-categories",categoryGroup:gn(t,"for_home")==="true"?"for-home":"household"});case"/share/water-delivery":return xt("/",t,{panel:"water-delivery"});case"/share/water-delivery/plan":return xt("/",t,{panel:"water-delivery-tariffs"});case"/share/organization/add":return xt("/",t,{panel:"address-organization"});case"/share/avatar":return xt("/account",t,{edit:"avatar"});case"/share/fio":return xt("/account",t,{panel:"profile-personal-edit",edit:"fio"});case"/share/email":return xt("/account",t,{panel:"profile-personal-edit",edit:"email"});case"/share/house":return xt("/house",t);case"/share/employee-invite":return xt("/house",t,{panel:"employee-add",resident_id:void 0});case"/share/survey":return xt("/house/polls",t,u?{panel:"poll-detail"}:{});case"/share/premises-money-fee":return xt("/house/balance",t,l?{panel:"premises-money-fee-detail"}:{});case"/share/debt":return h?xt("/",t,{panel:"home-debt-pay"}):null;case"/share/house_council":return xt("/house/active-residents",t);case"/share/news":return xt("/house/news",t,o?{panel:"news-detail",news_id:o}:{});case"/share/about_uk":return xt("/house",t,{panel:"management-company-detail
4s"});case"/share/premises/info":return xt("/house/about-house",t);case"/share/premises/uk-schedule":return xt("/house/working-regime",t);case"/share/scheduled-work":return xt("/house/maintenance-and-repair",t);case"/share/scheduled-work-history":return xt("/house/maintenance-and-repair",t,{panel:"maintenance-and-repair-history"});case"/share/profile/advertisement":return xt("/discussions",t,{mine:"1"});case"/share/profile/premises":return xt("/account",t,{panel:"profile-address-list"});case"/share/profile/bills":return xt("/account",t,{panel:"claim-bill"});case"/share/profile/cards":return xt("/account",t,{panel:"card-list"});case"/share/payments":return o?xt("/account",t,{panel:"claim-bill-detail",id:o}):null;case"/share/claims":return s?xt("/claims",t,{panel:"claim-info",id:s}):xt("/claims",t);case"/share/claims/food":return n&&Number(n)>0?xt("/claims",t,{panel:"food-order",food_order_id:n}):null;case"/share/claims/messages":return s?xt("/claims",t,{panel:"claim-chat",id:s}):xt("/claims",t);case"/share/chats/conversations":return g?xt("/house",t,{panel:"house-conversation-chat",conversation_id:g}):xt("/house",t);case"/share/additional_work":return s&&m&&gn(t,"premises_id")?xt("/claims",t,{panel:"claim-additional-works",id:s,list_id:m}):null;case"/share/post/info":case"/share/posts/info":return xt("/discussions",t,o?{panel:"discussion-detail",post_id:o}:{});case"/share/posts":return xt("/discussions",t);case"/share/posts/create":return xt("/discussions",t,{panel:"discussion-create-type"});case"/share/posts/my":return xt("/discussions",t,{mine:"1"});case"/share/posts/reject":return xt("/discussions",t,o?{panel:"discussion-rejection",post_id:o}:{});default:return null}}function Dl(){async function e(t){if(!t.trim())return;const s=p1(t);if(s){const n=Jm(t);n&&!s.external?await Bt(`${n.pathname}${n.search}${n.hash}`):s.external&&await Bt(s.path,{external:!0});return}window.open(t,"_blank")}return{isButlerShareUrl:d0,openShareOrExternal:e,resolveShareNavigation:p1}}function Kf(){const e=globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e?.getRandomValues?.(new Uint8Array(1))[0]??Math.random()*16)&15;return(t==="x"?n:n&3|8).toString(16)})}const _M=new Set(["jpg","jpeg","png","webp","gif"]);function vM(){return{ok:!1,error:{message:"Ðе ÑдалоÑÑ Ð¾Ð¿ÑеделиÑÑ Ð°Ð´ÑÐµÑ Ð¶Ð¸ÑелÑ"}}}function bM(e){return((e.split("?")[0]??"").split(".").pop()??"").toUpperCase()}function xM(e){if(e.fileName.length>0)return e.fileName;try{const{pathname:t}=new URL(e.url);return decodeURIComponent(t.split("/").pop()??"")}catch{return e.url.split("?")[0]?.split("/").pop()??""}}function kM(e){if(!e.url)return null;const t=xM(e),s=(e.extension||bM(t||e.url)).toUpperCase(),r=e.type.toLowerCase()==="image"||_M.has(s.toLowerCase())?"image":"file";return{url:e.url,name:t||e.url,type:r,extension:s||"FILE"}}const Ln=Ke("drawerClaimCreateChat",{state:()=>({claimId:"",claimTitle:"",workTypeId:"",workTypeName:"",messageDraft:"",scrollTop:0,hasInitialized:!1,uuid:"",oldChat:null,messages:[],isSending:!1,isLoad:!0,isFree:!1,isContinueDialog:!1,error:null,chatIsOpen:!0,resultClaimId:"",claimCreatedSuccess:!1,isDemo:!1,userNeedRegistration:!1,pendingNeedEmailBlock:null}),actions:{setClaimContext(e,t){this.claimId&&this.claimId!==e&&this.$reset(),this.claimId=e,this.claimTitle=t},setWorkTypeContext(e,t){this.workTypeId=e,this.workTypeName=t},clearWorkTypeContext(){this.workTypeId="",this.workTypeName=""},startDemoChat(e,t){this.$reset(),this.claimId=e,this.claimTitle=t,this.uuid=Kf(),this.isFree=!1,this.isDemo=!0,this.userNeedRegistration=!1},startFreeDemoChat(){this.$reset(),this.uuid=Kf(),this.isFree=!0,this.isDemo=!0,this.userNeedRegistration=!1},hasPendingDemoAuthorization(){return this.isDemo&&this.uuid.length>0},buildClaimCreateChatQuery(){return{panel:"claim-create-chat",claimId:this.claimId,claimTitle:this.claimTitle}},continueDemoAfterAuthorization(){const e=this.oldChat?.oldChatId||this.uuid;this.isDemo=!1,this.isFree=!1,this.userNeedRegistration=!1,this.isContinueDialog=!1,this.chatIsOpen=!0,this.uuid=e,this.messages=[],this.isLoad=!0},async resolveResidenceContext(){const e=Ne(),t=Oe();if(!e.isAuthorized)return{ok:!0,data:{residentId:"",premisesId:""}};if(!t.residence?.residentId){const s=await t.fetchUserInfoAndAddresses();if(!s.ok)return s}return t.residence?.residentId?{ok:!0,data:{residentId:t.residence.residentId,premisesId:t.residence.premisesId}}:vM()},async getUuids(){const e=ue(),t=Ne(),s=await this.resolveResidenceContext();if(!s.ok)return this.isLoad=!1,this.error=s.error,s;const{residentId:n}=s.data,r=this.claimTitle.length>0?this.claimTitle:void 0,i=this.claimId.length>0?this.claimId:void 0,o=await(this.isDemo&&!t.isAuthorized?e.fetchDemoAiChatPaymentCategoryFirstMessage(this.uuid,n,r,i):this.isFree?e.fetchAiChatFreeStart(n):e.fetchAiChatPaymentCategory(n,this.claimTitle,this.claimId));return o.ok&&(this.oldChat=o.data,o.data.userHasNoOrganizationDetail
4s?this.startNewDialog():o.data.oldChatId.length>0?this.isContinueDialog=!0:this.startNewDialog(),this.hasInitialized=!0),o},setMessageDraft(e){this.messageDraft=e},setScrollTop(e){this.scrollTop=e},setMessages(e){this.messages=e},addMessage(e){this.messages.push(e)},markMessageAnimationDone(e){this.messages=this.messages.map(t=>t.id===e?{...t,shouldAnimate:!1}:t)},clearTextButtons(){const e=[...this.messages].reverse().find(t=>t.needEmailBlock&&!t.emailBlockResolved)?.needEmailBlock??null;e&&(this.pendingNeedEmailBlock=e),this.messages=this.messages.map(t=>({...t,textButtons:[],needEmailBlock:null}))},resolveEmailBlock(e){this.pendingNeedEmailBlock=null,this.messages=this.messages.map(t=>t.id===e?{...t,emailBlockResolved:!0}:t)},async sendOrganizationDetailsEntered(){const e=Te().$i18n.t("residentOrganizationDetails.detailsEntered");this.clearTextButtons(),this.messages.push({id:`organization-details-${Date.now()}`,text:e,createdAt:new Date().toISOString(),isMine:!0,kind:"text"});const t=await this.sendMessage(e);if(!t.ok)return t;const s=t.data,n=s.botMessage.trim(),r=s.textButtons.filter(o=>o.trim().length>0),i=s.userHasNotCard?"bind-card":s.userHasDebtBill?"pay":null;if(n||r.length>0){const o=Te().$i18n;this.messages.push({id:`bot-${Date.now()}`,text:n,createdAt:new Date().toISOString(),isMine:!1,textButtons:r,kind:i?"action":"text",shouldAnimate:!0,chatId:this.uuid,needEmailBlock:s.needEmailBlock??this.pendingNeedEmailBlock,actionType:i??void 0,actionLabel:i==="bind-card"?o.t("drawer.claims.createChat.bindCard"):i==="pay"?o.t("drawer.claims.createChat.pay"):void 0})}return t},async sendMessage(e,t){const s=(e??this.messageDraft).trim();this.isSending=!0,this.error=null,this.userNeedRegistration=!1;const n=Ne(),r=this.claimTitle.length>0?this.claimTitle:void 0,i=this.claimId.length>0?this.claimId:void 0;try{const o=await this.resolveResidenceContext();if(!o.ok)return this.error=o.error,o;const{residentId:l,premisesId:u}=o.data,d=ue(),f=await(this.isDemo&&!n.isAuthorized?d.sendDemoAiChatPaymentCategoryMessage(this.uuid,l,u,r,i,this.workTypeName||void 0,this.workTypeId||void 0,s,t):this.isFree?d.sendAiChatFreeMessage(this.uuid,l,u,s,t):d.sendAiChatPaymentCategoryMessage(this.uuid,l,u,this.claimTitle,this.claimId,this.workTypeName||void 0,this.workTypeId||void 0,s,t));if(f.ok){const h=f.data;h.chatId.length>0&&(this.uuid=h.chatId),this.chatIsOpen=h.chatIsOpen,this.resultClaimId=h.claimId,this.claimCreatedSuccess=h.claimCreatedSuccess,this.userNeedRegistration=h.userNeedRegistration}else this.error=f.error;return f}finally{this.isSending=!1}},async sendReaction(e,t){return await ue().sendDemoAiChatReaction(e,t)},async sendEmail(e,t){return await ue().sendDemoAiChatEmail(e,t)},async getHistory(){const e=ue(),t=await this.resolveResidenceContext();if(!t.ok)return this.isLoad=!1,this.error=t.error,t;const{residentId:s}=t.data,n=await(this.isFree?e.fetchAiChatFreeHistory(this.uuid,s):e.fetchAiChatPaymentCategoryHistory(this.uuid,s,this.claimTitle,this.claimId));return n.ok&&(n.data.chatId.length>0&&(this.uuid=n.data.chatId),this.messages=n.data.messages.map((r,i)=>({id:`${r.dateTime||"history"}-${i}`,text:r.message,createdAt:r.dateTime,isMine:r.isMyMessage,kind:"text",attachments:r.attachments.map(kM).filter(o=>o!==null)}))),this.isLoad=!1,n},async continueDialog(){this.isContinueDialog=!1,this.uuid=this.oldChat?.oldChatId??"",this.messages=[]},async startNewDialog(){this.isContinueDialog=!1;const e=this.oldChat?.newChatId??"";e.length>0?this.uuid=e:this.isDemo||(this.uuid=Kf());const t=this.oldChat?.firstMessage?.replaceAll(` 5`,"<br>")??"",s=this.isFree?Te().$i18n.t("drawerClaimCreateChat.startMessageFree"):Te().$i18n.t("drawerClaimCreateChat.startMessagePaid"),n=t.length>0?t:s.replaceAll(` 6`,"<br>");this.messages=[{id:`start-${Date.now()}`,text:n,createdAt:new Date().toISOString(),isMine:!1,textButtons:this.oldChat?.textButtons??[],kind:"text",shouldAnimate:!0}],this.isLoad=!1}}});function di(e){return Array.isArray(e)?e[0]??"":e??""}async function id(){const e=Ne(),t=Oe();return e.isAuthorized&&!t.isLoaded&&await t.fetchUserInfoAndAddresses(),t}const wM=new Map([["/share/home","premises"],["/share/house","premises"],["/share/services","both"],["/s
6hare/water-delivery","premises"],["/share/water-delivery/plan","premises"],["/share/premises/info","premises"],["/share/posts","resident"],["/share/posts/my","resident"],["/share/posts/create","both"]]),CM=async e=>{let t,s;if(!e.path.startsWith("/share/")||e.path==="/share/auth")return;const n=wM.get(e.path);if(n){const i=di(e.query.premises_id).trim(),o=di(e.query.resident_id).trim();if(n!=="resident"&&i||n!=="premises"&&o){const u=([t,s]=Xs(()=>id()),t=await t,s(),t),d=u.userInfo?.selectAddresses.find(f=>n==="premises"?f.premisesId===i:n==="resident"?f.residentId===o:o&&f.residentId===o||!o&&f.premisesId===i);d&&u.saveAddress(d)}}if(e.path==="/share/employee-invite"){const i=([t,s]=Xs(()=>id()),t=await t,s(),t),o=di(e.query.resident_id).trim(),l=o?i.userInfo?.selectAddresses.find(u=>u.residentId===o&&u.withOrganizationName):i.residence?.withOrganizationName?i.residence:i.userInfo?.selectAddresses.find(u=>u.withOrganizationName);return l?(i.saveAddress(l),Bt({path:"/house",query:{panel:"employee-add"}},{replace:!0})):void 0}if(e.path==="/share/debt"){const i=di(e.query.contract_number).trim();if(!i)return;const o=([t,s]=Xs(()=>id()),t=await t,s(),t),l=o.userInfo?.selectAddresses.find(u=>u.personalAccount===i||u.personalAccountRepair===i);return l?(o.saveAddress(l),Bt({path:"/",query:{panel:"home-debt-pay",contract_number:i,debt_type:l.personalAccountRepair===i?"repair":"account"}},{replace:!0})):Bt("/",{replace:!0})}if(e.path==="/share/claim/detail"){const i=di(e.query.category_id).trim();if(!i)return;const o=Ne(),l=Oe();if(o.isAuthorized&&!l.isLoaded&&!([t,s]=Xs(()=>l.fetchUserInfoAndAddresses()),t=await t,s(),t).ok)return;const u=di(e.query.resident_id).trim();if(u){const d=l.userInfo?.selectAddresses.find(f=>f.residentId===u);if(!d)return;l.saveAddress(d)}else if(!l.residence)return;return Bt({path:"/",query:{panel:"service-category-detail",serviceCategoryId:i}},{replace:!0})}if(e.path==="/share/claim/detail/chat"){const i=di(e.query.category_id).trim(),o=di(e.query.work_type_id).trim();if(!i||!o)return;const l=([t,s]=Xs(()=>id()),t=await t,s(),t),u=di(e.query.resident_id).trim(),d=u?l.userInfo?.selectAddresses.find(v=>v.residentId===u):l.residence;if(!d)return;l.saveAddress(d);const f=d.residentId,h=([t,s]=Xs(()=>ue().fetchSharedServiceCategoryDetail(i,f)),t=await t,s(),t);if(!h.ok)return;const g=h.data.items.find(v=>v.workTypeId===o);if(!g)return;const m=Ln();m.$reset(),m.setClaimContext(h.data.categoryId||i,h.data.title),m.setWorkTypeContext(g.workTypeId,g.title),m.setMessageDraft(g.templateUserMessage),m.isFree=!1;const _=p1(e.fullPath);return _?Bt({..._,query:{..._.query,resident_id:f}},{replace:!0}):void 0}const r=p1(e.fullPath);if(r)return r.external?Bt(r.path,{external:!0,replace:!0}):Bt(r,{replace:!0})},$M=e=>{const t=G6({path:e.path});if(t.redirect){const s=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return Mi(s,{acceptRelative:!0})?(window.location.href=s,!1):s}},SM=[YP,QP,uM,dM,fM,hM,CM,$M],xh={"authorized-resident":()=>wt(()=>import("./jTFk-RHM.js"),[],import.meta.url)};function AM(e,t,s){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){const d=i.includes(e.slice(o))?e.slice(o).length:1;let f=i.slice(d);return f[0]!=="/"&&(f="/"+f),Ty(f,"")}const l=Ty(n,e),u=!s||$6(l,s)?l:s;return u+(u.includes("?")?"":r)+i}const IM=hs({name:"nuxt:router",enforce:"pre",async setup(e){let t,s,n=kn().app.baseURL;const r=Ui.history?.(n)??dP(n),i=Ui.routes?([t,s]=Xs(()=>Ui.routes(Hf)),t=await t,s(),t??Hf):Hf;let o;const l=DP({...Ui,scrollBehavior:(x,C,w)=>{if(C===qn){o=w;return}if(Ui.scrollBehavior){if(l.options.scrollBehavior=Ui.scrollBehavior,"scrollRestoration"in window.history){const $=l.beforeEach(()=>{$(),window.history.scrollRestoration="manual"})}return Ui.scrollBehavior(x,qn,o||w)}},history:r,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(l);const u=fn(l.currentRoute.value);l.afterEach((x,C)=>{u.value=C}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const d=AM(n,window.location,e.payload.path),f=fn(l.currentRoute.value),h=()=>{f.value=l.currentRoute.value};l.afterEach((x,C)=>{const w=x.matched.at(-1)?.components?.default,$=C.matched.at(-1)?.components?.default;if(w===$){h();return}x.matched.length<C.matched.length&&x.matched.every((S,I)=>S.components?.default===C.matched[I]?.components?.default)&&h()});const g={sync:h};for(const x in f.value)Object.defineProperty(g,x,{get:()=>f.value[x],enumerable:!0});e._route=Br(g),e._middleware||={global:[],named:{}};const m=i0();l.afterEach(async(x,C,w)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(bI),w&&await e.callHook("page:loading:end")});try{[t,s]=Xs(()=>l.isReady()),await t,s()}catch(x){[t,s]=Xs(()=>e.runWithContext(()=>No(x))),await t,s()}const _=d!==l.currentRoute.value.fullPath?l.resolve(d):l.currentRoute.value,v=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&d!==e.payload.path&&$6(l.currentRoute.value.path,e.payload.path);h();const k=e.payload.state._layout;return l.beforeEach(async(x,C)=>{await e.callHook("page:loading:start"),x.meta=Ws(x.meta),e.isHydrating&&k&&!Yr(x.meta.layout)&&(x.meta.layout=k),e._processingMiddleware=!0;{const w=new Set([...SM,...e._middleware.global]);for(const S of x.matched){const I=S.meta.middleware;if(I)for(const P of u8(I))w.add(P)}const $=G6({path:x.path});if($.appMiddleware)for(const S in $.appMiddleware)$.appMiddleware[S]?w.add(S):w.delete(S);for(const S of w){const I=typeof S=="string"?e._middleware.named[S]||await xh[S]?.().then(P=>P.default||P):S;if(!I)throw new Error(`Unknown route middleware: '${S}'.`);try{const P=await e.runWithContext(()=>I(x,C));if(!e.payload.serverRendered&&e.isHydrating&&(P===!1||P instanceof Error)){const L=P||lo({status:404,statusText:`Page Not Found: ${d}`});return await e.runWithContext(()=>No(L)),!1}if(P===!0)continue;if(P===!1)return P;if(P)return F6(P)&&P.fatal&&await e.runWithContext(()=>No(P)),P}catch(P){const L=lo(P);return L.fatal&&await e.runWithContext(()=>No(L)),L}}}}),l.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),l.afterEach(x=>
6{if(x.matched.length===0&&!m.value)return e.runWithContext(()=>No(lo({status:404,fatal:!1,statusText:`Page not found: ${x.fullPath}`,data:{path:x.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in _&&(_.name=void 0),v){const x=l.resolve(e.payload.path);"name"in x&&(x.name=void 0),await l.replace({...x,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await l.replace({..._,force:!0})})}else await l.replace({..._,force:!0});l.options.scrollBehavior=Ui.scrollBehavior}catch(x){await e.runWithContext(()=>No(x))}}),{provide:{router:l}}}}),Q_=globalThis.requestIdleCallback||(e=>{const t=Date.now(),s={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(s)},1)}),Slt=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),f0=e=>{const t=Te();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Q_(()=>e())}):Q_(()=>e())},TM=hs({name:"nuxt:payload",setup(e){const t=new Set;is().beforeResolve(async(s,n)=>{if(s.path===n.path)return;const r=await Uy(s.path);if(r){for(const i of t)delete e.static.data[i];for(const i in r.data)i in e.static.data||t.add(i),e.static.data[i]=r.data[i]}}),f0(()=>{e.hooks.hook("link:prefetch",async s=>{const{hostname:n}=new URL(s,window.location.href);n===window.location.hostname&&await Uy().catch(()=>{console.warn("[nuxt] Error preloading payload for",s)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(W6,1e3)})}}),PM=hs(()=>{const e=is();f0(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),DM=hs(e=>{let t;async function s(){let n;try{n=await W6()}catch(r){const i=r;if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(s,My);try{const r=await $fetch(Vm("builds/latest.json")+`?${Date.now()}`);r.id!==n?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}f0(()=>{t=setTimeout(s,My)})});function EM(e={}){const t=e.path||window.location.pathname,s=new URL(t,window.location.href);if(s.host!==window.location.host)throw new Error(`Cannot navigate to a URL with a different host: '${t}'.`);if(s.protocol&&Zp(s.protocol))throw new Error(`Cannot navigate to a URL with '${s.protocol}' protocol.`);let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Te().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const LM=hs({name:"nuxt:chunk-reload",setup(e){const t=is(),s=kn(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:i})=>{n.add(i)});function r(i){const o=Ko(s.app.baseURL,i.fullPath);EM({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(r)}),t.onError((i,o)=>{n.has(i)&&r(o)})}});function kh(e){return typeof e=="string"?`'${e}'`:new RM().serialize(e)}const RM=(function(){class e{#e=new Map;compare(s,n){const r=typeof s,i=typeof n;return r==="string"&&i==="string"?s.localeCompare(n):r==="number"&&i==="number"?s-n:String.prototype.localeCompare.call(this.serialize(s,!0),this.serialize(n,!0))}serialize(s,n){if(s===null)return"null";switch(typeof s){case"string":return n?s:`'${s}'`;case"bigint":return`${s}n`;case"object":return this.$object(s);case"function":return this.$function(s)}return String(s)}serializeObject(s){const n=Object.prototype.toString.call(s);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),s);const r=s.constructor,i=r===Object||r===void 0?"":r.name;if(i!==""&&globalThis[i]===r)return this.serializeBuiltInType(i,s);if(typeof s.toJSON=="function"){const o=s.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(s))}serializeBuiltInType(s,n){const r=this["$"+s];if(r)return r.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(s,n.entries());throw new Error(`Cannot serialize ${s}`)}serializeObjectEntries(s,n){const r=Array.from(n).sort((o,l)=>this.compare(o[0],l[0]));let i=`${s}{`;for(let o=0;o<r.length;o++){const[l,u]=r[o];i+=`${this.serialize(l,!0)}:${this.serialize(u)}`,o<r.length-1&&(i+=",")}return i+"}"}$object(s){let n=this.#e.get(s);return n===void 0&&(this.#e.set(s,`#${this.#e.size}`),n=this.serializeObject(s),this.#e.set(s,n)),n}$function(s){const n=Function.prototype.toString.call(s);
6return n.slice(-15)==="[native code] }"?`${s.name||""}()[native]`:`${s.name}(${s.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(s){let n="[";for(let r=0;r<s.length;r++)n+=this.serialize(s[r]),r<s.length-1&&(n+=",");return n+"]"}$Date(s){try{return`Date(${s.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(s){return`ArrayBuffer[${new Uint8Array(s).join(",")}]`}$Set(s){return`Set${this.$Array(Array.from(s).sort((n,r)=>this.compare(n,r)))}`}$Map(s){return this.serializeObjectEntries("Map",s.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(s){return`${t}(${s})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(s){return`${t}[${s.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(s){return`${t}[${s.join("n,")}${s.length>0?"n":""}]`};return e})();function MM(e,t){return e===t||kh(e)===kh(t)}const OM=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],FM=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],NM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Lo=[];let BM=class{_data=new Wa;_hash=new Wa([...OM]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const s=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(s/4294967296),this._data.words[(n+64>>>9<<4)+15]=s,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,s){const n=this._hash.words;let r=n[0],i=n[1],o=n[2],l=n[3],u=n[4],d=n[5],f=n[6],h=n[7];for(let g=0;g<64;g++){if(g<16)Lo[g]=t[s+g]|0;else{const w=Lo[g-15],$=(w<<25|w>>>7)^(w<<14|w>>>18)^w>>>3,S=Lo[g-2],I=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;Lo[g]=$+Lo[g-7]+I+Lo[g-16]}const m=u&d^~u&f,_=r&i^r&o^i&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),k=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),x=h+k+m+FM[g]+Lo[g],C=v+_;h=f,f=d,d=u,u=l+x|0,l=o,o=i,i=r,r=x+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+l|0,n[4]=n[4]+u|0,n[5]=n[5]+d|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0}_append(t){typeof t=="string"&&(t=Wa.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let s,n=this._data.sigBytes/64;t?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let o=0;o<r;o+=16)this._doProcessBlock(this._data.words,o);s=this._data.words.splice(0,r),this._data.sigBytes-=i}return new Wa(s,i)}};class Wa{words;sigBytes;constructor(t,s){t=this.words=t||[],this.sigBytes=s===void 0?t.length*4:s}static fromUtf8(t){const s=unescape(encodeURIComponent(t)),n=s.length,r=[];for(let i=0;i<n;i++)r[i>>>2]|=(s.charCodeAt(i)&255)<<24-i%4*8;return new Wa(r,n)}toBase64(){const t=[];for(let s=0;s<this.sigBytes;s+=3){const n=this.words[s>>>2]>>>24-s%4*8&255,r=this.words[s+1>>>2]>>>24-(s+1)%4*8&255,i=this.words[s+2>>>2]>>>24-(s+2)%4*8&255,o=n<<16|r<<8|i;for(let l=0;l<4&&s*8+l*6<this.sigBytes*8;l++)t.push(NM.charAt(o>>>6*(3-l)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let s=0;s<t.sigBytes;s++){const n=t.words[s>>>2]>>>24-s%4*8&255;this.words[this.sigBytes+s>>>2]|=n<<24-(this.sigBytes+s)%4*8}else for(let s=0;s<t.sigBytes;s+=4)this.words[this.sigBytes+s>>>2]=t.words[s>>>2];this.sigBytes+=t.sigBytes}}
6function VM(e){return new BM().finalize(e).toBase64()}function Ba(e){return VM(kh(e))}const q8=Symbol.for("nuxt:client-only"),wu=G({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:s}){const n=fn(!1);je(()=>{n.value=!0});const r=vr();return r&&(r._nuxtClientOnly=!0),ks(q8,!0),()=>{if(n.value){const u=t.default?.();return u&&u.length===1?[Kr(u[0],s)]:u}const i=t.fallback||t.placeholder;if(i)return ot(i);const o=e.fallback||e.placeholder||"",l=e.fallbackTag||e.placeholderTag||"span";return y(l,s,o)}}});function j8(e){return Object.defineProperty(function(){throw new Error(`[nuxt] \`${e.name}\` is a compiler macro and cannot be called at runtime.`)},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}const U8=j8({name:"createUseAsyncData",factory(e={}){function t(...s){const n=typeof s[s.length-1]=="string"?s.pop():void 0;qM(s[0],s[1])&&s.unshift(n);let[r,i,o={}]=s,l=!1;const u=it(r)||typeof r=="function",d=u?A(()=>Fr(r)):{value:r};if(!d.value||typeof d.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a non-empty string.");if(typeof i!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const f=typeof e=="function",h=Te(),g=f?e(o):e;if(!f)for(const w in g)g[w]!==void 0&&o[w]===void 0&&(o[w]=g[w]);if(o.server??=!0,o.default??=UM,o.getCachedData??=W8,o.lazy??=!1,o.immediate??=!0,o.deep??=eI.deep,o.dedupe??="cancel",f)for(const w in g)g[w]!==void 0&&(o[w]=g[w]);h._asyncData[d.value];function m(){const w={cause:"initial",dedupe:o.dedupe},$=h._asyncData[d.value];return $?._init?h._asyncDataPromises[d.value]&&(w.cachedData=$._initialCachedData):(w.cachedData=o.getCachedData(d.value,h,{cause:"initial"}),h._asyncData[d.value]=X_(h,d.value,i,o,w.cachedData),h._asyncData[d.value]._initialCachedData=w.cachedData),()=>h._asyncData[d.value].execute(w)}const _=m(),v=h._asyncData[d.value];v._deps++;const k=o.server!==!1&&h.payload.serverRendered;{let w=function(R){const F=h._asyncData[R];F?._deps&&(F._deps--,F._deps===0&&F?._off())};const $=vr();if($&&k&&o.immediate&&!$.sp&&($.sp=[]),$&&!$._nuxtOnBeforeMountCbs){$._nuxtOnBeforeMountCbs=[];const R=$._nuxtOnBeforeMountCbs;R5(()=>{R.forEach(F=>{F()}),R.splice(0,R.length)}),wn(()=>R.splice(0,R.length))}const S=$&&($._nuxtClientOnly||ts(q8,!1));k&&h.isHydrating&&(v.error.value||v.data.value!==void 0)?v.status.value=v.error.value?"error":"success":$&&(!S&&h.payload.serverRendered&&h.isHydrating||o.lazy)&&o.immediate?$._nuxtOnBeforeMountCbs.push(_):o.immediate&&v.status.value!=="success"&&_();const I=_o(),P=()=>{},L=u?Se(d,(R,F)=>{if((R||F)&&R!==F){l=!0;const N=h._asyncData[F]?.data.value!==void 0,z=h._asyncDataPromises[F]!==void 0,me={cause:"initial",dedupe:o.dedupe};if(!h._asyncData[R]?._init){let fe;F&&N?fe=h._asyncData[F].data.value:(fe=o.getCachedData(R,h,{cause:"initial"}),me.cachedData=fe),h._asyncData[R]=X_(h,R,i,o,fe)}h._asyncData[R]._deps++,F&&w(F),o._keyTriggersExecute!==!1&&(o.immediate||N||z)&&h._asyncData[R].execute(me),Kc(()=>{l=!1})}},{flush:"sync"}):P,D=o.watch?Se(o.watch,()=>{l||(h._asyncData[d.value]?._execute.isPending()&&Kc(()=>{h._asyncData[d.value]?._execute.flush()}),h._asyncData[d.value]?._execute({cause:"watch",dedupe:o.dedupe}))}):P;I&&Zo(()=>{L(),D(),w(d.value)})}const x={data:od(()=>h._asyncData[d.value]?.data),pending:od(()=>h._asyncData[d.value]?.pending),status:od(()=>h._asyncData[d.value]?.status),error:od(()=>h._asyncData[d.value]?.error),refresh:(...w)=>h._asyncData[d.value]?._init?h._asyncData[d.value].execute(...w):m()(),execute:(...w)=>x.refresh(...w),clear:()=>{const w=h._asyncData[d.value];if(w?._abortController)try{w._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{w._abortController=void 0}z8(h,d.value)}},C=Promise.resolve(h._asyncDataPromises[d.value]).then(()=>x);return Object.assign(C,x),Object.defineProperties(C,{then:{enumerable:!0,value:C.then.bind(C)},catch:{enumerable:!0,value:C.catch.bind(C)},finally:{enumerable:!0,value:C.finally.bind(C)}}),C}return t}}),HM=U8.__nuxt_factory();U8.__nuxt_factory({lazy:!0,_functionName:"useLazyAsyncData"});function od(e){return A({get(){return e()?.value},set(t){const s=e();s&&(s.value=t)}})}function qM(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function z8(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=a(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle",e._asyncData[t]._initialCachedData=void 0),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function jM(e,t){const s={};for(const n of t)s[n]=e[n];return s}function X_(e,t,s,n,r){e.payload._errors[t]??=void 0;const i=n.getCachedData!==W8,o=s,l=n.deep?X:fn,u=r!==void 0,d=e.hook("app:data:refresh",async h=>{(!h||h.includes(t))&&await f.execute({cause:"refresh:hook"})}),f={data:l(u?r:n.default()),pending:A(()=>f.status.value==="pending"),error:oo(e.payload._errors,t),status:fn("idle"),execute:(...h)=>{const[g,m=void 0]=h,_=g&&m===void 0&&typeof g=="object"?g:{};if(e._asyncDataPromises[t]&&(_.dedupe??n.dedupe)==="defer")return e._asyncDataPromises[t];{const x="cachedData"in _?_.cachedData:n.getCachedData(t,e,{cause:_.cause??"refresh:manual"});if(x!==void 0)return e.payload.data[t]=f.data.value=x,f.error.value=void 0,f.status.value="success",Promise.resolve(x)}f._abortController&&f._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),f._abortController=new AbortController,f.status.value="pending";const v=new AbortController,k=new Promise((x,C)=>{try{const w=_.timeout??n.timeout,$=zM([f._abortController?.signal,_?.signal],v.signal,w);if($.aborted){const S=$.reason;C(S instanceof Error?S:new DOMException(String(S??"Aborted"),"AbortError"));return}return $.addEventListener("abort",()=>{const S=$.reason;C(S instanceof Error?S:new DOMException(String(S??"Aborted"),"AbortError"))},{once:!0,signal:v.signal}),Promise.resolve(o(e,{signal:$})).then(x,C)}catch(w){C(w)}}).then(async x=>{if(e._asyncDataPromises[t]!==k)return;let C=x;n.transform&&(C=await n.transform(x)),n.pick&&(C=jM(C,n.pick)),e.payload.data[t]=C,f.data.value=C,f.error.value=void 0,f.status.value="success"}).catch(x=>
6{if(e._asyncDataPromises[t]!==k||f._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&x instanceof DOMException&&x.name==="AbortError")return f.status.value="idle",e._asyncDataPromises[t];f.error.value=lo(x),f.data.value=a(n.default()),f.status.value="error"}).finally(()=>{v.abort(),e._asyncDataPromises[t]===k&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=k,e._asyncDataPromises[t]},_execute:TT((...h)=>f.execute(...h),0,{leading:!0}),_default:n.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{d(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),i||lt(()=>{e._asyncData[t]?._init||(z8(e,t),f.execute=()=>Promise.resolve())})}};return f}const UM=()=>{},W8=(e,t,s)=>{if(t.isHydrating)return t.payload.data[e];if(s.cause!=="refresh:manual"&&s.cause!=="refresh:hook")return t.static.data[e]};function zM(e,t,s){const n=e.filter(o=>!!o);if(typeof s=="number"&&s>=0){const o=AbortSignal.timeout?.(s);o&&n.push(o)}if(AbortSignal.any)return AbortSignal.any(n);const r=new AbortController;for(const o of n)if(o.aborted){const l=o.reason??new DOMException("Aborted","AbortError");try{r.abort(l)}catch{r.abort()}return r.signal}const i=()=>{const l=n.find(u=>u.aborted)?.reason??new DOMException("Aborted","AbortError");try{r.abort(l)}catch{r.abort()}};for(const o of n)o.addEventListener?.("abort",i,{once:!0,signal:t});return r.signal}const WM="$s";function G8(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[s,n]=e;if(!s||typeof s!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+s);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const r=WM+s,i=Te(),o=oo(i.payload.state,r);if(n&&(i._state[r]??={_default:n}),o.value===void 0&&n){const l=n();if(it(l))return i.payload.state[r]=l,l;o.value=l}return o}function GM(e){const t=[Fr(e.method)?.toUpperCase()||"GET",Fr(e.baseURL)];for(const s of[e.query||e.params]){const n=Fr(s);if(!n)continue;const r={};for(const[i,o]of Object.entries(n))r[Fr(i)]=Fr(o);t.push(r)}if(e.body){const s=Fr(e.body);if(!s)t.push(Ba(s));else if(s instanceof ArrayBuffer)t.push(Ba(Object.fromEntries([...new Uint8Array(s).entries()].map(([n,r])=>[n,r.toString()]))));else if(s instanceof FormData){const n=[];for(const r of s.entries()){const[i,o]=r;n.push([i,o instanceof File?`${o.name}:${o.size}:${o.lastModified}`:o])}t.push(Ba(n))}else if(xm(s))t.push(Ba(Ws(s)));else try{t.push(Ba(s))}catch{console.warn("[useFetch] Failed to hash body",s)}}return t}const Y8=j8({name:"createUseFetch",factory(e={}){function t(s,n,r){const[i={},o]=typeof n=="string"?[{},n]:[n,r],l=typeof e=="function"?e(i):e,{server:u,lazy:d,default:f,transform:h,pick:g,watch:m,immediate:_,getCachedData:v,deep:k,dedupe:x,timeout:C,...w}={...typeof e=="function"?{}:l,...i,...typeof e=="function"?l:{}},$=A(()=>Fr(s)),S=A(()=>Fr(w.key)||"$f"+Ba([o,typeof $.value=="string"?$.value:"",...GM(w)]));if(!w.baseURL&&typeof $.value=="string"&&$.value[0]==="/"&&$.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const I=Ws({...tI,...w,cache:typeof w.cache=="boolean"?void 0:w.cache}),P={server:u,lazy:d,default:f,transform:h,pick:g,immediate:_,getCachedData:v,deep:k,dedupe:x,timeout:C,watch:m===!1?[]:[...m||[],I]};return m===!1&&(P._keyTriggersExecute=!1),HM(S,(D,{signal:R})=>(w.$fetch||globalThis.$fetch)($.value,{signal:R,...I}),P)}return t}});Y8.__nuxt_factory();Y8.__nuxt_factory({lazy:!0,_functionName:"useLazyFetch"});const YM=3456e4;function KM(e,t,s){const n=e.indexOf(";",t);return n===-1?s:n}function QM(e,t,s){const n=e.indexOf("=",t);return n<s?n:-1}function Z_(e,t,s){if(t===s)return"";let n=t,r=s;do{const i=e.charCodeAt(n);if(i!==32&&i!==9)break}while(++n<r);for(;r>n;){const i=e.charCodeAt(r-1);if(i!==32&&i!==9)break;r--}return e.slice(n,r)}const XM=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function ZM(e,t){const s=new XM,n=e.length;if(n<2)return s;const r=t?.decode||JM,i=t?.allowMultiple||!1;let o=0;do{const l=QM(e,o,n);if(l===-1)break;const u=KM(e,o,n);if(l>u){o=e.lastIndexOf(";",l-1)+1;continue}const d=Z_(e,o,l);if(t?.filter&&!t.filter(d)){o=u+1;continue}const f=r(Z_(e,l+1,u));if(i){const h=s[d];h===void 0?s[d]=f:Array.isArray(h)?h.push(f):s[d]=[h,f]}else s[d]===void 0&&(s[d]=f);o=u+1}while(o<n);return s}function JM(e){if(!e.includes("%"))return e;try{return decodeURIComponent(e)}catch{return e}}const eO=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,tO=/^[\u0021-\u003A\u003C-\u007E]*$/,sO=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,nO=/^[\u0020-\u003A\u003C-\u007E]*$/,rO=Object.prototype.toString;
6function J_(e,t,s){const n=typeof e=="object"&&e!==null,r=n?t:s,i=r?.stringify||JSON.stringify,o=n?e:{...s,name:e,value:t==null?"":typeof t=="string"?t:i(t)},l=r?.encode||encodeURIComponent;if(!eO.test(o.name))throw new TypeError(`argument name is invalid: ${o.name}`);const u=o.value?l(o.value):"";if(!tO.test(u))throw new TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw new TypeError("Partitioned cookies must have the Secure attribute");if(o.sameSite&&String(o.sameSite).toLowerCase()==="none")throw new TypeError("SameSite=None cookies must have the Secure attribute");if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){const f=o.name.toLowerCase();if(f.startsWith("__secure-")||f.startsWith("__host-"))throw new TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith("__host-")){if(o.path!=="/")throw new TypeError("__Host- cookies must have Path=/");if(o.domain)throw new TypeError("__Host- cookies must not have a Domain attribute")}let d=o.name+"="+u;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw new TypeError(`option maxAge is invalid: ${o.maxAge}`);d+="; Max-Age="+Math.max(0,Math.min(o.maxAge,YM))}if(o.domain){if(!sO.test(o.domain))throw new TypeError(`option domain is invalid: ${o.domain}`);d+="; Domain="+o.domain}if(o.path){if(!nO.test(o.path))throw new TypeError(`option path is invalid: ${o.path}`);d+="; Path="+o.path}if(o.expires){if(!iO(o.expires)||!Number.isFinite(o.expires.valueOf()))throw new TypeError(`option expires is invali
6d: ${o.expires}`);d+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.partitioned&&(d+="; Partitioned"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():void 0){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"none":d+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${o.sameSite}`)}return d}function iO(e){return rO.call(e)==="[object Date]"}function ar(e){if(typeof e!="object")return e;var t,s,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){s=new e.constructor;for(t in e)e.hasOwnProperty(t)&&s[t]!==e[t]&&(s[t]=ar(e[t]))}else{s={};for(t in e)t==="__proto__"?Object.defineProperty(s,t,{value:ar(e[t]),configurable:!0,enumerable:!0,writable:!0}):s[t]=ar(e[t])}return s}if(n==="[object Array]"){for(t=e.length,s=Array(t);t--;)s[t]=ar(e[t]);return s}return n==="[object Set]"?(s=new Set,e.forEach(function(r){s.add(ar(r))}),s):n==="[object Map]"?(s=new Map,e.forEach(function(r,i){s.set(ar(i),ar(r))}),s):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(s=new RegExp(e.source,e.flags),s.lastIndex=e.lastIndex,s):n==="[object DataView]"?new e.constructor(ar(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}function oO(e){if(e!=="undefined")try{const t=JSON.parse(e);return typeof t=="number"&&String(t)!==e?e:t}catch{return e}}const aO={path:"/",watch:!0,decode:e=>e&&oO(decodeURIComponent(e)),encode:e=>{if(typeof e!="string"||e==="undefined")return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!="string")return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},ad=globalThis.cookieStore;function h1(e,t){const s={...aO,...t};s.filter??=d=>d===e;const n=e3(s)||{};let r;s.maxAge!==void 0?r=s.maxAge*1e3:s.expires&&(r=s.expires.getTime()-Date.now());const i=r!==void 0&&r<=0,o=i||n[e]===void 0||n[e]===null,l=ar(i?void 0:n[e]??s.default?.()),u=r&&!i?fO(l,r,s.watch&&s.watch!=="shallow"):X(l);{let d=null;try{!ad&&typeof BroadcastChannel<"u"&&(d=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const f=(_=!1)=>{if(!_&&(s.readonly||MM(u.value,n[e])))return;const v=u.value===null||u.value===void 0?void 0:s.encode(u.value);dO(e,v,s),n[e]=ar(u.value),d?.postMessage({value:s.encode(u.value)})},h=_=>{const v=_.refresh?e3(s)?.[e]:s.decode(_.value);g=!0,u.value=v,n[e]=ar(v),lt(()=>{g=!1})};let g=!1;const m=!!_o();if(m&&Zo(()=>{g=!0,f(),d?.close()}),ad){const _=v=>{const k=v.changed.find(C=>C.name===e),x=v.deleted.find(C=>C.name===e);k&&h({value:k.value}),x&&h({value:null})};ad.addEventListener("change",_),m&&Zo(()=>ad.removeEventListener("change",_))}else d&&(d.onmessage=({data:_})=>h(_));s.watch&&Se(u,()=>{g||f(s.refresh)},{deep:s.watch!=="shallow"}),o&&f(o)}return u}function e3(e={}){return ZM(document.cookie,e)}const lO=e=>e;function cO(e){const{encode:t,decode:s,...n}=e;return{...n,encode:lO}}function uO(e,t,s={}){const n=cO(s);return t===void 0?J_(e,"",{...n,maxAge:-1}):J_(e,t,n)}function dO(e,t,s={}){document.cookie=uO(e,t,s)}const t3=2147483647;function fO(e,t,s){let n,r,i=0;const o=s?X(e):{value:e};return _o()&&Zo(()=>{r?.(),clearTimeout(n)}),KC((l,u)=>{s&&(r=Se(o,u));function d(){const h=t-i,g=h<t3?h:t3;n=setTimeout(()=>{if(i+=g,i<t)return d();o.value=void 0,u()},g)}function f(){i=0,clearTimeout(n),d()}return{get(){return l(),o.value},set(h){f(),o.value=h,u()}}})}function pO(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function hO(e,t=is()){const{path:s,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(s)))return;const r=t._preloadPromises||=[];if(r.length>4)return Promise.all(r).then(()=>hO(e,t));t._routePreloaded.add(s);for(const i of n){const o=i.components?.default;if(typeof o!="function")continue;const l=Promise.resolve(o()).catch(()=>{}).finally(()=>r.splice(r.indexOf(l),1));r.push(l)}await Promise.all(r)}function e2(e){return new URL(globalThis.location.href)}const mO=hs({name:"pinia",setup(e){const t=xI();return e.vueApp.use(t),fl(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=Te();e.payload.pinia=Lt(e.$pinia).state.value,fl(void 0)}}}),gO=hs({name:"nuxt:global-components"}),ld={},yO=hs({name:"nuxt:prefetch",setup(e){const t=is();e.hooks.hook("app:mounted",()=>{t.beforeEach(async s=>{const n=s?.meta?.layout;n&&typeof ld[n]=="function"&&await ld[n]()})}),e.hooks.hook("link:prefetch",s=>{if(Mi(s))return;const n=t.resolve(s);if(!n)return;const r=n.meta.layout;let i=u8(n.meta.middleware);
6i=i.filter(o=>typeof o=="string");for(const o of i)typeof xh[o]=="function"&&xh[o]();typeof r=="string"&&r in ld&&pO(ld[r])})}});function _O(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const m1=typeof window<"u",bo=(e,t=!1)=>t?Symbol.for(e):Symbol(e),vO=(e,t,s)=>bO({l:e,k:t,s}),bO=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),As=e=>typeof e=="number"&&isFinite(e),K8=e=>h0(e)==="[object Date]",g1=e=>h0(e)==="[object RegExp]",p0=e=>Ut(e)&&Object.keys(e).length===0,bs=Object.assign,xO=Object.create,Xt=(e=null)=>xO(e);function s3(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function kO(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const wO=/^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i,CO=/^(?:href|src|action|formaction)$/i;function t2(e){return wO.test(e)}function $O(e){const t=/url\s*\(/gi;let s="",n=0,r;for(;(r=t.exec(e))!==null;){const i=r.index,o=t.lastIndex-1;let l=o+1,u=1,d=null;for(;l<e.length;l++){const g=e[l];if(d){g===d&&(d=null);continue}if(g==='"'||g==="'")d=g;else if(g==="(")u++;else if(g===")"&&(u--,u===0))break}if(u!==0)break;const f=e.slice(o+1,l).trim(),h=f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'")?f.slice(1,-1).trim():f;s+=e.slice(n,i),s+=t2(h)?"url(about:blank)":e.slice(i,l+1),n=l+1}return s+e.slice(n)}function n3(e,t){if(CO.test(e)&&t2(t))return"about:blank";const s=e.toLowerCase()==="style"?$O(t):t;return kO(s)}function SO(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(s,n,r)=>`${n}="${n3(n,r)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(s,n,r)=>`${n}='${n3(n,r)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(s,n,r)=>t2(r)?`${n}about:blank`:s),e}const AO=Object.prototype.hasOwnProperty;function Gn(e,t){return AO.call(e,t)}const vs=Array.isArray,fs=e=>typeof e=="function",tt=e=>typeof e=="string",ms=e=>typeof e=="boolean",jt=e=>e!==null&&typeof e=="object",IO=e=>jt(e)&&fs(e.then)&&fs(e.catch),Q8=Object.prototype.toString,h0=e=>Q8.call(e),Ut=e=>h0(e)==="[object Object]",TO=e=>e==null?"":vs(e)||Ut(e)&&e.toString===Q8?JSON.stringify(e,null,2):String(e);function s2(e,t=""){return e.reduce((s,n,r)=>r===0?s+n:s+t+n,"")}const cd=e=>!jt(e)||vs(e);function rl(e,t){if(cd(e)||cd(t))throw new Error("Invalid value");const s=[{src:e,des:t}];for(;s.length;){const{src:n,des:r}=s.pop();Object.keys(n).forEach(i=>{i!=="__proto__"&&(jt(n[i])&&!jt(r[i])&&(r[i]=Array.isArray(n[i])?[]:Xt()),cd(r[i])||cd(n[i])?r[i]=n[i]:s.push({src:n[i],des:r[i]}))})}}function PO(e,t=e.getCurrentLanguage(),s=e.getCurrentDirection()){const n={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(n.htmlAttrs.dir=s),e.lang&&t&&(n.htmlAttrs.lang=t),e.seo){const r=EO(e);n.link=n.link.concat(r,RO(e)),n.meta=n.meta.concat(MO(e),OO(e),FO(e,e.locales.map(i=>i.language||i.code)))}return n}function DO(e){const t=new Map;for(const s of e){if(!s.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[n,r]=s.language.split("-");n&&r&&(s.isCatchallLocale||!t.has(n))&&t.set(n,s),t.set(s.language,s)}return t}function EO(e){if(!e.hreflangLinks)return[];const t=[],s=DO(e.locales);for(const[n,r]of s.entries()){const i=LO(n,r,e);i&&(t.push(i),e.defaultLocale&&e.defaultLocale===r.code&&t[0].hreflang!=="x-default"&&t.unshift({[e.key]:"i18n-xd",rel:"alternate",href:i.href,hreflang:"x-default"}))}return t}function LO(e,t,s,n=s.strictCanonicals?s.getRouteWithoutQuery():void 0){const r=s.getLocalizedRoute(t.code,n);if(!r)return;const i=n0(Mi(r)?r:Ko(s.baseUrl,r),s.strictCanonicals?Z8(s):{});return{[s.key]:`i18n-alt-${e}`,rel:"alternate",href:i,hreflang:e}}function X8(e,t=e.getCurrentRoute()){const s=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return s?n0(Ko(e.baseUrl,s.path),Z8(e)):""}
6function RO(e,t=X8(e)){return t?[{[e.key]:"i18n-can",rel:"canonical",href:t}]:[]}function Z8(e,t=e.getCurrentRoute()){const n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},r={};for(const i of e.canonicalQueries.filter(o=>o in n)){r[i]??=[];for(const o of NO(n[i]))r[i].push(o||"")}return r}function MO(e,t=X8(e)){return t?[{[e.key]:"i18n-og-url",property:"og:url",content:t}]:[]}function OO(e,t=e.getCurrentLanguage()){return t?[{[e.key]:"i18n-og",property:"og:locale",content:J8(t)}]:[]}function FO(e,t,s=e.getCurrentLanguage()){return t.filter(r=>r&&r!==s).map(r=>({[e.key]:`i18n-og-alt-${r}`,property:"og:locale:alternate",content:J8(r)}))}function J8(e=""){return e.replace(/-/g,"_")}function NO(e){return Array.isArray(e)?e:[e]}function y1(e,t,s=e.getLocale()){if(tt(t)&&Mi(t,{acceptRelative:!0}))return t;try{return tx(e,t,s).fullPath}catch{return""}}function ex(e,t,s=e.getLocale()){try{return tx(e,t,s)}catch{return}}function BO(e){if(!tt(e))return bs({},e);if(e[0]==="/"){const{pathname:t,search:s,hash:n}=th(e);return{path:t,query:Fm(s),hash:n}}return{name:e}}function tx(e,t,s){const n=BO(t),r=e.router.resolve(e.resolveLocalizedRouteObject(n,s));return r.name?r:e.router.resolve(t)}function n2(e,t,s=e.router.currentRoute.value){const n=e.getRouteBaseName(s);if(!n)return"";const r={name:n,params:bs({},s.params,e.getLocalizedDynamicParams(t)),fullPath:s.fullPath,query:s.query,hash:s.hash,path:s.path,meta:s.meta},i=y1(e,r,t);return e.afterSwitchLocalePath(i,t)}function VO(e,t,s=e.getLocale(),n=e.getLocales(),r=e.getBaseUrl()){const i=n.find(l=>l.code===s)||{},o=typeof t.seo=="object"&&t.seo?.canonicalQueries||[];return r||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{...t,key:"id",locales:n,baseUrl:r,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>i.language,getCurrentDirection:()=>i.dir||"ltr",getLocaleRoute:l=>ex(e,l),getLocalizedRoute:(l,u)=>n2(e,l,u),getRouteWithoutQuery:()=>{try{return bs({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function HO(e,{dir:t=!0,lang:s=!0,seo:n=!0}){return PO(VO(e,{dir:t,lang:s,seo:n}))}function qO(e=0){return t=>{const r=(typeof t=="string"?t:t.pathname).split("?")[0].split("/");return r[0]===""&&r.shift(),r.length>e&&r[e]||""}}const m0="___",jO="default",Ilt=m0+jO;function sx(e){return typeof e=="string"?e:e!=null?e.toString():""}function Qf(e){return sx(typeof e=="object"?e?.name:e).split(m0)[0]}function UO(e,t,s){return e+m0+t}const zO=qO(0),wh=e=>zO(e),WO=e=>e.split(m0).at(1)??"";function GO(e){return String(typeof e!="object"?e:e?.name||e?.path||"")}function YO(e){const t=GO(e);if(t[0]==="/")return wh(t);const s=WO(t);return s||(typeof e=="object"&&e?.path?wh(String(e.path)):"")}function KO(e){return(t,s)=>UO(sx(t),s)}function QO(e){return t=>e.resolve(t)}const su=["ru"],_1={ru:[{key:"locale_ru_46json_c7b4531b",load:()=>wt(()=>import("./B01JVohM.js"),[],import.meta.url),cache:!0}]},XO=[],Cu=[{code:"ru",name:"Ð ÑÑÑкий",language:void 0}],nx=new Map,ZO=L6((e,t,s)=>{if(t==="messages"||t==="datetimeFormats"||t==="numberFormats")return e[t]??=Xt(null),rl(s,e[t]),!0});async function JO(e){const t=Te();let s={messages:Xt(null)};for(const n of e){const r=await n().then(o=>rx(o)?o.default:o),i=fs(r)?await t.runWithContext(()=>r()):r;s=ZO(Xt(null),i,s)}return s.fallbackLocale??=!1,s}const rx=e=>h0(e)==="[object Module]";async function eF(e,t){const s=Te();try{const n=await s.runWithContext(t.load).then(r=>rx(r)?r.default:r);return fs(n)?await s.runWithContext(()=>n(e)):n}catch(n){throw new Error(`Failed loading locale (${e}): `+n.message)}}async function tF(e,t=[]){const s=Te(),n=await Promise.all(t.map(async i=>{const o=sF(i),l=o||await s.runWithContext(()=>eF(e,i));return!o&&i.cache!==!1&&nx.set(i.key,{ttl:Date.now()+86400*1e3,value:l}),l})),r={};for(const i of n)rl(i,r);return r}
6function sF(e){if(e.cache===!1)return;const t=nx.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function r2(e){return e!=null&&"global"in e&&"mode"in e?e.global:e}function ud(e){const t=r2(e);return"__composer"in t?t.__composer:t}function g0(e,t){return e?e.$config.public.i18n:kn().public.i18n}function $u(e){const t=g0(e).detectBrowserLanguage,s=t||{};return{...s,enabled:!!t,cookieKey:s.cookieKey||"i18n_redirected"}}function nF(e){if(e)return{path:"/"+(tt(e)?e:e.path).replace(/^\//,""),code:!tt(e)&&e.statusCode||302}}function rF(e){return Array.isArray(e)?e:[e]}function iF(e,t,s){const n=(i="")=>i.replace(/https?:\/\//,""),r=e.filter(i=>n(i.domain)===t||rF(i.domains).includes(t));return r.length<=1?r[0]?.code:r.find(i=>i.code===s)?.code||r.find(i=>i.defaultForDomains?.includes(t)??i.domainDefault)?.code}function oF(e,t,s){const n=Cu.find(i=>i.code===s),r=e?.[s]?.domain||n?.domain||n?.domains?.find(i=>i===t.host);if(r)return Mi(r,{strict:!0})?r:t.protocol+"//"+r}function aF(e){const t={};for(const s of su){const n=lF(e,[s]),r
6=cF(s,n);t[s]={fallbacks:n,cacheable:r}}return t}function lF(e,t){if(e===!1)return[];if(vs(e))return e;let s=[];if(tt(e))return t.every(r=>r!==e)&&s.push(e),s;const n=[...t,"default"];for(const r of n)r in e&&(s=[...s,...e[r].filter(Boolean)]);return s}function r3(e){return _1[e]!=null&&_1[e].every(t=>t.cache!==!1)}function cF(e,t){return r3(e)&&t.every(s=>r3(s))}function uF(e){return Cu.find(t=>!!t.defaultForDomains?.includes(e))?.code}const Qo=e=>su.includes(e||""),i3=e=>Qo(e)?e:void 0;var dF={ru:"b291ffec"};const ix=()=>G8("i18n:cached-locale-configs",()=>{}),ox=()=>G8("i18n:resolved-locale",()=>"");function fF({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:s,cookieKey:n}){const r=new Date;return h1(n||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(r.setDate(r.getDate()+365)),sameSite:e?"none":"lax",domain:t||void 0,secure:e||s})}function pF(e,t,s){const n=r2(t),r=g0(e),i=$u(e),o=ix(),l=fF(i),u=new Set,d=k=>o.value[k],f=k=>oF(r.domainLocales,e2(),k),h=AF(e,r.baseUrl),g=ox(),m=async k=>{const x=d(k)?.fallbacks??[];x.includes(k)||x.push(k);for(const C of x){const w=await e.runWithContext(()=>tF(C,_1[C]));n.mergeLocaleMessage(C,w)}},_=async k=>{if(!(k in _1))return;const x=d(k)?.cacheable?{}:{"Cache-Control":"no-cache"},w=Ko("","/_i18n",dF[k],k,"messages.json"),$=await $fetch(w,{headers:x});for(const S of Object.keys($))n.mergeLocaleMessage(S,$[S])},v={vueI18n:t,initial:!0,preloaded:!1,config:r,rootRedirect:nF(r.rootRedirect),redirectStatusCode:r.redirectStatusCode??302,dynamicResourcesSSG:!1,getDefaultLocale:()=>s,getLocale:()=>a(n.locale),setLocale:async k=>{const x=v.getLocale();k===x||!Qo(k)||(it(n.locale)?n.locale.value=k:n.locale=k,await e.callHook("i18n:localeSwitched",{newLocale:k,oldLocale:x}),g.value=k)},setLocaleSuspend:async k=>{Qo(k)&&(v.vueI18n.__pendingLocale=k,v.vueI18n.__pendingLocalePromise=new Promise(x=>{v.vueI18n.__resolvePendingLocalePromise=async()=>{v.setCookieLocale(k),await v.setLocale(k),v.vueI18n.__pendingLocale=void 0,x()}}),(e.isHydrating||!v.config.skipSettingLocaleOnNavigate)&&await v.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>a(n.locales).map(k=>tt(k)?{code:k}:k),setCookieLocale:k=>{i.useCookie&&Qo(k)&&(l.value=k)},getBaseUrl:k=>Ko(k&&f(k)||h(),e.$config.app.baseURL),loadMessages:async k=>{if(!(e.isHydrating&&u.has(k)))try{return v.dynamicResourcesSSG?await m(k):await _(k)}catch(x){console.warn(`Failed to load messages for locale "${k}"`,x)}finally{u.add(k)}},composableCtx:void 0};return v.composableCtx=wF(v,e),v}function y0(e){if(e._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return e._nuxtI18n}function hF(e,t){const s=[];for(const[n,r]of t.entries()){const i=e.find(o=>o.language?.toLowerCase()===r.toLowerCase());if(i){s.push({code:i.code,score:1-n/t.length});break}}for(const[n,r]of t.entries()){const i=r.split("-")[0].toLowerCase(),o=e.find(l=>l.language?.split("-")[0].toLowerCase()===i);if(o){s.push({code:o.code,score:.999-n/t.length});break}}return s}function mF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function gF(e,t){return hF(e.map(n=>({code:n.code,language:n.language||n.code})),t).sort(mF).at(0)?.code??""}const yF=(e,t)=>h1(t).value||void 0,_F=(e,t)=>YO(t),vF=e=>gF(Cu,navigator.languages),bF=(e,t,s)=>{const n=new URL(window.location.href).host,r=Cu.map(i=>({...i,domain:s[i.code]?.domain??i.domain}));return iF(r,n,wh(t))},_0=(e,t,s)=>{const n=g0(s);return{cookie:()=>yF(e,t.cookieKey),header:()=>{},navigator:()=>vF(),host:r=>bF(e,r,n.domainLocales),route:r=>_F(e,r)}},xF=e=>!!e.path&&!e.name;function Su(e){const t=e?._nuxtI18n?.composableCtx;if(!t)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return t}const kF=tu;function wF(e,t=Te()){const s=is();_0(void 0,$u(t),t);const n=e.getDefaultLocale(),r=KO();function i(d,f){d.name=Qf(d.name||s.currentRoute.value);const h=r(d.name,f);return s.hasRoute(h)&&(d.name=h),d.name=h,d}const o=QO(s);function l(d,f){const h=o(d,f),g=Qf(h);if(g){const m=r(g,f);return s.hasRoute(m),h.name=m,h}return SF(f,n)&&(h.path="/"+f+h.path),h.path=kF(h.path,!0),h}const u={router:s,_head:void 0,get head(){return this._head??=qm({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:CF(),routingOptions:{defaultLocale:n,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!0},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:Qf,getRouteLocalizedParams:()=>s.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:d=>u.getRouteLocalizedParams()?.[d],afterSwitchLocalePath:(d,f)=>(u.getRouteLocalizedParams(),d),resolveLocalizedRouteObject:(d,f)=>xF(d)?l(d,f):i(d,f)};return u}function CF(e=Te()){const t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||"{}")}async function Ch(e,t){const s=y0(e),n=s.getLocale();
6if(t===n&&!s.initial&&(!s.vueI18n.__pendingLocale||s.vueI18n.__pendingLocale===t))return t;const r={oldLocale:n,newLocale:t,initialSetup:s.initial,context:e};let i=await e.callHook("i18n:beforeLocaleSwitch",r);return i!=null,i??=r.newLocale,Qo(i)&&(t=i),await s.loadMessages(t),await s.setLocaleSuspend(t),t}function $F(e,t,s){return!!(e.redirectOn==="root"&&t!=="/"||e.redirectOn==="no prefix"&&!e.alwaysRedirect&&Qo(s))}function o3(e,t){const s=$u(e),n=_0(void 0,s,e),r=y0(e),i=tt(t)?t:t.path;function*o(){r.initial&&s.enabled&&!$F(s,i,n.route(i))&&(yield n.cookie(),yield n.header(),yield n.navigator(),yield s.fallbackLocale),yield n.route(t)}for(const l of o())if(l&&Qo(l))return l;return r.getLocale()||r.getDefaultLocale()||""}function ax(e,t,s){const n=y0(e),r=Su(e);if(t.path==="/"&&n.rootRedirect)return Bt(y1(r,n.rootRedirect.path,s),{redirectCode:n.rootRedirect.code});if(n.vueI18n.__pendingLocale&&Te()._processingMiddleware||_0(void 0,$u(e),e).route(t)===s)return;const o=n2(r,s,t)||y1(r,t.fullPath,s);if(!$A(o,t.fullPath))return Bt(o,{redirectCode:n.redirectStatusCode})}function SF(e,t){return e!==t||!1}function AF(e,t,s,n){return fs(t)?()=>t(e):()=>t??""}function IF(e,t,s){return{line:e,column:t,offset:s}}function $h(e,t,s){return{start:e,end:t}}const Kt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},TF=17;function v0(e,t,s={}){const{domain:n,messages:r,args:i}=s,o=e,l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=n,l}function PF(e){throw e}const Ar=" ",DF="\r",Ys=` 7`,EF="\u2028",LF="\u2029";function RF(e){const t=e;let s=0,n=1,r=1,i=0;const o=P=>t[P]===DF&&t[P+1]===Ys,l=P=>t[P]===Ys,u=P=>t[P]===LF,d=P=>t[P]===EF,f=P=>o(P)||l(P)||u(P)||d(P),h=()=>s,g=()=>n,m=()=>r,_=()=>i,v=P=>o(P)||u(P)||d(P)?Ys:t[P],k=()=>v(s),x=()=>v(s+i);function C(){return i=0,f(s)&&(n++,r=0),o(s)&&s++,s++,r++,t[s]}function w(){return o(s+i)&&i++,i++,t[s+i]}function $(){s=0,n=1,r=1,i=0}function S(P=0){i=P}function I(){const P=s+i;for(;P!==s;)C();i=0}return{index:h,line:g,column:m,peekOffset:_,charAt:v,currentChar:k,currentPeek:x,next:C,peek:w,reset:$,resetPeek:S,skipToPeek:I}}const fi=void 0,MF=".",a3="'",OF="tokenizer";function FF(e,t={}){const s=t.location!==!1,n=RF(e),r=()=>n.index(),i=()=>IF(n.line(),n.column(),n.index()),o=i(),l=r(),u={currentType:13,offset:l,startLoc:o,endLoc:o,lastType:13,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>u,{onError:f}=t;function h(M,q,re,...ce){const ie=d();if(q.column+=re,q.offset+=re,f){const $e=s?$h(ie.startLoc,q):null,se=v0(M,$e,{domain:OF,args:ce});f(se)}}function g(M,q,re){M.endLoc=i(),M.currentType=q;const ce={type:q};return s&&(ce.loc=$h(M.startLoc,M.endLoc)),re!=null&&(ce.value=re),ce}const m=M=>g(M,13);function _(M,q){return M.currentChar()===q?(M.next(),q):(h(Kt.EXPECTED_TOKEN,i(),0,q),"")}function v(M){let q="";for(;M.currentPeek()===Ar||M.currentPeek()===Ys;)q+=M.currentPeek(),M.peek();return q}function k(M){const q=v(M);return M.skipToPeek(),q}function x(M){if(M===fi)return!1;
7const q=M.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q===95}function C(M){if(M===fi)return!1;const q=M.charCodeAt(0);return q>=48&&q<=57}function w(M,q){const{currentType:re}=q;if(re!==2)return!1;v(M);const ce=x(M.currentPeek());return M.resetPeek(),ce}function $(M,q){const{currentType:re}=q;if(re!==2)return!1;v(M);const ce=M.currentPeek()==="-"?M.peek():M.currentPeek(),ie=C(ce);return M.resetPeek(),ie}function S(M,q){const{currentType:re}=q;if(re!==2)return!1;v(M);const ce=M.currentPeek()===a3;return M.resetPeek(),ce}function I(M,q){const{currentType:re}=q;if(re!==7)return!1;v(M);const ce=M.currentPeek()===".";return M.resetPeek(),ce}function P(M,q){const{currentType:re}=q;if(re!==8)return!1;v(M);const ce=x(M.currentPeek());return M.resetPeek(),ce}function L(M,q){const{currentType:re}=q;if(!(re===7||re===11))return!1;v(M);const ce=M.currentPeek()===":";return M.resetPeek(),ce}function D(M,q){const{currentType:re}=q;if(re!==9)return!1;const ce=()=>{const $e=M.currentPeek();return $e==="{"?x(M.peek()):$e==="@"||$e==="|"||$e===":"||$e==="."||$e===Ar||!$e?!1:$e===Ys?(M.peek(),ce()):F(M,!1)},ie=ce();return M.resetPeek(),ie}function R(M){v(M);const q=M.currentPeek()==="|";return M.resetPeek(),q}function F(M,q=!0){const re=(ie=!1,$e="")=>{const se=M.currentPeek();return se==="{"||se==="@"||!se?ie:se==="|"?!($e===Ar||$e===Ys):se===Ar?(M.peek(),re(!0,Ar)):se===Ys?(M.peek(),re(!0,Ys)):!0},ce=re();return q&&M.resetPeek(),ce}function N(M,q){const re=M.currentChar();return re===fi?fi:q(re)?(M.next(),re):null}
7function z(M){const q=M.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36}function me(M){return N(M,z)}function ge(M){const q=M.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36||q===45}function fe(M){return N(M,ge)}function te(M){const q=M.charCodeAt(0);return q>=48&&q<=57}function V(M){return N(M,te)}function pe(M){const q=M.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function ye(M){return N(M,pe)}function ne(M){let q="",re="";for(;q=V(M);)re+=q;return re}function ve(M){let q="";for(;;){const re=M.currentChar();if(re==="\\"){const ce=M.peek();ce==="{"||ce==="}"||ce==="@"||ce==="|"||ce==="\\"?(q+=re+ce,M.next(),M.next()):(M.resetPeek(),q+=re,M.next())}else{if(re==="{"||re==="}"||re==="@"||re==="|"||!re)break;if(re===Ar||re===Ys)if(F(M))q+=re,M.next();else{if(R(M))break;q+=re,M.next()}else q+=re,M.next()}}return q}function J(M){k(M);let q="",re="";for(;q=fe(M);)re+=q;const ce=M.currentChar();if(ce&&ce!=="}"&&ce!==fi&&ce!==Ar&&ce!==Ys&&ce!=="ã"){const ie=ze(M);return h(Kt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,re+ie),re+ie}return M.currentChar()===fi&&h(Kt.UNTERMINATED_CLOSING_BRACE,i(),0),re}function he(M){k(M);let q="";return M.currentChar()==="-"?(M.next(),q+=`-${ne(M)}`):q+=ne(M),M.currentChar()===fi&&h(Kt.UNTERMINATED_CLOSING_BRACE,i(),0),q}function Ee(M){return M!==a3&&M!==Ys}function He(M){k(M),_(M,"'");let q="",re="";for(;q=N(M,Ee);)q==="\\"?re+=de(M):re+=q;const ce=M.currentChar();return ce===Ys||ce===fi?(h(Kt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ce===Ys&&(M.next(),_(M,"'")),re):(_(M,"'"),re)}function de(M){const q=M.currentChar();switch(q){case"\\":case"'":return M.next(),`\\${q}`;case"u":return Me(M,q,4);case"U":return Me(M,q,6);default:return h(Kt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,q),""}}function Me(M,q,re){_(M,q);let ce="";for(let ie=0;ie<re;ie++){const $e=ye(M);if(!$e){h(Kt.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${q}${ce}${M.currentChar()}`);break}ce+=$e}return`\\${q}${ce}`}function De(M){return M!=="{"&&M!=="}"&&M!==Ar&&M!==Ys}function ze(M){k(M);let q="",re="";for(;q=N(M,De);)re+=q;return re}function Ue(M){let q="",re="";for(;q=me(M);)re+=q;return re}function ut(M){const q=re=>{const ce=M.currentChar();return ce==="{"||ce==="@"||ce==="|"||ce==="("||ce===")"||!ce||ce===Ar?re:(re+=ce,M.next(),q(re))};return q("")}function H(M){k(M);const q=_(M,"|");return k(M),q}function Y(M,q){let re=null;switch(M.currentChar()){case"{":return q.braceNest>=1&&h(Kt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),M.next(),re=g(q,2,"{"),k(M),q.braceNest++,re;case"}":return q.braceNest>0&&q.currentType===2&&h(Kt.EMPTY_PLACEHOLDER,i(),0),M.next(),re=g(q,3,"}"),q.braceNest--,q.braceNest>0&&k(M),q.inLinked&&q.braceNest===0&&(q.inLinked=!1),re;case"@":return q.braceNest>0&&h(Kt.UNTERMINATED_CLOSING_BRACE,i(),0),re=W(M,q)||m(q),q.braceNest=0,re;default:{let ie=!0,$e=!0,se=!0;if(R(M))return q.braceNest>0&&h(Kt.UNTERMINATED_CLOSING_BRACE,i(),0),re=g(q,1,H(M)),q.braceNest=0,q.inLinked=!1,re;if(q.braceNest>0&&(q.currentType===4||q.currentType===5||q.currentType===6))return h(Kt.UNTERMINATED_CLOSING_BRACE,i(),0),q.braceNest=0,_e(M,q);if(ie=w(M,q))return re=g(q,4,J(M)),k(M),re;if($e=$(M,q))return re=g(q,5,he(M)),k(M),re;if(se=S(M,q))return re=g(q,6,He(M)),k(M),re;if(!ie&&!$e&&!se)return re=g(q,12,ze(M)),h(Kt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,re.value),k(M),re;break}}return re}function W(M,q){const{currentType:re}=q;let ce=null;const ie=M.currentChar();switch((re===7||re===8||re===11||re===9)&&(ie===Ys||ie===Ar)&&h(Kt.INVALID_LINKED_FORMAT,i(),0),ie){case"@":return M.next(),ce=g(q,7,"@"),q.inLinked=!0,ce;case".":return k(M),M.next(),g(q,8,".");case":":return k(M),M.next(),g(q,9,":");default:return R(M)?(ce=g(q,1,H(M)),q.braceNest=0,q.inLinked=!1,ce):I(M,q)||L(M,q)?(k(M),W(M,q)):P(M,q)?(k(M),g(q,11,Ue(M))):D(M,q)?(k(M),ie==="{"?Y(M,q)||ce:g(q,10,ut(M))):(re===7&&h(Kt.INVALID_LINKED_FORMAT,i(),0),q.braceNest=0,q.inLinked=!1,_e(M,q))}}function _e(M,q){let re={type:13};if(q.braceNest>0)return Y(M,q)||m(q);if(q.inLinked)return W(M,q)||m(q);switch(M.currentChar()){case"{":return Y(M,q)||m(q);case"}":return h(Kt.UNBALANCED_CLOSING_BRACE,i(),0),M.next(),g(q,3,"}");case"@":return W(M,q)||m(q);
7default:{if(R(M))return re=g(q,1,H(M)),q.braceNest=0,q.inLinked=!1,re;if(F(M))return g(q,0,ve(M));break}}return re}function ae(){const{currentType:M,offset:q,startLoc:re,endLoc:ce}=u;return u.lastType=M,u.lastOffset=q,u.lastStartLoc=re,u.lastEndLoc=ce,u.offset=r(),u.startLoc=i(),n.currentChar()===fi?g(u,13):_e(n,u)}return{nextToken:ae,currentOffset:r,currentPosition:i,context:d}}const NF="parser",BF=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,VF=/\\([\\@{}|])/g;function HF(e,t){return t}function qF(e,t,s){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||s,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function jF(e={}){const t=e.location!==!1,{onError:s}=e;function n(x,C,w,$,...S){const I=x.currentPosition();if(I.offset+=$,I.column+=$,s){const P=t?$h(w,I):null,L=v0(C,P,{domain:NF,args:S});s(L)}}function r(x,C,w){const $={type:x};return t&&($.start=C,$.end=C,$.loc={start:w,end:w}),$}function i(x,C,w,$){t&&(x.end=C,x.loc&&(x.loc.end=w))}function o(x,C){const w=x.context(),$=r(3,w.offset,w.startLoc);return $.value=C.replace(VF,HF),i($,x.currentOffset(),x.currentPosition()),$}function l(x,C){const w=x.context(),{lastOffset:$,lastStartLoc:S}=w,I=r(5,$,S);return I.index=parseInt(C,10),x.nextToken(),i(I,x.currentOffset(),x.currentPosition()),I}function u(x,C){const w=x.context(),{lastOffset:$,lastStartLoc:S}=w,I=r(4,$,S);return I.key=C,x.nextToken(),i(I,x.currentOffset(),x.currentPosition()),I}function d(x,C){const w=x.context(),{lastOffset:$,lastStartLoc:S}=w,I=r(9,$,S);return I.value=C.replace(BF,qF),x.nextToken(),i(I,x.currentOffset(),x.currentPosition()),I}function f(x){const C=x.nextToken(),w=x.context(),{lastOffset:$,lastStartLoc:S}=w,I=r(8,$,S);return C.type!==11?(n(x,Kt.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),I.value="",i(I,$,S),{nextConsumeToken:C,node:I}):(C.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ir(C)),I.value=C.value||"",i(I,x.currentOffset(),x.currentPosition()),{node:I})}function h(x,C){const w=x.context(),$=r(7,w.offset,w.startLoc);return $.value=C,i($,x.currentOffset(),x.currentPosition()),$}function g(x){const C=x.context(),w=r(6,C.offset,C.startLoc);let $=x.nextToken();if($.type===8){const S=f(x);w.modifier=S.node,$=S.nextConsumeToken||x.nextToken()}switch($.type!==9&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir($)),$=x.nextToken(),$.type===2&&($=x.nextToken()),$.type){case 10:$.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir($)),w.key=h(x,$.value||"");break;case 4:$.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir($)),w.key=u(x,$.value||"");break;case 5:$.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir($)),w.key=l(x,$.value||"");break;case 6:$.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir($)),w.key=d(x,$.value||"");break;default:{n(x,Kt.UNEXPECTED_EMPTY_LINKED_KEY,C.lastStartLoc,0);const S=x.context(),I=r(7,S.offset,S.startLoc);return I.value="",i(I,S.offset,S.startLoc),w.key=I,i(w,S.offset,S.startLoc),{nextConsumeToken:$,node:w}}}return i(w,x.currentOffset(),x.currentPosition()),{node:w}}function m(x){const C=x.context(),w=C.currentType===1?x.currentOffset():C.offset,$=C.currentType===1?C.endLoc:C.startLoc,S=r(2,w,$);S.items=[];let I=null;do{const D=I||x.nextToken();switch(I=null,D.type){case 0:D.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir(D)),S.items.push(o(x,D.value||""));break;case 5:D.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir(D)),S.items.push(l(x,D.value||""));break;case 4:D.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir(D)),S.items.push(u(x,D.value||""));break;case 6:D.value==null&&n(x,Kt.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Ir(D)),S.items.push(d(x,D.value||""));break;case 7:{const R=g(x);S.items.push(R.node),I=R.nextConsumeToken||null;break}}}while(C.currentType!==13&&C.currentType!==1);const P=C.currentType===1?C.lastOffset:x.currentOffset(),L=C.currentType===1?C.lastEndLoc:x.currentPosition();return i(S,P,L),S}function _(x,C,w,$){const S=x.context();let I=$.items.length===0;const P=r(1,C,w);P.cases=[],P.cases.push($);do{const L=m(x);I||(I=L.items.length===0),P.cases.push(L)}while(S.currentType!==13);
7return I&&n(x,Kt.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),i(P,x.currentOffset(),x.currentPosition()),P}function v(x){const C=x.context(),{offset:w,startLoc:$}=C,S=m(x);return C.currentType===13?S:_(x,w,$,S)}function k(x){const C=FF(x,bs({},e)),w=C.context(),$=r(0,w.offset,w.startLoc);return t&&$.loc&&($.loc.source=x),$.body=v(C),e.onCacheKey&&($.cacheKey=e.onCacheKey(x)),w.currentType!==13&&n(C,Kt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,x[w.offset]||""),i($,C.currentOffset(),C.currentPosition()),$}return{parse:k}}function Ir(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function UF(e,t={}){const s={ast:e,helpers:new Set};return{context:()=>s,helper:i=>(s.helpers.add(i),i)}}function l3(e,t){for(let s=0;s<e.length;s++)i2(e[s],t)}function i2(e,t){switch(e.type){case 1:l3(e.cases,t),t.helper("plural");break;case 2:l3(e.items,t);break;case 6:{i2(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function zF(e,t={}){const s=UF(e);s.helper("normalize"),e.body&&i2(e.body,s);const n=s.context();e.helpers=Array.from(n.helpers)}function WF(e){const t=e.body;return t.type===2?c3(t):t.cases.forEach(s=>c3(s)),e}function c3(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let s=0;s<e.items.length;s++){const n=e.items[s];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=s2(t);for(let s=0;s<e.items.length;s++){const n=e.items[s];(n.type===3||n.type===9)&&delete n.value}}}}function Va(e){switch(e.t=e.type,e.type){case 0:{const t=e;Va(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,s=t.cases;for(let n=0;n<s.length;n++)Va(s[n]);t.c=s,delete t.cases;break}case 2:{const t=e,s=t.items;for(let n=0;n<s.length;n++)Va(s[n]);t.i=s,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Va(t.key),t.k=t.key,delete t.key,t.modifier&&(Va(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function GF(e,t){const{filename:s,breakLineCode:n,needIndent:r}=t,i=t.location!==!1,o={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:n,needIndent:r,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const l=()=>o;function u(v,k){o.code+=v}function d(v,k=!0){const x=k?n:"";u(r?x+" ".repeat(v):x)}function f(v=!0){const k=++o.indentLevel;v&&d(k)}function h(v=!0){const k=--o.indentLevel;v&&d(k)}function g(){d(o.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:g,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function YF(e,t){const{helper:s}=e;e.push(`${s("linked")}(`),ml(e,t.key),t.modifier?(e.push(", "),ml(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function KF(e,t){const{helper:s,needIndent:n}=e;e.push(`${s("normalize")}([`),e.indent(n());const r=t.items.length;for(let i=0;i<r&&(ml(e,t.items[i]),i!==r-1);i++)e.push(", ");e.deindent(n()),e.push("])")}function QF(e,t){const{helper:s,needIndent:n}=e;if(t.cases.length>1){e.push(`${s("plural")}([`),e.indent(n());const r=t.cases.length;for(let i=0;i<r&&(ml(e,t.cases[i]),i!==r-1);i++)e.push(", ");e.deindent(n()),e.push("])")}}function XF(e,t){t.body?ml(e,t.body):e.push("null")}function ml(e,t){const{helper:s}=e;switch(t.type){case 0:XF(e,t);break;case 1:QF(e,t);break;case 2:KF(e,t);break;case 6:YF(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${s("interpolate")}(${s("list")}(${t.index}))`,t);break;case 4:e.push(`${s("interpolate")}(${s("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const ZF=(e,t={})=>{const s=tt(t.mode)?t.mode:"normal",n=tt(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:s==="arrow"?";":` 8`,i=t.needIndent?t.needIndent:s!=="arrow",o=e.helpers||[],l=GF(e,{filename:n,breakLineCode:r,needIndent:i});l.push(s==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),o.length>0&&(l.push(`const { ${s2(o.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),ml(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:u,map:d}=l.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function JF(e,t={}){const s=bs({},t),n=!!s.jit,r=!!s.minify,i=s.optimize==null?!0:s.optimize,l=jF(s).parse(e);return n?(i&&WF(l),r&&Va(l),{ast:l,code:""}):(zF(l,s),ZF(l,s))}function Ur(e){return jt(e)&&o2(e)===0&&(Gn(e,"b")||Gn(e,"body"))}const lx=["b","body"];function eN(e){return xo(e,lx)}const cx=["c","cases"];function tN(e){return xo(e,cx,[])}const ux=["s","static"];function sN(e){return xo(e,ux)}const dx=["i","items"];function nN(e){return xo(e,dx,[])}const fx=["t","type"];function o2(e){return xo(e,fx)}const px=["v","value"];function dd(e,t){const s=xo(e,px);if(s!=null)return s;throw nu(t)}const hx=["m","modifier"];function rN(e){return xo(e,hx)}const mx=["k","key"];function iN(e){const t=xo(e,mx);if(t)return t;throw nu(6)}function xo(e,t,s){for(let n=0;n<t.length;n++){const r=t[n];if(Gn(e,r)&&e[r]!=null)return e[r]}return s}const gx=[...lx,...cx,...ux,...dx,...mx,...hx,...px,...fx];function nu(e){return new Error(`unhandled node type: ${e}`)}function Xf(e){return s=>oN(s,e)}function oN(e,t){const s=eN(t);if(s==null)throw nu(0);if(o2(s)===1){const i=tN(s);return e.plural(i.reduce((o,l)=>[...o,u3(e,l)],[]))}else return u3(e,s)}function u3(e,t){const s=sN(t);if(s!=null)return e.type==="text"?s:e.normalize([s]);
8{const n=nN(t).reduce((r,i)=>[...r,Sh(e,i)],[]);return e.normalize(n)}}function Sh(e,t){const s=o2(t);switch(s){case 3:return dd(t,s);case 9:return dd(t,s);case 4:{const n=t;if(Gn(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(Gn(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw nu(s)}case 5:{const n=t;if(Gn(n,"i")&&As(n.i))return e.interpolate(e.list(n.i));if(Gn(n,"index")&&As(n.index))return e.interpolate(e.list(n.index));throw nu(s)}case 6:{const n=t,r=rN(n),i=iN(n);return e.linked(Sh(e,i),r?Sh(e,r):void 0,e.type)}case 7:return dd(t,s);case 8:return dd(t,s);default:throw new Error(`unhandled node on format message part: ${s}`)}}const aN=e=>e;let fd=Xt();function lN(e,t={}){let s=!1;const n=t.onError||PF;return t.onError=r=>{s=!0,n(r)},{...JF(e,t),detectError:s}}function cN(e,t){if(tt(e)){ms(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||aN)(e),r=fd[n];if(r)return r;const{ast:i,detectError:o}=lN(e,{...t,location:!1,jit:!0}),l=Xf(i);return o?l:fd[n]=l}else{const s=e.cacheKey;if(s){const n=fd[s];return n||(fd[s]=Xf(e))}else return Xf(e)}}const vi={INVALID_ARGUMENT:TF,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},uN=24;function bi(e){return v0(e,null,void 0)}function a2(e,t){return t.locale!=null?d3(t.locale):d3(e.locale)}let Zf;function d3(e){if(tt(e))return e;if(fs(e)){if(e.resolvedOnce&&Zf!=null)return Zf;if(e.constructor.name==="Function"){const t=e();if(IO(t))throw bi(vi.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Zf=t}else throw bi(vi.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bi(vi.NOT_SUPPORT_LOCALE_TYPE)}function dN(e,t,s){return[...new Set([s,...vs(t)?t:jt(t)?Object.keys(t):tt(t)?[t]:[s]])]}function Ah(e,t,s){const n=tt(s)?s:v1,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(n);if(!i){i=[];let o=[s];for(;vs(o);)o=f3(i,o,t);const l=vs(t)||!Ut(t)?t:t.default?t.default:null;o=tt(l)?[l]:l,vs(o)&&f3(i,o,!1),r.__localeChainCache.set(n,i)}return i}function f3(e,t,s){let n=!0;for(let r=0;r<t.length&&ms(n);r++){const i=t[r];tt(i)&&(n=fN(e,t[r],s))}return n}function fN(e,t,s){let n;const r=t.split("-");do{const i=r.join("-");n=pN(e,i,s),r.splice(-1,1)}while(r.length&&n===!0);return n}function pN(e,t,s){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(vs(s)||Ut(s))&&s[r]&&(n=s[r])}return n}const ko=[];ko[0]={w:[0],i:[3,0],"[":[4],o:[7]};ko[1]={w:[1],".":[2],"[":[4],o:[7]};ko[2]={w:[2],i:[3,0],0:[3,0]};ko[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ko[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ko[5]={"'":[4,0],o:8,l:[5,0]};ko[6]={'"':[4,0],o:8,l:[6,0]};const hN=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mN(e){return hN.test(e)}function gN(e){const t=e.charCodeAt(0),s=e.charCodeAt(e.length-1);return t===s&&(t===34||t===39)?e.slice(1,-1):e}function yN(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function _N(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:mN(t)?gN(t):"*"+t}function vN(e){const t=[];let s=-1,n=0,r=0,i,o,l,u,d,f,h;const g=[];g[0]=()=>{o===void 0?o=l:o+=l},g[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,n=4,g[0]();else{if(r=0,o===void 0||(o=_N(o),o===!1))return!1;g[1]()}};function m(){const _=e[s+1];if(n===5&&_==="'"||n===6&&_==='"')return s++,l="\\"+_,g[0](),!0}for(;n!==null;)if(s++,i=e[s],!(i==="\\"&&m())){if(u=yN(i),h=ko[n],d=h[u]||h.l||8,d===8||(n=d[0],d[1]!==void 0&&(f=g[d[1]],f&&(l=i,f()===!1))))return;if(n===7)return t}}const p3=new Map;function bN(e,t){return jt(e)?e[t]:null}function xN(e,t){if(!jt(e))return null;let s=p3.get(t);if(s||(s=vN(t),s&&p3.set(t,s)),!s)return null;const n=s.length;let r=e,i=0;for(;i<n;){const o=s[i];if(gx.includes(o)&&Ur(r)||!jt(r)||!Gn(r,o))return null;const l=r[o];if(l===void 0||fs(r))return null;r=l,i++}return r}const kN="11.4.6",b0=-1,v1="en-US",b1="",h3=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function wN(){return{upper:(e,t)=>t==="text"&&tt(e)?e.toUpperCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&tt(e)?e.toLowerCase():t==="vnode"&&jt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>
8t==="text"&&tt(e)?h3(e):t==="vnode"&&jt(e)&&"__v_isVNode"in e?h3(e.children):e}}let yx;function CN(e){yx=e}let _x;function $N(e){_x=e}let vx;function SN(e){vx=e}let bx=null;const m3=e=>{bx=e},AN=()=>bx;let g3=0;function IN(e={}){const t=fs(e.onWarn)?e.onWarn:_O,s=tt(e.version)?e.version:kN,n=tt(e.locale)||fs(e.locale)?e.locale:v1,r=fs(n)?v1:n,i=vs(e.fallbackLocale)||Ut(e.fallbackLocale)||tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,o=Ut(e.messages)?e.messages:Jf(r),l=Ut(e.datetimeFormats)?e.datetimeFormats:Jf(r),u=Ut(e.numberFormats)?e.numberFormats:Jf(r),d=bs(Xt(),e.modifiers,wN()),f=e.pluralRules||Xt(),h=fs(e.missing)?e.missing:null,g=ms(e.missingWarn)||g1(e.missingWarn)?e.missingWarn:!0,m=ms(e.fallbackWarn)||g1(e.fallbackWarn)?e.fallbackWarn:!0,_=!!e.fallbackFormat,v=!!e.unresolving,k=fs(e.postTranslation)?e.postTranslation:null,x=Ut(e.processor)?e.processor:null,C=ms(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,$=fs(e.messageCompiler)?e.messageCompiler:yx,S=fs(e.messageResolver)?e.messageResolver:_x||bN,I=fs(e.localeFallbacker)?e.localeFallbacker:vx||dN,P=jt(e.fallbackContext)?e.fallbackContext:void 0,L=e,D=jt(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,R=jt(L.__numberFormatters)?L.__numberFormatters:new Map,F=jt(L.__meta)?L.__meta:{};g3++;const N={version:s,cid:g3,locale:n,fallbackLocale:i,messages:o,modifiers:d,pluralRules:f,missing:h,missingWarn:g,fallbackWarn:m,fallbackFormat:_,unresolving:v,postTranslation:k,processor:x,warnHtmlMessage:C,escapeParameter:w,messageCompiler:$,messageResolver:S,localeFallbacker:I,fallbackContext:P,onWarn:t,__meta:F};return N.datetimeFormats=l,N.numberFormats=u,N.__datetimeFormatters=D,N.__numberFormatters=R,N}const Jf=e=>({[e]:Xt()});function l2(e,t,s,n,r){const{missing:i,onWarn:o}=e;if(i!==null){const l=i(e,s,t,r);return tt(l)?l:t}else return t}function hc(e,t,s){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,s,t)}function TN(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function PN(e,t){const s=t.indexOf(e);if(s===-1)return!1;for(let n=s+1;n<t.length;n++)if(TN(e,t[n]))return!0;return!1}function y3(e,...t){const{datetimeFormats:s,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(!tt(t[0])&&!K8(t[0])&&!As(t[0]))return b1;const[u,d,f,h]=Ih(...t),g=ms(f.missingWarn)?f.missingWarn:e.missingWarn;ms(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const m=!!f.part,_=a2(e,f),v=o(e,r,_);if(!tt(u)||u===""){const I=new Intl.DateTimeFormat(_.replace(/!/g,""),h);return m?I.formatToParts(d):I.format(d)}let k={},x,C=null;const w="datetime format";for(let I=0;I<v.length&&(x=v[I],k=s[x]||{},C=k[u],!Ut(C));I++)l2(e,u,x,g,w);if(!Ut(C)||!tt(x))return n?b0:u;let $=`${x}__${u}`;p0(h)||($=`${$}__${JSON.stringify(h)}`);let S=l.get($);return S||(S=new Intl.DateTimeFormat(x,bs({},C,h)),l.set($,S)),m?S.formatToParts(d):S.format(d)}const xx=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ih(...e){const[t,s,n,r]=e,i=Xt();let o=Xt(),l;if(tt(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw bi(vi.INVALID_ISO_DATE_ARGUMENT);const d=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();l=new Date(d);try{l.toISOString()}catch{throw bi(vi.INVALID_ISO_DATE_ARGUMENT)}}else if(K8(t)){if(isNaN(t.getTime()))throw bi(vi.INVALID_DATE_ARGUMENT);l=t}else if(As(t))l=t;else throw bi(vi.INVALID_ARGUMENT);return tt(s)?i.key=s:Ut(s)&&Object.keys(s).forEach(u=>{xx.includes(u)?o[u]=s[u]:i[u]=s[u]}),tt(n)?i.locale=n:Ut(n)&&(o=n),Ut(r)&&(o=r),[i.key||"",l,i,o]}function _3(e,t,s){const n=e;for(const r in s){const i=`${t}__${r}`;n.__datetimeFormatters.has(i)&&n.__datetimeFormatters.delete(i)}}function v3(e,...t){const{numberFormats:s,unresolving:n,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(!As(t[0]))return b1;const[u,d,f,h]=Th(...t),g=ms(f.missingWarn)?f.missingWarn:e.missingWarn;ms(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const m=!!f.part,_=a2(e,f),v=o(e,r,_);if(!tt(u)||u===""){const I=new Intl.NumberFormat(_.replace(/!/g,""),h);return m?I.formatToParts(d):I.format(d)}let k={},x,C=null;const w="number format";for(let I=0;I<v.length&&(x=v[I],k=s[x]||{},C=k[u],!Ut(C));I++)l2(e,u,x,g,w);if(!Ut(C)||!tt(x))return n?b0:u;let $=`${x}__${u}`;p0(h)||($=`${$}__${JSON.stringify(h)}`);let S=l.get($);return S||(S=new Intl.NumberFormat(x,bs({},C,h)),l.set($,S)),m?S.formatToParts(d):S.format(d)}const kx=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Th(...e){const[t,s,n,r]=e,i=Xt();let o=Xt();if(!As(t))throw bi(vi.INVALID_ARGUMENT);const l=t;
8return tt(s)?i.key=s:Ut(s)&&Object.keys(s).forEach(u=>{kx.includes(u)?o[u]=s[u]:i[u]=s[u]}),tt(n)?i.locale=n:Ut(n)&&(o=n),Ut(r)&&(o=r),[i.key||"",l,i,o]}function b3(e,t,s){const n=e;for(const r in s){const i=`${t}__${r}`;n.__numberFormatters.has(i)&&n.__numberFormatters.delete(i)}}const DN=e=>e,EN=e=>"",LN="text",RN=e=>e.length===0?"":s2(e),MN=TO;function ep(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function ON(e){const t=As(e.pluralIndex)?e.pluralIndex:-1;return As(e.named?.count)?e.named.count:As(e.named?.n)?e.named.n:t}function FN(e={}){const t=e.locale,s=ON(e),n=tt(t)&&fs(e.pluralRules?.[t])?e.pluralRules[t]:ep,r=n===ep?void 0:ep,i=x=>x[n(s,x.length,r)],o=e.list||[],l=x=>o[x],u=e.named||Xt();As(e.pluralIndex)&&(u.count||=e.pluralIndex,u.n||=e.pluralIndex);const d=x=>u[x];function f(x,C){const w=fs(e.messages)?e.messages(x,!!C):jt(e.messages)?e.messages[x]:!1;return w||(e.parent?e.parent.message(x):EN)}const h=x=>e.modifiers?e.modifiers[x]:DN,g=fs(e.processor?.normalize)?e.processor.normalize:RN,m=fs(e.processor?.interpolate)?e.processor.interpolate:MN,_=tt(e.processor?.type)?e.processor.type:LN,k={list:l,named:d,plural:i,linked:(x,...C)=>{const[w,$]=C;let S="text",I="";C.length===1?jt(w)?(I=w.modifier||I,S=w.type||S):tt(w)&&(I=w||I):C.length===2&&(tt(w)&&(I=w||I),tt($)&&(S=$||S));const P=f(x,!0)(k),L=P===""||P===void 0?x:P,D=S==="vnode"&&vs(L)&&I?L[0]:L;return I?h(I)(D,S):D},message:f,type:_,interpolate:m,normalize:g,values:bs(Xt(),o,u)};return k}const x3=()=>"",Ci=e=>fs(e);function k3(e,...t){const{fallbackFormat:s,postTranslation:n,unresolving:r,messageCompiler:i,fallbackLocale:o,messages:l}=e,[u,d]=Ph(...t),f=ms(d.missingWarn)?d.missingWarn:e.missingWarn,h=ms(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,g=ms(d.escapeParameter)?d.escapeParameter:e.escapeParameter,m=!!d.resolvedMessage,_=tt(d.default)||ms(d.default)?ms(d.default)?i?u:()=>u:d.default:s?i?u:()=>u:null,v=s||_!=null&&(tt(_)||fs(_)),k=a2(e,d);g&&NN(d);let[x,C,w]=m?[u,k,l[k]||Xt()]:wx(e,u,k,o,h,f),$=x,S=u;if(!m&&!(tt($)||Ur($)||Ci($))&&v&&($=_,S=$),!m&&(!(tt($)||Ur($)||Ci($))||!tt(C)))return r?b0:u;let I=!1;const P=()=>{I=!0},L=Ci($)?$:Cx(e,u,C,$,S,P);if(I)return $;const D=HN(e,C,w,d),R=FN(D),F=BN(e,L,R);let N=n?n(F,u):F;return g&&tt(N)&&(N=SO(N)),N}function NN(e){vs(e.list)?e.list=e.list.map(t=>tt(t)?s3(t):t):jt(e.named)&&Object.keys(e.named).forEach(t=>{tt(e.named[t])&&(e.named[t]=s3(e.named[t]))})}function wx(e,t,s,n,r,i){const{messages:o,onWarn:l,messageResolver:u,localeFallbacker:d}=e,f=d(e,n,s);let h=Xt(),g,m=null;const _="translate";for(let v=0;v<f.length&&(g=f[v],h=o[g]||Xt(),(m=u(h,t))===null&&(m=h[t]),!(tt(m)||Ur(m)||Ci(m)));v++)if(!PN(g,f)){const k=l2(e,t,g,i,_);k!==t&&(m=k)}return[m,g,h]}function Cx(e,t,s,n,r,i){const{messageCompiler:o,warnHtmlMessage:l}=e;if(Ci(n)){const d=n;return d.locale=d.locale||s,d.key=d.key||t,d}if(o==null){const d=(()=>n);return d.locale=s,d.key=t,d}const u=o(n,VN(e,s,r,n,l,i));return u.locale=s,u.key=t,u.source=n,u}function BN(e,t,s){return t(s)}function Ph(...e){const[t,s,n]=e,r=Xt();if(!tt(t)&&!As(t)&&!Ci(t)&&!Ur(t))throw bi(vi.INVALID_ARGUMENT);const i=As(t)?String(t):(Ci(t),t);return As(s)?r.plural=s:tt(s)?r.default=s:Ut(s)&&!p0(s)?r.named=s:vs(s)&&(r.list=s),As(n)?r.plural=n:tt(n)?r.default=n:Ut(n)&&bs(r,n),[i,r]}function VN(e,t,s,n,r,i){return{locale:t,key:s,warnHtmlMessage:r,onError:o=>{throw i&&i(o),o},onCacheKey:o=>vO(t,s,o)}}function HN(e,t,s,n){const{modifiers:r,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:u,missingWarn:d,fallbackContext:f}=e,g={locale:t,modifiers:r,pluralRules:i,messages:(m,_)=>{let v=o(s,m);if(v==null&&(f||_)){const[k,,x]=wx(f||e,m,t,l,u,d);v=k??o(x,m)}if(tt(v)||Ur(v)){let k=!1;const C=Cx(e,m,t,v,m,()=>{k=!0});return k?x3:C}else return Ci(v)?v:x3}};return e.processor&&(g.processor=e.processor),n.list&&(g.list=n.list),n.named&&(g.named=n.named),As(n.plural)&&(g.pluralIndex=n.plural),g}const qN="11.4.6",Pn={UNEXPECTED_RETURN_TYPE:uN,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Kn(e,...t){return v0(e,null,void 0)}const Dh=bo("__translateVNode"),Eh=bo("__datetimeParts"),Lh=bo("__numberParts"),jN=bo("__setPluralRules"),UN=bo("__injectWithOption"),Ga=bo("__dispose");function ru(e){if(!jt(e)||Ur(e))return e;for(const t in e)if(Gn(e,t))if(!t.includes("."))jt(e[t])&&ru(e[t]);else{const s=t.split("."),n=s.length-1;let r=e,i=!1;for(let o=0;o<n;o++){if(s[o]==="__proto__")throw new Error(`unsafe key: ${s[o]}`);if(s[o]in r||(r[s[o]]=Xt()),!jt(r[s[o]])){i=!0;break}r=r[s[o]]}if(i||(Ur(r)?gx.includes(s[n])||delete e[t]:(r[s[n]]=e[t],delete e[t])),!Ur(r)){const o=r[s[n]];jt(o)&&ru(o)}}return e}function $x(e,t){const{messages:s,__i18n:n,messageResolver:r,flatJson:i}=t,o=Ut(s)?s:vs(n)?Xt():{[e]:Xt()};
8if(vs(n)&&n.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:u,resource:d}=l;u?(o[u]=o[u]||Xt(),rl(d,o[u])):rl(d,o)}else tt(l)&&rl(JSON.parse(l),o)}),r==null&&i)for(const l in o)Gn(o,l)&&ru(o[l]);return o}function zN(e){return e.type}function WN(e,t,s){let n=jt(t.messages)?t.messages:Xt();"__i18nGlobal"in s&&(n=$x(e.locale.value,{messages:n,__i18n:s.__i18nGlobal}));const r=Object.keys(n);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,n[i])});{if(jt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(jt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function w3(e){return T(ao,null,e,0)}function Sx(){return vr()}const C3=()=>[],GN=()=>!1;let $3=0;function S3(e){return((t,s,n,r)=>e(s,n,Sx()||void 0,r))}function Rh(e={}){const{__root:t,__injectWithOption:s}=e,n=t===void 0,r=e.flatJson,i=m1?X:fn;let o=ms(e.inheritLocale)?e.inheritLocale:!0;const l=i(t&&o?t.locale.value:tt(e.locale)?e.locale:v1),u=i(t&&o?t.fallbackLocale.value:tt(e.fallbackLocale)||vs(e.fallbackLocale)||Ut(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),d=i($x(l.value,e)),f=i(Ut(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),h=i(Ut(e.numberFormats)?e.numberFormats:{[l.value]:{}});let g=t?t.missingWarn:ms(e.missingWarn)||g1(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ms(e.fallbackWarn)||g1(e.fallbackWarn)?e.fallbackWarn:!0,_=t?t.fallbackRoot:ms(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,k=fs(e.missing)?e.missing:null,x=fs(e.missing)?S3(e.missing):null,C=fs(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:ms(e.warnHtmlMessage)?e.warnHtmlMessage:!0,$=!!e.escapeParameter;const S=t?t.modifiers:Ut(e.modifiers)?e.modifiers:{};let I=e.pluralRules||t&&t.pluralRules,P;P=(()=>{n&&m3(null);const se={version:qN,locale:l.value,fallbackLocale:u.value,messages:d.value,modifiers:S,pluralRules:I,missing:x===null?void 0:x,missingWarn:g,fallbackWarn:m,fallbackFormat:v,unresolving:!0,postTranslation:C===null?void 0:C,warnHtmlMessage:w,escapeParameter:$,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=f.value,se.numberFormats=h.value,se.__datetimeFormatters=Ut(P)?P.__datetimeFormatters:void 0,se.__numberFormatters=Ut(P)?P.__numberFormatters:void 0;const xe=IN(se);return n&&m3(xe),xe})(),hc(P,l.value,u.value);function D(){return[l.value,u.value,d.value,f.value,h.value]}const R=A({get:()=>l.value,set:se=>{P.locale=se,l.value=se}}),F=A({get:()=>u.value,set:se=>{P.fallbackLocale=se,u.value=se,hc(P,l.value,se)}}),N=A(()=>d.value),z=A(()=>f.value),me=A(()=>h.value);function ge(){return fs(C)?C:null}function fe(se){C=se,P.postTranslation=se}function te(){return k}function V(se){se!==null&&(x=S3(se)),k=se,P.missing=x}const pe=(se,xe,Ve,Ze,Je,dt)=>{D();let ft;try{n||(P.fallbackContext=t?AN():void 0),ft=se(P)}finally{n||(P.fallbackContext=void 0)}if(Ve!=="translate exists"&&As(ft)&&ft===b0||Ve==="translate exists"&&!ft){const[It,Wt]=xe();return t&&_?Ze(t):Je(It)}else{if(dt(ft))return ft;throw Kn(Pn.UNEXPECTED_RETURN_TYPE)}};function ye(...se){return pe(xe=>Reflect.apply(k3,null,[xe,...se]),()=>Ph(...se),"translate",xe=>Reflect.apply(xe.t,xe,[...se]),xe=>xe,xe=>tt(xe))}function ne(...se){const[xe,Ve,Ze]=se;if(Ze&&!jt(Ze))throw Kn(Pn.INVALID_ARGUMENT);return ye(xe,Ve,bs({resolvedMessage:!0},Ze||{}))}function ve(...se){return pe(xe=>Reflect.apply(y3,null,[xe,...se]),()=>Ih(...se),"datetime format",xe=>Reflect.apply(xe.d,xe,[...se]),()=>b1,xe=>tt(xe)||vs(xe))}function J(...se){return pe(xe=>Reflect.apply(v3,null,[xe,...se]),()=>Th(...se),"number format",xe=>Reflect.apply(xe.n,xe,[...se]),()=>b1,xe=>tt(xe)||vs(xe))}function he(se){return se.map(xe=>tt(xe)||As(xe)||ms(xe)?w3(String(xe)):xe)}const He={normalize:he,interpolate:se=>se,type:"vnode"};function de(...se){return pe(xe=>{let Ve;const Ze=xe;try{Ze.processor=He,Ve=Reflect.apply(k3,null,[Ze,...se])}finally{Ze.processor=null}return Ve},()=>Ph(...se),"translate",xe=>xe[Dh](...se),xe=>[w3(xe)],xe=>vs(xe))}function Me(...se){return pe(xe=>Reflect.apply(v3,null,[xe,...se]),()=>Th(...se),"number format",xe=>xe[Lh](...se),C3,xe=>tt(xe)||vs(xe))}function De(...se){return pe(xe=>Reflect.apply(y3,null,[xe,...se]),()=>Ih(...se),"datetime format",xe=>xe[Eh](...se),C3,xe=>tt(xe)||vs(xe))}function ze(se){I=se,P.pluralRules=I}function Ue(se,xe){return pe(()=>{if(!se)return!1;const Ve=tt(xe)?xe:l.value,Ze=tt(xe)?[Ve]:Ah(P,u.value,Ve);for(let Je=0;Je<Ze.length;Je++){const dt=Y(Ze[Je]);let ft=P.messageResolver(dt,se);
8if(ft===null&&(ft=dt[se]),Ur(ft)||Ci(ft)||tt(ft))return!0}return!1},()=>[se],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[se,xe]),GN,Ve=>ms(Ve))}function ut(se){let xe=null;const Ve=Ah(P,u.value,l.value);for(let Ze=0;Ze<Ve.length;Ze++){const Je=d.value[Ve[Ze]]||{},dt=P.messageResolver(Je,se);if(dt!=null){xe=dt;break}}return xe}function H(se){const xe=ut(se);return xe??(t?t.tm(se)||{}:{})}function Y(se){return d.value[se]||{}}function W(se,xe){if(r){const Ve={[se]:xe};for(const Ze in Ve)Gn(Ve,Ze)&&ru(Ve[Ze]);xe=Ve[se]}d.value[se]=xe,P.messages=d.value}function _e(se,xe){d.value[se]=d.value[se]||{};const Ve={[se]:xe};if(r)for(const Ze in Ve)Gn(Ve,Ze)&&ru(Ve[Ze]);xe=Ve[se],rl(xe,d.value[se]),P.messages=d.value}function ae(se){return f.value[se]||{}}function M(se,xe){f.value[se]=xe,P.datetimeFormats=f.value,_3(P,se,xe)}function q(se,xe){f.value[se]=bs(f.value[se]||{},xe),P.datetimeFormats=f.value,_3(P,se,xe)}function re(se){return h.value[se]||{}}function ce(se,xe){h.value[se]=xe,P.numberFormats=h.value,b3(P,se,xe)}function ie(se,xe){h.value[se]=bs(h.value[se]||{},xe),P.numberFormats=h.value,b3(P,se,xe)}$3++,t&&m1&&(Se(t.locale,se=>{o&&(l.value=se,P.locale=se,hc(P,l.value,u.value))}),Se(t.fallbackLocale,se=>{o&&(u.value=se,P.fallbackLocale=se,hc(P,l.value,u.value))}));const $e={id:$3,locale:R,fallbackLocale:F,get inheritLocale(){return o},set inheritLocale(se){o=se,se&&t&&(l.value=t.locale.value,u.value=t.fallbackLocale.value,hc(P,l.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:N,get modifiers(){return S},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(se){g=se,P.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(se){m=se,P.fallbackWarn=m},get fallbackRoot(){return _},set fallbackRoot(se){_=se},get fallbackFormat(){return v},set fallbackFormat(se){v=se,P.fallbackFormat=v},get warnHtmlMessage(){return w},set warnHtmlMessage(se){w=se,P.warnHtmlMessage=se},get escapeParameter(){return $},set escapeParameter(se){$=se,P.escapeParameter=se},t:ye,getLocaleMessage:Y,setLocaleMessage:W,mergeLocaleMessage:_e,getPostTranslationHandler:ge,setPostTranslationHandler:fe,getMissingHandler:te,setMissingHandler:V,[jN]:ze};return $e.datetimeFormats=z,$e.numberFormats=me,$e.rt=ne,$e.te=Ue,$e.tm=H,$e.d=ve,$e.n=J,$e.getDateTimeFormat=ae,$e.setDateTimeFormat=M,$e.mergeDateTimeFormat=q,$e.getNumberFormat=re,$e.setNumberFormat=ce,$e.mergeNumberFormat=ie,$e[UN]=s,$e[Dh]=de,$e[Eh]=De,$e[Lh]=Me,$e}const c2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function YN({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,r)=>[...n,...r.type===j?r.children:[r]],[]):t.reduce((s,n)=>{const r=e[n];return r&&(s[n]=r()),s},Xt())}function Ax(){return j}const KN=G({name:"i18n-t",props:bs({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>As(e)||!isNaN(e)}},c2),setup(e,t){const{slots:s,attrs:n}=t,r=e.i18n||be({useScope:e.scope,__useComponent:!0});return()=>{const i=()=>{const u=Object.keys(s).filter(h=>h[0]!=="_"),d=Xt();e.locale&&(d.locale=e.locale),e.plural!==void 0&&(d.plural=tt(e.plural)?+e.plural:e.plural);const f=YN(t,u);return r[Dh](e.keypath,f,d)},o=bs(Xt(),n),l=tt(e.tag)||jt(e.tag)?e.tag:Ax();return jt(l)?ot(l,o,{default:i}):ot(l,o,i())}}}),A3=KN;function QN(e){return vs(e)&&!tt(e[0])}function Ix(e,t,s,n){const{slots:r,attrs:i}=t;return()=>{const o=()=>{const d={part:!0};let f=Xt();e.locale&&(d.locale=e.locale),tt(e.format)?d.key=e.format:jt(e.format)&&(tt(e.format.key)&&(d.key=e.format.key),f=Object.keys(e.format).reduce((m,_)=>s.includes(_)?bs(Xt(),m,{[_]:e.format[_]}):m,Xt()));const h=n(e.value,d,f);let g=[d.key];return vs(h)?g=h.map((m,_)=>{const v=r[m.type],k=v?v({[m.type]:m.value,index:_,parts:h}):[m.value];return QN(k)&&(k[0].key=`${m.type}-${_}`),k}):tt(h)&&(g=[h]),g},l=bs(Xt(),i),u=tt(e.tag)||jt(e.tag)?e.tag:Ax();return jt(u)?ot(u,l,{default:o}):ot(u,l,o())}}const XN=G({name:"i18n-n",props:bs({value:{type:Number,required:!0},format:{type:[String,Object]}},c2),setup(e,t){const s=e.i18n||be({useScope:e.scope,__useComponent:!0});return Ix(e,t,kx,(...n)=>s[Lh](...n))}}),I3=XN;function ZN(e,t){const s=e;if(e.mode==="composition")return s.__getInstance(t)||e.global;{const n=s.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function JN(e){const t=o=>{const{instance:l,value:u}=o;if(!l||!l.$)throw Kn(Pn.UNEXPECTED_ERROR);const d=ZN(e,l.$),f=T3(u);return[Reflect.apply(d.t,d,[...P3(f)]),d]};return{created:(o,l)=>{const[u,d]=t(l);m1&&(o.__i18nWatcher=Se(d.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=d,o.textContent=u},unmounted:o=>{m1&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>
8{if(o.__composer){const u=o.__composer,d=T3(l);o.textContent=Reflect.apply(u.t,u,[...P3(d)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function T3(e){if(tt(e))return{path:e};if(Ut(e)){if(!("path"in e))throw Kn(Pn.REQUIRED_VALUE,"path");return e}else throw Kn(Pn.INVALID_VALUE)}function P3(e){const{path:t,locale:s,args:n,choice:r,plural:i}=e,o={},l=n||{};return tt(s)&&(o.locale=s),As(r)&&(o.plural=r),As(i)&&(o.plural=i),[t,l,o]}function eB(e,t,...s){const n=Ut(s[0])?s[0]:{};(!ms(n.globalInstall)||n.globalInstall)&&([A3.name,"I18nT"].forEach(i=>e.component(i,A3)),[I3.name,"I18nN"].forEach(i=>e.component(i,I3)),[L3.name,"I18nD"].forEach(i=>e.component(i,L3))),e.directive("t",JN(t))}const tB=bo("global-vue-i18n");function sB(e={}){const t=ms(e.globalInjection)?e.globalInjection:!0,s=new Map,[n,r]=nB(e),i=bo("");function o(f){return s.get(f)||null}function l(f,h){s.set(f,h)}function u(f){s.delete(f)}const d={get mode(){return"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=i,f.provide(f.__VUE_I18N_SYMBOL__,d),Ut(h[0])){const _=h[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let g=null;t&&(g=uB(f,d.global)),eB(f,d,...h);const m=f.unmount;f.unmount=()=>{g&&g(),d.dispose(),m()}},get global(){return r},dispose(){n.stop()},__instances:s,__getInstance:o,__setInstance:l,__deleteInstance:u};return d}function be(e={}){const t=Sx();if(t==null)throw Kn(Pn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Kn(Pn.NOT_INSTALLED);const s=rB(t),n=oB(s),r=zN(t),i=iB(e,r);if(i==="global")return WN(n,e,r),n;if(i==="parent"){let u=D3(s,t,e.__useComponent);return u==null&&(u=n),u}if(i==="isolated"){if(s.mode!=="composition")throw Kn(Pn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=s,d=bs({},e),f=D3(s,t);d.__root=f||n;const h=Rh(d);return u.__composerExtend&&(h[Ga]=u.__composerExtend(h)),_o()&&Zo(()=>{const m=h[Ga];m&&(m(),delete h[Ga])}),h}const o=s;let l=o.__getInstance(t);if(l==null){const u=bs({},e);"__i18n"in r&&(u.__i18n=r.__i18n),n&&(u.__root=n),l=Rh(u),o.__composerExtend&&(l[Ga]=o.__composerExtend(l)),lB(o,t,l),o.__setInstance(t,l)}return l}function nB(e,t){const s=_u(),n=s.run(()=>Rh(e));if(n==null)throw Kn(Pn.UNEXPECTED_ERROR);return[s,n]}function rB(e){const t=ts(e.isCE?tB:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Kn(e.isCE?Pn.NOT_INSTALLED_WITH_PROVIDE:Pn.UNEXPECTED_ERROR);return t}function iB(e,t){return p0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function oB(e){return e.mode==="composition"?e.global:e.global.__composer}function D3(e,t,s=!1){let n=null;const r=t.root;let i=aB(t,s);for(;i!=null;){const o=e;if(e.mode==="composition"&&(n=o.__getInstance(i)),n!=null||r===i)break;i=i.parent}return n}function aB(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lB(e,t,s){je(()=>{},t),wn(()=>{const n=s;e.__deleteInstance(t);const r=n[Ga];r&&(r(),delete n[Ga])},t)}const cB=["locale","fallbackLocale","availableLocales"],E3=["t","rt","d","n","tm","te"];function uB(e,t){const s=Object.create(null);return cB.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw Kn(Pn.UNEXPECTED_ERROR);const o=it(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(s,r,o)}),e.config.globalProperties.$i18n=s,E3.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw Kn(Pn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,E3.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const dB=G({name:"i18n-d",props:bs({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},c2),setup(e,t){const s=e.i18n||be({useScope:e.scope,__useComponent:!0});return Ix(e,t,xx,(...n)=>s[Eh](...n))}}),L3=dB;CN(cN);$N(xN);SN(Ah);function R3(e=Te()){const t=Su(e);return s=>{if(s!=null)return t.getRouteBaseName(s)||void 0}}function fB(e=Te()){const t=Su(e);return(s,n)=>y1(t,s,n)}function pB(e=Te()){const t=Su(e);return(s,n)=>ex(t,s,n)}function Tx(e=Te()){const t=Su(e);return s=>n2(t,s)}const M3="nuxt-i18n-slp",hB=new RegExp([`<!--${M3}-\\[(\\w+)\\]-->`,".+?",`<!--/${M3}-->`].join(""),"g"),mB=hs({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=Te(e._id),s=Tx(t);t.hook("app:rendered",n=>{n.renderResult?.html!=null&&(n.renderResult.html=n.renderResult.html.replaceAll(hB,(r,i)=>{const o=encodeURI(s(i??""));return r.replace(/href="([^"]+)"/,`href="${o||"#"}" `)}))})}}),gB=hs({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,s;const n=Te(e._id),r=y0(n),i=ox();[t,s]=Xs(()=>n.runWithContext(()=>Ch(n,r.initial&&i.value||o3(n,n.$router.currentRoute.value)))),await t,s(),gI("locale-changing",async o=>{let l,u;const d=([l,u]=Xs(()=>n.runWithContext(()=>Ch(n,o3(n,o)))),l=await l,u(),l);return r.initial=!1,n.runWithContext(()=>ax(n,o,d))},{global:!0})}}),yB=hs({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(e){}});function _B(e,{extendComposer:t,extendComposerInstance:s}){const n=_u(),r=e.install.bind(e);e.install=(i,...o)=>{const l=bs({},o[0]);l.__composerExtend=d=>(s(d,ud(e)),()=>{}),e.mode==="legacy"&&(l.__vueI18nExtend=d=>(s(d,ud(d)),()=>{})),Reflect.apply(r,e,[i,l]);const u=ud(e);if(n.run(()=>{t(u),e.mode==="legacy"&&"__composer"in e.global&&s(e.global,ud(e.global))}),e.mode==="composition"&&i.config.globalProperties.$i18n!=null&&s(i.config.globalProperties.$i18n,u),i.unmount){const d=i.unmount.bind(i);i.unmount=()=>{n.stop(),d()}}}}const vB=async e=>{const t=await JO(XO);t.locale=e||t.locale||"en-US",t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(const s of su)t.messages[s]??={};return t};var bB={ru:"b291ffec"};const xB=hs({name:"i18n:plugin",parallel:!1,async setup(e){let t,s;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"10.4.0"});const n=Te(e._id),r=g0(n),i=n.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,o=uF(e2().host)||r.defaultLocale||"",l=i||([t,s]=Xs(()=>vB(o)),t=await t,s(),t),u=ix();u.value??=aF(l.fallbackLocale),su.map(g=>`/_i18n/${bB[g]}/${g}/messages.json`);const d=sB(l),f=_0(void 0,$u(n),n),h=pF(n,d,l.defaultLocale);n._nuxtI18n=h,_B(d,{extendComposer(g){g.locales=A(()=>r.locales),g.localeCodes=A(()=>su);const m=X(h.getBaseUrl());g.baseUrl=A(()=>m.value),Se(g.locale,()=>m.value=h.getBaseUrl()),g.strategy="prefix_except_default",g.localeProperties=A(()=>Cu.find(_=>_.code===g.locale.value)||{code:g.locale.value}),g.setLocale=async _=>{await Ch(n,_),await n.runWithContext(()=>ax(n,n.$router.currentRoute.value,_))},g.loadLocaleMessages=h.loadMessages,g.differentDomains=!1,g.defaultLocale=l.defaultLocale,g.getBrowserLocale=()=>i3(f.navigator()),g.getLocaleCookie=()=>i3(f.cookie()),g.setLocaleCookie=h.setCookieLocale,g.finalizePendingLocaleChange=async()=>{d.__pendingLocale&&await d.__resolvePendingLocalePromise?.()},g.waitForPendingLocaleChange=async()=>
8{await d?.__pendingLocalePromise}},extendComposerInstance(g,m){const _=[["locales",()=>m.locales],["localeCodes",()=>m.localeCodes],["baseUrl",()=>m.baseUrl],["strategy",()=>"prefix_except_default"],["localeProperties",()=>m.localeProperties],["setLocale",()=>v=>Reflect.apply(m.setLocale,m,[v])],["loadLocaleMessages",()=>v=>Reflect.apply(m.loadLocaleMessages,m,[v])],["differentDomains",()=>!1],["defaultLocale",()=>m.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(m.getBrowserLocale,m,[])],["getLocaleCookie",()=>()=>Reflect.apply(m.getLocaleCookie,m,[])],["setLocaleCookie",()=>v=>Reflect.apply(m.setLocaleCookie,m,[v])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(m.finalizePendingLocaleChange,m,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(m.waitForPendingLocaleChange,m,[])]];for(const[v,k]of _)Object.defineProperty(g,v,{get:k})}}),n.vueApp.use(d),Object.defineProperty(n,"$i18n",{get:()=>r2(d)}),n.provide("localeHead",g=>HO(n._nuxtI18n.composableCtx,g)),n.provide("localePath",fB(n)),n.provide("localeRoute",pB(n)),n.provide("routeBaseName",R3(n)),n.provide("getRouteBaseName",R3(n)),n.provide("switchLocalePath",Tx(n))}});function kB(e,t){if(e==null)return;let s=e;for(let n=0;n<t.length;n++){if(s===void 0||s[t[n]]===void 0)return;if(s===null||s[t[n]]===null)return null;s=s[t[n]]}return s}function u2(e,t,s){if(s.length===0)return t;const n=s[0];return s.length>1&&(t=u2(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,n)?Number.isInteger(Number(s[1]))?[]:{}:e[n],t,Array.prototype.slice.call(s,1))),Number.isInteger(Number(n))&&Array.isArray(e)?e.slice()[n]:Object.assign({},e,{[n]:t})}function Px(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const s={};for(const n in e)s[n]=e[n];return delete s[t[0]],s}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const s={};for(const n in e)s[n]=e[n];return s}return u2(e,Px(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Dx(e,t){return t.map(s=>s.split(".")).map(s=>[s,kB(e,s)]).filter(s=>s[1]!==void 0).reduce((s,n)=>u2(s,n[1],n[0]),{})}function Ex(e,t){return t.map(s=>s.split(".")).reduce((s,n)=>Px(s,n),e)}function O3(e,{storage:t,serializer:s,key:n,debug:r,pick:i,omit:o,beforeHydrate:l,afterHydrate:u},d,f=!0){try{f&&l?.(d);const h=t.getItem(n);if(h){const g=s.deserialize(h),m=i?Dx(g,i):g,_=o?Ex(m,o):m;e.$patch(_)}f&&u?.(d)}catch(h){r&&console.error("[pinia-plugin-persistedstate]",h)}}function F3(e,{storage:t,serializer:s,key:n,debug:r,pick:i,omit:o}){try{const l=i?Dx(e,i):e,u=o?Ex(l,o):l,d=s.serialize(u);t.setItem(n,d)}catch(l){r&&console.error("[pinia-plugin-persistedstate]",l)}}function wB(e,t){return typeof e=="function"?e(t):typeof e=="string"?e:t}function CB(e,t,s){const{pinia:n,store:r,options:{persist:i=s}}=e;if(!i)return;if(!(r.$id in n.state.value)){const u=n._s.get(r.$id.replace("__hot:",""));u&&Promise.resolve().then(()=>u.$persist());return}const l=(Array.isArray(i)?i:i===!0?[{}]:[i]).map(t);r.$hydrate=({runHooks:u=!0}={})=>{l.forEach(d=>{O3(r,d,e,u)})},r.$persist=()=>{l.forEach(u=>{F3(r.$state,u)})},l.forEach(u=>{O3(r,u,e),r.$subscribe((d,f)=>F3(f,u),{detached:!0})})}function $B(e){return{getItem:t=>h1(t,{...e??kn().public.piniaPluginPersistedstate.cookieOptions??{},decode:e?.decode??decodeURIComponent,readonly:!0}).value,setItem:(t,s)=>h1(t,{...e??kn().public.piniaPluginPersistedstate.cookieOptions??{},encode:e?.encode??encodeURIComponent}).value=s}}function SB(){return{getItem:e=>window.localStorage.getItem(e),setItem:(e,t)=>window.localStorage.setItem(e,t)}}function AB(){return{getItem:e=>window.sessionStorage.getItem(e),setItem:(e,t)=>window.sessionStorage.setItem(e,t)}}const tp={cookies:$B,localStorage:SB,sessionStorage:AB};function IB(e){const s=kn().public.piniaPluginPersistedstate;CB(e,n=>{const r=wB(n.key,e.store.$id);return{key:s.key?s.key.replace(/%id/g,r):r,debug:n.debug??s.debug??!1,serializer:n.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>JSON.parse(i)},storage:n.storage??(s.storage?s.storage==="cookies"?tp.cookies(s.cookieOptions):tp[s.storage]():tp.cookies()),beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}},s.auto??!1)}const TB=hs({name:"pinia-plugin-persistedstate",setup({$pinia:e}){e.use(IB)}});const PB=()=>{};var N3={};const Lx=function(e){const t=[];let s=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t[s++]=r:r<2048?(t[s++]=r>>6|192,t[s++]=r&63|128):(r&64512)===55296&&n+1<e.length&&(e.charCodeAt(n+1)&64512)===56320?(r=65536+((r&1023)<<10)+(e.charCodeAt(++n)&1023),t[s++]=r>>18|240,t[s++]=r>>12&63|128,t[s++]=r>>6&63|128,t[s++]=r&63|128):(t[s++]=r>>12|224,t[s++]=r>>6&63|128,t[s++]=r&63|128)}return t},DB=function(e){const t=[];let s=0,n=0;for(;s<e.length;){const r=e[s++];if(r<128)t[n++]=String.fromCharCode(r);else if(r>191&&r<224){const i=e[s++];t[n++]=String.fromCharCode((r&31)<<6|i&63)}else if(r>239&&r<365){const i=e[s++],o=e[s++],l=e[s++],u=((r&7)<<18|(i&63)<<12|(o&63)<<6|l&63)-65536;t[n++]=String.fromCharCode(55296+(u>>10)),t[n++]=String.fromCharCode(56320+(u&1023))}else{const i=e[s++],o=e[s++];t[n++]=String.fromCharCode((r&15)<<12|(i&63)<<6|o&63)}}return t.join("")},Rx={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const s=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let r=0;r<e.length;r+=3){const i=e[r],o=r+1<e.length,l=o?e[r+1]:0,u=r+2<e.length,d=u?e[r+2]:0,f=i>>2,h=(i&3)<<4|l>>4;let g=(l&15)<<2|d>>6,m=d&63;u||(m=64,o||(g=64)),n.push(s[f],s[h],s[g],s[m])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Lx(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):DB(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const s=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let r=0;r<e.length;){const i=s[e.charAt(r++)],l=r<e.length?s[e.charAt(r)]:0;++r;
8const d=r<e.length?s[e.charAt(r)]:64;++r;const h=r<e.length?s[e.charAt(r)]:64;if(++r,i==null||l==null||d==null||h==null)throw new EB;const g=i<<2|l>>4;if(n.push(g),d!==64){const m=l<<4&240|d>>2;if(n.push(m),h!==64){const _=d<<6&192|h;n.push(_)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class EB extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const LB=function(e){const t=Lx(e);return Rx.encodeByteArray(t,!0)},Mx=function(e){return LB(e).replace(/\./g,"")},RB=function(e){try{return Rx.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function MB(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const OB=()=>MB().__FIREBASE_DEFAULTS__,FB=()=>
8{if(typeof process>"u"||typeof N3>"u")return;const e=N3.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},NB=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&RB(e[1]);return t&&JSON.parse(t)},BB=()=>{try{return PB()||OB()||FB()||NB()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Ox=()=>BB()?.config;class VB{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,s)=>{this.resolve=t,this.reject=s})}wrapCallback(t){return(s,n)=>{s?this.reject(s):this.resolve(n),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(s):t(s,n))}}}function Fx(){try{return typeof indexedDB=="object"}catch{return!1}}function Nx(){return new Promise((e,t)=>{try{let s=!0;const n="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(n);r.onsuccess=()=>{r.result.close(),s||self.indexedDB.deleteDatabase(n),e(!0)},r.onupgradeneeded=()=>{s=!1},r.onerror=()=>{t(r.error?.message||"")}}catch(s){t(s)}})}function HB(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const qB="FirebaseError";class El extends Error{constructor(t,s,n){super(s),this.code=t,this.customData=n,this.name=qB,Object.setPrototypeOf(this,El.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,x0.prototype.create)}}class x0{constructor(t,s,n){this.service=t,this.serviceName=s,this.errors=n}create(t,...s){const n=s[0]||{},r=`${this.service}/${t}`,i=this.errors[t],o=i?jB(i,n):"Error",l=`${this.serviceName}: ${o} (${r}).`;return new El(r,l,n)}}function jB(e,t){return e.replace(UB,(s,n)=>{const r=t[n];return r!=null?String(r):`<${n}?>`})}const UB=/\{\$([^}]+)}/g;function Mh(e,t){if(e===t)return!0;const s=Object.keys(e),n=Object.keys(t);for(const r of s){if(!n.includes(r))return!1;const i=e[r],o=t[r];if(B3(i)&&B3(o)){if(!Mh(i,o))return!1}else if(i!==o)return!1}for(const r of n)if(!s.includes(r))return!1;return!0}function B3(e){return e!==null&&typeof e=="object"}function d2(e){return e&&e._delegate?e._delegate:e}class mo{constructor(t,s,n){this.name=t,this.instanceFactory=s,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}const Bo="[DEFAULT]";class zB{constructor(t,s){this.name=t,this.container=s,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const s=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(s)){const n=new VB;if(this.instancesDeferred.set(s,n),this.isInitialized(s)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:s});r&&n.resolve(r)}catch{}}return this.instancesDeferred.get(s).promise}getImmediate(t){const s=this.normalizeInstanceIdentifier(t?.identifier),n=t?.optional??!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(r){if(n)return null;throw r}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(GB(t))try{this.getOrInitializeService({instanceIdentifier:Bo})}catch{}for(const[s,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(s);try{const i=this.getOrInitializeService({instanceIdentifier:r});n.resolve(i)}catch{}}}}clearInstance(t=Bo){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(s=>"INTERNAL"in s).map(s=>s.INTERNAL.delete()),...t.filter(s=>"_delete"in s).map(s=>s._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Bo){return this.instances.has(t)}getOptions(t=Bo){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:s={}}=t,n=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:s});for(const[i,o]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(i);n===l&&o.resolve(r)}return r}onInit(t,s){const n=this.normalizeInstanceIdentifier(s),r=this.onInitCallbacks.get(n)??new Set;r.add(t),this.onInitCallbacks.set(n,r);const i=this.instances.get(n);return i&&t(i,n),()=>{r.delete(t)}}invokeOnInitCallbacks(t,s){const n=this.onInitCallbacks.get(s);if(n)for(const r of n)try{r(t,s)}catch{}}getOrInitializeService({instanceIdentifier:t,options:s={}}){let n=this.instances.get(t);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:WB(t),options:s}),this.instances.set(t,n),this.instancesOptions.set(t,s),this.invokeOnInitCallbacks(n,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,n)}catch{}return n||null}normalizeInstanceIdentifier(t=Bo){return this.component?this.component.multipleInstances?t:Bo:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function WB(e){return e===Bo?void 0:e}function GB(e){return e.instantiationMode==="EAGER"}class YB{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const s=this.getProvider(t.name);if(s.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);s.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const s=new zB(t,this);return this.providers.set(t,s),s}getProviders(){return Array.from(this.providers.values())}}var ds;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
8RROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(ds||(ds={}));const KB={debug:ds.DEBUG,verbose:ds.VERBOSE,info:ds.INFO,warn:ds.WARN,error:ds.ERROR,silent:ds.SILENT},QB=ds.INFO,XB={[ds.DEBUG]:"log",[ds.VERBOSE]:"log",[ds.INFO]:"info",[ds.WARN]:"warn",[ds.ERROR]:"error"},ZB=(e,t,...s)=>{if(t<e.logLevel)return;const n=new Date().toISOString(),r=XB[t];if(r)console[r](`[${n}] ${e.name}:`,...s);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class JB{constructor(t){this.name=t,this._logLevel=QB,this._logHandler=ZB,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in ds))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?KB[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,ds.DEBUG,...t),this._logHandler(this,ds.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,ds.VERBOSE,...t),this._logHandler(this,ds.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,ds.INFO,...t),this._logHandler(this,ds.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,ds.WARN,...t),this._logHandler(this,ds.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,ds.ERROR,...t),this._logHandler(this,ds.ERROR,...t)}}const eV=(e,t)=>t.some(s=>e instanceof s);let V3,H3;function tV(){return V3||(V3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function sV(){return H3||(H3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bx=new WeakMap,Oh=new WeakMap,Vx=new WeakMap,sp=new WeakMap,f2=new WeakMap;function nV(e){const t=new Promise((s,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{s($i(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(s=>{s instanceof IDBCursor&&Bx.set(s,e)}).catch(()=>{}),f2.set(t,e),t}function rV(e){if(Oh.has(e))return;const t=new Promise((s,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{s(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});Oh.set(e,t)}let Fh={get(e,t,s){if(e instanceof IDBTransaction){if(t==="done")return Oh.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Vx.get(e);if(t==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return $i(e[t])},set(e,t,s){return e[t]=s,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function iV(e){Fh=e(Fh)}function oV(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...s){const n=e.call(np(this),t,...s);return Vx.set(n,t.sort?t.sort():[t]),$i(n)}:sV().includes(e)?function(...t){return e.apply(np(this),t),$i(Bx.get(this))}:function(...t){return $i(e.apply(np(this),t))}}function aV(e){return typeof e=="function"?oV(e):(e instanceof IDBTransaction&&rV(e),eV(e,tV())?new Proxy(e,Fh):e)}function $i(e){if(e instanceof IDBRequest)return nV(e);if(sp.has(e))return sp.get(e);const t=aV(e);return t!==e&&(sp.set(e,t),f2.set(t,e)),t}const np=e=>f2.get(e);function k0(e,t,{blocked:s,upgrade:n,blocking:r,terminated:i}={}){const o=indexedDB.open(e,t),l=$i(o);return n&&o.addEventListener("upgradeneeded",u=>{n($i(o.result),u.oldVersion,u.newVersion,$i(o.transaction),u)}),s&&o.addEventListener("blocked",u=>s(u.oldVersion,u.newVersion,u)),l.then(u=>{i&&u.addEventListener("close",()=>i()),r&&u.addEventListener("versionchange",d=>r(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}function Fd(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);return t&&s.addEventListener("blocked",n=>t(n.oldVersion,n)),$i(s).then(()=>{})}const lV=["get","getKey","getAll","getAllKeys","count"],cV=["put","add","delete","clear"],rp=new Map;function q3(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(rp.get(t))return rp.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,r=cV.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!(r||lV.includes(s)))return;const i=async function(o,...l){const u=this.transaction(o,r?"readwrite":"readonly");let d=u.store;
8return n&&(d=d.index(l.shift())),(await Promise.all([d[s](...l),r&&u.done]))[0]};return rp.set(t,i),i}iV(e=>({...e,get:(t,s,n)=>q3(t,s)||e.get(t,s,n),has:(t,s)=>!!q3(t,s)||e.has(t,s)}));class uV{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(s=>{if(dV(s)){const n=s.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(s=>s).join(" ")}}function dV(e){return e.getComponent()?.type==="VERSION"}const Nh="@firebase/app",j3="0.15.0";const Pi=new JB("@firebase/app"),fV="@firebase/app-compat",pV="@firebase/analytics-compat",hV="@firebase/analytics",mV="@firebase/app-check-compat",gV="@firebase/app-check",yV="@firebase/auth",_V="@firebase/auth-compat",vV="@firebase/database",bV="@firebase/data-connect",xV="@firebase/database-compat",kV="@firebase/functions",wV="@firebase/functions-compat",CV="@firebase/installations",$V="@firebase/installations-compat",SV="@firebase/messaging",AV="@firebase/messaging-compat",IV="@firebase/performance",TV="@firebase/performance-compat",PV="@firebase/remote-config",DV="@firebase/remote-config-compat",EV="@firebase/storage",LV="@firebase/storage-compat",RV="@firebase/firestore",MV="@firebase/ai",OV="@firebase/firestore-compat",FV="firebase";const Bh="[DEFAULT]",NV={[Nh]:"fire-core",[fV]:"fire-core-compat",[hV]:"fire-analytics",[pV]:"fire-analytics-compat",[gV]:"fire-app-check",[mV]:"fire-app-check-compat",[yV]:"fire-auth",[_V]:"fire-auth-compat",[vV]:"fire-rtdb",[bV]:"fire-data-connect",[xV]:"fire-rtdb-compat",[kV]:"fire-fn",[wV]:"fire-fn-compat",[CV]:"fire-iid",[$V]:"fire-iid-compat",[SV]:"fire-fcm",[AV]:"fire-fcm-compat",[IV]:"fire-perf",[TV]:"fire-perf-compat",[PV]:"fire-rc",[DV]:"fire-rc-compat",[EV]:"fire-gcs",[LV]:"fire-gcs-compat",[RV]:"fire-fst",[OV]:"fire-fst-compat",[MV]:"fire-vertex","fire-js":"fire-js",[FV]:"fire-js-all"};const x1=new Map,BV=new Map,Vh=new Map;function U3(e,t){try{e.container.addComponent(t)}catch(s){Pi.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,s)}}function ta(e){const t=e.name;if(Vh.has(t))return Pi.debug(`There were multiple attempts to register component ${t}.`),!1;Vh.set(t,e);for(const s of x1.values())U3(s,e);for(const s of BV.values())U3(s,e);return!0}function p2(e,t){const s=e.container.getProvider("heartbeat").getImmediate({optional:!0});return s&&s.triggerHeartbeat(),e.container.getProvider(t)}const VV={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
8d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},co=new x0("app","Firebase",VV);class HV{constructor(t,s,n){this._isDeleted=!1,this._options={...t},this._config={...s},this._name=s.name,this._automaticDataCollectionEnabled=s.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new mo("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw co.create("app-deleted",{appName:this._name})}}function Hx(e,t={}){let s=e;typeof t!="object"&&(t={name:t});const n={name:Bh,automaticDataCollectionEnabled:!0,...t},r=n.name;if(typeof r!="string"||!r)throw co.create("bad-app-name",{appName:String(r)});if(s||(s=Ox()),!s)throw co.create("no-options");const i=x1.get(r);if(i){if(Mh(s,i.options)&&Mh(n,i.config))return i;throw co.create("duplicate-app",{appName:r})}const o=new YB(r);for(const u of Vh.values())o.addComponent(u);const l=new HV(s,n,o);return x1.set(r,l),l}function qV(e=Bh){const t=x1.get(e);if(!t&&e===Bh&&Ox())return Hx();if(!t)throw co.create("no-app",{appName:e});return t}function uo(e,t,s){let n=NV[e]??e;s&&(n+=`-${s}`);const r=n.match(/\s|\//),i=t.match(/\s|\//);if(r||i){const o=[`Unable to register library "${n}" with version "${t}":`];r&&o.push(`library name "${n}" contains illegal characters (whitespace or "/")`),r&&i&&o.push("and"),i&&o.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Pi.warn(o.join(" "));return}ta(new mo(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}const jV="firebase-heartbeat-database",UV=1,iu="firebase-heartbeat-store";let ip=null;function qx(){return ip||(ip=k0(jV,UV,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(iu)}catch(s){console.warn(s)}}}}).catch(e=>{throw co.create("idb-open",{originalErrorMessage:e.message})})),ip}async function zV(e){try{const s=(await qx()).transaction(iu),n=await s.objectStore(iu).get(jx(e));return await s.done,n}catch(t){if(t instanceof El)Pi.warn(t.message);else{const s=co.create("idb-get",{originalErrorMessage:t?.message});Pi.warn(s.message)}}}async function z3(e,t){try{const n=(await qx()).transaction(iu,"readwrite");await n.objectStore(iu).put(t,jx(e)),await n.done}catch(s){if(s instanceof El)Pi.warn(s.message);else{const n=co.create("idb-set",{originalErrorMessage:s?.message});Pi.warn(n.message)}}}function jx(e){return`${e.name}!${e.options.appId}`}const WV=1024,GV=30;class YV{constructor(t){this.container=t,this._heartbeatsCache=null;const s=this.container.getProvider("app").getImmediate();this._storage=new QV(s),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=W3();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(r=>r.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:s}),this._heartbeatsCache.heartbeats.length>GV){const r=XV(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(r,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(t){Pi.warn(t)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const t=W3(),{heartbeatsToSend:s,unsentEntries:n}=KV(this._heartbeatsCache.heartbeats),r=Mx(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(t){return Pi.warn(t),""}}}function W3(){return new Date().toISOString().substring(0,10)}function KV(e,t=WV){const s=[];let n=e.slice();for(const r of e){const i=s.find(o=>o.agent===r.agent);if(i){if(i.dates.push(r.date),G3(s)>t){i.dates.pop();break}}else if(s.push({agent:r.agent,dates:[r.date]}),G3(s)>t){s.pop();break}n=n.slice(1)}return{heartbeatsToSend:s,unsentEntries:n}}class QV{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Fx()?Nx().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const s=await zV(this.app);return s?.heartbeats?s:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const n=await this.read();return z3(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const n=await this.read();return z3(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...t.heartbeats]})}else return}}function G3(e){return Mx(JSON.stringify({version:2,heartbeats:e})).length}function XV(e){if(e.length===0)return-1;let t=0,s=e[0].date;for(let n=1;n<e.length;n++)e[n].date<s&&(s=e[n].date,t=n);return t}function ZV(e){ta(new mo("platform-logger",t=>new uV(t),"PRIVATE")),ta(new mo("heartbeat",t=>new YV(t),"PRIVATE")),uo(Nh,j3,e),uo(Nh,j3,"esm2020"),uo("fire-js","")}ZV("");var JV="firebase",eH="12.15.0";uo(JV,eH,"app");const Ux="@firebase/installations",h2="0.6.22";const zx=1e4,Wx=`w:${h2}`,Gx="FIS_v2",tH="https://firebaseinstallations.googleapis.com/v1",sH=3600*1e3,nH="installations",rH="Installations";const iH={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},sa=new x0(nH,rH,iH);function Yx(e){return e instanceof El&&e.code.includes("request-failed")}function Kx({projectId:e}){return`${tH}/projects/${e}/installations`}
8function Qx(e){return{token:e.token,requestStatus:2,expiresIn:aH(e.expiresIn),creationTime:Date.now()}}async function Xx(e,t){const n=(await t.json()).error;return sa.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function Zx({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function oH(e,{refreshToken:t}){const s=Zx(e);return s.append("Authorization",lH(t)),s}async function Jx(e){const t=await e();return t.status>=500&&t.status<600?e():t}function aH(e){return Number(e.replace("s","000"))}function lH(e){return`${Gx} ${e}`}async function cH({appConfig:e,heartbeatServiceProvider:t},{fid:s}){const n=Kx(e),r=Zx(e),i=t.getImmediate({optional:!0});if(i){const d=await i.getHeartbeatsHeader();d&&r.append("x-firebase-client",d)}const o={fid:s,authVersion:Gx,appId:e.appId,sdkVersion:Wx},l={method:"POST",headers:r,body:JSON.stringify(o)},u=await Jx(()=>fetch(n,l));if(u.ok){const d=await u.json();return{fid:d.fid||s,registrationStatus:2,refreshToken:d.refreshToken,authToken:Qx(d.authToken)}}else throw await Xx("Create Installation",u)}function ek(e){return new Promise(t=>{setTimeout(t,e)})}function uH(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}const dH=/^[cdef][\w-]{21}$/,Hh="";function fH(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const s=pH(e);return dH.test(s)?s:Hh}catch{return Hh}}function pH(e){return uH(e).substr(0,22)}function Ll(e){return`${e.appName}!${e.appId}`}const gl=new Map;function tk(e,t){const s=Ll(e);sk(s,t),gH(s,t)}function hH(e,t){nk();const s=Ll(e);let n=gl.get(s);n||(n=new Set,gl.set(s,n)),n.add(t)}function mH(e,t){const s=Ll(e),n=gl.get(s);n&&(n.delete(t),n.size===0&&gl.delete(s),rk())}function sk(e,t){const s=gl.get(e);if(s)for(const n of s)n(t)}function gH(e,t){const s=nk();s&&s.postMessage({key:e,fid:t}),rk()}let Uo=null;function nk(){return!Uo&&"BroadcastChannel"in self&&(Uo=new BroadcastChannel("[Firebase] FID Change"),Uo.onmessage=e=>{sk(e.data.key,e.data.fid)}),Uo}function rk(){gl.size===0&&Uo&&(Uo.close(),Uo=null)}const yH="firebase-installations-database",_H=1,na="firebase-installations-store";let op=null;function m2(){return op||(op=k0(yH,_H,{upgrade:(e,t)=>{t===0&&e.createObjectStore(na)}})),op}async function k1(e,t){const s=Ll(e),r=(await m2()).transaction(na,"readwrite"),i=r.objectStore(na),o=await i.get(s);return await i.put(t,s),await r.done,(!o||o.fid!==t.fid)&&tk(e,t.fid),t}async function ik(e){const t=Ll(e),n=(await m2()).transaction(na,"readwrite");await n.objectStore(na).delete(t),await n.done}async function w0(e,t){const s=Ll(e),r=(await m2()).transaction(na,"readwrite"),i=r.objectStore(na),o=await i.get(s),l=t(o);return l===void 0?await i.delete(s):await i.put(l,s),await r.done,l&&(!o||o.fid!==l.fid)&&tk(e,l.fid),l}async function g2(e){let t;const s=await w0(e.appConfig,n=>{const r=vH(n),i=bH(e,r);return t=i.registrationPromise,i.installationEntry});return s.fid===Hh?{installationEntry:await t}:{installationEntry:s,registrationPromise:t}}function vH(e){const t=e||{fid:fH(),registrationStatus:0};return ok(t)}function bH(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const r=Promise.reject(sa.create("app-offline"));return{installationEntry:t,registrationPromise:r}}const s={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=xH(e,s);return{installationEntry:s,registrationPromise:n}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:kH(e)}:{installationEntry:t}}async function xH(e,t){try{const s=await cH(e,t);return k1(e.appConfig,s)}catch(s){throw Yx(s)&&s.customData.serverCode===409?await ik(e.appConfig):await k1(e.appConfig,{fid:t.fid,registrationStatus:0}),s}}async function kH(e){let t=await Y3(e.appConfig);for(;t.registrationStatus===1;)await ek(100),t=await Y3(e.appConfig);if(t.registrationStatus===0){const{installationEntry:s,registrationPromise:n}=await g2(e);return n||s}return t}function Y3(e){return w0(e,t=>{if(!t)throw sa.create("installation-not-found");return ok(t)})}function ok(e){return wH(e)?{fid:e.fid,registrationStatus:0}:e}function wH(e){return e.registrationStatus===1&&e.registrationTime+zx<Date.now()}async function CH({appConfig:e,heartbeatServiceProvider:t},s){const n=$H(e,s),r=oH(e,s),i=t.getImmediate({optional:!0});if(i){const d=await i.getHeartbeatsHeader();d&&r.append("x-firebase-client",d)}const o={installation:{sdkVersion:Wx,appId:e.appId}},l={method:"POST",headers:r,body:JSON.stringify(o)},u=await Jx(()=>fetch(n,l));if(u.ok){const d=await u.json();return Qx(d)}else throw await Xx("Generate Auth Token",u)}function $H(e,{fid:t}){return`${Kx(e)}/${t}/authTokens:generate`}async function y2(e,t=!1){let s;const n=await w0(e.appConfig,i=>{if(!ak(i))throw sa.create("not-registered");const o=i.authToken;if(!t&&IH(o))return i;if(o.requestStatus===1)return s=SH(e,t),i;{if(!navigator.onLine)throw sa.create("app-offline");const l=PH(i);return s=AH(e,l),l}});return s?await s:n.authToken}async function SH(e,t){let s=await K3(e.appConfig);for(;s.authToken.requestStatus===1;)await ek(100),s=await K3(e.appConfig);const n=s.authToken;return n.requestStatus===0?y2(e,t):n}function K3(e){return w0(e,t=>{if(!ak(t))throw sa.create("not-registered");const s=t.authToken;return DH(s)?{...t,authToken:{requestStatus:0}}:t})}async function AH(e,t){try{const s=await CH(e,t),n={...t,authToken:s};return await k1(e.appConfig,n),s}catch(s){if(Yx(s)&&(s.customData.serverCode===401||s.customData.serverCode===404))await ik(e.appConfig);else{const n={...t,authToken:{requestStatus:0}};await k1(e.appConfig,n)}throw s}}function ak(e){return e!==void 0&&e.registrationStatus===2}function IH(e){return e.requestStatus===2&&!TH(e)}function TH(e){const t=Date.now();
8return t<e.creationTime||e.creationTime+e.expiresIn<t+sH}function PH(e){const t={requestStatus:1,requestTime:Date.now()};return{...e,authToken:t}}function DH(e){return e.requestStatus===1&&e.requestTime+zx<Date.now()}async function EH(e){const t=e,{installationEntry:s,registrationPromise:n}=await g2(t);return n?n.catch(console.error):y2(t).catch(console.error),s.fid}async function LH(e,t=!1){const s=e;return await RH(s),(await y2(s,t)).token}async function RH(e){const{registrationPromise:t}=await g2(e);t&&await t}function MH(e,t){const{appConfig:s}=e;return hH(s,t),()=>{mH(s,t)}}function OH(e){if(!e||!e.options)throw ap("App Configuration");if(!e.name)throw ap("App Name");const t=["projectId","apiKey","appId"];for(const s of t)if(!e.options[s])throw ap(s);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function ap(e){return sa.create("missing-app-config-values",{valueName:e})}const lk="installations",FH="installations-internal",NH=e=>{const t=e.getProvider("app").getImmediate(),s=OH(t),n=p2(t,"heartbeat");return{app:t,appConfig:s,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},BH=e=>{const t=e.getProvider("app").getImmediate(),s=p2(t,lk).getImmediate();return{getId:()=>EH(s),getToken:r=>LH(s,r)}};function VH(){ta(new mo(lk,NH,"PUBLIC")),ta(new mo(FH,BH,"PRIVATE"))}VH();uo(Ux,h2);uo(Ux,h2,"esm2020");const HH="/firebase-messaging-sw.js",qH="/firebase-cloud-messaging-push-scope",ck="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",jH="https://fcmregistrations.googleapis.com/v1",uk="google.c.a.c_id",UH="google.c.a.c_l",zH="google.c.a.ts",WH="google.c.a.e",Q3=1e4;var X3;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(X3||(X3={}));var yl;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked",e.FID_REGISTERED="fid-registered"})(yl||(yl={}));function lr(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function dk(e){const t="=".repeat((4-e.length%4)%4),s=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(s),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}const lp="fcm_token_details_db",GH=5,Z3="fcm_token_object_Store";async function YH(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(i=>i.name).includes(lp))return null;let t=null;return(await k0(lp,GH,{upgrade:async(n,r,i,o)=>{if(r<2||!n.objectStoreNames.contains(Z3))return;const l=o.objectStore(Z3),u=await l.index("fcmSenderId").get(e);if(await l.clear(),!!u){if(r===2){const d=u;if(!d.auth||!d.p256dh||!d.endpoint)return;t={token:d.fcmToken,createTime:d.createTime??Date.now(),subscriptionOptions:{auth:d.auth,p256dh:d.p256dh,endpoint:d.endpoint,swScope:d.swScope,vapidKey:typeof d.vapidKey=="string"?d.vapidKey:lr(d.vapidKey)}}}else if(r===3){const d=u;t={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:lr(d.auth),p256dh:lr(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:lr(d.vapidKey)}}}else if(r===4){const d=u;t={token:d.fcmToken,createTime:d.createTime,subscriptionOptions:{auth:lr(d.auth),p256dh:lr(d.p256dh),endpoint:d.endpoint,swScope:d.swScope,vapidKey:lr(d.vapidKey)}}}}}})).close(),await Fd(lp),await Fd("fcm_vapid_details_db"),await Fd("undefined"),KH(t)?t:null}function KH(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}const QH={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","fid-registration-failed":"A problem occurred while creating an FCM registration via FID: {$errorInfo}","fid-unregister-failed":"A problem occurred while unregistering the FCM registration via FID: {$errorInfo}","fid-registration-idb-schema-unavailable":"Unable to read or persist FID registration metadata because the messaging IndexedDB schema is unavailable (for example, the database could not be upgraded to the latest version).","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
8d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.","invalid-on-registered-handler":"No onRegistered callback handler was provided or registered. Implement onRegistered() before register()."},es=new x0("messaging","Messaging",QH);const J3="firebase-messaging-database",ev=2,ra="firebase-messaging-store",Si="firebase-messaging-fid-registration-store",XH={openDB:k0,deleteDB:Fd};let tv=XH,Uc=null;function ZH(e,t,s){switch(t){case 0:if(e.createObjectStore(ra),s===1)break;case 1:s===2&&e.createObjectStore(Si)}}function sv(e){return{upgrade:(t,s)=>{ZH(t,s,e)},blocked:()=>{},blocking:(t,s,n)=>{Uc=null,n.target?.close()},terminated:()=>{Uc=null}}}function C0(){return Uc||(Uc=tv.openDB(J3,ev,sv(2)).catch(()=>tv.openDB(J3,ev-1,sv(1)))),Uc}function fk(e,t){return e.objectStoreNames.contains(t)}function pk(e){if(!fk(e,Si))throw es.create("fid-registration-idb-schema-unavailable")}async function JH(e){const t=$0(e),n=await(await C0()).transaction(ra).objectStore(ra).get(t);if(n)return n;{const r=await YH(e.appConfig.senderId);if(r)return await _2(e,r),r}}async function _2(e,t){const s=$0(e),n=await C0(),r=[ra],i=fk(n,Si);i&&r.push(Si);const o=n.transaction(r,"readwrite");return await o.objectStore(ra).put(t,s),i&&await o.objectStore(Si).delete(s),await o.done,t}async function hk(e){const t=$0(e),s=await C0();return pk(s),await s.transaction(Si).objectStore(Si).get(t)}async function eq(e,t){const s=$0(e),n=await C0();pk(n);const r=n.transaction([ra,Si],"readwrite");return await r.objectStore(Si).put(t,s),await r.objectStore(ra).delete(s),await r.done,t}function $0({appConfig:e}){return e.appId}const nv="@firebase/messaging",qh="0.13.0";const tq=3,sq=1e3;async function nq(e,t){const s=await A0(e),n=v2(t,e.appConfig.appName,!1),r={method:"POST",headers:s,body:JSON.stringify(n)};let i;try{i=await(await fetch(S0(e.appConfig),r)).json()}catch(o){throw es.create("token-subscribe-failed",{errorInfo:o?.toString()})}if(i.error){const o=i.error.message;throw es.create("token-subscribe-failed",{errorInfo:o})}if(!i.token)throw es.create("token-subscribe-no-token");return i.token}async function rq(e,t){const s=await A0(e),n=v2(t,e.appConfig.appName,!0),r={method:"POST",headers:s,body:JSON.stringify(n)};let i;try{i=await cq(()=>fetch(S0(e.appConfig),r),tq,sq)}catch(u){throw es.create("fid-registration-failed",{errorInfo:u?.toString()})}if(i.ok)return{responseFid:await iq(i)};let o;try{o=await i.json()}catch{throw es.create("fid-registration-failed",{errorInfo:i.statusText})}const l=o.error?.message??i.statusText;throw es.create("fid-registration-failed",{errorInfo:l})}async function iq(e){const t=await e.text();if(!t.trim())throw es.create("fid-registration-failed",{errorInfo:"CreateRegistration succeeded but response body is empty"});let s;try{s=JSON.parse(t)}catch{throw es.create("fid-registration-failed",{errorInfo:"CreateRegistration succeeded but response body is not valid JSON"})}const n=s.name;if(typeof n!="string"||n.length===0)throw es.create("fid-registration-failed",{errorInfo:"CreateRegistration succeeded but response did not include a non-empty name"});return oq(n)}const rv="/registrations/";function oq(e){const t=e.indexOf(rv);if(t!==-1){const s=e.slice(t+rv.length);if(s.length>0)return s}throw es.create("fid-registration-failed",{errorInfo:"CreateRegistration succeeded but response name is not a valid registration resource name"})}async function aq(e,t){const s=await A0(e),n=v2(t.subscriptionOptions,e.appConfig.appName,!1),r={method:"PATCH",headers:s,body:JSON.stringify(n)};let i;try{i=await(await fetch(`${S0(e.appConfig)}/${t.token}`,r)).json()}catch(o){throw es.create("token-update-failed",{errorInfo:o?.toString()})}if(i.error){const o=i.error.message;throw es.create("token-update-failed",{errorInfo:o})}if(!i.token)throw es.create("token-update-no-token");return i.token}async function lq(e,t){const n={method:"DELETE",headers:await A0(e)};try{const i=await(await fetch(`${S0(e.appConfig)}
8/${t}`,n)).json();if(i.error){const o=i.error.message;throw es.create("token-unsubscribe-failed",{errorInfo:o})}}catch(r){throw es.create("token-unsubscribe-failed",{errorInfo:r?.toString()})}}async function cq(e,t,s){let n;for(let r=0;r<t;r++)try{return await e()}catch(i){if(n=i,r<t-1){const o=s*Math.pow(2,r);await new Promise(l=>setTimeout(l,o))}}throw n}function S0({projectId:e}){return`${jH}/projects/${e}/registrations`}async function A0({appConfig:e,installations:t}){const s=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${s}`})}function uq(e,t){try{if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e))return new URL(e).host}catch{}try{if(typeof self<"u"&&self.location?.href)return new URL(e,self.location.origin).host}catch{}return typeof self<"u"&&self.location?.host?self.location.host:t}function v2({p256dh:e,auth:t,endpoint:s,vapidKey:n,swScope:r},i,o){const l={web:{origin:uq(r,i),endpoint:s,auth:t,p256dh:e}};return o&&(l.fcm_sdk_version=qh),n!==ck&&(l.web.applicationPubKey=n),l}const dq=10080*60*1e3;async function fq(e){const t=await hq(e.swRegistration,e.vapidKey),s={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:lr(t.getKey("auth")),p256dh:lr(t.getKey("p256dh"))},n=await JH(e.firebaseDependencies);if(n){if(mq(n.subscriptionOptions,s))return Date.now()>=n.createTime+dq?pq(e,{token:n.token,createTime:Date.now(),subscriptionOptions:s}):n.token;try{await lq(e.firebaseDependencies,n.token)}catch(r){console.warn(r)}return iv(e.firebaseDependencies,s)}else return iv(e.firebaseDependencies,s)}async function pq(e,t){try{const s=await aq(e.firebaseDependencies,t),n={...t,token:s,createTime:Date.now()};return await _2(e.firebaseDependencies,n),s}catch(s){throw s}}async function iv(e,t){const n={token:await nq(e,t),createTime:Date.now(),subscriptionOptions:t};return await _2(e,n),n.token}async function hq(e,t){const s=await e.pushManager.getSubscription();return s||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:dk(t)})}function mq(e,t){const s=t.vapidKey===e.vapidKey,n=t.endpoint===e.endpoint,r=t.auth===e.auth,i=t.p256dh===e.p256dh;return s&&n&&r&&i}function gq(e,t){const s=e.onRegisteredHandler;s&&(typeof s=="function"?s(t):s.next(t))}async function yq(e){try{e.swRegistration=await navigator.serviceWorker.register(HH,{scope:qH}),e.swRegistration.update().catch(()=>{}),await _q(e.swRegistration)}catch(t){throw es.create("failed-service-worker-registration",{browserErrorMessage:t?.message})}}async function _q(e){return new Promise((t,s)=>{const n=setTimeout(()=>s(new Error(`Service worker not registered after ${Q3} ms`)),Q3),r=e.installing||e.waiting;e.active?(clearTimeout(n),t()):r?r.onstatechange=i=>{i.target?.state==="activated"&&(r.onstatechange=null,clearTimeout(n),t())}:(clearTimeout(n),s(new Error("No incoming service worker found.")))})}async function mk(e,t){if(!t&&!e.swRegistration&&await yq(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw es.create("invalid-sw-registration");e.swRegistration=t}}async function gk(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=ck)}const ov=3;async function vq(e,t){const s=await bq(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:s.endpoint,auth:lr(s.getKey("auth")),p256dh:lr(s.getKey("p256dh"))},r=e.firebaseDependencies.installations;for(let i=0;i<ov;i++){const{responseFid:o}=await rq(e.firebaseDependencies,n);if(o===t)return;i<ov-1&&await r.getToken(!0)}throw es.create("fid-registration-failed",{errorInfo:"CreateRegistration response FID does not match Firebase Installation ID"})}async function bq(e,t){const s=await e.pushManager.getSubscription();return s||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:dk(t)})}const xq=10080*60*1e3;async function yk(e,t){if(!navigator)throw es.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw es.create("permission-blocked");if(!e.onRegisteredHandler)throw es.create("invalid-on-registered-handler");await gk(e,t?.vapidKey),await mk(e,t?.serviceWorkerRegistration);const s=e._registerNotifyChain.catch(()=>{});return e._registerNotifyChain=s.then(async()=>{const n=await e.firebaseDependencies.installations.getId(),r=await hk(e.firebaseDependencies),i=Date.now();if((!r||r.fid!==n||i>=r.lastRegisterTime+xq)&&(await vq(e,n),await eq(e.firebaseDependencies,{fid:n,lastRegisterTime:i,vapidKey:e.vapidKey}
8)),!e.onRegisteredHandler)throw es.create("invalid-on-registered-handler");gq(e,n)}),e._registerNotifyChain}function kq(e,t){return MH(t,()=>{(async()=>!e.onRegisteredHandler||!await hk(e.firebaseDependencies)||await yk(e).catch(()=>{}))()})}function av(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return wq(t,e),Cq(t,e),$q(t,e),t}function wq(e,t){if(!t.notification)return;e.notification={};const s=t.notification.title;s&&(e.notification.title=s);const n=t.notification.body;n&&(e.notification.body=n);const r=t.notification.image;r&&(e.notification.image=r);const i=t.notification.icon;i&&(e.notification.icon=i)}function Cq(e,t){t.data&&(e.data=t.data)}function $q(e,t){if(!t.fcmOptions&&!t.notification?.click_action)return;e.fcmOptions={};const s=t.fcmOptions?.link??t.notification?.click_action;s&&(e.fcmOptions.link=s);const n=t.fcmOptions?.analytics_label;n&&(e.fcmOptions.analyticsLabel=n)}function Sq(e){return typeof e=="object"&&!!e&&uk in e}function Aq(e){if(!e||!e.options)throw cp("App Configuration Object");if(!e.name)throw cp("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:s}=e;for(const n of t)if(!s[n])throw cp(n);return{appName:e.name,projectId:s.projectId,apiKey:s.apiKey,appId:s.appId,senderId:s.messagingSenderId}}function cp(e){return es.create("missing-app-config-values",{valueName:e})}class Iq{constructor(t,s,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.onRegisteredHandler=null,this.onUnregisteredHandler=null,this._registerNotifyChain=Promise.resolve(),this._fidChangeUnsubscribe=null,this.logEvents=[],this.logQueue={state:"stopped"};const r=Aq(t);this.firebaseDependencies={app:t,appConfig:r,installations:s,analyticsProvider:n}}_delete(){return this._fidChangeUnsubscribe&&(this._fidChangeUnsubscribe(),this._fidChangeUnsubscribe=null),this.logQueue.state==="scheduled"&&clearTimeout(this.logQueue.timerId),this.logQueue={state:"stopped"},Promise.resolve()}}async function _k(e,t){if(!navigator)throw es.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw es.create("permission-blocked");return await gk(e,t?.vapidKey),await mk(e,t?.serviceWorkerRegistration),fq(e)}async function Tq(e,t,s){const n=Pq(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(n,{message_id:s[uk],message_name:s[UH],message_time:s[zH],message_device_time:Math.floor(Date.now()/1e3)})}function Pq(e){switch(e){case yl.NOTIFICATION_CLICKED:return"notification_open";case yl.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}async function Dq(e,t){const s=t.data;if(!s.isFirebaseMessaging)return;if(e.onMessageHandler&&s.messageType===yl.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(av(s)):e.onMessageHandler.next(av(s))),e.onRegisteredHandler&&s.messageType===yl.FID_REGISTERED){const r=s.fid;typeof e.onRegisteredHandler=="function"?e.onRegisteredHandler(r):e.onRegisteredHandler.next(r)}const n=s.data;Sq(n)&&n[WH]==="1"&&await Tq(e,s.messageType,n)}const Eq=e=>{const t=new Iq(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",s=>Dq(t,s)),t._fidChangeUnsubscribe=kq(t,e.getProvider("installations").getImmediate()),t},Lq=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:n=>_k(t,n),register:n=>yk(t,n)}};function Rq(){ta(new mo("messaging",Eq,"PUBLIC")),ta(new mo("messaging-internal",Lq,"PRIVATE")),uo(nv,qh),uo(nv,qh,"esm2020")}async function vk(){try{await Nx()}catch{return!1}return typeof window<"u"&&Fx()&&HB()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function Mq(e,t){if(!navigator)throw es.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}function lv(e=qV()){return vk().then(t=>{if(!t)throw es.create("unsupported-browser")},t=>{throw es.create("indexed-db-unsupported")}),p2(d2(e),"messaging").getImmediate()}async function Oq(e,t){return e=d2(e),_k(e,t)}function Fq(e,t){return e=d2(e),Mq(e,t)}Rq();const Nq=Ke("geolocation",{state:()=>({status:"idle",coords:null,error:null}),actions:{markPending(){this.status="pending",this.error=null},savePosition(e){this.status="granted",this.coords={latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy,altitude:e.coords.altitude,altitudeAccuracy:e.coords.altitudeAccuracy,heading:e.co
8ords.heading,speed:e.coords.speed,timestamp:e.timestamp},this.error=null},saveError(e){this.status=e.code===e.PERMISSION_DENIED?"denied":"error",this.error={code:e.code,message:e.message,timestamp:Date.now()}},markUnavailable(e="Geolocation is unavailable"){this.status="unavailable",this.error={code:0,message:e,timestamp:Date.now()}}}}),Bq=hs({name:"firebase-messaging",dependsOn:["snackbar"],setup(e){const t=kn().public,s=Ne(),n=Nq(),r=bh(),i=ue(),{openShareOrExternal:o}=Dl(),l=k=>e.$i18n.t(k);let u,d=null,f=null,h=null;function g(k){try{const x=new URL(k,window.location.origin);if(x.protocol!=="https:"&&x.protocol!=="http:")return;o(k)}catch{}}function m(k){k&&g(k)}async function _(){if(!d||!s.isAuthorized||f===d)return;s.initDeviceId(),(await i.sendPushToken(d)).ok&&(f=d)}function v(){!u||!("Notification"in window)||Notification.permission==="denied"||h||(h=(async()=>{try{if(Notification.permission==="default"&&await Notification.requestPermission()!=="granted")return;const k=await Oq(lv(),{vapidKey:String(t.pushFirebaseVapidKey),serviceWorkerRegistration:u});if(!k)return;d=k,r.setToken(k),await _()}catch(k){console.warn("[FCM] Token registration failed",k)}finally{h=null}})())}f0(async()=>{if(!(!t.pushFirebaseMessagingEnabled||!("Notification"in window)||!("serviceWorker"in navigator)||!await vk()))try{Hx({apiKey:String(t.pushFirebaseApiKey),authDomain:String(t.pushFirebaseAuthDomain),projectId:String(t.pushFirebaseProjectId),storageBucket:String(t.pushFirebaseStorageBucket),messagingSenderId:String(t.pushFirebaseSenderId),appId:String(t.pushFirebaseAppId)}),u=await navigator.serviceWorker.register("/firebase-messaging-sw.js"),Fq(lv(),x=>{const C=x.data,w=C?.url||x.fcmOptions?.link||"",S=C?.title||x.notification?.title||C?.body||x.notification?.body||l("notifications.new");if(!w&&C?.need_alert!=="true"&&C?.need_alert!=="1")return;const I=e.$showSnackbar;if(typeof I!="function"){console.warn("[FCM] Snackbar plugin unavailable");return}I(S,!1,5e3,w?{label:l("notifications.go"),onClick:()=>g(w)}:void 0)}),navigator.serviceWorker.addEventListener("message",x=>{x.data?.type==="BUTLER_PUSH_CLICK"&&m(x.data.url)});const k=new URL(window.location.href).searchParams.get("push_url");if(k){const x=new URL(window.location.href);x.searchParams.delete("push_url"),window.history.replaceState(window.history.state,"",x),m(k)}Se(()=>s.isAuthorized,x=>{f=null,x&&(v(),_())},{immediate:!0}),Se(()=>n.status,x=>{!s.isAuthorized&&x!=="idle"&&x!=="pending"&&v()},{immediate:!0}),window.addEventListener("focus",()=>{Notification.permission==="granted"&&v()})}catch(k){console.warn("[FCM] Initialization failed",k)}})}}),Vq=hs(()=>{const e=document.documentElement,t=()=>{const r=Math.max(window.innerWidth-e.clientWidth,0);e.style.setProperty("--sbw",`${r}px`)},s=()=>window.requestAnimationFrame(t);s();const n=()=>s();window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",n,{passive:!0}),window.visualViewport?.addEventListener("resize",n,{passive:!0})}),Hq=hs(()=>{if(!window.smartCaptcha&&!document.querySelector("script[data-yc-smartcaptcha]")){const e=document.createElement("script");e.src="https://smartcaptcha.yandexcloud.net/captcha.js?render=onload&onload=__ycOnload",e.defer=!0,e.setAttribute("data-yc-smartcaptcha","1"),window.__ycOnload=()=>{},document.head.appendChild(e)}}),qq=hs({name:"snackbar",setup(e){const t=Ws({visible:!1,text:"",isError:!0,action:null});let s;function n(r,i=!0,o=3e3,l=null){s&&clearTimeout(s),t.text=r,t.isError=i,t.action=l?{label:l.label,onClick:()=>{s&&clearTimeout(s),t.visible=!1,t.action=null,l.onClick()}}:null,t.visible=!0,s=setTimeout(()=>{t.visible=!1,t.action=null},o)}e.provide("snackbar",t),e.provide("showSnackbar",n)}}),Rl=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},jq={},Uq={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function zq(e,t){return p(),y("svg",Uq,[...t[0]||(t[0]=[c("path",{d:"M13.2932 7.29289C13.6837 6.90237 14.3167 6.90237 14.7073 7.29289C15.0978 7.68342 15.0978 8.31643 14.7073 8.70696L11.8391 11.5761C11.6294 11.7858 11.5144 11.901 11.4387 11.9902L11.4309 11.9999L11.4387 12.0097C11.5144 12.0989 11.6294 12.2141 11.8391 12.4238L14.7073 15.2929C15.0978 15.6834 15.0978 16.3164 14.7073 16.707C14.3167 17.0975 13.6837 17.0975 13.2932 16.707L10.4241 13.8388C10.2377 13.6525 10.0551 13.4705 9.91429 13.3046C9.76586 13.1298 9.60608 12.9078 9.51195 12.6181C9.38143 12.2164 9.38143 11.7834 9.51195 11.3818C9.60608 11.092 9.76586 10.8701 9.91429 10.6952C10.0551 10.5293 10.2377 10.3474 10.4241 10.1611L13.2932 7.29289Z",fill:"currentColor"},null,-1)])])}const Wq=Rl(jq,[["render",zq]]),Gq={},Yq={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function Kq(e,t){return p(),y("svg",Yq,[...t[0]||(t[0]=[c("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C15.0976 11.6834 15.0976 12.3166 14.7071 12.7071L10.7071 16.7071C10.3166 17.0976 9.68342 17.0976 9.29289 16.7071C8.90237 16.3166 8.90237 15.6834 9.29289 15.2929L12.5858 12L9.29289 8.70711C8.90237 8.31658 8.90237 7.68342 9.29289 7.29289Z",fill:"currentColor"},null,-1)])])}const Qq=Rl(Gq,[["render",Kq]]),Xq=["aria-label"],Zq={class:"bui-flex bui-h-16 bui-items-center bui-gap-2 bui-rounded-full bui-bg-white bui-p-2"},Jq=["disabled","aria-label"],ej={key:0,class:"bui-hidden bui-h-12 bui-w-12 bui-shrink-0 bui-items-center bui-justify-center bui-text-16 bui-text-grey-70 sm:bui-flex","aria-hidden":"true"},tj=["disabled","aria-current","aria-label","onClick"],sj=["disabled","aria-current","aria-label","onClick"],nj=["disabled","aria-label"],rj=G({__name:"AppPagination",props:{modelValue:{},total:{},perPage:{},disabled:{type:Boolean,default:!1},ariaLabel:{default:"ÐоÑÑÑаниÑÐ½Ð°Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑиÑ"},previousLabel:{default:"ÐÑедÑдÑÑÐ°Ñ ÑÑÑаниÑа"},nextLabel:{default:"СледÑÑÑÐ°Ñ ÑÑÑаниÑа"},pageLabel:{default:"СÑÑаниÑа {page}"}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>s.perPage<=0?1:Math.max(1,Math.ceil(Math.max(0,s.total)/s.perPage))),i=A(()=>{const f=r.value;if(f<=7)return Array.from({length:f},(_,v)=>l(v+1));
8let h=Math.max(2,s.modelValue);const g=Math.min(f-1,h+2);h=Math.max(2,g-2);const m=[l(1)];h>2&&m.push({type:"ellipsis",key:"start-ellipsis"});for(let _=h;_<=g;_+=1)m.push(l(_));return g<f-1&&m.push({type:"ellipsis",key:"end-ellipsis"}),m.push(l(f)),m}),o=A(()=>{const f=[1,s.modelValue,r.value].filter(h=>h>=1&&h<=r.value);return[...new Set(f)].sort((h,g)=>h-g)});function l(f){return{type:"page",page:f,key:`page-${f}`}}function u(f){return s.pageLabel.replace("{page}",String(f))}function d(f){s.disabled||f<1||f>r.value||f===s.modelValue||n("update:modelValue",f)}return(f,h)=>r.value>1?(p(),y("nav",{key:0,class:"bui-control bui-flex bui-justify-center","aria-label":e.ariaLabel},[c("div",Zq,[c("button",{type:"button",class:"bui-focusable bui-flex bui-h-12 bui-w-12 bui-shrink-0 bui-items-center bui-justify-center bui-rounded-full bui-bg-grey-90 bui-text-black bui-transition-colors disabled:bui-cursor-default disabled:bui-opacity-40 enabled:hover:bui-bg-grey-80",disabled:e.disabled||e.modelValue<=1,"aria-label":e.previousLabel,onClick:h[0]||(h[0]=g=>d(e.modelValue-1))},[T(Wq,{class:"bui-h-6 bui-w-6"})],8,Jq),(p(!0),y(j,null,le(i.value,g=>(p(),y(j,{key:`desktop-${g.key}`},[g.type==="ellipsis"?(p(),y("span",ej," ... ")):(p(),y("button",{key:1,type:"button",class:oe(["bui-focusable bui-hidden bui-h-12 bui-w-12 bui-shrink-0 bui-items-center bui-justify-center bui-rounded-full bui-text-16 bui-transition-colors sm:bui-flex",g.page===e.modelValue?"bui-bg-[#40497A] bui-text-white":"bui-text-black hover:bui-bg-grey-90"]),disabled:e.disabled||g.page===e.modelValue,"aria-current":g.page===e.modelValue?"page":void 0,"aria-label":u(g.page),onClick:m=>d(g.page)},b(g.page),11,tj))],64))),128)),(p(!0),y(j,null,le(o.value,g=>(p(),y("button",{key:`mobile-${g}`,type:"button",class:oe(["bui-focusable bui-flex bui-h-12 bui-w-12 bui-shrink-0 bui-items-center bui-justify-center bui-rounded-full bui-text-16 bui-transition-colors sm:bui-hidden",g===e.modelValue?"bui-bg-[#40497A] bui-text-white":"bui-text-black"]),disabled:e.disabled||g===e.modelValue,"aria-current":g===e.modelValue?"page":void 0,"aria-label":u(g),onClick:m=>d(g)},b(g),11,sj))),128)),c("button",{type:"button",class:"bui-focusable bui-flex bui-h-12 bui-w-12 bui-shrink-0 bui-items-center bui-justify-center bui-rounded-full bui-bg-grey-90 bui-text-black bui-transition-colors disabled:bui-cursor-default disabled:bui-opacity-40 enabled:hover:bui-bg-grey-80",disabled:e.disabled||e.modelValue>=r.value,"aria-label":e.nextLabel,onClick:h[1]||(h[1]=g=>d(e.modelValue+1))},[T(Qq,{class:"bui-h-6 bui-w-6"})],8,nj)])],8,Xq)):E("",!0)}});function b2(e){const{currentValue:t,nextValue:s,selectionStart:n,selectionEnd:r,formatter:i}=e;return i?i(t,s,n,r):{text:s,selection:{start:n,end:r}}}function x2(e,t,s=!1){var n;if(!t&&!s)return null;e.preventDefault();const r=((n=e.clipboardData)==null?void 0:n.getData("text"))??"";return t?t(r):r.replace(/\D+/g,"")}const ij={class:"bui-control bui-relative bui-w-full bui-min-w-0 bui-max-w-full"},oj=["value","type","inputmode","autocomplete","disabled","readonly"],aj=G({__name:"LabeledTextField",props:{modelValue:{default:""},label:{default:""},type:{default:"text"},inputMode:{default:void 0},autocomplete:{default:void 0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},digitsOnlyOnPaste:{type:Boolean,default:!1},pasteSanitizer:{type:Function,default:void 0},formatter:{type:Function,default:void 0}},emits:["update:modelValue","blur"],setup(e,{expose:t,emit:s}){const n=e,r=s,i=X(null),o=X(!1),l=A(()=>o.value||String(n.modelValue??"").length>0);function u(m,_,v,k){const x=b2({currentValue:String(n.modelValue??""),nextValue:_,selectionStart:v,selectionEnd:k,formatter:n.formatter});m.value=x.text,r("update:modelValue",x.text),requestAnimationFrame(()=>m.setSelectionRange(x.selection.start,x.selection.end))}function d(m){const _=m.target;u(_,_.value,_.selectionStart??0,_.selectionEnd??0)}function f(m){const _=x2(m,n.pasteSanitizer,n.digitsOnlyOnPaste);if(_===null||!_)return;const v=m.target,k=v.selectionStart??v.value.length,x=v.selectionEnd??k,C=k+_.length;u(v,`${v.value.slice(0,k)}${_}${v.value.slice(x)}`,C,C)}function h(m){o.value=!1,r("blur",m)}function g(m){var _;!n.disabled&&!n.readonly&&((_=i.value)==null||_.focus(m))}return t({focus:g}),(m,_)=>(p(),y("div",ij,[c("div",{class:oe(["bui-labeled-field bui-relative bui-h-14 bui-w-full bui-rounded-lg bui-border bui-border-grey-80 bui-bg-white bui-px-4 bui-py-3 bui-transition-[border-color,box-shadow] bui-duration-200",e.disabled?"bui-bg-grey-90":""])},[c("label",{class:oe(["bui-pointer-events-none bui-absolute bui-left-4 bui-right-4 bui-text-grey-40 bui-transition-all bui-duration-200",l.value?"bui-top-2 bui-text-11":"bui-top-1/2 -bui-translate-y-1/2 bui-text-16"])},b(e.label),3),c("input",{ref_key:"inputRef",ref:i,class:"bui-w-full bui-appearance-none bui-border-0 bui-bg-transparent bui-py-3 bui-text-16 bui-caret-paleLime-primary bui-text-black bui-shadow-none bui-outline-none disabled:bui-cursor-not-allowed disabled:bui-text-grey-40",value:e.modelValue,placeholder:" ",type:e.type,inputmode:e.inputMode,autocomplete:e.autocomplete,disabled:e.disabled,readonly:e.readonly,onFocus:_[0]||(_[0]=v=>o.value=!0),onBlur:h,onInput:d,onPaste:f},null,40,oj)],2)]))}}),lj={},cj={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function uj(e,t){return p(),y("svg",cj,[...t[0]||(t[0]=[c("path",{d:"m8 10 4 4 4-4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const dj=Rl(lj,[["render",uj]]),fj={},pj={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function hj(e,t){return p(),y("svg",pj,[...t[0]||(t[0]=[c("circle",{cx:"12",cy:"12",r:"10",fill:"currentColor"},null,-1),c("path",{d:"m8.75 8.75 6.5 6.5m0-6.5-6.5 6.5",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1)])])}const bk=Rl(fj,[["render",hj]]),mj={},gj={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function yj(e,t){return p(),y("svg",gj,[...t[0]||(t[0]=[c("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor","stroke-width":"4",opacity:"0.24"},null,-1),c("path",{d:"M12 4a8 8 0 0 1 8 8",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"},null,-1)])])}const k2=Rl(mj,[["render",yj]]),_j={},vj={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"};function bj(e,t){return p(),y("svg",vj,[...t[0]||(t[0]=[c("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor","stroke-width":"2"},null,-1),c("path",{d:"m21 21-4.35-4.35",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)])])}const xj=Rl(_j,[["render",bj]]),kj=["type","disabled","aria-busy"],wj={key:0,class:"bui-inline-flex bui-shrink-0 bui-items-center"},vt=G({__name:"PrimaryButton",props:{label:{default:""},variant:{default:"normal"},size:{default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!0},iconPosition:{default:"left"},type:{default:"button"}},emits:["click"],setup(e,{emit:t}){const s=e,n=t,r=B5(),i={small:"bui-h-10 bui-px-4 bui-py-2 bui-text-13",medium:"bui-h-12 bui-px-5 bui-py-3 bui-text-16",large:"bui-h-14 bui-px-5 bui-py-4 bui-text-16"},o={normal:"bui-bg-paleLime-primary bui-text-white hover:bui-bg-paleLime-40",secondary:"bui-bg-grey-90 bui-text-black hover:bui-bg-grey-80",white:"bui-bg-white bui-text-black hover:bui-bg-grey-80",secondaryRed:"bui-bg-grey-90 bui-text-red-50 hover:bui-bg-grey-80",red:"bui-bg-red-50 bui-text-white hover:bui-bg-red-40",black:"bui-bg-black bui-text-white hover:bui-opacity-90",strokeWhite:"bui-border bui-border-transparentWhite-16 bui-bg-transparent bui-text-white hover:bui-border-white",strokeBlack:"bui-border bui-border-grey-80 bui-bg-transparent bui-text-black hover:bui-border-black"},l={normal:"bui-bg-paleLime-primary bui-text-white bui-opacity-50",secondary:"bui-bg-grey-80 bui-text-grey-40",white:"bui-bg-grey-80 bui-text-grey-40",secondaryRed:"bui-bg-grey-80 bui-text-red-50",red:"bui-bg-red-80 bui-text-white",black:"bui-bg-black bui-text-white bui-opacity-50",strokeWhite:"bui-border bui-border-transparentWhite-12 bui-bg-transparent bui-text-grey-40",strokeBlack:"bui-border bui-border-grey-80 bui-bg-transparent bui-text-grey-40"},u=A(()=>[i[s.size],s.fullWidth?"bui-w-full":"bui-w-auto",s.disabled?l[s.variant]:o[s.variant]]);function d(f){!s.disabled&&!s.loading&&n("click",f)}return(f,h)=>(p(),y("button",{class:oe(["bui-control bui-button bui-relative bui-inline-flex bui-items-center bui-justify-center bui-rounded-control bui-font-semibold bui-transition-colors bui-duration-150 bui-focusable disabled:bui-cursor-not-allowed",u.value]),type:e.type,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:d},[c("span",{class:oe(["bui-inline-flex bui-items-center bui-justify-center bui-gap-2",[e.loading?"bui-opacity-0":"",e.iconPosition==="right"?"bui-flex-row-reverse":""]])},[a(r).icon?(p(),y("span",wj,[er(f.$slots,"icon")])):E("",!0),c("span",null,[er(f.$slots,"default",{},()=>[Qe(b(e.label),1)])])],2),e.loading?(p(),K(a(k2),{key:0,class:"bui-absolute bui-h-6 bui-w-6 bui-animate-spin"})):E("",!0)],10,kj))}}),Cj=["value","placeholder","type","inputmode","autocomplete","readonly","disabled","tabindex"],$j={class:"bui-flex bui-h-8 bui-w-8 bui-shrink-0 bui-items-center bui-justify-center"},Sj=["aria-label"],Aj=G({__name:"SearchTextField",props:{modelValue:{default:""},placeholder:{default:""},type:{default:"search"},inputMode:{default:void 0},autocomplete:{default:void 0},loading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},clearLabel:{default:"Clear search"},digitsOnlyOnPaste:{type:Boolean,default:!1},pasteSanitizer:{type:Function,default:void 0},formatter:{type:Function,default:void 0}},emits:["update:modelValue","clear","click"],setup(e,{expose:t,emit:s}){const n=e,r=s,i=X(null);function o(h,g,m,_){const v=b2({currentValue:n.modelValue,nextValue:g,selectionStart:m,selectionEnd:_,formatter:n.formatter});h.value=v.text,r("update:modelValue",v.text),requestAnimationFrame(()=>h.setSelectionRange(v.selection.start,v.selection.end))}function l(h){if(n.readonly||n.disabled)return;const g=h.target;o(g,g.value,g.selectionStart??0,g.selectionEnd??0)}function u(h){if(n.readonly||n.disabled)return;const g=x2(h,n.pasteSanitizer,n.digitsOnlyOnPaste);if(g===null||!g)return;const m=h.target,_=m.selectionStart??m.value.length,v=m.selectionEnd??_,k=_+g.length;o(m,`${m.value.slice(0,_)}${g}${m.value.slice(v)}`,k,k)}function d(){r("update:modelValue",""),r("clear"),requestAnimationFrame(()=>{var h;
8return(h=i.value)==null?void 0:h.focus()})}function f(h){var g;!n.disabled&&!n.readonly&&((g=i.value)==null||g.focus(h))}return t({focus:f}),je(()=>{n.autofocus&&!n.disabled&&!n.readonly&&requestAnimationFrame(()=>{var h;return(h=i.value)==null?void 0:h.focus()})}),(h,g)=>(p(),y("div",{class:oe(["bui-control bui-relative bui-flex bui-h-14 bui-w-full bui-min-w-0 bui-max-w-full bui-items-center bui-gap-3 bui-rounded-control bui-bg-grey-90 bui-px-4 bui-py-3",[e.readonly?"bui-cursor-pointer":"",e.disabled?"bui-opacity-60":""]]),onClick:g[0]||(g[0]=m=>r("click",m))},[T(a(xj),{class:"bui-h-6 bui-w-6 bui-shrink-0 bui-text-grey-40"}),c("input",{ref_key:"inputRef",ref:i,class:"bui-min-w-0 bui-flex-1 bui-appearance-none bui-border-0 bui-bg-transparent bui-py-4 bui-text-16 bui-caret-paleLime-primary bui-text-black bui-shadow-none bui-outline-none placeholder:bui-text-grey-40 disabled:bui-cursor-not-allowed",value:e.modelValue,placeholder:e.placeholder,type:e.type,inputmode:e.inputMode,autocomplete:e.autocomplete,readonly:e.readonly,disabled:e.disabled,tabindex:e.readonly?-1:void 0,onInput:l,onPaste:u},null,40,Cj),c("span",$j,[e.loading?(p(),K(a(k2),{key:0,class:"bui-h-6 bui-w-6 bui-animate-spin bui-text-grey-40"})):e.modelValue&&!e.readonly&&!e.disabled?(p(),y("button",{key:1,type:"button",class:"bui-flex bui-h-8 bui-w-8 bui-items-center bui-justify-center bui-rounded-full bui-border-0 bui-bg-transparent bui-p-0 bui-text-grey-70 bui-focusable","aria-label":e.clearLabel,onClick:St(d,["stop"])},[T(a(bk),{class:"bui-h-6 bui-w-6"})],8,Sj)):E("",!0)])],2))}}),Ij=["aria-label"],Tj=["disabled","aria-pressed","tabindex","onClick","onKeydown"],xk=G({__name:"SegmentedControl",props:{items:{},modelValue:{},disabled:{type:Boolean,default:!1},ariaLabel:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,r=X([]);function i(u){!s.disabled&&!u.disabled&&n("update:modelValue",u.value)}function o(u,d){var f;if(!s.items.length)return;let h=u;for(let g=0;g<s.items.length;g+=1)if(h=(h+d+s.items.length)%s.items.length,!((f=s.items[h])!=null&&f.disabled)){const m=s.items[h];m&&i(m),lt(()=>{var _;return(_=r.value[h])==null?void 0:_.focus()});return}}function l(u,d){u.key==="ArrowRight"||u.key==="ArrowDown"?(u.preventDefault(),o(d,1)):(u.key==="ArrowLeft"||u.key==="ArrowUp")&&(u.preventDefault(),o(d,-1))}return(u,d)=>(p(),y("div",{class:"bui-control bui-inline-flex bui-max-w-full bui-gap-2 bui-overflow-x-auto bui-rounded-full",role:"group","aria-label":e.ariaLabel||void 0},[(p(!0),y(j,null,le(e.items,(f,h)=>(p(),y("button",{key:f.value,ref_for:!0,ref:g=>{g&&(r.value[h]=g)},type:"button",class:oe(["bui-inline-flex bui-h-8 bui-shrink-0 bui-items-center bui-justify-center bui-rounded-full bui-border-0 bui-px-3 bui-text-13 bui-transition-colors bui-duration-150 bui-focusable disabled:bui-cursor-not-allowed disabled:bui-opacity-50",e.modelValue===f.value?"bui-bg-paleLime-primary bui-text-white":"bui-bg-grey-90 bui-text-black"]),disabled:e.disabled||f.disabled,"aria-pressed":e.modelValue===f.value,tabindex:e.modelValue===f.value?0:-1,onClick:g=>i(f),onKeydown:g=>l(g,h)},b(f.label),43,Tj))),128))],8,Ij))}}),Pj={class:"bui-control bui-relative bui-w-full bui-min-w-0 bui-max-w-full"},Dj=["disabled"],Ej=["title"],Lj={class:"bui-pointer-events-none bui-absolute bui-right-[14px] bui-top-1/2 bui-h-6 bui-w-6 -bui-translate-y-1/2 bui-text-grey-40"},Rj=G({__name:"SelectTextForm",props:{modelValue:{default:""},label:{default:""},emptyText:{default:""},disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>s.modelValue===""&&s.emptyText!==""),i=A(()=>r.value?s.emptyText:s.modelValue),o=A(()=>s.modelValue!==""||s.emptyText!=="");return(l,u)=>(p(),y("div",Pj,[c("button",{type:"button",class:"bui-relative bui-flex bui-h-14 bui-w-full bui-items-end bui-rounded-control bui-border bui-border-grey-80 bui-bg-white bui-px-[14px] bui-pb-2 bui-text-left bui-transition-colors focus-visible:bui-border-paleLime-primary bui-focusable disabled:bui-cursor-not-allowed disabled:bui-bg-grey-90",disabled:e.disabled,onClick:u[0]||(u[0]=d=>n("select",d))},[c("span",{class:oe(["bui-pointer-events-none bui-absolute bui-left-[14px] bui-right-[14px] bui-text-grey-40 bui-transition-all bui-duration-200",o.value?"bui-top-2 bui-text-11":"bui-top-1/2 -bui-translate-y-1/2 bui-text-16"])},b(e.label),3),c("span",{class:oe(["bui-block bui-w-full bui-min-w-0 bui-truncate bui-pr-10 bui-text-16",r.value?"bui-text-grey-40":"bui-text-black"]),title:i.value},b(i.value),11,Ej),c("span",Lj,[er(l.$slots,"icon",{},()=>[T(a(dj),{class:"bui-h-6 bui-w-6"})])])],8,Dj)]))}}),Mj=["type","disabled","aria-busy"],Oj={key:0,class:"bui-inline-flex bui-shrink-0 bui-items-center"},Ya=G({__name:"SmallButton",props:{label:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},iconPosition:{default:"left"},type:{default:"button"}},emits:["click"],setup(e,{emit:t}){const s=e,n=t,r=B5(),i={normal:"bui-bg-paleLime-primary bui-text-white hover:bui-bg-paleLime-40",secondary:"bui-bg-grey-90 bui-text-black hover:bui-bg-grey-80",white:"bui-bg-white bui-text-black hover:bui-bg-grey-80",secondaryRed:"bui-bg-grey-90 bui-text-red-50 hover:bui-bg-grey-80",red:"bui-bg-red-50 bui-text-white hover:bui-bg-red-40",black:"bui-bg-black bui-text-white hover:bui-opacity-90",strokeWhite:"bui-border bui-border-transparentWhite-16 bui-bg-transparent bui-text-white hover:bui-border-white",strokeBlack:"bui-border bui-border-grey-80 bui-bg-transparent bui-text-black hover:bui-border-black",emerald:"bui-bg-white bui-text-emerald-primary hover:bui-bg-grey-80"},o={normal:"bui-bg-paleLime-primary bui-text-white bui-opacity-50",secondary:"bui-bg-grey-80 bui-text-grey-40",white:"bui-bg-grey-80 bui-text-grey-40",secondaryRed:"bui-bg-grey-80 bui-text-red-50",red:"bui-bg-red-80 bui-text-white",black:"bui-bg-black bui-text-white bui-opacity-50",strokeWhite:"bui-border bui-border-transparentWhite-12 bui-bg-transparent bui-text-grey-40",strokeBlack:"bui-border bui-border-grey-80 bui-bg-transparent bui-text-grey-40",emerald:"bui-bg-grey-80 bui-text-grey-40"},l=A(()=>s.disabled?o[s.variant]:i[s.variant]);function u(d){!s.disabled&&!s.loading&&n("click",d)}return(d,f)=>(p(),y("button",{class:oe(["bui-control bui-button bui-relative bui-inline-flex bui-h-8 bui-items-center bui-justify-center bui-rounded-full bui-px-3 bui-py-2 bui-text-13 bui-transition-colors bui-duration-150 bui-focusable disabled:bui-cursor-not-allowed",l.value]),type:e.type,disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0,onClick:u},[c("span",{class:oe(["bui-inline-flex bui-items-center bui-justify-center bui-gap-1",[e.loading?"bui-opacity-0":"",e.iconPosition==="right"?"bui-flex-row-reverse":""]])},[a(r).icon?(p(),y("span",Oj,[er(d.$slots,"icon")])):E("",!0),c("span",null,[er(d.$slots,"default",{},()=>[Qe(b(e.label),1)])])],2),e.loading?(p(),K(a(k2),{key:0,class:"bui-absolute bui-h-4 bui-w-4 bui-animate-spin"})):E("",!0)],10,Mj))}}),Fj=["aria-checked","aria-label","disabled"],Nj=G({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean,default:!1},label:{default:""}},emits:["update:modelValue","change"],setup(e,{emit:t}){const s=e,n=t;function r(){if(s.disabled)return;const i=!s.modelValue;
8n("update:modelValue",i),n("change",i)}return(i,o)=>(p(),y("button",{type:"button",role:"switch",class:oe(["bui-control bui-relative bui-inline-flex bui-h-6 bui-w-12 bui-shrink-0 bui-items-center bui-rounded-full bui-border-0 bui-p-0 bui-transition-colors bui-duration-200 bui-focusable disabled:bui-cursor-not-allowed disabled:bui-opacity-50",e.modelValue?"bui-bg-emerald-primary":"bui-bg-grey-80"]),"aria-checked":e.modelValue,"aria-label":e.label||void 0,disabled:e.disabled,onClick:r},[c("span",{class:oe(["bui-absolute bui-left-1 bui-top-1 bui-h-4 bui-w-4 bui-rounded-full bui-bg-white bui-shadow-sm bui-transition-transform bui-duration-200",e.modelValue?"bui-translate-x-6":"bui-translate-x-0"]),"aria-hidden":"true"},null,2)],10,Fj))}}),Bj={class:"bui-control bui-relative bui-w-full bui-min-w-0 bui-max-w-full"},Vj=["value","placeholder","disabled","rows"],Hj=G({__name:"TextAreaField",props:{modelValue:{default:""},placeholder:{default:""},maxHeight:{default:296},minHeight:{default:49},disabled:{type:Boolean,default:!1},rows:{default:1}},emits:["update:modelValue","blur"],setup(e,{expose:t,emit:s}){const n=e,r=s,i=X(null);function o(){lt(()=>{const d=i.value;if(!d)return;d.style.height="0px";const f=Math.max(n.minHeight-26,Math.min(d.scrollHeight,n.maxHeight));d.style.height=`${f}px`,d.style.overflowY=d.scrollHeight>n.maxHeight?"auto":"hidden"})}function l(d){r("update:modelValue",d.target.value),o()}function u(d){var f;n.disabled||(f=i.value)==null||f.focus(d)}return t({focus:u}),Se(()=>n.modelValue,o),je(o),(d,f)=>(p(),y("div",Bj,[c("div",{class:oe(["bui-flex bui-w-full bui-rounded-control bui-border bui-border-grey-80 bui-bg-white bui-px-[14px] bui-py-3 bui-transition-colors focus-within:bui-border-paleLime-primary",e.disabled?"bui-bg-grey-90":""]),style:kt({minHeight:`${e.minHeight}px`})},[c("textarea",{ref_key:"textareaRef",ref:i,class:"bui-min-w-0 bui-flex-1 bui-resize-none bui-appearance-none bui-border-0 bui-bg-transparent bui-p-0 bui-text-16 bui-caret-paleLime-primary bui-text-black bui-shadow-none bui-outline-none placeholder:bui-text-grey-40 disabled:bui-cursor-not-allowed disabled:bui-text-grey-40",value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,rows:e.rows,onBlur:f[0]||(f[0]=h=>r("blur",h)),onInput:l},null,40,Vj)],6)]))}}),qj={class:"bui-control bui-relative bui-w-full bui-min-w-0 bui-max-w-full"},jj=["value","placeholder","type","inputmode","autocomplete","disabled"],Uj={key:0,class:"bui-shrink-0 bui-text-16 bui-text-grey-40"},zj=["aria-label"],Wj={key:2,class:"bui-flex bui-shrink-0 bui-items-center"},wo=G({__name:"TextField",props:{modelValue:{default:""},placeholder:{default:""},type:{default:"text"},inputMode:{default:void 0},autocomplete:{default:void 0},suffix:{default:""},size:{default:"compact"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},clearLabel:{default:"Clear field"},digitsOnlyOnPaste:{type:Boolean,default:!1},pasteSanitizer:{type:Function,default:void 0},formatter:{type:Function,default:void 0}},emits:["update:modelValue","blur","clear"],setup(e,{expose:t,emit:s}){const n=e,r=s,i=X(null),o=A(()=>n.size==="compact"?"bui-h-[49px]":"bui-h-14");function l(g,m,_,v){const k=b2({currentValue:n.modelValue,nextValue:m,selectionStart:_,selectionEnd:v,formatter:n.formatter});g.value=k.text,r("update:modelValue",k.text),requestAnimationFrame(()=>g.setSelectionRange(k.selection.start,k.selection.end))}function u(g){const m=g.target;l(m,m.value,m.selectionStart??0,m.selectionEnd??0)}function d(g){const m=x2(g,n.pasteSanitizer,n.digitsOnlyOnPaste);if(m===null||!m)return;const _=g.target,v=_.selectionStart??_.value.length,k=_.selectionEnd??v,x=`${_.value.slice(0,v)}${m}${_.value.slice(k)}`,C=v+m.length;l(_,x,C,C)}function f(){r("update:modelValue",""),r("clear"),lt(()=>{var g;return(g=i.value)==null?void 0:g.focus()})}function h(g){var m;n.disabled||(m=i.value)==null||m.focus(g)}return t({focus:h}),(g,m)=>(p(),y("div",qj,[c("div",{class:oe(["bui-flex bui-w-full bui-items-center bui-gap-2 bui-rounded-control bui-border bui-border-grey-80 bui-bg-white bui-px-[14px] bui-transition-colors focus-within:bui-border-paleLime-primary",[o.value,e.disabled?"bui-bg-grey-90 bui-text-grey-40":""]])},[c("input",{ref_key:"inputRef",ref:i,class:"bui-min-w-0 bui-flex-1 bui-appearance-none bui-border-0 bui-bg-transparent bui-p-0 bui-text-16 bui-caret-paleLime-primary bui-text-black bui-shadow-none bui-outline-none placeholder:bui-text-grey-40 disabled:bui-cursor-not-allowed disabled:bui-text-grey-40",value:e.modelValue,placeholder:e.placeholder,type:e.type,inputmode:e.inputMode,autocomplete:e.autocomplete,disabled:e.disabled,onBlur:m[0]||(m[0]=_=>r("blur",_)),onInput:u,onPaste:d},null,40,jj),e.suffix?(p(),y("span",Uj,b(e.suffix),1)):E("",!0),e.clearable&&e.modelValue&&!e.disabled?(p(),y("button",{key:1,type:"button",class:"bui-flex bui-shrink-0 bui-items-center bui-justify-center bui-border-0 bui-bg-transparent bui-p-0 bui-text-grey-70 bui-focusable","aria-label":e.clearLabel,onMousedown:m[1]||(m[1]=St(()=>{},["prevent"])),onClick:f},[T(a(bk),{class:"bui-h-6 bui-w-6"})],40,zj)):E("",!0),g.$slots.trailing?(p(),y("span",Wj,[er(g.$slots,"trailing")])):E("",!0)],2)]))}}),Gj={AppPagination:rj,LabeledTextField:aj,PrimaryButton:vt,SearchTextField:Aj,SegmentedControl:xk,SelectTextForm:Rj,SmallButton:Ya,Switch:Nj,TextAreaField:Hj,TextField:wo},Yj={install(e){for(const[t,s]of Object.entries(Gj))e.component(t,s)}},Kj=hs(e=>{e.vueApp.use(Yj)});var vn="top",tr="bottom",sr="right",bn="left",w2="auto",Au=[vn,tr,sr,bn],_l="start",ou="end",Qj="clippingParents",kk="viewport",mc="popper",Xj="reference",cv=Au.reduce(function(e,t){return e.concat([t+"-"+_l,t+"-"+ou])},[]),wk=[].concat(Au,[w2]).reduce(function(e,t){return e.concat([t,t+"-"+_l,t+"-"+ou])},[]),Zj="beforeRead",Jj="read",eU="afterRead",tU="beforeMain",sU="main",nU="afterMain",rU="beforeWrite",iU="write",oU="afterWrite",aU=[Zj,Jj,eU,tU,sU,nU,rU,iU,oU];function Xr(e){return e?(e.nodeName||"").toLowerCase():null}function En(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ia(e){var t=En(e).Element;return e instanceof t||e instanceof Element}function Qn(e){var t=En(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C2(e){if(typeof ShadowRoot>"u")return!1;var t=En(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lU(e){var t=e.state;
vendor: 18,906 bytes, line 8
8Object.keys(t.elements).forEach(function(s){var n=t.styles[s]||{},r=t.attributes[s]||{},i=t.elements[s];!Qn(i)||!Xr(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(o){var l=r[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function cU(e){var t=e.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:s[n]),l=o.reduce(function(u,d){return u[d]="",u},{});!Qn(r)||!Xr(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(u){r.removeAttribute(u)}))})}}const uU={name:"applyStyles",enabled:!0,phase:"write",fn:lU,effect:cU,requires:["computeStyles"]};function zr(e){return e.split("-")[0]}var Xo=Math.max,w1=Math.min,vl=Math.round;function jh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ck(){return!/^((?!chrome|android).)*safari/i.test(jh())}function bl(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var n=e.getBoundingClientRect(),r=1,i=1;t&&Qn(e)&&(r=e.offsetWidth>0&&vl(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vl(n.height)/e.offsetHeight||1);var o=ia(e)?En(e):window,l=o.visualViewport,u=!Ck()&&s,d=(n.left+(u&&l?l.offsetLeft:0))/r,f=(n.top+(u&&l?l.offsetTop:0))/i,h=n.width/r,g=n.height/i;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function $2(e){var t=bl(e),s=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:n}}function $k(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&C2(s)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Di(e){return En(e).getComputedStyle(e)}function dU(e){return["table","td","th"].indexOf(Xr(e))>=0}function Co(e){return((ia(e)?e.ownerDocument:e.document)||window.document).documentElement}function I0(e){return Xr(e)==="html"?e:e.assignedSlot||e.parentNode||(C2(e)?e.host:null)||Co(e)}function uv(e){return!Qn(e)||Di(e).position==="fixed"?null:e.offsetParent}function fU(e){var t=/firefox/i.test(jh()),s=/Trident/i.test(jh());if(s&&Qn(e)){var n=Di(e);if(n.position==="fixed")return null}var r=I0(e);for(C2(r)&&(r=r.host);Qn(r)&&["html","body"].indexOf(Xr(r))<0;){var i=Di(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Iu(e){for(var t=En(e),s=uv(e);s&&dU(s)&&Di(s).position==="static";)s=uv(s);return s&&(Xr(s)==="html"||Xr(s)==="body"&&Di(s).position==="static")?t:s||fU(e)||t}function S2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zc(e,t,s){return Xo(e,w1(t,s))}function pU(e,t,s){var n=zc(e,t,s);return n>s?s:n}function Sk(){return{top:0,right:0,bottom:0,left:0}}function Ak(e){return Object.assign({},Sk(),e)}function Ik(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var hU=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,Ak(typeof t!="number"?t:Ik(t,Au))};function mU(e){var t,s=e.state,n=e.name,r=e.options,i=s.elements.arrow,o=s.modifiersData.popperOffsets,l=zr(s.placement),u=S2(l),d=[bn,sr].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!o)){var h=hU(r.padding,s),g=$2(i),m=u==="y"?vn:bn,_=u==="y"?tr:sr,v=s.rects.reference[f]+s.rects.reference[u]-o[u]-s.rects.popper[f],k=o[u]-s.rects.reference[u],x=Iu(i),C=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,w=v/2-k/2,$=h[m],S=C-g[f]-h[_],I=C/2-g[f]/2+w,P=zc($,I,S),L=u;s.modifiersData[n]=(t={},t[L]=P,t.centerOffset=P-I,t)}}function gU(e){var t=e.state,s=e.options,n=s.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||$k(t.elements.popper,r)&&(t.elements.arrow=r))}const yU={name:"arrow",enabled:!0,phase:"main",fn:mU,effect:gU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xl(e){return e.split("-")[1]}var _U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vU(e,t){var s=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:vl(s*r)/r||0,y:vl(n*r)/r||0}}function dv(e){var t,s=e.popper,n=e.popperRect,r=e.placement,i=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,g=o.x,m=g===void 0?0:g,_=o.y,v=_===void 0?0:_,k=typeof f=="function"?f({x:m,y:v}):{x:m,y:v};m=k.x,v=k.y;var x=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),w=bn,$=vn,S=window;if(d){var I=Iu(s),P="clientHeight",L="clientWidth";if(I===En(s)&&(I=Co(s),Di(I).position!=="static"&&l==="absolute"&&(P="scrollHeight",L="scrollWidth")),I=I,r===vn||(r===bn||r===sr)&&i===ou){$=tr;var D=h&&I===S&&S.visualViewport?S.visualViewport.height:I[P];v-=D-n.height,v*=u?1:-1}if(r===bn||(r===vn||r===tr)&&i===ou){w=sr;var R=h&&I===S&&S.visualViewport?S.visualViewport.width:I[L];m-=R-n.width,m*=u?1:-1}}var F=Object.assign({position:l},d&&_U),N=f===!0?vU({x:m,y:v},En(s)):{x:m,y:v};if(m=N.x,v=N.y,u){var z;return Object.assign({},F,(z={},z[$]=C?"0":"",z[w]=x?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",z))}return Object.assign({},F,(t={},t[$]=C?v+"px":"",t[w]=x?m+"px":"",t.transform="",t))}function bU(e){var t=e.state,s=e.options,n=s.gpuAcceleration,r=n===void 0?!0:n,i=s.adaptive,o=i===void 0?!0:i,l=s.roundOffsets,u=l===void 0?!0:l,d={placement:zr(t.placement),variation:xl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,dv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,dv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bU,data:{}};var pd={passive:!0};function kU(e){var t=e.state,s=e.instance,n=e.options,r=n.scroll,i=r===void 0?!0:r,o=n.resize,l=o===void 0?!0:o,u=En(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",s.update,pd)}),l&&u.addEventListener("resize",s.update,pd),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",s.update,pd)}),l&&u.removeEventListener("resize",s.update,pd)}}const wU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kU,data:{}};var CU={left:"right",right:"left",bottom:"top",top:"bottom"};function Nd(e){return e.replace(/left|right|bottom|top/g,function(t){return CU[t]})}var $U={start:"end",end:"start"};function fv(e){return e.replace(/start|end/g,function(t){return $U[t]})}function A2(e){var t=En(e),s=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:s,scrollTop:n}}function I2(e){return bl(Co(e)).left+A2(e).scrollLeft}function SU(e,t){var s=En(e),n=Co(e),r=s.visualViewport,i=n.clientWidth,o=n.clientHeight,l=0,u=0;if(r){i=r.width,o=r.height;var d=Ck();(d||!d&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}return{width:i,height:o,x:l+I2(e),y:u}}function AU(e){var t,s=Co(e),n=A2(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Xo(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Xo(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+I2(e),u=-n.scrollTop;return Di(r||s).direction==="rtl"&&(l+=Xo(s.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:l,y:u}}function T2(e){var t=Di(e),s=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+n)}function Tk(e){return["html","body","#document"].indexOf(Xr(e))>=0?e.ownerDocument.body:Qn(e)&&T2(e)?e:Tk(I0(e))}function Wc(e,t){var s;t===void 0&&(t=[]);var n=Tk(e),r=n===((s=e.ownerDocument)==null?void 0:s.body),i=En(n),o=r?[i].concat(i.visualViewport||[],T2(n)?n:[]):n,l=t.concat(o);return r?l:l.concat(Wc(I0(o)))}function Uh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IU(e,t){var s=bl(e,!1,t==="fixed");return s.top=s.top+e.clientTop,s.left=s.left+e.clientLeft,s.bottom=s.top+e.clientHeight,s.right=s.left+e.clientWidth,s.width=e.clientWidth,s.height=e.clientHeight,s.x=s.left,s.y=s.top,s}function pv(e,t,s){return t===kk?Uh(SU(e,s)):ia(t)?IU(t,s):Uh(AU(Co(e)))}function TU(e){var t=Wc(I0(e)),s=["absolute","fixed"].indexOf(Di(e).position)>=0,n=s&&Qn(e)?Iu(e):e;return ia(n)?t.filter(function(r){return ia(r)&&$k(r,n)&&Xr(r)!=="body"}):[]}function PU(e,t,s,n){var r=t==="clippingParents"?TU(e):[].concat(t),i=[].concat(r,[s]),o=i[0],l=i.reduce(function(u,d){var f=pv(e,d,n);return u.top=Xo(f.top,u.top),u.right=w1(f.right,u.right),u.bottom=w1(f.bottom,u.bottom),u.left=Xo(f.left,u.left),u},pv(e,o,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Pk(e){var t=e.reference,s=e.element,n=e.placement,r=n?zr(n):null,i=n?xl(n):null,o=t.x+t.width/2-s.width/2,l=t.y+t.height/2-s.height/2,u;switch(r){case vn:u={x:o,y:t.y-s.height};break;case tr:u={x:o,y:t.y+t.height};break;case sr:u={x:t.x+t.width,y:l};break;case bn:u={x:t.x-s.width,y:l};break;default:u={x:t.x,y:t.y}}var d=r?S2(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case _l:u[d]=u[d]-(t[f]/2-s[f]/2);break;case ou:u[d]=u[d]+(t[f]/2-s[f]/2);break}}return u}function au(e,t){t===void 0&&(t={});var s=t,n=s.placement,r=n===void 0?e.placement:n,i=s.strategy,o=i===void 0?e.strategy:i,l=s.boundary,u=l===void 0?Qj:l,d=s.rootBoundary,f=d===void 0?kk:d,h=s.elementContext,g=h===void 0?mc:h,m=s.altBoundary,_=m===void 0?!1:m,v=s.padding,k=v===void 0?0:v,x=Ak(typeof k!="number"?k:Ik(k,Au)),C=g===mc?Xj:mc,w=e.rects.popper,$=e.elements[_?C:g],S=PU(ia($)?$:$.contextElement||Co(e.elements.popper),u,f,o),I=bl(e.elements.reference),P=Pk({reference:I,element:w,placement:r}),L=Uh(Object.assign({},w,P)),D=g===mc?L:I,R={top:S.top-D.top+x.top,bottom:D.bottom-S.bottom+x.bottom,left:S.left-D.left+x.left,right:D.right-S.right+x.right},F=e.modifiersData.offset;if(g===mc&&F){var N=F[r];Object.keys(R).forEach(function(z){var me=[sr,tr].indexOf(z)>=0?1:-1,ge=[vn,tr].indexOf(z)>=0?"y":"x";R[z]+=N[ge]*me})}return R}function DU(e,t){t===void 0&&(t={});var s=t,n=s.placement,r=s.boundary,i=s.rootBoundary,o=s.padding,l=s.flipVariations,u=s.allowedAutoPlacements,d=u===void 0?wk:u,f=xl(n),h=f?l?cv:cv.filter(function(_){return xl(_)===f}):Au,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var m=g.reduce(function(_,v){return _[v]=au(e,{placement:v,boundary:r,rootBoundary:i,padding:o})[zr(v)],_},{});return Object.keys(m).sort(function(_,v){return m[_]-m[v]})}function EU(e){if(zr(e)===w2)return[];var t=Nd(e);return[fv(e),t,fv(t)]}function LU(e){var t=e.state,s=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=s.mainAxis,i=r===void 0?!0:r,o=s.altAxis,l=o===void 0?!0:o,u=s.fallbackPlacements,d=s.padding,f=s.boundary,h=s.rootBoundary,g=s.altBoundary,m=s.flipVariations,_=m===void 0?!0:m,v=s.allowedAutoPlacements,k=t.options.placement,x=zr(k),C=x===k,w=u||(C||!_?[Nd(k)]:EU(k)),$=[k].concat(w).reduce(function(he,Ee){return he.concat(zr(Ee)===w2?DU(t,{placement:Ee,boundary:f,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:v}):Ee)},[]),S=t.rects.reference,I=t.rects.popper,P=new Map,L=!0,D=$[0],R=0;R<$.length;R++){var F=$[R],N=zr(F),z=xl(F)===_l,me=[vn,tr].indexOf(N)>=0,ge=me?"width":"height",fe=au(t,{placement:F,boundary:f,rootBoundary:h,altBoundary:g,padding:d}),te=me?z?sr:bn:z?tr:vn;S[ge]>I[ge]&&(te=Nd(te));var V=Nd(te),pe=[];if(i&&pe.push(fe[N]<=0),l&&pe.push(fe[te]<=0,fe[V]<=0),pe.every(function(he){return he})){D=F,L=!1;break}P.set(F,pe)}if(L)for(var ye=_?3:1,ne=function(Ee){var He=$.find(function(de){var Me=P.get(de);if(Me)return Me.slice(0,Ee).every(function(De){return De})});if(He)return D=He,"break"},ve=ye;ve>0;ve--){var J=ne(ve);if(J==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const RU={name:"flip",enabled:!0,phase:"main",fn:LU,requiresIfExists:["offset"],data:{_skip:!1}};function hv(e,t,s){return s===void 0&&(s={x:0,y:0}),{top:e.top-t.height-s.y,right:e.right-t.width+s.x,bottom:e.bottom-t.height+s.y,left:e.left-t.width-s.x}}function mv(e){return[vn,sr,tr,bn].some(function(t){return e[t]>=0})}function MU(e){var t=e.state,s=e.name,n=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=au(t,{elementContext:"reference"}),l=au(t,{altBoundary:!0}),u=hv(o,n),d=hv(l,r,i),f=mv(u),h=mv(d);t.modifiersData[s]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const OU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MU};function FU(e,t,s){var n=zr(e),r=[bn,vn].indexOf(n)>=0?-1:1,i=typeof s=="function"?s(Object.assign({},t,{placement:e})):s,o=i[0],l=i[1];return o=o||0,l=(l||0)*r,[bn,sr].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function NU(e){var t=e.state,s=e.options,n=e.name,r=s.offset,i=r===void 0?[0,0]:r,o=wk.reduce(function(f,h){return f[h]=FU(h,t.rects,i),f},{}),l=o[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=o}const BU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NU};function VU(e){var t=e.state,s=e.name;t.modifiersData[s]=Pk({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const HU={name:"popperOffsets",enabled:!0,phase:"read",fn:VU,data:{}};function qU(e){return e==="x"?"y":"x"}function jU(e){var t=e.state,s=e.options,n=e.name,r=s.mainAxis,i=r===void 0?!0:r,o=s.altAxis,l=o===void 0?!1:o,u=s.boundary,d=s.rootBoundary,f=s.altBoundary,h=s.padding,g=s.tether,m=g===void 0?!0:g,_=s.tetherOffset,v=_===void 0?0:_,k=au(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:f}),x=zr(t.placement),C=xl(t.placement),w=!C,$=S2(x),S=qU($),I=t.modifiersData.popperOffsets,P=t.rects.reference,L=t.rects.popper,D=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(I){if(i){var z,me=$==="y"?vn:bn,ge=$==="y"?tr:sr,fe=$==="y"?"height":"width",te=I[$],V=te+k[me],pe=te-k[ge],ye=m?-L[fe]/2:0,ne=C===_l?P[fe]:L[fe],ve=C===_l?-L[fe]:-P[fe],J=t.elements.arrow,he=m&&J?$2(J):{width:0,height:0},Ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Sk(),He=Ee[me],de=Ee[ge],Me=zc(0,P[fe],he[fe]),De=w?P[fe]/2-ye-Me-He-R.mainAxis:ne-Me-He-R.mainAxis,ze=w?-P[fe]/2+ye+Me+de+R.mainAxis:ve+Me+de+R.mainAxis,Ue=t.elements.arrow&&Iu(t.elements.arrow),ut=Ue?$==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,H=(z=F?.[$])!=null?z:0,Y=te+De-H-ut,W=te+ze-H,_e=zc(m?w1(V,Y):V,te,m?Xo(pe,W):pe);I[$]=_e,N[$]=_e-te}if(l){var ae,M=$==="x"?vn:bn,q=$==="x"?tr:sr,re=I[S],ce=S==="y"?"height":"width",ie=re+k[M],$e=re-k[q],se=[vn,bn].indexOf(x)!==-1,xe=(ae=F?.[S])!=null?ae:0,Ve=se?ie:re-P[ce]-L[ce]-xe+R.altAxis,Ze=se?re+P[ce]+L[ce]-xe-R.altAxis:$e,Je=m&&se?pU(Ve,re,Ze):zc(m?Ve:ie,re,m?Ze:$e);I[S]=Je,N[S]=Je-re}t.modifiersData[n]=N}}const UU={name:"preventOverflow",enabled:!0,phase:"main",fn:jU,requiresIfExists:["offset"]};function zU(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WU(e){return e===En(e)||!Qn(e)?A2(e):zU(e)}function GU(e){var t=e.getBoundingClientRect(),s=vl(t.width)/e.offsetWidth||1,n=vl(t.height)/e.offsetHeight||1;return s!==1||n!==1}function YU(e,t,s){s===void 0&&(s=!1);var n=Qn(t),r=Qn(t)&&GU(t),i=Co(t),o=bl(e,r,s),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!s)&&((Xr(t)!=="body"||T2(i))&&(l=WU(t)),Qn(t)?(u=bl(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=I2(i))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function KU(e){var t=new Map,s=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function r(i){s.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!s.has(l)){var u=t.get(l);u&&r(u)}}),n.push(i)}return e.forEach(function(i){s.has(i.name)||r(i)}),n}function QU(e){var t=KU(e);return aU.reduce(function(s,n){return s.concat(t.filter(function(r){return r.phase===n}))},[])}function XU(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function ZU(e){var t=e.reduce(function(s,n){var r=s[n.name];return s[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,s},{});return Object.keys(t).map(function(s){return t[s]})}var gv={placement:"bottom",modifiers:[],strategy:"absolute"};function yv(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function JU(e){e===void 0&&(e={});var t=e,s=t.defaultModifiers,n=s===void 0?[]:s,r=t.defaultOptions,i=r===void 0?gv:r;return function(l,u,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},gv,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],g=!1,m={state:f,setOptions:function(x){var C=typeof x=="function"?x(f.options):x;v(),f.options=Object.assign({},i,f.options,C),f.scrollParents={reference:ia(l)?Wc(l):l.contextElement?Wc(l.contextElement):[],popper:Wc(u)};var w=QU(ZU([].concat(n,f.options.modifiers)));return f.orderedModifiers=w.filter(function($){return $.enabled}),_(),m.update()},forceUpdate:function(){if(!g){var x=f.elements,C=x.reference,w=x.popper;if(yv(C,w)){f.rects={reference:YU(C,Iu(w),f.options.strategy==="fixed"),popper:$2(w)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var $=0;$<f.orderedModifiers.length;$++){if(f.reset===!0){f.reset=!1,$=-1;continue}var S=f.orderedModifiers[$],I=S.fn,P=S.options,L=P===void 0?{}:P,D=S.name;typeof I=="function"&&(f=I({state:f,options:L,name:D,instance:m})||f)}}}},update:XU(function(){return new Promise(function(k){m.forceUpdate(),k(f)})}),destroy:function(){v(),g=!0}};if(!yv(l,u))return m;m.setOptions(d).then(function(k){!g&&d.onFirstUpdate&&d.onFirstUpdate(k)});
vendor: 6,365 bytes, line 8
8function _(){f.orderedModifiers.forEach(function(k){var x=k.name,C=k.options,w=C===void 0?{}:C,$=k.effect;if(typeof $=="function"){var S=$({state:f,name:x,instance:m,options:w}),I=function(){};h.push(S||I)}})}function v(){h.forEach(function(k){return k()}),h=[]}return m}}var ez=[wU,HU,xU,uU,BU,RU,UU,yU,OU],tz=JU({defaultModifiers:ez}),sz=Object.defineProperty,nz=(e,t,s)=>t in e?sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,pt=(e,t,s)=>(nz(e,typeof t!="symbol"?t+"":t,s),s),hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rz=Object.prototype,iz=rz.hasOwnProperty;function oz(e,t){return e!=null&&iz.call(e,t)}var az=oz,lz=Array.isArray,br=lz,cz=typeof hd=="object"&&hd&&hd.Object===Object&&hd,Ek=cz,uz=Ek,dz=typeof self=="object"&&self&&self.Object===Object&&self,fz=uz||dz||Function("return this")(),Jr=fz,pz=Jr,hz=pz.Symbol,T0=hz,_v=T0,Lk=Object.prototype,mz=Lk.hasOwnProperty,gz=Lk.toString,gc=_v?_v.toStringTag:void 0;function yz(e){var t=mz.call(e,gc),s=e[gc];try{e[gc]=void 0;var n=!0}catch{}var r=gz.call(e);return n&&(t?e[gc]=s:delete e[gc]),r}var _z=yz,vz=Object.prototype,bz=vz.toString;function xz(e){return bz.call(e)}var kz=xz,vv=T0,wz=_z,Cz=kz,$z="[object Null]",Sz="[object Undefined]",bv=vv?vv.toStringTag:void 0;function Az(e){return e==null?e===void 0?Sz:$z:bv&&bv in Object(e)?wz(e):Cz(e)}var ei=Az;function Iz(e){return e!=null&&typeof e=="object"}var xr=Iz,Tz=ei,Pz=xr,Dz="[object Symbol]";function Ez(e){return typeof e=="symbol"||Pz(e)&&Tz(e)==Dz}var P2=Ez,Lz=br,Rz=P2,Mz=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oz=/^\w*$/;function Fz(e,t){if(Lz(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||Rz(e)?!0:Oz.test(e)||!Mz.test(e)||t!=null&&e in Object(t)}var D2=Fz;function Nz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Oi=Nz,Bz=ei,Vz=Oi,Hz="[object AsyncFunction]",qz="[object Function]",jz="[object GeneratorFunction]",Uz="[object Proxy]";function zz(e){if(!Vz(e))return!1;var t=Bz(e);return t==qz||t==jz||t==Hz||t==Uz}var ua=zz,Wz=Jr,Gz=Wz["__core-js_shared__"],Yz=Gz,up=Yz,xv=(function(){var e=/[^.]+$/.exec(up&&up.keys&&up.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Kz(e){return!!xv&&xv in e}var Qz=Kz,Xz=Function.prototype,Zz=Xz.toString;function Jz(e){if(e!=null){try{return Zz.call(e)}catch{}try{return e+""}catch{}}return""}var Rk=Jz,eW=ua,tW=Qz,sW=Oi,nW=Rk,rW=/[\\^$.*+?()[\]{}|]/g,iW=/^\[object .+?Constructor\]$/,oW=Function.prototype,aW=Object.prototype,lW=oW.toString,cW=aW.hasOwnProperty,uW=RegExp("^"+lW.call(cW).replace(rW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dW(e){if(!sW(e)||tW(e))return!1;var t=eW(e)?uW:iW;return t.test(nW(e))}var fW=dW;function pW(e,t){return e?.[t]}var hW=pW,mW=fW,gW=hW;function yW(e,t){var s=gW(e,t);return mW(s)?s:void 0}var da=yW,_W=da,vW=_W(Object,"create"),P0=vW,kv=P0;function bW(){this.__data__=kv?kv(null):{},this.size=0}var xW=bW;function kW(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wW=kW,CW=P0,$W="__lodash_hash_undefined__",SW=Object.prototype,AW=SW.hasOwnProperty;function IW(e){var t=this.__data__;if(CW){var s=t[e];return s===$W?void 0:s}return AW.call(t,e)?t[e]:void 0}var TW=IW,PW=P0,DW=Object.prototype,EW=DW.hasOwnProperty;function LW(e){var t=this.__data__;return PW?t[e]!==void 0:EW.call(t,e)}var RW=LW,MW=P0,OW="__lodash_hash_undefined__";function FW(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=MW&&t===void 0?OW:t,this}var NW=FW,BW=xW,VW=wW,HW=TW,qW=RW,jW=NW;function Ml(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}Ml.prototype.clear=BW;Ml.prototype.delete=VW;Ml.prototype.get=HW;Ml.prototype.has=qW;Ml.prototype.set=jW;var UW=Ml;function zW(){this.__data__=[],this.size=0}var WW=zW;function GW(e,t){return e===t||e!==e&&t!==t}var Ol=GW,YW=Ol;function KW(e,t){for(var s=e.length;s--;)if(YW(e[s][0],t))return s;return-1}var D0=KW,QW=D0,XW=Array.prototype,ZW=XW.splice;function JW(e){var t=this.__data__,s=QW(t,e);if(s<0)return!1;var n=t.length-1;return s==n?t.pop():ZW.call(t,s,1),--this.size,!0}var eG=JW,tG=D0;function sG(e){var t=this.__data__,s=tG(t,e);return s<0?void 0:t[s][1]}var nG=sG,rG=D0;function iG(e){return rG(this.__data__,e)>-1}var oG=iG,aG=D0;function lG(e,t){var s=this.__data__,n=aG(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}var cG=lG,uG=WW,dG=eG,fG=nG,pG=oG,hG=cG;function Fl(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}Fl.prototype.clear=uG;Fl.prototype.delete=dG;Fl.prototype.get=fG;Fl.prototype.has=pG;Fl.prototype.set=hG;var E0=Fl,mG=da,gG=Jr,yG=mG(gG,"Map"),E2=yG,wv=UW,_G=E0,vG=E2;function bG(){this.size=0,this.__data__={hash:new wv,map:new(vG||_G),string:new wv}}var xG=bG;function kG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wG=kG,CG=wG;function $G(e,t){var s=e.__data__;return CG(t)?s[typeof t=="string"?"string":"hash"]:s.map}var L0=$G,SG=L0;function AG(e){var t=SG(this,e).delete(e);return this.size-=t?1:0,t}var IG=AG,TG=L0;function PG(e){return TG(this,e).get(e)}var DG=PG,EG=L0;function LG(e){return EG(this,e).has(e)}var RG=LG,MG=L0;function OG(e,t){var s=MG(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}var FG=OG,NG=xG,BG=IG,VG=DG,HG=RG,qG=FG;function Nl(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}Nl.prototype.clear=NG;Nl.prototype.delete=BG;Nl.prototype.get=VG;Nl.prototype.has=HG;Nl.prototype.set=qG;var L2=Nl,Mk=L2,jG="Expected a function";function R2(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jG);var s=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=s.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return s.cache=i.set(r,o)||i,o};return s.cache=new(R2.Cache||Mk),s}R2.Cache=Mk;var UG=R2,zG=UG,WG=500;function GG(e){var t=zG(e,function(n){return s.size===WG&&s.clear(),n}),s=t.cache;return t}var YG=GG,KG=YG,QG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XG=/\\(\\)?/g,ZG=KG(function(e){var t=[];
8return e.charCodeAt(0)===46&&t.push(""),e.replace(QG,function(s,n,r,i){t.push(r?i.replace(XG,"$1"):n||s)}),t}),JG=ZG;function eY(e,t){for(var s=-1,n=e==null?0:e.length,r=Array(n);++s<n;)r[s]=t(e[s],s,e);return r}var tY=eY,Cv=T0,sY=tY,nY=br,rY=P2,$v=Cv?Cv.prototype:void 0,Sv=$v?$v.toString:void 0;function Ok(e){if(typeof e=="string")return e;if(nY(e))return sY(e,Ok)+"";if(rY(e))return Sv?Sv.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var iY=Ok,oY=iY;function aY(e){return e==null?"":oY(e)}var lY=aY,cY=br,uY=D2,dY=JG,fY=lY;function pY(e,t){return cY(e)?e:uY(e,t)?[e]:dY(fY(e))}var Fk=pY,hY=ei,mY=xr,gY="[object Arguments]";function yY(e){return mY(e)&&hY(e)==gY}var _Y=yY,Av=_Y,vY=xr,Nk=Object.prototype,bY=Nk.hasOwnProperty,xY=Nk.propertyIsEnumerable,kY=Av((function(){return arguments})())?Av:function(e){return vY(e)&&bY.call(e,"callee")&&!xY.call(e,"callee")},M2=kY,wY=9007199254740991,CY=/^(?:0|[1-9]\d*)$/;function $Y(e,t){var s=typeof e;return t=t??wY,!!t&&(s=="number"||s!="symbol"&&CY.test(e))&&e>-1&&e%1==0&&e<t}var O2=$Y,SY=9007199254740991;function AY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SY}var F2=AY,IY=P2;function TY(e){if(typeof e=="string"||IY(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var R0=TY,PY=Fk,DY=M2,EY=br,LY=O2,RY=F2,MY=R0;function OY(e,t,s){t=PY(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var o=MY(t[n]);if(!(i=e!=null&&s(e,o)))break;e=e[o]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&RY(r)&&LY(o,r)&&(EY(e)||DY(e)))}var Bk=OY,FY=az,NY=Bk;function BY(e,t){return e!=null&&NY(e,t,FY)}var Vk=BY,VY=ei,HY=xr,qY="[object Date]";function jY(e){return HY(e)&&VY(e)==qY}var UY=jY;function zY(e){return function(t){return e(t)}}var Hk=zY,lu={},WY={get exports(){return lu},set exports(e){lu=e}};(function(e,t){var s=Ek,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i&&s.process,l=(function(){try{var u=r&&r.require&&r.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(WY,lu);var GY=UY,YY=Hk,Iv=lu,Tv=Iv&&Iv.isDate,KY=Tv?YY(Tv):GY,QY=KY,XY=ei,ZY=br,JY=xr,eK="[object String]";function tK(e){return typeof e=="string"||!ZY(e)&&JY(e)&&XY(e)==eK}var Vr=tK;function sK(e,t){for(var s=-1,n=e==null?0:e.length;++s<n;)if(t(e[s],s,e))return!0;return!1}var qk=sK,nK=E0;function rK(){this.__data__=new nK,this.size=0}var iK=rK;function oK(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}var aK=oK;function lK(e){return this.__data__.get(e)}var cK=lK;function uK(e){return this.__data__.has(e)}var dK=uK,fK=E0,pK=E2,hK=L2,mK=200;function gK(e,t){var s=this.__data__;if(s instanceof fK){var n=s.__data__;if(!pK||n.length<mK-1)return n.push([e,t]),this.size=++s.size,this;s=this.__data__=new hK(n)}return s.set(e,t),this.size=s.size,this}var yK=gK,_K=E0,vK=iK,bK=aK,xK=cK,kK=dK,wK=yK;function Bl(e){var t=this.__data__=new _K(e);this.size=t.size}Bl.prototype.clear=vK;Bl.prototype.delete=bK;Bl.prototype.get=xK;Bl.prototype.has=kK;Bl.prototype.set=wK;var N2=Bl,CK="__lodash_hash_undefined__";function $K(e){return this.__data__.set(e,CK),this}var SK=$K;function AK(e){return this.__data__.has(e)}var IK=AK,TK=L2,PK=SK,DK=IK;function C1(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new TK;++t<s;)this.add(e[t])}C1.prototype.add=C1.prototype.push=PK;C1.prototype.has=DK;var EK=C1;function LK(e,t){return e.has(t)}var RK=LK,MK=EK,OK=qk,FK=RK,NK=1,BK=2;function VK(e,t,s,n,r,i){var o=s&NK,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=-1,g=!0,m=s&BK?new MK:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var _=e[h],v=t[h];if(n)var k=o?n(v,_,h,t,e,i):n(_,v,h,e,t,i);if(k!==void 0){if(k)continue;g=!1;break}if(m){if(!OK(t,function(x,C){if(!FK(m,C)&&(_===x||r(_,x,s,n,i)))return m.push(C)})){g=!1;break}}else if(!(_===v||r(_,v,s,n,i))){g=!1;break}}return i.delete(e),i.delete(t),g}var jk=VK,HK=Jr,qK=HK.Uint8Array,Uk=qK;function jK(e){var t=-1,s=Array(e.size);return e.forEach(function(n,r){s[++t]=[r,n]}),s}var UK=jK;function zK(e){var t=-1,s=Array(e.size);return e.forEach(function(n){s[++t]=n}),s}var WK=zK,Pv=T0,Dv=Uk,GK=Ol,YK=jk,KK=UK,QK=WK,XK=1,ZK=2,JK="[object Boolean]",eQ="[object Date]",tQ="[object Error]",sQ="[object Map]",nQ="[object Number]",rQ="[object RegExp]",iQ="[object Set]",oQ="[object String]",aQ="[object Symbol]",lQ="[object ArrayBuffer]",cQ="[object DataView]",Ev=Pv?Pv.prototype:void 0,dp=Ev?Ev.valueOf:void 0;function uQ(e,t,s,n,r,i,o){switch(s){case cQ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lQ:return!(e.byteLength!=t.byteLength||!i(new Dv(e),new Dv(t)));case JK:case eQ:case nQ:return GK(+e,+t);case tQ:return e.name==t.name&&e.message==t.message;case rQ:case oQ:return e==t+"";case sQ:var l=KK;case iQ:var u=n&XK;if(l||(l=QK),e.size!=t.size&&!u)return!1;var d=o.get(e);if(d)return d==t;n|=ZK,o.set(e,t);var f=YK(l(e),l(t),n,r,i,o);return o.delete(e),f;case aQ:if(dp)return dp.call(e)==dp.call(t)}return!1}var dQ=uQ;function fQ(e,t){for(var s=-1,n=t.length,r=e.length;++s<n;)e[r+s]=t[s];return e}var pQ=fQ,hQ=pQ,mQ=br;function gQ(e,t,s){var n=t(e);return mQ(e)?n:hQ(n,s(e))}var yQ=gQ;function _Q(e,t){for(var s=-1,n=e==null?0:e.length,r=0,i=[];++s<n;){var o=e[s];t(o,s,e)&&(i[r++]=o)}return i}var vQ=_Q;function bQ(){return[]}var xQ=bQ,kQ=vQ,wQ=xQ,CQ=Object.prototype,$Q=CQ.propertyIsEnumerable,Lv=Object.getOwnPropertySymbols,SQ=Lv?function(e){return e==null?[]:(e=Object(e),kQ(Lv(e),function(t){return $Q.call(e,t)}))}:wQ,AQ=SQ;function IQ(e,t){for(var s=-1,n=Array(e);++s<e;)n[s]=t(s);return n}var TQ=IQ,kl={},PQ={get exports(){return kl},set exports(e){kl=e}};function DQ(){return!1}var EQ=DQ;(function(e,t){var s=Jr,n=EQ,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,l=o?s.Buffer:void 0,u=l?l.isBuffer:void 0,d=u||n;e.exports=d})(PQ,kl);var LQ=ei,RQ=F2,MQ=xr,OQ="[object Arguments]",FQ="[object Array]",NQ="[object Boolean]",BQ="[object Date]",VQ="[object Error]",HQ="[object Function]",qQ="[object Map]",jQ="[object Number]",UQ="[object Object]",zQ="[object RegExp]",WQ="[object Set]",GQ="[object String]",YQ="[object WeakMap]",KQ="[object ArrayBuffer]",QQ="[object DataView]",XQ="[object Float32Array]",ZQ="[object Float64Array
8]",JQ="[object Int8Array]",eX="[object Int16Array]",tX="[object Int32Array]",sX="[object Uint8Array]",nX="[object Uint8ClampedArray]",rX="[object Uint16Array]",iX="[object Uint32Array]",us={};us[XQ]=us[ZQ]=us[JQ]=us[eX]=us[tX]=us[sX]=us[nX]=us[rX]=us[iX]=!0;us[OQ]=us[FQ]=us[KQ]=us[NQ]=us[QQ]=us[BQ]=us[VQ]=us[HQ]=us[qQ]=us[jQ]=us[UQ]=us[zQ]=us[WQ]=us[GQ]=us[YQ]=!1;function oX(e){return MQ(e)&&RQ(e.length)&&!!us[LQ(e)]}var aX=oX,lX=aX,cX=Hk,Rv=lu,Mv=Rv&&Rv.isTypedArray,uX=Mv?cX(Mv):lX,B2=uX,dX=TQ,fX=M2,pX=br,hX=kl,mX=O2,gX=B2,yX=Object.prototype,_X=yX.hasOwnProperty;function vX(e,t){var s=pX(e),n=!s&&fX(e),r=!s&&!n&&hX(e),i=!s&&!n&&!r&&gX(e),o=s||n||r||i,l=o?dX(e.length,String):[],u=l.length;for(var d in e)(t||_X.call(e,d))&&!(o&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||mX(d,u)))&&l.push(d);return l}var zk=vX,bX=Object.prototype;function xX(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||bX;return e===s}var V2=xX;function kX(e,t){return function(s){return e(t(s))}}var Wk=kX,wX=Wk,CX=wX(Object.keys,Object),$X=CX,SX=V2,AX=$X,IX=Object.prototype,TX=IX.hasOwnProperty;function PX(e){if(!SX(e))return AX(e);var t=[];for(var s in Object(e))TX.call(e,s)&&s!="constructor"&&t.push(s);return t}var DX=PX,EX=ua,LX=F2;function RX(e){return e!=null&&LX(e.length)&&!EX(e)}var Tu=RX,MX=zk,OX=DX,FX=Tu;function NX(e){return FX(e)?MX(e):OX(e)}var H2=NX,BX=yQ,VX=AQ,HX=H2;function qX(e){return BX(e,HX,VX)}var jX=qX,Ov=jX,UX=1,zX=Object.prototype,WX=zX.hasOwnProperty;function GX(e,t,s,n,r,i){var o=s&UX,l=Ov(e),u=l.length,d=Ov(t),f=d.length;if(u!=f&&!o)return!1;for(var h=u;h--;){var g=l[h];if(!(o?g in t:WX.call(t,g)))return!1}var m=i.get(e),_=i.get(t);if(m&&_)return m==t&&_==e;var v=!0;i.set(e,t),i.set(t,e);for(var k=o;++h<u;){g=l[h];var x=e[g],C=t[g];if(n)var w=o?n(C,x,g,t,e,i):n(x,C,g,e,t,i);if(!(w===void 0?x===C||r(x,C,s,n,i):w)){v=!1;break}k||(k=g=="constructor")}if(v&&!k){var $=e.constructor,S=t.constructor;$!=S&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var YX=GX,KX=da,QX=Jr,XX=KX(QX,"DataView"),ZX=XX,JX=da,eZ=Jr,tZ=JX(eZ,"Promise"),sZ=tZ,nZ=da,rZ=Jr,iZ=nZ(rZ,"Set"),oZ=iZ,aZ=da,lZ=Jr,cZ=aZ(lZ,"WeakMap"),uZ=cZ,zh=ZX,Wh=E2,Gh=sZ,Yh=oZ,Kh=uZ,Gk=ei,Vl=Rk,Fv="[object Map]",dZ="[object Object]",Nv="[object Promise]",Bv="[object Set]",Vv="[object WeakMap]",Hv="[object DataView]",fZ=Vl(zh),pZ=Vl(Wh),hZ=Vl(Gh),mZ=Vl(Yh),gZ=Vl(Kh),Vo=Gk;(zh&&Vo(new zh(new ArrayBuffer(1)))!=Hv||Wh&&Vo(new Wh)!=Fv||Gh&&Vo(Gh.resolve())!=Nv||Yh&&Vo(new Yh)!=Bv||Kh&&Vo(new Kh)!=Vv)&&(Vo=function(e){var t=Gk(e),s=t==dZ?e.constructor:void 0,n=s?Vl(s):"";if(n)switch(n){case fZ:return Hv;case pZ:return Fv;case hZ:return Nv;case mZ:return Bv;case gZ:return Vv}return t});var yZ=Vo,fp=N2,_Z=jk,vZ=dQ,bZ=YX,qv=yZ,jv=br,Uv=kl,xZ=B2,kZ=1,zv="[object Arguments]",Wv="[object Array]",md="[object Object]",wZ=Object.prototype,Gv=wZ.hasOwnProperty;function CZ(e,t,s,n,r,i){var o=jv(e),l=jv(t),u=o?Wv:qv(e),d=l?Wv:qv(t);u=u==zv?md:u,d=d==zv?md:d;var f=u==md,h=d==md,g=u==d;if(g&&Uv(e)){if(!Uv(t))return!1;o=!0,f=!1}if(g&&!f)return i||(i=new fp),o||xZ(e)?_Z(e,t,s,n,r,i):vZ(e,t,u,s,n,r,i);if(!(s&kZ)){var m=f&&Gv.call(e,"__wrapped__"),_=h&&Gv.call(t,"__wrapped__");
8if(m||_){var v=m?e.value():e,k=_?t.value():t;return i||(i=new fp),r(v,k,s,n,i)}}return g?(i||(i=new fp),bZ(e,t,s,n,r,i)):!1}var $Z=CZ,SZ=$Z,Yv=xr;function Yk(e,t,s,n,r){return e===t?!0:e==null||t==null||!Yv(e)&&!Yv(t)?e!==e&&t!==t:SZ(e,t,s,n,Yk,r)}var Kk=Yk,AZ=N2,IZ=Kk,TZ=1,PZ=2;function DZ(e,t,s,n){var r=s.length,i=r,o=!n;if(e==null)return!i;for(e=Object(e);r--;){var l=s[r];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=s[r];var u=l[0],d=e[u],f=l[1];if(o&&l[2]){if(d===void 0&&!(u in e))return!1}else{var h=new AZ;if(n)var g=n(d,f,u,e,t,h);if(!(g===void 0?IZ(f,d,TZ|PZ,n,h):g))return!1}}return!0}var EZ=DZ,LZ=Oi;function RZ(e){return e===e&&!LZ(e)}var Qk=RZ,MZ=Qk,OZ=H2;function FZ(e){for(var t=OZ(e),s=t.length;s--;){var n=t[s],r=e[n];t[s]=[n,r,MZ(r)]}return t}var NZ=FZ;function BZ(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==void 0||e in Object(s))}}var Xk=BZ,VZ=EZ,HZ=NZ,qZ=Xk;function jZ(e){var t=HZ(e);return t.length==1&&t[0][2]?qZ(t[0][0],t[0][1]):function(s){return s===e||VZ(s,e,t)}}var UZ=jZ,zZ=Fk,WZ=R0;function GZ(e,t){t=zZ(t,e);for(var s=0,n=t.length;e!=null&&s<n;)e=e[WZ(t[s++])];return s&&s==n?e:void 0}var Zk=GZ,YZ=Zk;function KZ(e,t,s){var n=e==null?void 0:YZ(e,t);return n===void 0?s:n}var zo=KZ;function QZ(e,t){return e!=null&&t in Object(e)}var XZ=QZ,ZZ=XZ,JZ=Bk;function eJ(e,t){return e!=null&&JZ(e,t,ZZ)}var tJ=eJ,sJ=Kk,nJ=zo,rJ=tJ,iJ=D2,oJ=Qk,aJ=Xk,lJ=R0,cJ=1,uJ=2;function dJ(e,t){return iJ(e)&&oJ(t)?aJ(lJ(e),t):function(s){var n=nJ(s,e);return n===void 0&&n===t?rJ(s,e):sJ(t,n,cJ|uJ)}}var fJ=dJ;function pJ(e){return e}var q2=pJ;function hJ(e){return function(t){return t?.[e]}}var mJ=hJ,gJ=Zk;function yJ(e){return function(t){return gJ(t,e)}}var _J=yJ,vJ=mJ,bJ=_J,xJ=D2,kJ=R0;function wJ(e){return xJ(e)?vJ(kJ(e)):bJ(e)}var CJ=wJ,$J=UZ,SJ=fJ,AJ=q2,IJ=br,TJ=CJ;function PJ(e){return typeof e=="function"?e:e==null?AJ:typeof e=="object"?IJ(e)?SJ(e[0],e[1]):$J(e):TJ(e)}var Jk=PJ;function DJ(e){return function(t,s,n){for(var r=-1,i=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++r];if(s(i[u],u,i)===!1)break}return t}}var EJ=DJ,LJ=EJ,RJ=LJ(),ew=RJ,MJ=ew,OJ=H2;function FJ(e,t){return e&&MJ(e,t,OJ)}var tw=FJ,NJ=Tu;function BJ(e,t){return function(s,n){if(s==null)return s;if(!NJ(s))return e(s,n);for(var r=s.length,i=t?r:-1,o=Object(s);(t?i--:++i<r)&&n(o[i],i,o)!==!1;);return s}}var VJ=BJ,HJ=tw,qJ=VJ,jJ=qJ(HJ),UJ=jJ,zJ=UJ;function WJ(e,t){var s;return zJ(e,function(n,r,i){return s=t(n,r,i),!s}),!!s}var GJ=WJ,YJ=Ol,KJ=Tu,QJ=O2,XJ=Oi;function ZJ(e,t,s){if(!XJ(s))return!1;var n=typeof t;return(n=="number"?KJ(s)&&QJ(t,s.length):n=="string"&&t in s)?YJ(s[t],e):!1}var j2=ZJ,JJ=qk,eee=Jk,tee=GJ,see=br,nee=j2;function ree(e,t,s){var n=see(e)?JJ:tee;return s&&nee(e,t,s)&&(t=void 0),n(e,eee(t))}var iee=ree,oee=ei,aee=xr,lee="[object Boolean]";function cee(e){return e===!0||e===!1||aee(e)&&oee(e)==lee}var uee=cee,dee=ei,fee=xr,pee="[object Number]";function hee(e){return typeof e=="number"||fee(e)&&dee(e)==pee}var _r=hee,mee=da,gee=(function(){try{var e=mee(Object,"defineProperty");return e({},"",{}),e}catch{}})(),sw=gee,Kv=sw;function yee(e,t,s){t=="__proto__"&&Kv?Kv(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}var M0=yee,_ee=M0,vee=Ol,bee=Object.prototype,xee=bee.hasOwnProperty;function kee(e,t,s){var n=e[t];(!(xee.call(e,t)&&vee(n,s))||s===void 0&&!(t in e))&&_ee(e,t,s)}var wee=kee,Cee=M0,$ee=tw,See=Jk;function Aee(e,t){var s={};return t=See(t),$ee(e,function(n,r,i){Cee(s,r,t(n,r,i))}),s}var Iee=Aee;function Tee(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}var nw=Tee,Pee=nw,Qv=Math.max;function Dee(e,t,s){return t=Qv(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=Qv(n.length-t,0),o=Array(i);++r<i;)o[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=s(o),Pee(e,this,l)}}var Eee=Dee;function Lee(e){return function(){return e}}var Ree=Lee,Mee=Ree,Xv=sw,Oee=q2,Fee=Xv?function(e,t){return Xv(e,"toString",{configurable:!0,enumerable:!1,value:Mee(t),writable:!0})}:Oee,Nee=Fee,Bee=800,Vee=16,Hee=Date.now;function qee(e){var t=0,s=0;return function(){var n=Hee(),r=Vee-(n-s);if(s=n,r>0){if(++t>=Bee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var jee=qee,Uee=Nee,zee=jee,Wee=zee(Uee),Gee=Wee,Yee=q2,Kee=Eee,Qee=Gee;function Xee(e,t){return Qee(Kee(e,t,Yee),e+"")}var U2=Xee;function Zee(e){var t=[];if(e!=null)for(var s in Object(e))t.push(s);return t}var Jee=Zee,ete=Oi,tte=V2,ste=Jee,nte=Object.prototype,rte=nte.hasOwnProperty;function ite(e){if(!ete(e))return ste(e);var t=tte(e),s=[];for(var n in e)n=="constructor"&&(t||!rte.call(e,n))||s.push(n);return s}var ote=ite,ate=zk,lte=ote,cte=Tu;function ute(e){return cte(e)?ate(e,!0):lte(e)}var z2=ute,dte=U2,fte=Ol,pte=j2,hte=z2,rw=Object.prototype,mte=rw.hasOwnProperty,gte=dte(function(e,t){e=Object(e);var s=-1,n=t.length,r=n>2?t[2]:void 0;for(r&&pte(t[0],t[1],r)&&(n=1);++s<n;)for(var i=t[s],o=hte(i),l=-1,u=o.length;++l<u;){var d=o[l],f=e[d];(f===void 0||fte(f,rw[d])&&!mte.call(e,d))&&(e[d]=i[d])}return e}),Zv=gte,yte=M0,_te=Ol;function vte(e,t,s){(s!==void 0&&!_te(e[t],s)||s===void 0&&!(t in e))&&yte(e,t,s
8)}var iw=vte,$1={},bte={get exports(){return $1},set exports(e){$1=e}};(function(e,t){var s=Jr,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i?s.Buffer:void 0,l=o?o.allocUnsafe:void 0;function u(d,f){if(f)return d.slice();var h=d.length,g=l?l(h):new d.constructor(h);return d.copy(g),g}e.exports=u})(bte,$1);var Jv=Uk;function xte(e){var t=new e.constructor(e.byteLength);return new Jv(t).set(new Jv(e)),t}var kte=xte,wte=kte;function Cte(e,t){var s=t?wte(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}var $te=Cte;function Ste(e,t){var s=-1,n=e.length;for(t||(t=Array(n));++s<n;)t[s]=e[s];return t}var Ate=Ste,Ite=Oi,e4=Object.create,Tte=(function(){function e(){}return function(t){if(!Ite(t))return{};if(e4)return e4(t);e.prototype=t;var s=new e;return e.prototype=void 0,s}})(),Pte=Tte,Dte=Wk,Ete=Dte(Object.getPrototypeOf,Object),ow=Ete,Lte=Pte,Rte=ow,Mte=V2;function Ote(e){return typeof e.constructor=="function"&&!Mte(e)?Lte(Rte(e)):{}}var Fte=Ote,Nte=Tu,Bte=xr;function Vte(e){return Bte(e)&&Nte(e)}var Hte=Vte,qte=ei,jte=ow,Ute=xr,zte="[object Object]",Wte=Function.prototype,Gte=Object.prototype,aw=Wte.toString,Yte=Gte.hasOwnProperty,Kte=aw.call(Object);function Qte(e){if(!Ute(e)||qte(e)!=zte)return!1;var t=jte(e);if(t===null)return!0;var s=Yte.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&aw.call(s)==Kte}var Xte=Qte;function Zte(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var lw=Zte,Jte=wee,ese=M0;function tse(e,t,s,n){var r=!s;s||(s={});for(var i=-1,o=t.length;++i<o;){var l=t[i],u=n?n(s[l],e[l],l,s,e):void 0;u===void 0&&(u=e[l]),r?ese(s,l,u):Jte(s,l,u)}return s}var sse=tse,nse=sse,rse=z2;function ise(e){return nse(e,rse(e))}var ose=ise,t4=iw,ase=$1,lse=$te,cse=Ate,use=Fte,s4=M2,n4=br,dse=Hte,fse=kl,pse=ua,hse=Oi,mse=Xte,gse=B2,r4=lw,yse=ose;function _se(e,t,s,n,r,i,o){var l=r4(e,s),u=r4(t,s),d=o.get(u);if(d){t4(e,s,d);return}var f=i?i(l,u,s+"",e,t,o):void 0,h=f===void 0;if(h){var g=n4(u),m=!g&&fse(u),_=!g&&!m&&gse(u);f=u,g||m||_?n4(l)?f=l:dse(l)?f=cse(l):m?(h=!1,f=ase(u,!0)):_?(h=!1,f=lse(u,!0)):f=[]:mse(u)||s4(u)?(f=l,s4(l)?f=yse(l):(!hse(l)||pse(l))&&(f=use(u))):h=!1}h&&(o.set(u,f),r(f,u,n,i,o),o.delete(u)),t4(e,s,f)}var vse=_se,bse=N2,xse=iw,kse=ew,wse=vse,Cse=Oi,$se=z2,Sse=lw;function cw(e,t,s,n,r){e!==t&&kse(t,function(i,o){if(r||(r=new bse),Cse(i))wse(e,t,o,s,cw,n,r);else{var l=n?n(Sse(e,o),i,o+"",e,t,r):void 0;l===void 0&&(l=i),xse(e,o,l)}},$se)}var uw=cw,Ase=uw,i4=Oi;function dw(e,t,s,n,r,i){return i4(e)&&i4(t)&&(i.set(t,e),Ase(e,t,void 0,dw,i),i.delete(t)),e}var Ise=dw,Tse=U2,Pse=j2;function Dse(e){return Tse(function(t,s){var n=-1,r=s.length,i=r>1?s[r-1]:void 0,o=r>2?s[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,o&&Pse(s[0],s[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var l=s[n];l&&e(t,l,n,i)}return t})}var Ese=Dse,Lse=uw,Rse=Ese,Mse=Rse(function(e,t,s,n){Lse(e,t,s,n)}),Ose=Mse,Fse=nw,Nse=U2,Bse=Ise,Vse=Ose,Hse=Nse(function(e){return e.push(void 0,Bse),Fse(Vse,void 0,e)}),wl=Hse;function qse(e){return e&&e.length?e[0]:void 0}var fw=qse;function jse(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ka=jse;const Use=e=>Object.prototype.toString.call(e).slice(8,-1),il=e=>QY(e)&&!isNaN(e.getTime()),Ei=e=>Use(e)==="Object",pw=Vk,o4=(e,t)=>iee(t,s=>Vk(e,s)),ns=(e,t,s="0")=>{for(e=e!=null?String(e):"",t=t||2;e.length<t;)e=`${s}${e}`;return e},Xn=e=>Array.isArray(e),xi=e=>Xn(e)&&e.length>0,S1=e=>e==null?null:document&&Vr(e)?document.querySelector(e):e.$el??e,to=(e,t,s,n=void 0)=>{e.removeEventListener(t,s,n)},so=(e,t,s,n=void 0)=>(e.addEventListener(t,s,n),()=>to(e,t,s,n)),Bd=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),gd=(e,t)=>{(e.key===" "||e.key==="Enter")&&(t(e),e.preventDefault())},hw=(e,...t)=>{const s={};let n;for(n in e)t.includes(n)||(s[n]=e[n]);return s},mw=(e,t)=>{const s={};return t.forEach(n=>{n in e&&(s[n]=e[n])}),s};function zse(e,t,s){return Math.min(Math.max(e,t),s)}var A1={},Wse={get exports(){return A1},set exports(e){A1=e}};
8(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;function s(n){if(n===null||n===!0||n===!1)return NaN;var r=Number(n);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}e.exports=t.default})(Wse,A1);const Gse=Dk(A1);var I1={},Yse={get exports(){return I1},set exports(e){I1=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;function s(n){var r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),n.getTime()-r.getTime()}e.exports=t.default})(Yse,I1);const a4=Dk(I1);function Kse(e,t){var s=Jse(t);return s.formatToParts?Xse(s,e):Zse(s,e)}var Qse={year:0,month:1,day:2,hour:3,minute:4,second:5};function Xse(e,t){try{for(var s=e.formatToParts(t),n=[],r=0;r<s.length;r++){var i=Qse[s[r].type];i>=0&&(n[i]=parseInt(s[r].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function Zse(e,t){var s=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(s);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var pp={};function Jse(e){if(!pp[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),s=t==="06/25/2014, 00:00:00"||t==="â06â/â25â/â2014â â00â:â00â:â00";pp[e]=s?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return pp[e]}function gw(e,t,s,n,r,i,o){var l=new Date(0);return l.setUTCFullYear(e,t,s),l.setUTCHours(n,r,i,o),l}var l4=36e5,ene=6e4,hp={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function tne(e,t,s){var n,r;if(!e||(n=hp.timezoneZ.exec(e),n))return 0;var i;if(n=hp.timezoneHH.exec(e),n)return i=parseInt(n[1],10),c4(i)?-(i*l4):NaN;if(n=hp.timezoneHHMM.exec(e),n){i=parseInt(n[1],10);var o=parseInt(n[2],10);return c4(i,o)?(r=Math.abs(i)*l4+o*ene,i>0?-r:r):NaN}if(rne(e)){t=new Date(t||Date.now());var l=sne(t),u=Qh(l,e),d=nne(t,u,e);return-d}return NaN}function sne(e){return gw(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Qh(e,t){var s=Kse(e,t),n=gw(s[0],s[1]-1,s[2],s[3]%24,s[4],s[5],0).getTime(),r=e.getTime(),i=r%1e3;return r-=i>=0?i:1e3+i,n-r}function nne(e,t,s){var n=e.getTime(),r=n-t,i=Qh(new Date(r),s);if(t===i)return t;r-=i-t;var o=Qh(new Date(r),s);return i===o?i:Math.max(i,o)}function c4(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var u4={};function rne(e){if(u4[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),u4[e]=!0,!0}catch{return!1}}var ine=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const one=ine;var mp=36e5,d4=6e4,ane=2,cn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:one};function lne(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var s=t||{},n=s.additionalDigits==null?ane:Gse(s.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var r=cne(e),i=une(r.date,n),o=i.year,l=i.restDateString,u=dne(l,o);if(isNaN(u))return new Date(NaN);if(u){var d=u.getTime(),f=0,h;if(r.time&&(f=fne(r.time),isNaN(f)))return new Date(NaN);
8if(r.timeZone||s.timeZone){if(h=tne(r.timeZone||s.timeZone,new Date(d+f)),isNaN(h))return new Date(NaN)}else h=a4(new Date(d+f)),h=a4(new Date(d+f+h));return new Date(d+f+h)}else return new Date(NaN)}function cne(e){var t={},s=cn.dateTimePattern.exec(e),n;if(s?(t.date=s[1],n=s[3]):(s=cn.datePattern.exec(e),s?(t.date=s[1],n=s[2]):(t.date=null,n=e)),n){var r=cn.timeZone.exec(n);r?(t.time=n.replace(r[1],""),t.timeZone=r[1].trim()):t.time=n}return t}function une(e,t){var s=cn.YYY[t],n=cn.YYYYY[t],r;if(r=cn.YYYY.exec(e)||n.exec(e),r){var i=r[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(r=cn.YY.exec(e)||s.exec(e),r){var o=r[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function dne(e,t){if(t===null)return null;var s,n,r,i;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(s=cn.MM.exec(e),s)return n=new Date(0),r=parseInt(s[1],10)-1,p4(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(s=cn.DDD.exec(e),s){n=new Date(0);var o=parseInt(s[1],10);return mne(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(s=cn.MMDD.exec(e),s){n=new Date(0),r=parseInt(s[1],10)-1;var l=parseInt(s[2],10);return p4(t,r,l)?(n.setUTCFullYear(t,r,l),n):new Date(NaN)}if(s=cn.Www.exec(e),s)return i=parseInt(s[1],10)-1,h4(t,i)?f4(t,i):new Date(NaN);if(s=cn.WwwD.exec(e),s){i=parseInt(s[1],10)-1;var u=parseInt(s[2],10)-1;return h4(t,i,u)?f4(t,i,u):new Date(NaN)}return null}function fne(e){var t,s,n;if(t=cn.HH.exec(e),t)return s=parseFloat(t[1].replace(",",".")),gp(s)?s%24*mp:NaN;if(t=cn.HHMM.exec(e),t)return s=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),gp(s,n)?s%24*mp+n*d4:NaN;if(t=cn.HHMMSS.exec(e),t){s=parseInt(t[1],10),n=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return gp(s,n,r)?s%24*mp+n*d4+r*1e3:NaN}return null}function f4(e,t,s){t=t||0,s=s||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var r=n.getUTCDay()||7,i=t*7+s+1-r;return n.setUTCDate(n.getUTCDate()+i),n}var pne=[31,28,31,30,31,30,31,31,30,31,30,31],hne=[31,29,31,30,31,30,31,31,30,31,30,31];function yw(e){return e%400===0||e%4===0&&e%100!==0}function p4(e,t,s){if(t<0||t>11)return!1;if(s!=null){if(s<1)return!1;var n=yw(e);if(n&&s>hne[t]||!n&&s>pne[t])return!1}return!0}function mne(e,t){if(t<1)return!1;var s=yw(e);return!(s&&t>366||!s&&t>365)}function h4(e,t,s){return!(t<0||t>52||s!=null&&(s<0||s>6))}function gp(e,t,s){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||s!=null&&(s<0||s>=60))}function Js(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Vd(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(s){return typeof s}:Vd=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Vd(e)}function Fi(e){Js(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Vd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Hl(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var gne={};function W2(){return gne}function oa(e,t){var s,n,r,i,o,l,u,d;Js(1,arguments);var f=W2(),h=Hl((s=(n=(r=(i=t?.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&s!==void 0?s:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=Fi(e),m=g.getDay(),_=(m<h?7:0)+m-h;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function m4(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var yne=6048e5;function _ne(e,t,s){Js(2,arguments);
8var n=oa(e,s),r=oa(t,s),i=n.getTime()-m4(n),o=r.getTime()-m4(r);return Math.round((i-o)/yne)}function vne(e){Js(1,arguments);var t=Fi(e),s=t.getMonth();return t.setFullYear(t.getFullYear(),s+1,0),t.setHours(0,0,0,0),t}function bne(e){Js(1,arguments);var t=Fi(e);return t.setDate(1),t.setHours(0,0,0,0),t}function xne(e,t){return Js(1,arguments),_ne(vne(e),bne(e),t)+1}function kne(e,t){var s,n,r,i,o,l,u,d;Js(1,arguments);var f=Fi(e),h=f.getFullYear(),g=W2(),m=Hl((s=(n=(r=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setFullYear(h+1,0,m),_.setHours(0,0,0,0);var v=oa(_,t),k=new Date(0);k.setFullYear(h,0,m),k.setHours(0,0,0,0);var x=oa(k,t);return f.getTime()>=v.getTime()?h+1:f.getTime()>=x.getTime()?h:h-1}function wne(e,t){var s,n,r,i,o,l,u,d;Js(1,arguments);var f=W2(),h=Hl((s=(n=(r=(i=t?.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:1),g=kne(e,t),m=new Date(0);m.setFullYear(g,0,h),m.setHours(0,0,0,0);var _=oa(m,t);return _}var Cne=6048e5;function $ne(e,t){Js(1,arguments);var s=Fi(e),n=oa(s,t).getTime()-wne(s,t).getTime();return Math.round(n/Cne)+1}function T1(e){return Js(1,arguments),oa(e,{weekStartsOn:1})}function Sne(e){Js(1,arguments);var t=Fi(e),s=t.getFullYear(),n=new Date(0);n.setFullYear(s+1,0,4),n.setHours(0,0,0,0);var r=T1(n),i=new Date(0);i.setFullYear(s,0,4),i.setHours(0,0,0,0);var o=T1(i);return t.getTime()>=r.getTime()?s+1:t.getTime()>=o.getTime()?s:s-1}function Ane(e){Js(1,arguments);var t=Sne(e),s=new Date(0);s.setFullYear(t,0,4),s.setHours(0,0,0,0);var n=T1(s);return n}var Ine=6048e5;function Tne(e){Js(1,arguments);var t=Fi(e),s=T1(t).getTime()-Ane(t).getTime();return Math.round(s/Ine)+1}function ln(e,t){Js(2,arguments);var s=Fi(e),n=Hl(t);return isNaN(n)?new Date(NaN):(n&&s.setDate(s.getDate()+n),s)}function P1(e,t){Js(2,arguments);var s=Fi(e),n=Hl(t);if(isNaN(n))return new Date(NaN);if(!n)return s;var r=s.getDate(),i=new Date(s.getTime());i.setMonth(s.getMonth()+n+1,0);var o=i.getDate();return r>=o?i:(s.setFullYear(i.getFullYear(),i.getMonth(),r),s)}function g4(e,t){Js(2,arguments);var s=Hl(t);return P1(e,s*12)}const Pne={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function Dne({monthComps:e,prevMonthComps:t,nextMonthComps:s},n){const r=[],{firstDayOfWeek:i,firstWeekday:o,isoWeeknumbers:l,weeknumbers:u,numDays:d,numWeeks:f}=e,h=o+(o<i?Ks:0)-i;let g=!0,m=!1,_=!1,v=0;const k=new Intl.DateTimeFormat(n.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let x=t.numDays-h+1,C=t.numDays-x+1,w=Math.floor((x-1)/Ks+1),$=1,S=t.numWeeks,I=1,P=t.month,L=t.year;const D=new Date,R=D.getDate(),F=D.getMonth()+1,N=D.getFullYear();for(let z=1;z<=Cre;z++){for(let me=1,ge=i;me<=Ks;me++,ge+=ge===Ks?1-Ks:1){g&&ge===o&&(x=1,C=e.numDays,w=Math.floor((x-1)/Ks+1),$=Math.floor((d-x)/Ks+1),S=1,I=f,P=e.month,L=e.year,g=!1,m=!0);const fe=n.getDateFromParams(L,P,x,0,0,0,0),te=n.getDateFromParams(L,P,x,12,0,0,0),V=n.getDateFromParams(L,P,x,23,59,59,999),pe=fe,ye=`${ns(L,4)}-${ns(P,2)}-${ns(x,2)}`,ne=me,ve=Ks-me,J=u[z-1],he=l[z-1],Ee=x===R&&P===F&&L===N,He=m&&x===1,de=m&&x===d,Me=z===1,De=z===f,ze=me===1,Ue=me===Ks,ut=Tw(L,P,x);r.push({locale:n,id:ye,position:++v,label:x.toString(),ariaLabel:k.format(new Date(L,P-1,x)),day:x,dayFromEnd:C,weekday:ge,weekdayPosition:ne,weekdayPositionFromEnd:ve,weekdayOrdinal:w,weekdayOrdinalFromEnd:$,week:S,weekFromEnd:I,weekPosition:z,weeknumber:J,isoWeeknumber:he,month:P,year:L,date:pe,startDate:fe,endD
8ate:V,noonDate:te,dayIndex:ut,isToday:Ee,isFirstDay:He,isLastDay:de,isDisabled:!m,isFocusable:!m,isFocused:!1,inMonth:m,inPrevMonth:g,inNextMonth:_,onTop:Me,onBottom:De,onLeft:ze,onRight:Ue,classes:[`id-${ye}`,`day-${x}`,`day-from-end-${C}`,`weekday-${ge}`,`weekday-position-${ne}`,`weekday-ordinal-${w}`,`weekday-ordinal-from-end-${$}`,`week-${S}`,`week-from-end-${I}`,{"is-today":Ee,"is-first-day":He,"is-last-day":de,"in-month":m,"in-prev-month":g,"in-next-month":_,"on-top":Me,"on-bottom":De,"on-left":ze,"on-right":Ue}]}),m&&de?(m=!1,_=!0,x=1,C=d,w=1,$=Math.floor((d-x)/Ks+1),S=1,I=s.numWeeks,P=s.month,L=s.year):(x++,C--,w=Math.floor((x-1)/Ks+1),$=Math.floor((d-x)/Ks+1))}S++,I--}return r}function Ene(e,t,s,n){const r=e.reduce((i,o,l)=>{const u=Math.floor(l/7);let d=i[u];return d||(d={id:`week-${u+1}`,title:"",week:o.week,weekPosition:o.weekPosition,weeknumber:o.weeknumber,isoWeeknumber:o.isoWeeknumber,weeknumberDisplay:t?o.weeknumber:s?o.isoWeeknumber:void 0,days:[]},i[u]=d),d.days.push(o),i},Array(e.length/Ks));return r.forEach(i=>{const o=i.days[0],l=i.days[i.days.length-1];o.month===l.month?i.title=`${n.formatDate(o.date,"MMMM YYYY")}`:o.year===l.year?i.title=`${n.formatDate(o.date,"MMM")} - ${n.formatDate(l.date,"MMM YYYY")}`:i.title=`${n.formatDate(o.date,"MMM YYYY")} - ${n.formatDate(l.date,"MMM YYYY")}`}),r}function Lne(e,t){return e.days.map(s=>({label:t.formatDate(s.date,t.masks.weekdays),weekday:s.weekday}))}function Rne(e,t){return`${t}.${ns(e,2)}`}function _w(e,t,s){return mw(s.getDateParts(s.toDate(e)),Pne[t])}function vw({day:e,week:t,month:s,year:n},r,i,o){if(i==="daily"&&e){const l=new Date(n,s-1,e),u=ln(l,r);return{day:u.getDate(),month:u.getMonth()+1,year:u.getFullYear()}}else if(i==="weekly"&&t){const u=o.getMonthParts(s,n).firstDayOfMonth,d=ln(u,(t-1+r)*7),f=o.getDateParts(d);return{week:f.week,month:f.month,year:f.year}}else{const l=new Date(n,s-1,1),u=P1(l,r);return{month:u.getMonth()+1,year:u.getFullYear()}}}function Hr(e){return e!=null&&e.month!=null&&e.year!=null}function Xh(e,t){return!Hr(e)||!Hr(t)?!1:(e=e,t=t,e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:e.day&&t.day&&e.day!==t.day?e.day<t.day:!1)}function D1(e,t){return!Hr(e)||!Hr(t)?!1:(e=e,t=t,e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:e.day&&t.day&&e.day!==t.day?e.day>t.day:!1)}function Mne(e,t,s){return(e||!1)&&!Xh(e,t)&&!D1(e,s)}function One(e,t){return!e&&t||e&&!t?!1:!e&&!t?!0:(e=e,t=t,e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day)}function Fne(e,t,s,n){if(!Hr(e)||!Hr(t))return[];const r=[];for(;!D1(e,t);)r.push(e),e=vw(e,1,s,n);return r}function bw(e){const{day:t,week:s,month:n,year:r}=e;let i=`${r}-${ns(n,2)}`;return s&&(i=`${i}-w${s}`),t&&(i=`${i}-${ns(t,2)}`),i}function Nne(e,t){const{month:s,year:n,showWeeknumbers:r,showIsoWeeknumbers:i}=e,o=new Date(n,s-1,15),l=t.getMonthParts(s,n),u=t.getPrevMonthParts(s,n),d=t.getNextMonthParts(s,n),f=Dne({monthComps:l,prevMonthComps:u,nextMonthComps:d},t),h=Ene(f,r,i,t),g=Lne(h[0],t);return{id:bw(e),month:s,year:n,monthTitle:t.formatDate(o,t.masks.title),shortMonthLabel:t.formatDate(o,"MMM"),monthLabel:t.formatDate(o,"MMMM"),shortYearLabel:n.toString().substring(2),yearLabel:n.toString(),monthComps:l,prevMonthComps:u,nextMonthComps:d,days:f,weeks:h,weekdays:g}}function Bne(e,t){const{day:s,week:n,view:r,trimWeeks:i}=e,o={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(r){case"daily":{let l=o.days.find(d=>d.inMonth);s?l=o.days.find(d=>d.day===s&&d.inMonth)||l:n&&(l=o.days.find(d=>d.week===n&&d.inMonth));const u=o.weeks[l.week-1];o.viewWeeks=[u],o.viewDays=[l],o.week=l.week,o.weekTitle=u.title,o.day=l.day,o.dayTitle=l.ariaLabel,o.title=o.dayTitle;break}case"weekly":{o.week=n||1;const l=o.weeks[o.week-1];o.viewWeeks=[l],o.viewDays=l.days,o.weekTitle=l.title,o.title=o.weekTitle;break}default:{o.title=o.monthTitle,o.viewWeeks=o.weeks.slice(0,i?o.monthComps.numWeeks:void 0),o.viewDays=o.days;break}}return o}class y4{constructor(t,s,n){pt(this,"keys",[]),pt(this,"store",{}),this.size=t,this.createKey=s,this.createItem=n}get(...t){const s=this.createKey(...t);return this.store[s]}getOrSet(...t){const s=this.createKey(...t);if(this.store[s])return this.store[s];const n=this.createItem(...t);if(this.keys.length>=this.size){const r=this.keys.shift();r!=null&&delete this.store[r]}return this.keys.push(s),this.store[s]=n,n}}class ol{constructor(t,s=new E1){pt(this,"order"),pt(this,"locale"),pt(this,"start",null),pt(this,"end",null),pt(this,"repeat",null);var n;this.locale=s;const{start:r,end:i,span:o,order:l,repeat:u}=t;il(r)&&(this.start=s.getDateParts(r)),il(i)?this.end=s.getDateParts(i):this.start!=null&&o&&(this.end=s.getDateParts(ln(this.start.date,o-1))),this.order=l??0,u&&(this.repeat=new L1({from:(n=this.start)==null?void 0:n.date,...u},{locale:this.locale}))}static fromMany(t,s){return(Xn(t)?t:[t]).filter(n=>n).map(n=>ol.from(n,s))}static from(t,s){if(t instanceof ol)return t;const n={start:null,end:null};
8return t!=null&&(Xn(t)?(n.start=t[0]??null,n.end=t[1]??null):Ei(t)?Object.assign(n,t):(n.start=t,n.end=t)),n.start!=null&&(n.start=new Date(n.start)),n.end!=null&&(n.end=new Date(n.end)),new ol(n,s)}get opts(){const{order:t,locale:s}=this;return{order:t,locale:s}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:t,end:s}=this;return t&&s&&t.year===s.year&&t.month===s.month&&t.day===s.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return this.start==null||this.end==null?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(t){var s,n;return((s=this.start)==null?void 0:s.dayIndex)===t.dayIndex||!!((n=this.repeat)!=null&&n.passes(t))}intersectsDay(t){return this.intersectsDayRange(t,t)}intersectsRange(t){var s,n;return this.intersectsDayRange(((s=t.start)==null?void 0:s.dayIndex)??-1/0,((n=t.end)==null?void 0:n.dayIndex)??1/0)}intersectsDayRange(t,s){return!(this.start&&this.start.dayIndex>s||this.end&&this.end.dayIndex<t)}}class Vne{constructor(){pt(this,"records",{})}render(t,s,n){var r,i,o,l;let u=null;const d=n[0].dayIndex,f=n[n.length-1].dayIndex;
8return s.hasRepeat?n.forEach(h=>{var g,m;if(s.startsOnDay(h)){const _=s.daySpan<1/0?s.daySpan:1;u={startDay:h.dayIndex,startTime:((g=s.start)==null?void 0:g.time)??0,endDay:h.dayIndex+_-1,endTime:((m=s.end)==null?void 0:m.time)??Hd},this.getRangeRecords(t).push(u)}}):s.intersectsDayRange(d,f)&&(u={startDay:((r=s.start)==null?void 0:r.dayIndex)??-1/0,startTime:((i=s.start)==null?void 0:i.time)??-1/0,endDay:((o=s.end)==null?void 0:o.dayIndex)??1/0,endTime:((l=s.end)==null?void 0:l.time)??1/0},this.getRangeRecords(t).push(u)),u}getRangeRecords(t){let s=this.records[t.key];return s||(s={ranges:[],data:t},this.records[t.key]=s),s.ranges}getCell(t,s){return this.getCells(s).find(i=>i.data.key===t)}cellExists(t,s){const n=this.records[t];return n==null?!1:n.ranges.some(r=>r.startDay<=s&&r.endDay>=s)}getCells(t){const s=Object.values(this.records),n=[],{dayIndex:r}=t;return s.forEach(({data:i,ranges:o})=>{o.filter(l=>l.startDay<=r&&l.endDay>=r).forEach(l=>{const u=r===l.startDay,d=r===l.endDay,f=u?l.startTime:0,h=new Date(t.startDate.getTime()+f),g=d?l.endTime:Hd,m=new Date(t.endDate.getTime()+g),_=f===0&&g===Hd,v=i.order||0;n.push({...l,data:i,onStart:u,onEnd:d,startTime:f,startDate:h,endTime:g,endDate:m,allDay:_,order:v})})}),n.sort((i,o)=>i.order-o.order),n}}const Li={ar:{dow:7,L:"D/âM/âYYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYYå¹´MæDæ¥"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"}
8,pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Li.en=Li["en-US"];Li.es=Li["es-ES"];Li.no=Li.nb;Li.zh=Li["zh-CN"];const Hne=Object.entries(Li).reduce((e,[t,{dow:s,L:n}])=>(e[t]={id:t,firstDayOfWeek:s,masks:{L:n}},e),{}),qne="MMMM YYYY",jne="W",Une="MMM",zne="h A",Wne=["L","YYYY-MM-DD","YYYY/MM/DD"],Gne=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],Yne=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],Kne=["h:mm A"],Qne=["HH:mm"],Xne="WWW, MMM D, YYYY",Zne=["L","YYYY-MM-DD","YYYY/MM/DD"],Jne="iso",ere="YYYY-MM-DDTHH:mm:ss.SSSZ",tre={title:qne,weekdays:jne,navMonths:Une,hours:zne,input:Wne,inputDateTime:Gne,inputDateTime24hr:Yne,inputTime:Kne,inputTime24hr:Qne,dayPopover:Xne,data:Zne,model:Jne,iso:ere},sre=300,nre=60,rre=80,ire={maxSwipeTime:sre,minHorizontalSwipeDistance:nre,maxVerticalSwipeDistance:rre},ore={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:ire,masks:tre,locales:Hne,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},al=Ws(ore),are=A(()=>Iee(al.locales,e=>(e.masks=wl(e.masks,al.masks),e))),go=e=>typeof window<"u"&&pw(window.__vcalendar__,e)?zo(window.__vcalendar__,e):zo(al,e),lre=(e,t)=>(e.config.globalProperties.$VCalendar=al,Object.assign(al,wl(t,al))),cre=12,ure=5;function dre(e,t){const s=new Intl.DateTimeFormat().resolvedOptions().locale;let n;Vr(e)?n=e:pw(e,"id")&&(n=e.id),n=(n||s).toLowerCase();const r=Object.keys(t),i=u=>r.find(d=>d.toLowerCase()===u);n=i(n)||i(n.substring(0,2))||s;const o={...t["en-IE"],...t[n],id:n,monthCacheSize:cre,pageCacheSize:ure};return Ei(e)?wl(e,o):o}class E1{constructor(t=void 0,s){pt(this,"id"),pt(this,"daysInWeek"),pt(this,"firstDayOfWeek"),pt(this,"masks"),pt(this,"timezone"),pt(this,"hourLabels"),pt(this,"dayNames"),pt(this,"dayNamesShort"),pt(this,"dayNamesShorter"),pt(this,"dayNamesNarrow"),pt(this,"monthNames"),pt(this,"monthNamesShort"),pt(this,"relativeTimeNames"),pt(this,"amPm",["am","pm"]),pt(this,"monthCache"),pt(this,"pageCache");const{id:n,firstDayOfWeek:r,masks:i,monthCacheSize:o,pageCacheSize:l}=dre(t,are.value);this.monthCache=new y4(o,Lre,Rre),this.pageCache=new y4(l,bw,Nne),this.id=n,this.daysInWeek=Ks,this.firstDayOfWeek=zse(r,1,Ks),this.masks=i,this.timezone=s||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=yp("long",this.id),this.dayNamesShort=yp("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(u=>u.substring(0,2)),this.dayNamesNarrow=yp("narrow",this.id),this.monthNames=w4("long",this.id),this.monthNamesShort=w4("short",this.id),this.relativeTimeNames=Fre(this.id
8)}formatDate(t,s){return qre(t,s,this)}parseDate(t,s){return C4(t,s,this)}toDate(t,s={}){const n=new Date(NaN);let r=n;const{fillDate:i,mask:o,patch:l,rules:u}=s;if(_r(t)?(s.type="number",r=new Date(+t)):Vr(t)?(s.type="string",r=t?C4(t,o||"iso",this):n):il(t)?(s.type="date",r=new Date(t.getTime())):G2(t)&&(s.type="object",r=this.getDateFromParts(t)),r&&(l||u)){let d=this.getDateParts(r);if(l&&i!=null){const f=this.getDateParts(this.toDate(i));d=this.getDateParts(this.toDate({...f,...mw(d,wre[l])}))}u&&(d=Hre(d,u)),r=this.getDateFromParts(d)}return r||n}toDateOrNull(t,s={}){const n=this.toDate(t,s);return isNaN(n.getTime())?null:n}fromDate(t,{type:s,mask:n}={}){switch(s){case"number":return t?t.getTime():NaN;case"string":return t?this.formatDate(t,n||"iso"):"";case"object":return t?this.getDateParts(t):null;default:return t?new Date(t):null}}range(t){return ol.from(t,this)}ranges(t){return ol.fromMany(t,this)}getDateParts(t){return Ere(t,this)}getDateFromParts(t){return Dw(t,this.timezone)}getDateFromParams(t,s,n,r,i,o,l){return this.getDateFromParts({year:t,month:s,day:n,hours:r,minutes:i,seconds:o,milliseconds:l})}getPage(t){const s=this.pageCache.getOrSet(t,this);return Bne(t,s)}getMonthParts(t,s){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(t,s,n)}getThisMonthParts(){const t=new Date;return this.getMonthParts(t.getMonth()+1,t.getFullYear())}getPrevMonthParts(t,s){return t===1?this.getMonthParts(12,s-1):this.getMonthParts(t-1,s)}getNextMonthParts(t,s){return t===12?this.getMonthParts(1,s+1):this.getMonthParts(t+1,s)}getHourLabels(){return Ore().map(t=>this.formatDate(t,this.masks.hours))}getDayId(t){return this.formatDate(t,"YYYY-MM-DD")}}var Ha=(e=>(e.Any="any",e.All="all",e))(Ha||{}),xw=(e=>(e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years",e))(xw||{}),kw=(e=>(e.Days="days",e.Weekdays="weekdays",e.Weeks="weeks",e.Months="months",e.Years="years",e))(kw||{}),ww=(e=>(e.OrdinalWeekdays="ordinalWeekdays",e))(ww||{});class fre{constructor(t,s,n){pt(this,"validated",!0),this.type=t,this.interval=s,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(t){if(!this.validated)return!0;const{date:s}=t;switch(this.type){case"days":return Y2(this.from.date,s)%this.interval===0;case"weeks":return Pre(this.from.date,s)%this.interval===0;case"months":return Dre(this.from.date,s)%this.interval===0;case"years":return Pw(this.from.date,s)%this.interval===0;default:return!1}}}class ql{constructor(t,s,n,r){pt(this,"components",[]),this.type=t,this.validator=n,this.getter=r,this.components=this.normalizeComponents(s)}static create(t,s){switch(t){case"days":return new pre(s);case"weekdays":return new hre(s);case"weeks":return new mre(s);case"months":return new gre(s);case"years":return new yre(s)}}normalizeComponents(t){if(this.validator(t))return[t];if(!Xn(t))return[];const s=[];return t.forEach(n=>{if(!this.validator(n)){console.error(`Component value ${n}
8 in invalid for "${this.type}" rule. This rule will be skipped.`);return}s.push(n)}),s}passes(t){return this.getter(t).some(r=>this.components.includes(r))}}class pre extends ql{constructor(t){super("days",t,bre,({day:s,dayFromEnd:n})=>[s,-n])}}class hre extends ql{constructor(t){super("weekdays",t,Zh,({weekday:s})=>[s])}}class mre extends ql{constructor(t){super("weeks",t,xre,({week:s,weekFromEnd:n})=>[s,-n])}}class gre extends ql{constructor(t){super("months",t,kre,({month:s})=>[s])}}class yre extends ql{constructor(t){super("years",t,_r,({year:s})=>[s])}}class _re{constructor(t,s){pt(this,"components"),this.type=t,this.components=this.normalizeComponents(s)}normalizeArrayConfig(t){const s=[];return t.forEach((n,r)=>{if(_r(n)){if(r===0)return;if(!_4(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Zh(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}s.push([t[0],n])}else Xn(n)&&s.push(...this.normalizeArrayConfig(n))}),s}normalizeComponents(t){const s=[];return t.forEach((n,r)=>{if(_r(n)){if(r===0)return;if(!_4(t[0])){console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);return}if(!Zh(n)){console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);return}s.push([t[0],n])}else Xn(n)&&s.push(...this.normalizeArrayConfig(n))}),s}passes(t){const{weekday:s,weekdayOrdinal:n,weekdayOrdinalFromEnd:r}=t;return this.components.some(([i,o])=>(i===n||i===-r)&&s===o)}}class vre{constructor(t){pt(this,"type","function"),pt(this,"validated",!0),this.fn=t,ua(t)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(t){return this.validated?this.fn(t):!0}}class L1{constructor(t,s={},n){pt(this,"validated",!0),pt(this,"config"),pt(this,"type",Ha.Any),pt(this,"from"),pt(this,"until"),pt(this,"rules",[]),pt(this,"locale",new E1),this.parent=n,s.locale&&(this.locale=s.locale),this.config=t,ua(t)?(this.type=Ha.All,this.rules=[new vre(t)]):Xn(t)?(this.type=Ha.Any,this.rules=t.map(r=>new L1(r,s,this))):Ei(t)?(this.type=Ha.All,this.from=t.from?this.locale.getDateParts(t.from):n?.from,this.until=t.until?this.locale.getDateParts(t.until):n?.until,this.rules=this.getObjectRules(t)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(t){const s=[];if(t.every&&(Vr(t.every)&&(t.every=[1,`${t.every}s`]),Xn(t.every))){const[n=1,r=xw.Days]=t.every;s.push(new fre(r,n,this.from))}
8return Object.values(kw).forEach(n=>{n in t&&s.push(ql.create(n,t[n]))}),Object.values(ww).forEach(n=>{n in t&&s.push(new _re(n,t[n]))}),t.on!=null&&(Xn(t.on)||(t.on=[t.on]),s.push(new L1(t.on,{locale:this.locale},this.parent))),s}passes(t){return this.validated?this.from&&t.dayIndex<=this.from.dayIndex||this.until&&t.dayIndex>=this.until.dayIndex?!1:this.type===Ha.Any?this.rules.some(s=>s.passes(t)):this.rules.every(s=>s.passes(t)):!0}}function bre(e){return _r(e)?e>=1&&e<=31:!1}function Zh(e){return _r(e)?e>=1&&e<=7:!1}function xre(e){return _r(e)?e>=-6&&e<=-1||e>=1&&e<=6:!1}function kre(e){return _r(e)?e>=1&&e<=12:!1}function _4(e){return!(!_r(e)||e<-5||e>5||e===0)}const wre={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},Ks=7,Cre=6,Cw=1e3,$w=Cw*60,Sw=$w*60,Hd=Sw*24,$re=[31,28,31,30,31,30,31,31,30,31,30,31],Sre=["L","iso"],Dc={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},Aw=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Are=/\[([^]*?)\]/gm,v4={D(e){return e.day},DD(e){return ns(e.day,2)},d(e){return e.weekday-1},dd(e){return ns(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return ns(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return ns(e.year,4)},h(e){return e.hours%12||12},hh(e){return ns(e.hours%12||12,2)},H(e){return e.hours},HH(e){return ns(e.hours,2)},m(e){return e.minutes},mm(e){return ns(e.minutes,2)},s(e){return e.seconds},ss(e){return ns(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return ns(Math.round(e.milliseconds/10),2)},SSS(e){return ns(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ns(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ns(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${ns(Math.floor(Math.abs(t)/60),2)}:${ns(Math.abs(t)%60,2)}`}},zi=/\d\d?/,Ire=/\d{3}/,Tre=/\d{4}/,yc=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,b4=()=>{},x4=e=>(t,s,n)=>{const r=n[e].indexOf(s.charAt(0).toUpperCase()+s.substr(1).toLowerCase());~r&&(t.month=r)},os={D:[zi,(e,t)=>{e.day=t}],Do:[new RegExp(zi.source+yc.source),(e,t)=>{e.day=parseInt(t,10)}],d:[zi,b4],W:[yc,b4],M:[zi,(e,t)=>{e.month=t-1}],MMM:[yc,x4("monthNamesShort")],MMMM:[yc,x4("monthNames")],YY:[zi,(e,t)=>{const n=+new Date().getFullYear().toString().substr(0,2);e.year=+`${t>68?n-1:n}${t}`}],YYYY:[Tre,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=t*100}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=t*10}],SSS:[Ire,(e,t)=>{e.milliseconds=t}],h:[zi,(e,t)=>{e.hours=t}],m:[zi,(e,t)=>{e.minutes=t}],s:[zi,(e,t)=>{e.seconds=t}],a:[yc,(e,t,s)=>{const n=t.toLowerCase();n===s.amPm[0]?e.isPm=!1:n===s.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{t==="Z"&&(t="+00:00");const s=`${t}`.match(/([+-]|\d\d)/gi);if(s){const n=+s[1]*60+parseInt(s[2],10);e.timezoneOffset=s[0]==="+"?n:-n}}]};os.DD=os.D;os.dd=os.d;os.WWWW=os.WWW=os.WW=os.W;os.MM=os.M;os.mm=os.m;os.hh=os.H=os.HH=os.h;os.ss=os.s;os.A=os.a;os.ZZZZ=os.ZZZ=os.ZZ=os.Z;function Iw(e,t){return(xi(e)&&e||[Vr(e)&&e||"YYYY-MM-DD"]).map(s=>Sre.reduce((n,r)=>n.replace(r,t.masks[r]||""),s))}function G2(e){return Ei(e)&&"year"in e&&"month"in e&&"day"in e}function k4(e,t=1){const s=e.getDay()+1,n=s>=t?t-s:-(7-(t-s));return ln(e,n)}function Tw(e,t,s){const n=Date.UTC(e,t-1,s);return Y2(new Date(0),new Date(n))}function Y2(e,t){return Math.round((t.getTime()-e.getTime())/Hd)}function Pre(e,t){return Math.ceil(Y2(k4(e),k4(t))/7)}function Pw(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function Dre(e,t){return Pw(e,t)*12+(t.getMonth()-e.getMonth())}function Dw(e,t=""){const s=new Date,{year:n=s.getFullYear(),month:r=s.getMonth()+1,day:i=s.getDate(),hours:o=0,minutes:l=0,seconds:u=0,milliseconds:d=0}=e;if(t){const f=`${ns(n,4)}-${ns(r,2)}-${ns(i,2)}T${ns(o,2)}:${ns(l,2)}:${ns(u,2)}.${ns(d,3)}`;return lne(f,{timeZone:t})}return new Date(n,r-1,i,o,l,u,d)}function Ere(e,t){let s=new Date(e.getTime());
8t.timezone&&(s=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),s.setMilliseconds(e.getMilliseconds()));const n=s.getMilliseconds(),r=s.getSeconds(),i=s.getMinutes(),o=s.getHours(),l=n+r*Cw+i*$w+o*Sw,u=s.getMonth()+1,d=s.getFullYear(),f=t.getMonthParts(u,d),h=s.getDate(),g=f.numDays-h+1,m=s.getDay()+1,_=Math.floor((h-1)/7+1),v=Math.floor((f.numDays-h)/7+1),k=Math.ceil((h+Math.abs(f.firstWeekday-f.firstDayOfWeek))/7),x=f.numWeeks-k+1,C=f.weeknumbers[k],w=Tw(d,u,h);return{milliseconds:n,seconds:r,minutes:i,hours:o,time:l,day:h,dayFromEnd:g,weekday:m,weekdayOrdinal:_,weekdayOrdinalFromEnd:v,week:k,weekFromEnd:x,weeknumber:C,month:u,year:d,date:s,dateTime:s.getTime(),dayIndex:w,timezoneOffset:0,isValid:!0}}function Lre(e,t,s){return`${t}-${e}-${s}`}function Rre(e,t,s){const n=t%4===0&&t%100!==0||t%400===0,r=new Date(t,e-1,1),i=r.getDay()+1,o=e===2&&n?29:$re[e-1],l=s-1,u=xne(r,{weekStartsOn:l}),d=[],f=[];for(let h=0;h<u;h++){const g=ln(r,h*7);d.push($ne(g,{weekStartsOn:l})),f.push(Tne(g))}return{firstDayOfWeek:s,firstDayOfMonth:r,inLeapYear:n,firstWeekday:i,numDays:o,numWeeks:u,month:e,year:t,weeknumbers:d,isoWeeknumbers:f}}function Mre(){const e=[];for(let r=0;r<Ks;r++)e.push(Dw({year:2020,month:1,day:5+r,hours:12}));return e}function yp(e,t=void 0){const s=new Intl.DateTimeFormat(t,{weekday:e});return Mre().map(n=>s.format(n))}function Ore(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function Fre(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],s=new Intl.RelativeTimeFormat(e);return t.reduce((n,r)=>{const i=s.formatToParts(100,r);return n[r]=i[1].unit,n},{})}function Ew(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function w4(e,t=void 0){const s=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return Ew().map(n=>s.format(n))}function Nre(e,t,s){return _r(t)?t===e:Xn(t)?t.includes(e):ua(t)?t(e,s):!(t.min!=null&&t.min>e||t.max!=null&&t.max<e||t.interval!=null&&e%t.interval!==0)}function Ec(e,t,s){const n=[],[r,i,o]=t;for(let l=r;l<=i;l++)(s==null||Nre(l,s,e))&&n.push({value:l,label:ns(l,o)});return n}function Bre(e,t){return{milliseconds:Ec(e,Dc.milliseconds,t.milliseconds),seconds:Ec(e,Dc.seconds,t.seconds),minutes:Ec(e,Dc.minutes,t.minutes),hours:Ec(e,Dc.hours,t.hours)}}function Vre(e,t,s,n){const i=Ec(e,t,n).reduce((o,l)=>{if(l.disabled)return o;if(isNaN(o))return l.value;const u=Math.abs(o-s);return Math.abs(l.value-s)<u?l.value:o},NaN);return isNaN(i)?s:i}function Hre(e,t){const s={...e};return Object.entries(t).forEach(([n,r])=>{const i=Dc[n],o=e[n];s[n]=Vre(e,i,o,r)}),s}function C4(e,t,s){return Iw(t,s).map(r=>{if(typeof r!="string")throw new Error("Invalid mask");let i=e;if(i.length>1e3)return!1;let o=!0;const l={};if(r.replace(Aw,f=>{if(os[f]){const h=os[f],g=i.search(h[0]);~g?i.replace(h[0],m=>(h[1](l,m,s),i=i.substr(g+m.length),m)):o=!1}return os[f]?"":f.slice(1,f.length-1)}),!o)return!1;const u=new Date;l.hours!=null&&(l.isPm===!0&&+l.hours!=12?l.hours=+l.hours+12:l.isPm===!1&&+l.hours==12&&(l.hours=0));let d;return l.timezoneOffset!=null?(l.minutes=+(l.minutes||0)-+l.timezoneOffset,d=new Date(Date.UTC(l.year||u.getFullYear(),l.month||0,l.day||1,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0))):d=s.getDateFromParts({year:l.year||u.getFullYear(),month:(l.month||0)+1,day:l.day||1,hours:l.hours||0,minutes:l.minutes||0,seconds:l.seconds||0,milliseconds:l.milliseconds||0}),d}).find(r=>r)||new Date(e)}function qre(e,t,s){if(e==null)return"";let n=Iw(t,s)[0];/Z$/.test(n)&&(s.timezone="utc");const r=[];n=n.replace(Are,(o,l)=>(r.push(l),"??"));const i=s.getDateParts(e);return n=n.replace(Aw,o=>o in v4?v4[o](i,s):o.slice(1,o.length-1)),n.replace(/\?\?/g,()=>r.shift())}let jre=0;class Lw{constructor(t,s,n){pt(this,"key",""),pt(this,"hashcode",""),pt(this,"highlight",null),pt(this,"content",null),pt(this,"dot",null),pt(this,"bar",null),pt(this,"event",null),pt(this,"popover",null),pt(this,"customData",null),pt(this,"ranges"),pt(this,"hasRanges",!1),pt(this,"order",0),pt(this,"pinPage",!1),pt(this,"maxRepeatSpan",0),pt(this,"locale");const{dates:r}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},t);this.key||(this.key=++jre),this.locale=n,s.normalizeGlyphs(this),this.ranges=n.ranges(r??[]),this.hasRanges=!!xi(this.ranges),this.maxRepeatSpan=this.ranges.filter(i=>i.hasRepeat).map(i=>i.daySpan).reduce((i,o)=>Math.max(i,o),0)}intersectsRange({start:t,end:s}){if(t==null||s==null)return!1;const n=this.ranges.filter(o=>!o.hasRepeat);for(const o of n)if(o.intersectsDayRange(t.dayIndex,s.dayIndex))return!0;const r=this.ranges.filter(o=>o.hasRepeat);if(!r.length)return!1;let i=t;for(this.maxRepeatSpan>1&&(i=this.locale.getDateParts(ln(i.date,-this.maxRepeatSpan)));i.dayIndex<=s.dayIndex;){for(const o of r)if(o.startsOnDay(i))return!0;
8i=this.locale.getDateParts(ln(i.date,1))}return!1}}function Jh(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function cu(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function Rw(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function Mw(e){const{visibility:t}=e,s=t==="click",n=t==="hover",r=t==="hover-focus",i=t==="focus";e.autoHide=!s;let o=!1,l=!1;const u=_=>{s&&(Rw({...e,target:e.target||_.currentTarget}),_.stopPropagation())},d=_=>{o||(o=!0,(n||r)&&Jh({...e,target:e.target||_.currentTarget}))},f=()=>{o&&(o=!1,(n||r&&!l)&&cu(e))},h=_=>{l||(l=!0,(i||r)&&Jh({...e,target:e.target||_.currentTarget}))},g=_=>{l&&!Bd(_.currentTarget,_.relatedTarget)&&(l=!1,(i||r&&!o)&&cu(e))},m={};switch(e.visibility){case"click":m.click=u;break;case"hover":m.mousemove=d,m.mouseleave=f;break;case"focus":m.focusin=h,m.focusout=g;break;case"hover-focus":m.mousemove=d,m.mouseleave=f,m.focusin=h,m.focusout=g;break}return m}const $4=e=>{const t=S1(e);if(t==null)return;const s=t.popoverHandlers;!s||!s.length||(s.forEach(n=>n()),delete t.popoverHandlers)},S4=(e,t)=>{const s=S1(e);if(s==null)return;const n=[],r=Mw(t);Object.entries(r).forEach(([i,o])=>{n.push(so(s,i,o))}),s.popoverHandlers=n},Ow={mounted(e,t){const{value:s}=t;s&&S4(e,s)},updated(e,t){const{oldValue:s,value:n}=t,r=s?.visibility,i=n?.visibility;r!==i&&(r&&($4(e),i||cu(s)),i&&S4(e,n))},unmounted(e){$4(e)}},Ure=(e,t,{maxSwipeTime:s,minHorizontalSwipeDistance:n,maxVerticalSwipeDistance:r})=>{if(!e||!e.addEventListener||!ua(t))return null;let i=0,o=0,l=null,u=!1;function d(h){const g=h.changedTouches[0];i=g.screenX,o=g.screenY,l=new Date().getTime(),u=!0}function f(h){if(!u||!l)return;u=!1;const g=h.changedTouches[0],m=g.screenX-i,_=g.screenY-o;if(new Date().getTime()-l<s&&Math.abs(m)>=n&&Math.abs(_)<=r){const k={toLeft:!1,toRight:!1};m<0?k.toLeft=!0:k.toRight=!0,t(k)}}return so(e,"touchstart",d,{passive:!0}),so(e,"touchend",f,{passive:!0}),()=>{to(e,"touchstart",d),to(e,"touchend",f)}},qd={},zre=(e,t=10)=>{qd[e]=Date.now()+t},Wre=(e,t)=>{if(e in qd){const s=qd[e];if(Date.now()<s)return;delete qd[e]}t()};function Fw(){return typeof window<"u"}function Gre(e){return Fw()&&e in window}function Yre(e){const t=X(!1),s=A(()=>t.value?"dark":"light");let n,r;function i(m){t.value=m.matches}function o(){Gre("matchMedia")&&(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",i),t.value=n.matches)}function l(){const{selector:m=":root",darkClass:_="dark"}=e.value,v=document.querySelector(m);t.value=v.classList.contains(_)}function u(m){const{selector:_=":root",darkClass:v="dark"}=m;if(Fw()&&_&&v){const k=document.querySelector(_);k&&(r=new MutationObserver(l),r.observe(k,{attributes:!0,attributeFilter:["class"]}),t.value=k.classList.contains(v))}}function d(){h();const m=typeof e.value;m==="string"&&e.value.toLowerCase()==="system"?o():m==="object"?u(e.value):t.value=!!e.value}const f=Se(()=>e.value,()=>d(),{immediate:!0});function h(){n&&(n.removeEventListener("change",i),n=void 0),r&&(r.disconnect(),r=void 0)}function g(){h(),f()}return wn(()=>g()),{isDark:t,displayMode:s,cleanup:g}}const Kre=["base","start","end","startEnd"],Qre=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Xre={base:{},start:{},end:{}};function K2(e,t,s=Xre){let n=e,r={};t===!0||Vr(t)?(n=Vr(t)?t:n,r={...s}):Ei(t)&&(o4(t,Kre)?r={...t}:r={base:{...t},start:{...t},end:{...t}});const i=wl(r,{start:r.startEnd,end:r.startEnd},s);return Object.entries(i).forEach(([o,l])=>{let u=n;l===!0||Vr(l)?(u=Vr(l)?l:u,i[o]={color:u}):Ei(l)&&(o4(l,Qre)?i[o]={...l}:i[o]={}),wl(i[o],{color:u})}),i}class Zre{constructor(){pt(this,"type","highlight")}normalizeConfig(t,s){return K2(t,s,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(t){t.highlights=[],t.content||(t.content=[])}render({data:t,onStart:s,onEnd:n},r){const{key:i,highlight:o}=t;if(!o)return;const{highlights:l}=r,{base:u,start:d,end:f}=o;s&&n?l.push({...d,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}
8`,d.contentClass]}):s?(l.push({...u,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${u.fillMode}`,u.class]}),l.push({...d,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${d.color}`,class:[`vc-highlight vc-highlight-bg-${d.fillMode}`,d.class],contentClass:[`vc-attr vc-highlight-content-${d.fillMode} vc-${d.color}`,d.contentClass]})):n?(l.push({...u,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${u.fillMode}`,u.class]}),l.push({...f,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${f.color}`,class:[`vc-highlight vc-highlight-bg-${f.fillMode}`,f.class],contentClass:[`vc-attr vc-highlight-content-${f.fillMode} vc-${f.color}`,f.contentClass]})):l.push({...u,key:`${i}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${u.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${u.fillMode}`,u.class],contentClass:[`vc-attr vc-highlight-content-${u.fillMode} vc-${u.color}`,u.contentClass]})}}class Q2{constructor(t,s){pt(this,"type",""),pt(this,"collectionType",""),this.type=t,this.collectionType=s}normalizeConfig(t,s){return K2(t,s)}prepareRender(t){t[this.collectionType]=[]}render({data:t,onStart:s,onEnd:n},r){const{key:i}=t,o=t[this.type];if(!i||!o)return;const l=r[this.collectionType],{base:u,start:d,end:f}=o;s?l.push({...d,key:i,class:[`vc-${this.type} vc-${this.type}-start vc-${d.color} vc-attr`,d.class]}):n?l.push({...f,key:i,class:[`vc-${this.type} vc-${this.type}-end vc-${f.color} vc-attr`,f.class]}):l.push({...u,key:i,class:[`vc-${this.type} vc-${this.type}-base vc-${u.color} vc-attr`,u.class]})}}class Jre extends Q2{constructor(){super("content","content")}normalizeConfig(t,s){return K2("base",s)}}class eie extends Q2{constructor(){super("dot","dots")}}class tie extends Q2{constructor(){super("bar","bars")}}class sie{constructor(t){pt(this,"color"),pt(this,"renderers",[new Jre,new Zre,new eie,new tie]),this.color=t}normalizeGlyphs(t){this.renderers.forEach(s=>{const n=s.type;t[n]!=null&&(t[n]=s.normalizeConfig(this.color,t[n]))})}prepareRender(t={}){return this.renderers.forEach(s=>{s.prepareRender(t)}),t}render(t,s){this.renderers.forEach(n=>{n.render(t,s)})}}const Nw=Symbol("__vc_base_context__"),Bw={color:{type:String,default:()=>go("color")},isDark:{type:[Boolean,String,Object],default:()=>go("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Vw(e){const t=A(()=>e.color??""),s=A(()=>e.isDark??!1),{displayMode:n}=Yre(s),r=A(()=>new sie(t.value)),i=A(()=>{if(e.locale instanceof E1)return e.locale;const g=Ei(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new E1(g,e.timezone)}),o=A(()=>i.value.masks),l=A(()=>e.minDate),u=A(()=>e.maxDate),d=A(()=>{const g=e.disabledDates?[...e.disabledDates]:[];return l.value!=null&&g.push({start:null,end:ln(i.value.toDate(l.value),-1)}),u.value!=null&&g.push({start:ln(i.value.toDate(u.value),1),end:null}),i.value.ranges(g)}),f=A(()=>new Lw({key:"disabled",dates:d.value,order:100},r.value,i.value)),h={color:t,isDark:s,displayMode:n,theme:r,locale:i,masks:o,minDate:l,maxDate:u,disabledDates:d,disabledAttribute:f};return ks(Nw,h),h}function nie(e){return ts(Nw,()=>Vw(e),!0)}function Hw(e){return`__vc_slot_${e}__`}function qw(e,t={}){Object.keys(e).forEach(s=>{ks(Hw(t[s]??s),e[s])})}function jw(e){return ts(Hw(e),null)}const rie={...Bw,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>go("titlePosition")},navVisibility:{type:String,default:()=>go("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},iie=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],Uw=Symbol("__vc_calendar_context__");function oie(e,{slots:t,emit:s}){const n=X(null),r=X(null),i=X(new Date().getDate()),o=X(!1),l=X(Symbol()),u=X(Symbol()),d=X(e.view
8),f=X([]),h=X("");let g=null,m=null;qw(t);const{theme:_,color:v,displayMode:k,locale:x,masks:C,minDate:w,maxDate:$,disabledAttribute:S,disabledDates:I}=nie(e),P=A(()=>e.rows*e.columns),L=A(()=>e.step||P.value),D=A(()=>fw(f.value)??null),R=A(()=>Ka(f.value)??null),F=A(()=>e.minPage||(w.value?ve(w.value):null)),N=A(()=>e.maxPage||($.value?ve($.value):null)),z=A(()=>e.navVisibility),me=A(()=>!!e.showWeeknumbers),ge=A(()=>!!e.showIsoWeeknumbers),fe=A(()=>d.value==="monthly"),te=A(()=>d.value==="weekly"),V=A(()=>d.value==="daily"),pe=()=>{o.value=!0,s("transition-start")},ye=()=>{o.value=!1,s("transition-end"),g&&(g.resolve(!0),g=null)},ne=(Le,ee,Pe=d.value)=>vw(Le,ee,Pe,x.value),ve=Le=>_w(Le,d.value,x.value),J=Le=>{!S.value||!De.value||(Le.isDisabled=De.value.cellExists(S.value.key,Le.dayIndex))},he=Le=>{Le.isFocusable=Le.inMonth&&Le.day===i.value},Ee=(Le,ee)=>{for(const Pe of Le)for(const Ge of Pe.days)if(ee(Ge)===!1)return},He=A(()=>f.value.reduce((Le,ee)=>(Le.push(...ee.viewDays),Le),[])),de=A(()=>{const Le=[];return(e.attributes||[]).forEach((ee,Pe)=>{!ee||!ee.dates||Le.push(new Lw({...ee,order:ee.order||0},_.value,x.value))}),S.value&&Le.push(S.value),Le}),Me=A(()=>xi(de.value)),De=A(()=>{const Le=new Vne;return de.value.forEach(ee=>{ee.ranges.forEach(Pe=>{Le.render(ee,Pe,He.value)})}),Le}),ze=A(()=>He.value.reduce((Le,ee)=>(Le[ee.dayIndex]={day:ee,cells:[]},Le[ee.dayIndex].cells.push(...De.value.getCells(ee)),Le),{})),Ue=(Le,ee)=>{const Pe=e.showWeeknumbers||e.showIsoWeeknumbers;return Pe==null?"":uee(Pe)?Pe?"left":"":Pe.startsWith("right")?ee>1?"right":Pe:Le>1?"left":Pe},ut=()=>{var Le,ee;if(!Me.value)return null;const Pe=de.value.find(qt=>qt.pinPage)||de.value[0];if(!Pe||!Pe.hasRanges)return null;const[Ge]=Pe.ranges,_t=((Le=Ge.start)==null?void 0:Le.date)||((ee=Ge.end)==null?void 0:ee.date);return _t?ve(_t):null},H=()=>{if(Hr(D.value))return D.value;const Le=ut();return Hr(Le)?Le:ve(new Date)},Y=(Le,ee={})=>{const{view:Pe=d.value,position:Ge=1,force:_t}=ee,qt=Ge>0?1-Ge:-(P.value+Ge);let Ht=ne(Le,qt,Pe),ps=ne(Ht,P.value-1,Pe);return _t||(Xh(Ht,F.value)?Ht=F.value:D1(ps,N.value)&&(Ht=ne(N.value,1-P.value)),ps=ne(Ht,P.value-1)),{fromPage:Ht,toPage:ps}},W=(Le,ee,Pe="")=>{if(Pe==="none"||Pe==="fade")return Pe;if(Le?.view!==ee?.view)return"fade";const Ge=D1(ee,Le),_t=Xh(ee,Le);return!Ge&&!_t?"fade":Pe==="slide-v"?_t?"slide-down":"slide-up":_t?"slide-right":"slide-left"},_e=(Le={})=>new Promise((ee,Pe)=>{const{position:Ge=1,force:_t=!1,transition:qt}=Le,Ht=Hr(Le.page)?Le.page:H(),{fromPage:ps}=Y(Ht,{position:Ge,force:_t}),ws=[];for(let gs=0;gs<P.value;gs++){const xs=ne(ps,gs),Zt=gs+1,Ns=Math.ceil(Zt/e.columns),en=e.rows-Ns+1,tn=Zt%e.columns||e.columns,Os=e.columns-tn+1,On=Ue(tn,Os);ws.push(x.value.getPage({...xs,view:d.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:Zt,row:Ns,rowFromEnd:en,column:tn,columnFromEnd:Os,showWeeknumbers:me.value,showIsoWeeknumbers:ge.value,weeknumberPosition:On}))}h.value=W(f.value[0],ws[0],qt),f.value=ws,h.value&&h.value!=="none"?g={resolve:ee,reject:Pe}:ee(!0)}),ae=Le=>{const ee=D.value??ve(new Date);return ne(ee,Le)},M=(Le,ee={})=>{const Pe=Hr(Le)?Le:ve(Le);return Object.assign(ee,Y(Pe,{...ee,force:!0})),Fne(ee.fromPage,ee.toPage,d.value,x.value).map(_t=>Mne(_t,F.value,N.value)).some(_t=>_t)},q=(Le,ee={})=>M(ae(Le),ee),re=A(()=>q(-L.value)),ce=A(()=>q(L.value)),ie=async(Le,ee={})=>!ee.force&&!M(Le,ee)?!1:(ee.fromPage&&!One(ee.fromPage,D.value)&&(cu({id:l.value,hideDelay:0}),ee.view&&(zre("view",10),d.value=ee.view),await _e({...ee,page:ee.fromPage,position:1,force:!0}),s("did-move",f.value)),!0),$e=(Le,ee={})=>ie(ae(Le),ee),se=()=>$e(-L.value),xe=()=>$e(L.value),Ve=Le=>{const ee=fe.value?".in-month":"",Pe=`.id-${x.value.getDayId(Le)}${ee}`,Ge=`${Pe}.vc-focusable, ${Pe} .vc-focusable`,_t=n.value;if(_t){const qt=_t.querySelector(Ge);if(qt)return qt.focus(),!0}return!1},Ze=async(Le,ee={})=>Ve(Le)?!0:(await ie(Le,ee),Ve(Le)),Je=(Le,ee)=>{i.value=Le.day,s("dayclick",Le,ee)},dt=(Le,ee)=>{s("daymouseenter",Le,ee)},ft=(Le,ee)=>{s("daymouseleave",Le,ee)},It=(Le,ee)=>{i.value=Le.day,r.value=Le,Le.isFocused=!0,s("dayfocusin",Le,ee)},Wt=(Le,ee)=>{r.value=null,Le.isFocused=!1,s("dayfocusout",Le,ee)},ss=(Le,ee)=>{s("daykeydown",Le,ee);const Pe=Le.noonDate;let Ge=null;switch(ee.key){case"ArrowLeft":{Ge=ln(Pe,-1);break}case"ArrowRight":{Ge=ln(Pe,1);break}case"ArrowUp":{Ge=ln(Pe,-7);break}case"ArrowDown":{Ge=ln(Pe,7);break}case"Home":{Ge=ln(Pe,-Le.weekdayPosition+1);break}case"End":{Ge=ln(Pe,Le.weekdayPositionFromEnd);break}case"PageUp":{ee.altKey?Ge=g4(Pe,-1):Ge=P1(Pe,-1);break}case"PageDown":{ee.altKey?Ge=g4(Pe,1):Ge=P1(Pe,1);break}}
8Ge&&(ee.preventDefault(),Ze(Ge).catch())},Ps=Le=>{const ee=r.value;ee!=null&&ss(ee,Le)},Ms=(Le,ee)=>{s("weeknumberclick",Le,ee)};_e({page:e.initialPage,position:e.initialPagePosition}),je(()=>{!e.disablePageSwipe&&n.value&&(m=Ure(n.value,({toLeft:Le=!1,toRight:ee=!1})=>{Le?xe():ee&&se()},go("touch")))}),wn(()=>{f.value=[],m&&m()}),Se(()=>x.value,()=>{_e()}),Se(()=>P.value,()=>_e()),Se(()=>e.view,()=>d.value=e.view),Se(()=>d.value,()=>{Wre("view",()=>{_e()}),s("update:view",d.value)}),Se(()=>i.value,()=>{Ee(f.value,Le=>he(Le))}),Pl(()=>{s("update:pages",f.value),Ee(f.value,Le=>{J(Le),he(Le)})});const Gt={emit:s,containerRef:n,focusedDay:r,inTransition:o,navPopoverId:l,dayPopoverId:u,view:d,pages:f,transitionName:h,theme:_,color:v,displayMode:k,locale:x,masks:C,attributes:de,disabledAttribute:S,disabledDates:I,attributeContext:De,days:He,dayCells:ze,count:P,step:L,firstPage:D,lastPage:R,canMovePrev:re,canMoveNext:ce,minPage:F,maxPage:N,isMonthly:fe,isWeekly:te,isDaily:V,navVisibility:z,showWeeknumbers:me,showIsoWeeknumbers:ge,getDateAddress:ve,canMove:M,canMoveBy:q,move:ie,moveBy:$e,movePrev:se,moveNext:xe,onTransitionBeforeEnter:pe,onTransitionAfterEnter:ye,tryFocusDate:Ve,focusDate:Ze,onKeydown:Ps,onDayKeydown:ss,onDayClick:Je,onDayMouseenter:dt,onDayMouseleave:ft,onDayFocusin:It,onDayFocusout:Wt,onWeeknumberClick:Ms};return ks(Uw,Gt),Gt}function fa(){const e=ts(Uw);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const aie=G({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let s;const n=X();let r=null,i=null;const o=Ws({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function l(ye){ye&&(o.direction=ye.split("-")[0])}function u({placement:ye,options:ne}){l(ye||ne?.placement)}const d=A(()=>({placement:o.placement,strategy:o.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:u},...o.modifiers||[]],onFirstUpdate:u})),f=A(()=>{const ye=o.direction==="left"||o.direction==="right";let ne="";if(o.placement){const ve=o.placement.split("-");ve.length>1&&(ne=ve[1])}return["start","top","left"].includes(ne)?ye?"top":"left":["end","bottom","right"].includes(ne)?ye?"bottom":"right":ye?"middle":"center"});function h(){i&&(i.destroy(),i=null)}function g(){lt(()=>{const ye=S1(o.target);!ye||!n.value||(i&&i.state.elements.reference!==ye&&h(),i?i.update():i=tz(ye,n.value,d.value))})}function m(ye){Object.assign(o,hw(ye,"force"))}function _(ye,ne){clearTimeout(s),ye>0?s=setTimeout(ne,ye):ne()}function v(ye){return!ye||!i?!1:S1(ye)===i.state.elements.reference}async function k(ye={}){o.force||(ye.force&&(o.force=!0),_(ye.showDelay??e.showDelay,()=>{o.isVisible&&(o.force=!1),m({...ye,isVisible:!0}),g()}))}function x(ye={}){i&&(ye.target&&!v(ye.target)||o.force||(ye.force&&(o.force=!0),_(ye.hideDelay??e.hideDelay,()=>{o.isVisible||(o.force=!1),o.isVisible=!1})))}function C(ye={}){ye.target!=null&&(o.isVisible&&v(ye.target)?x(ye):k(ye))}function w(ye){if(!i)return;const ne=i.state.elements.reference;if(!n.value||!ne)return;const ve=ye.target;Bd(n.value,ve)||Bd(ne,ve)||x({force:!0})}function $(ye){(ye.key==="Esc"||ye.key==="Escape")&&x()}function S({detail:ye}){!ye.id||ye.id!==e.id||k(ye)}function I({detail:ye}){!ye.id||ye.id!==e.id||x(ye)}function P({detail:ye}){!ye.id||ye.id!==e.id||C(ye)}function L(){so(document,"keydown",$),so(document,"click",w),so(document,"show-popover",S),so(document,"hide-popover",I),so(document,"toggle-popover",P)}function D(){to(document,"keydown",$),to(document,"click",w),to(document,"show-popover",S),to(document,"hide-popover",I),to(document,"toggle-popover",P)}function R(ye){t("before-show",ye)}function F(ye){o.force=!1,t("after-show",ye)}function N(ye){t("before-hide",ye)}function z(ye){o.force=!1,h(),t("after-hide",ye)}function me(ye){ye.stopPropagation()}function ge(){o.isHovered=!0,o.isInteractive&&["hover","hover-focus"].includes(o.visibility)&&k()}function fe(){if(o.isHovered=!1,!i)return;const ye=i.state.elements.reference;o.autoHide&&!o.isFocused&&(!ye||ye!==document.activeElement)&&["hover","hover-focus"].includes(o.visibility)&&x()}function te(){o.isFocused=!0,o.isInteractive&&["focus","hover-focus"].includes(o.visibility)&&k()}function V(ye){["focus","hover-focus"].includes(o.visibility)&&(!ye.relatedTarget||!Bd(n.value,ye.relatedTarget))&&(o.isFocused=!1,!o.isHovered&&o.autoHide&&x())}function pe(){r!=null&&(r.disconnect(),r=null)}return Se(()=>n.value,ye=>{pe(),ye&&(r=new ResizeObserver(()=>{i&&i.update()}),r.observe(ye))}),Se(()=>o.placement,l,{immediate:!0}),je(()=>{L()}),wn(()=>{h(),pe(),D()}),{...v5(o),popoverRef:n,alignment:f,hide:x,setupPopper:g,beforeEnter:R,afterEnter:F,beforeLeave:N,afterLeave:z,onClick:me,onMouseOver:ge,onMouseLeave:fe,onFocusIn:te,onFocusOut:V}}}),$o=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s};function lie(e,t,s,n,r,i){return p(),y("div",{class:oe(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...o)=>e.onClick&&e.onClick(...o)),onMouseover:t[1]||(t[1]=(...o)=>e.onMouseOver&&e.onMouseOver(...o)),onMouseleave:t[2]||(t[2]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onFocusin:t[3]||(t[3]=(...o)=>e.onFocusIn&&e.onFocusIn(...o)),onFocusout:t[4]||(t[4]=(...o)=>e.onFocusOut&&e.onFocusOut(...o))},[T(Un,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:Xe(()=>[e.isVisible?(p(),y("div",ca({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[er(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[Qe(b(e.data),1)]),c("span",{class:oe(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):E("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const O0=$o(aie,[["render",lie]]),cie={class:"vc-day-popover-row"},uie={key:0,class:"vc-day-popover-row-indicator"},die={class:"vc-day-popover-row-label"},zw=G({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,s=A(()=>{const{content:n,highlight:r,dot:i,bar:o,popover:l}=t.attribute;return l&&l.hideIndicator?null:n?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${n.base.color}`}
8:r?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${r.base.color}`}:i?{class:`vc-dot vc-attr vc-${i.base.color}`}:o?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${o.base.color}`}:null});return(n,r)=>(p(),y("div",cie,[a(s)?(p(),y("div",uie,[c("span",{class:oe(a(s).class)},null,2)])):E("",!0),c("div",die,[er(n.$slots,"default",{},()=>[Qe(b(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),fie={inheritAttrs:!1},Yn=G({...fie,__name:"CalendarSlot",props:{name:null},setup(e){const s=jw(e.name);return(n,r)=>a(s)?(p(),K(Jn(a(s)),Ja(ca({key:0},n.$attrs)),null,16)):er(n.$slots,"default",{key:1})}}),pie={class:"vc-day-popover-container"},hie={key:0,class:"vc-day-popover-header"},mie=G({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:s,color:n,masks:r,locale:i}=fa();function o(u,d){return i.value.formatDate(u,d)}function l(u){return i.value.formatDate(u.date,r.value.dayPopover)}return(u,d)=>(p(),K(O0,{id:a(t),class:oe([`vc-${a(n)}`,`vc-${a(s)}`])},{default:Xe(({data:{day:f,attributes:h},hide:g})=>[T(Yn,{name:"day-popover",day:f,"day-title":l(f),attributes:h,format:o,masks:a(r),hide:g},{default:Xe(()=>[c("div",pie,[a(r).dayPopover?(p(),y("div",hie,b(l(f)),1)):E("",!0),(p(!0),y(j,null,le(h,m=>(p(),K(zw,{key:m.key,attribute:m},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),gie={},yie={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},_ie=c("polyline",{points:"9 18 15 12 9 6"},null,-1),vie=[_ie];function bie(e,t){return p(),y("svg",yie,vie)}const xie=$o(gie,[["render",bie]]),kie={},wie={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Cie=c("polyline",{points:"15 18 9 12 15 6"},null,-1),$ie=[Cie];function Sie(e,t){return p(),y("svg",wie,$ie)}const Aie=$o(kie,[["render",Sie]]),Iie={},Tie={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Pie=c("polyline",{points:"6 9 12 15 18 9"},null,-1),Die=[Pie];function Eie(e,t){return p(),y("svg",Tie,Die)}const Lie=$o(Iie,[["render",Eie]]),Rie={},Mie={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},Oie=c("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),Fie=[Oie];function Nie(e,t){return p(),y("svg",Mie,Fie)}const Bie=$o(Rie,[["render",Nie]]),Vie=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Lie,IconChevronLeft:Aie,IconChevronRight:xie,IconClock:Bie},Symbol.toStringTag,{value:"Module"})),Cl=G({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,s=A(()=>t.width||t.size),n=A(()=>t.height||t.size),r=A(()=>Vie[`Icon${t.name}`]);return(i,o)=>(p(),K(Jn(a(r)),{width:a(s),height:a(n),class:"vc-base-icon"},null,8,["width","height"]))}}),Hie=["disabled"],qie={key:1,class:"vc-title-wrapper"},jie={type:"button",class:"vc-title"},Uie=["disabled"],Ww=G({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:s,navVisibility:n,canMovePrev:r,movePrev:i,canMoveNext:o,moveNext:l}=fa(),u=A(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),d=A(()=>{const{page:v}=t;return{id:s.value,visibility:n.value,placement:u.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:v},isInteractive:!0}}),f=A(()=>t.page.titlePosition.includes("left")),h=A(()=>t.page.titlePosition.includes("right")),g=A(()=>t.layout?t.layout:f.value?"tu-pn":h.value?"pn-tu":"p-tu-n;"),m=A(()=>({prev:g.value.includes("p")&&!t.hideArrows,title:g.value.includes("t")&&!t.hideTitle,next:g.value.includes("n")&&!t.hideArrows})),_=A(()=>({gridTemplateColumns:g.value.split("").map(k=>{switch(k){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ")}));return(v,k)=>(p(),y("div",{class:oe(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:kt(a(_))}
8,[a(m).prev?(p(),y("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!a(r),onClick:k[0]||(k[0]=(...x)=>a(i)&&a(i)(...x)),onKeydown:k[1]||(k[1]=Qr((...x)=>a(i)&&a(i)(...x),["space","enter"]))},[T(Yn,{name:"header-prev-button",disabled:!a(r)},{default:Xe(()=>[T(Cl,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Hie)):E("",!0),a(m).title?(p(),y("div",qie,[T(Yn,{name:"header-title-wrapper"},{default:Xe(()=>[pn((p(),y("button",jie,[T(Yn,{name:"header-title",title:e.page.title},{default:Xe(()=>[c("span",null,b(e.page.title),1)]),_:1},8,["title"])])),[[a(Ow),a(d)]])]),_:1})])):E("",!0),a(m).next?(p(),y("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!a(o),onClick:k[2]||(k[2]=(...x)=>a(l)&&a(l)(...x)),onKeydown:k[3]||(k[3]=Qr((...x)=>a(l)&&a(l)(...x),["space","enter"]))},[T(Yn,{name:"header-next-button",disabled:!a(o)},{default:Xe(()=>[T(Cl,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Uie)):E("",!0)],6))}}),Gw=Symbol("__vc_page_context__");function zie(e){const{locale:t,getDateAddress:s,canMove:n}=fa();function r(l,u){const{month:d,year:f}=s(new Date);return Ew().map((h,g)=>{const m=g+1;return{month:m,year:l,id:Rne(m,l),label:t.value.formatDate(h,u),ariaLabel:t.value.formatDate(h,"MMMM"),isActive:m===e.value.month&&l===e.value.year,isCurrent:m===d&&l===f,isDisabled:!n({month:m,year:l},{position:e.value.position})}})}function i(l,u){const{year:d}=s(new Date),{position:f}=e.value,h=[];for(let g=l;g<=u;g+=1){const m=[...Array(12).keys()].some(_=>n({month:_+1,year:g},{position:f}));h.push({year:g,id:g.toString(),label:g.toString(),ariaLabel:g.toString(),isActive:g===e.value.year,isCurrent:g===d,isDisabled:!m})}return h}const o={page:e,getMonthItems:r,getYearItems:i};return ks(Gw,o),o}function Yw(){const e=ts(Gw);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Wie={class:"vc-nav-header"},Gie=["disabled"],Yie=["disabled"],Kie={class:"vc-nav-items"},Qie=["data-id","aria-label","disabled","onClick","onKeydown"],Xie=G({__name:"CalendarNav",setup(e){const{masks:t,move:s}=fa(),{page:n,getMonthItems:r,getYearItems:i}=Yw(),o=X(!0),l=12,u=X(n.value.year),d=X(g(n.value.year)),f=X(null);function h(){setTimeout(()=>{if(f.value==null)return;const ve=f.value.querySelector(".vc-nav-item:not(:disabled)");ve&&ve.focus()},10)}function g(ve){return Math.floor(ve/l)}function m(){o.value=!o.value}function _(ve){return ve*l}function v(ve){return l*(ve+1)-1}function k(){te.value&&(o.value&&C(),$())}function x(){V.value&&(o.value&&w(),S())}function C(){u.value--}function w(){u.value++}function $(){d.value--}function S(){d.value++}const I=A(()=>r(u.value,t.value.navMonths).map(ve=>({...ve,click:()=>s({month:ve.month,year:ve.year},{position:n.value.position})}))),P=A(()=>r(u.value-1,t.value.navMonths)),L=A(()=>P.value.some(ve=>!ve.isDisabled)),D=A(()=>r(u.value+1,t.value.navMonths)),R=A(()=>D.value.some(ve=>!ve.isDisabled)),F=A(()=>i(_(d.value),v(d.value)).map(ve=>({...ve,click:()=>{u.value=ve.year,o.value=!0,h()}}))),N=A(()=>i(_(d.value-1),v(d.value-1))),z=A(()=>N.value.some(ve=>!ve.isDisabled)),me=A(()=>i(_(d.value+1),v(d.value+1))),ge=A(()=>me.value.some(ve=>!ve.isDisabled)),fe=A(()=>o.value?I.value:F.value),te=A(()=>o.value?L.value:z.value),V=A(()=>o.value?R.value:ge.value),pe=A(()=>fw(F.value.map(ve=>ve.year))),ye=A(()=>Ka(F.value.map(ve=>ve.year))),ne=A(()=>o.value?u.value:`${pe.value} - ${ye.value}`);return Pl(()=>{u.value=n.value.year,h()}),Se(()=>u.value,ve=>d.value=g(ve)),je(()=>h()),(ve,J)=>(p(),y("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[c("div",Wie,[c("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!a(te),onClick:k,onKeydown:J[0]||(J[0]=he=>a(gd)(he,k))},[T(Yn,{name:"nav-prev-button",move:k,disabled:!a(te)},{default:Xe(()=>[T(Cl,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Gie),c("button",{type:"button",class:"vc-nav-title vc-focus",onClick:m,onKeydown:J[1]||(J[1]=he=>a(gd)(he,m))},b(a(ne)),33),c("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!a(V),onClick:x,onKeydown:J[2]||(J[2]=he=>a(gd)(he,x))},[T(Yn,{name:"nav-next-button",move:x,disabled:!a(V)},{default:Xe(()=>[T(Cl,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Yie)]),c("div",Kie,[(p(!0),y(j,null,le(a(fe),he=>(p(),y("button",{key:he.label,type:"button","data-id":he.id,"aria-label":he.ariaLabel,class:oe(["vc-nav-item vc-focus",[he.isActive?"is-active":he.isCurrent?"is-current":""]]),disabled:he.isDisabled,onClick:he.click,onKeydown:Ee=>a(gd)(Ee,he.click)},b(he.label),43,Qie))),128))])],512))}}),Kw=G({__name:"CalendarPageProvider",props:{page:null},setup(e){return zie(oo(e,"page")),(s,n)=>er(s.$slots,"default")}}),Zie=G({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:s,displayMode:n}=fa();return(r,i)=>(p(),K(O0,{id:a(t),class:oe(["vc-nav-popover-container",`vc-${a(s)}`,`vc-${a(n)}`])},{default:Xe(({data:o})=>[T(Kw,{page:o.page},{default:Xe(()=>[T(Yn,{name:"nav"},{default:Xe(()=>[T(Xie)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),Jie=G({directives:{popover:Ow},components:{CalendarSlot:Yn},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:s,attributeContext:n,dayPopoverId:r,onDayClick:i,onDayMouseenter:o,onDayMouseleave:l,onDayFocusin:u,onDayFocusout:d,onDayKeydown:f}=fa(),h=A(()=>e.day),g=A(()=>n.value.getCells(h.value)),m=A(()=>g.value.map(ge=>ge.data)),_=A(()=>({...h.value,attributes:m.value,attributeCells:g.value}));function v({data:ge},{popovers:fe}){const{key:te,customData:V,popover:pe}=ge;if(!pe)return;const ye=Zv({key:te,customData:V,attribute:ge},{...pe},{visibility:pe.label?"hover":"click",placement:"bottom",isInteractive:!pe.label});fe.splice(0,0,ye)}const k=A(()=>{const ge={...s.value.prepareRender({}),popovers:[]};return g.value.forEach(fe=>{s.value.render(fe,ge),v(fe,ge)}),ge}),x=A(()=>k.value.highlights),C=A(()=>!!xi(x.value)),w=A(()=>k.value.content),$=A(()=>k.value.dots),S=A(()=>!!xi($.value)),I=A(()=>k.value.bars),P=A(()=>!!xi(I.value)),L=A(()=>k.value.popovers),D=A(()=>L.value.map(ge=>ge.attribute)),R=jw("day-content"),F=A(()=>["vc-day",...h.value.classes,{"vc-day-box-center-center":!R},{"is-not-in-month":!e.day.inMonth}]),N=A(()=>{let ge;h.value.isFocusable?ge="0":ge="-1";const fe=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":h.value.isDisabled},zo(Ka(x.value),"contentClass"),zo(Ka(w.value),"class")||""],te={...zo(Ka(x.value),"contentStyle"),...zo(Ka(w.value),"style")};return{class:fe,style:te,tabindex:ge,"aria-label":h.value.ariaLabel,"aria-disabled":!!h.value.isDisabled,role:"button"}}),z=A(()=>({click(ge){i(_.value,ge)},mouseenter(ge){o(_.value,ge)},mouseleave(ge){l(_.value,ge)},focusin(ge){u(_.value,ge)},focusout(ge){d(_.value,ge)}
8,keydown(ge){f(_.value,ge)}})),me=A(()=>xi(L.value)?Zv({id:r.value,data:{day:h,attributes:D.value}},...L.value):null);return{attributes:m,attributeCells:g,bars:I,dayClasses:F,dayContentProps:N,dayContentEvents:z,dayPopover:me,glyphs:k,dots:$,hasDots:S,hasBars:P,highlights:x,hasHighlights:C,locale:t,popovers:L}}}),eoe={key:0,class:"vc-highlights vc-day-layer"},toe={key:1,class:"vc-day-layer vc-day-box-center-bottom"},soe={class:"vc-dots"},noe={key:2,class:"vc-day-layer vc-day-box-center-bottom"},roe={class:"vc-bars"};function ioe(e,t,s,n,r,i){const o=Ae("CalendarSlot"),l=A$("popover");return p(),y("div",{class:oe(e.dayClasses)},[e.hasHighlights?(p(),y("div",eoe,[(p(!0),y(j,null,le(e.highlights,({key:u,wrapperClass:d,class:f,style:h})=>(p(),y("div",{key:u,class:oe(d)},[c("div",{class:oe(f),style:kt(h)},null,6)],2))),128))])):E("",!0),T(o,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:Xe(()=>[pn((p(),y("div",ca(e.dayContentProps,I$(e.dayContentEvents,!0)),[Qe(b(e.day.label),1)],16)),[[l,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?(p(),y("div",toe,[c("div",soe,[(p(!0),y(j,null,le(e.dots,({key:u,class:d,style:f})=>(p(),y("span",{key:u,class:oe(d),style:kt(f)},null,6))),128))])])):E("",!0),e.hasBars?(p(),y("div",noe,[c("div",roe,[(p(!0),y(j,null,le(e.bars,({key:u,class:d,style:f})=>(p(),y("span",{key:u,class:oe(d),style:kt(f)},null,6))),128))])])):E("",!0)],2)}const ooe=$o(Jie,[["render",ioe]]),aoe={class:"vc-weekdays"},loe=["onClick"],coe={inheritAttrs:!1},uoe=G({...coe,__name:"CalendarPage",setup(e){const{page:t}=Yw(),{onWeeknumberClick:s}=fa();return(n,r)=>(p(),y("div",{class:oe(["vc-pane",`row-${a(t).row}`,`row-from-end-${a(t).rowFromEnd}`,`column-${a(t).column}`,`column-from-end-${a(t).columnFromEnd}`]),ref:"pane"},[T(Ww,{page:a(t),"is-lg":"","hide-arrows":""},null,8,["page"]),c("div",{class:oe(["vc-weeks",{[`vc-show-weeknumbers-${a(t).weeknumberPosition}`]:a(t).weeknumberPosition}])},[c("div",aoe,[(p(!0),y(j,null,le(a(t).weekdays,({weekday:i,label:o},l)=>(p(),y("div",{key:l,class:oe(`vc-weekday vc-weekday-${i}`)}
8,b(o),3))),128))]),(p(!0),y(j,null,le(a(t).viewWeeks,i=>(p(),y("div",{key:`weeknumber-${i.weeknumber}`,class:"vc-week"},[a(t).weeknumberPosition?(p(),y("div",{key:0,class:oe(["vc-weeknumber",`is-${a(t).weeknumberPosition}`])},[c("span",{class:oe(["vc-weeknumber-content"]),onClick:o=>a(s)(i,o)},b(i.weeknumberDisplay),9,loe)],2)):E("",!0),(p(!0),y(j,null,le(i.days,o=>(p(),K(ooe,{key:o.id,day:o},null,8,["day"]))),128))]))),128))],2)],2))}}),doe=G({components:{CalendarHeader:Ww,CalendarPage:uoe,CalendarNavPopover:Zie,CalendarDayPopover:mie,CalendarPageProvider:Kw,CalendarSlot:Yn},props:rie,emit:iie,setup(e,{emit:t,slots:s}){return oie(e,{emit:t,slots:s})}}),foe={class:"vc-pane-header-wrapper"};function poe(e,t,s,n,r,i){const o=Ae("CalendarHeader"),l=Ae("CalendarPage"),u=Ae("CalendarSlot"),d=Ae("CalendarPageProvider"),f=Ae("CalendarDayPopover"),h=Ae("CalendarNavPopover");return p(),y(j,null,[c("div",ca({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=St(()=>{},["prevent"])),ref:"containerRef"}),[c("div",{class:oe(["vc-pane-container",{"in-transition":e.inTransition}])},[c("div",foe,[e.firstPage?(p(),K(o,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):E("",!0)]),T(Un,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:Xe(()=>[(p(),y("div",{key:e.pages[0].id,class:"vc-pane-layout",style:kt({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[(p(!0),y(j,null,le(e.pages,g=>(p(),K(d,{key:g.id,page:g},{default:Xe(()=>[T(u,{name:"page",page:g},{default:Xe(()=>[T(l)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),T(u,{name:"footer"})],2)],16),T(f),T(h)],64)}const Qw=$o(doe,[["render",poe]]),Xw=Symbol("__vc_date_picker_context__"),hoe={...Bw,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>go("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>go("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},moe=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function goe(e,{emit:t,slots:s}){qw(s,{footer:"dp-footer"});const n=Vw(e),{locale:r,masks:i,disabledAttribute:o}=n,l=X(!1),u=X(Symbol()),d=X(null),f=X(null),h=X(["",""]),g=X(null),m=X(null);let _,v,k=!0;const x=A(()=>e.isRange||e.modelModifiers.range===!0),C=A(()=>x.value&&d.value!=null?d.value.start:null),w=A(()=>x.value&&d.value!=null?d.value.end:null),$=A(()=>e.mode.toLowerCase()==="date"),S=A(()=>e.mode.toLowerCase()==="datetime"),I=A(()=>e.mode.toLowerCase()==="time"),P=A(()=>!!f.value),L=A(()=>{let ee="date";e.modelModifiers.number&&(ee="number"),e.modelModifiers.string&&(ee="string");const Pe=i.value.modelValue||"iso";return J({type:ee,mask:Pe})}),D=A(()=>q(f.value??d.value)),R=A(()=>I.value?e.is24hr?i.value.inputTime24hr:i.value.inputTime:S.value?e.is24hr?i.value.inputDateTime24hr:i.value.inputDateTime:i.value.input),F=A(()=>/[Hh]/g.test(R.value)),N=A(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(R.value)),z=A(()=>{if(F.value&&N.value)return"dateTime";if(N.value)return"date";if(F.value)return"time"}),me=A(()=>{var ee;const Pe=((ee=g.value)==null?void 0:ee.$el.previousElementSibling)??void 0;return wl({},e.popover,go("datePicker.popover"),{target:Pe})}),ge=A(()=>Mw({...me.value,id:u.value})),fe=A(()=>x.value?{start:h.value[0],end:h.value[1]}:h.value[0]),te=A(()=>{const ee=["start","end"].map(Pe=>({input:_e(Pe),change:ae(Pe),keyup:M,...e.popover&&ge.value}));return x.value?{start:ee[0],end:ee[1]}:ee[0]}),V=A(()=>{if(!de(d.value))return null;const ee={key:"select-drag",...e.selectAttribute,dates:d.value,pinPage:!0},{dot:Pe,bar:Ge,highlight:_t,content:qt}=ee;return!Pe&&!Ge&&!_t&&!qt&&(ee.highlight=!0),ee}),pe=A(()=>{if(!x.value||!de(f.value))return null;const ee={key:"select-drag",...e.dragAttribute,dates:f.value},{dot:Pe,bar:Ge,highlight:_t,content:qt}=ee;return!Pe&&!Ge&&!_t&&!qt&&(ee.highlight={startEnd:{fillMode:"outline"}}),ee}),ye=A(()=>{const ee=Xn(e.attributes)?[...e.attributes]:[];return pe.value?ee.unshift(pe.value):V.value&&ee.unshift(V.value),ee}),ne=A(()=>J(e.rules==="auto"?ve():e.rules??{}));function ve(){const ee={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},Pe=$.value?0:e.timeAccuracy;return[0,1].map(Ge=>{switch(Pe){case 0:return{hours:ee.hr[Ge],minutes:ee.min[Ge],seconds:ee.sec[Ge],milliseconds:ee.ms[Ge]};case 1:return{minutes:ee.min[Ge],seconds:ee.sec[Ge],milliseconds:ee.ms[Ge]};case 3:return{milliseconds:ee.ms[Ge]};case 4:return{};default:return{seconds:ee.sec[Ge],milliseconds:ee.ms[Ge]}}})}function J(ee){return Xn(ee)?ee.length===1?[ee[0],ee[0]]:ee:[ee,ee]}function he(ee){return J(ee).map((Pe,Ge)=>({...Pe,rules:ne.value[Ge]}))}function Ee(ee){return ee==null?!1:_r(ee)?!isNaN(ee):il(ee)?!isNaN(ee.getTime()):Vr(ee)?ee!=="":G2(ee)}function He(ee){return Ei(ee)&&"start"in ee&&"end"in ee&&Ee(ee.start??null)&&Ee(ee.end??null)}function de(ee){return He(ee)||Ee(ee)}function Me(ee,Pe){if(ee==null&&Pe==null)return!0;
8if(ee==null||Pe==null)return!1;const Ge=il(ee),_t=il(Pe);return Ge&&_t?ee.getTime()===Pe.getTime():Ge||_t?!1:Me(ee.start,Pe.start)&&Me(ee.end,Pe.end)}function De(ee){return!de(ee)||!o.value?!1:o.value.intersectsRange(r.value.range(ee))}function ze(ee,Pe,Ge,_t){if(!de(ee))return null;if(He(ee)){const qt=r.value.toDate(ee.start,{...Pe[0],fillDate:C.value??void 0,patch:Ge}),Ht=r.value.toDate(ee.end,{...Pe[1],fillDate:w.value??void 0,patch:Ge});return Wt({start:qt,end:Ht},_t)}return r.value.toDateOrNull(ee,{...Pe[0],fillDate:d.value,patch:Ge})}function Ue(ee,Pe){return He(ee)?{start:r.value.fromDate(ee.start,Pe[0]),end:r.value.fromDate(ee.end,Pe[1])}:x.value?null:r.value.fromDate(ee,Pe[0])}function ut(ee,Pe={}){return clearTimeout(_),new Promise(Ge=>{const{debounce:_t=0,...qt}=Pe;_t>0?_=window.setTimeout(()=>{Ge(H(ee,qt))},_t):Ge(H(ee,qt))})}function H(ee,{config:Pe=L.value,patch:Ge="dateTime",clearIfEqual:_t=!1,formatInput:qt=!0,hidePopover:Ht=!1,dragging:ps=P.value,targetPriority:ws,moveToValue:gs=!1}={}){const xs=he(Pe);let Zt=ze(ee,xs,Ge,ws);if(De(Zt)){if(ps)return null;Zt=d.value,Ht=!1}else Zt==null&&e.isRequired?Zt=d.value:Zt!=null&&Me(d.value,Zt)&&_t&&(Zt=null);const en=ps?f:d,tn=!Me(en.value,Zt);en.value=Zt,ps||(f.value=null);const Os=Ue(Zt,L.value);return tn&&(k=!1,t(ps?"drag":"update:modelValue",Os),lt(()=>k=!0)),Ht&&!ps&&ft(),qt&&Y(),gs&<(()=>Ms(ws??"start")),Os}function Y(){lt(()=>{const ee=he({type:"string",mask:R.value}),Pe=Ue(f.value??d.value,ee);x.value?h.value=[Pe&&Pe.start,Pe&&Pe.end]:h.value=[Pe,""]})}function W(ee,Pe,Ge){h.value.splice(Pe==="start"?0:1,1,ee);const _t=x.value?{start:h.value[0],end:h.value[1]||h.value[0]}:ee,qt={type:"string",mask:R.value};ut(_t,{...Ge,config:qt,patch:z.value,targetPriority:Pe,moveToValue:!0})}function _e(ee){return Pe=>{e.updateOnInput&&W(Pe.currentTarget.value,ee,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function ae(ee){return Pe=>{W(Pe.currentTarget.value,ee,{formatInput:!0,hidePopover:!1})}}function M(ee){ee.key==="Escape"&&ut(d.value,{formatInput:!0,hidePopover:!0})}function q(ee){return x.value?[ee&&ee.start?r.value.getDateParts(ee.start):null,ee&&ee.end?r.value.getDateParts(ee.end):null]:[ee?r.value.getDateParts(ee):null]}function re(){f.value=null,Y()}function ce(ee){t("popover-will-show",ee)}function ie(ee){t("popover-did-show",ee)}function $e(ee){re(),t("popover-will-hide",ee)}function se(ee){t("popover-did-hide",ee)}function xe(ee){const Pe={patch:"date",formatInput:!0,hidePopover:!0};if(x.value){const Ge=!P.value;Ge?v={start:ee.startDate,end:ee.endDate}:v!=null&&(v.end=ee.date),ut(v,{...Pe,dragging:Ge})}else ut(ee.date,{...Pe,clearIfEqual:!e.isRequired})}function Ve(ee,Pe){xe(ee),t("dayclick",ee,Pe)}function Ze(ee,Pe){switch(Pe.key){case" ":case"Enter":{xe(ee),Pe.preventDefault();break}case"Escape":ft()}t("daykeydown",ee,Pe)}function Je(ee,Pe){!P.value||v==null||(v.end=ee.date,ut(Wt(v),{patch:"date",formatInput:!0}))}function dt(ee={}){Jh({...me.value,...ee,isInteractive:!0,id:u.value})}function ft(ee={}){cu({hideDelay:10,force:!0,...me.value,...ee,id:u.value})}function It(ee){Rw({...me.value,...ee,isInteractive:!0,id:u.value})}function Wt(ee,Pe){const{start:Ge,end:_t}=ee;if(Ge>_t)switch(Pe){case"start":return{start:Ge,end:Ge};case"end":return{start:_t,end:_t};default:return{start:_t,end:Ge}}return{start:Ge,end:_t}}async function ss(ee,Pe={}){return m.value==null?!1:m.value.move(ee,Pe)}async function Ps(ee,Pe={}){return m.value==null?!1:m.value.moveBy(ee,Pe)}async function Ms(ee,Pe={}){const Ge=d.value;if(m.value==null||!de(Ge))return!1;const _t=ee!=="end",qt=_t?1:-1,Ht=He(Ge)?_t?Ge.start:Ge.end:Ge,ps=_w(Ht,"monthly",r.value);return m.value.move(ps,{position:qt,...Pe})}Se(()=>e.isRange,ee=>
8{ee&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),Se(()=>x.value,()=>{H(null,{formatInput:!0})}),Se(()=>R.value,()=>Y()),Se(()=>e.modelValue,ee=>{k&&H(ee,{formatInput:!0,hidePopover:!1})}),Se(()=>ne.value,()=>{Ei(e.rules)&&H(e.modelValue,{formatInput:!0,hidePopover:!1})}),Se(()=>e.timezone,()=>{H(d.value,{formatInput:!0})});const Gt=J(L.value);d.value=ze(e.modelValue??null,Gt,"dateTime"),je(()=>{H(e.modelValue,{formatInput:!0,hidePopover:!1})}),lt(()=>l.value=!0);const Le={...n,showCalendar:l,datePickerPopoverId:u,popoverRef:g,popoverEvents:ge,calendarRef:m,isRange:x,isTimeMode:I,isDateTimeMode:S,is24hr:oo(e,"is24hr"),hideTimeHeader:oo(e,"hideTimeHeader"),timeAccuracy:oo(e,"timeAccuracy"),isDragging:P,inputValue:fe,inputEvents:te,dateParts:D,attributes:ye,rules:ne,move:ss,moveBy:Ps,moveToValue:Ms,updateValue:ut,showPopover:dt,hidePopover:ft,togglePopover:It,onDayClick:Ve,onDayKeydown:Ze,onDayMouseEnter:Je,onPopoverBeforeShow:ce,onPopoverAfterShow:ie,onPopoverBeforeHide:$e,onPopoverAfterHide:se};return ks(Xw,Le),Le}function X2(){const e=ts(Xw);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const yoe=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],_oe=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function voe(e){const t=X2(),{locale:s,isRange:n,isTimeMode:r,dateParts:i,rules:o,is24hr:l,hideTimeHeader:u,timeAccuracy:d,updateValue:f}=t;function h(N){N=Object.assign(m.value,N);let z=null;if(n.value){const me=g.value?N:i.value[0],ge=g.value?i.value[1]:N;z={start:me,end:ge}}else z=N;f(z,{patch:"time",targetPriority:g.value?"start":"end",moveToValue:!0})}const g=A(()=>e.position===0),m=A(()=>i.value[e.position]||{isValid:!1}),_=A(()=>G2(m.value)),v=A(()=>!!m.value.isValid),k=A(()=>!u.value&&v.value),x=A(()=>{if(!_.value)return null;let N=s.value.toDate(m.value);return m.value.hours===24&&(N=new Date(N.getTime()-1)),N}),C=A({get(){return m.value.hours},set(N){h({hours:N})}}),w=A({get(){return m.value.minutes},set(N){h({minutes:N})}}),$=A({get(){return m.value.seconds},set(N){h({seconds:N})}}),S=A({get(){return m.value.milliseconds},set(N){h({milliseconds:N})}}),I=A({get(){return m.value.hours<12},set(N){N=String(N).toLowerCase()=="true";let z=C.value;N&&z>=12?z-=12:!N&&z<12&&(z+=12),h({hours:z})}}),P=A(()=>Bre(m.value,o.value[e.position])),L=A(()=>yoe.filter(N=>P.value.hours.some(z=>z.value===N.value))),D=A(()=>_oe.filter(N=>P.value.hours.some(z=>z.value===N.value))),R=A(()=>l.value?P.value.hours:I.value?L.value:D.value),F=A(()=>{const N=[];return xi(L.value)&&N.push({value:!0,label:"AM"}),xi(D.value)&&N.push({value:!1,label:"PM"}),N});return{...t,showHeader:k,timeAccuracy:d,parts:m,isValid:v,date:x,hours:C,minutes:w,seconds:$,milliseconds:S,options:P,hourOptions:R,isAM:I,isAMOptions:F,is24hr:l}}const boe=["value"],xoe=["value","disabled"],koe={key:1,class:"vc-base-sizer","aria-hidden":"true"},woe={inheritAttrs:!1},_c=G({...woe,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,s=A(()=>{const n=t.options.find(r=>r.value===t.modelValue);return n?.label});return(n,r)=>(p(),y("div",{class:oe(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[c("select",ca(n.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:r[0]||(r[0]=i=>n.$emit("update:modelValue",i.target.value))}),[(p(!0),y(j,null,le(e.options,i=>(p(),y("option",{key:i.value,value:i.value,disabled:i.disabled},b(i.label),9,xoe))),128))],16,boe),e.showIcon?(p(),K(Cl,{key:0,name:"ChevronDown",size:"18"})):E("",!0),e.fitContent?(p(),y("div",koe,b(a(s)),1)):E("",!0)],2))}}),Coe={key:0,class:"vc-time-header"},$oe={class:"vc-time-weekday"},Soe={class:"vc-time-month"},Aoe={class:"vc-time-day"},Ioe={class:"vc-time-year"},Toe={class:"vc-time-select-group"},Poe=c("span",{class:"vc-time-colon"},":",-1),Doe=c("span",{class:"vc-time-colon"},":",-1),Eoe=c("span",{class:"vc-time-decimal"},".",-1),A4=G({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=voe(e);t(n);const{locale:r,isValid:i,date:o,hours:l,minutes:u,seconds:d,milliseconds:f,options:h,hourOptions:g,isTimeMode:m,isAM:_,isAMOptions:v,is24hr:k,showHeader:x,timeAccuracy:C}=n;return(w,$)=>(p(),y("div",{class:oe(["vc-time-picker",[{"vc-invalid":!a(i),"vc-attached":!a(m)}]])},[T(Yn,{name:"time-header"},{default:Xe(()=>[a(x)&&a(o)?(p(),y("div",Coe,[c("span",$oe,b(a(r).formatDate(a(o),"WWW")),1),c("span",Soe,b(a(r).formatDate(a(o),"MMM")),1),c("span",Aoe,b(a(r).formatDate(a(o),"D")),1
8),c("span",Ioe,b(a(r).formatDate(a(o),"YYYY")),1)])):E("",!0)]),_:1}),c("div",Toe,[T(Cl,{name:"Clock",size:"17"}),T(_c,{modelValue:a(l),"onUpdate:modelValue":$[0]||($[0]=S=>it(l)?l.value=S:null),modelModifiers:{number:!0},options:a(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),a(C)>1?(p(),y(j,{key:0},[Poe,T(_c,{modelValue:a(u),"onUpdate:modelValue":$[1]||($[1]=S=>it(u)?u.value=S:null),modelModifiers:{number:!0},options:a(h).minutes,class:"vc-time-select-minutes","align-left":a(C)===2},null,8,["modelValue","options","align-left"])],64)):E("",!0),a(C)>2?(p(),y(j,{key:1},[Doe,T(_c,{modelValue:a(d),"onUpdate:modelValue":$[2]||($[2]=S=>it(d)?d.value=S:null),modelModifiers:{number:!0},options:a(h).seconds,class:"vc-time-select-seconds","align-left":a(C)===3},null,8,["modelValue","options","align-left"])],64)):E("",!0),a(C)>3?(p(),y(j,{key:2},[Eoe,T(_c,{modelValue:a(f),"onUpdate:modelValue":$[3]||($[3]=S=>it(f)?f.value=S:null),modelModifiers:{number:!0},options:a(h).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):E("",!0),a(k)?E("",!0):(p(),K(_c,{key:3,modelValue:a(_),"onUpdate:modelValue":$[4]||($[4]=S=>it(_)?_.value=S:null),options:a(v)},null,8,["modelValue","options"]))])],2))}}),Zw=G({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:s,color:n,displayMode:r,isDateTimeMode:i,isTimeMode:o,isRange:l,onDayClick:u,onDayMouseEnter:d,onDayKeydown:f}=X2(),h=l.value?[0,1]:[0];return(g,m)=>a(o)?(p(),y("div",{key:0,class:oe(`vc-container vc-bordered vc-${a(n)} vc-${a(r)}`)},[(p(!0),y(j,null,le(a(h),_=>(p(),K(A4,{key:_,position:_},null,8,["position"]))),128))],2)):(p(),K(Qw,{key:1,attributes:a(t),ref_key:"calendarRef",ref:s,onDayclick:a(u),onDaymouseenter:a(d),onDaykeydown:a(f)},{footer:Xe(()=>[a(i)?(p(!0),y(j,{key:0},le(a(h),_=>(p(),K(A4,{key:_,position:_},null,8,["position"]))),128)):E("",!0),T(Yn,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),Loe={inheritAttrs:!1},Roe=G({...Loe,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:s,displayMode:n,popoverRef:r,onPopoverBeforeShow:i,onPopoverAfterShow:o,onPopoverBeforeHide:l,onPopoverAfterHide:u}=X2();return(d,f)=>(p(),K(O0,{id:a(t),placement:"bottom-start",class:oe(`vc-date-picker-content vc-${a(s)} vc-${a(n)}`),ref_key:"popoverRef",ref:r,onBeforeShow:a(i),onAfterShow:a(o),onBeforeHide:a(l),onAfterHide:a(u)},{default:Xe(()=>[T(Zw,Ja(Jc(d.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),Moe=G({inheritAttrs:!1,emits:moe,props:hoe,components:{DatePickerBase:Zw,DatePickerPopover:Roe},setup(e,t){const s=goe(e,t),n=Ws(hw(s,"calendarRef","popoverRef"));return{...s,slotCtx:n}}});function Ooe(e,t,s,n,r,i){const o=Ae("DatePickerPopover"),l=Ae("DatePickerBase");return e.$slots.default?(p(),y(j,{key:0},[er(e.$slots,"default",Ja(Jc(e.slotCtx))),T(o,Ja(Jc(e.$attrs)),null,16)],64)):(p(),K(l,Ja(ca({key:1},e.$attrs)),null,16))}const Foe=$o(Moe,[["render",Ooe]]),I4=Object.freeze(Object.defineProperty({__proto__:null,Calendar:Qw,DatePicker:Foe,Popover:O0,PopoverRow:zw},Symbol.toStringTag,{value:"Module"})),Noe=(e,t={})=>{e.use(lre,t);const s=e.config.globalProperties.$VCalendar.componentPrefix;for(const n in I4){const r=I4[n];e.component(`${s}${n}`,r)}},Boe={install:Noe},Voe=hs(e=>{e.vueApp.use(Boe,{componentPrefix:"V"})}),Jw="cookie_consent_analytics",em="cookie-consent-changed",tm="cookie-consent-banner-open";function Pu(){return typeof window<"u"}function e7(){if(!Pu())return null;const e=window.localStorage.getItem(Jw);return e==="granted"||e==="denied"?e:null}function T4(e){Pu()&&(window.localStorage.setItem(Jw,e),window.dispatchEvent(new CustomEvent(em,{detail:{analytics:e}})))}function Hoe(e){if(!Pu())return()=>{};const t=s=>{const r=s.detail?.analytics;(r==="granted"||r==="denied")&&e(r)};return window.addEventListener(em,t),()=>window.removeEventListener(em,t)}function Tlt(){Pu()&&window.dispatchEvent(new CustomEvent(tm))}function qoe(e){return Pu()?(window.addEventListener(tm,e),()=>window.removeEventListener(tm,e)):()=>{}}const aa=104760802,joe=`https://mc.yandex.ru/metrika/tag.js?id=${aa}`,Uoe={ssr:!0,webvisor:!0,clickmap:!0,ecommerce:"dataLayer",accurateTrackBounce
8:!0,trackLinks:!0},zoe=hs(()=>{const e=window;let t=!1;const s=()=>{t||((function(n,r,i,o,l){n[l]=n[l]||function(...f){const h=n[l];h.a=h.a||[],h.a.push(f)},n[l].l=Number(new Date);for(let f=0;f<r.scripts.length;f+=1)if(r.scripts[f]?.src===o)return;const u=r.createElement(i);u.async=!0,u.src=o;const d=r.getElementsByTagName(i)[0];d?.parentNode?.insertBefore(u,d)})(e,document,"script",joe,"ym"),e.ym?.(aa,"init",Uoe),t=!0)};e7()==="granted"&&s(),Hoe(n=>{n==="granted"&&s()})}),Woe=hs({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),Goe=[vT,xT,ST,IM,TM,PM,DM,LM,mO,gO,yO,mB,gB,yB,xB,TB,Bq,Vq,Hq,qq,Kj,Voe,zoe,Woe],Yoe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Koe(e,t){return p(),y("svg",Yoe,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m4.207 6.793a1 1 0 0 0-1.414 0L11 12.586l-1.293-1.293a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4.5-4.5a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const Qoe={render:Koe},Xoe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Zoe(e,t){return p(),y("svg",Xoe,[...t[0]||(t[0]=[c("path",{fill:"#FA7A6E","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.707 6.293a1 1 0 0 0-1.414 0L12 10.586 9.707 8.293a1 1 0 1 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 1 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const Joe={render:Zoe};function eae(e,t){const s=t/e*100;return 2/Math.PI*100*Math.atan(s/50)}function tae(e={}){const{duration:t=2e3,throttle:s=200,hideDelay:n=500,resetDelay:r=400}=e,i=e.estimatedProgress||eae,o=Te(),l=fn(0),u=fn(!1),d=fn(!1);let f=!1,h,g,m,_;const v=(P={})=>{w(),d.value=!1,k(0,P)};function k(P=0,L={}){if(o.isHydrating)return;if(P>=100)return C({force:L.force});$(),l.value=P<0?0:P;const D=L.force?0:s;D?g=setTimeout(()=>{u.value=!0,S()},D):(u.value=!0,S())}function x(){m=setTimeout(()=>{u.value=!1,_=setTimeout(()=>{l.value=0},r)},n)}function C(P={}){l.value=100,f=!0,$(),w(),P.error&&(d.value=!0),P.force?(l.value=0,u.value=!1):x()}function w(){clearTimeout(m),clearTimeout(_)}function $(){clearTimeout(g),cancelAnimationFrame(h)}function S(){f=!1;let P;function L(D){if(f)return;P??=D;const R=D-P;l.value=Math.max(0,Math.min(100,i(t,R))),h=requestAnimationFrame(L)}h=requestAnimationFrame(L)}let I=()=>{};{const P=o.hook("page:loading:start",()=>{v()}),L=o.hook("page:loading:end",()=>{C()}),D=o.hook("vue:error",()=>C({error:!0}));I=()=>{D(),P(),L(),$(),w()}}return{_cleanup:I,progress:$f(l),isLoading:$f(u),error:$f(d),start:v,set:k,finish:C,clear:$}}function sae(e={}){const t=Te(),s=t._loadingIndicator||=tae(e);return _o()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,Zo(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(s._cleanup(),delete t._loadingIndicator)})),s}const nae=G({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:s}){const{progress:n,isLoading:r,error:i,start:o,finish:l,clear:u}=sae({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return s({progress:n,isLoading:r,error:i,start:o,finish:l,clear:u}),()=>ot("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.value?1:0,background:i.value?e.errorColor:e.color||void 0,backgroundSize:`${n.value>0?100/n.value*100:0}% auto`,transform:`scaleX(${n.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),t7=(e="RouteProvider")=>G({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const s=t.renderKey,n=t.route,r={};for(const i in t.route)Object.defineProperty(r,i,{get:()=>s===t.renderKey?t.route[i]:n[i],enumerable:!0});return ks(r0,Br(r)),()=>t.vnode?ot(t.vnode,{ref:t.vnodeRef}):t.vnode}}),rae=t7(),P4=new WeakMap,iae=G({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:s,expose:n}){const r=Te(),i=X(),o=ts(r0,null);let l;n({pageRef:i});const u=ts(mI,null);let d;const f=r.deferHydration();let h=!1,g=!1,m=0;if(r.isHydrating){const v=r.hooks.hookOnce("app:error",f),k=is().beforeEach(()=>{v(),k()})}e.pageKey&&Se(()=>e.pageKey,(v,k)=>{v!==k&&r.callHook("page:loading:start")});let _=!1;{const v=is().beforeResolve(()=>{_=!1});Tt(()=>{v(),f()})}return()=>ot(c8,{name:e.name,route:e.route,...t},{default:v=>{const k=oae(o,v.route,v.Component),x=o&&o.matched.length===v.route.matched.length;if(!v.Component){if(d&&!x&&!_p(d))return d;f();return}if(d&&u&&!_p(d)&&!u.isCurrent(v.route))return d;
8if(k&&o&&(!u||u?.isCurrent(o)))return(x||d)&&!_p(d)?d:null;const C=hh(v,e.pageKey),w=aae(o,v.route,v.Component);!r.isHydrating&&l===C&&!w&<(()=>{_||(_=!0,r.callHook("page:loading:end"))}),h&&l!==C&&g&&m++,l=C;const $=!!(e.transition??v.route.meta.pageTransition??Ly),S=$&&zP([e.transition,v.route.meta.pageTransition,Ly,{onAfterLeave(){r["~transitionFinish"]?.(),delete r["~transitionFinish"],delete r["~transitionPromise"],r.callHook("page:transition:finish",v.Component)}}]),I=e.keepalive??v.route.meta.keepalive??JA;return d=VP($&&S,OP(I,ot(n6,{key:m,suspensible:!0,onPending:()=>{h=!0,$&&!r["~transitionPromise"]&&(r["~transitionPromise"]=new Promise(P=>{r["~transitionFinish"]=P})),r.callHook("page:start",v.Component)},onResolve:async()=>{h=!1,g=!0;try{await lt(),r._route.sync?.(),await r.callHook("page:finish",v.Component),!_&&!w&&(_=!0,await r.callHook("page:loading:end"))}finally{f()}}},{default:()=>{const P={key:C||void 0,vnode:s.default?lae(s.default,v):v.Component,route:v.route,renderKey:C||void 0,trackRootNodes:$,vnodeRef:i};if(!I)return ot(rae,P);const L=v.Component.type,D=L;let R=P4.get(D);return R||(R=t7(L.name||L.__name),P4.set(D,R)),ot(R,P)}}))).default(),d}})}});function oae(e,t,s){if(!e)return!1;const n=t.matched.findIndex(o=>o.components?.default===s?.type);if(n===-1)return!1;const r=t.matched.slice(0,n).filter(o=>o.components?.default);if(!r.length)return!1;const i=e.matched.filter(o=>o.components?.default);return r.some((o,l)=>o.components?.default!==i[l]?.components?.default)||s&&hh({route:t,Component:s})!==hh({route:e,Component:s})}function aae(e,t,s){return e?t.matched.findIndex(r=>r.components?.default===s?.type)<t.matched.length-1:!1}function lae(e,t){const s=e(t);return s.length===1?ot(s[0]):ot(j,void 0,s)}function _p(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}const cae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function uae(e,t){return p(),y("svg",cae,[...t[0]||(t[0]=[c("path",{fill:"#fff","fill-opacity":".32","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.707 6.293a1 1 0 0 0-1.414 0L12 10.586 9.707 8.293a1 1 0 1 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 1 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const s7={render:uae},dae={class:"mb-3 flex items-start justify-between gap-4"},fae={class:"text-16-bold"},pae={class:"mt-1 text-13"},hae={class:"flex gap-2"},mae=["aria-current","onClick"],gae=G({__name:"AppSectionSwitcher",setup(e){const{t}=be(),s=is(),n=st(),r=Ne(),i=[{labelKey:"sectionSwitcher.home",to:"/"},{labelKey:"sectionSwitcher.company",to:"/company"},{labelKey:"home.master",to:"/master"}],o=A(()=>n.path.startsWith("/company")?"/company":n.path.startsWith("/master")?"/master":n.path==="/"?"/":null),l=A(()=>o.value!==null&&r.shouldShowSectionSwitcher);function u(){r.hideSectionSwitcher()}async function d(f){n.path!==f&&await s.push(f)}return(f,h)=>{const g=s7;return p(),K(Un,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0 translate-y-3","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-3"},{default:Xe(()=>[l.value?(p(),y("div",{key:0,class:oe(["fixed inset-x-0 bottom-0 z-[110]",a(r).isAuthorized?"auth:left-1/2 auth:right-auto auth:w-auto auth:-translate-x-1/2 auth:bottom-6":"xl:left-1/2 xl:right-auto xl:w-auto xl:-translate-x-1/2 xl:bottom-6"])},[c("div",{class:oe(["w-full rounded-none bg-black px-5 pb-5 pt-3 text-white shadow-[0_16px_48px_rgba(0,0,0,0.18)]",a(r).isAuthorized?"auth:w-fit auth:rounded-[24px] auth:px-4 auth:pb-4 auth:pt-3":"xl:w-fit xl:rounded-[24px] xl:px-4 xl:pb-4 xl:pt-3"])},[c("div",dae,[c("div",null,[c("p",fae,b(a(t)("sectionSwitcher.title")),1),c("p",pae,b(a(t)("sectionSwitcher.description")),1)]),c("button",{type:"button",class:oe(["group flex h-6 w-6 flex-shrink-0 items-center justify-center transition-opacity",a(r).isAuthorized?"auth:hover:opacity-80":"xl:hover:opacity-80"]),"aria-label":"ÐакÑÑÑÑ Ð¿ÐµÑеклÑÑаÑÐµÐ»Ñ Ñазделов",onClick:u},[T(g,{class:oe(["h-6 w-6 transition-all duration-200 [&>path]:fill-white [&>path]:[fill-opacity:0.32]",a(r).isAuthorized?"auth:group-hover:[&>path]:[fill-opacity:1]":"xl:group-hover:[&>path]:[fill-opacity:1]"])},null,8,["class"])],2)]),c("div",hae,[(p(),y(j,null,le(i,m=>c("button",{key:m.to,type:"button",class:oe(["flex h-12 flex-none items-center justify-center rounded-[12px] bg-transparent-white8 px-4 text-center text-13 text-white transition-colors duration-200",a(r).isAuthorized?"auth:hover:bg-white auth:hover:text-purple-50":"xl:hover:bg-white xl:hover:text-purple-50"]),"aria-current":o.value===m.to?"page":void 0,onClick:_=>d(m.to)},b(a(t)(m.labelKey)),11,mae)),64))])],2)],2)):E("",!0)]),_:1})}}}),yae=Object.assign(gae,{__name:"AppSectionSwitcher"}),_ae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function vae(e,t){return p(),y("svg",_ae,[...t[0]||(t[0]=[c("path",{fill:"#000","fill-rule":"evenodd",d:"M15.707 4.293a1 1 0 0 0-1.414 0l-7 7a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414-1.414L9.414 12l6.293-6.293a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const n7={render:vae},bae=G({__name:"PanelBackButton",emits:["close"],setup(e){return(t,s)=>{const n=n7;return p(),y("button",{class:"flex items-center justify-center w-[72px] h-[48px] rounded-full bg-grey-90 xl:hover:bg-grey-80 transition-colors",onClick:s[0]||(s[0]=r=>t.$emit("close"))},[T(n,{class:"w-6 h-6","aria-hidden":"true"})])}}}),Z2=Object.assign(bae,{__name:"PanelBackButton"}),xae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function kae(e,t){return p(),y("svg",xae,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M4 10.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M12 10.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M20 10.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"},null,-1)])])}const r7={render:kae},wae={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Cae(e,t){return p(),y("svg",wae,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M9.675 1.62a.5.5 0 0 1 .816.478L9.583 6.63l3.538.885a.5.5 0 0 1 .204.865l-7 6a.5.5 0 0 1-.815-.478l.906-4.533-3.537-.884a.5.5 0 0 1-.204-.865z"},null,-1)])])}const J2={render:Cae},$ae={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Sae(e,t){return p(),y("svg",$ae,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11","clip-rule":"evenodd"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M6.75 5.5c.239 0 .44.2.44.439v4.122a.445.445 0 0 1-.44.439c-.239 0-.44-.2-.44-.439V5.94c0-.239.201-.439.44-.439m2.5 0c.239 0 .44.2.44.439v4.122a.445.445 0 0 1-.44.439c-.239 0-.44-.2-.44-.439V5.94c0-.239.201-.439.44-.439","clip-rule":"evenodd"},null,-1)])])}const i7={render:Sae},Aae={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Iae(e,t){return p(),y("svg",Aae,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M11.84 7.21 5.97 3.08c-.32-.23-.75 0-.75.39v9.06c0 .39.43.62.75.39l5.87-4.13c.28-.2.28-.38 0-1.58m.67 1.73-5.87 4.13c-.96.69-1.92.01-1.92-.54V3.47c0-.55.96-1.23 1.92-.54l5.87 4.13c.6.43.6 1.45 0 1.73Z","clip-rule":"evenodd"},null,-1)])])}const o7={render:Iae},Tae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Pae(e,t){return p(),y("svg",Tae,[...t[0]||(t[0]=[c("path",{fill:"#909996",d:"M10 9a1 1 0 0 1 1 1v5l-.005.102a1 1 0 0 1-1.99 0L9 15v-5a1 1 0 0 1 1-1M14 9a1 1 0 0 1 1 1v5l-.005.102a1 1 0 0 1-1.99 0L13 15v-5a1 1 0 0 1 1-1"},null,-1),c("path",{fill:"#909996","fill-rule":"evenodd",d:"M21 5a1 1 0 1 1 0 2h-1.064l-.64 9.586c-.05.773-.093 1.411-.169 1.929-.078.53-.201 1.014-.458 1.465a4 4 0 0 1-1.732 1.62c-.467.226-.958.317-1.492.359-.521.041-1.16.041-1.935.041h-3.02c-.774 0-1.414 0-1.935-.041-.534-.042-1.025-.133-1.492-.36A4 4 0 0 1 5.33 19.98c-.257-.45-.38-.936-.458-1.465-.076-.518-.118-1.156-.17-1.93L4.064 7H3a1 1 0 0 1 0-2zM6.7 16.453c.053.805.09 1.35.152 1.772.06.408.134.618.217.765a2 2 0 0 0 .866.81c.152.074.366.133.778.166.424.034.97.034 1.7
877.034h3.02c.806 0 1.353 0 1.777-.034.412-.033.626-.092.778-.166a2 2 0 0 0 .866-.81c.084-.147.157-.357.217-.765.062-.421.1-.967.153-1.772L17.93 7H6.069z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#909996",d:"M15 2a1 1 0 1 1 0 2H9a1 1 0 0 1 0-2z"},null,-1)])])}const jl={render:Pae},Dae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Eae(e,t){return p(),y("svg",Dae,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M15 12a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2zM12.5 8.5a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M12.654 2.021a10 10 0 1 1-3.68 19.51c-.519-.165-.896-.285-1.174-.368a5 5 0 0 0-.455-.122 2 2 0 0 0-.247-.03c-.03 0-.073.002-.247.02-.14.013-.338.063-.972.233-.396.106-.756.203-1.052.256-.29.05-.673.091-1.063-.043a2 2 0 0 1-1.242-1.242c-.134-.39-.093-.772-.042-1.062.053-.296.15-.656.256-1.052.17-.634.22-.833.234-.973.017-.173.019-.217.018-.247 0-.03-.004-.073-.03-.246a5 5 0 0 0-.121-.455c-.084-.278-.204-.655-.368-1.175A10 10 0 0 1 12.654 2.021m-.13 1.997a8 8 0 0 0-8.15 10.402c.163.512.289.909.378 1.206.083.279.155.536.185.738.025.165.047.322.051.491.004.17-.011.328-.028.494-.035.342-.144.738-.292 1.29a12 12 0 0 0-.219.882l-.005.034.034-.004c.19-.034.452-.103.883-.219.552-.148.948-.257 1.29-.292.166-.017.324-.032.493-.028.17.003.327.026.492.05.202.03.459.102.738.186.297.09.694.214 1.206.377a8 8 0 1 0 2.943-15.607","clip-rule":"evenodd"},null,-1)])])}const Du={render:Eae},Lae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Rae(e,t){return p(),y("svg",Lae,[...t[0]||(t[0]=[c("path",{fill:"#111","fill-rule":"evenodd",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414","clip-rule":"evenodd"},null,-1)])])}const eg={render:Rae},Mae=G({__name:"PanelCloseButton",emits:["close"],setup(e){return(t,s)=>{const n=eg;return p(),y("button",{class:"flex items-center justify-center w-[72px] h-[48px] rounded-full bg-grey-90 xl:hover:bg-grey-80 transition-colors",onClick:s[0]||(s[0]=r=>t.$emit("close"))},[T(n,{class:"w-6 h-6","aria-hidden":"true"})])}}}),a7=Object.assign(Mae,{__name:"PanelCloseButton"}),l7=Ke("loginPhone",{state:()=>({phoneValue:"",isLoading:!1,isEnabled:!1,showAlert:!1,isCaptchaLoad:!1,svgContent:"",authIdRoute:"",segmentationChoice:null,claimTitle:null,error:null}),actions:{updatePhoneValue(e){e.replace(/\D/g,"").length===11?this.isEnabled=!0:this.isEnabled=!1,this.phoneValue=e},setSegmentationChoice(e){this.segmentationChoice=e},setClaimTitle(e){this.claimTitle=e},async send(){this.isLoading=!0;const e=ue(),t=this.phoneValue.replace(/\D/g,""),s=this.segmentationChoice,n=this.claimTitle;this.segmentationChoice=null,this.claimTitle=null;const r=await e.fetchLoginPhone(t,s,n);return this.isLoading=!1,r},async handleCaptcha(e){this.isCaptchaLoad=!0;const t=ue(),s=this.phoneValue.replace(/\D/g,""),n=await t.sendCaptha(s,this.authIdRoute,e);return this.isCaptchaLoad=!1,n},resetPhone(){this.isEnabled=!1,this.phoneValue=""}}}),F0=Ke("loginCodeStore",{state:()=>({phone:"",code:"",id:"",sessionData:"",signupFields:[],isLoading:!1,isResendLoading:!1,isEnabled:!1,error:null,timerId:null,remindSeconds:60}),actions:{updateInfo(e,t){this.phone=t,this.id=e,wi(e),this.isEnabled=!1,this.signupFields=[],this.remindSeconds=60,this.startTimer()},timerFired(){const e=this.remindSeconds;e>0?(this.remindSeconds=e-1,this.startTimer()):this.remindSeconds=0},startTimer(){this.timerId!==null&&clearTimeout(this.timerId),this.timerId=window.setTimeout(()=>{this.timerId=null,this.timerFired()},1e3)},stopTimer(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}
8,updateCode(e){this.error=null,this.code=e},updateId(e){this.id=e},async getAllAddresses(e=!1){const t=ue(),s=Ne(),n=Oe(),r=await t.fetchUserInfoAndAddresses(this.sessionData);return r.ok?(r.data.selectAddresses.length>0||e)&&(this.sessionData&&this.sessionData.length>0&&s.setSession(this.sessionData),n.saveUser(r.data)):(this.$reset(),Bt("/login/phone")),r},async send(){this.isLoading=!0;const e=ue(),t=this.phone.replace(/\D/g,"");wi(this.id);const s=await e.fetchLoginCode(t,this.id,this.code);return s.ok?(this.sessionData=s.data.btlrsid,this.signupFields=s.data.signupFields):(this.code="",this.error=s.error),this.isLoading=!1,s},async resend(){this.isResendLoading=!0;const e=ue(),t=this.phone.replace(/\D/g,"");wi(`${this.phone} pv ${t}`);const s=await e.fetchLoginPhone(t);return this.isResendLoading=!1,s.ok&&(this.id=s.data.id,this.remindSeconds=60,this.startTimer()),s}}}),N0=Ke("loginCaptca",{state:()=>({phoneValue:"",smartKey:"",isLoading:!1,showAlert:!1,isCapthcaLoad:!1,isFromCode:!1,svgContent:"",authIdRoute:"",captcaCode:"",error:null}),getters:{isButtonEnable:e=>e.captcaCode.length>0},actions:{async send(){this.isLoading=!0;const e=ue(),t=this.phoneValue.replace(/\D/g,""),s=await e.fetchLoginPhone(t);return this.isLoading=!1,s},async reloadCaptcha(){if(this.isCapthcaLoad)return{ok:!0,data:{success:!0,step:"captcha",svg:this.svgContent}};const e=ue(),t=this.phoneValue.replace(/\D/g,""),s=await e.getCaptha(t,this.authIdRoute);return s.ok&&(this.showAlert=!0,this.svgContent=s.data.svg),s},async handleCaptcha(e){this.isLoading=!0;const t=ue(),s=this.phoneValue.replace(/\D/g,""),n=await t.sendCaptha(s,this.authIdRoute,e);return this.isLoading=!1,n}}}),$l=Ke("loginAddressList",{state:()=>({isLoading:!1,error:null,addresses:[],searchExample:"",searchQuery:"",sessionId:"",nameQuery:""}),actions:{setFromData(e){this.sessionId!==e&&(this.searchExample=""),this.sessionId=e},updateSearchQuery(e){this.searchQuery=e,e.length>2?this.fetchAddresses(e):this.addresses=[]},updateNameQuery(e){this.nameQuery=e},async fetchAddresses(e){this.isLoading=!0,this.error=null;const s=await ue().fetchAddresses(e,this.sessionId);return s.ok?this.addresses=s.data.suggestions:this.error=s.error,this.isLoading=!1,s},async fetchSearchExample(){if(this.searchExample.length>0)return;const t=await ue().fetchAddresses("",this.sessionId);t.ok&&(this.searchExample=t.data.example)},clearAddresses(){this.addresses=[],this.searchQuery="",this.nameQuery=""}}}),uu=Ke("loginAddressAdd",{state:()=>({isLoading:!1,error:null,sessionId:"",houseId:"",address:"",streetPart:"",settlementPart:"",types:[Re.flat,Re.parkingSpot,Re.storeRoom,Re.withoutFunctional],selectedType:Re.flat,flatEntrence:"",flatFloor:"",flatNumber:"",parkingSpotNumber:"",storeRoomNumber:"",withoutComersialNumber:"",organizationName:"",withOrganizationName:!1}),getters:{availableTypes:e=>e.withOrganizationName?[Re.parkingSpot,Re.withoutFunctional]:e.types,isButtonEnable:e=>{const t=!e.withOrganizationName||e.organizationName.trim().length>0;let s=!1;switch(e.selectedType){case Re.flat:{s=e.flatNumber.length>0&&e.flatEntrence.length>0&&e.flatFloor.length>0;break}case Re.parkingSpot:{s=e.parkingSpotNumber.length>0;break}case Re.storeRoom:{s=e.storeRoomNumber.length>0;break}case Re.commercialStoreroom:{s=e.withoutComersialNumber.length>0;break}case Re.withoutFunctional:{s=e.withoutComersialNumber.length>0;break}}return s&&t}},actions:{getDisplayType(e){switch(e){case Re.flat:return"address.add.flat";case Re.parkingSpot:return"address.add.parking";case Re.storeRoom:return"address.add.store";case Re.commercialStoreroom:return"address.add.commercial";case Re.withoutFunctional:return"address.add.commercial"}return""},updateType(e){this.selectedType=e},ensureSelectedTypeAvailable(){this.availableTypes.includes(this.selectedType)||(this.selectedType=this.availableTypes[0]??Re.flat)},getDisplayPlaceholder(){switch(this.selectedType){case Re.flat:return"";case Re.parkingSpot:return"address.add.parkingNumber";case Re.storeRoom:return"address.add.storeNumber";case Re.commercialStoreroom:return"address.add.commercialNumber";case Re.withoutFunctional:return"address.add.commercialNumber"}return""},setFromData(e,t,s,n,r,i=!1){this.houseId=e,this.address=t,this.streetPart=s,this.settlementPart=n,this.sessionId=r,this.organizationName="",this.withOrganizationName=i,this.ensureSelectedTypeAvailable()},async save(){this.isLoading=!0;const e=ue();let t="",s="",n="";const r=this.selectedType;switch(r){case Re.flat:{t=this.flatNumber,s=this.flatEntrence,n=this.flatFloor;break}case Re.parkingSpot:{t=this.parkingSpotNumber;break}case Re.storeRoom:{t=this.storeRoomNumber;break}case Re.commercialStoreroom:{t=this.withoutComersialNumber;break}case Re.withoutFunctional:{t=this.withoutComersialNumber;break}}const i=await e.addAddress(this.houseId,t,s,n,r,this.organizationName.trim(),this.sessionId);if(i.ok){const o=await e.fetchUserInfoAndAddresses(this.sessionId);if(o.ok){const l=Ne(),u=Oe();l.setSession(this.sessionId??""),u.saveUser(o.data)}else this.$reset(),Bt("/login/phone");this.isLoading=!1}else this.isLoading=!1,this.error=i.error;return i}}}),B0=Ke("registrationSuccess",{state:()=>({withOrganizationName:!1,shouldOpenOrganizationPanel:!1}),actions:{open({withOrganizationName:e,shouldOpenOrganizationPanel:t}){this.withOrganizationName=e,this.shouldOpenOrganizationPanel=t}}}),Oae={class:"relative"},Fae={class:"group box-border w-full min-h-[56px] px-4 py-3 rounded-lg transition-colors duration-200 border border-grey-80 bg-white focus-within:border-transparent focus-within:ring-2 focus-within:ring-paleLime-primary"},Nae=G({__name:"CommentLabeledTextField",props:{inputMode:{default:void 0},autoComplete:{default:void 0},digitsOnlyOnPaste:{type:Boolean,default:!1},pasteSanitizer:{type:Function,default:void 0},modelValue:{default:""},placeholderText:{default:""},inputType:{default:"text"},formatter:{type:Function,default:void 0},multiline:{type:Boolean,default:!1},maxLength:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,r=X(!1),i=X(null),o=A(()=>r.value||String(s.modelValue??"").length>0),l=()=>{if(s.multiline&&i.value){const f=i.value;f.style.height="56px",f.style.height=`${Math.max(56,f.scrollHeight)}px`}};je(()=>{lt(l)}),Se(()=>s.modelValue,()=>{lt(l)});const u=f=>{const h=f.target;if(s.formatter){const{text:g,selection:m}=s.formatter(String(s.modelValue??""),h.value,h.selectionStart??0,h.selectionEnd??0);h.value!==g&&(h.value=g),n("update:modelValue",g),lt(()=>{i.value?.setSelectionRange(m.start,m.end),l()})}else n("update:modelValue",h.value),lt(l)},d=f=>{if(!s.pasteSanitizer&&!s.digitsOnlyOnPaste){s.multiline&<(l);return}const h=f.target;if(!h)return;f.preventDefault();const g=f.clipboardData?.getData("text")??"",_=(S=>typeof s.pasteSanitizer=="function"?s.pasteSanitizer(S):s.digitsOnlyOnPaste?S.replace(/\D+/g,""):S)(g);if(!_)return;const v=h.selectionStart??h.value.length,k=h.selectionEnd??v,x=h.value.slice(0,v),C=h.value.slice(k),w=x+_+C,$=x.length+_.length;if(s.formatter){const{text:S,selection:I}=s.formatter(String(s.modelValue??""),w,$,$);h.value!==S&&(h.value=S),n("update:modelValue",S),lt(()=>{i.value?.setSelectionRange(I.start,I.end),l()})}
8else h.value!==w&&(h.value=w),n("update:modelValue",w),lt(()=>{i.value?.setSelectionRange($,$),l()})};return(f,h)=>(p(),y("div",Oae,[c("div",Fae,[c("label",{class:oe(["pointer-events-none absolute left-4 right-4 transition-all duration-200 ease-out text-grey-40",[o.value?"top-2 text-11":"top-1/2 -translate-y-1/2 text-16"]])},b(e.placeholderText),3),(p(),K(Jn(e.multiline?"textarea":"input"),{ref_key:"inputRef",ref:i,inputmode:e.inputMode,autocomplete:e.autoComplete,value:e.modelValue,type:e.multiline?void 0:e.inputType,rows:e.multiline?1:void 0,maxlength:e.maxLength,placeholder:" ",class:oe(["block w-full -my-3 pt-6 pb-2 bg-transparent outline-none text-16 text-black caret-paleLime-primary appearance-none [&:-webkit-autofill]:shadow-[inset_0_0_0_1000px_transparent] [&:-webkit-autofill]:[transition:background-color_9999s_ease-in-out_0s] [&:-webkit-autofill]:text-black",{"h-[56px]":!e.multiline,"min-h-[56px] resize-none overflow-hidden":e.multiline}]),onFocus:h[0]||(h[0]=g=>r.value=!0),onBlur:h[1]||(h[1]=g=>r.value=!1),onInput:u,onPaste:d},null,40,["inputmode","autocomplete","value","type","rows","maxlength","class"]))])]))}}),ti=Object.assign(Nae,{__name:"CommentLabeledTextField"}),Bae={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Vae(e,t){return p(),y("svg",Bae,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M11 1.5a.5.5 0 0 1 .5.5v.503q.367.003.654.026c.365.03.685.093.98.243a2.5 2.5 0 0 1 1.093 1.093c.151.296.214.616.244.98.029.36.029.803.029 1.355v4.6c0 .552 0 .996-.03 1.354-.03.365-.092.685-.243.98a2.5 2.5 0 0 1-1.092 1.093c-.296.151-.616.214-.98.244-.36.029-.803.029-1.355.029H5.2c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.092c-.15-.296-.213-.616-.243-.98-.029-.36-.029-.803-.029-1.355V6.2c0-.552 0-.996.03-1.354.03-.365.092-.685.242-.98.24-.471.623-.854 1.093-1.094.296-.15.616-.213.98-.243a10 10 0 0 1 .655-.026V2a.5.5 0 0 1 1 0v.5h5V2a.5.5 0 0 1 .5-.5m-8.5 9.3c0 .568 0 .965.025 1.273.025.302.071.476.138.608.144.282.374.512.656.656.132.067.306.113.608.138.308.025.705.025 1.273.025h5.6c.568 0 .965 0 1.273-.025.302-.025.476-.071.608-.138.282-.144.512-.374.656-.656.067-.132.113-.306.138-.608.025-.308.025-.705.025-1.273V7.5h-11zm3-6.8a.5.5 0 0 1-1 0v-.498c-.224.003-.41.01-.573.023-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C2.5 5.235 2.5 5.632 2.5 6.2v.3h11v-.3c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138a9 9 0 0 0-.573-.023V4a.5.5 0 0 1-1 0v-.5h-5z","clip-rule":"evenodd"},null,-1)])])}const si={render:Vae},Hae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function qae(e,t){return p(),y("svg",Hae,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M11 19v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 1 1 2 0v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0"},null,-1)])])}const pa={render:qae},jae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Uae(e,t){return p(),y("svg",jae,[...t[0]||(t[0]=[c("path",{fill:"#111","fill-rule":"evenodd",d:"M17.612 5.245a4.25 4.25 0 0 0-6.01 0l-6.895 6.894a1 1 0 0 1-1.414-1.414l6.894-6.894a6.25 6.25 0 1 1 8.839 8.839l-7.955 7.955a4.5 4.5 0 0 1-6.364-6.364l7.955-7.955a2.75 2.75 0 0 1 3.89 3.888L9.656 17.09a1 1 0 0 1-1.414-1.414l6.894-6.895a.75.75 0 1 0-1.06-1.06L6.12 15.675a2.5 2.5 0 0 0 3.536 3.535l7.955-7.955a4.25 4.25 0 0 0 0-6.01","clip-rule":"evenodd"},null,-1)])])}const V0={render:Uae},zae={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Wae(e,t){return p(),y("svg",zae,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M12 16a1 1 0 0 1 0 2H9a1 1 0 1 1 0-2zM15 13a1 1 0 0 1 0 2H9a1 1 0 1 1 0-2z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M11.012 2c.686 0 1.192-.007 1.68.11.408.098.798.26 1.156.48.427.262.78.624 1.265 1.11l3.188 3.187c.485.485.847.838 1.11 1.265.218.358.38.749.479 1.157.117.487.11.993.11 1.68V16.2c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.748c-.485.248-1.002.346-1.564.392-.55.045-1.228.044-2.052.044H9.8c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C3.999 17.702 4 17.024 4 16.2V7.8c0-.824-.001-1.502.044-2.052.046-.562.144-1.08.392-1.564a4 4 0 0 1 1.748-1.749c.485-.247 1.002-.345 1.564-.391C8.298 1.999 8.976 2 9.8 2zM9.8 4c-.857 0-1.439 0-1.889.037-.438.036-.663.101-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.82C6 6.361 6 6.942 6 7.8v8.4c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C8.361 20 8.942 20 9.8 20h4.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.032.038-1.888v-5.212c0-.527-.005-.802-.021-.988h-.18c-.823 0-1.5.001-2.051-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C11.999 5.702 12 5.024 12 4.2v-.179A12 12 0 0 0 11.012 4zm4.208 1.422c.005.254.013.473.03.667.035.438.1.663.18.82a2 2 0 0 0 .874.873c.156.08.38.145.82.18.193.017.411.024.665.03z","clip-rule":"evenodd"},null,-1)])])}const ha={render:Wae};function D4(){return{title:"",question:"",votingType:"boolean",customValues:[],votingFinishedAt:"",files:[]}}const Ul=Ke("polls",{state:()=>({screen:null,details:null,detailsError:null,error:null,isLoading:!1,isDetail
8sLoading:!1,isCreating:!1,isDeleting:!1,createDraft:D4(),requestId:0,detailsRequestId:0}),actions:{async loadActive(e){return await this.loadByFilter(e,"active")},async loadFinished(e){return await this.loadByFilter(e,"finished")},async loadByFilter(e,t){const s=Ne();if(!s.isAuthorized||!e)return this.clear(),null;const n=++this.requestId,r=s.sessionToken,i=ue();this.isLoading=!0,this.screen=null,this.error=null;const o=await i.fetchPolls({premisesId:e,page:1,count:20,filter:t});return n!==this.requestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.screen=o.data,this.error=null):(this.screen=null,this.error=o.error),this.isLoading=!1,o)},async closeRatingOpportunityBanner(e,t){if(this.screen&&(this.screen.ratingOpportunityBanner=null),!e||!t)return;await ue().viewRatingOpportunityBanner(e,t)},async vote(e,t,s){if(!Ne().isAuthorized||!e||!t)return null;const i=await ue().sendPollVoice(e,t,s);return i.ok&&this.applyVote(t,s),i},applyVote(e,t){[...this.screen?.surveys??[],...this.details?.survey?[this.details.survey]:[]].filter(n=>n.surveyId===e).forEach(n=>{if(n.isIVoted=!0,n.myVoice=t,Array.isArray(n.votingResult)){const r=n.votingResult.find(i=>i.id===t);r?(r.count+=1,r.voicesCount+=1):n.votingResult.push({id:t,count:1,voicesCount:1})}else if(n.votingResult){const r=n.voiceValues.find(l=>l.id===t),i=typeof r?.value=="number"?r.value:null,o=n.votingResult.voicesCount;i!=null&&(n.votingResult.value=n.votingResult.value==null?i:(n.votingResult.value*o+i)/(o+1),n.votingResult.voicesCount=o+1)}})},setCreateVotingType(e){this.createDraft.votingType=e},addCreateCustomValue(e){const t=e.trim();this.createDraft.customValues.length>=9||t&&this.createDraft.customValues.push(t)},removeCreateCustomValue(e){e<0||e>=this.createDraft.customValues.length||this.createDraft.customValues.splice(e,1)},setCreateFiles(e){this.createDraft.files=e.slice(0,10)},addCreateFiles(e){this.createDraft.files=[...this.createDraft.files,...e].slice(0,10)},removeCreateFile(e){e<0||e>=this.createDraft.files.length||this.createDraft.files.splice(e,1)},setCreateVotingFinishedAt(e){this.createDraft.votingFinishedAt=e},resetCreateDraft(){this.createDraft=D4(),this.isCreating=!1},async create(e){if(!Ne().isAuthorized||!e)return null;const s=ue(),n=this.createDraft.votingType==="custom"?this.createDraft.customValues.map(i=>i.trim()).filter(Boolean):[];this.isCreating=!0;const r=await s.createPoll({premisesId:e,title:this.createDraft.title.trim(),question:this.createDraft.question.trim(),votingType:this.createDraft.votingType,customValues:n,votingFinishedAt:this.createDraft.votingFinishedAt,files:this.createDraft.files});return this.isCreating=!1,r.ok&&this.resetCreateDraft(),r},async deletePoll(e,t){if(!Ne().isAuthorized||!e||!t)return null;const n=ue();this.isDeleting=!0;const r=await n.deletePoll(e,t);return this.isDeleting=!1,r.ok&&(this.screen=this.screen?{...this.screen,surveys:this.screen.surveys.filter(i=>i.surveyId!==t)}:null,this.clearDetails()),r},async loadDetails(e,t){const s=Ne();if(!s.isAuthorized||!e||!t)return this.clearDetails(),null;const n=++this.detailsRequestId,r=s.sessionToken,i=ue();this.isDetailsLoading=!0,this.details=null,this.detailsError=null;const o=await i.fetchPollDetails(e,t);return n!==this.detailsRequestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.details=o.data,this.detailsError=null):(this.details=null,this.detailsError=o.error),this.isDetailsLoading=!1,o)},clearDetails(){this.detailsRequestId+=1,this.details=null,this.detailsError=null,this.isDetailsLoading=!1},clear(){this.requestId+=1,this.detailsRequestId+=1,this.screen=null,this.details=null,this.detailsError=null,this.error=null,this.isLoading=!1,this.isDetailsLoading=!1,this.isDeleting=!1,this.resetCreateDraft()}}}),La=1280,Gae=.8,Yae=.85,c7=new Set(["image/jpeg","image/png","image/webp"]),Kae=new Set(["image/heic","image/heif","image/heic-sequence","image/heif-sequence"]),Qae=/\.(?:heic|heif)(?:$|[?#])/i,vp=new Map;function R1(e,t=""){return Kae.has(t.toLowerCase())||Qae.test(e)}function Eu(e){return R1(e.name,e.type)}function M1(e){return c7.has(e.type.toLowerCase())||Eu(e)}async function Xae(e){const{heicTo:t}=await wt(async()=>{const{heicTo:s}=await import("./fcHZpvsg.js");return{heicTo:s}},[],import.meta.url);return await t({blob:e,type:"image/jpeg",quality:Yae})}async function Zae(e,t=""){const s=vp.get(e);if(s)return await s;const n=(async()=>{const r=await fetch(e);if(!r.ok)throw new Error(`Failed to load image: ${r.status}`);const i=await r.blob();if(!R1(e,t)&&!R1("",i.type))throw new Error("Image is not HEIC or HEIF");const o=await Xae(i);
8return await ma(new File([o],"heic-preview.jpg",{type:"image/jpeg"}))})();vp.set(e,n);try{return await n}catch(r){throw vp.delete(e),r}}async function ma(e){return c7.has(e.type.toLowerCase())?await new Promise((t,s)=>{const n=new Image,r=URL.createObjectURL(e);n.onload=()=>{URL.revokeObjectURL(r);const i=document.createElement("canvas"),o=i.getContext("2d");if(!o){s(new Error("Failed to resize image"));return}let{width:l,height:u}=n;l>u?l>La&&(u=Math.round(u*La/l),l=La):u>La&&(l=Math.round(l*La/u),u=La),i.width=l,i.height=u,o.drawImage(n,0,0,l,u),i.toBlob(d=>{if(!d){s(new Error("Failed to resize image"));return}t(new File([d],e.name,{type:e.type}))},e.type,Gae)},n.onerror=()=>{URL.revokeObjectURL(r),s(new Error("Failed to load image"))},n.src=r}):e}async function u7(e){return await Promise.all(e.map(async t=>M1(t)?await ma(t):t))}const Jae=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})([+-]\d{2})$/;function ele(e){const t=e.getFullYear(),s=Ro(e.getMonth()+1,2),n=Ro(e.getDate(),2),r=Ro(e.getHours(),2),i=Ro(e.getMinutes(),2),o=Ro(e.getSeconds(),2),l=Ro(e.getMilliseconds(),3),u=Math.trunc(-e.getTimezoneOffset()/60),f=`${u>=0?"+":"-"}${Ro(Math.abs(u),2)}`;return`${t}-${s}-${n}T${r}:${i}:${o}.${l}${f}`}function H0(e){const t=e.replace(Jae,"$1$2:00");return new Date(t)}function Ro(e,t){return String(e).padStart(t,"0")}const tle={class:"flex h-full flex-col"},sle={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},nle={class:"text-24-bold text-black"},rle={class:"mt-6"},ile={class:"text-16 text-black"},ole={class:"mt-6"},ale={class:"text-16 text-black"},lle={class:"mt-6"},cle={class:"text-16 text-black"},ule={class:"mt-6"},dle={class:"text-16 text-black"},fle={class:"mt-3 flex flex-wrap gap-2"},ple=["onClick"],hle={key:0,class:"mt-6"},mle={class:"mt-1 text-13 text-grey-40"},gle={class:"mt-3 flex flex-col gap-2"},yle={key:0,class:"flex gap-2"},_le=["placeholder","onKeydown"],vle=["aria-label","disabled"],ble={class:"min-w-0 flex-1 break-words text-16 text-[#212926]"},xle=["aria-label","onClick"],kle={class:"mt-6"},wle={class:"text-16 text-black"},Cle={class:"mt-1 text-13 text-grey-40"},$le={key:1,class:"mt-2 flex flex-col gap-2"},Sle=["src"],Ale={class:"min-w-0 flex-1 truncate text-16 text-[#212926]"},Ile=["aria-label","onClick"],Tle={class:"px-6 pb-6 pt-4"},Ple=G({__name:"PollCreatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ul(),i=Oe(),{$showSnackbar:o}=Te(),{t:l}=be(),u=X(null),d=X(""),f=fn(new Map),h=r.createDraft,g=A(()=>i.residence?.premisesId??null),m=A(()=>[{label:l("drawer.polls.create.votingBoolean"),value:"boolean"},{label:l("drawer.polls.create.votingGrade"),value:"grade"},{label:l("drawer.polls.create.votingCustom"),value:"custom"}]),_=A(()=>h.customValues.map(D=>D.trim()).filter(Boolean)),v=A(()=>h.customValues.length<9),k=A(()=>d.value.trim().length>0&&v.value),x=A(()=>h.files.length<10),C=A(()=>h.title.trim().length>0&&h.question.trim().length>0&&h.votingFinishedAt.length>0&&(h.votingType!=="custom"||_.value.length>=2)),w=A(()=>{if(!h.votingFinishedAt)return"";const D=H0(h.votingFinishedAt);return Number.isNaN(D.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric"}).format(D)});function $(){s("go","premises-survey-date")}async function S(D){const R=D.target,F=Math.max(0,10-h.files.length);let N=Array.from(R.files??[]).slice(0,F);try{N=await u7(N)}catch{o(l("imageProcessError")),R.value="";return}r.addCreateFiles(N),R.value=""}function I(D){const R=f.value.get(D);if(R)return R;const F=URL.createObjectURL(D);return f.value.set(D,F),F}Se(()=>h.files.slice(),D=>{const R=new Set(D);for(const[F,N]of f.value)R.has(F)||(URL.revokeObjectURL(N),f.value.delete(F))}),Tt(()=>{for(const D of f.value.values())URL.revokeObjectURL(D);f.value.clear()});function P(){k.value&&(r.addCreateCustomValue(d.value),d.value="")}async function L(){const D=await r.create(g.value);if(!D?.ok){o(D?.error.message??l("drawer.polls.create.createError"));return}o(l("drawer.polls.create.created"),!1),r.loadActive(g.value);const R={...n.query};delete R.panel,Bt({path:n.path,query:R})}return(D,R)=>{const F=Ae("LabeledTextField"),N=ti,z=si,me=pa,ge=jl,fe=V0,te=Ae("PrimaryButton"),V=ha,pe=eg;return p(),y("div",tle,[c("div",sle,[c("h1",nle,b(a(l)("drawer.polls.create.title")),1),c("div",rle,[c("label",ile,b(a(l)("drawer.polls.create.question")),1),T(F,{modelValue:a(h).title,"onUpdate:modelValue":R[0]||(R[0]=ye=>a(h).title=ye),class:"mt-2",label:a(l)("drawer.polls.create.questionPlaceholder"),type:"text"},null,8,["modelValue","label"])]),c("div",ole,[c("label",ale,b(a(l)("drawer.polls.create.description")),1),T(N,{modelValue:a(h).question,"onUpdate:modelValue":R[1]||(R[1]=ye=>a(h).question=ye),class:"mt-2","placeholder-text":a(l)("drawer.polls.create.descriptionPlaceholder"),multiline:!0},null,8,["modelValue","placeholder-text"])]),c("div",lle,[c("label",cle,b(a(l)("drawer.polls.create.finishedAt")),1),c("button",{type:"button",class:"mt-2 flex h-14 w-full items-center justify-between rounded-[12px] border border-grey-80 px-3 text-left text-16 text-black transition-colors auth:hover:bg-grey-90",onClick:$},[c("span",{class:oe(a(w)?"text-black":"text-grey-40")},b(a(w)||a(l)("drawer.polls.create.finishedAtPlaceholder")),3),T(z,{class:"h-6 w-6 shrink-0 text-grey-40","aria-hidden":"true"})])]),c("div",ule,[c("p",dle,b(a(l)("drawer.polls.create.votingFormat")),1),c("div",fle,[(p(!0),y(j,null,le(a(m),ye=>(p(),y("button",{key:ye.value,type:"button",class:oe(["min-h-8 rounded-full px-3 py-2 text-13 transition-colors",a(h).votingType===ye.value?"bg-paleLime-primary text-white":"bg-grey-90 text-black auth:hover:bg-grey-80"]),onClick:ne=>a(r).setCreateVotingType(ye.value)},b(ye.label),11,ple))),128))])]),a(h).votingType==="custom"?(p(),y("div",hle,[c("p",mle,b(a(l)("drawer.polls.create.customValuesHint")),1),c("div",gle,[a(v)?(p(),y("div",yle,[pn(c("input",{"onUpdate:modelValue":R[2]||(R[2]=ye=>it(d)?d.value=ye:null),type:"text",class:"min-h-14 min-w-0 flex-1 rounded-[12px] border border-grey-80 px-3 text-16 text-black outline-none focus:border-transparent focus:ring-2 focus:ring-paleLime-primary",placeholder:a(l)("drawer.polls.create.customValuePlaceholder",{number:a(h).customValues.length+1}),onKeydown:Qr(St(P,["prevent"]),["enter"])},null,40,_le),[[jr,a(d)]]),c("button",{type:"button",class:"flex h-14 w-14 shrink-0 items-center justify-center rounded-[12px] border border-grey-80 text-black transition-colors auth:hover:bg-grey-90","aria-label":a(l)("drawer.polls.create.addCustomValue"),disabled:!a(k),onClick:P},[T(me,{class:oe(["transition-colors",a(k)?"[&>path]:fill-black":"[&>path]:fill-grey-40"]),"aria-hidden":"true"},null,8,["class"])],8,vle)])):E("",!0),(p(!0),y(j,null,le(a(h).customValues,(ye,ne)=>(p(),y("div",{key:`${ye}-${ne}
8`,class:"flex min-h-14 items-start gap-4 rounded-[12px] bg-[#F7FAF9] p-4"},[c("span",ble,b(ye),1),c("button",{type:"button",class:"flex h-6 w-6 shrink-0 items-center justify-center","aria-label":a(l)("drawer.polls.create.deleteCustomValue"),onClick:ve=>a(r).removeCreateCustomValue(ne)},[T(ge,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})],8,xle)]))),128))])])):E("",!0),c("div",kle,[c("p",wle,b(a(l)("drawer.polls.create.files")),1),c("p",Cle,b(a(l)("drawer.polls.create.filesHint")),1),a(x)?(p(),K(te,{key:0,class:"mt-3",label:a(l)("drawer.polls.create.attach"),variant:"secondary",onClick:R[3]||(R[3]=ye=>a(u)?.click())},{icon:Xe(()=>[T(fe,{class:"h-6 w-6","aria-hidden":"true"})]),_:1},8,["label"])):E("",!0),c("input",{ref_key:"fileInputRef",ref:u,type:"file",class:"hidden",multiple:"",accept:"*/*",onChange:S},null,544),a(h).files.length?(p(),y("div",$le,[(p(!0),y(j,null,le(a(h).files,(ye,ne)=>(p(),y("div",{key:`${ye.name}-${ye.size}-${ne}`,class:"flex min-h-14 items-start gap-3 rounded-[12px] bg-[#F7FAF9] p-4"},[a(M1)(ye)?(p(),y("img",{key:0,src:I(ye),alt:"",class:"h-6 w-6 shrink-0 rounded-[8px] object-cover"},null,8,Sle)):(p(),K(V,{key:1,class:"h-6 w-6 shrink-0","aria-hidden":"true"})),c("span",Ale,b(ye.name),1),c("button",{type:"button",class:"flex h-6 w-6 shrink-0 items-center justify-center","aria-label":a(l)("drawer.polls.create.deleteFile"),onClick:ve=>a(r).removeCreateFile(ne)},[T(pe,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})],8,Ile)]))),128))])):E("",!0)])]),c("div",Tle,[T(te,{label:a(l)("drawer.polls.create.publish"),disabled:!a(C),loading:a(r).isCreating,onClick:L},null,8,["label","disabled","loading"])])])}}}),Dle=Object.assign(Ple,{__name:"PollCreatePanel"}),Ele={class:"flex h-full flex-col"},Lle={class:"flex-1 overflow-y-auto px-6 pb-6"},Rle={class:"mt-6 overflow-hidden rounded-[16px] border border-grey-80"},Mle={class:"px-6 pb-6 pt-4"},Ole=G({__name:"PollDatePanel",emits:["go"],setup(e,{emit:t}){const s=Ul(),n=t,r=X(d()),i=A(()=>h(f(),l.value)),o=A(()=>h(f(),u.value)),l=A(()=>Math.max(1,s.screen?.votingMinDaysCount??1)),u=A(()=>Math.max(l.value,s.screen?.votingMaxDaysCount??365));function d(){const _=s.createDraft.votingFinishedAt;if(!_)return null;const v=H0(_);return Number.isNaN(v.getTime())?null:v}function f(){const _=new Date;return _.setHours(0,0,0,0),_}function h(_,v){const k=new Date(_);return k.setDate(k.getDate()+v),k}function g(_){const v=new Date(_);return v.setHours(23,59,59,999),v}function m(){r.value&&(s.setCreateVotingFinishedAt(ele(g(r.value))),n("go",{to:"premises-survey-create",replace:!0}))}return(_,v)=>{const k=Ae("VDatePicker"),x=Ae("PrimaryButton");return p(),y("div",Ele,[c("div",Lle,[v[1]||(v[1]=c("h1",{class:"text-24-bold text-black"},"ÐаÑа оконÑаниÑ",-1)),v[2]||(v[2]=c("p",{class:"mt-2 text-16 text-grey-40"}," ÐÑбеÑиÑе денÑ, когда голоÑование бÑÐ´ÐµÑ Ð·Ð°Ð²ÐµÑÑено. ",-1)),c("div",Rle,[T(k,{modelValue:a(r),"onUpdate:modelValue":v[0]||(v[0]=C=>it(r)?r.value=C:null),borderless:"",expanded:"","min-date":a(i),"max-date":a(o),color:"green"},null,8,["modelValue","min-date","max-date"])])]),c("div",Mle,[T(x,{label:"ÐÑбÑаÑÑ",disabled:!a(r),onClick:m},null,8,["disabled"])])])}}}),Fle=Object.assign(Ole,{__name:"PollDatePanel"}),tg=Ls("/images/house/lock.png"),Nle={class:"flex min-h-full flex-col justify-center bg-white px-6 pb-6"},Ble={class:"flex flex-col items-center px-4 text-center sm:px-6"},Vle={class:"mt-2 max-w-[360px] text-16 text-grey-40"},Hle={class:"mt-6 flex flex-col gap-3"},qle="Ðока недоÑÑÑпно",jle=G({__name:"PollLockedPanel",emits:["go","close"],setup(e,{emit:t}){const s=t,n=Ul(),{t:r}=be(),i=A(()=>n.screen?.notAllowedByRatingText||"ÐÑполнÑйÑе заданиÑ, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð²ÑÑиÑÑ ÑейÑинг и полÑÑиÑÑ Ð´Ð¾ÑÑÑп к ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¾Ð¿ÑоÑов.");return(o,l)=>{const u=Ae("PrimaryButton");return p(),y("section",Nle,[c("div",Ble,[l[2]||(l[2]=c("img",{src:tg,alt:"",class:"h-[96px] w-[96px] object-contain","aria-hidden":"true",draggable:"false"},null,-1)),c("h1",{class:"mt-6 max-w-[360px] text-24-bold text-black"},b(qle)),c("p",Vle,b(a(i)),1)]),c("div",Hle,[T(u,{label:a(r)("drawer.moneyFee.performTasks"),onClick:l[0]||(l[0]=d=>s("go","premises-user-rating"))},null,8,["label"]),T(u,{variant:"secondary",label:a(r)("drawer.moneyFee.later"),onClick:l[1]||(l[1]=d=>s("close"))},null,8,["label"])])])}}}),Ule=Object.assign(jle,{__name:"PollLockedPanel"}),zle={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Wle(e,t){return p(),y("svg",zle,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M52.94 72.939a1.5 1.5 0 0 1 2.12 2.121l-8 8a1.5 1.5 0 0 1-2.12 0l-4-4a1.5 1.5 0 0 1 2.12-2.121l2.94 2.94zM48 50.5a1.5 1.5 0 0 1 0 3H38a1.5 1.5 0 0 1 0-3zM54 44.5a1.5 1.5 0 0 1 0 3H38a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M68.896 7.251a5.5 5.5 0 0 1 6.586 0c.338.253.67.59 1.113 1.033l11.31 11.31c.442.442.779.774 1.031 1.112a5.5 5.5 0 0 1 0 6.588c-.252.337-.589.668-1.03 1.11l-.846.846a5.04 5.04 0 0 1-5.946.873l-7.945 7.326a15.3 15.3 0 0 1-7.669 3.8
81v7.24h.932c2.65 0 4.318-.018 5.83.484a9.5 9.5 0 0 1 3.466 2.05c1.168 1.082 1.957 2.553 3.234 4.875l7.352 13.369q.113.208.157.429.165.322.306.658c.393.948.562 1.964.643 3.156.08 1.178.08 2.636.08 4.48 0 1.843 0 3.3-.08 4.479-.081 1.192-.25 2.208-.643 3.156a9.5 9.5 0 0 1-5.141 5.142c-.948.393-1.965.561-3.156.642-1.18.08-2.637.08-4.48.08H22c-1.843 0-3.3 0-4.48-.08-1.191-.08-2.207-.25-3.156-.642a9.5 9.5 0 0 1-5.141-5.142c-.393-.948-.562-1.964-.643-3.156-.08-1.178-.08-2.636-.08-4.48 0-1.843 0-3.3.08-4.479.081-1.192.25-2.208.643-3.156q.14-.337.305-.658a1.5 1.5 0 0 1 .158-.43l7.352-13.368c1.277-2.322 2.066-3.793 3.233-4.875a9.5 9.5 0 0 1 3.467-2.05c1.512-.502 3.18-.483 5.83-.483h.932V37.4c0-1.095-.001-2.008.06-2.75.062-.76.196-1.473.54-2.148a5.5 5.5 0 0 1 2.403-2.403c.674-.343 1.388-.478 2.147-.54.64-.052 1.406-.057 2.306-.058L38 29.5h.378l5.033-5.032c.907-.907 1.476-1.481 2.131-1.95a9.5 9.5 0 0 1 1.8-1.015c.741-.317 1.527-.505 2.773-.811l9.755-2.393c1.189-.291 1.639-.406 2.055-.575a6.5 6.5 0 0 0 1.116-.586c.376-.246.725-.552 1.64-1.364l1.144-1.018a4.77 4.77 0 0 1 .925-5.438l1.034-1.033c.443-.443.774-.78 1.111-1.033M22 67.5c-1.884 0-3.223 0-4.275.073-1.04.07-1.69.206-2.212.423a6.5 6.5 0 0 0-3.518 3.517c-.216.522-.352 1.173-.423 2.212C11.5 74.777 11.5 76.115 11.5 78s0 3.223.072 4.276c.071 1.039.207 1.69.423 2.212a6.5 6.5 0 0 0 3.518 3.517c.522.216 1.173.352 2.212.423 1.052.072 2.39.072 4.275.072h52c1.884 0 3.223 0 4.275-.072 1.04-.07 1.69-.207 2.212-.423a6.5 6.5 0 0 0 3.518-3.517c.216-.522.352-1.173.423-2.212.072-1.053.072-2.391.072-4.276s0-3.222-.072-4.275c-.071-1.039-.207-1.69-.423-2.212a6.5 6.5 0 0 0-3.518-3.517c-.521-.217-1.172-.352-2.212-.423-1.052-.072-2.39-.073-4.275-.073zm7.568-16c-2.857 0-3.942.02-4.884.332-.882.292-1.691.77-2.373 1.402-.727.675-1.267 1.617-2.644 4.121l-4.124 7.496a12.6 12.6 0 0 1 1.977-.27c1.18-.08 2.637-.08 4.48-.08h52c1.843 0 3.3 0 4.48.08.714.048 1.365.13 1.976.27l-4.123-7.496c-1.377-2.504-1.917-3.446-2.644-4.121a6.5 6.5 0 0 0-2.372-1.402c-.942-.313-2.028-.332-4.885-.332H65.5v5H68a1.5 1.5 0 0 1 0 3H28a1.5 1.5 0 0 1 0-3h2.5v-5zm8.832-19c-1.144 0-1.914.002-2.505.05-.574.047-.849.13-1.03.223-.47.24-.853.623-1.093 1.093-.092.18-.175.456-.222 1.029-.048.592-.05 1.361-.05 2.506v19.1h29v-15h-9a6 6 0 0 1-5.195-9zm28.273-14.483c-.852.757-1.386 1.236-1.987 1.63a9.5 9.5 0 0 1-1.631.856c-.666.27-1.363.438-2.47.71l-9.755 2.392c-1.338.328-1.845.458-2.308.656a6.5 6.5 0 0 0-1.233.694c-.41.293-.783.66-1.757 1.634l-2.91 2.912H62a1.5 1.5 0 0 1 0 3h-8.5a3 3 0 0 0 0 6h9.299a12.3 12.3 0 0 0 8.337-3.257l7.698-7.099-11.085-11.085zm7.013-8.362a2.5 2.5 0 0 0-2.994 0c-.122.091-.27.235-.787.75l-1.034 1.034a1.77 1.77 0 0 0 0 2.501l13.19 13.19a2.036 2.036 0 0 0 2.878 0l.845-.845c.516-.517.659-.665.75-.787a2.5 2.5 0 0 0 0-2.995c-.091-.121-.234-.27-.75-.787l-11.311-11.31c-.516-.516-.665-.66-.787-.751","clip-rule":"evenodd"},null,-1)])])}const Gle={render:Wle},Yle={class:"flex h-full flex-col justify-center overflow-y-auto"},Kle={class:"flex flex-col items-center px-6 py-8"},Qle={class:"mt-6 text-center text-24-bold text-black"},Xle={class:"mt-2 max-w-[300px] text-center text-16 text-grey-40"},Zle={class:"p-6 pt-0"},Jle=G({__name:"PollsInfoPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go","back")}return(i,o)=>{const l=Gle,u=Ae("PrimaryButton");return p(),y("div",Yle,[c("div",Kle,[T(l,{"aria-hidden":"true"}),c("h2",Qle,b(a(s)("drawer.house.pollsInfoPanel.title")),1),c("p",Xle,b(a(s)("drawer.house.pollsInfoPanel.description")),1)]),c("div",Zle,[T(u,{label:a(s)("drawer.house.pollsInfoPanel.okButton"),onClick:r},null,8,["label"])])])}}}),ece=Object.assign(Jle,{__name:"PollsInfoPanel"});function yd(){return{name:"",comment:"",amount:"",finishedAt:""}}function bp(e){const t=e.replace(/\D/g,"");if(t)return Number(t)*100}function tce(e){return e?String(Math.floor(e/100)):""}const Ni=Ke("balance",{state:()=>({screen:null,error:null,isLoading:!1,requestId:0,details:null,detailsError:null,isDetail
8sLoading:!1,detailsRequestId:0,createDraft:yd(),editDraft:yd(),payAmount:"",isCreating:!1,isUpdating:!1,isFinishing:!1,isPaying:!1,payers:[],userBills:[],payersError:null,isPayersLoading:!1,isPayersListLoading:!1,payersPage:1,payersCount:10,payersTotal:0,payersReachedMax:!1}),actions:{async loadScreen(e,t={}){const s=Ne();if(!s.isAuthorized||!e)return this.clear(),null;const n=++this.requestId,r=s.sessionToken,i=ue();this.isLoading=!0,t.keepData||(this.screen=null),this.error=null;const o=await i.fetchBalance({premisesId:e,page:1,count:10});return n!==this.requestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.screen=o.data,this.error=null):(this.screen=null,this.error=o.error),this.isLoading=!1,o)},async loadDetails(e,t){const s=Ne();if(!s.isAuthorized||!e||!t)return this.clearDetails(),null;const n=++this.detailsRequestId,r=s.sessionToken,i=ue();this.isDetailsLoading=!0,this.detailsError=null;const o=await i.fetchBalanceMoneyFee({premisesId:e,moneyFeeId:t});return n!==this.detailsRequestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.details=o.data,this.detailsError=null):(this.details=null,this.detailsError=o.error),this.isDetailsLoading=!1,o)},prepareEditDraft(){const e=this.details?.moneyFee;this.editDraft={name:e?.name??"",comment:e?.comment??"",amount:tce(e?.amount??0),finishedAt:e?.finishDate||e?.finishedAt?.slice(0,10)||""}},resetCreateDraft(){this.createDraft=yd()},resetEditDraft(){this.editDraft=yd()},setCreateFinishedAt(e){this.createDraft.finishedAt=e},setEditFinishedAt(e){this.editDraft.finishedAt=e},async createMoneyFee(e){if(!e)return null;const t=ue();this.isCreating=!0;const s=await t.createBalanceMoneyFee(e,{name:this.createDraft.name.trim(),comment:this.createDraft.comment.trim(),amount:bp(this.createDraft.amount),finishedAt:this.createDraft.finishedAt||void 0});return this.isCreating=!1,s.ok&&(this.resetCreateDraft(),await this.loadScreen(e)),s},async updateMoneyFee(e,t){if(!e||!t)return null;const s=ue();this.isUpdating=!0;const n=await s.updateBalanceMoneyFee(e,t,{name:this.editDraft.name.trim(),comment:this.editDraft.comment.trim(),amount:bp(this.editDraft.amount),finishedAt:this.editDraft.finishedAt||void 0});return this.isUpdating=!1,n.ok&&(await this.loadDetails(e,t),await this.loadScreen(e)),n},async finishMoneyFee(e,t){if(!e||!t)return null;const s=ue();this.isFinishing=!0;const n=await s.finishBalanceMoneyFee(e,t);return this.isFinishing=!1,n.ok&&(await this.loadDetails(e,t),await this.loadScreen(e)),n},async payMoneyFee(e,t,s){if(!e||!t||!s)return null;const n=bp(this.payAmount);if(!n)return null;const r=ue();this.isPaying=!0;const i=await r.payBalanceMoneyFee(e,t,s,n);return this.isPaying=!1,i.ok&&(this.payAmount=""),i},async loadPayers(e,t){if(!e||!t)return this.clearPayers(),null;const s=ue();this.isPayersLoading=!0,this.payersError=null;const n=await s.fetchBalanceMoneyFeePayers({premisesId:e,moneyFeeId:t,page:1,count:this.payersCount});return this.isPayersLoading=!1,n.ok?(this.payers=n.data.data,this.userBills=n.data.userBills,this.payersPage=1,this.payersTotal=n.data.total,this.payersReachedMax=n.data.data.length>=n.data.total||n.data.data.length===0&&n.data.userBills.length>0):(this.payers=[],this.userBills=[],this.payersError=n.error),n},async loadMorePayers(e,t){if(!e||!t||this.isPayersListLoading||this.payersReachedMax)return null;const s=this.payersPage+1,n=ue();this.isPayersListLoading=!0;const r=await n.fetchBalanceMoneyFeePayers({premisesId:e,moneyFeeId:t,page:s,count:this.payersCount});return this.isPayersListLoading=!1,r.ok?(this.payers.push(...r.data.data),this.userBills=r.data.userBills,this.payersPage=s,this.payersTotal=r.data.total,this.payersReachedMax=this.payers.length>=r.data.total):this.payersError=r.error,r},async closeRatingOpportunityBanner(e,t){if(this.screen&&(this.screen.ratingOpportunityBanner=null),!e||!t)return;await ue().viewRatingOpportunityBanner(e,t)},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1},clearDetails(){this.detailsRequestId+=1,this.details=null,this.detailsError=null,this.isDetailsLoading=!1,this.resetEditDraft(),this.payAmount=""},clearPayers(){this.payers=[],this.userBills=[],this.payersError=null,this.isPayersLoading=!1,this.isPayersListLoading=!1,this.payersPage=1,this.payersTotal=0,this.payersReachedMax=!1},clearMoneyFeePanels(){this.clearDetails(),this.clearPayers(),this.resetCreateDraft()}}}),sce={class:"flex h-full flex-col"},nce={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},rce={class:"text-24-bold text-black"},ice={class:"mt-7"},oce={class:"text-16 text-black"},ace={class:"mt-7"},lce={class:"text-16 text-black"},cce={class:"mt-7"},uce={class:"text-16 text-black"},dce={class:"mt-2 text-13 text-grey-40"},fce={class:"mt-7"},pce={class:"text-16 text-black"},hce={class:"mt-2 text-13 text-grey-40"},mce={class:"px-6 pb-6 pt-4"},gce=G({__name:"MoneyFeeCreatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),i=Oe(),{$showSnackbar:o}=Te(),{t:l}=be(),u=r.createDraft,d=A(()=>i.residence?.premisesId??null),f=A(()=>u.name.trim().length>0&&u.comment.trim().length>0),h=A(()=>m(u.finishedAt));function g(v,k,x,C){return{text:k.replace(/\D/g,""),selection:{start:x,end:x}}}function m(v){if(!v)return"";const k=new Date(`${v}T00:00:00`);return Number.isNaN(k.getTime())?"":new Intl.DateTimeFormat("ru-RU").format(k)}async function _(){const v=await r.createMoneyFee(d.value);if(!v?.ok){o(v?.error.message??l("drawer.moneyFee.createError"));return}o(l("drawer.moneyFee.created"),!1);const k={...n.query};delete k.panel,Bt({path:n.path,query:k})}return(v,k)=>{const x=Ae("TextField"),C=si,w=Ae("PrimaryButton");return p(),y("div",sce,[c("div",nce,[c("h1",rce,b(a(l)("drawer.moneyFee.createTitle")),1),c("div",ice,[c("label",oce,b(a(l)("drawer.moneyFee.name")),1),T(x,{modelValue:a(u).name,"onUpdate:modelValue":k[0]||(k[0]=$=>a(u).name=$),class:"mt-3",placeholder:a(l)("drawer.moneyFee.namePlaceholder"),type:"text",size:"default"},null,8,["modelValue","placeholder"])]),c("div",ace,[c("label",lce,b(a(l)("drawer.moneyFee.description")),1),T(x,{modelValue:a(u).comment,"onUpdate:modelValue":k[1]||(k[1]=$=>a(u).comment=$),class:"mt-3",placeholder:a(l)("drawer.moneyFee.descriptionPlaceholder"),type:"text",size:"default"},null,8,["modelValue","placeholder"])]),c("div",cce,[c("label",uce,b(a(l)("drawer.moneyFee.amount")),1),T(x,{modelValue:a(u).amount,"onUpdate:modelValue":k[2]||(k[2]=$=>a(u).amount=$),class:"mt-3",placeholder:a(l)("drawer.moneyFee.amountPlaceholder"),"input-mode":"numeric",type:"text","digits-only-on-paste":"",formatter:g,size:"default"},null,8,["modelValue","placeholder"]),c("p",dce,b(a(l)("drawer.moneyFee.amountHint")),1)]),c("div",fce,[c("label",pce,b(a(l)("drawer.moneyFee.finishedAt")),1),c("button",{type:"button",class:"mt-3 flex h-14 w-full items-center justify-between rounded-lg border border-grey-80 px-3 text-left text-16 transition-colors auth:hover:bg-grey-90",onClick:k[3]||(k[3]=$=>s("go","premises-money-fee-date"))},[c("span",{class:oe(a(h)?"text-black":"text-grey-40")},b(a(h)||a(l)("drawer.moneyFee.finishedAtPlaceholder")),3),T(C,{class:"h-6 w-6 shrink-0 text-grey-40","aria-hidden":"true"})]),c("p",hce,b(a(l)("drawer.moneyFee.finishedAtHint")),1)])]),c("div",mce,[T(w,{label:a(l)("drawer.moneyFee.publish"),disabled:!a(f),loading:a(r).isCreating,onClick:_},null,8,["label","disabled","loading"])])])}}}),yce=Object.assign(gce,{__name:"MoneyFeeCreatePanel"}),q0=e=>(t,s,n,r)=>{const o=s.replace(/\D+/g,"").slice(0,e),l=s.slice(0,r).replace(/\D+/g,"").length,u=Math.min(l,o.length);return{text:o,selection:{start:u,end:u}}};function zl(){const e=n=>n.replace(/\D/g,""),t=n=>{const i=n.slice(0,11).slice(1),o=i.slice(0,3),l=i.slice(3,6),u=i.slice(6,8),d=i.slice(8,10);let f="+7";if(i.length>0&&(f+=" ("+o),i.length>
8=3)f+=") "+l;else return f;if(i.length>=6)f+="-"+u;else return f;return i.length>=8&&(f+="-"+d),f},s=(n,r)=>{let i=0;for(let o=0;o<n.length;o++){const l=n.charAt(o);if(/\d/.test(l)){if(i===r)return o;i++}}return n.length};return(n,r,i,o)=>{const l=e(n),u=e(r);if(u.length===0)return{text:"",selection:{start:0,end:0}};let d=u.split("");const f=n.length-r.length===1&&u.length===l.length&&i===o;if(f){const v=e(r.slice(0,i)).length;v>0&&d.splice(v-1,1)}d[0]==="8"?d[0]="7":d[0]==="9"&&d.unshift("7"),d=d.slice(0,11);let h=e(r.slice(0,o)).length;u.startsWith("9")&&(h+=1),f&&h>0&&(h-=1),h=Math.max(0,Math.min(h,d.length)),d.length>11&&(d=d.slice(0,11),h>d.length&&(h=d.length));const g=d.join(""),m=t(g),_=Math.max(0,s(m,h));return{text:m,selection:{start:_,end:_}}}}function Sl(e){const t=Math.floor(e/100),s=e%100,n=t.toLocaleString("ru-RU");if(s===0)return`ÐÑ ${n} â½`;const r=s.toString().padStart(2,"0");return`ÐÑ ${n},${r} â½`}function Wr(e){const t=Math.floor(e/100),s=e%100,n=t.toLocaleString("ru-RU");if(s===0)return`${n} â½`;const r=s.toString().padStart(2,"0");return`${n},${r} â½`}const j0=Ke("employees",{state:()=>({employees:[],total:0,invitedByMeCount:0,invitedByMe:!1,isShowEmployeeInviteButton:!1,selectedEmployee:null,selectedInviteId:"",createdInvite:null,isLoading:!1,isRevoking:!1,error:null,requestId:0}),actions:{async load(e){if(!e){this.clear();return}const t=++this.requestId,s=this.invitedByMe;this.isLoading=!0,this.error=null;const n=await ue().fetchEmployees(e,s);if(!(t!==this.requestId||s!==this.invitedByMe)){if(n.ok){if(this.employees=n.data.employees,this.total=n.data.total,this.invitedByMeCount=n.data.invitedByMeCount,this.isShowEmployeeInviteButton=n.data.isShowEmployeeInviteButton,s&&this.invitedByMeCount===0){this.invitedByMe=!1,await this.load(e);return}}else this.employees=[],this.total=0,this.invitedByMeCount=0,this.isShowEmployeeInviteButton=!1,this.error=n.error;this.isLoading=!1}},async toggleInvitedByMe(e){this.invitedByMe=!this.invitedByMe,await this.load(e)},selectForRevoke(e){this.selectedEmployee=e},selectInviteCard(e){this.selectedInviteId=e,this.createdInvite=null},setCreatedInvite(e){this.selectedInviteId="",this.createdInvite=e},async revokeSelected(){const e=this.selectedEmployee?.residentId??"";if(!e||this.isRevoking)return!1;this.isRevoking=!0;const t=await ue().revokeEmployeeAccess(e);return this.isRevoking=!1,t.ok&&t.data.success},clear(){this.requestId+=1,this.employees=[],this.total=0,this.invitedByMeCount=0,this.invitedByMe=!1,this.isShowEmployeeInviteButton=!1,this.selectedEmployee=null,this.selectedInviteId="",this.createdInvite=null,this.isLoading=!1,this.isRevoking=!1,this.error=null}}}),sg=Ke("premisesScreen",{state:()=>({screen:null,officeInviteBlock:null,error:null,isLoading:!1,isOfficeInviteBlockLoading:!1,requestId:0}),actions:{async loadScreen(e){const t=Ne();if(!t.isAuthorized){this.clear();return}const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.isOfficeInviteBlockLoading=!1,this.screen=null,this.officeInviteBlock=null,this.error=null;const i=Oe().residence?.residentId??"",o=await r.fetchPremisesScreen(e,null,i);if(s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(o.ok?(this.screen=o.data,this.error=null):(this.screen=null,this.error=o.error),this.isLoading=!1,!o.ok||!o.data.isShowOfficeInviteBlock||!i))return;this.isOfficeInviteBlockLoading=!0;const l=await r.fetchOfficeInviteBlock(i);s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(this.officeInviteBlock=l.ok?l.data:null,this.isOfficeInviteBlockLoading=!1)},clear(){this.requestId+=1,this.screen=null,this.officeInviteBlock=null,this.error=null,this.isLoading=!1,this.isOfficeInviteBlockLoading=!1}}}),_ce={class:"flex h-full flex-col"},vce={class:"flex-1 overflow-y-auto px-4 pb-6 scrollbar-4-grey80"},bce={class:"text-left"},xce={class:"text-24-bold text-black"},kce={class:"mt-2 text-16 text-grey-40"},wce={key:0,class:"relative mt-6 rounded-[12px] bg-grey-90 p-4"},Cce={class:"pr-8 text-16 text-black"},$ce={class:"mt-1 text-13 text-grey-40"},Sce=["aria-label"],Ace={class:"px-4 pb-6 pt-4"},Ice=G({__name:"EmployeeAddPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=Oe(),o=j0(),l=sg(),u=X(""),d=X(""),f=X(!0),h=X(!1),g=zl(),m=A(()=>d.value.replace(/\D/g,"")),_=A(()=>u.value.trim().length>0&&m.value.length===11&&(m.value.startsWith("7")||m.value.startsWith("8"))&&!h.value);function v(x){u.value=x.trimStart()}async function k(){const x=i.residence?.residentId??"";if(!_.value||!x)return;h.value=!0;let C=m.value;C.startsWith("8")&&(C=`7${C.slice(1)}`);const w=await ue().createEmployeeInvite(x,C,u.value.trim());if(h.value=!1,!w.ok){r(w.error.message??n("drawer.employeeAdd.createError"));return}o.setCreatedInvite(w.data),s("go",{to:"employee-invite-created",replace:!0}),l.loadScreen(i.residence?.premisesId??null)}return(x,C)=>{const w=Ae("LabeledTextField"),$=Ae("PrimaryButton");return p(),y("div",_ce,[c("div",vce,[c("div",bce,[c("h1",xce,b(a(n)("drawer.employeeAdd.title")),1),c("p",kce,b(a(n)("drawer.employeeAdd.description")),1)]),T(w,{"model-value":a(u),label:a(n)("drawer.employeeAdd.fio"),autocomplete:"name",class:"mt-6","onUpdate:modelValue":v},null,8,["model-value","label"]),T(w,{modelValue:a(d),"onUpdate:modelValue":C[0]||(C[0]=S=>it(d)?d.value=S:null),label:a(n)("drawer.employeeAdd.phone"),"input-mode":"tel",autocomplete:"tel",formatter:a(g),class:"mt-6"},null,8,["modelValue","label","formatter"]),a(f)?(p(),y("div",wce,[c("p",Cce,b(a(n)("drawer.employeeAdd.infoTitle")),1),c("p",$ce,b(a(n)("drawer.employeeAdd.infoDescription")),1),c("button",{type:"button",class:"absolute right-4 top-4 flex h-6 w-6 items-center justify-center rounded-full bg-grey-70 text-lg leading-none text-white","aria-label":a(n)("close"),onClick:C[1]||(C[1]=S=>f.value=!1)},[...C[2]||(C[2]=[c("span",{"aria-hidden":"true"},"Ã",-1)])],8,Sce)])):E("",!0)]),c("div",Ace,[T($,{class:"w-full",label:a(n)("drawer.employeeAdd.submit"),disabled:!a(_),loading:a(h),onClick:k},null,8,["label","disabled","loading"])])])}}}),Tce=Object.assign(Ice,{__name:"EmployeeAddPanel"}),Pce={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Dce(e,t){return p(),y("svg",Pce,[...t[0]||(t[0]=[c("rect",{width:"10",height:"10",x:"9",y:"9",stroke:"currentColor","stroke-width":"1.5",rx:"2"},null,-1),c("path",{stroke:"currentColor","stroke-width":"1.5",d:"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3"},null,-1)])])}const U0={render:Dce},Ece={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Lce(e,t){return p(),y("svg",Ece,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M5.096 10.604a1 1 0 0 1 1.414 1.414l-1.377 1.377a3.87 3.87 0 0 0 5.472 5.472l1.377-1.377a1 1 0 0 1 1.414 1.414l-1.377 1.377a5.87 5.87 0 0 1-8.3-8.3z"},null,-1),c("path",{fill:"#fff",d:"M14.701 7.885a1 1 0 0 1 1.414 1.414L9.3 16.115a1 1 0 0 1-1.414-1.414z"},null,-1),c("path",{fill:"#fff",d:"M11.982 3.719a5.87 5.87 0 0 1 8.3 8.3l-1.378 1.376a1 1 0 0 1-1.414-1.414l1.377-1.377a3.87 3.87 0 0 0-5.471-5.471L12.019 6.51a1 1 0 1 1-1.414-1.414z"},null,-1)])])}const d7={render:Lce};async function Wl(e){if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}if(typeof document>"u")return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.select();try{return document.execCommand("copy")}catch{return!1}finally{document.body.removeChild(t)}}const Rce={class:"flex h-full min-h-0 flex-col bg-grey-90"},Mce={class:"min-h-0 flex-1 overflow-y-auto scrollbar-4-grey80"},Oce={class:"rounded-[24px] bg-white p-4"},Fce={class:"text-24-bold text-black"},Nce={class:"mt-2 text-16 text-grey-40"},Bce={class:"mt-4 flex h-16 items-center rounded-[12px] bg-grey-90 pl-4 pr-1"},Vce={class:"min-w-0 flex-1"},Hce={class:"text-11 text-grey-40"},qce={class:"mt-1 truncate text-16 text-emerald-primary"},jce=["aria-label"],Uce={class:"mt-2 rounded-[24px] bg-white px-4 py-6 text-center"},zce={class:"mx-auto flex h-[208px] w-[208px] items-center justify-center"},Wce={class:"relative flex h-[208px] w-[208px] items-center justify-center"},Gce=["src","alt"],Yce={class:"mt-4 text-16 text-black"},Kce={class:"mt-1 text-13 text-grey-40"},Qce={class:"mt-2 rounded-t-[24px] bg-white p-4"},Xce={key:0,class:"h-12 w-full rounded-[12px] bg-grey-80 animate-pulse"},Zce=["disabled"],Jce=G({__name:"EmployeeInviteCreatedPanel",setup(e){const t={premisesInviteId:"",phone:"",fio:"",inviteLink:"",defaultInviteText:"",qrLink:"",flysheetLink:""},{t:s}=be(),{$showSnackbar:n}=Te(),r=j0(),i=Oe(),o=X(!1),l=X(!!r.selectedInviteId),u=A(()=>r.createdInvite??t),d=A(()=>m(u.value.phone));async function f(){const _=i.residence?.residentId??"",v=r.selectedInviteId;if(!_||!v){l.value=!1;return}l.value=!0;const k=await ue().fetchEmployeeInvite(_,v);if(l.value=!1,!k.ok){n(k.error.message??s("drawer.employees.invitationLoadError"),!0);return}r.setCreatedInvite(k.data)}async function h(){const _=await Wl(u.value.inviteLink);n(s(_?"drawer.employeeInviteCreated.linkCopied":"drawer.employeeInviteCreated.copyError"),!_)}async function g(){if(!(o.value||!u.value.inviteLink||!u.value.qrLink)){if
8(typeof navigator.share!="function"){n(s("drawer.employeeInviteCreated.shareError"));return}o.value=!0;try{const _=await fetch(u.value.qrLink);if(!_.ok)throw new Error("QR image request failed");const v=await _.blob(),k=new File([v],"employee-invite-qr.png",{type:v.type||"image/png"}),C={text:[u.value.defaultInviteText,u.value.inviteLink].filter(Boolean).join(` 9`),files:[k]};if(typeof navigator.canShare=="function"&&!navigator.canShare(C))throw new Error("File sharing is not supported");await navigator.share(C)}catch(_){_ instanceof DOMException&&_.name==="AbortError"||n(s("drawer.employeeInviteCreated.shareError"))}finally{o.value=!1}}}je(f);function m(_){const v=_.replace(/\D/g,""),k=v.length===10?`7${v}`:v;return k.length!==11?_:`+${k[0]} ${k.slice(1,4)} ${k.slice(4,7)}-${k.slice(7,9)}-${k.slice(9)}`}return(_,v)=>{const k=U0,x=d7;return p(),y("div",Rce,[c("div",Mce,[a(l)?(p(),y(j,{key:0},[v[0]||(v[0]=ls('<section class="rounded-[24px] bg-white p-4 animate-pulse"><div class="h-7 w-2/3 rounded bg-grey-80"></div><div class="mt-2 h-5 w-36 rounded bg-grey-80"></div><div class="mt-4 flex h-16 items-center rounded-[12px] bg-grey-90 px-4"><div class="flex-1"><div class="h-3 w-28 rounded bg-grey-80"></div><div class="mt-2 h-5 w-3/4 rounded bg-grey-80"></div></div><div class="ml-4 h-14 w-14 shrink-0 rounded-[8px] bg-grey-80"></div></div></section><section class="mt-2 rounded-[24px] bg-white px-4 py-6 animate-pulse"><div class="mx-auto h-[208px] w-[208px] rounded-[24px] bg-grey-90"></div><div class="mx-auto mt-4 h-5 w-52 rounded bg-grey-80"></div><div class="mx-auto mt-2 h-4 w-44 rounded bg-grey-80"></div></section>',2))],64)):(p(),y(j,{key:1},[c("section",Oce,[c("h1",Fce,b(a(u).fio),1),c("p",Nce,b(a(d)),1),c("div",Bce,[c("div",Vce,[c("p",Hce,b(a(s)("drawer.employeeInviteCreated.personalLink")),1),c("p",qce,b(a(u).inviteLink),1)]),c("button",{type:"button",class:"ml-4 flex h-14 w-14 shrink-0 items-center justify-center rounded-[8px] bg-white text-black shadow-[0_4px_16px_rgba(33,41,38,0.08)]","aria-label":a(s)("drawer.employeeInviteCreated.copy"),onClick:h},[T(k,{"aria-hidden":"true"})],8,jce)])]),c("section",Uce,[c("div",zce,[c("div",Wce,[v[1]||(v[1]=c("span",{class:"absolute left-0 top-0 h-6 w-6 rounded-tl-[24px] border-l-4 border-t-4 border-grey-80"},null,-1)),v[2]||(v[2]=c("span",{class:"absolute right-0 top-0 h-6 w-6 rounded-tr-[24px] border-r-4 border-t-4 border-grey-80"},null,-1)),v[3]||(v[3]=c("span",{class:"absolute bottom-0 left-0 h-6 w-6 rounded-bl-[24px] border-b-4 border-l-4 border-grey-80"},null,-1)),v[4]||(v[4]=c("span",{class:"absolute bottom-0 right-0 h-6 w-6 rounded-br-[24px] border-b-4 border-r-4 border-grey-80"},null,-1)),a(u).qrLink?(p(),y("img",{key:0,src:a(u).qrLink,class:"h-40 w-40 object-contain",alt:a(s)("drawer.employeeInviteCreated.qrAlt")},null,8,Gce)):E("",!0)])]),c("p",Yce,b(a(s)("drawer.employeeInviteCreated.qrTitle")),1),c("p",Kce,b(a(s)("drawer.employeeInviteCreated.qrDescription")),1)])],64))]),c("div",Qce,[a(l)?(p(),y("div",Xce)):(p(),y("button",{key:1,type:"button",class:"flex h-12 w-full items-center justify-center gap-2 rounded-[12px] bg-paleLime-primary px-6 text-16-bold text-white auth:hover:bg-paleLime-40",disabled:a(o)||!a(u).inviteLink||!a(u).qrLink,onClick:g},[T(x,{"aria-hidden":"true"}),Qe(" "+b(a(s)("drawer.employeeInviteCreated.share")),1)],8,Zce))])])}}}),eue=Object.assign(Jce,{__name:"EmployeeInviteCreatedPanel"}),tue={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function sue(e,t){return p(),y("svg",tue,[...t[0]||(t[0]=[c("rect",{width:"16",height:"16",fill:"#9CCA7F",rx:"4"},null,-1),c("path",{stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round",d:"m4 8.5 3 3 5-6"},null,-1)])])}const nue={render:sue},rue={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function iue(e,t){return p(),y("svg",rue,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M10.725 1.435a3 3 0 0 1 2.55 0c.444.208.856.601 1.679 1.388.296.283.443.425.605.543a3 3 0 0 0 .972.468c.193.053.396.08.802.136 1.128.153 1.693.23 2.132.446a3 3 0 0 1 1.59 1.993c.114.477.063 1.045-.039 2.179-.036.408-.055.611-.047.812a3 3 0 0 0 .24 1.051c.08.184.184.36.394.711.584.977.876 1.467.98 1.945a3 3 0 0 1-.567 2.487c-.302.386-.776.7-1.726 1.327-.342.226-.513.34-.665.47a3 3 0 0 0-.672.844c-.095.176-.167.368-.31.751-.4 1.066-.6 1.6-.91 1.98a3 3 0 0 1-2.298 1.106c-.49.005-1.031-.171-2.114-.523-.39-.127-.584-.19-.781-.226a3 3 0 0 0-1.08 0c-.197.036-.392.1-.78.226-1.084.352-1.625.528-2.115.523a3 3 0 0 1-2.298-1.106c-.31-.38-.509-.914-.91-1.98-.143-.383-.215-.575-.31-.751a3 3 0 0 0-.672-.843c-.152-.132-.323-.245-.665-.471-.95-.627-1.424-.941-1.726-1.327a3 3 0 0 1-.567-2.486c.104-.48.395-.969.979-1.946.21-.351.316-.527.395-.71.142-.334.224-.69.24-1.052.009-.2
9-.01-.404-.047-.812-.102-1.134-.153-1.702-.04-2.179a3 3 0 0 1 1.59-1.993c.44-.217 1.005-.293 2.133-.446.405-.055.609-.083.802-.136a3 3 0 0 0 .972-.468c.162-.118.31-.26.605-.543.823-.787 1.235-1.18 1.68-1.388m5.482 7.358a1 1 0 0 0-1.415 0L11 12.586l-1.292-1.293a1 1 0 0 0-1.415 1.414l2 2a1 1 0 0 0 1.415 0l4.5-4.5a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const f7={render:iue},oue={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function aue(e,t){return p(),y("svg",oue,[...t[0]||(t[0]=[c("path",{fill:"#F5C658",d:"M8 4a.5.5 0 0 1 .5.5v2.42c0 .43.01.51.03.58.03.07.08.14.13.19s.13.09.53.25l1.5.6a.5.5 0 1 1-.38.92l-1.49-.59c-.33-.13-.61-.24-.83-.44a1.7 1.7 0 0 1-.4-.58c-.08-.21-.09-.43-.09-.68V4.5A.5.5 0 0 1 8 4"},null,-1),c("path",{fill:"#F5C658","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11","clip-rule":"evenodd"},null,-1)])])}const p7={render:aue},lue={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function cue(e,t){return p(),y("svg",lue,[...t[0]||(t[0]=[c("path",{fill:"currentColor","fill-rule":"evenodd",d:"M9.293 7.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L12.586 12 9.293 8.707a1 1 0 0 1 0-1.414","clip-rule":"evenodd"},null,-1)])])}const Rs={render:cue},uue={class:"flex h-full flex-col bg-grey-90"},due={key:0,class:"bg-white px-6 pb-6"},fue={key:1,class:"h-4 w-4 shrink-0 rounded-[4px] border border-grey-70","aria-hidden":"true"},pue={class:"text-16 text-black"},hue={class:"flex min-w-6 items-center justify-center rounded-full bg-white px-1.5 text-11-bold leading-6 text-grey-40 shadow-[0_4px_16px_rgba(33,41,38,0.08)]"},mue={class:"min-h-0 flex-1 overflow-y-auto py-2 scrollbar-4-grey80"},gue={key:0,class:"mt-4 h-8 w-36 rounded-full bg-grey-90"},yue={key:1,class:"flex h-full flex-col items-center justify-center px-6 text-center"},_ue={class:"text-16 text-grey-40"},vue={key:2,class:"flex h-full items-center justify-center px-6 text-center text-16 text-grey-40"},bue={class:"flex items-center gap-4"},xue=["src"],kue={class:"min-w-0 flex-1"},wue={class:"flex items-center gap-2"},Cue={class:"truncate text-16 text-black"},$ue={key:0,class:"mt-1 truncate text-13 text-grey-40"},Sue={key:0,class:"mt-4 flex flex-wrap gap-2"},Aue={key:0,class:"inline-flex h-8 items-center gap-1 rounded-full bg-yellow-90 px-3 text-13 text-yellow-50"},Iue=["onClick"],Tue={key:1,class:"rounded-t-[24px] bg-white p-6"},Pue=G({__name:"EmployeesPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=j0(),i=Oe(),o=A(()=>i.residence?.residentId??""),l=A(()=>!i.isLoaded||r.isLoading);function u(){r.load(o.value)}function d(){r.toggleInvitedByMe(o.value)}function f(g){g.premisesInviteId&&(r.selectInviteCard(g.premisesInviteId),s("go","employee-invite-created"))}function h(g){return g.trim()||"/images/house/exec_avatar_placeholder.png"}return Se([()=>i.isLoaded,o],([g,m])=>{if(g){if(!m){r.clear();return}r.load(m)}},{immediate:!0}),(g,m)=>{const _=nue,v=f7,k=p7,x=Rs,C=pa;return p(),y("div",uue,[a(r).invitedByMeCount>0?(p(),y("div",due,[c("button",{type:"button",class:"flex h-10 items-center gap-2 rounded-full bg-grey-90 py-2 pl-4 pr-2",onClick:d},[a(r).invitedByMe?(p(),K(_,{key:0,class:"shrink-0","aria-hidden":"true"})):(p(),y("span",fue)),c("span",pue,b(a(n)("drawer.employees.invitedByMe")),1),c("span",hue,b(a(r).invitedByMeCount),1)])])):E("",!0),c("div",mue,[a(l)?(p(),y(j,{key:0},le(4,w=>c("div",{key:w,class:"mb-2 rounded-[24px] bg-white p-4 animate-pulse"},[m[1]||(m[1]=ls('<div class="flex items-center gap-4"><span class="h-11 w-11 rounded-full bg-grey-80"></span><span class="flex-1"><span class="block h-6 w-48 rounded bg-grey-80"></span><span class="mt-1 block h-4 w-40 rounded bg-grey-90"></span></span></div>',1)),w>1?(p(),y("div",gue)):E("",!0)])),64)):a(r).error?(p(),y("div",yue,[c("p",_ue,b(a(n)("drawer.employees.loadError")),1),c("button",{type:"button",class:"mt-4 rounded-full bg-white px-5 py-3 text-16",onClick:u},b(a(n)("drawer.employees.retry")),1)])):a(r).employees.length===0?(p(),y("div",vue,b(a(n)("drawer.employees.empty")),1)):(p(!0),y(j,{key:3},le(a(r).employees,w=>(p(),y("article",{key:w.residentId||w.premisesInviteId,class:"mb-2 rounded-[24px] bg-white p-4"},[c("div",bue,[c("img",{src:h(w.avatarUrl),alt:"",class:"h-11 w-11 shrink-0 rounded-full bg-grey-80 object-cover","aria-hidden":"true",draggable:"false"},null,8,xue),c("div",kue,[c("div",wue,[c("p",Cue,b(w.fio),1),w.verificationStatus==="verified"?(p(),K(v,{key:0,class:"shrink-0","aria-hidden":"true"})):E("",!0)]),w.subtitleText?(p(),y("p",$ue,b(w.subtitleText),1)):E("",!0)])]),w.isPending||w.isInviteCardAvailable?(p(),y("div",Sue,[w.isPending?(p(),y("span",Aue,[T(k,{"aria-hidden":"true"}),Qe(" "+b(a(n)("drawer.employees.invited")),1)])):E("",!0),w.isInviteCardAvailable?(p(),y("button",{key:1,type:"button",class:"inline-flex h-8 items-center gap-1 rounded-full bg-grey-90 px-3 text-13 text-black",onClick:$=>f(w)},[Qe(b(a(n)("drawer.employees.invitationCard"))+" ",1),T(x)],8,Iue)):E("",!0)])):E("",!0)]))),128))]),a(r).isShowEmployeeInviteButton?(p(),y("div",Tue,[c("button",{type:"button",class:"flex h-12 w-full items-center justify-center gap-2 rounded-[12px] bg-paleLime-primary px-6 text-16-bold text-white auth:hover:bg-paleLime-40",onClick:m[0]||(m[0]=w=>s("go","employee-add"))},[T(C),Qe(" "+b(a(n)("house.officeInvite.addEmployee")),1)])])):E("",!0)])}}}),Due=Object.assign(Pue,{__name:"EmployeesPanel"}),Eue={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Lue(e,t){return p(),y("svg",Eue,[...t[0]||(t[0]=[ls('<circle cx="48" cy="48" r="42" stroke="#FA7A6E" stroke-width="5"></circle><circle cx="48" cy="42" r="14" stroke="#FA7A6E" stroke-width="5"></circle><path stroke="#FA7A6E" stroke-linecap="round" stroke-width="5" d="M24 78v-8c0-9.941 8.059-18 18-18h12c9.941 0 18 8.059 18 18v8"></path><circle cx="77" cy="19" r="13" fill="#fff" stroke="#FA7A6E" stroke-width="5"></circle><path stroke="#FA7A6E" stroke-linecap="round" stroke-width="5" d="m72 14 10 10m0-10L72 24"></path>',5)])])}const Rue={render:Lue},Mue={class:"flex h-full flex-col justify-center px-6 pb-24 text-center"},Oue={class:"flex justify-center"},Fue={class:"mt-6 text-24-bold text-black"},Nue={class:"mt-2 text-16 text-grey-40"},Bue={class:"mt-6 flex flex-col gap-3"},Vue=["disabled"],Hue=G({__name:"EmployeeRevokePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}
9=Te(),i=j0(),o=Oe(),l=sg(),u=A(()=>i.selectedEmployee?.organizationName.trim()??""),d=A(()=>u.value?n("drawer.employeeRevoke.descriptionNamed",{name:u.value}):n("drawer.employeeRevoke.description"));function f(){s("go","back")}async function h(){if(!await i.revokeSelected()){r(n("drawer.employeeRevoke.error"));return}r(n("drawer.employeeRevoke.success"),!1),await i.load(o.residence?.residentId??""),l.loadScreen(o.residence?.premisesId??null),f()}return(g,m)=>{const _=Rue,v=Ae("PrimaryButton");return p(),y("div",Mue,[c("div",Oue,[T(_,{"aria-hidden":"true"})]),c("h1",Fue,b(a(n)("drawer.employeeRevoke.title")),1),c("p",Nue,b(a(d)),1),c("div",Bue,[T(v,{class:"w-full",label:a(n)("drawer.employeeRevoke.submit"),loading:a(i).isRevoking,onClick:h},null,8,["label","loading"]),c("button",{type:"button",class:"flex h-12 w-full items-center justify-center rounded-[12px] bg-grey-90 px-6 text-16-bold text-black auth:hover:bg-grey-80",disabled:a(i).isRevoking,onClick:f},b(a(n)("cancel")),9,Vue)])])}}}),que=Object.assign(Hue,{__name:"EmployeeRevokePanel"}),jue={class:"flex min-h-full flex-col bg-white px-6 pb-6"},Uue={class:"flex-1"},zue={class:"mb-6 flex items-center justify-between"},Wue={class:"text-24-bold text-black"},Gue={class:"flex items-center gap-6"},Yue=["disabled"],Kue=["disabled"],Que={class:"grid grid-cols-7 text-center text-16 text-grey-40"},Xue={class:"mt-2 grid grid-cols-7 gap-y-1 text-center"},Zue=["disabled","onClick"],Jue=G({__name:"MoneyFeeDatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),{t:i}=be(),o=["Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб","ÐÑ"],l=A(()=>n.query.money_fee_id?"premises-money-fee-edit":"premises-money-fee-create"),u=A(()=>l.value==="premises-money-fee-edit"?r.editDraft.finishedAt:r.createDraft.finishedAt),d=X(C()),f=A(()=>w()),h=A(()=>$(w(),365)),g=X(S(d.value??f.value)),m=A(()=>{const V=new Intl.DateTimeFormat("ru-RU",{month:"long",year:"numeric"}).format(g.value);return V.charAt(0).toUpperCase()+V.slice(1)}),_=A(()=>{const te=g.value.getDay();return te===0?6:te-1}),v=A(()=>{const te=new Date(g.value.getFullYear(),g.value.getMonth()+1,0).getDate();return Array.from({length:te},(V,pe)=>{const ye=new Date(g.value.getFullYear(),g.value.getMonth(),pe+1),ne=I(ye);return{date:ye,value:ne,label:pe+1,disabled:L(ye,f.value)||D(ye,h.value),selected:d.value?P(ye,d.value):!1}})}),k=A(()=>F(g.value,S(f.value))),x=A(()=>R(g.value,S(h.value)));function C(){if(!u.value)return null;const te=new Date(`${u.value}T00:00:00`);return Number.isNaN(te.getTime())?null:te}function w(){const te=new Date;return te.setHours(0,0,0,0),te}function $(te,V){const pe=new Date(te);return pe.setDate(pe.getDate()+V),pe}function S(te){return new Date(te.getFullYear(),te.getMonth(),1)}function I(te){const V=te.getFullYear(),pe=String(te.getMonth()+1).padStart(2,"0"),ye=String(te.getDate()).padStart(2,"0");return`${V}-${pe}-${ye}`}function P(te,V){return I(te)===I(V)}function L(te,V){return te.getTime()<V.getTime()}function D(te,V){return te.getTime()>V.getTime()}function R(te,V){return S(te).getTime()<S(V).getTime()}function F(te,V){return S(te).getTime()>S(V).getTime()}function N(){k.value&&(g.value=new Date(g.value.getFullYear(),g.value.getMonth()-1,1))}function z(){x.value&&(g.value=new Date(g.value.getFullYear(),g.value.getMonth()+1,1))}function me(te){return te.selected?"border border-emerald-primary text-emerald-primary":te.disabled?"text-grey-40":"text-black auth:hover:bg-grey-90"}function ge(te){d.value=te;const V=I(te);l.value==="premises-money-fee-edit"?r.setEditFinishedAt(V):r.setCreateFinishedAt(V),fe()}function fe(){s("go",{to:l.value,replace:!0})}return(te,V)=>{const pe=Rs,ye=Ae("PrimaryButton");return p(),y("section",jue,[c("div",Uue,[c("div",zue,[c("h1",Wue,b(a(m)),1),c("div",Gue,[c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full transition-colors disabled:cursor-default disabled:opacity-30 auth:hover:bg-grey-90",disabled:!a(k),"aria-label":"ÐÑедÑдÑÑий меÑÑÑ",onClick:N},[T(pe,{class:"rotate-180 [&>path]:fill-black","aria-hidden":"true"})],8,Yue),c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full transition-colors disabled:cursor-default disabled:opacity-30 auth:hover:bg-grey-90",disabled:!a(x),"aria-label":"СледÑÑÑий меÑÑÑ",onClick:z},[T(pe,{class:"[&>path]:fill-black","aria-hidden":"true"})],8,Kue)])]),c("div",Que,[(p(),y(j,null,le(o,ne=>c("span",{key:ne,class:"flex h-8 items-center justify-center"},b(ne),1)),64))]),c("div",Xue,[(p(!0),y(j,null,le(a(_),ne=>(p(),y("span",{key:`blank-${ne}`,class:"h-11","aria-hidden":"true"}))),128)),(p(!0),y(j,null,le(a(v),ne=>(p(),y("button",{key:ne.value,type:"button",class:oe(["mx-auto flex h-12 w-[62px] items-center justify-center rounded-[12px] text-16 transition-colors disabled:cursor-default",me(ne)]),disabled:ne.disabled,onClick:ve=>ge(ne.date)},b(ne.label),11,Zue))),128))])]),T(ye,{variant:"secondary",label:a(i)("drawer.moneyFee.closeDate"),onClick:fe},null,8,["label"])])}}}),ede=Object.assign(Jue,{__name:"MoneyFeeDatePanel"}),tde={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function sde(e,t){return p(),y("svg",tde,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M10.649 2.161a2.256 2.256 0 1 1 3.19 3.19l-7.565 7.566c-.224.225-.375.377-.549.502a2.5 2.5 0 0 1-.475.268c-.197.084-.406.133-.714.209l-2.416.59a.502.502 0 0 1-.605-.605l.59-2.416c.075-.308.125-.517.209-.715q.107-.251.267-.474c.125-.175.278-.325.502-.55zM3.79 10.434c-.246.247-.33.332-.396.425a1.5 1.5 0 0 0-.16.284c-.045.104-.075.22-.157.56l-.396 1.616 1.617-.395c.34-.083.455-.112.56-.157q.15-.065.284-.16c.092-.066.178-.15.425-.397l5.35-5.35L9.14 5.085zm9.342-7.565a1.256 1.256 0 0 0-1.776 0L9.847 4.377l1.776 1.777 1.51-1.51c.49-.49.49-1.285 0-1.775","clip-rule":"evenodd"},null,-1)])])}const z0={render:sde},nde={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function rde(e,t){return p(),y("svg",nde,[...t[0]||(t[0]=[c("path",{fill:"#fff","fill-rule":"evenodd",d:"M13.8 6.05a3.25 3.25 0 0 1 0 6.5h-3.05v.925h2.15a1 1 0 0 1 0 2h-2.15v1.475a1 1 0 0 1-2 0v-1.475H8.4a1 1 0 1 1 0-2h.35v-.925H8.4a1 1 0 1 1 0-2h.35v-3.5a1 1 0 0 1 1-1zm-3.05 4.5h3.05a1.25 1.25 0 1 0 0-2.5h-3.05z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#fff","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16","clip-rule":"evenodd"},null,-1)])])}const h7={render:rde},Plt={title:"СкаÑайÑе пÑиложение",subtitle:"Те же возможноÑÑи в ваÑем ÑмаÑÑÑоне",googlePlayUrl:"https://clck.ru/3TNNZo",appStoreUrl:"https://clck.ru/3TNNZo",rustoreUrl:"https://clck.ru/3TNNZo",apkUrl:"https://clck.ru/3TNNZo",qrCodeUrl:"https://remote-team.art/static-files/images/website/mkd_app_qr_code.svg"},ide=new Set(["poll","polls","survey","surveys","voting","votings"]),ode=new Set(["init_group","active_residents","active_resident","active_neighbors","active_neighbours","residents","neighbors","neighbours"]),E4={about_house:"/house/about-house",balance:"/house/balance",debtors:"/house/debtors",executors:"/house/executors",maintenance_and_repair:"/house/maintenance-and-repair",news:"/house/news",reports:"/house/reports",surveys_and_discussions:"/house/polls"};function Dlt(e){const t=L4(e.type),s=L4(e.title);return E4[t]?E4[t]:ide.has(t)||s.includes("опÑоÑ")?"/house/polls":ode.has(t)||s.includes("акÑив")&&(s.includes("жиÑел")||s.includes("ÑоÑед"))?"/house/active-residents":null}function O1(e){const t=e.trim();return t?/\.(png|jpe?g|webp|svg)([?#].*)?$/i.test(t)?t:`${t}_x3.png`:""}function L4(e){return e.trim().toLowerCase().replaceAll("-","_")}const ade={class:"scrollbar-4-grey80 flex min-h-full flex-col gap-3 px-6 pb-6"},lde={key:1,class:"flex flex-1 flex-col items-center justify-center rounded-[24px] bg-white py-10 text-center"},cde={class:"text-16-bold text-black"},ude={class:"mt-2 text-13 text-grey-40"},dde={class:"text-24-bold text-black"},fde={key:0,class:"rounded-[12px] bg-grey-90 py-1 text-center text-13 text-black"},pde={key:1,class:"rounded-[24px] bg-white"},hde={class:"rounded-[16px] bg-grey-90 p-4"},mde={class:"flex items-center justify-between gap-3"},gde={class:"flex min-w-0 items-center gap-2 text-16 text-grey-40"},yde=["src"],_de={class:"min-w-0 truncate"},vde={class:"mt-2 text-title-32 text-black"},bde={key:0,class:"mt-3 text-16 text-black"},xde={key:2,class:"rounded-[24px] bg-white"},kde={class:"relative h-[43px]"},wde={class:"absolute left-[15px] right-[15px] top-[14px] h-4 bg-grey-90"},Cde={class:"relative z-10 flex justify-between"},$de=["src"],Sde={class:"rounded-[24px] bg-white pt-4"},Ade={class:"flex flex-col gap-2"},Ide={key:0,class:"flex items-center gap-2 text-13 text-black"},Tde={key:1,class:"flex items-center gap-2 text-13 text-black"},Pde={class:"rounded-[24px] bg-white pt-4"},Dde={class:"text-16-bold text-black"},Ede={key:0,class:"mt-1 whitespace-pre-line text-13 text-black"},Lde={class:"mt-auto flex flex-col gap-3 bg-white"},Rde=G({__name:"MoneyFeeDetailPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),i=Oe(),{$showSnackbar:o}=Te(),{t:l}=be(),u=A(()=>i.residence?.premisesId??null),d=A(()=>String(n.query.money_fee_id??"")),f=A(()=>r.details),h=A(()=>f.value?.screenParams??null),g=A(()=>h.value?.mainGrayBlock??null),m=A(()=>h.value?.progressBlock??null),_=A(()=>h.value?.typeTitleValue||l("drawer.moneyFee.detailTitle")),v=A(()=>{const $=f.value?.moneyFee;return $?.amount?Math.min(100,Math.round(Number($.paidAmount.replace(/\D/g,""))/$.amount*100)):0}),k=A(()=>[...m.value?.items??[]].reverse().find(S=>S.isActive)?.backgroundColor||"#D9E84F"),x=A(()=>(h.value?.countOfPayers??"0")!=="0"&&!!f.value?.moneyFee.isFinished),C=A(()=>{const $=h.value?.countOfPayers??"";return $?l("drawer.moneyFee.payersWithCount",{count:$}):l("drawer.moneyFee.payers")});async function w(){const $=await r.loadDetails(u.value,d.value);$&&!$.ok&&o($.error.message??l("drawer.moneyFee.loadError"))}return je(w),Se([u,d],w),($,S)=>{const I=z0,P=si,L=h7,D=Ae("PrimaryButton");
9return p(),y("div",ade,[a(r).isDetailsLoading?(p(),y(j,{key:0},[S[3]||(S[3]=ls('<section class="rounded-[24px] bg-white p-5"><div class="h-5 w-36 animate-pulse rounded-full bg-grey-90"></div><div class="mt-5 h-10 w-48 animate-pulse rounded-full bg-grey-90"></div><div class="mt-4 h-5 w-full animate-pulse rounded-full bg-grey-90"></div></section><section class="rounded-[24px] bg-white p-5"><div class="h-6 w-28 animate-pulse rounded-full bg-grey-90"></div><div class="mt-4 h-4 w-full animate-pulse rounded-full bg-grey-90"></div><div class="mt-2 h-4 w-3/4 animate-pulse rounded-full bg-grey-90"></div></section>',2))],64)):a(r).detailsError?(p(),y("section",lde,[c("p",cde,b(a(l)("drawer.moneyFee.loadError")),1),c("p",ude,b(a(r).detailsError.message),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:w},b(a(l)("drawer.moneyFee.repeat")),1)])):a(f)?(p(),y(j,{key:2},[c("h1",dde,b(a(_)),1),a(h)?.resultTitleValue?(p(),y("section",fde,b(a(h).resultTitleValue),1)):E("",!0),a(g)?(p(),y("section",pde,[c("div",hde,[c("div",mde,[c("div",gde,[a(g).aboveMainImgLink?(p(),y("img",{key:0,src:a(O1)(a(g).aboveMainImgLink),alt:"",class:"h-6 w-6 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,yde)):E("",!0),c("span",_de,b(a(g).aboveMainTextValue),1)]),a(g).badgeTextValue?(p(),y("span",{key:0,class:"shrink-0 rounded-full px-2 py-1 text-13-bold",style:kt({color:a(g).badgeTextColor||void 0,backgroundColor:a(g).badgeBackgroun
9dColor||void 0})},b(a(g).badgeTextValue),5)):E("",!0)]),c("p",vde,b(a(g).mainTextValue),1),a(g).underMainTextValue?(p(),y("p",bde,b(a(g).underMainTextValue),1)):E("",!0)])])):E("",!0),a(m)&&!a(m).isHide&&a(m).items.length?(p(),y("section",xde,[c("div",kde,[c("div",wde,[c("div",{class:"h-4 rounded-r-full border-r-[3px] border-white",style:kt({width:`${a(v)}%`,backgroundColor:a(m).progressStepBackgroundColor})},null,4)]),c("div",Cde,[(p(!0),y(j,null,le(a(m).items,(R,F)=>(p(),y("div",{key:`${R.activeImgLink}-${F}`,class:"grid h-[43px] w-[43px] place-items-center rounded-full border-[3px] border-white",style:kt({backgroundColor:R.isActive?a(k):"#F2F5F4"})},[c("img",{src:a(O1)(R.isActive?R.activeImgLink:R.notActiveImgLink),alt:"",class:"h-6 w-6 object-contain","aria-hidden":"true",draggable:"false"},null,8,$de)],4))),128))])])])):E("",!0),c("section",Sde,[c("div",Ade,[a(h)?.initiatorTextValue?(p(),y("div",Ide,[T(I,{class:"shrink-0","aria-hidden":"true"}),c("span",null,b(a(l)("drawer.moneyFee.initiator",{name:a(h).initiatorTextValue})),1)])):E("",!0),a(h)?.finishDate?(p(),y("div",Tde,[T(P,{class:"shrink-0","aria-hidden":"true"}),c("span",null,b(a(h).finishDate),1)])):E("",!0)])]),c("section",Pde,[c("h2",Dde,b(a(f).moneyFee.name),1),a(f).moneyFee.comment?(p(),y("p",Ede,b(a(f).moneyFee.comment),1)):E("",!0)]),c("div",Lde,[a(h)?.isHideButtonPay?E("",!0):(p(),K(D,{key:0,label:a(l)("drawer.moneyFee.pay"),onClick:S[0]||(S[0]=R=>s("go","premises-money-fee-pay"))},{icon:Xe(()=>[T(L,{class:"h-6 w-6","aria-hidden":"true"})]),_:1},8,["label"])),a(x)?(p(),K(D,{key:1,label:a(C),variant:"secondary",onClick:S[1]||(S[1]=R=>s("go","premises-money-fee-payers"))},null,8,["label"])):E("",!0),a(f).isICanManage&&!a(f).moneyFee.isFinished?(p(),K(D,{key:2,label:a(l)("drawer.moneyFee.finish"),variant:"secondary",onClick:S[2]||(S[2]=R=>s("go","premises-money-fee-finish"))},null,8,["label"])):E("",!0)])],64)):E("",!0)])}}}),Mde=Object.assign(Rde,{__name:"MoneyFeeDetailPanel"}),Ode={class:"flex h-full flex-col"},Fde={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},Nde={class:"text-24-bold text-black"},Bde={class:"mt-6"},Vde={class:"text-16 text-black"},Hde={class:"mt-2 text-13 text-grey-40"},qde={class:"mt-6"},jde={class:"text-16 text-black"},Ude={class:"mt-2 text-13 text-grey-40"},zde={class:"px-6 pb-6 pt-4"},Wde=G({__name:"MoneyFeeEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),i=Oe(),{$showSnackbar:o}=Te(),{t:l}=be(),u=A(()=>i.residence?.premisesId??null),d=A(()=>String(n.query.money_fee_id??"")),f=A(()=>r.editDraft.name.trim().length>0&&r.editDraft.comment.trim().length>0),h=A(()=>m(r.editDraft.finishedAt));function g(v,k,x,C){return{text:k.replace(/\D/g,""),selection:{start:x,end:x}}}function m(v){if(!v)return"";const k=new Date(`${v}T00:00:00`);return Number.isNaN(k.getTime())?"":new Intl.DateTimeFormat("ru-RU").format(k)}async function _(){const v=await r.updateMoneyFee(u.value,d.value);if(!v?.ok){o(v?.error.message??l("drawer.moneyFee.editError"));return}o(l("drawer.moneyFee.saved"),!1),s("go",{to:"premises-money-fee-detail",replace:!0})}return je(async()=>{r.editDraft.name||(r.details?.moneyFee.moneyFeeId!==d.value&&await r.loadDetails(u.value,d.value),r.prepareEditDraft())}),(v,k)=>{const x=Ae("LabeledTextField"),C=ti,w=si,$=Ae("PrimaryButton");return p(),y("div",Ode,[c("div",Fde,[c("h1",Nde,b(a(l)("drawer.moneyFee.editTitle")),1),T(x,{modelValue:a(r).editDraft.name,"onUpdate:modelValue":k[0]||(k[0]=S=>a(r).editDraft.name=S),class:"mt-6",label:a(l)("drawer.moneyFee.namePlaceholder"),type:"text"},null,8,["modelValue","label"]),T(C,{modelValue:a(r).editDraft.comment,"onUpdate:modelValue":k[1]||(k[1]=S=>a(r).editDraft.comment=S),class:"mt-6","placeholder-text":a(l)("drawer.moneyFee.descriptionPlaceholder"),multiline:!0},null,8,["modelValue","placeholder-text"]),c("div",Bde,[c("label",Vde,b(a(l)("drawer.moneyFee.amount")),1),T(x,{modelValue:a(r).editDraft.amount,"onUpdate:modelValue":k[2]||(k[2]=S=>a(r).editDraft.amount=S),class:"mt-2",label:a(l)("drawer.moneyFee.amountPlaceholder"),"input-mode":"numeric",type:"text","digits-only-on-paste":"",formatter:g},null,8,["modelValue","label"]),c("p",Hde,b(a(l)("drawer.moneyFee.amountHint")),1)]),c("div",qde,[c("label",jde,b(a(l)("drawer.moneyFee.finishedAt")),1),c("button",{type:"button",class:"mt-2 flex h-14 w-full items-center justify-between rounded-[12px] border border-grey-80 px-3 text-left text-16 transition-colors auth:hover:bg-grey-90",onClick:k[3]||(k[3]=S=>s("go","premises-money-fee-date"))},[c("span",{class:oe(a(h)?"text-black":"text-grey-40")},b(a(h)||a(l)("drawer.moneyFee.finishedAtPlaceholder")),3),T(w,{class:"h-6 w-6 shrink-0 text-grey-40","aria-hidden":"true"})]),c("p",Ude,b(a(l)("drawer.moneyFee.finishedAtHint")),1)])]),c("div",zde,[T($,{label:a(l)("drawer.moneyFee.save"),disabled:!a(f),loading:a(r).isUpdating,onClick:_},null,8,["label","disabled","loading"])])])}}}),Gde=Object.assign(Wde,{__name:"MoneyFeeEditPanel"}),Yde={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Kde(e,t){return p(),y("svg",Yde,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M38.5 48.5a8 8 0 1 1 0 16h-10v5H37a1.5 1.5 0 0 1 0 3h-8.5V78a1.5 1.5 0 0 1-3 0v-5.5H23a1.5 1.5 0 0 1 0-3h2.5v-5H23a1.5 1.5 0 0 1 0-3h2.5V50l.008-.153A1.5 1.5 0 0 1 27 48.5zm-10 13h10a5 5 0 0 0 0-10h-10z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M65 4.5c7.045 0 13.493 1.14 18.234 3.036 2.367.947 4.384 2.111 5.832 3.482C90.518 12.39 91.5 14.074 91.5 16v64c0 2.902-2.222 5.313-5.36 7.085-3.208 1.813-7.635 3.13-12.627 3.833-5.01.706-10.432.77-15.534.19-4.59-.524-8.78-1.558-12.087-3.014A27.9 27.9 0 0 1 32.5 91.5c-15.464 0-28-12.536-28-28s12.536-28 28-28c2.06 0 4.067.224 6 .647V16c0-1.926.982
9-3.61 2.434-4.982 1.448-1.37 3.465-2.535 5.832-3.482C51.507 5.64 57.955 4.5 65 4.5m-32.5 34c-13.807 0-25 11.193-25 25s11.193 25 25 25 25-11.193 25-25-11.193-25-25-25m56 30.978q-.187.156-.384.308c-2.045 1.58-4.909 2.872-8.284 3.825-3.39.958-7.276 1.57-11.332 1.793-3.52.195-7.099.092-10.514-.297a28.1 28.1 0 0 1-8.963 10.998c2.634.922 5.801 1.624 9.296 2.022 4.853.553 10.021.49 14.775-.18 4.77-.672 8.798-1.908 11.571-3.474C87.509 82.866 88.5 81.239 88.5 80zm-.2-15.836c-1.937 1.55-4.653 2.829-7.864 3.793-3.225.968-6.938 1.614-10.845 1.899-3.116.227-6.303.22-9.402-.018A28 28 0 0 1 60.5 63.5c0 3.041-.487 5.968-1.384 8.71 3.003.299 6.133.369 9.219.198 3.872-.213 7.536-.794 10.682-1.683 3.16-.894 5.63-2.05 7.265-3.313C87.93 66.141 88.5 64.953 88.5 64V53.475q-.1.083-.2.167m.2-16.165c-1.38 1.15-3.175 2.15-5.266 2.987-2.441.977-5.305 1.738-8.421 2.255-3.12.517-6.453.781-9.813.781s-6.693-.264-9.812-.781a46 46 0 0 1-5.347-1.203 28.02 28.02 0 0 1 9.71 14.737 60.4 60.4 0 0 0 9.822.089c3.727-.272 7.22-.886 10.201-1.78 2.996-.9 5.318-2.036 6.85-3.262 1.54-1.232 2.076-2.375 2.076-3.3zm0-15.994c-1.39 1.155-3.193 2.152-5.266 2.98C78.493 26.36 72.045 27.5 65 27.5s-13.493-1.14-18.234-3.036c-2.073-.83-3.877-1.826-5.266-2.98V32c0 .785.381 1.72 1.445 2.748 1.07 1.033 2.722 2.046 4.935 2.93 2.2.881 4.848 1.592 7.798 2.08 2.947.489 6.116.742 9.322.742s6.375-.253 9.322-.741c2.95-.489 5.597-1.2 7.798-2.08 2.213-.885 3.865-1.898 4.935-2.931C88.119 33.721 88.5 32.785 88.5 32zM65 7.5c-6.761 0-12.813 1.099-17.12 2.821-2.158.863-3.803 1.854-4.885 2.876C41.917 14.217 41.5 15.165 41.5 16s.417 1.783 1.495 2.803c1.082 1.022 2.727 2.013 4.885 2.876C52.187 23.4 58.239 24.5 65 24.5s12.814-1.099 17.12-2.821c2.158-.863 3.803-1.854 4.885-2.876C88.083 17.783 88.5 16.835 88.5 16s-.417-1.783-1.495-2.803c-1.081-1.022-2.727-2.013-4.885-2.876C77.814 8.6 71.761 7.5 65 7.5","clip-rule":"evenodd"},null,-1)])])}const Qde={render:Kde},Xde={class:"flex min-h-full flex-col justify-end bg-white px-6 pb-6"},Zde={class:"flex flex-1 flex-col items-center justify-center text-center"},Jde={class:"mt-6 text-24-bold text-black"},e1e={class:"mt-2 max-w-[360px] text-16 text-grey-40"},t1e=G({__name:"MoneyFeeFinishPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),i=Oe(),{$showSnackbar:o}=Te(),{t:l}=be(),u=A(()=>i.residence?.premisesId??null),d=A(()=>String(n.query.money_fee_id??""));async function f(){const h=await r.finishMoneyFee(u.value,d.value);if(!h?.ok){o(h?.error.message??l("drawer.moneyFee.finishError"));return}o(l("drawer.moneyFee.finished"),!1),s("go",{to:"premises-money-fee-detail",replace:!0})}return(h,g)=>{const m=Qde,_=Ae("PrimaryButton");return p(),y("section",Xde,[c("div",Zde,[T(m,{"aria-hidden":"true"}),c("h1",Jde,b(a(l)("drawer.moneyFee.finishTitle")),1),c("p",e1e,b(a(l)("drawer.moneyFee.finishDescription")),1)]),T(_,{label:a(l)("drawer.moneyFee.finish"),loading:a(r).isFinishing,onClick:f},null,8,["label","loading"]),T(_,{class:"mt-3",label:a(l)("cancel"),variant:"secondary",onClick:g[0]||(g[0]=v=>s("go",{to:"premises-money-fee-detail",replace:!0}))},null,8,["label"])])}}}),s1e=Object.assign(t1e,{__name:"MoneyFeeFinishPanel"}),du=Ke("drawerPersonalEditStore",{state:()=>({isLoading:!1,isEmail:!1,value:"",isSuccess:null}),actions:{loadInfo(){const e=Oe();e.userInfo&&(this.isEmail?this.value=e.userInfo.me.email:this.value=e.getUserName)},async changeEmail(){this.isLoading=!0;const t=await ue().saveEmail(this.value);return t.ok&&await Oe().fetchUserInfoAndAddresses(),this.isLoading=!1,t},async changeName(){this.isLoading=!0;const t=await ue().saveFio(this.value);return t.ok&&await Oe().fetchUserInfoAndAddresses(),this.isLoading=!1,t},startLoad(){}}}),n1e={referral_link_share:"invite",add_neighbor_service:"discussion-create",create_survey:"premises-survey-create",create_money_fee:"premises-money-fee-create",create_about_house:"house-about-info-edit",add_email:"profile-personal-edit",add_fio:"profile-personal-edit"},r1e={add_avatar:"/account"},R4={add_neighbor_service:{discussion_type:"service"}};
9function jd(e){return e?.trim().toLowerCase().replaceAll("-","_")??""}function M4(e){const t=jd(e);return t?n1e[t]??"mobile-continue":null}function m7(){const e=st(),t=is(),s=Ne(),n=du();function r(o){const l=jd(o);l==="add_email"&&(n.isEmail=!0),l==="add_fio"&&(n.isEmail=!1)}function i(o,l={}){const u=jd(typeof o=="string"?o:o?.appScreen),d=M4(u),f=r1e[u]??null;if(!d&&!f){l.fallback?.();return}const h=s.isAuthorized?d??"mobile-continue":"login";if(s.isAuthorized&&r(u),s.isAuthorized&&f)return l.replace?t.replace({path:f}):t.push({path:f});if(l.go)return l.go({to:h,replace:l.replace,query:R4[u]});const g=un(e.query);g.panel=h,Object.assign(g,R4[u]);const m={path:e.path,query:g};return l.replace?t.replace(m):t.push(m)}return{openRatingStep:i,resolveRatingStepPanel:M4}}const i1e={class:"scrollbar-4-grey80 flex min-h-full flex-col bg-white px-5 pb-6"},o1e={key:0,class:"flex flex-1 flex-col items-center pt-2"},a1e={key:1,class:"flex flex-1 flex-col items-center justify-center text-center"},l1e={class:"text-16-bold text-black"},c1e={class:"mt-2 text-13 text-grey-40"},u1e={class:"flex flex-col items-center text-center"},d1e={class:"relative grid h-[200px] w-[220px] place-items-center"},f1e=["src"],p1e={class:"mt-5 text-24-bold text-black"},h1e={key:0,class:"mt-3 text-16 text-black"},m1e={key:1,class:"mt-2 text-13 text-grey-40"},g1e={class:"text-16-bold text-black"},y1e={class:"mt-3 flex flex-col gap-2"},_1e={class:"min-w-0"},v1e={class:"mt-6 rounded-[12px] border border-grey-80 p-4"},b1e={class:"flex items-start gap-4"},x1e={class:"min-w-0 flex-1 text-left"},k1e={class:"text-16-bold text-black"},w1e={key:0,class:"mt-1 text-13 text-grey-40"},C1e=["src"],$1e={class:"mt-4 text-13 text-black"},S1e={class:"mt-2 h-1 overflow-hidden rounded-full bg-grey-80"},A1e={key:0,class:"mt-4 flex flex-col gap-2"},I1e=["onClick"],T1e=["src"],P1e={class:"min-w-0 flex-1"},D1e={class:"block text-16 text-black"},E1e=["src"],L1e={key:1,class:"mt-6 text-left"},R1e={class:"text-13 text-grey-40"},M1e={class:"mt-3 flex flex-col gap-3"},O1e={class:"min-w-0"},F1e=G({__name:"PremisesUserRatingNewLevelPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=st(),i=Oe(),{openRatingStep:o}=m7(),l=X(null),u=X(null),d=X(!1);let f=0;const h=A(()=>{const L=r.query.premises_id;return Array.isArray(L)?L[0]??"":L?.toString()??""}),g=A(()=>h.value||i.residence?.premisesId||""),m=A(()=>l.value?.premisesAddress||i.getPremissesNameOrAddress||i.getUserResidence||""),_=A(()=>I(l.value?.imageUrl??"")),v=A(()=>I(l.value?.nextRatingIcon??"")),k=A(()=>[...l.value?.stepsForNewRating??[]].reverse()),x=A(()=>({color:l.value?.marker.textColor||"#FFFFFF",backgroundColor:l.value?.marker.backgroundColor||"#909996"})),C=A(()=>l.value?.opportunitiesBackgroundColor||"#F7FAF9"),w=A(()=>u.value?.message??"");async function $(){if(!g.value){f+=1,l.value=null,u.value={message:n("drawer.premisesUserRating.noHouseSelected")},d.value=!1;return}const L=++f,D=ue();d.value=!0,u.value=null;const R=await D.fetchPremisesUserRatingNewLevelInfo(g.value);L===f&&(R.ok?(l.value=R.data,u.value=null,D.viewPremisesUserRating(g.value,R.data.currentRating)):(l.value=null,u.value=R.error),d.value=!1)}function S(L){o(L,{go:D=>s("go",D)})}function I(L){const D=L.trim();return D?/\.(png|jpe?g|webp|gif|svg)(\?.*)?(#.*)?$/i.test(D)?D:`${D}_x3.png`:""}const P=G({props:{iconUrl:{type:String,default:""}},setup(L){return()=>{const D=I(L.iconUrl);return D?ot("img",{src:D,alt:"",class:"mt-0 h-4 w-4 shrink-0 object-contain","aria-hidden":"true",draggable:"false"}):ot("span",{class:"mt-0 grid h-4 w-4 shrink-0 place-items-center rounded-full bg-grey-40 text-[12px] leading-none text-white","aria-hidden":"true"},"+")}}});return je($),Se(g,$),(L,D)=>{const R=Rs;return p(),y("div",i1e,[d.value?(p(),y("div",o1e,[...D[0]||(D[0]=[ls('<div class="h-[200px] w-[176px] animate-pulse rounded-[48px] bg-grey-90"></div><div class="mt-6 h-8 w-56 animate-pulse rounded bg-grey-80"></div><div class="mt-4 h-6 w-64 animate-pulse rounded bg-grey-80"></div><div class="mt-6 h-32 w-full animate-pulse rounded-[16px] bg-grey-90"></div><div class="mt-6 h-80 w-full animate-pulse rounded-[16px] bg-grey-90"></div>',5)])])):w.value?(p(),y("div",a1e,[c("p",l1e,b(a(n)("drawer.premisesUserRating.loadErrorTitle")),1),c("p",c1e,b(w.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:$},b(a(n)("drawer.premisesUserRating.retry")),1)])):l.value?(p(),y(j,{key:2},[c("section",u1e,[c("div",d1e,[D[1]||(D[1]=ls('<div class="absolute inset-0" aria-hidden="true"><span class="absolute left-4 top-8 h-6 w-2 rotate-[-45deg] rounded-full bg-[#93C47D]"></span><span class="absolute right-3 top-2 h-9 w-2 rotate-[25deg] rounded-full bg-[#F2BD45]"></span><span class="absolute bottom-9 left-6 h-9 w-2 rotate-[-35deg] rounded-full bg-[#FF756F]"></span><span class="absolute right-0 top-[86px] h-1 w-5 rotate-[12deg] rounded-full bg-grey-80"></span><span class="absolute left-16 top-2 h-3 w-1 rotate-[-28deg] rounded-full bg-grey-80"></span><span class="absolute right-16 top-5 h-3 w-1 rotate-[24deg] rounded-full bg-grey-80"></span><span class="absolute bottom-12 right-5 h-3 w-3 rounded-full bg-[#5B6196]"></span><span class="absolute bottom-16 left-6 h-5 w-5 rounded-full border-2 border-grey-80"></span></div>',1)),_.value?(p(),y("img",{key:0,src:_.value,alt:"",class:"relative z-[1] h-[200px] w-[176px] object-contain","aria-hidden":"true",draggable:"false"},null,8,f1e)):E("",!0),l.value.marker.text?(p(),y("span",{key:1,class:"absolute bottom-1 z-10
9inline-flex min-h-8 items-center rounded-full px-4 text-13-bold",style:kt(x.value)},b(l.value.marker.text),5)):E("",!0)]),c("h1",p1e,b(l.value.title||a(n)("drawer.premisesUserRatingNewLevel.title")),1),l.value.description?(p(),y("p",h1e,b(l.value.description),1)):E("",!0),m.value?(p(),y("p",m1e,b(m.value),1)):E("",!0)]),l.value.opportunities.length?(p(),y("section",{key:0,class:"mt-6 rounded-[12px] p-4",style:kt({backgroundColor:C.value})},[c("h2",g1e,b(a(n)("drawer.premisesUserRating.opportunities")),1),c("ul",y1e,[(p(!0),y(j,null,le(l.value.opportunities,F=>(p(),y("li",{key:F.title,class:"flex items-center gap-2 text-left text-13 text-black"},[T(a(P),{"icon-url":F.iconUrl},null,8,["icon-url"]),c("span",_1e,b(F.title),1)]))),128))])],4)):E("",!0),c("section",v1e,[c("div",b1e,[c("div",x1e,[c("h2",k1e,b(a(n)("drawer.premisesUserRating.tasksTitle")),1),l.value.nextRatingTitle?(p(),y("p",w1e,b(l.value.currentRatingTitle)+" -> "+b(l.value.nextRatingTitle),1)):E("",!0)]),v.value?(p(),y("img",{key:0,src:v.value,alt:"",class:"h-[44px] w-[44px] shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,C1e)):E("",!0)]),c("p",$1e,b(a(n)("drawer.premisesUserRating.completedPercent",{percent:l.value.processPercentForNewRating})),1),c("div",S1e,[c("div",{class:"h-full rounded-full bg-emerald-primary",style:kt({width:`${l.value.processPercentForNewRating}%`})},null,4)]),k.value.length?(p(),y("ul",A1e,[(p(!0),y(j,null,le(k.value,F=>(p(),y("li",{key:`${F.appStepTitle}-${F.appScreen}`},[c("button",{type:"button",class:"flex w-full items-center gap-3 rounded-[12px] bg-grey-90 p-4 text-left transition-colors auth:hover:bg-grey-80",onClick:N=>S(F)},[I(F.appStepIconUrl)?(p(),y("img",{key:0,src:I(F.appStepIconUrl),alt:"",class:"h-[44px] w-[44px] shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,T1e)):E("",!0),c("span",P1e,[c("span",D1e,b(F.appStepTitle),1),c("span",{class:oe(["mt-1 block text-13",F.isPassed?"text-emerald-primary":"text-grey-40"])},b(F.processTitle),3)]),I(F.appStepActionIconUrl)?(p(),y("img",{key:1,src:I(F.appStepActionIconUrl),alt:"",class:"h-6 w-6 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,E1e)):(p(),K(R,{key:2,class:"h-6 w-6 shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"}))],8,I1e)]))),128))])):E("",!0),l.value.nextRatingOpportunities.length?(p(),y("div",L1e,[c("p",R1e,b(a(n)("drawer.premisesUserRating.willBeAvailable")),1),c("ul",M1e,[(p(!0),y(j,null,le(l.value.nextRatingOpportunities,F=>(p(),y("li",{key:F.title,class:"flex items-start gap-3 text-16 text-black"},[T(a(P),{"icon-url":F.iconUrl},null,8,["icon-url"]),c("span",O1e,b(F.title),1)]))),128))])])):E("",!0)])],64)):E("",!0)])}}}),N1e=Object.assign(F1e,{__name:"PremisesUserRatingNewLevelPanel"}),B1e={class:"flex min-h-full flex-col justify-center bg-white px-6 pb-6"},V1e={class:"flex flex-col items-center px-4 text-center sm:px-6"},H1e={class:"mt-6 max-w-[360px] text-24-bold text-black"},q1e={class:"mt-2 max-w-[360px] text-16 text-grey-40"},j1e={class:"mt-6 flex flex-col gap-3"},U1e=G({__name:"MoneyFeeLockedPanel",emits:["go","close"],setup(e,{emit:t}){const s=t,n=Ni(),{t:r}=be(),i=A(()=>n.screen?.notAllowedByRatingText||n.screen?.ratingInfo?.description||r("drawer.moneyFee.lockedDescription"));return(o,l)=>{const u=Ae("PrimaryButton");return p(),y("section",B1e,[c("div",V1e,[l[2]||(l[2]=c("img",{src:tg,alt:"",class:"h-[164px] w-[164px] object-contain","aria-hidden":"true",draggable:"false"},null,-1)),c("h1",H1e,b(a(r)("notAvailable")),1),c("p",q1e,b(a(i)),1)]),c("div",j1e,[T(u,{label:a(r)("drawer.moneyFee.performTasks"),onClick:l[0]||(l[0]=d=>s("go","premises-user-rating"))},null,8,["label"]),T(u,{variant:"secondary",label:a(r)("drawer.moneyFee.later"),onClick:l[1]||(l[1]=d=>s("close"))},null,8,["label"])])])}}}),z1e=Object.assign(U1e,{__name:"MoneyFeeLockedPanel"}),O4="https://checkout.cloudpayments.ru/checkout.js";let vc=null;const W1e=()=>{if(typeof window>"u")return Promise.reject(new Error("CloudPayments script can only load in browser"));const e=document.querySelector(`script[src="${O4}"]`);return e&&window.cp?Promise.resolve():vc||(vc=new Promise((t,s)=>{const n=e??document.createElement("script");n.src=O4,n.async=!0,n.onload=()=>t(),n.onerror=()=>s(new Error("Failed to load CloudPayments script")),e||document.head.appendChild(n)}).catch(t=>{throw vc=null,t}
9),vc)},kr=Ke("createCard",{state:()=>({isLoading:!1,error:null,isCreating:!1,success:!1,cpKey:"",cpAmount:0,requires3ds:!1,reqUrl:"",finishUrl:"",isFromClaims:!1,claimRetryPending:!1,cardForm:{cardNumber:"",expDate:"",cvv:""}}),getters:{isFormValid:e=>{const t=e.cardForm.cardNumber.replace(/\s/g,""),s=e.cardForm.expDate,n=e.cardForm.cvv,r=t.length===16&&/^\d+$/.test(t),i=s.length===5&&/^\d{2}\/\d{2}$/.test(s),o=n.length===3&&/^\d+$/.test(n);return r&&i&&o}},actions:{async loadCpKey(){this.isLoading=!0;const e=ue();try{const t=await e.fetchCreateCardInfo();t.ok&&(this.cpKey=t.data.cloudpayments?.username??"",this.cpAmount=t.data.cloudpayments?.amount??0)}finally{this.isLoading=!1}},async createCard(e){this.isCreating=!0,this.error=null,this.success=!1;const t=ue(),s=typeof window>"u"?"/cards/done":new URL("/cards/done",window.location.origin).toString(),n=await t.addCard(e,s);return this.isCreating=!1,n.ok?this.success=!0:this.error=n.error,n},formatCardNumber(e,t,s,n){const o=t.replace(/\D/g,"").substring(0,16).replace(/(\d{4})(?=\d)/g,"$1 "),l=o.length;return{text:o,selection:{start:l,end:l}}},formatExpDate(e,t,s,n){const i=t.replace(/\D/g,"").substring(0,4);let o=i.substring(0,2);if(o==="00"&&(o="01"),o.length===2){const f=Number(o);f===0?o="01":f>12&&(o="12")}const l=i.substring(2);let u=o+l;i.length>=3&&(u=`${o}/${l}`);const d=u.length;return{text:u,selection:{start:d,end:d}}},resetForm(){this.cardForm={cardNumber:"",expDate:"",cvv:""},this.error=null,this.success=!1},async submitCardForm(){if(!this.isFormValid){const{$i18n:e}=Te(),t={message:e.t("card.validationError")};return this.error=t,{ok:!1,error:t}}try{this.isCreating=!0,await W1e();const e=window.cp;if(!e?.Checkout)throw new Error("CloudPayments SDK unavailable");this.cpKey||(wi("CloudPayments key missing, reloading from API"),await this.loadCpKey());const[t="",s=""]=this.cardForm.expDate.split("/"),n=this.cardForm.cardNumber.replace(/\s/g,""),i=await new e.Checkout({publicId:this.cpKey}).createPaymentCryptogram({cvv:this.cardForm.cvv,cardNumber:n,expDateMonth:t,expDateYear:s}),o=await this.createCard(i);return o.ok||(this.error=o.error),o}catch{const{$i18n:t}=Te(),n={message:t.t("card.processingError")};return this.error=n,{ok:!1,error:n}}finally{this.isCreating=!1}},markClaimRetryPending(){this.claimRetryPending=!0,this.isFromClaims=!1},consumeClaimRetryPending(){this.claimRetryPending=!1},reset(){this.isCreating=!1,this.error=null,this.success=!1,this.isFromClaims=!1,this.claimRetryPending=!1}}}),G1e={class:"flex min-h-full flex-col bg-white px-6 pb-6"},Y1e={class:"pt-1"},K1e={class:"text-24-bold text-black"},Q1e={class:"mt-2 text-16 text-grey-40"},X1e=G({__name:"MoneyFeePayPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),r=Ni(),i=Oe(),o=kr(),{$showSnackbar:l}=Te(),{t:u}=be(),d=A(()=>i.residence?.premisesId??null),f=A(()=>i.residence?.residentId??null),h=A(()=>String(n.query.money_fee_id??""));function g(_,v,k,x){return{text:v.replace(/\D/g,""),selection:{start:k,end:k}}}async function m(){const _=await r.payMoneyFee(d.value,f.value,h.value);if(!_?.ok){if(_?.error.code==1){o.consumeClaimRetryPending(),o.isFromClaims=!0,s("go",{to:"card-add",replace:!1});return}l(_?.error.message??u("drawer.moneyFee.payError"));return}l(u("drawer.moneyFee.paid"),!1),s("go",{to:"premises-money-fee-detail",replace:!0}),r.loadScreen(d.value,{keepData:!0})}return Se(()=>o.claimRetryPending,async _=>{_&&(o.consumeClaimRetryPending(),await lt(),await m())},{immediate:!0}),(_,v)=>{const k=Ae("LabeledTextField"),x=Ae("PrimaryButton");return p(),y("div",G1e,[c("div",Y1e,[c("h1",K1e,b(a(u)("drawer.moneyFee.payTitle")),1),c("p",Q1e,b(a(u)("drawer.moneyFee.payDescription")),1),T(k,{modelValue:a(r).payAmount,"onUpdate:modelValue":v[0]||(v[0]=C=>a(r).payAmount=C),class:"mt-7",label:a(u)("drawer.moneyFee.payPlaceholder"),"input-mode":"numeric",type:"text","digits-only-on-paste":"",formatter:g},null,8,["modelValue","label"])]),T(x,{class:"mt-auto",label:a(u)("drawer.moneyFee.payButton"),disabled:!a(r).payAmount,loading:a(r).isPaying,onClick:m},null,8,["label","disabled","loading"])])}}}),Z1e=Object.assign(X1e,{__name:"MoneyFeePayPanel"}),J1e={class:"flex min-h-full flex-col p-6"},e0e={class:"text-24-bold text-black mb-6"},t0e={key:0,class:"rounded-[24px] bg-white"},s0e={key:1,class:"flex flex-1 flex-col items-center justify-center rounded-[24px] bg-white px-6 py-10 text-center"},n0e={class:"text-16-bold text-black"},r0e={class:"mt-2 text-13 text-grey-40"},i0e={key:2,class:"flex flex-1 items-center justify-center rounded-[24px] bg-white px-6 py-10 text-center text-16 text-grey-40"},o0e={key:3,class:"flex flex-col gap-3"},a0e=["src"],l0e={class:"min-w-0 flex-1"},c0e={class:"truncate"},u0e=G({__name:"MoneyFeePayersPanel",setup(e){const t=st(),s=Ni(),n=Oe(),{$showSnackbar:r}=Te(),{t:i}=be(),o=A(()=>n.residence?.premisesId??null),l=A(()=>String(t.query.money_fee_id??"")),u=A(()=>[...s.userBills.map(g=>({...g,isMine:!0})),...s.payers.map(g=>({...g,isMine:!1}))]);async function d(){const g=await s.loadPayers(o.value,l.value);g&&!g.ok&&r(g.error.message??i("drawer.moneyFee.payersLoadError"))}async function f(){const g=await s.loadMorePayers(o.value,l.value);g&&!g.ok&&r(g.error.message??i("drawer.moneyFee.payersLoadError"))}function h(g){const m=g.target;if(!(m instanceof HTMLImageElement))return;const _="/images/avatar_placeholder.png";m.src.endsWith(_)||(m.src=_)}return je(d),Se([o,l],d),(g,m)=>{const _=Ae("PrimaryButton");return p(),y("div",J1e,[c("h1",e0e,b(a(i)("drawer.moneyFee.payers")),1),a(s).isPayersLoading?(p(),y("section",t0e,[(p(),y(j,null,le(4,v=>c("div",{key:v,class:"mb-4 flex gap-3 rounded-[12px] bg-grey-90 p-4 last:mb-0"},[...m[0]||(m[0]=[c("div",{class:"h-12 w-12 rounded-full bg-grey-80"},null,-1),c("div",{class:"min-w-0 flex-1"},[c("div",{class:"h-5 w-36 rounded-full bg-grey-80"}),c("div",{class:"mt-2 h-4 w-24 rounded-full bg-grey-80"})],-1)])])),64))])):a(s).payersError?(p(),y("section",s0e,[c("p",n0e,b(a(i)("drawer.moneyFee.payersLoadError")),1),c("p",r0e,b(a(s).payersError.message),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:d},b(a(i)("drawer.moneyFee.repeat")),1)])):a(u).length===0?(p(),y("section",i0e,b(a(i)("drawer.moneyFee.emptyPayers")),1)):(p(),y("section",o0e,[(p(!0),y(j,null,le(a(u),v=>(p(),y("article",{key:`${v.payerTitle}-${v.flatText}-${v.isMine}`,class:oe(["flex items-start gap-3 rounded-[16px] p-4",v.isMine?"bg-emerald-primary text-grey-90":"bg-white text-black"])},[c("img",{src:v.avatarUrl?v.avatarUrl:"/images/avatar_placeholder.png",alt:"",class:"h-[52px] w-[52px] shrink-0 rounded-full object-cover",draggable:"false",onError:h},null,40,a0e),c("div",l0e,[c("p",{class:oe(["truncate",v.isMine?"text-16-bold":"text-16"])},b(v.payerTitle),3),v.markers[0]?(p(),y("span",{key:0,class:"mt-1 inline-flex max-w-full rounded-full px-2 py-1 text-13-bold",style:kt({color:v.markers[0].textColor||void 0,backgroundColor:v.markers[0].backgroundColor||void 0})},[c("span",c0e,b(v.markers[0].text),1)],4)):E("",!0)]),v.flatText?(p(),y("span",{key:0,class:oe(["shrink-0 text-16",v.isMine?"text-white":"text-grey-40"])},b(v.flatText),3)):E("",!0)],2))),128)),a(s).payersReachedMax?E("",!0):(p(),K(_,{key:0,label:a(i)("additional"),variant:"secondary",loading:a(s).isPayersListLoading,onClick:f},null,8,["label","loading"]))]))])}}}),d0e=Object.assign(u0e,{__name:"MoneyFeePayersPanel"}),f0e={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function p0e(e,t){return p(),y("svg",f0e,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M47.11 54.474a4.2 4.2 0 0 1 2.072.074l.19.062c.434.157.804.391 1.146.647.375.28.799.652 1.279 1.072l6.4 5.6.352.31c.342.3
904.654.605.898.965l.097.148c.218.353.381.737.486 1.138l.048.211c.069.355.085.719.088 1.1v7.604c0 .72.001 1.351-.041 1.87-.038.47-.118.949-.318 1.417l-.094.2a4.17 4.17 0 0 1-1.536 1.66l-.286.16c-.532.272-1.08.37-1.617.413-.519.042-1.15.042-1.87.042H41.595c-.72 0-1.352.001-1.871-.041-.47-.038-.949-.119-1.417-.32l-.2-.093a4.17 4.17 0 0 1-1.66-1.533l-.16-.287c-.272-.532-.37-1.081-.414-1.619-.042-.52-.041-1.152-.041-1.874v-7.13c0-.634-.01-1.218.136-1.78l.049-.172c.122-.397.303-.772.535-1.114l.128-.176c.31-.398.703-.731 1.122-1.098l6.401-5.602.679-.588q.318-.272.6-.484c.39-.292.817-.555 1.334-.708zm.723 2.915-.165.036c-.042.012-.144.05-.39.234-.13.098-.276.217-.454.367l-.644.559-6.403 5.602c-.444.39-.606.54-.684.628l-.058.074a1.2 1.2 0 0 0-.136.266l-.028.093c-.026.102-.038.23-.038 1.021V73.4c0 .772.001 1.26.031 1.63.029.351.076.462.096.5l.096.156c.107.148.249.27.414.354l.045.019c.063.023.19.055.454.077.369.03.857.031 1.627.031h12.807c.77 0 1.258-.001 1.626-.031.35-.029.46-.076.5-.096l.157-.097c.15-.108.27-.25.353-.413l.02-.045c.023-.063.054-.19.076-.454.03-.369.031-.856.031-1.626V66.27c0-.591-.006-.812-.02-.93l-.018-.091a1.2 1.2 0 0 0-.111-.275l-.052-.084a1.1 1.1 0 0 0-.171-.189l-.572-.513-6.4-5.6c-.515-.45-.838-.732-1.1-.928a2.5 2.5 0 0 0-.273-.181l-.118-.053a1.2 1.2 0 0 0-.498-.036","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M48.6 4.3c9.797.001 17.852 7.455 18.805 17h5.44c1.327 0 2.349-.019 3.277.302l.285.107c.659.269 1.26.663 1.77 1.162.701.687 1.14 1.61 1.734 2.797l6.48 12.959.333.668c.302.612.516 1.078.68 1.565l.131.42q.182.637.274 1.292l.03.256c.064.6.061 1.244.061 2.194v38.779c0 1.095.001 2.007-.06 2.749-.053.665-.162 1.295-.42 1.893l-.12.254A5.5 5.5 0 0 1 85.09 91l-.192.103c-.674.343-1.388.477-2.147.54-.742.06-1.654.06-2.749.06h-64c-1.095 0-2.008 0-2.75-.06-.665-.055-1.294-.165-1.893-.421l-.255-.12a5.5 5.5 0 0 1-2.3-2.211l-.103-.193c-.343-.674-.478-1.388-.54-2.147-.06-.742-.06-1.654-.06-2.75V45.024c0-1.087-.003-1.772.092-2.45l.072-.435q.12-.65.333-1.278l.086-.243c.212-.565.502-1.14.927-1.99l6.48-12.959.423-.84c.406-.793.785-1.442 1.311-1.957l.224-.207a5.5 5.5 0 0 1 1.83-1.062l.177-.057c.881-.262 1.858-.244 3.101-.244h6.639c.953-9.546 9.009-17 18.806-17M11.12 43.5c-.016.337-.02.785-.02 1.523V83.8c0 1.144.002 1.913.05 2.505.047.574.13.849.223 1.03l.097.172c.24.391.584.711.996.92l.156.067c.18.065.443.121.873.156.592.049 1.362.05 2.506.05h64c1.144 0 1.913-.001 2.505-.05.573-.046.848-.13 1.03-.222l.172-.097a2.5 2.5 0 0 0 .92-.996l.067-.157c.065-.18.12-.443.156-.873.048-.592.05-1.36.05-2.505V45.023c0-.738-.003-1.186-.02-1.523zm12.036-19.2c-1.35 0-1.838.015-2.166.098l-.133.04a2.5 2.5 0 0 0-.832.483l-.101.094c-.192.188-.355.439-.716 1.135l-.434.86-6.48 12.959q-.148.297-.263.531h71.94l-.263-.531-6.48-12.96c-.69-1.38-.894-1.743-1.15-1.994a2.5 2.5 0 0 0-.805-.529l-.13-.049c-.339-.117-.754-.136-2.298-.136h-5.377a18.8 18.8 0 0 1-2.086 7.6H67.2l.153.007a1.5 1.5 0 0 1 0 2.985l-.153.007H28.8a1.5 1.5 0 0 1 0-3h3.018a18.8 18.8 0 0 1-2.086-7.6zm25.445-17c-8.782 0-15.9 7.12-15.9 15.901 0 3.214.953 6.2 2.591 8.7h7.458v-2.416h-1.11a1.5 1.5 0 0 1 0-3h1.11v-2.654h-1.11a1.5 1.5 0 0 1 0-3h1.11v-7.2l.008-.154a1.5 1.5 0 0 1 1.492-1.346h7.83a5.85 5.85 0 0 1 .3 11.692l-.3.008h-6.33v2.654h4.59l.153.008a1.5 1.5 0 0 1 0 2.986l-.153.006h-4.59V31.9h16.16a15.8 15.8 0 0 0 2.59-8.699c0-8.781-7.118-15.9-15.9-15.9M45.75 20.832h6.33l.292-.015a2.851 2.851 0 0 0-.292-5.685h-6.33z","clip-rule":"evenodd"},null,-1)])])}const h0e={render:p0e},m0e={class:"flex h-full flex-col justify-center overflow-y-auto"},g0e={class:"flex flex-col items-center px-6 py-8"},y0e={class:"mt-6 text-center text-24-bold text-black"},_0e={class:"mt-2 max-w-[300px] text-center text-16 text-grey-40"},v0e={class:"p-6 pt-0"},b0e=G({__name:"BalanceInfoPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go","back")}return(i,o)=>{const l=h0e,u=Ae("PrimaryButton");return p(),y("div",m0e,[c("div",g0e,[T(l,{"aria-hidden":"true"}),c("h2",y0e,b(a(s)("drawer.house.balanceInfoPanel.title")),1),c("p",_0e,b(a(s)("drawer.house.balanceInfoPanel.description")),1)]),c("div",v0e,[T(u,{label:a(s)("drawer.house.balanceInfoPanel.okButton"),onClick:r},null,8,["label"])])])}}}),x0e=Object.assign(b0e,{__name:"BalanceInfoPanel"}),xp=()=>({messenger:"telegram",link:"",name:"",description:""}),kp=()=>({role:"chairman",firstName:"",lastName:"",entrance:""}),wp=()=>({startAt:"",finishedAt:"",agendaFile:null,protocolFile:null}),Rn=Ke("aboutHouse",{state:()=>({screen:null,error:null,isLoading:!1,requestId:0,chatDraftId:"",chatDraft:xp(),groupDraftId:"",groupDraft:kp(),groupDraftDirty:!1,ossDraftId:"",ossDraft:wp(),ossDraftDirty:!1}),actions:{initChatDraft(e,t){this.chatDraftId!==e&&(this.chatDraftId=e,this.chatDraft=t?{messenger:t.messenger||"telegram",link:t.link,name:t.name,description:t.description}:xp())},updateChatDraft(e){this.chatDraft={...this.chatDraft,...e}},clearChatDraft(){this.chatDraftId="",this.chatDraft=xp()},initGroupDraft(e,t){this.groupDraftId===e&&!t||this.groupDraftId===e&&t&&this.groupDraftDirty||(this.groupDraftId=e,this.groupDraft=t?{role:t.role,firstName:t.firstName,lastName:t.lastName,entrance:t.entrance}:kp(),this.groupDraftDirty=!1)},updateGroupDraft(e){this.groupDraft={...this.groupDraft,...e},this.groupDraftDirty=!0},setGroupRole(e){this.updateGroupDraft({role:e})},clearGroupDraft(){this.groupDraftId="",this.groupDraft=kp(),this.groupDraftDirty=!1},initOssDraft(e,t){this.ossDraftId===e&&!t||this.ossDraftId===e&&t&&this.ossDraftDirty||(this.ossDraftId=e,this.ossDraft=t?{startAt:F4(t.startAt),finishedAt:F4(t.finishedAt),agendaFile:null,protocolFile:null}:wp(),this.ossDraftDirty=!1)},updateOssDraft(e){this.ossDraft={...this.ossDraft,...e},this.ossDraftDirty=!0},clearOssDraft(){this.ossDraftId="",this.ossDraft=wp(),this.ossDraftDirty=!1},async loadScreen(e){const t=Ne();if(!t.isAuthorized||!e)return this.clear(),null;const s=++this.requestId,n=t.sessionToken;this.isLoading=!0,this.screen=null,this.error=null;const i=await ue().fetchAboutHouse(e);return s!==this.requestId||!t.isAuthorized||t.sessionToken!==n?null:(i.ok?(this.screen=i.data,this.error=null):(this.screen=null,this.error=i.error),this.isLoading=!1,i)},async closeRatingOpportunityBanner(e,t){if(this.screen&&(this.screen.ratingOpportunityBanner=null),!e||!t)return;await ue().viewRatingOpportunityBanner(e,t)},async saveInfo(e,t){return e?await ue().saveAboutHouseInfo(e,t):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},async saveAboutHouseChat(e,t,s){return e?await ue().saveAboutHouseChat(e,t,s):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},deleteChat(e,t){return e?ue().deleteAboutHouseChat(e,t):Promise.resolve({ok:!1,error:{message:"Ðом не вÑбÑан"}})},async saveCleaning(e,t){return e?await ue().saveAboutHouseCleaning(e,t):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},async loadCleaningExample(e){return e?await ue().fetchAboutHouseCleaningExample(e):{ok:!1,error:{message:"Ðом не вÑбÑан"}}}
9,async loadGroupDetails(e,t){return!e||!t?{ok:!1,error:{message:"УÑаÑÑник не вÑбÑан"}}:await ue().fetchAboutHouseGroupDetails(e,t)},async saveGroup(e,t,s){return e?await ue().saveAboutHouseGroup(e,t,s):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},deleteGroup(e,t){return e?ue().deleteAboutHouseGroup(e,t):Promise.resolve({ok:!1,error:{message:"Ðом не вÑбÑан"}})},async loadOssFile(e,t){return!e||!t?{ok:!1,error:{message:"ÐокÑÐ¼ÐµÐ½Ñ Ð½Ðµ вÑбÑан"}}:await ue().fetchAboutHouseOssFile(e,t)},async saveOssFile(e,t,s){return e?await ue().saveAboutHouseOssFile(e,t,s):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},deleteOssFile(e,t){return e?ue().deleteAboutHouseOssFile(e,t):Promise.resolve({ok:!1,error:{message:"Ðом не вÑбÑан"}})},async saveContact(e,t,s){return e?await ue().saveAboutHouseContact(e,t,s):{ok:!1,error:{message:"Ðом не вÑбÑан"}}},deleteContact(e,t){return e?ue().deleteAboutHouseContact(e,t):Promise.resolve({ok:!1,error:{message:"Ðом не вÑбÑан"}})},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1,this.clearChatDraft(),this.clearGroupDraft(),this.clearOssDraft()}}});function F4(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toISOString().slice(0,10)}const k0e={class:"flex min-h-full flex-col justify-center bg-white px-6 pb-6"},w0e={class:"flex flex-col items-center px-4 text-center sm:px-6"},C0e={class:"mt-6 max-w-[360px] text-24-bold text-black"},$0e={class:"mt-2 max-w-[360px] text-16 text-grey-40"},S0e={class:"mt-6 flex flex-col gap-3"},A0e=G({__name:"HouseAboutLockedPanel",emits:["go","close"],setup(e,{emit:t}){const s=t,n=Rn(),{t:r}=be(),i=A(()=>n.screen?.notAllowedByRatingText??"");return(o,l)=>{const u=Ae("PrimaryButton");return p(),y("section",k0e,[c("div",w0e,[l[2]||(l[2]=c("img",{src:tg,alt:"",width:"96",height:"96",class:"h-[96px] w-[96px] object-contain","aria-hidden":"true",draggable:"false"},null,-1)),c("h1",C0e,b(a(r)("notAvailable")),1),c("p",$0e,b(a(i)),1)]),c("div",S0e,[T(u,{label:a(r)("drawer.moneyFee.performTasks"),onClick:l[0]||(l[0]=d=>s("go","premises-user-rating"))},null,8,["label"]),T(u,{variant:"secondary",label:a(r)("drawer.moneyFee.later"),onClick:l[1]||(l[1]=d=>s("close"))},null,8,["label"])])])}}}),I0e=Object.assign(A0e,{__name:"HouseAboutLockedPanel"}),T0e={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function P0e(e,t){return p(),y("svg",T0e,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M64.56 39.06a1.5 1.5 0 0 0-2.12-2.12L43 56.378l-8.94-8.94a1.5 1.5 0 0 0-2.12 2.122l10 10a1.5 1.5 0 0 0 2.12 0z"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M92 48c0 24.3-19.7 44-44 44S4 72.3 4 48 23.7 4 48 4s44 19.7 44 44m-3 0c0 22.644-18.356 41-41 41S7 70.644 7 48 25.356 7 48 7s41 18.356 41 41","clip-rule":"evenodd"},null,-1)])])}const ng={render:P0e},D0e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function E0e(e,t){return p(),y("svg",D0e,[...t[0]||(t[0]=[c("path",{fill:"#40497A","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m.19 3.386a.4.4 0 0 0-.38 0c-.138.074-.23.346-.415.887l-.312.912c-.037.109-.056.163-.087.209a.4.4 0 0 1-.102.102c-.046.031-.1.05-.21.087l-.91.312c-.542.185-.814.277-.888.415a.4.4 0 0 0 0 .38c.074.138.346.23.887.415l.912.312c.109.037.163.056.209.087a.4.4 0 0 1 .102.102c.031.046.05.1.087.21l.312.91c.185.542.277.814.415.888a.4.4 0 0 0 .38 0c.138-.074.23-.346.415-.887l.312-.912c.037-.109.056-.163.087-.209a.4.4 0 0 1 .102-.102c.046-.031.1-.05.21-.087l.91-.312c.542-.185.814-.277.888-.415a.4.4 0 0 0 0-.38c-.074-.138-.346-.23-.887-.415l-.912-.312c-.109-.037-.163-.056-.209-.087a.4.4 0 0 1-.102-.102c-.031-.046-.05-.1-.087-.21l-.312-.91c-.185-.542-.277-.814-.415-.888","clip-rule":"evenodd"},null,-1)])])}const W0={render:E0e},rg=Ke("addressResidenceSuccess",{state:()=>({withOrganizationName:!1}),actions:{open({withOrganizationName:e}){this.withOrganizationName=e}}}),L0e={class:"flex h-full flex-col"},R0e={class:"flex-1 px-6"},M0e={class:"mx-auto flex h-full max-w-[432px] flex-col items-center justify-center text-center"},O0e={class:"mt-8 text-24-bold text-black"},F0e={class:"mt-3 max-w-[348px] text-16 leading-6 text-grey-40"},N0e={class:"mt-7 flex w-full flex-col items-start gap-2 rounded-[24px] bg-[#F7F8FC] p-4 text-left"},B0e={class:"min-w-0 flex-1"},V0e=G({__name:"AddressResidenceSuccessPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=is(),i=rg(),o=A(()=>{const u=i.withOrganizationName?"registrationSuccess.organizationItems":"registrationSuccess.residentItems";return[0,1,2,3].map(d=>n(`${u}[${d}]`))});async function l(){if(i.withOrganizationName){await r.replace("/claims");return}s("go",{to:"profile-address-list",replace:!0})}return(u,d)=>{const f=ng,h=W0,g=Ae("PrimaryButton");return p(),y("div",L0e,[c("div",R0e,[c("div",M0e,[T(f),c("h1",O0e,b(a(n)("addressResidenceSuccess.title")),1),c("p",F0e,b(a(n)("addressResidenceSuccess.description")),1),c("ul",N0e,[(p(!0),y(j,null,le(o.value,m=>(p(),y("li",{key:m,class:"flex h-4 w-full items-start gap-2 text-13 leading-4 text-black"},[T(h,{class:"h-4 w-4 shrink-0 text-[#40497A]"}),c("span",B0e,b(m),1)]))),128))]),T(g,{class:"mt-6 w-full",label:a(n)("registrationSuccess.continue"),onClick:l},null,8,["label"])])])])}}}),H0e=Object.assign(V0e,{__name:"AddressResidenceSuccessPanel"}),q0e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function j0e(e,t){return p(),y("svg",q0e,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M8 2.5a.5.5 0 0 1 .5.5v4.5H13a.5.5 0 0 1 0 1H8.5V13a.5.5 0 0 1-1 0V8.5H3a.5.5 0 0 1 0-1h4.5V3a.5.5 0 0 1 .5-.5"},null,-1)])])}const U0e={render:j0e},z0e={class:"px-6 pb-6"},W0e={class:"text-24-bold text-black"},G0e={class:"mt-6 grid grid-cols-2 gap-2.5"},Y0e=["onClick"],K0e={class:"absolute left-4 right-4 top-4 text-16 text-black"},Q0e={class:"absolute bottom-4 left-4 flex h-8 w-8 items-center justify-center rounded-full bg-white","aria-hidden":"true"},X0e={class:"absolute bottom-0 right-0 flex h-[120px] w-[120px] items-start justify-start p-4"},Z0e=["src"],J0e=G({__name:"DiscussionCreateTypePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=[{type:"event",title:n("drawer.discussions.createType.event"),image:"/images/discussions/neight_add_event.png"},{type:"post",title:n("drawer.discussions.createType.post"),image:"/images/discussions/neight_add_post.png"},{type:"sale",title:n("drawer.discussions.createType.sale"),image:"/images/discussions/neight_add_sale.png"},{type:"service",title:n("drawer.discussions.createType.service"),image:"/images/discussions/neight_add_service.png"}];function i(o){s("go",{to:"discussion-create",query:{discussion_type:o}})}return(o,l)=>{const u=U0e;return p(),y("div",z0e,[c("h1",W0e,b(a(n)("drawer.discussions.createType.title")),1),c("div",G0e,[(p(),y(j,null,le(r,d=>c("button",{key:d.type,type:"button",class:"relative h-[176px] overflow-hidden rounded-[24px] bg-[#F7FAF9] text-left transition-colors xl:hover:bg-grey-90",onClick:f=>i(d.type)},[c("span",K0e,b(d.title),1),c("span",Q0e,[T(u,{class:"[&>path]:fill-black"})]),c("span",X0e,[c("img",{src:d.image,alt:"",class:"h-[88px] w-[88px] object-contain",draggable:"false"},null,8,Z0e)])],8,Y0e)),64))])])}}}),efe=Object.assign(J0e,{__name:"DiscussionCreateTypePanel"}),tfe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function sfe(e,t){return p(),y("svg",tfe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M13.646 3.646a.5.5 0 1 1 .707.707l-8 8a.5.5 0 0 1-.71-.003l-4-4.091a.5.5 0 0 1 .714-.7l3.647 3.729z"},null,-1)])])}const G0={render:sfe},nfe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function rfe(e,t){return p(),y("svg",nfe,[...t[0]||(t[0]=[c("path",{fill:"#FA7A6E",d:"M8.007 10a.5.5 0 0 1 0 1H8a.5.5 0 0 1 0-1zM8 5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0v-3A.5.5 0 0 1 8 5"},null,-1),c("path",{fill:"#FA7A6E","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11","clip-rule":"evenodd"},null,-1)])])}const ife={render:rfe},ofe={class:"mt-1 flex justify-end"},afe=G({__name:"DiscussionValidationHint",props:{valid:{type:Boolean},text:{}},setup(e){return(t,s)=>{const n=G0,r=ife;return p(),y("div",ofe,[c("span",{class:oe(["inline-flex items-center gap-1",e.valid?"text-11 text-emerald-primary":"text-11 text-red-50"])},[e.valid?(p(),K(n,{key:0})):(p(),K(r,{key:1})),Qe(" "+b(e.text),1)],2)])}}}),lfe=Object.assign(afe,{__name:"DiscussionValidationHint"}),cfe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function ufe(e,t){return p(),y("svg",cfe,[...t[0]||(t[0]=[c("path",{fill:"#565F8F",d:"M8 4a.5.5 0 0 1 .5.5v2.417c0 .43.007.517.031.581a.5.5 0 0 0 .133.195c.05.046.128.086.527.245l1.494.598a.5.5 0 1 1-.37.928L8.82 8.866c-.326-.13-.612-.237-.829-.433a1.5 1.5 0 0 1-.396-.585c-.
9077-.206-.092-.43-.095-.676V4.5A.5.5 0 0 1 8 4"},null,-1),c("path",{fill:"#565F8F","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11","clip-rule":"evenodd"},null,-1)])])}const Y0={render:ufe},dfe={class:"text-16 text-black"},ffe={class:"mt-3 grid grid-cols-2 gap-3"},pfe=G({__name:"DiscussionDateTimeGroup",props:{title:{},date:{},time:{}},emits:["date","time"],setup(e,{emit:t}){const s=t,{t:n}=be();return(r,i)=>{const o=si,l=Y0;return p(),y("section",null,[c("p",dfe,b(e.title),1),c("div",ffe,[c("button",{type:"button",class:"flex h-14 items-center justify-between rounded-[12px] border border-grey-80 px-4 text-left text-16 text-black",onClick:i[0]||(i[0]=u=>s("date"))},[c("span",{class:oe(e.date?"":"text-grey-40")},b(e.date||a(n)("drawer.discussions.create.dayLabel")),3),T(o,{class:"shrink-0 text-grey-40"})]),c("button",{type:"button",class:"flex h-14 items-center justify-between rounded-[12px] border border-grey-80 px-4 text-left text-16 text-black",onClick:i[1]||(i[1]=u=>s("time"))},[c("span",{class:oe(e.time?"":"text-grey-40")},b(e.time||a(n)("drawer.discussions.create.timeLabel")),3),T(l,{class:"shrink-0 text-grey-40"})])])])}}}),hfe=Object.assign(pfe,{__name:"DiscussionDateTimeGroup"}),mfe=["src","alt"],gfe={class:"min-w-0 flex-1"},yfe={class:"text-16 text-black"},_fe={class:"mt-1 truncate text-13 text-grey-40"},vfe=G({__name:"DiscussionContactRow",props:{type:{},value:{}},emits:["click"],setup(e,{emit:t}){const s=e,n=t,{t:r}=be(),i=A(()=>r(`drawer.discussions.create.contacts.${s.type}`)),o={telegram:"/images/house/about/telegram.png",whatsapp:"/images/house/about/whats_app.png",max:"/images/house/about/max.png"},l=A(()=>o[s.type]??"/images/house/about/telegram.png");return(u,d)=>{const f=Rs;return p(),y("button",{type:"button",class:"flex w-full items-start gap-3 rounded-[12px] bg-grey-90 p-4 text-left transition-colors xl:hover:bg-grey-80",onClick:d[0]||(d[0]=h=>n("click"))},[c("img",{src:a(l),alt:a(i),class:"h-6 w-6 shrink-0 object-contain"},null,8,mfe),c("div",gfe,[c("p",yfe,b(a(i)),1),c("p",_fe,b(e.value),1)]),T(f,{class:"shrink-0 text-grey-40"})])}}}),bfe=Object.assign(vfe,{__name:"DiscussionContactRow"}),xfe=["src","aria-busy"],kfe="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",wfe=G({__name:"HeicImage",props:{src:{},mimeType:{}},emits:["error"],setup(e,{emit:t}){const s=e,n=t,r=X(s.src),i=X(!1);let o="",l="";Se(()=>[s.src,s.mimeType],([g,m])=>{u(g),g&&R1(g,m)&&f(g)},{immediate:!0}),Tt(h);function u(g){h(),l="",i.value=!1,r.value=g}async function d(g){r.value===s.src&&l!==s.src&&await f(s.src)||n("error",g)}async function f(g){if(!g||l===g)return!1;l=g,i.value=!0,r.value=kfe;try{const m=await Zae(g,s.mimeType);return s.src!==g?!1:(h(),o=URL.createObjectURL(m),r.value=o,!0)}catch{return s.src===g&&(r.value=g),!1}finally{s.src===g&&(i.value=!1)}}function h(){o&&(URL.revokeObjectURL(o),o="")}return(g,m)=>(p(),y("img",{src:a(r),class:oe({"heic-image--loading":a(i)}),"aria-busy":a(i),onError:d},null,42,xfe))}}),Gs=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},ni=Object.assign(Gs(wfe,[["__scopeId","data-v-70a7704d"]]),{__name:"HeicImage"}),Cfe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function $fe(e,t){return p(),y("svg",Cfe,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M12.646 2.646a.5.5 0 0 1 .707.707L8.708 8l4.647 4.646a.5.5 0 0 1-.708.707L8 8.708l-4.647 4.647a.5.5 0 0 1-.707-.708L7.293 8 2.646 3.353a.5.5 0 1 1 .707-.707L8 7.293z"},null,-1)])])}const g7={render:$fe},Sfe={class:"relative h-[112px] rounded-[12px] bg-grey-90"},Afe={key:0,class:"absolute bottom-2 left-2 rounded-full bg-black/30 px-2 py-1 text-13 text-white backdrop-blur-[12px]"},Ife=G({__name:"DiscussionPhotoTile",props:{src:{},mimeType:{},isMain:{type:Boolean}},emits:["remove"],setup(e,{emit:t}){const s=t,{t:n}=be();return(r,i)=>{const o=ni,l=g7;return p(),y("div",Sfe,[T(o,{src:e.src,"mime-type":e.mimeType,alt:"",class:"h-full w-full rounded-[12px] object-cover",draggable:"false"},null,8,["src","mime-type"]),e.isMain?(p(),y("span",Afe,b(a(n)("drawer.discussions.create.mainPhoto")),1)):E("",!0),c("button",{type:"button",class:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full bg-black text-white",onClick:i[0]||(i[0]=u=>s("remove"))},[T(l,{class:"[&>path]:fill-white"})])])}}}),Tfe=Object.assign(Ife,{__name:"DiscussionPhotoTile"});function _d(){return{type:"post",editingPostId:"",title:"",body:"",price:"",whatsappLink:"",telegramLink:"",maxLink:"",eventStartDate:"",eventStartTime:"",eventFinishDate:"",eventFinishTime:"",existingAttachments:[],files:[],photoItems:[]}}function N4(e){return e==="event"||e==="post"||e==="sale"||e==="service"}const Cn=Ke("discussionsPosts",{state:()=>({posts:[],detail:null,error:null,detailError:null,createError:null,isLoading:!1,isListLoading:!1,isDetailLoa
9ding:!1,isCreating:!1,isDeletingPost:!1,hasReachedMax:!1,total:0,page:0,count:18,hasHousePublications:!1,isHousePublicationsKnown:!1,housePublicationsResidentId:"",requestId:0,detailRequestId:0,pendingLikePostIds:[],pendingAttendPostIds:[],pendingLikeCommentIds:[],commentDraft:"",replyToComment:null,editingComment:null,isCommentActionLoading:!1,reportReasons:[],isReportReasonsLoading:!1,reportReasonsError:null,createDraft:_d(),filters:{success:!1,types:[],categories:[],items:[]},selectedFilters:[],isFiltersLoading:!1,filtersError:null,isMineOnly:!1,isShowingMineFallback:!1}),getters:{residentId(){return Oe().residence?.residentId??""},premisesId(){return Oe().residence?.premisesId??""},currentUserName(){return Oe().getUserName}},actions:{async loadFirstPage(){if(!this.residentId){this.clearList();return}const e=++this.requestId,t=this.residentId,s=ue();this.housePublicationsResidentId!==t&&(this.hasHousePublications=!1,this.isHousePublicationsKnown=!1,this.housePublicationsResidentId=t),this.isLoading=!0,this.isListLoading=!1,this.error=null,this.isShowingMineFallback=!1,this.page=0,this.hasReachedMax=!1,this.total=0;const n=this.isMineOnly?await s.fetchMyDiscussionPosts({residentId:t,page:1,count:this.count,filters:this.selectedFilters}):await s.fetchDiscussionPosts({residentId:t,page:1,count:this.count,filters:this.selectedFilters});if(!(e!==this.requestId||t!==this.residentId)){if(n.ok){const r=await this.resolveHasHousePublications(n.data.posts,t);if(e!==this.requestId||t!==this.residentId)return;this.posts=n.data.posts,this.total=n.data.total,this.page=1,this.hasReachedMax=this.isAllPostsLoaded(n.data.posts.length),this.hasHousePublications=r,this.isHousePublicationsKnown=!0}else this.posts=[],this.error=n.error;this.isLoading=!1}},async loadFirstPageWithMineFallback(){if(!this.residentId){this.clearList();return}const e=++this.requestId,t=this.residentId,s=ue();this.housePublicationsResidentId!==t&&(this.hasHousePublications=!1,this.isHousePublicationsKnown=!1,this.housePublicationsResidentId=t),this.isMineOnly=!1,this.isShowingMineFallback=!1,this.isLoading=!0,this.isListLoading=!1,this.error=null,this.page=0,this.hasReachedMax=!1,this.total=0;const n=await s.fetchDiscussionPosts({residentId:t,page:1,count:this.count,filters:this.selectedFilters});if(e!==this.requestId||t!==this.residentId)return;if(!n.ok){this.posts=[],this.error=n.error,this.isLoading=!1;return}const r=n.data.posts,i=n.data.total>0||r.length>0;if(this.hasHousePublications=i,this.isHousePublicationsKnown=!0,i||this.selectedFilters.length>0){this.posts=r,this.total=n.data.total,this.page=1,this.hasReachedMax=this.isAllPostsLoaded(r.length),this.isLoading=!1;return}const o=await s.fetchMyDiscussionPosts({residentId:t,page:1,count:1,filters:this.selectedFilters});e!==this.requestId||t!==this.residentId||(o.ok&&o.data.posts.length>0&&(this.isShowingMineFallback=!0),this.posts=[],this.total=0,this.page=0,this.hasReachedMax=!0,this.isLoading=!1)},async loadPage(e){if(!this.residentId||this.isLoading||this.isListLoading||e<1||e===this.page)return;const t=this.requestId,s=this.residentId,n=ue();this.isListLoading=!0,this.error=null;const r=this.isMineOnly?await n.fetchMyDiscussionPosts({residentId:s,page:e,count:this.count,filters:this.selectedFilters}):await n.fetchDiscussionPosts({residentId:s,page:e,count:this.count,filters:this.selectedFilters});t!==this.requestId||s!==this.residentId||(r.ok?(this.posts=r.data.posts,this.total=r.data.total,this.page=e,this.hasReachedMax=e*this.count>=r.data.total):this.error=r.error,this.isListLoading=!1)},async loadDetail(e,t={}){if(!e||!this.residentId){this.detail=null;return}const s=t.withLoader??!0,n=++this.detailRequestId,r=this.residentId,i=ue();s&&(this.isDetailLoading=!0),this.detailError=null;const o=await i.fetchDiscussionPostDetail(e,r);n!==this.detailRequestId||r!==this.residentId||(o.ok?(this.detail=o.data.post,this.upsertPost(o.data.post)):(this.detail=null,this.detailError=o.error),s&&(this.isDetailLoading=!1))},async createPost(){if(!this.residentId||this.isCreating)return!1;const e=ue();this.isCreating=!0,this.createError=null;
9const t=await e.createDiscussionPost(this.residentId,{type:this.createDraft.type,title:this.createDraft.title.trim(),body:this.createDraft.body.trim(),price:this.normalizedPriceForApi(),whatsappLink:this.createDraft.whatsappLink.trim(),telegramLink:this.createDraft.telegramLink.trim(),maxLink:this.createDraft.maxLink.trim(),eventStartAt:this.eventDateTimeForApi("start"),eventFinishAt:this.eventDateTimeForApi("finish"),photoItems:this.createDraft.photoItems});return this.isCreating=!1,t.ok?(this.resetCreateDraft(),await this.loadFirstPage(),!0):(this.createError=t.error,!1)},async saveDraft(){return this.createDraft.editingPostId?await this.updatePost():await this.createPost()},async updatePost(){if(!this.residentId||this.isCreating||!this.createDraft.editingPostId)return!1;const e=this.createDraft.editingPostId,t=ue();this.isCreating=!0,this.createError=null;const s=await t.updateDiscussionPost(e,this.residentId,{type:this.createDraft.type,title:this.createDraft.title.trim(),body:this.createDraft.body.trim(),price:this.normalizedPriceForApi(),whatsappLink:this.createDraft.whatsappLink.trim(),telegramLink:this.createDraft.telegramLink.trim(),maxLink:this.createDraft.maxLink.trim(),eventStartAt:this.eventDateTimeForApi("start"),eventFinishAt:this.eventDateTimeForApi("finish"),photoItems:this.createDraft.photoItems});return this.isCreating=!1,s.ok&&s.data.success===!0?(await this.loadDetail(e,{withLoader:!1}),await this.loadFirstPage(),this.resetCreateDraft(),!0):(s.ok||(this.createError=s.error),!1)},async deletePost(e){if(!e||!this.residentId||this.isDeletingPost)return!1;const t=ue();this.isDeletingPost=!0,this.detailError=null;const s=await t.deleteDiscussionPost(e,this.residentId);return this.isDeletingPost=!1,!s.ok||s.data.success!==!0?(s.ok||(this.detailError=s.error),!1):(this.posts=this.posts.filter(n=>n.postId!==e),this.detail?.postId===e&&this.clearDetail(),await this.loadFirstPage(),!0)},async toggleLike(e){const t=this.findPost(e);if(!t||!t.isPublished||!this.residentId||this.pendingLikePostIds.includes(e))return;const s={...t},n=!t.isLiked;this.pendingLikePostIds.push(e),this.patchPost(e,{isLiked:n,likesCount:n?t.likesCount+1:Math.max(0,t.likesCount-1)});const r=ue(),i=n?await r.likeDiscussionPost(e,this.residentId):await r.dislikeDiscussionPost(e,this.residentId);this.pendingLikePostIds=this.pendingLikePostIds.filter(o=>o!==e),(!i.ok||i.data.success!==!0)&&this.patchPost(e,s)},async toggleAttend(e){const t=this.findPost(e);if(!t||!t.isPublished||!this.premisesId||this.pendingAttendPostIds.includes(e))return;const s={...t},n=!t.isAttended;this.pendingAttendPostIds.push(e),this.patchPost(e,{isAttended:n,attendeesCount:n?t.attendeesCount+1:Math.max(0,t.attendeesCount-1)});const r=ue(),i=n?await r.attendDiscussionPost(e,this.premisesId):await r.unattendDiscussionPost(e,this.premisesId);this.pendingAttendPostIds=this.pendingAttendPostIds.filter(o=>o!==e),(!i.ok||i.data.success!==!0)&&this.patchPost(e,s)},async sendComment(e){e=e??this.detail?.postId??"";const t=this.commentDraft.trim(),s=this.findPost(e);if(!e||!s?.isPublished||!t||this.isCommentActionLoading)return!1;const n=ue();if(this.isCommentActionLoading=!0,this.editingComment){const o=this.editingComment,l=await n.editDiscussionComment(o.postCommentId,t);return this.isCommentActionLoading=!1,!l.ok||l.data.success!==!0?(l.ok||(this.detailError=l.error),!1):(this.updateComment(o.postCommentId,{body:t,isEdited:!0}),this.commentDraft="",this.editingComment=null,await this.loadDetail(e,{withLoader:!1}),!0)}const r=this.replyToComment,i=await n.addDiscussionComment(e,t,r?.postCommentId);return this.isCommentActionLoading=!1,!i.ok||i.data.success!==!0?(i.ok||(this.detailError=i.error),!1):(this.addLocalComment(t,r),this.commentDraft="",this.replyToComment=null,this.patchPost(e,{commentsCount:(this.findPost(e)?.commentsCount??0)+1}),await this.loadDetail(e,{withLoader:!1}),!0)},async deleteComment(e,t){if(t=t??this.detail?.postId??"",!e||!t||this.isCommentActionLoading)return!1;const s=ue();this.isCommentActionLoading=!0;const n=await s.deleteDiscussionComment(e);return this.isCommentActionLoading=!1,!n.ok||n.data.success!==!0?(n.ok||(this.detailError=n.error),!1):(this.replyToComment?.postCommentId===e&&(this.replyToComment=null),this.editingComment?.postCommentId===e&&(this.editingComment=null,this.commentDraft=""),this.removeComment(e),this.patchPost(t,{commentsCount:Math.max(0,(this.findPost(t)?.commentsCount??0)-1)}),await this.loadDetail(t,{withLoader:!1}),!0)},async toggleCommentLike(e){if(!e||!this.residentId||this.pendingLikeCommentIds.includes(e))return;const t=this.findComment(e);
9if(!t)return;const s={...t},n=!t.isLiked;this.pendingLikeCommentIds.push(e),this.updateComment(e,{isLiked:n,likesCount:n?t.likesCount+1:Math.max(0,t.likesCount-1)});const r=ue(),i=n?await r.likeDiscussionComment(e,this.residentId):await r.dislikeDiscussionComment(e,this.residentId);this.pendingLikeCommentIds=this.pendingLikeCommentIds.filter(o=>o!==e),(!i.ok||i.data.success!==!0)&&this.updateComment(e,s)},selectReply(e){this.replyToComment=e,this.editingComment=null,this.commentDraft=""},clearReply(){this.replyToComment=null},selectEdit(e){this.editingComment=e,this.replyToComment=null,this.commentDraft=e.body},clearEdit(){this.editingComment=null,this.commentDraft=""},async loadCommentReportReasons(){if(this.reportReasons.length>0||this.isReportReasonsLoading)return this.reportReasons;this.isReportReasonsLoading=!0,this.reportReasonsError=null;const e=await ue().fetchDiscussionCommentReportReasons();return this.isReportReasonsLoading=!1,e.ok?this.reportReasons=e.data.reasons:this.reportReasonsError=e.error,this.reportReasons},async loadFilters(){if(!this.residentId||this.isFiltersLoading)return this.filters;if(this.filters.items.length>0)return this.filters;const e=this.residentId;this.isFiltersLoading=!0,this.filtersError=null;const t=await ue().fetchDiscussionPostFilters(e);return e!==this.residentId?(this.isFiltersLoading=!1,this.filters):(t.ok?this.filters=t.data:this.filtersError=t.error,this.isFiltersLoading=!1,this.filters)},async setSelectedFilters(e){this.selectedFilters=e,await this.loadFirstPage()},async toggleMineOnly(){await this.setMineOnly(!this.isMineOnly)},async setMineOnly(e,t={}){const s=t.reload??!0;if(this.isMineOnly===e){s&&await this.loadFirstPage();return}this.isMineOnly=e,this.isShowingMineFallback=!1,s&&await this.loadFirstPage()},async reportComment(e,t){if(!e||!t||this.isCommentActionLoading)return!1;this.isCommentActionLoading=!0;const s=await ue().reportDiscussionComment(e,t);return this.isCommentActionLoading=!1,!s.ok||s.data.success!==!0?(s.ok||(this.detailError=s.error),!1):!0},prepareCreateDraft(e){const t=N4(e)?e:"post";(this.createDraft.editingPostId||this.createDraft.type!==t)&&(this.createDraft=_d()),this.createDraft.type=t,this.createDraft.editingPostId="",this.createError=null},async prepareEditDraft(e){if(!e||this.createDraft.editingPostId===e||(this.createDraft=_d(),this.createDraft.editingPostId=e,await this.loadDetail(e),this.detail?.postId!==e))return;const t=this.detail;this.createDraft={type:N4(t.type)?t.type:"post",editingPostId:t.postId,title:t.title,body:t.body,price:t.price>0?String(Math.round(t.price/100)):"",whatsappLink:t.whatsappLink,telegramLink:t.telegramLink,maxLink:t.maxLink,eventStartDate:B4(t.eventStartAt),eventStartTime:V4(t.eventStartAt),eventFinishDate:B4(t.eventFinishAt),eventFinishTime:V4(t.eventFinishAt),existingAttachments:[...t.attachments],files:[],photoItems:t.attachments.map(s=>({type:"attachment",attachment:s}))},this.createError=null},setCreateEventDate(e,t){e==="start"?this.createDraft.eventStartDate=t:this.createDraft.eventFinishDate=t},setCreateEventTime(e,t){e==="start"?this.createDraft.eventStartTime=t:this.createDraft.eventFinishTime=t},setCreateContact(e,t){e==="telegram"&&(this.createDraft.telegramLink=t),e==="whatsapp"&&(this.createDraft.whatsappLink=t),e==="max"&&(this.createDraft.maxLink=t)},removeCreateAttachment(e){this.createDraft.existingAttachments.splice(e,1),this.createDraft.photoItems=this.createDraft.photoItems.filter(t=>t.type!=="attachment"||this.createDraft.existingAttachments.includes(t.attachment))},upsertPost(e){const t=this.posts.findIndex(s=>s.postId===e.postId);t!==-1&&this.posts.splice(t,1,e)},patchPost(e,t){const s=this.posts.findIndex(n=>n.postId===e);s!==-1&&this.posts.splice(s,1,{...this.posts[s],...t}),this.detail?.postId===e&&(this.detail={...this.detail,...t})},findPost(e){return this.detail?.postId===e?this.detail:this.posts.find(t=>t.postId===e)??null},findComment(e){return y7(this.detail?.comments??[],e)},updateComment(e,t){this.detail&&(this.detail={...this.detail,comments:_7(this.detail.comments,e,t)},this.upsertPost(this.detail))},removeComment(e){this.detail&&(this.detail={...this.detail,comments:v7(this.detail.comments,e)},this.upsertPost(this.detail))},addLocalComment(e,t){if(!this.detail)return;const n=[Oe().userInfo?.me.lastName??"",Oe().userInfo?.me.firstName??"",Oe().userInfo?.me.middleName??""].filter(
9Boolean).join(" "),r={postCommentId:`local-${Date.now()}`,body:e,createdAt:new Date().toISOString(),replyToCommentId:t?.postCommentId??"",replyToName:t?.author?.fullName??"",isRemoved:!1,isEdited:!1,isHighlighted:!1,likesCount:0,isLiked:!1,authorRole:"",author:{userId:this.residentId,fio:n,firstName:Oe().userInfo?.me.firstName??"",lastName:Oe().userInfo?.me.lastName??"",middleName:Oe().userInfo?.me.middleName??"",avatarUrl:"",fullName:n},replies:[]};this.detail={...this.detail,comments:[...this.detail.comments,r]},this.upsertPost(this.detail)},normalizedPriceForApi(){const e=this.createDraft.price.replace(",",".").trim();if(!e)return"0";const t=Number(e);return!Number.isFinite(t)||t<=0?"0":String(Math.round(t*100))},eventDateTimeForApi(e){const t=e==="start"?this.createDraft.eventStartDate:this.createDraft.eventFinishDate,s=e==="start"?this.createDraft.eventStartTime:this.createDraft.eventFinishTime;if(!t||!s)return;const n=new Date(`${t}T${s}:00`);if(!Number.isNaN(n.getTime()))return n.toISOString()},clearDetail(){this.detailRequestId+=1,this.detail=null,this.detailError=null,this.isDetailLoading=!1,this.isDeletingPost=!1,this.commentDraft="",this.replyToComment=null,this.editingComment=null,this.isCommentActionLoading=!1,this.pendingLikeCommentIds=[]},clearList(){this.requestId+=1,this.posts=[],this.error=null,this.isLoading=!1,this.isListLoading=!1,this.hasReachedMax=!1,this.isShowingMineFallback=!1,this.hasHousePublications=!1,this.isHousePublicationsKnown=!1,this.housePublicationsResidentId="",this.total=0,this.page=0},async resolveHasHousePublications(e,t){if(!this.isMineOnly&&this.selectedFilters.length===0)return e.length>0;if(!this.isMineOnly&&e.length>0)return!0;if(this.isHousePublicationsKnown&&this.housePublicationsResidentId===t)return this.hasHousePublications;const s=await ue().fetchDiscussionPosts({residentId:t,page:1,count:1,filters:[]});return s.ok?s.data.total>0||s.data.posts.length>0:this.hasHousePublications},isAllPostsLoaded(e){return this.total>0?this.posts.length>=this.total:e===0},resetCreateDraft(){this.createDraft=_d(),this.createError=null,this.isCreating=!1,this.isDeletingPost=!1}}});function y7(e,t){for(const s of e){if(s.postCommentId===t)return s;const n=y7(s.replies,t);if(n)return n}return null}function _7(e,t,s){return e.map(n=>n.postCommentId===t?{...n,...s}:{...n,replies:_7(n.replies,t,s)})}function v7(e,t){return e.filter(s=>s.postCommentId!==t).map(s=>({...s,replies:v7(s.replies,t)}))}function B4(e){if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const s=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${s}-${n}-${r}`}function V4(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":`${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`}const Pfe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},Dfe={key:0,class:"space-y-4"},Efe={class:"text-24-bold text-black"},Lfe={class:"mt-6"},Rfe={class:"text-16 text-black"},Mfe={class:"mt-6"},Ofe={class:"text-16 text-black"},Ffe={key:0,class:"mt-6 space-y-6"},Nfe={key:1,class:"mt-6"},Bfe={class:"text-16 text-black"},Vfe={class:"mt-1 text-13 text-grey-40"},Hfe={class:"relative mt-3"},qfe={key:2,class:"mt-6"},jfe={class:"text-16 text-black"},Ufe={class:"mt-1 text-11 text-grey-40"},zfe={class:"mt-3 space-y-2"},Wfe={class:"mt-6"},Gfe={class:"text-16 text-black"},Yfe={class:"mt-1 text-11 text-grey-40"},Kfe={class:"mt-3 grid grid-cols-2 gap-2"},Qfe={class:"mt-2"},Xfe={key:3,class:"mt-4 text-13 text-red-50"},Zfe={class:"px-6 pb-6 pt-4"},Jfe=G({__name:"DiscussionCreatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),o=Cn(),l=X(null),u=X(null),d=X(null),f=X(null),h=X(null),g={x:14,y:14},m=A(()=>String(n.query.post_id??"")),_=A(()=>n.query.discussion_type),v=A(()=>!!m.value),k=A(()=>o.createDraft.type==="event"),x=A(()=>o.createDraft.type==="sale"||o.createDraft.type==="service"),C=x,w=A(()=>o.createDraft.title.trim().length>=10),$=A(()=>o.createDraft.body.trim().length>=10),S=A(()=>!C.value||!!(o.createDraft.telegramLink||o.createDraft.whatsappLink||o.createDraft.maxLink)),I=A(()=>!k.value||!!(o.createDraft.eventStartDate&&o.createDraft.eventStartTime&&o.createDraft.eventFinishDate&&o.createDraft.eventFinishTime)),P=A(()=>
9!o.isCreating&&!o.isDetailLoading&&w.value&&$.value&&S.value&&I.value),L=A(()=>o.createDraft.photoItems.length<10),D=A(()=>o.createDraft.photoItems.map((ae,M)=>ae.type==="attachment"?{key:`attachment-${ae.attachment.postAttachmentId||ae.attachment.url}-${M}`,src:ae.attachment.url,mimeType:ae.attachment.mimeType,index:M}:{key:`file-${ae.clientId}`,src:URL.createObjectURL(ae.file),mimeType:ae.file.type||(Eu(ae.file)?"image/heic":""),index:M})),R=A(()=>r(`drawer.discussions.create.types.${o.createDraft.type}.title`)),F=A(()=>r(`drawer.discussions.createType.${o.createDraft.type}`)),N=A(()=>r(`drawer.discussions.create.types.${o.createDraft.type}.placeholder`)),z=A(()=>r(`drawer.discussions.create.types.${o.createDraft.type}.bodyPlaceholder`)),me=A(()=>o.createDraft.type==="sale"?r("drawer.discussions.create.salePriceLabel"):r("drawer.discussions.create.servicePriceLabel")),ge=A(()=>o.createDraft.type==="sale"?r("drawer.discussions.create.salePriceDescription"):r("drawer.discussions.create.servicePriceDescription")),fe=A(()=>o.createDraft.telegramLink?`@${o.createDraft.telegramLink}`:r("drawer.discussions.create.notSet")),te=A(()=>_e(o.createDraft.whatsappLink)||r("drawer.discussions.create.notSet")),V=A(()=>_e(o.createDraft.maxLink)||r("drawer.discussions.create.notSet"));je(()=>{pe()}),wn(()=>{He()}),Se([m,_],()=>{pe()});async function pe(){if(m.value){await o.prepareEditDraft(m.value);return}o.prepareCreateDraft(_.value)}async function ye(ae){const M=ae.target,q=Array.from(M.files??[]),re=Math.max(0,10-o.createDraft.photoItems.length);let ce=q.slice(0,re);try{ce=await u7(ce)}catch{i(r("imageProcessError")),M.value="";return}o.createDraft.files=[...o.createDraft.files,...ce],o.createDraft.photoItems=[...o.createDraft.photoItems,...ce.map(ie=>ne(ie))],M.value=""}function ne(ae){return{type:"file",file:ae,clientId:crypto.randomUUID()}}function ve(ae){const[M]=o.createDraft.photoItems.splice(ae.index,1);if(M){if(M.type==="attachment"){o.createDraft.existingAttachments=o.createDraft.existingAttachments.filter(q=>q!==M.attachment);return}o.createDraft.files=o.createDraft.files.filter(q=>q!==M.file)}}function J(ae,M){ae.button!==0&&ae.pointerType==="mouse"||ae.target.closest("button")||(u.value=M,d.value=null,h.value=ae.pointerId,f.value={src:D.value[M]?.src??"",mimeType:D.value[M]?.mimeType??"",x:ae.clientX+g.x,y:ae.clientY+g.y},ae.currentTarget.setPointerCapture(ae.pointerId),window.addEventListener("pointermove",he),window.addEventListener("pointerup",Ee),window.addEventListener("pointercancel",Ee))}function he(ae){ae.pointerId!==h.value||u.value===null||!f.value||(f.value={...f.value,x:ae.clientX+g.x,y:ae.clientY+g.y},d.value=de(ae.clientX,ae.clientY))}function Ee(ae){if(ae.pointerId!==h.value)return;const M=u.value,q=de(ae.clientX,ae.clientY);M!==null&&q!==null&&M!==q&&Me(M,q),He()}function He(){window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",Ee),window.removeEventListener("pointercancel",Ee),u.value=null,d.value=null,f.value=null,h.value=null}function de(ae,M){const re=document.elementFromPoint(ae,M)?.closest("[data-photo-index]");if(!re)return null;const ce=Number(re.dataset.photoIndex);return Number.isInteger(ce)?ce:null}function Me(ae,M){const q=[...o.createDraft.photoItems],[re]=q.splice(ae,1);re&&(q.splice(M,0,re),o.createDraft.photoItems=q,o.createDraft.existingAttachments=q.filter(ce=>ce.type==="attachment").map(ce=>ce.attachment),o.createDraft.files=q.filter(ce=>ce.type==="file").map(ce=>ce.file))}function De(ae){s("go",{to:"discussion-date",query:{discussion_date_target:ae}})}function ze(ae){s("go",{to:"discussion-time",query:{discussion_time_target:ae}})}function Ue(ae){s("go",{to:"discussion-contact",query:{discussion_contact_type:ae}})}async function ut(){if(P.value){try{if(!await o.saveDraft()){i(o.createError?.message??r("drawer.discussions.create.error"));return}}catch(ae){i(ae instanceof Error&&ae.message?ae.message:r("drawer.discussions.create.error"));return}i(r("drawer.discussions.create.success"),!1),await Bt({path:"/discussions",query:{mine:"1"}})}}function H(ae){return ae.replace(/\D+/g,"")}function Y(ae,M,q,re){const ce=H(M),ie=Math.min(ce.length,Math.max(q,re));return{text:ce,selection:{start:ie,end:ie}}}function W(ae){if(!ae)return"";const M=new Date(`${ae}T00:00:00`);return Number.isNaN(M.getTime())?"":new Intl.DateTimeFormat("ru-RU").format(M)}function _e(ae){const M=ae.replace(/\D+/g,"");if(!M)return"";let q="+";for(let re=0;re<M.length;re+=1){const ce=M[re];re===0||re===3?q+=`${ce} `:re===6||re===8?q+=`${ce}-`:q+=ce}return q}return(ae,M)=>{const q=ti,re=lfe,ce=hfe,ie=Ae("LabeledTextField"),$e=bfe,se=pa,xe=Tfe,Ve=ni,Ze=Ae("PrimaryButton");return p(),y("form",{class:"flex min-h-full flex-col",onSubmit:St(ut,["prevent"])}
9,[c("div",Pfe,[a(o).isDetailLoading&&v.value?(p(),y("div",Dfe,[...M[11]||(M[11]=[c("div",{class:"h-14 animate-pulse rounded-[12px] bg-grey-90"},null,-1),c("div",{class:"h-[132px] animate-pulse rounded-[12px] bg-grey-90"},null,-1),c("div",{class:"h-14 animate-pulse rounded-[12px] bg-grey-90"},null,-1)])])):(p(),y(j,{key:1},[c("h1",Efe,b(F.value),1),c("section",Lfe,[c("p",Rfe,b(R.value),1),T(q,{modelValue:a(o).createDraft.title,"onUpdate:modelValue":M[0]||(M[0]=Je=>a(o).createDraft.title=Je),class:"mt-3","placeholder-text":N.value,multiline:!0},null,8,["modelValue","placeholder-text"]),T(re,{valid:w.value,text:a(r)("drawer.discussions.create.minLength")},null,8,["valid","text"])]),c("section",Mfe,[c("p",Ofe,b(a(r)("drawer.discussions.create.bodyLabel")),1),T(q,{modelValue:a(o).createDraft.body,"onUpdate:modelValue":M[1]||(M[1]=Je=>a(o).createDraft.body=Je),class:"mt-3","placeholder-text":z.value,multiline:!0},null,8,["modelValue","placeholder-text"]),T(re,{valid:$.value,text:a(r)("drawer.discussions.create.minLength")},null,8,["valid","text"])]),k.value?(p(),y("section",Ffe,[T(ce,{title:a(r)("drawer.discussions.create.startLabel"),date:W(a(o).createDraft.eventStartDate),time:a(o).createDraft.eventStartTime,onDate:M[2]||(M[2]=Je=>De("start")),onTime:M[3]||(M[3]=Je=>ze("start"))},null,8,["title","date","time"]),T(ce,{title:a(r)("drawer.discussions.create.finishLabel"),date:W(a(o).createDraft.eventFinishDate),time:a(o).createDraft.eventFinishTime,onDate:M[4]||(M[4]=Je=>De("finish")),onTime:M[5]||(M[5]=Je=>ze("finish"))},null,8,["title","date","time"])])):E("",!0),x.value?(p(),y("section",Nfe,[c("p",Bfe,b(me.value),1),c("p",Vfe,b(ge.value),1),c("div",Hfe,[T(ie,{modelValue:a(o).createDraft.price,"onUpdate:modelValue":M[6]||(M[6]=Je=>a(o).createDraft.price=Je),class:"discussion-price-field","input-mode":"numeric",type:"text",label:a(r)("drawer.discussions.create.pricePlaceholder"),"paste-sanitizer":H,formatter:Y},null,8,["modelValue","label"]),M[12]||(M[12]=c("span",{class:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-16 text-grey-40"}," â½ ",-1))])])):E("",!0),a(C)?(p(),y("section",qfe,[c("p",jfe,b(a(r)("drawer.discussions.create.contactsLabel")),1),c("p",Ufe,b(a(r)("drawer.discussions.create.contactsDescription")),1),c("div",zfe,[T($e,{type:"telegram",value:fe.value,onClick:M[7]||(M[7]=Je=>Ue("telegram"))},null,8,["value"]),T($e,{type:"whatsapp",value:te.value,onClick:M[8]||(M[8]=Je=>Ue("whatsapp"))},null,8,["value"]),T($e,{type:"max",value:V.value,onClick:M[9]||(M[9]=Je=>Ue("max"))},null,8,["value"])])])):E("",!0),c("section",Wfe,[c("p",Gfe,b(a(r)("drawer.discussions.create.photosLabel")),1),c("p",Yfe,b(a(r)("drawer.discussions.create.photosDescription")),1),c("div",Kfe,[L.value?(p(),y("button",{key:0,type:"button",class:"flex h-[120px] flex-col items-center justify-center rounded-[12px] border border-grey-80 text-16 text-black transition-colors xl:hover:bg-grey-90",onClick:M[10]||(M[
910]=Je=>l.value?.click())},[T(se,{class:"[&>path]:fill-black"}),c("span",Qfe,b(a(r)("drawer.discussions.create.add")),1)])):E("",!0),(p(!0),y(j,null,le(D.value,(Je,dt)=>(p(),K(xe,{key:Je.key,class:oe(["touch-none select-none transition",{"opacity-25":u.value===dt,"scale-[0.98] ring-2 ring-black/20":d.value===dt&&u.value!==dt}]),"data-photo-index":dt,src:Je.src,"mime-type":Je.mimeType,"is-main":dt===0,onPointerdown:ft=>J(ft,dt),onRemove:ft=>ve(Je)},null,8,["class","data-photo-index","src","mime-type","is-main","onPointerdown","onRemove"]))),128))]),(p(),K(u$,{to:"body"},[f.value?(p(),y("div",{key:0,class:"pointer-events-none fixed z-[9999] h-[112px] w-[calc((100vw-56px)/2)] max-w-[220px] overflow-hidden rounded-[12px] opacity-90 shadow-[0_12px_40px_rgba(0,0,0,0.22)]",style:kt({transform:`translate3d(${f.value.x}px, ${f.value.y}px, 0)`})},[T(Ve,{src:f.value.src,"mime-type":f.value.mimeType,alt:"",class:"h-full w-full object-cover",draggable:"false"},null,8,["src","mime-type"])],4)):E("",!0)])),c("input",{ref_key:"fileInputRef",ref:l,type:"file",accept:"image/*",multiple:"",class:"hidden",onChange:ye},null,544)]),a(o).createError?(p(),y("p",Xfe,b(a(o).createError.message||a(r)("drawer.discussions.create.error")),1)):E("",!0)],64))]),c("div",Zfe,[T(Ze,{disabled:!P.value,loading:a(o).isCreating,label:a(r)("drawer.discussions.create.submit"),onClick:ut},null,8,["disabled","loading","label"])])],32)}}}),epe=Object.assign(Gs(Jfe,[["__scopeId","data-v-6fa86676"]]),{__name:"DiscussionCreatePanel"}),tpe={class:"flex h-full flex-col"},spe={class:"flex-1 overflow-y-auto px-6 pb-6"},npe={class:"text-24-bold text-black"},rpe={class:"mt-2 text-16 text-grey-40"},ipe={class:"mt-6 overflow-hidden rounded-[16px]"},ope={class:"px-6 pb-6 pt-4"},ape=G({__name:"DiscussionDatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Cn(),o=A(()=>n.query.discussion_date_target==="finish"?"finish":"start"),l=X(f()),u=A(()=>h()),d=A(()=>g(h(),365*10));function f(){const v=o.value==="start"?i.createDraft.eventStartDate:i.createDraft.eventFinishDate;if(!v)return null;const k=new Date(`${v}T00:00:00`);return Number.isNaN(k.getTime())?null:k}function h(){const v=new Date;return v.setHours(0,0,0,0),v}function g(v,k){const x=new Date(v);return x.setDate(x.getDate()+k),x}function m(v){return`${v.getFullYear()}-${String(v.getMonth()+1).padStart(2,"0")}-${String(v.getDate()).padStart(2,"0")}`}function _(){l.value&&(i.setCreateEventDate(o.value,m(l.value)),s("go",{to:"discussion-create",replace:!0}))}return(v,k)=>{const x=Ae("VDatePicker"),C=Ae("PrimaryButton");return p(),y("div",tpe,[c("div",spe,[c("h1",npe,b(a(r)("drawer.discussions.date.title")),1),c("p",rpe,b(a(r)("drawer.discussions.date.description")),1),c("div",ipe,[T(x,{modelValue:a(l),"onUpdate:modelValue":k[0]||(k[0]=w=>it(l)?l.value=w:null),borderless:"",expanded:"","min-date":a(u),"max-date":a(d),color:"green"},null,8,["modelValue","min-date","max-date"])])]),c("div",ope,[T(C,{label:a(r)("drawer.discussions.date.select"),disabled:!a(l),onClick:_},null,8,["label","disabled"])])])}}}),lpe=Object.assign(ape,{__name:"DiscussionDatePanel"}),cpe={class:"flex h-full flex-col px-6 pb-6"},upe={class:"flex flex-1 flex-col items-center justify-center"},dpe={class:"text-center text-24-bold text-black"},fpe={class:"mt-8 flex h-[240px] items-center justify-center gap-7"},ppe=G({__name:"DiscussionTimePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Cn(),o=A(()=>n.query.discussion_time_target==="finish"?"finish":"start"),l=A(()=>{const v=o.value==="start"?i.createDraft.eventStartTime:i.createDraft.eventFinishTime;return g(v)??m(new Date)}),u=X(l.value.hour),d=X(l.value.minute);Se(l,v=>{u.value=v.hour,d.value=v.minute});function f(){i.setCreateEventTime(o.value,`${String(u.value).padStart(2,"0")}:${String(d.value).padStart(2,"0")}`),s("go",{to:"discussion-create",replace:!0})}function h(){u.value=l.value.hour,d.value=l.value.minute}function g(v){const k=/^(\d{2}):(\d{2})$/.exec(v);if(!k)return null;const x=Number(k[1]),C=Number(k[2]);return x<0||x>23||C<0||C>59?null:{hour:x,minute:C}}function m(v){return{hour:v.getHours(),minute:v.getMinutes()}}const _=G({props:{modelValue:{type:Number,required:!0},count:{type:Number,required:!0}},emits:["update:modelValue"],setup(v,{emit:k}){const x=X(null),C=48;let w=!1,$=null,S=0,I=0,P=!1;async function L(fe){await lt(),w=!0,x.value?.scrollTo({top:fe*C,behavior:"auto"}),window.requestAnimationFrame(()=>{w=!1})}function D(){w||!x.value||($!=null&&window.cancelAnimationFrame($),$=window.requestAnimationFrame(()=>{if($=null,!x.value)return;const fe=Math.min(v.count-1,Math.max(0,Math.round(x.value.scrollTop/C)));
9fe!==v.modelValue&&k("update:modelValue",fe)}))}function R(){if(!x.value)return;const fe=Math.min(v.count-1,Math.max(0,Math.round(x.value.scrollTop/C)));k("update:modelValue",fe)}function F(fe){!x.value||fe.pointerType==="touch"||(P=!0,S=fe.clientY,I=x.value.scrollTop,x.value.setPointerCapture(fe.pointerId),fe.preventDefault())}function N(fe){!P||!x.value||(x.value.scrollTop=I-(fe.clientY-S))}function z(fe){!P||!x.value||(P=!1,x.value.releasePointerCapture(fe.pointerId),R())}function me(fe){!P||!x.value||(P=!1,x.value.releasePointerCapture(fe.pointerId),R())}Se(()=>v.modelValue,L,{immediate:!0});function ge(fe){const te=Math.abs(fe-v.modelValue);return["flex h-12 w-16 snap-center items-center justify-center text-16 transition-colors",fe===v.modelValue?"border-grey-80 bg-white text-black":"text-grey-40",fe===v.modelValue?"rounded-[12px] border":"",te===1&&fe!==v.modelValue?"text-grey-50":"",te>1?"text-grey-70":""]}return()=>ot("div",{class:"relative h-[240px] w-16"},[ot("div",{ref:x,class:"time-wheel-scroll h-full cursor-grab snap-y snap-mandatory overflow-y-auto overflow-x-hidden active:cursor-grabbing",onScroll:D,onPointerdown:F,onPointermove:N,onPointerup:z,onPointercancel:me},[ot("div",{class:"h-24"}),...Array.from({length:v.count},(fe,te)=>ot("button",{type:"button",class:ge(te),onClick:()=>k("update:modelValue",te)},String(te).padStart(2,"0"))),ot("div",{class:"h-24"})])])}});return(v,k)=>{const x=Ae("PrimaryButton");return p(),y("div",cpe,[c("div",upe,[c("h1",dpe,b(a(r)("drawer.discussions.time.title")),1),c("div",fpe,[T(a(_),{modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=C=>u.value=C),count:24},null,8,["modelValue"]),k[2]||(k[2]=c("span",{class:"pb-1 text-24 text-grey-40"},":",-1)),T(a(_),{modelValue:d.value,"onUpdate:modelValue":k[1]||(k[1]=C=>d.value=C),count:60},null,8,["modelValue"])])]),T(x,{label:a(r)("drawer.discussions.time.save"),onClick:f},null,8,["label"]),c("button",{type:"button",class:"mt-3 flex h-12 w-full items-center justify-center rounded-[12px] bg-grey-90 text-16-bold text-black transition-colors xl:hover:bg-grey-80",onClick:h},b(a(r)("drawer.discussions.time.reset")),1)])}}}),hpe=Object.assign(Gs(ppe,[["__scopeId","data-v-8a03be15"]]),{__name:"DiscussionTimePanel"}),mpe={class:"flex h-full flex-col px-6 pb-6"},gpe={class:"flex-1 overflow-y-auto"},ype={class:"text-24-bold text-black"},_pe={class:"mt-2 text-16 text-grey-40"},vpe={key:0,class:"mt-6 rounded-[12px] border border-grey-80 p-4"},bpe={class:"text-16-bold text-black"},xpe={class:"mt-2 whitespace-pre-line text-13 text-black"},kpe={key:1,class:"mt-2 text-13 text-red-50"},wpe=G({__name:"DiscussionContactPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Cn(),o=zl(),l=A(()=>{const x=n.query.discussion_contact_type;return x==="whatsapp"||x==="max"||x==="telegram"?x:"telegram"}),u=X(m()),d=A(()=>r(`drawer.discussions.contact.${l.value}.title`)),f=A(()=>r(`drawer.discussions.contact.${l.value}.description`)),h=A(()=>r(`drawer.discussions.contact.${l.value}.placeholder`)),g=A(()=>{if(!u.value)return!0;if(l.value==="telegram")return v(u.value).length>0;const x=u.value.replace(/\D+/g,"");return x.length===11&&x.startsWith("7")});function m(){if(l.value==="telegram")return i.createDraft.telegramLink?`@${i.createDraft.telegramLink}`:"";const x=l.value==="whatsapp"?i.createDraft.whatsappLink:i.createDraft.maxLink;return k(x)}function _(){const x=l.value==="telegram"?v(u.value):u.value.replace(/\D+/g,"");i.setCreateContact(l.value,x),s("go",{to:"discussion-create",replace:!0})}function v(x){return x.trim().replace(/^@+/,"")}function k(x){const C=x.replace(/\D+/g,"").slice(0,11);return o("",C,C.length,C.length).text}return(x,C)=>{const w=Ae("TextField"),$=Ae("PrimaryButton");return p(),y("div",mpe,[c("div",gpe,[c("h1",ype,b(a(d)),1),c("p",_pe,b(a(f)),1),a(l)==="telegram"?(p(),y("div",vpe,[c("p",bpe,b(a(r)("drawer.discussions.contact.telegramHelpTitle")),1),c("p",xpe,b(a(r)("drawer.discussions.contact.telegramHelp")),1)])):E("",!0),T(w,{modelValue:a(u),"onUpdate:modelValue":C[0]||(C[0]=S=>it(u)?u.value=S:null),class:"mt-6","input-mode":a(l)==="telegram"?void 0:"tel",type:a(l)==="telegram"?"text":"tel",autocomplete:a(l)==="telegram"?void 0:"tel",placeholder:a(h),"digits-only-on-paste":a(l)!=="telegram",formatter:a(l)==="telegram"?void 0:a(o),size:"default"},null,8,["modelValue","input-mode","type","autocomplete","placeholder","digits-only-on-paste","formatter"]),a(l)!=="telegram"&&!a(g)?(p(),y("p",kpe,b(a(r)("drawer.discussions.contact.phone
9Error")),1)):E("",!0)]),T($,{label:a(r)("drawer.discussions.contact.save"),disabled:!a(g),onClick:_},null,8,["label","disabled"])])}}}),Cpe=Object.assign(wpe,{__name:"DiscussionContactPanel"}),$pe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Spe(e,t){return p(),y("svg",$pe,[...t[0]||(t[0]=[c("path",{fill:"#565F8F",d:"M14.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 1 1-1.414-1.414L18.586 13H3a1 1 0 0 1 0-2h15.586l-4.293-4.293a1 1 0 0 1 0-1.414"},null,-1)])])}const Ape={render:Spe},Ipe={key:0,class:"inline-block text-[#565F8F]"},Tpe={key:0,class:"flex shrink-0 flex-col items-start gap-1 rounded-[8px] bg-[#F7F8FC] p-4"},Ppe={class:"whitespace-nowrap text-16-bold"},Dpe={class:"whitespace-nowrap text-13"},Epe={key:1,class:"flex shrink-0 items-start gap-4 rounded-[8px] bg-[#F7F8FC] p-4"},Lpe={class:"flex shrink-0 flex-col items-start gap-1"},Rpe={class:"whitespace-nowrap text-16-bold"},Mpe={class:"whitespace-nowrap text-13"},Ope={class:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white p-2.5"},Fpe={class:"flex shrink-0 flex-col items-start gap-1"},Npe={class:"whitespace-nowrap text-16-bold"},Bpe={class:"whitespace-nowrap text-13"},Vpe=G({__name:"DiscussionEventDateCard",props:{startAt:{},finishAt:{}},setup(e){const t=e,s=A(()=>n(t.startAt,t.finishAt));function n(l,u){if(!l||!u)return null;const d=new Date(l),f=new Date(u);return Number.isNaN(d.getTime())||Number.isNaN(f.getTime())?null:{isSingleDay:r(d,f),startDate:i(d),finishDate:i(f),startTime:o(d),finishTime:o(f)}}function r(l,u){return l.getFullYear()===u.getFullYear()&&l.getMonth()===u.getMonth()&&l.getDate()===u.getDate()}function i(l){return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"short"}).format(l).replace(".","")}function o(l){return new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(l)}return(l,u)=>{const d=Ape;return a(s)?(p(),y("div",Ipe,[a(s).isSingleDay?(p(),y("div",Tpe,[c("p",Ppe,b(a(s).startDate),1),c("p",Dpe,b(a(s).startTime)+" â "+b(a(s).finishTime),1)])):(p(),y("div",Epe,[c("div",Lpe,[c("p",Rpe,b(a(s).startDate),1),c("p",Mpe,b(a(s).startTime),1)]),c("div",Ope,[T(d)]),c("div",Fpe,[c("p",Npe,b(a(s).finishDate),1),c("p",Bpe,b(a(s).finishTime),1)])]))])):E("",!0)}}}),Hpe=Object.assign(Vpe,{__name:"DiscussionEventDateCard"}),qpe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function jpe(e,t){return p(),y("svg",qpe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M8.027 9.999a.5.5 0 0 1 0 1h-.006a.5.5 0 0 1 0-1zM6.988 5.274A2 2 0 0 1 10 7l-.01.178c-.049.402-.256.725-.483.965-.258.27-.57.467-.816.596-.135.072-.19.184-.19.261a.5.5 0 0 1-1 0c0-.521.33-.938.725-1.146.195-.103.403-.24.556-.4C8.932 7.295 9 7.146 9 7a1 1 0 0 0-.83-.986 1 1 0 0 0-1.111.653.5.5 0 0 1-.944-.332c.157-.445.466-.821.873-1.06"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13m0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11","clip-rule":"evenodd"},null,-1)])])}const Lu={render:jpe},Upe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function zpe(e,t){return p(),y("svg",Upe,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M11.332 11.874c1.512-1.344 3.168-3.307 3.168-5.54 0-1.1-.322-1.99-.867-2.638a3.28 3.28 0 0 0-2.062-1.133C10.28 2.377 8.873 2.913 8 4.122c-.873-1.21-2.28-1.745-3.571-1.559a3.28 3.28 0 0 0-2.062 1.133c-.545.648-.867 1.538-.867 2.638 0 2.233 1.656 4.196 3.168 5.54a19.6 19.6 0 0 0 3.015 2.188q.034.02.053.03l.015.009.004.002.002.002.058.027a.5.5 0 0 0 .428-.027l.002-.002.004-.002.015-.008.053-.031.199-.118a19.591 19.591 0 0 0 2.816-2.07"},null,-1)])])}const b7={render:zpe},Wpe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Gpe(e,t){return p(),y("svg",Wpe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M13.5 6.334c0-.9-.261-1.552-.633-1.994a2.28 2.28 0 0 0-1.438-.786c-1.115-.16-2.393.42-2.969 1.772a.5.5 0 0 1-.92 0c-.576-1.351-1.854-1.933-2.969-1.772a2.28 2.28 0 0 0-1.438.786C2.76 4.782 2.5 5.434 2.5 6.334c0 1.767 1.344 3.47 2.832 4.793A18.6 18.6 0 0 0 8 13.087a18.576 18.576 0 0 0 2.668-1.961C12.156 9.805 13.5 8.102 13.5 6.335m1 0c0 2.233-1.656 4.196-3.168 5.54a19.6 19.6 0 0 1-3.015 2.188q-.034.02-.053.03l-.015.009-.004.002-.002.002a.5.5 0 0 1-.428.027l-.058-.027-.002-.002-.004-.002-.015-.008-.053-.031-.199-.118a19.593 19.593 0 0 1-2.816-2.07C3.156 10.53 1.5 8.567 1.5 6.334c0-1.1.322-1.99.867-2.638A3.28 3.28 0 0 1 4.43 2.563C5.72 2.377 7.127 2.913 8 4.122c.873-1.21 2.28-1.745 3.571-1.559a3.28 3.28 0 0 1 2.062 1.133c.545.648.867 1.538.867 2.638"},null,-1)])])}const x7={render:Gpe},Ype={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Kpe(e,t){return p(),y("svg",Ype,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M5 6.167a.834.834 0 1 1 0 1.668.834.834 0 0 1 0-1.668M8 6.167a.834.834 0 1 1 0 1.668.834.834 0 0 1 0-1.668M11 6.167a.834.834 0 1 1 0 1.668.834.834 0 0 1 0-1.668"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M10.8 1.5c.552 0 .996 0 1.354.03.365.03.685.092.98.242a2.5 2.5 0 0 1 1.093 1.093c.151.296.214.616.244.98.029.36.029.803.029 1.355v3.6c0 .552 0 .996-.03 1.354-.03.365-.092.685-.243.98a2.5 2.5 0 0 1-1.092 1.093c-.297.152-.62.214-.987.244-.363.029-.813.029-1.373.029-.315 0-.378.004-.427.018a.5.5 0 0 0-.16.077c-.042.03-.084.076-.278.318l-.895 1.118c-.101.127-.197.248-.286.34a1 1 0 0 1-.378.265 1 1 0 0 1-.702 0 1 1 0 0 1-.378-.265c-.089-.092-.185-.213-.286-.34l-.895-1.118c-.194-.242-.236-.288-.277-.318a.5.5 0 0 0-.16-.077c-.05-.014-.114-.018-.428-.018-.56 0-1.01 0-1.372-.03-.368-.029-.69-.091-.988-.243a2.5 2.5 0 0 1-1.093-1.092c-.15-.296-.213-.616-.243-.98C1.5 9.794 1.5 9.351 1.5 8.8V5.2c0-.552 0-.996.03-1.354.03-.365.092-.685.242-.98.24-.471.623-.854 1.093-1.094.296-.15.616-.213.98-.243.36-.029.803-.029 1.355-.029zm-5.6 1c-.568 0-.965 0-1.273.025-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C2.5 4.235 2.5 4.632 2.5 5.2v3.6c0 .568 0 .965.025 1.273.025.302.071.476.138.608.144.282.374.512.656.656.131.066.306.113.614.138.312.025.715.025 1.292.025.258 0 .482-.004.693.054a1.5 1.5 0 0 1 .481.231c.177.129.313.304.472.503l.895 1.12c.112.14.176.219.227.272l.007.005.007-.005c.05-.053.115-.133.227-.273l.895-1.119c.159-.199.295-.374.472-.503a1.5 1.5 0 0 1 .481-.231c.211-.058.435-.054.693-.054.577 0 .98 0 1.292-.025.307-.025.483-.072.614-.138.282-.144.512-.374.656-.656.067-.132.113-.306.138-.608.025-.308.025-.705.025-1.273V5.2c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138-.308-.025-.705-.025-1.273-.025z","clip-rule":"evenodd"},null,-1)])])}const K0={render:Kpe},H4=(e,t)=>
9{for(const s of Object.keys(t))e.on(s,t[s])},k7=e=>{for(const t of Object.keys(e)){const s=e[t];s&&eo(s.cancel)&&s.cancel()}},Qpe=e=>!e||typeof e.charAt!="function"?e:e.charAt(0).toUpperCase()+e.slice(1),eo=e=>typeof e=="function",Gl=(e,t,s)=>{for(const n in s){const r="set"+Qpe(n);e[r]?Se(()=>s[n],(i,o)=>{e[r](i,o)}):t[r]&&Se(()=>s[n],i=>{t[r](i)})}},ga=(e,t,s={})=>{const n={...s};for(const r in e){const i=t[r],o=e[r];i&&(i&&i.custom===!0||o!==void 0&&(n[r]=o))}return n},Ru=e=>{const t={},s={};for(const n in e)if(n.startsWith("on")&&!n.startsWith("onUpdate")&&n!=="onReady"){const r=n.slice(2).toLocaleLowerCase();t[r]=e[n]}else s[n]=e[n];return{listeners:t,attrs:s}},Xpe=async e=>{const t=await Promise.all([wt(()=>import("./D4k_ikNW.js"),[],import.meta.url),wt(()=>import("./C2eJqgqv.js"),[],import.meta.url),wt(()=>import("./DU6CIJ0p.js"),[],import.meta.url)]);delete e.Default.prototype._getIconUrl,e.Default.mergeOptions({iconRetinaUrl:t[0].default,iconUrl:t[1].default,shadowUrl:t[2].default})},vd=e=>{const t=X((...n)=>console.warn(`Method ${e} has been invoked without being replaced`)),s=(...n)=>t.value(...n);return s.wrapped=t,ks(e,s),s},bd=(e,t)=>e.wrapped.value=t,fo=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||globalThis,Ai=e=>{const t=ts(e);if(t===void 0)throw new Error(`Attempt to inject ${e.description} before it was provided.`);return t},Yl=Symbol("useGlobalLeaflet"),Mu=Symbol("addLayer"),w7=Symbol("removeLayer"),C7=Symbol("registerControl"),Zpe=Symbol("registerLayerControl"),$7=Symbol("canSetParentHtml"),S7=Symbol("setParentHtml"),A7=Symbol("setIcon"),Jpe=Symbol("bindPopup"),ehe=Symbol("bindTooltip"),the=Symbol("unbindPopup"),she=Symbol("unbindTooltip"),Ou={options:{type:Object,default:()=>({}),custom:!0}},Q0=e=>({options:e.options,methods:{}}),Kl={...Ou,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},I7=(e,t,s)=>{const n=Ai(Mu),r=Ai(w7),{options:i,methods:o}=Q0(e),l=ga(e,Kl,i),u=()=>n({leafletObject:t.value}),d=()=>r({leafletObject:t.value}),f={...o,setAttribution(h){d(),t.value.options.attribution=h,e.visible&&u()},setName(){d(),e.visible&&u()},setLayerType(){d(),e.visible&&u()},setVisible(h){t.value&&(h?u():d())},bindPopup(h){if(!t.value||!eo(t.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}t.value.bindPopup(h)},bindTooltip(h){if(!t.value||!eo(t.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}t.value.bindTooltip(h)},unbindTooltip(){t.value&&(eo(t.value.closeTooltip)&&t.value.closeTooltip(),eo(t.value.unbindTooltip)&&t.value.unbindTooltip())},unbindPopup(){t.value&&(eo(t.value.closePopup)&&t.value.closePopup(),eo(t.value.unbindPopup)&&t.value.unbindPopup())},updateVisibleProp(h){s.emit("update:visible",h)}};return ks(Jpe,f.bindPopup),ks(ehe,f.bindTooltip),ks(the,f.unbindPopup),ks(she,f.unbindTooltip),wn(()=>{f.unbindPopup(),f.unbindTooltip(),d()}),{options:l,methods:f}},nhe=(e,t)=>{if(e&&t.default)return ot("div",{style:{display:"none"}},t.default())},rhe={...Kl,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},T7={...rhe,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}},ihe={...T7,radius:{type:Number},latLng:{type:[Object,Array],required:!0,custom:!0}};({...ihe});const Ql={...Ou,position:{type:String}},ohe=(e,t)=>{const{options:s,methods:n}=Q0(e),r=ga(e,Ql,s),i={...n,setPosition(o){t.value&&t.value.setPosition(o)}};return wn(()=>{t.value&&t.value.remove()}),{options:r,methods:i}},ahe=e=>e.default?ot("div",{ref:"root"},e.default()):null;({...Ql});({...Ql});({...Ql});({...Ql});({...Ql});const P7={...Kl};({...P7});({...P7});const ig={...Kl,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:[Number,Array,Object]},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number},className:{type:String}},D7=(e,t,s)=>{const{options:n,methods:r}=I7(e,t,s),i=ga(e,ig,n),o={...r,setTileComponent(){var l;(l=t.value)==null||l.redraw()}};return wn(()=>{t.value.off()}),{options:i,methods:o}}
9,lhe=(e,t,s,n)=>e.extend({initialize(r){this.tileComponents={},this.on("tileunload",this._unloadTile),s.setOptions(this,r)},createTile(r){const i=this._tileCoordsToKey(r);this.tileComponents[i]=t.create("div");const o=ot({setup:n,props:["coords"]},{coords:r});return WS(o,this.tileComponents[i]),this.tileComponents[i]},_unloadTile(r){const i=this._tileCoordsToKey(r.coords);this.tileComponents[i]&&(this.tileComponents[i].innerHTML="",this.tileComponents[i]=void 0)}});({...ig});const q4={iconUrl:{type:String},iconRetinaUrl:{type:String},iconSize:{type:[Object,Array]},iconAnchor:{type:[Object,Array]},popupAnchor:{type:[Object,Array]},tooltipAnchor:{type:[Object,Array]},shadowUrl:{type:String},shadowRetinaUrl:{type:String},shadowSize:{type:[Object,Array]},shadowAnchor:{type:[Object,Array]},bgPos:{type:[Object,Array]},className:{type:String}},che=G({name:"LIcon",props:{...q4,...Ou},setup(e,t){const s=X(),n=ts(Yl),r=Ai($7),i=Ai(S7),o=Ai(A7);let l,u,d,f,h;const g=(k,x,C)=>{const w=k&&k.innerHTML;if(!x){C&&h&&r()&&i(w);return}const{listeners:$}=Ru(t.attrs);h&&u(h,$);const{options:S}=Q0(e),I=ga(e,q4,S);w&&(I.html=w),h=I.html?d(I):f(I),l(h,$),o(h)},m=()=>{lt(()=>g(s.value,!0,!1))},_=()=>{lt(()=>g(s.value,!1,!0))},v={setIconUrl:m,setIconRetinaUrl:m,setIconSize:m,setIconAnchor:m,setPopupAnchor:m,setTooltipAnchor:m,setShadowUrl:m,setShadowRetinaUrl:m,setShadowAnchor:m,setBgPos:m,setClassName:m,setHtml:m};return je(async()=>{const{DomEvent:k,divIcon:x,icon:C}=n?fo.L:await wt(()=>import("./C210bVOb.js"),[],import.meta.url);l=k.on,u=k.off,d=x,f=C,Gl(v,{},e),new MutationObserver(_).observe(s.value,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),m()}),{root:s}},render(){const e=this.$slots.default?this.$slots.default():void 0;return ot("div",{ref:"root"},e)}});({...Kl});function E7(e,t,s){var n,r,i;t===void 0&&(t=50),s===void 0&&(s={});var o=(n=s.isImmediate)!=null&&n,l=(r=s.callback)!=null&&r,u=s.maxWait,d=Date.now(),f=[];function h(){if(u!==void 0){var m=Date.now()-d;if(m+t>=u)return u-m}return t}var g=function(){var m=[].slice.call(arguments),_=this;return new Promise(function(v,k){var x=o&&i===void 0;if(i!==void 0&&clearTimeout(i),i=setTimeout(function(){if(i=void 0,d=Date.now(),!o){var w=e.apply(_,m);l&&l(w),f.forEach(function($){return(0,$.resolve)(w)}),f=[]}},h()),x){var C=e.apply(_,m);return l&&l(C),v(C)}f.push({resolve:v,reject:k})})};return g.cancel=function(m){i!==void 0&&clearTimeout(i),f.forEach(function(_){return(0,_.reject)(m)}),f=[]},g}const j4={...Ou,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:[Object,Array]},paddingTopLeft:{type:Object},padding:{type:Object},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},uhe=G({inheritAttrs:!1,emits:["ready","update:zoom","update:center","update:bounds"],props:j4,setup(e,t){const s=X(),n=Ws({ready:!1,layersToAdd:[],layersInControl:[]}),{options:r}=Q0(e),i=ga(e,j4,r),{listeners:o,attrs:l}=Ru(t.attrs),u=vd(Mu),d=vd(w7),f=vd(C7),h=vd(Zpe);ks(Yl,e.useGlobalLeaflet);const g=A(()=>{const x={};return e.noBlockingAnimations&&(x.animate=!1),x}),m=A(()=>{const x=g.value;return e.padding&&(x.padding=e.padding),e.paddingTopLeft&&(x.paddingTopLeft=e.paddingTopLeft),e.paddingBottomRight&&(x.paddingBottomRight=e.paddingBottomRight),x}),_={moveend:E7(x=>{n.leafletRef&&(t.emit("update:zoom",n.leafletRef.getZoom()),t.emit("update:center",n.leafletRef.getCenter()),t.emit("update:bounds",n.leafletRef.getBounds()))}),overlayadd(x){const C=n.layersInControl.find(w=>w.name===x.name);C&&C.updateVisibleProp(!0)},overlayremove(x){const C=n.layersInControl.find(w=>w.name===x.name);C&&C.updateVisibleProp(!1)}};je(async()=>{e.useGlobalLeaflet&&(fo.L=fo.L||await wt(()=>import("./BjDC78mm.js").then(D=>D.l),__vite__mapDeps([39,40]),import.meta.url));const{map:x,CRS:C,Icon:w,latLngBounds:$,latLng:S,stamp:I}=e.useGlobalLeaflet?fo.L:await wt(()=>import("./C210bVOb.js"),[],import.meta.url);try{i.beforeMapMount&&await i.beforeMapMount()}catch(D){console.error(`The following error occurred running the provided beforeMapMount hook ${D.message}`)}await Xpe(w);const P=typeof i.crs=="string"?C[i.crs]:i.crs;i.crs=P||C.EPSG3857;const L={addLayer(D){D.layerType!==void 0&&(n.layerControl===void 0?n.layersToAdd.push(D):n.layersInControl.find(R=>I(R.leafletObject)===I(D.leafletObject))||(n.layerControl.addLayer(D),n.layersInControl.push(D))),D.visible!==!1&&n.leafletRef.addLayer(D.leafletObject)},removeLayer(D){D.layerType!==void 0&&(n.layerControl===void 0?n.layersToAdd=n.layersToAdd.filter(R=>R.name!==D.name):(n.layerControl.removeLayer(D.leafletObject),n.layersInControl
9=n.layersInControl.filter(R=>I(R.leafletObject)!==I(D.leafletObject)))),n.leafletRef.removeLayer(D.leafletObject)},registerLayerControl(D){n.layerControl=D,n.layersToAdd.forEach(R=>{n.layerControl.addLayer(R)}),n.layersToAdd=[],f(D)},registerControl(D){n.leafletRef.addControl(D.leafletObject)},setZoom(D){const R=n.leafletRef.getZoom();D!==R&&n.leafletRef.setZoom(D,g.value)},setCrs(D){const R=n.leafletRef.getBounds();n.leafletRef.options.crs=D,n.leafletRef.fitBounds(R,{animate:!1,padding:[0,0]})},fitBounds(D){n.leafletRef.fitBounds(D,m.value)},setBounds(D){if(!D)return;const R=$(D);R.isValid()&&!(n.lastSetBounds||n.leafletRef.getBounds()).equals(R,0)&&(n.lastSetBounds=R,n.leafletRef.fitBounds(R))},setCenter(D){if(D==null)return;const R=S(D),F=n.lastSetCenter||n.leafletRef.getCenter();(F.lat!==R.lat||F.lng!==R.lng)&&(n.lastSetCenter=R,n.leafletRef.panTo(R,g.value))}};bd(u,L.addLayer),bd(d,L.removeLayer),bd(f,L.registerControl),bd(h,L.registerLayerControl),n.leafletRef=vo(x(s.value,i)),Gl(L,n.leafletRef,e),H4(n.leafletRef,_),H4(n.leafletRef,o),n.ready=!0,lt(()=>t.emit("ready",n.leafletRef))}),Tt(()=>{k7(_),n.leafletRef&&(n.leafletRef.off(),n.leafletRef.remove())});const v=A(()=>n.leafletRef),k=A(()=>n.ready);return{root:s,ready:k,leafletObject:v,attrs:l}},render({attrs:e}){return e.style||(e.style={}),e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%"),ot("div",{...e,ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}}),dhe=["Symbol(Comment)","Symbol(Text)"],fhe=["LTooltip","LPopup"],L7={...Kl,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},phe=(e,t,s)=>{const{options:n,methods:r}=I7(e,t,s),i=ga(e,L7,n),o={...r,setDraggable(l){t.value.dragging&&(l?t.value.dragging.enable():t.value.dragging.disable())},latLngSync(l){s.emit("update:latLng",l.latlng),s.emit("update:lat-lng",l.latlng)},setLatLng(l){if(l!=null&&t.value){const u=t.value.getLatLng();(!u||!u.equals(l))&&t.value.setLatLng(l)}}};return{options:i,methods:o}},hhe=(e,t)=>{const s=t.slots.default&&t.slots.default();return s&&s.length&&s.some(mhe)};function mhe(e){return!(dhe.includes(e.type.toString())||fhe.includes(e.type.name))}const ghe=G({name:"LMarker",props:L7,setup(e,t){const s=X(),n=X(!1),r=ts(Yl),i=Ai(Mu);ks($7,()=>{var d;return!!((d=s.value)!=null&&d.getElement())}),ks(S7,d=>{var f,h;const g=eo((f=s.value)==null?void 0:f.getElement)&&((h=s.value)==null?void 0:h.getElement());g&&(g.innerHTML=d)}),ks(A7,d=>{var f;return((f=s.value)==null?void 0:f.setIcon)&&s.value.setIcon(d)});const{options:o,methods:l}=phe(e,s,t),u={moveHandler:E7(l.latLngSync)};return je(async()=>{const{marker:d,divIcon:f}=r?fo.L:await wt(()=>import("./C210bVOb.js"),[],import.meta.url);hhe(o,t)&&(o.icon=f({className:""})),s.value=vo(d(e.latLng,o));const{listeners:h}=Ru(t.attrs);s.value.on(h),s.value.on("move",u.moveHandler),Gl(l,s.value,e),i({...e,...l,leafletObject:s.value}),n.value=!0,lt(()=>t.emit("ready",s.value))}),Tt(()=>k7(u)),{ready:n,leafletObject:s}},render(){return nhe(this.ready,this.$slots)}}),yhe={...T7,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},U4={...yhe},R7={...Ou,content:{type:String,default:null}};({...R7});({...U4,latLngs:{...U4.latLngs}});const og={...ig,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:e=>typeof e=="string"?!0:Array.isArray(e)?e.every(t=>typeof t=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},_he=(e,t,s)=>{const{options:n,methods:r}=D7(e,t,s),i=ga(e,og,n),o={...r};return{options:i,methods:o}},vhe=G({props:og,setup(e,t){const s=X(),n=ts(Yl),r=Ai(Mu),{options:i,methods:o}=_he(e,s,t);return je(async()=>{const{tileLayer:l}=n?fo.L:await wt(()=>import("./C210bVOb.js"),[],import.meta.url);s.value=vo(l(e.url,i));const{listeners:u}=Ru(t.attrs);s.value.on(u),Gl(o,s.value,e),r({...e,...o,leafletObject:s.value}),lt(()=>t.emit("ready",s.value))}),{leafletObject:s}},render(){return null}});({...R7});({...og});const bhe={xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"none"};function xhe(e,t){return p(),y("svg",bhe,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M20 4c2.282 0 4.524.591 6.5 1.715a12.9 12.9 0 0 1 4.759 4.685A12.65 12.65 0 0 1 33 16.8c0 4.171-2.283 10.64-11.128 17.758-.626.504-.94.7
955-1.337.866a2.1 2.1 0 0 1-1.07 0c-.397-.11-.71-.362-1.337-.866C9.283 27.44 7 20.97 7 16.8c0-2.247.6-4.454 1.741-6.4A12.9 12.9 0 0 1 13.5 5.715 13.16 13.16 0 0 1 20 4m0 8a5 5 0 1 0 0 10 5 5 0 0 0 0-10","clip-rule":"evenodd"},null,-1)])])}const khe={render:xhe},whe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Che(e,t){return p(),y("svg",whe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M9.293 13.293a1 1 0 1 1 1.414 1.414L5.414 20H9a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1v-6a1 1 0 1 1 2 0v3.586zM22 9a1 1 0 1 1-2 0V5.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L18.586 4H15a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1z"},null,-1)])])}const $he={render:Che},She={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Ahe(e,t){return p(),y("svg",She,[...t[0]||(t[0]=[c("path",{fill:"#CDD4D2",d:"M77.2 28.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376V77.74c0 .98.001 1.82-.059 2.478-.058.637-.19 1.389-.673 2.012a3.5 3.5 0 0 1-2.65 1.356c-.789.026-1.477-.306-2.027-.632-.568-.336-1.248-.83-2.043-1.403l-9.57-6.912c-1.29-.932-1.785-1.281-2.31-1.527a6.5 6.5 0 0 0-1.542-.499c-.569-.108-1.173-.114-2.765-.114H40c-1.787 0-2.9.007-3.853-.183a9.5 9.5 0 0 1-7.464-7.463c-.19-.955-.183-2.067-.183-3.854a1.5 1.5 0 0 1 3 0c0 1.93.007 2.677.125 3.269a6.5 6.5 0 0 0 5.106 5.106c.592.118 1.338.125 3.269.125h27.861c1.481 0 2.414-.006 3.325.167.779.148 1.537.393 2.255.73.84.392 1.592.943 2.792 1.81l9.572 6.913c.843.609 1.391 1.003 1.813 1.253.252.15.381.197.425.211a.5.5 0 0 0 .333-.17c.014-.043.051-.175.078-.469.045-.488.046-1.164.046-2.204V42.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.603-1.259-.103-2.867-.105-5.132-.105H74a1.5 1.5 0 0 1 0-3zM54 38.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM54 30.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM54 22.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#CDD4D2","fill-rule":"evenodd",d:"M53.2 10.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.736.921a9.5 9.5 0 0 1 4.153 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v15.4c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.736a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H28.14c-1.592 0-2.196.006-2.765.114a6.5 6.5 0 0 0-1.543.5c-.524.245-1.018.594-2.308 1.526l-9.57 6.912c-.796.574-1.476 1.067-2.044 1.403-.55.326-1.238.658-2.026.632a3.5 3.5 0 0 1-2.65-1.356c-.483-.623-.616-1.375-.674-2.012-.06-.657-.059-1.497-.059-2.478V24.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c1.
9102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115zm-34.4 3c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.132V59.74c0 1.04.001 1.716.046 2.204.027.294.064.426.078.47a.5.5 0 0 0 .333.169c.044-.014.173-.062.425-.211.422-.25.97-.644 1.813-1.253l9.572-6.913c1.2-.867 1.953-1.418 2.792-1.81a9.5 9.5 0 0 1 2.255-.73c.91-.173 1.843-.167 3.325-.167H53.2c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V24.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.604-1.259-.102-2.867-.104-5.132-.104z","clip-rule":"evenodd"},null,-1)])])}const Ihe={render:Ahe},The={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Phe(e,t){return p(),y("svg",The,[...t[0]||(t[0]=[c("path",{fill:"#DDA918",d:"M8.033 9.55a.75.75 0 0 1 .75.75v.067a.75.75 0 0 1-.753.75h-.066a.75.75 0 0 1-.747-.75v-.066a.75.75 0 0 1 .75-.75zM8 4.884a.75.75 0 0 1 .75.75V8.3a.75.75 0 0 1-1.5 0V5.634a.75.75 0 0 1 .75-.75"},null,-1),c("path",{fill:"#DDA918","fill-rule":"evenodd",d:"M8 1.25a6.75 6.75 0 1 1 0 13.5 6.75 6.75 0 0 1 0-13.5m0 1.5a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5","clip-rule":"evenodd"},null,-1)])])}const M7={render:Phe},Dhe=/https?:\/\/[^\s<>"']+|\/share\/[^\s<>"']+|mailto:[^\s<>"']+|tel:(?:\/\/)?\+?[0-9](?:[0-9()\- \u00a0ââ]*[0-9])?|[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}|\+\d[\d ()\-\u00a0ââ]{8,}\d/giu,Ehe=/[.,!?;:]+$/u;function sm(e){const t=[];let s=0;for(const n of e.matchAll(Dhe)){const r=n.index??0,i=n[0],o=Lhe(i);if(!o)continue;r>s&&t.push({text:e.slice(s,r)});const l=Rhe(o);t.push({text:o,href:l,kind:Mhe(l)?"contact":d0(l)?"share":"external"});const u=i.slice(o.length);u&&t.push({text:u}),s=r+i.length}return s<e.length&&t.push({text:e.slice(s)}),t.length?t:[{text:e}]}function Lhe(e){let t=e.replace(Ehe,"");for(;t.endsWith(")")&&z4(t,")")>z4(t,"(");)t=t.slice(0,-1);return t}function z4(e,t){return[...e].filter(s=>s===t).length}function Rhe(e){if(/^(https?:\/\/|\/share\/|mailto:|tel:)/iu.test(e))return e;if(e.includes("@"))return`mailto:${e}`;const t=e.trim().startsWith("+"),s=e.replace(/\D/g,"");return`tel:${t?"+":""}${s}`}function Mhe(e){return/^(mailto:|tel:)/iu.test(e)}const Ohe={class:"relative flex min-h-full flex-col"},Fhe={class:"text-24-bold text-black"},Nhe={key:0,class:"flex min-h-[260px] flex-1 flex-col items-center justify-center py-10 text-center"},Bhe={class:"mt-6 text-16 text-black"},Vhe={key:1,class:"mt-6 space-y-4"},Hhe={class:"flex items-start gap-3"},qhe=["src"],jhe={class:"min-w-0 flex-1"},Uhe={class:"flex items-start justify-between gap-3"},zhe={class:"min-w-0"},Whe={class:"truncate text-16 text-black"},Ghe={class:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-1"},Yhe={key:0,class:"text-13 text-emerald-primary"},Khe={class:"text-13 text-grey-40"},Qhe=["aria-label","onClick"],Xhe={class:"mt-2 whitespace-pre-line text-16 text-black"},Zhe={key:0,class:"text-emerald-primary"},Jhe=["href","target","rel","onClick"],eme={key:0,class:"mt-2 flex items-center gap-4"},tme=["onClick"],sme=["disabled","onClick"],nme=["onClick"],rme=["onClick"],ime=["onClick"],ome={class:"w-full max-w-[360px] rounded-[16px] bg-white p-4 shadow-xl"},ame={class:"text-20-bold text-black"},lme={key:0,class:"mt-4 space-y-2"},cme={key:1,class:"mt-4 space-y-1"},ume=["onClick"],dme=G({__name:"DiscussionCommentsSection",setup(e){const{t}=be(),{$showSnackbar:s}=Te(),n=Cn(),{openShareOrExternal:r}=Dl(),i=X(""),o=X(null),l=A(()=>f(n.detail?.comments??[])),u=A(()=>l.value.filter(L=>!L.comment.isRemoved).length),d=A(()=>{if(l.value.length===0)return t("drawer.discussions.comments.title");const L=u.value;return`${L} ${h(L)}`});je(()=>{window.addEventListener("click",x)}),Tt(()=>{window.removeEventListener("click",x)});function f(L){const D=[],R=te=>{D.push(te),te.replies.forEach(R)};L.forEach(R);const F=new Map(D.filter(te=>te.postCommentId).map(te=>[te.postCommentId,te])),N=new Map,z=[];for(const te of D)if(te.replyToCommentId&&F.has(te.replyToCommentId)){const V=N.get(te.replyToCommentId)??[];V.push(te),N.set(te.replyToCommentId,V)}else z.push(te);const me=[],ge=new Set,fe=(te,V)=>{const pe=te.postCommentId||`${te.createdAt}-${te.body}`;if(!ge.has(pe)){ge.add(pe),me.push({comment:te,isReply:V>0,bodySegments:sm(te.body)});for(const ye of N.get(te.postCommentId)??[])fe(ye,1)}};return z.forEach(te=>fe(te,0)),me}function h(L){const D=L%10,R=L%100;return D===1&&R!==11?t("drawer.discussions.comments.commentOne"):D>=2&&D<=4&&(R<12||R>14)?t("drawer.discussions.comments.commentFew"):t("drawer.discussions.comments.commentMany")}function g(L){if(!L)return"";const D=new Date(L);if(Number.isNaN(D.getTime()))return L;const F=new Date().getTime()-D.getTime();if(F>=0&&F<=14400*60*1e3){const N=Math.max(1,Math.floor(F/6e4));if(N<60)return t("drawer.discussions.comments.minutesAgo",{count:N});const z=Math.floor(N/60);return z<24?t("drawer.discussions.comments.hoursAgo",{count:z}):t("drawer.discussions.comments.daysAgo",{count:Math.floor(z/24)})}return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(D)}function m(L){if(L.authorRole)return L.authorRole;const D=n.detail?.author?.userId;return D&&L.author?.userId===D?t("drawer.discussions.comments.authorRole"):""}function _(L){const D=L.author?.fullName??"";return!!(L.author?.userId&&L.author.userId===n.residentId||n.currentUserName&&D===n.currentUserName)}function v(L,D){D.kind!=="share"||!D.href||(L.preventDefault(),r(D.href))}function k(L){i.value=i.value===L?"":L}function x(){i.value=""}async function C(L){i.value="";const D=await Wl(L.body);s(t(D?"drawer.discussions.comments.copied":"drawer.discussions.comments.copyError"),!D)}
9function w(L){i.value="",n.selectEdit(L)}async function $(L){i.value="",await n.deleteComment(L.postCommentId)||s(n.detailError?.message??t("drawer.discussions.comments.deleteError"))}async function S(L){i.value="",o.value=L,(await n.loadCommentReportReasons()).length===0&&(s(n.reportReasonsError?.message??t("drawer.discussions.comments.reportReasonsError")),o.value=null)}function I(){o.value=null}async function P(L){if(!o.value)return;if(await n.reportComment(o.value.postCommentId,L)){I(),s(t("drawer.discussions.comments.reported"),!1);return}s(n.detailError?.message??t("drawer.discussions.comments.reportError"))}return(L,D)=>{const R=Ihe,F=r7,N=b7,z=x7,me=U0,ge=z0,fe=jl,te=M7;return p(),y("section",Ohe,[c("h2",Fhe,b(d.value),1),l.value.length===0?(p(),y("div",Nhe,[T(R,{"aria-hidden":"true"}),c("h3",Bhe,b(a(t)("drawer.discussions.comments.emptyTitle")),1)])):(p(),y("ul",Vhe,[(p(!0),y(j,null,le(l.value,V=>(p(),y("li",{key:V.comment.postCommentId||`${V.comment.createdAt}-${V.comment.body}`,class:oe({"pl-7":V.isReply})},[c("article",{class:oe(["relative",[V.comment.isHighlighted?"rounded-[12px] border-l-2 border-l-emerald-primary bg-grey-90 p-4":""]])},[c("div",Hhe,[c("img",{src:V.comment.author?.avatarUrl||"/images/avatar_placeholder.png",alt:"",class:"h-11 w-11 shrink-0 rounded-full object-cover",draggable:"false"},null,8,qhe),c("div",jhe,[c("div",Uhe,[c("div",zhe,[c("p",Whe,b(V.comment.author?.fullName||a(t)("drawer.discussions.detail.authorFallback")),1),c("div",Ghe,[m(V.comment)?(p(),y("span",Yhe,b(m(V.comment)),1)):E("",!0),c("time",Khe,b(g(V.comment.createdAt)),1)])]),V.comment.isRemoved?E("",!0):(p(),y("button",{key:0,type:"button",class:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full transition-colors xl:hover:bg-grey-90","aria-label":a(t)("drawer.discussions.comments.menu"),onClick:St(pe=>k(V.comment.postCommentId),["stop"])},[T(F,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})],8,Qhe))]),c("p",Xhe,[V.comment.replyToName?(p(),y("span",Zhe,b(V.comment.replyToName)+", ",1)):E("",!0),(p(!0),y(j,null,le(V.bodySegments,(pe,ye)=>(p(),y(j,{key:`${V.comment.postCommentId}-${ye}`},[pe.href?(p(),y("a",{key:0,href:pe.href,target:pe.kind==="external"?"_blank":void 0,rel:pe.kind==="external"?"noopener noreferrer":void 0,class:"text-emerald-primary underline underline-offset-2",onClick:ne=>v(ne,pe)},b(pe.text),9,Jhe)):(p(),y(j,{key:1},[Qe(b(pe.text),1)],64))],64))),128))]),V.comment.isRemoved?E("",!0):(p(),y("div",eme,[c("button",{type:"button",class:"text-16 text-grey-40 transition-colors xl:hover:text-black",onClick:pe=>a(n).selectReply(V.comment)},b(a(t)("drawer.discussions.comments.reply")),9,tme),c("button",{type:"button",class:oe(["flex items-center gap-1 text-13 transition-colors",V.comment.isLiked?"text-red-50":"text-grey-40 xl:hover:text-black"]),disabled:a(n).pendingLikeCommentIds.includes(V.comment.postCommentId),onClick:pe=>a(n).toggleCommentLike(V.comment.postCommentId)},[V.comment.isLiked?(p(),K(N,{key:0,class:"h-4 w-4 [&>path]:fill-red-50","aria-hidden":"true"})):(p(),K(z,{key:1,class:"h-4 w-4","aria-hidden":"true"})),c("span",null,b(V.comment.likesCount),1)],10,sme)]))])]),i.value===V.comment.postCommentId?(p(),y("div",{key:0,class:"absolute right-0 top-8 z-20 min-w-[200px] rounded-[12px] bg-white p-1 shadow-[0_12px_32px_rgba(0,0,0,0.12)]",onClick:D[0]||(D[0]=St(()=>{},["stop"]))},[c("button",{type:"button",class:"flex w-full items-center gap-3 rounded-lg px-3 py-3 text-left text-15 text-black transition-colors xl:hover:bg-grey-90",onClick:pe=>C(V.comment)},[T(me,{class:"h-5 w-5 shrink-0","aria-hidden":"true"}),Qe(" "+b(a(t)("drawer.discussions.comments.copyText")),1)],8,nme),_(V.comment)?(p(),y("button",{key:0,type:"button",class:"flex w-full items-center gap-3 rounded-lg px-3 py-3 text-left text-15 text-black transition-colors xl:hover:bg-grey-90",onClick:pe=>w(V.comment)},[T(ge,{class:"h-5 w-5 shrink-0","aria-hidden":"true"}),Qe(" "+b(a(t)("drawer.discussions.comments.edit")),1)],8,rme)):E("",!0),c("button",{type:"button",class:oe(["flex w-full items-center gap-3 rounded-lg px-3 py-3 text-left text-15 transition-colors xl:hover:bg-grey-90",_(V.comment)?"text-red-50":"text-black"]),onClick:pe=>_(V.comment)?$(V.comment):S(V.comment)},[_(V.comment)?(p(),K(fe,{key:0,class:"h-5 w-5 shrink-0 [&>path]:fill-red-50","aria-hidden":"true"})):(p(),K(te,{key:1,class:"h-5 w-5 shrink-0","aria-hidden":"true"})),Qe(" "+b(_(V.comment)?a(t)("drawer.discussions.comments.delete"):a(t)("drawer.discussions.comments.report")),1)],10,ime)])):E("",!0)],2)],2))),128))])),o.value?(p(),y("div",{key:2,class:"fixed inset-0 z-[130] flex items-end justify-center bg-black/20 p-4 xl:items-center",onClick:St(I,["self"])},[c("div",ome,[c("h3",ame,b(a(t)("drawer.discussions.comments.report")),1),a(n).isReportReasonsLoading?(p(),y("div",lme,[(p(),y(j,null,le(3,V=>c("div",{key:V,class:"h-11 animate-pulse rounded-lg bg-grey-90"})),64))])):(p(),y("div",cme,[(p(!0),y(j,null,le(a(n).reportReasons,V=>(p(),y("button",{key:V.value,type:"button",class:"w-full rounded-lg px-3 py-3 text-left text-15 text-black transition-colors xl:hover:bg-grey-90",onClick:pe=>P(V.value)},b(V.title),9,ume))),128))])),c("button",{type:"button",class:"mt-3 h-11 w-full rounded-lg bg-grey-90 text-15 text-black transition-colors xl:hover:bg-grey-80",onClick:I},b(a(t)("drawer.discussions.comments.cancel")),1)])])):E("",!0)])}}}),O7=Object.assign(dme,{__name:"DiscussionCommentsSection"}),fme={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function pme(e,t){return p(),y("svg",fme,[...t[0]||(t[0]=[c("path",{fill:"#F9F9F9",d:"M4.087 2.75c.281-.066.694.14 1.517.552l15.106 7.553c.736.368 1.105.553 1.223.802a.8.8 0 0 1 0 .685c-.118.25-.486.434-1.223.803L5.604 20.698c-.823.412-1.236.617-1.517.552a.8.8 0 0 1-.55-.457c-.116-.264.011-.707.264-1.592l1.472-5.14c.082-.286.123-.43.203-.542a.8.8 0 0 1 .273-.24c.122-.065.27-.087.564-.131l7.
9658-1.149-7.658-1.147c-.294-.044-.442-.066-.564-.132a.8.8 0 0 1-.273-.24c-.08-.112-.12-.255-.203-.541l-1.471-5.14c-.254-.885-.38-1.328-.264-1.593a.8.8 0 0 1 .549-.456"},null,-1)])])}const X0={render:pme},hme={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function mme(e,t){return p(),y("svg",hme,[...t[0]||(t[0]=[c("path",{fill:"#999",d:"M4.087 2.75c.281-.066.694.14 1.517.552l15.106 7.553c.736.368 1.105.553 1.223.802a.8.8 0 0 1 0 .685c-.118.25-.486.434-1.223.803L5.604 20.698c-.823.412-1.236.617-1.517.552a.8.8 0 0 1-.55-.457c-.116-.264.011-.707.264-1.592l1.472-5.14c.082-.286.123-.43.203-.542a.8.8 0 0 1 .273-.24c.122-.065.27-.087.564-.131l7.658-1.149-7.658-1.147c-.294-.044-.442-.066-.564-.132a.8.8 0 0 1-.273-.24c-.08-.112-.12-.255-.203-.541l-1.471-5.14c-.254-.885-.38-1.328-.264-1.593a.8.8 0 0 1 .549-.456"},null,-1)])])}const Z0={render:mme},gme={class:"shrink-0 bg-white px-6 pb-4 pt-3 xl:rounded-b-[16px]"},yme={key:0,class:"mb-2 flex h-12 items-center gap-2 rounded-[12px] bg-grey-90 px-4"},_me={key:0,class:"text-16 text-black","aria-hidden":"true"},vme={class:"min-w-0 flex-1 truncate text-13 text-black"},bme={class:"flex min-h-14 items-end gap-2 rounded-lg bg-grey-90"},xme={key:0,class:"shrink-0 self-start pl-4 pt-4 text-16 leading-6 text-emerald-primary"},kme=["placeholder","onKeydown"],wme=["disabled","aria-label"],Cme=G({__name:"DiscussionCommentInput",setup(e){const{t}=be(),{$showSnackbar:s}=Te(),n=Cn(),r=X(null),i=A(()=>n.replyToComment?n.replyToComment.author?.fullName||t("drawer.discussions.detail.authorFallback"):n.editingComment?n.editingComment.replyToName||t("drawer.discussions.comments.edit"):""),o=A(()=>n.replyToComment?n.replyToComment.author?.fullName||t("drawer.discussions.detail.authorFallback"):""),l=A(()=>n.commentDraft.trim().length===0||n.isCommentActionLoading);Se(()=>[n.replyToComment?.postCommentId,n.editingComment?.postCommentId],()=>{lt(()=>{r.value?.focus(),d()})}),Se(()=>n.commentDraft,()=>lt(d));async function u(){if(l.value)return;if(!await n.sendComment()){s(n.detailError?.message??t("drawer.discussions.comments.sendError"));return}d()}function d(){const f=r.value;f&&(f.style.height="0px",f.style.height=`${Math.min(f.scrollHeight,128)}px`)}return(f,h)=>{const g=X0,m=Z0;return p(),y("div",gme,[i.value?(p(),y("div",yme,[a(n).replyToComment?(p(),y("span",_me,"â")):E("",!0),c("span",vme,b(i.value),1),a(n).replyToComment?(p(),y("button",{key:1,type:"button",class:"shrink-0 text-13 text-grey-40",onClick:h[0]||(h[0]=_=>a(n).clearReply())},b(a(t)("drawer.discussions.comments.cancel")),1)):(p(),y("button",{key:2,type:"button",class:"shrink-0 text-13 text-grey-40",onClick:h[1]||(h[1]=_=>a(n).clearEdit())},b(a(t)("drawer.discussions.comments.cancel")),1))])):E("",!0),c("div",bme,[o.value?(p(),y("span",xme,b(o.value)+", ",1)):E("",!0),pn(c("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":h[2]||(h[2]=_=>a(n).commentDraft=_),rows:"1",placeholder:a(t)("drawer.discussions.comments.placeholder"),class:oe(["max-h-[128px] min-h-14 flex-1 resize-none overflow-y-auto bg-transparent py-4 pr-0 text-16 leading-6 text-black outline-none caret-paleLime-primary",o.value?"pl-0":"pl-4"]),onInput:d,onKeydown:[Qr(St(u,["meta","prevent"]),["enter"]),Qr(St(u,["ctrl","prevent"]),["enter"])]},null,42,kme),[[jr,a(n).commentDraft]]),c("button",{type:"button",class:"flex h-14 w-14 shrink-0 items-center justify-center",disabled:l.value,"aria-label":a(t)("drawer.discussions.comments.send"),onClick:u},[c("span",{class:oe(["flex h-10 w-10 items-center justify-center rounded-full transition-colors",l.value?"bg-transparent":"bg-paleLime-primary xl:hover:bg-paleLime-40"])},[l.value?(p(),K(m,{key:1,"aria-hidden":"true"})):(p(),K(g,{key:0,"aria-hidden":"true"}))],2)],8,wme)])])}}}),F7=Object.assign(Cme,{__name:"DiscussionCommentInput"}),N7="noopener,noreferrer",$me=900;function B7(e,t){if(e==="telegram"){Sme(t);return}Ame(t)}function Sme(e){const t=Tme(e);t&&Ime(`tg://resolve?domain=${encodeURIComponent(t)}`,`https://t.me/${encodeURIComponent(t)}`)}function Ame(e){const t=Dme(e);t&&window.open(`https://wa.me/${t}`,"_blank",N7)}function Ime(e,t){let s=!0;const n=()=>{s=!1};document.addEventListener("visibilitychange",n,{once:!0}),window.addEventListener("pagehide",n,{once:!0}),window.location.href=e,window.setTimeout(()=>{document.removeEventListener("visibilitychange",n),window.removeEventListener("pagehide",n),s&&document.visibilityState==="visible"&&window.open(t,"_blank",N7)},$me)}function Tme(e){const t=e.trim();if(!t)return"";const s=t.match(/^(?:https?:\/\/)?(?:t\.me|telegram\.me)\/([^/?#]+)/i);if(s?.[1])return s[1].trim();const n=Pme(t);return n||(t.replace(/^@+/,"").split(/[/?#]/)[0]?.trim()??"")}function Pme(e){try{const t=new URL(e);if(t.protocol==="tg:")return t.searchParams.get("domain")?.trim()??"";if(t.hostname==="t.me"||t.hostname==="telegram.me")return t.pathname.split("/").filter(
9Boolean)[0]?.trim()??""}catch{return""}return""}function Dme(e){const t=e.trim();if(!t)return"";const s=t.match(/^(?:https?:\/\/)?wa\.me\/([^/?#]+)/i);if(s?.[1])return s[1].replace(/\D+/g,"");try{const n=new URL(t);if(n.hostname==="wa.me")return n.pathname.replace(/\D+/g,"");if(n.hostname.endsWith("whatsapp.com"))return n.searchParams.get("phone")?.replace(/\D+/g,"")??""}catch{return t.replace(/\D+/g,"")}return t.replace(/\D+/g,"")}const Eme={class:"flex h-full min-h-0 flex-col overflow-hidden bg-grey-90 pt-2"},Lme={key:0,class:"space-y-4 px-6 pb-6"},Rme={key:1,class:"px-6 py-12 text-center"},Mme={class:"text-20-bold text-black"},Ome={class:"mt-2 text-15 text-grey-40"},Fme={class:"min-h-0 flex-1 overflow-y-auto scrollbar-4-grey80"},Nme={class:"rounded-[24px] bg-white p-4"},Bme={key:1,class:"relative aspect-[356/288] overflow-hidden rounded-[16px] bg-grey-90"},Vme={key:0,class:"pointer-events-none absolute right-2 top-2 flex items-center gap-1 rounded-full bg-black/30 px-2 py-1 text-11 text-white backdrop-blur-[12px]"},Hme={class:"mt-5"},qme={class:"flex items-center justify-between gap-3"},jme={class:"min-w-0 text-13 text-grey-40"},Ume={key:0,class:"ml-auto flex shrink-0 items-center gap-1"},zme=["aria-label","title"],Wme={class:"mt-2 flex items-start justify-between gap-4"},Gme={class:"min-w-0 text-24-bold text-black [overflow-wrap:anywhere]"},Yme=["href","target","rel","onClick"],Kme={key:0,class:"shrink-0 pt-1 text-16-bold text-emerald-primary"},Qme={key:2,class:"mt-4 whitespace-pre-line text-16 text-black [overflow-wrap:anywhere]"},Xme=["href","target","rel","onClick"],Zme={key:3,class:"mt-5 flex flex-wrap gap-2 text-13 text-black"},Jme={key:0},e2e={key:4,class:"mt-5 space-y-2"},t2e=["src","alt"],s2e={key:0,class:"mt-2 flex items-start gap-3 rounded-[24px] bg-white p-4"},n2e=["src"],r2e={class:"min-w-0"},i2e={key:0,class:"truncate text-16 text-black"},o2e={key:1,class:"mt-1 text-13 text-grey-40"},a2e={key:0,class:"text-paleLime-primary"},l2e={key:1,class:"mt-2 rounded-[24px] bg-white p-4"},c2e={key:0,class:"text-16 text-black"},u2e={key:0,class:"text-paleLime-primary"},d2e={class:"mt-3 h-[120px] overflow-hidden rounded-[12px] bg-grey-90"},f2e={class:"relative h-full"},p2e={class:"pointer-events-none h-full"},h2e=["aria-label","title"],m2e={class:"mt-4 rounded-[24px] bg-white p-4"},g2e={key:1},y2e={class:"text-24-bold text-black"},_2e={class:"mt-2 text-16 text-grey-40"},v2e=G({__name:"DiscussionDetailPanel",emits:["go"],setup(e,{expose:t,emit:s}){const n=st(),{t:r}=be(),i=Cn(),o=s,l=A(()=>String(n.query.post_id??"")),u=A(()=>i.detail),{openShareOrExternal:d}=Dl(),f=A(()=>sm(u.value?.title??"")),h=A(()=>sm(u.value?.body??"")),g=A(()=>!!u.value?.comments.length),m=A(()=>!!u.value?.rejectionComment.trim()),_=X(0),v=A(()=>{const J=u.value;if(!J||!(J.type==="sale"||J.type==="service"))return"";if(J.price<=0)return r("drawer.discussions.detail.free");const Ee=ne(J.price);return J.type==="service"?r("drawer.discussions.detail.priceFrom",{price:Ee}):Ee}),k={attributionControl:!1,boxZoom:!1,doubleClickZoom:!1,dragging:!1,keyboard:!1,scrollWheelZoom:!1,tap:!1,touchZoom:!1,zoomControl:!1},x=A(()=>ve(u.value?.premises?.distance)),C=A(()=>{const J=u.value?.premises?.coordinates;return!J||!ge(J.lat,J.lon)?null:[J.lat,J.lon]}),w=A(()=>{const J=u.value;return J?[J.whatsappLink?{type:"whatsapp",label:r("drawer.discussions.detail.goToWhatsapp"),href:J.whatsappLink,image:"/images/house/about/whats_app.png"}:null,J.telegramLink?{type:"telegram",label:r("drawer.discussions.detail.goToTelegram"),href:J.telegramLink,image:"/images/house/about/telegram.png"}:null,J.maxLink?{type:"max",label:r("drawer.discussions.detail.goToMax"),href:J.maxLink,image:"/images/house/about/max.png"}:null].filter(he=>!!he):[]}),$=A(()=>w.value.length===1?w.value[0]:null);Se(l,I,{immediate:!0}),Se(()=>u.value?.imageUrls.length??0,J=>{_.value=fe(_.value,J)});const S=Ws({active:!1,pointerId:0,startX:0,currentIndex:0});function I(){i.loadDetail(l.value)}function P(J,he){he.kind!=="share"||!he.href||(J.preventDefault(),d(he.href))}function L(J){Bt({path:n.path,query:{...n.query,panel:"discussion-comments",post_id:J}})}function D(J){o("go",{to:"discussion-actions",query:{post_id:J}})}function R(){o("go",{to:"discussion-rejection",query:{post_id:l.value}})}function F(){const J=u.value;J?.isMine&&D(J.postId)}function N(){const J=C.value;if(!J)return;const[he,Ee]=J;window.open(`https://2gis.ru/geo/${Ee}%2C${he}`,"_blank","noopener,noreferrer")}function z(J){if(J.type==="max"){o("go",{to:"discussion-max-contact",query:{post_id:l.value,max_link:J.href}});return}B7(J.type,J.href)}function me(){o("go",{to:"discussion-contact-methods",query:{post_id:l.value}})}function ge(J,he){return Number.isFinite(J)&&Number.isFinite(he)&&J>=-90&&J<=90&&he>=-180&&he<=180&&!(J===0&&he===0)}function fe(J,he=u.value?.imageUrls.length??0){return Math.max(0,Math.min(he-1,J))}function te(J){J.stopPropagation(),S.active=!0,S.pointerId=J.pointerId,S.startX=J.clientX,S.currentIndex=_.value,J.target.setPointerCapture(J.pointerId)}function V(J){if(!S.active||S.pointerId!==J.pointerId)return;J.stopPropagation();const he=S.startX-J.clientX,Ee=J.target.parentElement.offsetWidth;if(Ee===0)return;const He=Math.round(he/Ee);_.value=fe(S.currentIndex+He)}function pe(J){!S.active||S.pointerId!==J.pointerId||(J.stopPropagation(),_.value=fe(_.value),J.target.hasPointerCapture(J.pointerId)&&J.target.releasePointerCapture(J.pointerId),S.active=!1)}function ye(J){if(!J)return"";const he=new Date(J);return Number.isNaN(he.getTime())?J:new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(he)}function ne(J){return`${new Intl.NumberFormat("ru-RU").format(J/100)} â½`}function ve(J){return J==null||J<0?"":J>=1e3?`${(J/1e3).toFixed(1).replace(".",",")}
9 ${r("home.resident.discussions.distanceKm")}`:`${Math.round(J)} ${r("home.resident.discussions.distanceM")}`}return t({openHeaderMore:F}),(J,he)=>{const Ee=Ae("PrimaryButton"),He=Hpe,de=ni,Me=Lu,De=b7,ze=x7,Ue=K0,ut=Du,H=vhe,Y=khe,W=che,_e=ghe,ae=uhe,M=$he,q=wu,re=O7,ce=F7;return p(),y("div",Eme,[a(i).isDetailLoading?(p(),y("div",Lme,[...he[9]||(he[9]=[c("div",{class:"h-[260px] animate-pulse rounded-[16px] bg-grey-90"},null,-1),c("div",{class:"h-6 w-3/4 animate-pulse rounded bg-grey-90"},null,-1),c("div",{class:"h-20 animate-pulse rounded bg-grey-90"},null,-1)])])):a(i).detailError?(p(),y("div",Rme,[c("h2",Mme,b(a(r)("drawer.discussions.detail.errorTitle")),1),c("p",Ome,b(a(i).detailError.message||a(r)("drawer.discussions.detail.errorSubtitle")),1),T(Ee,{class:"mx-auto mt-6 w-auto",label:a(r)("tabApp.discussions.retryButton"),"full-width":!1,onClick:I},null,8,["label"])])):a(u)?(p(),y(j,{key:2},[c("article",Fme,[c("div",Nme,[a(u).eventStartAt&&a(u).eventFinishAt?(p(),K(He,{key:0,class:"mb-3","start-at":a(u).eventStartAt,"finish-at":a(u).eventFinishAt},null,8,["start-at","finish-at"])):E("",!0),a(u).imageUrls.length?(p(),y("div",Bme,[c("div",{class:oe(["flex h-full transition-transform duration-300",a(u).imageUrls.length>1?"touch-pan-y":""]),style:kt({transform:`translateX(-${a(_)*100}%)`})},[(p(!0),y(j,null,le(a(u).imageUrls,ie=>(p(),K(de,{key:ie,src:ie,"mime-type":a(u).attachments.find($e=>$e.url===ie)?.mimeType,alt:"",class:"h-full w-full shrink-0 object-cover","aria-hidden":"true",draggable:"false",onPointerdown:he[0]||(he[0]=$e=>a(u).imageUrls.length>1&&te($e)),onPointermove:he[1]||(he[1]=$e=>a(u).imageUrls.length>1&&V($e)),onPointerup:he[2]||(he[2]=$e=>a(u).imageUrls.length>1&&pe($e)),onPointercancel:he[3]||(he[3]=$e=>a(u).imageUrls.length>1&&pe($e)),onLostpointercapture:he[4]||(he[4]=$e=>a(u).imageUrls.length>1&&pe($e))},null,8,["src","mime-type"]))),128))],6),a(u).imageUrls.length>1?(p(),y("div",Vme,b(a(_)+1)+" / "+b(a(u).imageUrls.length),1)):E("",!0)])):E("",!0),c("div",Hme,[c("div",qme,[c("p",jme,b(ye(a(u).createdAt)),1),a(u).status?.text?(p(),y("div",Ume,[c("span",{class:"text-13",style:kt({color:a(u).status.color||void 0})},b(a(u).status.text),5),a(m)?(p(),y("button",{key:0,type:"button",class:"flex h-5 w-5 items-center justify-center rounded-full transition-colors xl:hover:bg-grey-90","aria-label":a(r)("drawer.discussions.rejection.openReason"),title:a(r)("drawer.discussions.rejection.openReason"),onClick:R},[T(Me,{class:"[&>path]:fill-red-50","aria-hidden":"true"})],8,zme)):E("",!0)])):E("",!0)]),c("div",Wme,[c("h2",Gme,[(p(!0),y(j,null,le(a(f),(ie,$e)=>(p(),y(j,{key:`title-${$e}`},[ie.href?(p(),y("a",{key:0,href:ie.href,target:ie.kind==="external"?"_blank":void 0,rel:ie.kind==="external"?"noopener noreferrer":void 0,class:"text-emerald-primary underline underline-offset-2",onClick:se=>P(se,ie)},b(ie.text),9,Yme)):(p(),y(j,{key:1},[Qe(b(ie.text),1)],64))],64))),128))]),a(v)?(p(),y("p",Kme,b(a(v)),1)):E("",!0)])]),a(u).body?(p(),y("p",Qme,[(p(!0),y(j,null,le(a(h),(ie,$e)=>(p(),y(j,{key:`body-${$e}`},[ie.href?(p(),y("a",{key:0,href:ie.href,target:ie.kind==="external"?"_blank":void 0,rel:ie.kind==="external"?"noopener noreferrer":void 0,class:"text-emerald-primary underline underline-offset-2",onClick:se=>P(se,ie)},b(ie.text),9,Xme)):(p(),y(j,{key:1},[Qe(b(ie.text),1)],64))],64))),128))])):E("",!0),a(u).isPublished?(p(),y("div",Zme,[c("button",{type:"button",class:oe(["flex items-center gap-2 rounded-full px-3 py-2 transition-colors",a(u).isLiked?"bg-red-50 text-white":"bg-grey-90"]),onClick:he[5]||(he[5]=ie=>a(i).toggleLike(a(u).postId))},[a(u).isLiked?(p(),K(De,{key:0})):(p(),K(ze,{key:1})),Qe(" "+b(a(u).likesCount),1)],2),c("button",{type:"button",class:"flex items-center gap-2 rounded-full bg-grey-90 px-3 py-2 transition-colors xl:hover:bg-grey-80",onClick:he[6]||(he[6]=ie=>L(a(u).postId))},[T(Ue),Qe(" "+b(a(u).commentsCount),1)]),a(u).type==="event"?(p(),y("button",{key:0,type:"button",class:oe(["ml-auto flex h-8 shrink-0 items-start gap-2 rounded-full px-3 py-2 text-13 leading-4 transition-colors",a(u).isAttended?"bg-[#565F8F] text-white":"bg-grey-90 text-black xl:hover:bg-grey-80"]),onClick:he[7]||
9(he[7]=ie=>a(i).toggleAttend(a(u).postId))},[Qe(b(a(u).isAttended?a(r)("drawer.discussions.detail.attended"):a(r)("drawer.discussions.detail.attend"))+" ",1),a(u).attendeesCount>0?(p(),y("span",Jme,"· "+b(a(u).attendeesCount),1)):E("",!0)],2)):E("",!0)])):E("",!0),a(w).length?(p(),y("div",e2e,[a($)?(p(),K(Ee,{key:0,variant:"secondary",label:a($).label,onClick:he[8]||(he[8]=ie=>z(a($)))},{icon:Xe(()=>[c("img",{src:a($).image,alt:a($).label,class:"h-5 w-5 object-contain"},null,8,t2e)]),_:1},8,["label"])):(p(),K(Ee,{key:1,variant:"secondary",label:a(r)("drawer.discussions.detail.contactMethods"),onClick:me},{icon:Xe(()=>[T(ut)]),_:1},8,["label"]))])):E("",!0)]),a(u).author||a(u).premises&&!a(C)?(p(),y("div",s2e,[a(u).author?(p(),y("img",{key:0,src:a(u).author.avatarUrl||"/images/avatar_placeholder.png",alt:"",class:"h-11 w-11 shrink-0 rounded-full object-cover","aria-hidden":"true"},null,8,n2e)):E("",!0),c("div",r2e,[a(u).author?(p(),y("p",i2e,b(a(u).author.fullName||a(r)("drawer.discussions.detail.authorFallback")),1)):E("",!0),a(u).author?(p(),y("p",o2e,b(a(r)("drawer.discussions.detail.authorRole")),1)):E("",!0),a(u).premises&&!a(C)?(p(),y("p",{key:2,class:oe(["text-13 text-grey-40",a(u).author?"mt-2":""])},[Qe(b(a(u).premises.displayAddress)+" ",1),a(x)?(p(),y("span",a2e,"· "+b(a(x)),1)):E("",!0)],2)):E("",!0)])])):E("",!0),a(C)?(p(),y("div",l2e,[a(u).premises?(p(),y("p",c2e,[Qe(b(a(u).premises.displayAddress)+" ",1),a(x)?(p(),y("span",u2e,"· "+b(a(x)),1)):E("",!0)])):E("",!0),c("div",d2e,[T(q,null,{fallback:Xe(()=>[...he[10]||(he[10]=[c("div",{class:"h-full animate-pulse bg-grey-90"},null,-1)])]),default:Xe(()=>[c("div",f2e,[c("div",p2e,[T(ae,{zoom:17,center:a(C),"min-zoom":10,"max-zoom":20,options:k,"use-global-leaflet":!1,class:"discussion-detail-map"},{default:Xe(()=>[T(H,{url:"https://tile0.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1","layer-type":"base",name:"2GIS"}),T(_e,{"lat-lng":a(C)},{default:Xe(()=>[T(W,{"icon-size":[40,40],"icon-anchor":[20,40],"class-name":"discussion-detail-map-marker"},{default:Xe(()=>[T(Y)]),_:1})]),_:1},8,["lat-lng"])]),_:1},8,["center"])]),c("button",{type:"button",class:"absolute right-2 top-2 z-[500] flex h-12 w-12 items-center justify-center rounded-[12px] bg-white p-3 text-black transition-colors xl:hover:bg-grey-90","aria-label":a(r)("drawer.discussions.detail.openMap"),title:a(r)("drawer.discussions.detail.openMap"),onClick:N},[T(M)],8,h2e)])]),_:1})])])):E("",!0),c("div",m2e,[a(g)?(p(),K(re,{key:0})):(p(),y("section",g2e,[c("h2",y2e,b(a(r)("drawer.discussions.comments.title")),1),c("p",_2e,b(a(r)("drawer.discussions.comments.emptyTitle")),1)]))])]),a(u).isPublished?(p(),K(ce,{key:0})):E("",!0)],64)):E("",!0)])}}}),b2e=Object.assign(Gs(v2e,[["__scopeId","data-v-58060009"]]),{__name:"DiscussionDetailPanel"}),x2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function k2e(e,t){return p(),y("svg",x2e,[...t[0]||(t[0]=[c("path",{fill:"#111",d:"M18.355 8.474c.21-.21.323-.325.399-.414l.008-.01-.008-.01a8 8 0 0 0-.4-.414l-1.98-1.98a8 8 0 0 0-.414-.4l-.01-.007-.01.008c-.088.075-.204.19-.414.399L13.122 8.05l2.828 2.829zM4.929 16.243v2.828h2.829l6.778-6.778-2.828-2.828zm3.95 4.535a1 1 0 0 1-.707.293H3.93a1 1 0 0 1-1-1V15.83a1 1 0 0 1 .292-.708l10.89-10.89c.186-.186.368-.369.534-.51.175-.148.397-.307.686-.401a2 2 0 0 1 1.236 0c.29.094.512.253.687.401.166.141.347.324.534.51l1.98 1.981c.186.186.37.368.51.534.149.175.308.397.402.686a2 2 0 0 1 .043 1.084l-.043.152-.082.206c-.091.192-.208.35-.32.48-.14.167-.324.348-.51.535z"},null,-1)])])}const ag={render:k2e},w2e={class:"flex h-full flex-col bg-white px-6 pb-6"},C2e={class:"flex-1"},$2e={class:"min-w-0 flex-1"},S2e={class:"min-w-0 flex-1 text-red-50"},A2e=G({__name:"DiscussionActionsPanel",emits:["go","close"],setup(e,{emit:t}){const s=st(),{t:n}=be(),r=t,i=A(()=>String(s.query.post_id??""));function o(){r("go",{to:"discussion-create",query:{post_id:i.value}})}function l(){r("go",{to:"discussion-delete",query:{post_id:i.value}})}return(u,d)=>{const f=ag,h=Rs,g=jl;return p(),y("div",w2e,[c("div",C2e,[c("button",{type:"button",class:"flex min-h-14 w-full items-center gap-4 text-left text-16 text-black",onClick:o},[T(f,{"aria-hidden":"true"}),c("span",$2e,b(a(n)("drawer.discussions.actions.edit")),1),T(h,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})]),c("button",{type:"button",class:"flex min-h-14 w-full items-center gap-4 text-left text-16 text-black",onClick:l},[T(g,{"aria-hidden":"true",class:"[&>path]:fill-red-50"}),c("span",S2e,b(a(n)("delete")),1),T(h,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])])])}}}),I2e=Object.assign(A2e,{__name:"DiscussionActionsPanel"}),T2e={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function P2e(e,t){return p(),y("svg",T2e,[...t[0]||(t[0]=[c("path",{fill:"#FA7A6E",d:"M58.94 34.94a1.5 1.5 0 1 1 2.12 2.12L50.
9122 48l10.94 10.94.103.114a1.5 1.5 0 0 1-2.11 2.11l-.114-.104L48 50.122l-10.94 10.94a1.5 1.5 0 1 1-2.12-2.121L45.879 48l-10.94-10.94a1.5 1.5 0 1 1 2.121-2.12L48 45.879z"},null,-1),c("path",{fill:"#FA7A6E","fill-rule":"evenodd",d:"M48 4c24.3 0 44 19.7 44 44S72.3 92 48 92 4 72.3 4 48 23.7 4 48 4m0 3C25.356 7 7 25.356 7 48s18.356 41 41 41 41-18.356 41-41S70.644 7 48 7","clip-rule":"evenodd"},null,-1)])])}const ya={render:P2e},D2e={class:"flex h-full flex-col bg-white"},E2e={class:"flex flex-1 flex-col items-center justify-center px-6 pb-20 text-center"},L2e={class:"mt-8 text-24-bold text-black"},R2e={class:"mt-3 text-16 text-grey-40"},M2e=G({__name:"DiscussionDeletePanel",emits:["go"],setup(e,{emit:t}){const s=st(),n=Cn(),{t:r}=be(),{$showSnackbar:i}=Te(),o=t,l=A(()=>String(s.query.post_id??""));async function u(){if(await n.deletePost(l.value)){o("go",{to:"",replace:!0});return}i(n.detailError?.message??r("drawer.discussions.delete.error"))}return(d,f)=>{const h=ya,g=Ae("PrimaryButton");return p(),y("div",D2e,[c("div",E2e,[T(h,{"aria-hidden":"true"}),c("h1",L2e,b(a(r)("drawer.discussions.delete.title")),1),c("p",R2e,b(a(r)("drawer.discussions.delete.subtitle")),1),T(g,{class:"mt-6 w-full",label:a(r)("delete"),loading:a(n).isDeletingPost,onClick:u},null,8,["label","loading"]),T(g,{class:"mt-4 w-full",variant:"secondary",label:a(r)("cancel"),onClick:f[0]||(f[0]=m=>o("go","back"))},null,8,["label"])])])}}}),O2e=Object.assign(M2e,{__name:"DiscussionDeletePanel"}),F2e={class:"flex h-full min-h-0 flex-col"},N2e={key:0,class:"space-y-4 px-6 pb-6"},B2e={key:1,class:"px-6 py-12 text-center"},V2e={class:"text-20-bold text-black"},H2e={class:"mt-2 text-15 text-grey-40"},q2e={class:"min-h-0 flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},j2e=G({__name:"DiscussionCommentsPanel",setup(e){const t=st(),{t:s}=be(),n=Cn(),r=A(()=>String(t.query.post_id??""));Se(r,i,{immediate:!0});function i(){n.loadDetail(r.value)}return(o,l)=>{const u=Ae("PrimaryButton"),d=O7,f=F7;return p(),y("div",F2e,[a(n).isDetailLoading?(p(),y("div",N2e,[(p(),y(j,null,le(4,h=>c("div",{key:h,class:"h-[92px] animate-pulse rounded-[16px] bg-grey-90"})),64))])):a(n).detailError?(p(),y("div",B2e,[c("h2",V2e,b(a(s)("drawer.discussions.comments.errorTitle")),1),c("p",H2e,b(a(n).detailError.message||a(s)("drawer.discussions.comments.errorSubtitle")),1),T(u,{class:"mx-auto mt-6 w-auto",label:a(s)("tabApp.discussions.retryButton"),"full-width":!1,onClick:i},null,8,["label"])])):a(n).detail?(p(),y(j,{key:2},[c("div",q2e,[T(d)]),T(f)],64)):E("",!0)])}}}),U2e=Object.assign(j2e,{__name:"DiscussionCommentsPanel"}),z2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function W2e(e,t){return p(),y("svg",z2e,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M2 8.4c0-2.24 0-3.36.436-4.216a4 4 0 0 1 1.748-1.748C5.04 2 6.16 2 8.4 2h7.2c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748C22 5.04 22 6.16 22 8.4v7.2c0 2.24 0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748C18.96 22 17.84 22 15.6 22H8.4c-2.24 0-3.36 0-4.216-.436a4 4 0 0 1-1.748-1.748C2 18.96 2 17.84 2 15.6z"},null,-1),c("path",{fill:"#fff",d:"M16.247 7.342a1 1 0 0 1 1.506 1.316l-7 8a1 1 0 0 1-1.425.082l-3-2.722a1 1 0 0 1 1.264-1.546l.08.065 2.245 2.038z"},null,-1)])])}const _a={render:W2e},G2e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Y2e(e,t){return p(),y("svg",G2e,[...t[0]||(t[0]=[c("path",{fill:"#CDD4D2","fill-rule":"evenodd",d:"M15.6 22H8.4l-1.484-.007c-1.192-.019-1.955-.089-2.568-.352l-.164-.076a4 4 0 0 1-1.594-1.473l-.154-.276C2 18.962 2 17.842 2 15.606V8.394c0-2.236 0-3.356.436-4.21a4 4 0 0 1 1.748-1.748c.641-.327 1.432-.409 2.732-.43L8.4 2h7.206c2.236 0 3.356 0 4.21.436a4 4 0 0 1 1.749 1.748C22 5.038 22 6.158 22 8.394v7.212c0 2.236 0 3.356-.436 4.21l-.154.276a4 4 0 0 1-1.594 1.473l-.164.076C18.816 22 17.7 22 15.6 22m0-2H8.4c-1.153 0-1.898-.002-2.464-.048-.544-.044-.745-.12-.844-.17a2 2 0 0 1-.874-.874c-.05-.099-.126-.3-.17-.844C4.002 17.499 4 16.754 4 15.6V8.4c0-1.153.002-1.898.048-2.464.044-.544.12-.745.17-.844a2 2 0 0 1 .874-.874c.099-.05.3-.126.844-.17C6.502 4.002 7.247 4 8.4 4h7.2c1.153 0 1.898.002 2.464.048.544.044.745.12.844.17a2 2 0 0 1 .874.874c.05.099.12
96.3.17.844.046.566.048 1.311.048 2.464v7.2c0 1.153-.002 1.898-.048 2.464-.044.544-.12.745-.17.844a2 2 0 0 1-.874.874c-.099.05-.3.126-.844.17-.566.046-1.311.048-2.464.048","clip-rule":"evenodd"},null,-1)])])}const va={render:Y2e},K2e={class:"flex h-full flex-col"},Q2e={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},X2e={class:"text-24-bold text-black"},Z2e={key:0,class:"mt-6 space-y-3"},J2e={key:1,class:"mt-10 text-center"},ege={class:"text-16 text-black"},tge={key:2,class:"mt-6"},sge=["onClick"],nge={class:"p-6"},rge=G({__name:"DiscussionCategoryFilterPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Cn(),i=X([]);je(async()=>{i.value=[...r.selectedFilters],await r.loadFilters()});function o(h){return i.value.some(g=>f(g,h))}function l(h){if(o(h)){i.value=i.value.filter(g=>!f(g,h));return}i.value=[...i.value,h]}function u(){i.value=[]}async function d(){await r.setSelectedFilters(i.value),s("go",{to:"",replace:!0})}function f(h,g){return h.type===g.type&&h.value===g.value}return(h,g)=>{const m=_a,_=va;return p(),y("section",K2e,[c("div",Q2e,[c("h1",X2e,b(a(n)("drawer.discussions.filters.title")),1),a(r).isFiltersLoading?(p(),y("div",Z2e,[(p(),y(j,null,le(8,v=>c("div",{key:v,class:"h-10 rounded-[12px] bg-grey-90"})),64))])):a(r).filtersError?(p(),y("div",J2e,[c("p",ege,b(a(r).filtersError.message||a(n)("drawer.discussions.filters.error")),1)])):(p(),y("div",tge,[(p(!0),y(j,null,le(a(r).filters.items,v=>(p(),y("button",{key:`${v.type}-${v.value}`,type:"button",class:"flex w-full items-center gap-3 py-4 text-left text-16 text-black",onClick:k=>l(v)},[o(v)?(p(),K(m,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(_,{key:1,class:"h-6 w-6 shrink-0"})),c("span",null,b(v.title),1)],8,sge))),128))]))]),c("div",nge,[T(a(vt),{class:"w-full",label:a(n)("drawer.discussions.filters.save"),onClick:d},null,8,["label"]),c("button",{type:"button",class:"mt-3 flex h-12 w-full items-center justify-center rounded-[12px] bg-grey-90 px-4 text-16 text-black transition-colors xl:hover:bg-grey-80",onClick:u},b(a(n)("drawer.discussions.filters.reset")),1)])])}}}),ige=Object.assign(rge,{__name:"DiscussionCategoryFilterPanel"}),oge={class:"flex h-full min-h-0 flex-col px-6 pb-6"},age={class:"mt-4 text-24-bold text-black"},lge={class:"mt-9 space-y-5"},cge=["onClick"],uge=["src","alt"],dge={class:"min-w-0 flex-1 text-16 text-black"},fge=G({__name:"DiscussionContactMethodsPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Cn(),o=A(()=>String(n.query.post_id??"")),l=A(()=>{const d=i.detail;return d?[d.telegramLink?{type:"telegram",title:r("drawer.discussions.detail.telegram"),href:d.telegramLink,image:"/images/house/about/telegram.png"}:null,d.whatsappLink?{type:"whatsapp",title:r("drawer.discussions.detail.whatsapp"),href:d.whatsappLink,image:"/images/house/about/whats_app.png"}:null,d.maxLink?{type:"max",title:r("drawer.discussions.detail.max"),href:d.maxLink,image:"/images/house/about/max.png"}:null].filter(f=>!!f):[]});Se(o,d=>{!d||i.detail?.postId===d||i.loadDetail(d)},{immediate:!0});function u(d){if(d.type==="max"){s("go",{to:"discussion-max-contact",query:{post_id:o.value,max_link:d.href}});return}B7(d.type,d.href)}return(d,f)=>{const h=Rs;return p(),y("div",oge,[c("h2",age,b(a(r)("drawer.discussions.detail.contactMethods")),1),c("div",lge,[(p(!0),y(j,null,le(a(l),g=>(p(),y("button",{key:g.type,type:"button",class:"flex min-h-9 w-full items-center gap-3 text-left",onClick:m=>u(g)},[c("img",{src:g.image,alt:g.title,class:"h-5 w-5 shrink-0 object-contain"},null,8,uge),c("span",dge,b(g.title),1),T(h,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})],8,cge))),128))])])}}}),pge=Object.assign(fge,{__name:"DiscussionContactMethodsPanel"}),hge=Ls("/images/house/about/max.png"),mge={class:"flex h-full min-h-0 flex-col px-6 pb-6"},gge={class:"flex min-h-0 flex-1 flex-col items-center pt-2 text-center"},yge={class:"mt-8 text-24-bold text-black"},_ge={class:"mt-3 max-w-[320px] text-16 text-grey-40"},vge={class:"mt-7 w-full rounded-[12px] border border-grey-80 p-4 text-left"},bge={class:"text-16-bold text-black"},xge={class:"list-decimal space-y-0 pl-5 text-13 text-black"},kge={class:"shrink-0 space-y-3 pt-4"},wge=G({__name:"DiscussionMaxContactPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),o=Cn(),l=A(()=>String(n.query.post_id??"")),u=A(()=>String(n.query.max_link??"")),d=A(()=>
9o.detail?.postId===l.value&&o.detail.maxLink?o.detail.maxLink:u.value),f=A(()=>g(d.value)||d.value);Se(l,m=>{!m||o.detail?.postId===m||o.loadDetail(m)},{immediate:!0});async function h(){await Wl(f.value),i(r("drawer.discussions.maxContact.copied"),!1)}function g(m){const _=m.replace(/\D+/g,"").slice(0,11);if(!_)return"";let v="+";for(let k=0;k<_.length;k+=1){const x=_[k];k===0||k===3?v+=`${x} `:k===6||k===8?v+=`${x}-`:v+=x}return v}return(m,_)=>{const v=U0,k=Ae("PrimaryButton");return p(),y("div",mge,[c("div",gge,[_[2]||(_[2]=c("img",{src:hge,alt:"",class:"mt-5 h-[86px] w-[86px] object-contain","aria-hidden":"true"},null,-1)),c("h2",yge,b(a(r)("drawer.discussions.maxContact.title")),1),c("p",_ge,b(a(r)("drawer.discussions.maxContact.subtitle")),1),c("div",vge,[c("p",bge,b(a(f)),1),_[1]||(_[1]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),c("ol",xge,[c("li",null,b(a(r)("drawer.discussions.maxContact.stepCopy")),1),c("li",null,b(a(r)("drawer.discussions.maxContact.stepOpen")),1),c("li",null,b(a(r)("drawer.discussions.maxContact.stepFind")),1)])])]),c("div",kge,[T(k,{label:a(r)("drawer.discussions.maxContact.copy"),onClick:h},{icon:Xe(()=>[T(v)]),_:1},8,["label"]),T(k,{variant:"secondary",label:a(r)("close"),onClick:_[0]||(_[0]=x=>s("go","back"))},null,8,["label"])])])}}}),Cge=Object.assign(wge,{__name:"DiscussionMaxContactPanel"}),$ge={class:"flex h-full flex-col bg-white px-6 pb-6"},Sge={class:"flex flex-1 flex-col items-center pt-7 text-center"},Age={class:"mt-8 text-24-bold text-black"},Ige={class:"mt-6 flex w-full items-start gap-3 rounded-[12px] bg-grey-90 p-4 text-left"},Tge={class:"min-w-0 flex-1"},Pge={class:"text-11 text-grey-40"},Dge={class:"mt-1 whitespace-pre-line text-13 text-black [overflow-wrap:anywhere]"},Ege=G({__name:"DiscussionRejectionPanel",emits:["go"],setup(e,{emit:t}){const s=st(),{t:n}=be(),r=Cn(),i=t,o=A(()=>String(s.query.post_id??"")),l=A(()=>r.detail?.rejectionComment.trim()||"");Se(o,f=>{!f||r.detail?.postId===f||r.loadDetail(f)},{immediate:!0});function u(){i("go",{to:"discussion-create",query:{post_id:o.value}})}function d(){i("go",{to:"discussion-delete",query:{post_id:o.value}})}return(f,h)=>{const g=ya,m=K0,_=Ae("PrimaryButton");return p(),y("div",$ge,[c("div",Sge,[T(g,{"aria-hidden":"true"}),c("h1",Age,b(a(n)("drawer.discussions.rejection.title")),1),c("div",Ige,[c("div",Tge,[c("p",Pge,b(a(n)("drawer.discussions.rejection.reason")),1),c("p",Dge,b(a(l)),1)]),T(m,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])]),T(_,{class:"w-full",label:a(n)("drawer.discussions.rejection.fix"),onClick:u},null,8,["label"]),T(_,{class:"mt-3 w-full",variant:"secondary",label:a(n)("drawer.discussions.rejection.delete"),onClick:d},null,8,["label"])])}}}),Lge=Object.assign(Ege,{__name:"DiscussionRejectionPanel"}),lg=Ke("premisesAccountDebt",{state:()=>({info:null,payInfo:null,error:null,payError:null,addError:null,isLoading:!1,isPayLoading:!1,isAdding:!1,requestId:0,payRequestId:0}),getters:{itemByType:e=>t=>t==="repair"?e.info?.majorRepairContractNumber??null:e.info?.contractNumber??null},actions:{async loadInfo(e){const t=Ne(),s=e?.personalAccount?.trim()??"",n=e?.personalAccountRepair?.trim()??"";if(!t.isAuthorized||!s&&!n){this.clearInfo();return}const r=++this.requestId,i=t.sessionToken,o=ue();this.isLoading=!0,this.info=null,this.error=null;const l=await o.fetchAccountsDebtInfo(s||null,n||null);r!==this.requestId||!t.isAuthorized||t.sessionToken!==i||(l.ok?(this.info=l.data,this.error=null):(this.info=null,this.error=l.error),this.isLoading=!1)},async loadPayInfo(e){const t=e?.trim()??"";if(!t){this.clearPayInfo();return}const s=Ne(),n=++this.payRequestId,r=s.sessionToken,i=ue();this.isPayLoading=!0,this.payInfo=null,this.payError=null;const o=await i.fetchDebtPayInfo(t);n!==this.payRequestId||!s.isAuthorized||s.sessionToken!==r||(o.ok?(this.payInfo=o.data,this.payError=null):(this.payInfo=null,this.payError=o.error),this.isPayLoading=!1)},async addAccount(e,t,s){const n=s.trim();if(!e||!n){const d={message:"Address or account is empty"};return this.addError=d,{ok:!1,error:d}}this.isAdding=!0,this.addError=null;const r=ue(),i=await r.checkDebtAccountNumber(n,e.residentId);if(!i.ok)return this.addError=i.error,this.isAdding=!1,i;const o=t==="repair"?e.personalAccount:n,l=t==="repair"?n:e.personalAccountRepair,u=await r.saveAddress(e.residentId,e.address,e.flat,e.entrance,e.floor,e.normalizedFlatType||e.flatType,e.organizationName,o,l);if(u.ok){const d=Oe();await d.fetchUserInfoAndAddresses(),await this.loadInfo(d.residence)}else this.addError=u.error;return this.isAdding=!1,u},clearInfo(){this.requestId+=1,this.info=null,this.error=null,this.isLoading=!1},clearPayInfo(){this.payRequestId+=1,this.payInfo=null,this.payError=null,this.isPayLoading=!1},clear(){this.clearInfo(),this.clearPayInfo(),this.addError=null,this.isAdding=!1}}}),Rge={class:"flex h-full flex-col overflow-y-auto"},Mge={class:"flex flex-col p-6 flex-1"},Oge={class:"text-24-bold text-black"},Fge={class:"mt-2 whitespace-pre-line text-16 text-grey-40"},Nge={class:"mt-auto pt-6"}
9,Bge=G({__name:"HomeDebtAddPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=st(),o=lg(),l=Oe(),{residence:u}=ho(l),d=X(""),f=A(()=>i.query.debt_type==="repair"?"repair":"account"),h=A(()=>f.value==="repair"?n("home.resident.premisesDebt.repairTitle"):n("home.resident.premisesDebt.personalAccount")),g=A(()=>d.value.trim().length>0&&!o.isAdding);async function m(){if(!g.value)return;const _=await o.addAccount(u.value,f.value,d.value);_.ok?(r(f.value==="repair"?n("home.resident.premisesDebt.repairAdded"):n("home.resident.premisesDebt.added"),!1),s("go","back")):_.error?.message&&r(_.error.message,!0)}return(_,v)=>{const k=Ae("TextField");return p(),y("div",Rge,[c("div",Mge,[c("h2",Oge,b(h.value),1),c("p",Fge,b(a(n)("home.resident.premisesDebt.addDescription")),1),T(k,{modelValue:d.value,"onUpdate:modelValue":v[0]||(v[0]=x=>d.value=x),class:"mt-6","input-mode":"numeric",placeholder:a(n)("home.resident.premisesDebt.accountPlaceholder"),size:"default"},null,8,["modelValue","placeholder"]),c("div",Nge,[T(a(vt),{label:a(n)("add"),disabled:!g.value,loading:a(o).isAdding,onClick:m},null,8,["label","disabled","loading"])])])])}}}),Vge=Object.assign(Bge,{__name:"HomeDebtAddPanel"}),Hge={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function qge(e,t){return p(),y("svg",Hge,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M11 14a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M16.2 4c.824 0 1.502-.001 2.052.044.562.046 1.08.144 1.564.392a4 4 0 0 1 1.749 1.748c.247.485.345 1.002.391 1.564.028.34.036.73.04 1.172Q22 8.96 22 9q-.001.033-.004.066.003.345.004.734v4.4c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.749c-.485.247-1.002.345-1.564.391-.55.045-1.228.044-2.052.044H7.8c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C1.999 15.702 2 15.024 2 14.2V9.8q0-.388.003-.734L2 9q0-.04.003-.08c.004-.442.013-.832.041-1.172.046-.562.144-1.08.392-1.564a4 4 0 0 1 1.748-1.748c.485-.248 1.002-.346 1.564-.392C6.298 3.999 6.976 4 7.8 4zM4 10v4.2c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C6.361 18 6.942 18 7.8 18h8.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.031.038-1.888V10zm3.8-4c-.857 0-1.439 0-1.889.037-.438.036-.663.101-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.82q-.004.042-.006.088h15.936l-.005-.089c-.036-.438-.101-.663-.18-.82a2 2 0 0 0-.875-.873c-.156-.08-.38-.145-.82-.18C17.639 6 17.058 6 16.2 6z","clip-rule":"evenodd"},null,-1)])])}const Xl={render:qge},cg=Ls("/images/debt/sbp.png"),V7=Ls("/images/debt/split.png"),jge={class:"flex h-full flex-col"},Uge={class:"flex-1 overflow-y-auto px-6"},zge={class:"text-24-bold text-black"},Wge={key:0,class:"mt-6 space-y-2"},Gge={key:1,class:"mt-6 overflow-hidden rounded-[8px]"},Yge={class:"bg-grey-90 p-4"},Kge={class:"text-16 text-black"},Qge={class:"mt-2 flex flex-wrap gap-2"},Xge={key:0,class:"rounded-[8px] bg-white px-3 py-2 text-13 text-black"},Zge={key:1,class:"rounded-[8px] bg-white px-3 py-2 text-13 text-black"},Jge={class:"mt-1 space-y-2 bg-grey-90 p-4"},eye={key:0,class:"flex items-center justify-between gap-4 text-16 text-black"},tye={class:"text-right"},sye={key:1,class:"flex items-center justify-between gap-4 text-16 text-black"},nye={class:"text-right"},rye={class:"mt-2 flex flex-wrap gap-2"},iye={class:"p-6 pt-4"},oye={class:"text-center text-16 text-black"},aye={class:"mt-2 text-center text-32-bold text-black"},lye={key:0,class:"mt-6 text-center text-11 text-grey-40"},cye={key:2,class:"mt-3 grid grid-cols-2 gap-2"},uye=G({__name:"HomeDebtPayPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=st(),i=lg(),o=Oe(),{residence:l}=ho(o),u=A(()=>r.query.debt_type==="repair"?"repair":"account"),d=A(()=>[n("home.resident.premisesDebt.payBenefitOnTime"),n("home.resident.premisesDebt.payBenefitLessSpending"),n("home.resident.premisesDebt.payBenefitNoCourts"),n("home.resident.premisesDebt.payBenefitGoodNeighbors")]),f=A(()=>u.value==="repair"?l.value?.personalAccountRepair??"":l.value?.personalAccount??"");Se(f,g=>{i.loadPayInfo(g)},{immediate:!0});function h(g){window.open(g,"_blank","noopener,noreferrer")}return(g,m)=>{const _=Lu,v=Xl;return p(),y("div",jge,[c("div",Uge,[c("h1",zge,b(a(n)("home.resident.premisesDebt.payTitle")),1),a(i).isPayLoading?(p(),y("div",Wge,[...m[4]||(m[4]=[c("div",{class:"h-28 animate-pulse rounded-[8px] bg-grey-90"},null,-1),c("div",{class:"h-24 animate-pulse rounded-[8px] bg-grey-90"},null,-1)])])):a(i).payInfo?(p(),y("div",Gge,[c("section",Yge,[c("p",Kge,b(a(i).payInfo.address),1),c("div",Qge,[a(i).payInfo.flat?(p(),y("span",Xge,b(a(i).payInfo.flat),1)):E("",!0),a(i).payInfo.contractNumber?(p(),y("span",Zge,b(a(i).payInfo.contractNumber),1)):E("",!0)])]),c("section",Jge,[a(i).payInfo.mainDebtTitle?(p(),y("div",eye,[c("span",null,b(a(n)("home.resident.premisesDebt.accrued")),1),c("span",tye,b(a(i).payInfo.mainDebtTitle),1)])):E("",!0),a(i).payInfo.penaltiesDebtTitle?(p(),y("div",sye,[c("button",{type:"button",class:"flex items-center gap-1 text-left",onClick:m[0]||(m[0]=k=>s("go",{to:"home-debt-peny",replace:!1}))},[c("span",null,b(a(n)("home.resident.premisesDebt.penalties")),1),T(_,{class:"h-4 w-4 shrink-0","aria-hidden":"true"})]),c("span",nye,b(a(i).payInfo.penaltiesDebtTitle),1)])):E("",!0)]),c("div",rye,[(p(!0),y(j,null,le(d.value,k=>(p(),y("span",{key:k,class:"inline-flex min-h-10 items-center rounded-full bg-[#F7FAF9] px-4 py-3 text-13 text-[#212926]"},b(k),1))),128))])])):E("",!0)]),c("div",iye,[a(i).payInfo?(p(),y(j,{key:0},[c("p",oye,b(a(n)("home.resident.premisesDebt.amountDue")),1),c("p",aye,b(a(i).payInfo.totalDebtTitle),1),a(i).payInfo.disclaimerText?(p(),y("p",lye,b(a(i).payInfo.disclaimerText),
91)):E("",!0),a(i).payInfo.urlForPay?(p(),K(a(vt),{key:1,class:"mt-4",label:a(n)("home.resident.premisesDebt.payByCard"),onClick:m[1]||(m[1]=k=>h(a(i).payInfo.urlForPay))},{icon:Xe(()=>[T(v,{"aria-hidden":"true",class:"[&>path]:fill-white"})]),_:1},8,["label"])):E("",!0),a(i).payInfo.urlForSbp||a(i).payInfo.urlForYandexPay?(p(),y("div",cye,[a(i).payInfo.urlForSbp?(p(),K(a(vt),{key:0,variant:"secondary",label:a(n)("home.resident.premisesDebt.sbp"),onClick:m[2]||(m[2]=k=>h(a(i).payInfo.urlForSbp))},{icon:Xe(()=>[...m[5]||(m[5]=[c("img",{src:cg,alt:"",class:"h-5 w-auto","aria-hidden":"true"},null,-1)])]),_:1},8,["label"])):E("",!0),a(i).payInfo.urlForYandexPay?(p(),K(a(vt),{key:1,variant:"secondary",label:a(n)("home.resident.premisesDebt.parts"),onClick:m[3]||(m[3]=k=>h(a(i).payInfo.urlForYandexPay))},{icon:Xe(()=>[...m[6]||(m[6]=[c("img",{src:V7,alt:"",class:"h-5 w-auto","aria-hidden":"true"},null,-1)])]),_:1},8,["label"])):E("",!0)])):E("",!0)],64)):E("",!0)])])}}}),dye=Object.assign(uye,{__name:"HomeDebtPayPanel"}),fye={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function pye(e,t){return p(),y("svg",fye,[...t[0]||(t[0]=[ls('<path fill="#11986C" d="M64.715 72.729a1.5 1.5 0 0 1 1.923-.587l.135.072.203.128c2.072 1.36 5.387 5.27 5.973 11.898l.05.672.001.153a1.5 1.5 0 0 1-2.98.176l-.016-.153-.043-.585c-.493-5.566-3.173-8.603-4.481-9.55l-.378-.252a1.5 1.5 0 0 1-.387-1.972M33.503 51.948a1.5 1.5 0 0 1 2.33 1.864l-.09.126c-.005.008-.087.126-.155.403-.067.274-.113.673-.07 1.201.08.987.469 2.42 1.587 4.275l.233.377.075.134a1.5 1.5 0 0 1-2.517 1.603l-.09-.125-.267-.432c-2.664-4.425-2.352-7.793-1.137-9.312z"></path><path fill="#11986C" fill-rule="evenodd" d="M26.805 19.797c2.631-.56 5.047-.784 6.992.003 2.123.858 3.302 2.733 3.86 5.357s.244 4.816-1.346 6.464c-1.366 1.415-3.471 2.187-5.898 2.74l-.489.108a1.5 1.5 0 0 1-1.78-1.156L25.65 21.575l-.025-.151a1.5 1.5 0 0 1 1.18-1.627m5.868 2.783c-.824-.333-2.017-.389-3.769-.122l1.855 8.725c1.709-.47 2.776-1.005 3.394-1.645.643-.667 1.01-1.686.57-3.757-.44-2.07-1.19-2.853-2.05-3.2" clip-rule="evenodd"></path><path fill="#11986C" d="M45.39 15.847a1.5 1.5 0 0 1 .624 2.934l-4.402.936.624 2.934 4.4-.935a1.5 1.5 0 0 1 .625 2.934l-4.401.936.623 2.935 4.402-.936a1.5 1.5 0 0 1 .624 2.933l-5.87 1.249a1.5 1.5 0 0 1-1.778-1.156l-2.495-11.738-.025-.151a1.5 1.5 0 0 1 1.18-1.627z"></path><path fill="#11986C" fill-rule="evenodd" d="M55.171 13.768a4.5 4.5 0 0 1 4.839 6.638 4.5 4.5 0 0 1-1.72 8.034l-3.913.831a1.5 1.5 0 0 1-1.778-1.155l-2.495-11.738-.025-.151a1.5 1.5 0 0 1 1.18-1.627zm3.65 9.959a1.5 1.5 0 0 0-1.779-1.156l-2.445.52.624 2.934 2.445-.52a1.5 1.5 0 0 0 1.156-1.778m-1.247-5.87a1.5 1.5 0 0 0-1.779-1.155l-2.445.52.624 2.934 2.445-.52a1.5 1.5 0 0 0 1.155-1.779" clip-rule="evenodd"></path><path fill="#11986C" d="M70.822 10.44a1.5 1.5 0 0 1 .623 2.935l-2.445.52 2.183 10.27a1.5 1.5 0 1 1-2.935.624l-2.182-10.271-2.446.52a1.5 1.5 0 0 1-.624-2.934z"></path><path fill="#11986C" fill-rule="evenodd" d="M70.908 4.35c.755-.098 1.48-.114 2.211.082l.21.06a5.5 5.5 0 0 1 2.641 1.79l.17.225c.376.532.613 1.125.805 1.763.213.714.403 1.607.63 2.678l2.328 10.954c.228 1.072.42 1.964.514 2.703.085.661.108 1.3-.018 1.939l-.064.273a5.5 5.5 0 0 1-1.685 2.711l-.166.14c-.589.476-1.259.756-1.989.975-.713.213-1.605.403-2.676.63L61.58 33.874c.11 1.767-.028 3.314-.37 4.69q.941.07 1.892.202c1.684-2.9 5.562-4.839 10.221-3.286 5.757 1.92 8.008 6.916 8.428 9.293l.02.192a1.5 1.5 0 0 1-.358 1.045l-.133.137c-4.065 3.679-8.288 4.36-11.76 3.479-3.345-.849-5.99-3.162-6.904-5.448a5.8 5.8 0 0 1-.406-2.504 24 24 0 0 0-2-.162l-.162-.004a12.8 12.8 0 0 1-1.475 2.095c-1.076 1.25-2.352 2.297-3.66 3.261-.656.483-1.336.956-2.008 1.423-.678.47-1.352.938-2.023 1.426-1.462 1.063-2.719 1.898-3.608 2.767-.893.87-.96 1.342-.882 1.656.124.496.779 1.477 3.184 2.922 2.322 1.394 5.967 3.043 11.436 5.032l.846.318c3.075 1.195 5.64 2.623 7.766 4.204.706-.809 1.565-1.71 2.555-2.628-1.317-3.33-.101-7.949 4.65-10.325 5.428-2.714 10.552-.772 12.53.613l.151.12a1.5 1.5 0 0 1 .485.992l.003.191c-.274 5.476-2.778 8.944-5.856 10.776-2.965 1.766-6.47 1.999-8.734 1.029a5.8 5.8 0 0 1-1.483-.921 32 32 0 0 0-1.999 2.08c2.522 2.38 4.228 5.007 5.313 7.67 1.821 4.472 1.846 8.933 1.185 12.291h10.076a1.5 1.5 0 0 1 0 3h-66.5a1.5 1.5 0 0 1 0-3h11.584c.167-1.613.598-3.703 1.447-6l-1.873-.81a5.8 5.8 0 0 1-.998 1.006c-1.934 1.523-5.38 2.205-8.7 1.268-3.448-.973-6.765-3.675-8.447-8.894l-.047-.185c-.07-.375.006-.763.212-1.084l.114-.156c1.553-1.849 6-5.05 11.946-3.834 5.378 1.101 7.727 5.492 7.112 9.124l1.87.81a28.4 28.4 0 0 1 3.563-5.493c-2.98-1.884-5.85-4.18-8.133-6.921l-.322-.394c-4.174-5.217-5.557-10.184-4.537-14.414q.106-.439.245-.86-.826.09-1.675.216a5.85 5.85 0 0 1-.559 2.786c-1.058 2.223-3.843 4.365-7.234 4.999-3.521.658-7.693-.29-11.517-4.219l-.124-.145a1.5 1.5 0 0 1-.292-1.066l.034-.19c.57-2.345 3.133-7.189 9-8.738 4.609-1.217 8.272.802 9.853 3.665a44 44 0 0 1 3.515-.414l.62-.038c1.61-2.201 4.002-3.868 6.816-4.923 2.034-.763 4.142-1.434 6.084-2.081 1.967-.656 3.772-1.29 5.314-2.002 2.29-1.057 3.685-2.137 4.285-3.423l-19.594 4.165c-1.072.228-1.964.418-2.702.514-.662.085-1.3.108-1.939-.019l-.274-.063a5.5 5.5 0 0 1-2.85-1.852c-.477-.588-.757-1.258-.975-1.988a19 19 0 0 1-.31-1.204l-.32-1.474-2.329-10.954c-.227-1.072-.418-1.964-.513-2.702-.097-.756-.
9114-1.482.082-2.213a5.5 5.5 0 0 1 1.85-2.85c.589-.477 1.259-.757 1.989-.975.713-.214 1.606-.403 2.677-.63l42.255-8.982c1.072-.227 1.965-.418 2.704-.513M54.445 35.39c-.42 3.412-3.247 5.43-6.316 6.847-1.708.788-3.653 1.467-5.623 2.123-1.995.665-4.013 1.307-5.978 2.044-3.67 1.377-6.092 3.808-6.82 6.822-.729 3.021.139 7.054 3.964 11.837l.286.351c3 3.6 7.236 6.448 11.429 8.559 4.318 2.173 8.478 3.507 10.944 4.064a1.5 1.5 0 0 1-.66 2.926c-2.702-.61-7.093-2.026-11.633-4.31a53 53 0 0 1-1.63-.857c-3.965 4.612-5.435 9.68-5.805 12.704h38.753c.681-2.897.788-7.028-.895-11.16-1.814-4.455-5.77-9.062-13.694-12.138l-.78-.292c-5.53-2.01-9.386-3.737-11.955-5.28-2.484-1.492-4.11-3.013-4.55-4.766-.483-1.935.606-3.465 1.697-4.531 1.095-1.069 2.651-2.11 3.94-3.046.702-.511 1.404-.998 2.076-1.465.676-.47 1.322-.92 1.94-1.374 1.237-.91 2.305-1.802 3.166-2.801 1.46-1.696 2.422-3.816 2.305-7.141zM26.637 72.75c-3.935-.805-7.01.933-8.469 2.24 1.44 3.726 3.838 5.447 6.107 6.088 2.463.695 4.79.137 5.905-.648-2.332-.964-4.633-1.838-6.306-2.222l-.148-.042a1.501 1.501 0 0 1 .668-2.91l.152.027c1.872.43 4.394 1.386 6.853 2.403.01-1.934-1.23-4.213-4.762-4.936m60.295-16.435c-1.747-.886-5.168-1.769-8.76.028-2.936 1.468-3.703 3.69-3.431 5.483 1.674-1.275 3.58-2.468 5.656-3.37l.143-.056a1.5 1.5 0 0 1 1.053 2.805l-.437.197c-1.785.827-3.435 1.902-4.893 3.041q.162.106.329.18c1.237.53 3.732.512 6.017-.848 2.025-1.206 3.896-3.49 4.323-7.46M21.283 49.58c-1.08-1.276-3.012-2.123-5.846-1.375-3.884 1.026-5.869 3.95-6.595 5.768 2.944 2.699 5.858 3.176 8.175 2.743 2.613-.489 4.498-2.124 5.076-3.34.132-.276.204-.6.222-.948a58 58 0 0 0-6.791 1.852 1.501 1.501 0 0 1-.976-2.838 61 61 0 0 1 6.735-1.862m51.092-11.255c-2.824-.941-4.826-.182-5.976 1.057 2.038.475 3.98 1.09 5.632 1.716a1.5 1.5 0 0 1-1.061 2.805 42 42 0 0 0-5.73-1.707c.006.314.061.609.165.867.5 1.25 2.276 3.002 4.853 3.656 2.285.58 5.222.287 8.332-2.219-.61-1.861-2.404-4.905-6.215-6.175M72.343 7.33c-.196-.052-.482-.077-1.053-.004-.589.076-1.342.235-2.462.473l-42.255 8.981c-1.12.238-1.872.4-2.44.57-.552.165-.803.303-.96.431-.411.332-.706.786-.843 1.296-.052.196-.077.483-.004 1.054.076.589.235 1.341.473 2.46l2.328 10.956.31 1.427c.092.398.174.729.26 1.013.165.552.304.803.432.961.332.41.786.705 1.296.842l.167.033c.19.026.458.025.886-.03.589-.076 1.342-.234 2.462-.472l42.255-8.981c1.12-.238 1.871-.4 2.44-.57.551-.166.803-.304.96-.432l.15-.131a2.5 2.5 0 0 0 .693-1.165l.033-.167c.026-.19.026-.458-.03-.886-.075-.589-.234-1.342-.472-2.462l-2.328-10.954c-.238-1.12-.4-1.872-.57-2.441-.124-.414-.233-.658-.334-.821l-.098-.14a2.5 2.5 0 0 0-1.106-.782z" clip-rule="evenodd"></path>',6)])])}const H7={render:pye},hye={class:"flex h-full flex-col"},mye={class:"flex-1 overflow-y-auto p-6"},gye={class:"flex flex-col items-center"},yye={class:"mt-6 whitespace-pre-line text-center text-24-bold text-black"},_ye={class:"mt-6 overflow-hidden rounded-[8px]"},vye={class:"relative z-[1] text-16 text-black"},bye=["src"],xye={class:"p-6 pt-4"},kye=G({__name:"HomeDebtInfoPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=A(()=>[{text:n("home.resident.premisesDebt.infoStep1"),image:"/images/debt/1.png"},{text:n("home.resident.premisesDebt.infoStep2"),image:"/images/debt/2.png"},{text:n("home.resident.premisesDebt.infoStep3"),image:"/images/debt/3.png"}]);return(i,o)=>{const l=H7;return p(),y("div",hye,[c("div",mye,[c("div",gye,[T(l,{"aria-hidden":"true"}),c("h2",yye,b(a(n)("home.resident.premisesDebt.infoTitle")),1)]),c("div",_ye,[(p(!0),y(j,null,le(r.value,(u,d)=>(p(),y("div",{key:u.text,class:oe(["relative flex items-center gap-4 overflow-hidden bg-grey-90 p-4 pr-[120px]",{"mt-1":d>0}])},[c("span",vye,b(u.text),1),c("img",{src:u.image,alt:"",class:"pointer-events-none absolute bottom-0 right-0 top-0 h-full w-auto max-w-[45%] select-none object-contain",loading:"lazy"},null,8,bye)],2))),128))])]),c("div",xye,[T(a(vt),{class:"w-full",label:a(n)("getIt"),onClick:o[0]||(o[0]=u=>s("go","back"))},null,8,["label"])])])}}}),wye=Object.assign(kye,{__name:"HomeDebtInfoPanel"}),Cye={class:"flex h-full flex-col"},$ye={class:"flex flex-1 flex-col items-center justify-center overflow-y-auto p-6"},Sye={class:"mt-6 whitespace-pre-line text-center text-24-bold text-black"},Aye={class:"mt-2 text-center text-16 text-grey-40"},Iye={class:"p-6 pt-4"},Tye=G({__name:"HomeDebtPenyPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be();return(r,i)=>{const o=H7;return p(),y("div",Cye,[c("div",$ye,[T(o,{"aria-hidden":"true"}),c("h2",Sye,b(a(n)("home.resident.premisesDebt.penyTitle")),1),c("p",Aye,b(a(n)("home.resident.premisesDebt.penyDescription")),1)]),c("div",Iye,[T(a(vt),{class:"w-full",label:a(n)("getIt"),onClick:i[0]||(i[0]=l=>s("go","back"))},null,8,["label"])])])}}}),Pye=Object.assign(Tye,{__name:"HomeDebtPenyPanel"}),Dye={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Eye(e,t){return p(),y("svg",Dye,[...t[0]||(t[0]=[c("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7.293 9.293a1 1 0 0 1 1.414 0L12 12.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414","clip-rule":"evenodd"},null,-1)])])}const J0={render:Eye},ug=Ke("gkuMeters",{state:()=>({meters:[],attentionText:"",values:{},history:null,error:null,historyError:null,accountError:null,isLoading:!1,isSending:!1,isHistoryLoading:!1,isSavingAccount:!1,requestId:0,historyRequestId:0}),getters:{hasEnteredValues:e=>Object.values(e.values).some(t=>t.trim().length>0)},actions:{async loadMeters(e){const t=e?.trim()??"",s=Ne();if(!s.isAuthorized||!t){this.clearMeters();return}const n=++this.requestId,r=s.sessionToken,i=ue();this.isLoading=!0,this.error=null;const o=await i.fetchGkuMeters(t);n!==this.requestId||!s.isAuthorized||s.sessionToken!==r||(o.ok?(this.meters=o.data.meteringDevices,this.attentionText=o.data.attentionText,this.values={},this.error=null):(this.meters=[],this.attentionText="",this.values={},this.error=o.error),this.isLoading=!1)},setValue(e,t){this.values={...this.values,[e]:t}},async send(e){const t=e?.trim()??"",s=Object.entries(this.values).reduce((r,[i,o])=>{const l=o.trim().replace(",",".");if(!l)return r;const u=Number(l);return Number.isFinite(u)&&(r[i]=u),r},{});if(!t||Object.keys(s).length===0)return{ok:!1,error:{message:"ÐÐµÑ Ð¿Ð¾ÐºÐ°Ð·Ð°Ð½Ð¸Ð¹ Ð´Ð»Ñ Ð¾ÑпÑавки"}};this.isSending=!0;const n=await ue().sendGkuMeters(t,s);return this.isSending=!1,n.ok&&(this.values={},await this.loadMeters(t)),n},async loadHistory(e,t){const s=e?.trim()??"",n=t?.trim()??"",r=Ne();if(!r.isAuthorized||!s||!n){this.clearHistory();return}const i=++this.historyRequestId,o=r.sessionToken;this.isHistoryLoading=!0,this.historyError=null,this.history=null;const l=await ue().fetchGkuMeterHistory(s,n);i!==this.historyRequestId||!r.isAuthorized||r.sessionToken!==o||(l.ok?(this.history=l.data,this.historyError=null):(this.history=null,this.historyError=l.error),this.isHistoryLoading=!1)},async saveAccount(e,t){const s=t.trim();if(!e||!s){const o={message:"ÐдÑÐµÑ Ð¸Ð»Ð¸ лиÑевой ÑÑÐµÑ Ð½Ðµ вÑбÑан"};return this.accountError=o,{ok:!1,error:o}}this.isSavingAccount=!0,this.accountError=null;
9const n=ue(),r=await n.checkDebtAccountNumber(s,e.residentId);if(!r.ok)return this.accountError=r.error,this.isSavingAccount=!1,r;const i=await n.saveAddress(e.residentId,e.address,e.flat,e.entrance,e.floor,e.flatType,e.organizationName,s,e.personalAccountRepair);return i.ok?await Oe().fetchUserInfoAndAddresses():this.accountError=i.error,this.isSavingAccount=!1,i},clearMeters(){this.requestId+=1,this.meters=[],this.attentionText="",this.values={},this.error=null,this.isLoading=!1},clearHistory(){this.historyRequestId+=1,this.history=null,this.historyError=null,this.isHistoryLoading=!1},clear(){this.clearMeters(),this.clearHistory(),this.accountError=null,this.isSending=!1,this.isSavingAccount=!1}}}),Lye={class:"flex min-h-full flex-col bg-white pb-6"},Rye={key:1,class:"mx-4 rounded-[24px] bg-grey-90 p-6 text-center"},Mye={class:"text-16-bold text-black"},Oye={class:"mt-2 text-13 text-grey-40"},Fye={key:0,class:"mx-4 h-[210px] rounded-[12px] border border-grey-80 bg-white pb-[14px] pt-4"},Nye={class:"truncate px-4 text-16 text-black"},Bye={class:"truncate px-4 text-13 text-grey-40"},Vye={class:"flex min-h-0 flex-1 items-end"},Hye={class:"flex h-[100px] w-12 flex-col justify-end"},qye={class:"h-4 w-12 truncate text-center text-13 text-black"},jye={class:"mt-1 w-12 truncate text-center text-13 text-grey-40"},Uye={key:1,class:"mx-4 mt-6 rounded-[24px] bg-grey-90 p-6 text-center text-16 text-black"},zye={key:2,class:"mt-6"},Wye=["onClick"],Gye={class:"truncate"},Yye={key:0},Kye={class:"flex items-start px-4 pb-2 text-13 text-grey-40"},Qye={class:"min-w-0 flex-1"},Xye={class:"flex shrink-0 gap-4"},Zye={class:"w-[112px] text-right"},Jye={class:"w-[112px] text-right"},e_e={class:"flex items-start text-13 text-black"},t_e={class:"min-w-0 flex-1 truncate"},s_e={class:"flex shrink-0 gap-4"},n_e={class:"w-[112px] truncate text-right"},r_e={class:"w-[124px] truncate text-right"},i_e=G({__name:"GkuMeterHistoryPanel",setup(e){const{t}=be(),s=st(),n=ug(),r=X(new Set),i=X(null),o=A(()=>String(s.query.gku_account??"")),l=A(()=>String(s.query.gku_meter_device_id??"")),u=A(()=>n.history),d=A(()=>u.value?.chart??[]),f=A(()=>`max(100%, ${d.value.length*48+Math.max(0,d.value.length-1)*8}px)`),h=A(()=>n.meters.find(R=>R.deviceId===l.value)),g=A(()=>I("gku_meter_title")||h.value?.title||""),m=A(()=>{const R=I("gku_meter_subtitle")||h.value?.subtitle||"";return P(R)}),_=A(()=>L(g.value));Se([o,l],()=>{v()},{immediate:!0});async function v(){await n.loadHistory(o.value,l.value);const R=n.history?.history[0]?.title;R&&(r.value=new Set([R])),await lt(),D()}function k(R){const F=new Set(r.value);F.has(R)?F.delete(R):F.add(R),r.value=F}function x(R){return r.value.has(R)}function C(R){return R==null?"":(Number.isInteger(R),String(R))}function w(R){const F=Date.parse(R);return Number.isFinite(F)?new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"short"}).format(F).replace(".",""):R}function $(R){return Math.max(0,Math.min(80,R*80))}function S(R){return R&&`${R[0]?.toUpperCase()??""}${R.slice(1)}`}function I(R){const F=s.query[R];return Array.isArray(F)?String(F[0]??""):String(F??"")}function P(R){return!R||R.startsWith("â")?R:`â${R}`}function L(R){const F=R.toLowerCase();return F.includes("оÑоп")?"Ðкал":F.includes("вода")||F.includes("вод")||F.includes("гвÑ")||F.includes("Ñ
вÑ")||F.includes("water")?"м³":"кÐÑ·Ñ"}function D(){const R=i.value;R&&(R.scrollLeft=R.scrollWidth)}return(R,F)=>{const N=J0;return p(),y("div",Lye,[a(n).isHistoryLoading?(p(),y(j,{key:0},[F[0]||(F[0]=c("div",{class:"mx-4 h-[212px] animate-pulse rounded-[8px] border border-white bg-black"},null,-1)),F[1]||(F[1]=c("div",{class:"mx-4 mt-6 h-14 animate-pulse rounded-[8px] bg-grey-90"},null,-1)),F[2]||(F[2]=c("div",{class:"mx-4 mt-2 h-14 animate-pulse rounded-[8px] bg-grey-90"},null,-1)),F[3]||(F[3]=c("div",{class:"mx-4 mt-2 h-[360px] animate-pulse rounded-[8px] bg-grey-90"},null,-1))],64)):a(n).historyError?(p(),y("section",Rye,[c("p",Mye,b(a(t)("drawer.gku.meter.historyLoadError")),1),c("p",Oye,b(a(n).historyError.message),1),T(a(vt),{class:"mt-6",label:a(t)("drawer.gku.repeat"),variant:"secondary",onClick:v},null,8,["label"])])):u.value?(p(),y(j,{key:2},[d.value.length?(p(),y("section",Fye,[c("p",Nye,b(g.value),1),c("p",Bye,b(m.value),1),c("div",{ref_key:"chartScrollRef",ref:i,class:"mt-1 flex h-[142px] overflow-x-auto px-4"},[c("div",{class:"flex items-end justify-end gap-2",style:kt({minWidth:f.value})},[(p(!0),y(j,null,le(d.value,(z,me)=>(p(),y("div",{key:`${z.title}-${me}`,class:"flex h-[142px] w-12 shrink-0 flex-col items-center"},[c("div",Vye,[c("div",Hye,[c("p",qye,b(C(z.diffCurrentPrev)),1),c("div",{class:"mt-1 w-12 rounded-[4px] bg-emerald-primary",style:kt({height:`${$(z.diffCurrentPrevRatio)}
9px`})},null,4)])]),c("p",jye,b(S(z.title)),1)]))),128))],4)],512)])):E("",!0),u.value.history.length?(p(),y("section",zye,[(p(!0),y(j,null,le(u.value.history,z=>(p(),y("div",{key:z.title,class:"mx-4 mb-2 overflow-hidden rounded-[8px] bg-grey-90"},[c("button",{type:"button",class:"flex h-14 w-full items-center justify-between px-4 text-left text-16 text-black",onClick:me=>k(z.title)},[c("span",Gye,b(z.title),1),T(N,{class:oe(["shrink-0 transition-transform",x(z.title)?"rotate-180":""]),"aria-hidden":"true"},null,8,["class"])],8,Wye),x(z.title)?(p(),y("div",Yye,[c("div",Kye,[c("span",Qye,b(a(t)("drawer.gku.meter.dateShort")),1),c("div",Xye,[c("span",Zye,b(a(t)("drawer.gku.meter.consumptionShort",{unit:_.value})),1),c("span",Jye,b(a(t)("drawer.gku.meter.readingShort",{unit:_.value})),1)])]),F[4]||(F[4]=c("div",{class:"mx-4 h-px bg-grey-80"},null,-1)),(p(!0),y(j,null,le(z.rows,me=>(p(),y("div",{key:`${z.title}-${me.date}-${me.value}`,class:"px-4 pt-3 last:pb-2"},[c("div",e_e,[c("span",t_e,b(w(me.date)),1),c("div",s_e,[c("span",n_e,b(me.diffCurrentPrev),1),c("span",r_e,b(me.value),1)])])]))),128))])):E("",!0)]))),128))])):(p(),y("section",Uye,b(a(t)("drawer.gku.meter.historyEmpty")),1))],64)):E("",!0)])}}}),o_e=Object.assign(i_e,{__name:"GkuMeterHistoryPanel"}),Fu=Ke("gkuPayments",{state:()=>({accountType:"account",historyMode:"charges",paymentInfo:null,paymentHistory:[],error:null,historyError:null,accountError:null,isLoading:!1,isHistoryLoading:!1,isSavingAccount:!1,isAttentionDismissed:!1,requestId:0,historyRequestId:0}),actions:{setAccountType(e){this.accountType!==e&&(this.accountType=e,this.isAttentionDismissed=!1,this.paymentInfo=null,this.error=null)},setHistoryMode(e){this.historyMode=e},dismissAttention(){this.isAttentionDismissed=!0},async loadPaymentInfo(e){const t=e?.trim()??"",s=Ne();if(!s.isAuthorized||!t){this.clearPaymentInfo();return}const n=++this.requestId,r=s.sessionToken;this.isLoading=!0,this.error=null;const i=await ue().fetchGkuPaymentScreen(t);n!==this.requestId||!s.isAuthorized||s.sessionToken!==r||(i.ok?(this.paymentInfo=i.data,this.error=null):(this.paymentInfo=null,this.error=i.error),this.isLoading=!1)},async loadPaymentHistory(e){const t=e?.trim()??"",s=Ne();if(!s.isAuthorized||!t){this.clearPaymentHistory();return}const n=++this.historyRequestId,r=s.sessionToken;this.isHistoryLoading=!0,this.historyError=null;const i=await ue().fetchGkuPaymentHistory(t);n!==this.historyRequestId||!s.isAuthorized||s.sessionToken!==r||(i.ok?(this.paymentHistory=i.data.payments,this.historyError=null):(this.paymentHistory=[],this.historyError=i.error),this.isHistoryLoading=!1)},async saveAccount(e,t,s){const n=s.trim();if(!e||!n){const l={message:"ÐдÑÐµÑ Ð¸Ð»Ð¸ лиÑевой ÑÑÐµÑ Ð½Ðµ вÑбÑан"};return this.accountError=l,{ok:!1,error:l}}this.isSavingAccount=!0,this.accountError=null;const r=ue(),i=await r.checkDebtAccountNumber(n,e.residentId);if(!i.ok)return this.accountError=i.error,this.isSavingAccount=!1,i;const o=await r.saveAddress(e.residentId,e.address,e.flat,e.entrance,e.floor,e.flatType,e.organizationName,t==="repair"?e.personalAccount:n,t==="repair"?n:e.personalAccountRepair);return o.ok?await Oe().fetchUserInfoAndAddresses():this.accountError=o.error,this.isSavingAccount=!1,o},clearPaymentInfo(){this.requestId+=1,this.paymentInfo=null,this.error=null,this.isLoading=!1,this.isAttentionDismissed=!1},clearPaymentHistory(){this.historyRequestId+=1,this.paymentHistory=[],this.historyError=null,this.isHistoryLoading=!1},clear(){this.clearPaymentInfo(),this.clearPaymentHistory(),this.accountError=null,this.isSavingAccount=!1,this.accountType="account",this.historyMode="charges"}}}),a_e={class:"flex min-h-full flex-col px-6 pb-6"},l_e={class:"text-24-bold text-black"},c_e={class:"mt-auto pt-6"},u_e=G({__name:"GkuAccountEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=st(),i=Fu(),o=Oe(),{$showSnackbar:l}=Te(),u=X(""),d=A(()=>r.query.gku_account_type==="repair"?"repair":"account");Se(()=>r.query.gku_account,h=>{u.value=String(h??"")},{immediate:!0});async function f(){const h=await i.saveAccount(o.residence,d.value,u.value);h.ok?(l(n("drawer.gku.account.saveSuccess")),s("go","back")):l(h.error.message??n("drawer.gku.account.saveError"))}return(h,g)=>(p(),y("div",a_e,[c("h1",l_e,b(a(n)("drawer.gku.account.editTitle")),1),T(a(wo),{modelValue:u.value,"onUpdate:modelValue":g[0]||(g[0]=m=>u.value=m),class:"mt-6",type:"text",placeholder:a(n)("drawer.gku.account.placeholder"),size:"default"},null,8,["modelValue","placeholder"]),c("div",c_e,[T(a(vt),{label:a(n)("drawer.gku.account.save"),disabled:!u.value.trim(),loading:a(i).isSavingAccount,onClick:f},null,8,["label","disabled","loading"])])]))}}),d_e=Object.assign(u_e,{__name:"GkuAccountEditPanel"}),f_e={class:"flex min-h-full flex-col bg-white px-6 pb-6"},p_e={key:0,class:"h-72 animate-pulse rounded-[20px] bg-grey-90"},h_e={key:1,class:"rounded-[24px] bg-grey-90 p-6 text-center"},m_e={class:"text-16-bold text-black"},g_e={class:"rounded-[12px] border border-grey-80 bg-white p-4"},y_e={class:"text-16 text-black"},__e={key:0,class:"space-y-1"},v_e={key:0,class:"line-clamp-2 text-13 text-grey-40"},b_e={key:1,class:"truncate text-16 text-black"},x_e={class:"grid grid-cols-3 gap-3"},k_e={key:1,class:"text-13 text-grey-40"},w_e={class:"mt-1 text-24-bold text-black"},C_e={key:1,class:"mt-3"},$_e=G({__name:"GkuPaymentChargePanel",emits:["go"],setup(e,{emit:t}){const s=G({props:{label:{type:String,required:!0},value:{type:String,required:!0},info:{type:Boolean,default:!1}}
9,emits:["info-click"],setup(I,{emit:P}){return()=>ot("div",{class:"min-w-0"},[ot("div",{class:"flex min-w-0 items-center gap-1"},[ot("span",{class:"truncate text-13 text-grey-40"},I.label),I.info?ot("button",{type:"button",class:"shrink-0",onClick:()=>P("info-click")},[ot(Lu,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})]):null]),ot("p",{class:"mt-1 truncate text-16 text-black"},I.value)])}}),n=t,{t:r}=be(),i=st(),o=Fu(),l=Oe(),u=A(()=>String(i.query.gku_account??"")),d=A(()=>String(i.query.gku_charge_id??"")),f=A(()=>o.paymentInfo?.charges.find(I=>I.id===d.value)??o.paymentInfo?.charges[Number(d.value)]??null),h=A(()=>f.value?.card.urlForPay||f.value?.urlForPay||""),g=A(()=>f.value?.card.urlForSbp||f.value?.urlForSbp||""),m=A(()=>f.value?.paymentDocumentUrl||f.value?.card.paymentDocumentUrl||""),_=A(()=>!!(h.value||g.value)),v=A(()=>{const I=f.value?.title||f.value?.card.title||"",P=C(I);return P?w(new Intl.DateTimeFormat("ru-RU",{month:"long",year:"numeric"}).format(P)):I}),k=A(()=>(f.value?.card.labelAmount||r("drawer.gku.payment.total")).replace(/\n/g,"")),x=A(()=>{const I=l.residence;return I?[I.addressSettlementPart,I.addressStreetPart||I.address,I.premisesName||I.flat].map(L=>L.trim()).filter(Boolean).join(", "):""});Se(u,async I=>{I&&!o.paymentInfo&&await o.loadPaymentInfo(I)},{immediate:!0});function C(I){const P=I.match(/((?:19|20)\d{2})-(0[1-9]|1[0-2])(?:-(0[1-9]|[12]\d|3[01]))?/);if(P)return new Date(Number(P[1]),Number(P[2])-1,Number(P[3]??1));const L=Date.parse(I);return Number.isFinite(L)?new Date(L):null}function w(I){const P=I.at(0);return P?P.toUpperCase()+I.slice(1):I}function $(I){window.open(I,"_blank","noopener,noreferrer")}function S(){n("go",{to:"home-debt-peny",replace:!1,query:{gku_account:u.value,gku_account_type:String(i.query.gku_account_type??""),gku_charge_id:d.value}})}return(I,P)=>{const L=Xl,D=ha;return p(),y("div",f_e,[a(o).isLoading&&!f.value?(p(),y("div",p_e)):f.value?(p(),y(j,{key:2},[c("section",g_e,[c("h1",y_e,b(v.value),1),P[3]||(P[3]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),x.value||u.value?(p(),y("div",__e,[x.value?(p(),y("p",v_e,b(x.value),1)):E("",!0),u.value?(p(),y("p",b_e,b(a(r)("drawer.gku.account.number",{number:u.value})),1)):E("",!0)])):E("",!0),P[4]||(P[4]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),c("div",x_e,[T(a(s),{label:a(r)("drawer.gku.payment.accrued"),value:a(Wr)(f.value.card.amountTotal)},null,8,["label","value"]),T(a(s),{label:a(r)("drawer.gku.payment.penalties"),value:a(Wr)(f.value.card.amountPenalties),info:"",onInfoClick:S},null,8,["label","value"])]),P[5]||(P[5]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),k.value?(p(),y("p",k_e,b(k.value),1)):E("",!0),c("p",w_e,b(a(Wr)(f.value.card.amount)),1)]),_.value?(p(),y("div",{key:0,class:oe(["mt-auto grid gap-3 pt-6",h.value&&g.value?"grid-cols-2":"grid-cols-1"])},[h.value?(p(),K(a(vt),{key:0,label:a(r)("drawer.gku.payment.card"),onClick:P[0]||(P[0]=R=>$(h.value))},{icon:Xe(()=>[T(L,{"aria-hidden":"true",class:"[&>path]:fill-white"})]),_:1},8,["label"])):E("",!0),g.value?(p(),K(a(vt),{key:1,label:a(r)("drawer.gku.payment.payBySbp"),variant:"secondary",onClick:P[1]||(P[1]=R=>$(g.value))},{icon:Xe(()=>[...P[6]||(P[6]=[c("img",{src:cg,alt:"",class:"h-5 w-auto","aria-hidden":"true"},null,-1)])]),_:1},8,["label"])):E("",!0)],2)):E("",!0),m.value?(p(),y("div",C_e,[T(a(vt),{label:a(r)("drawer.gku.payment.receipt"),variant:"secondary",onClick:P[2]||(P[2]=R=>$(m.value))},{icon:Xe(()=>[T(D,{"aria-hidden":"true"})]),_:1},8,["label"])])):E("",!0)],64)):(p(),y("section",h_e,[c("p",m_e,b(a(r)("drawer.gku.payment.chargeNotFound")),1)]))])}}}),S_e=Object.assign($_e,{__name:"GkuPaymentChargePanel"}),A_e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function I_e(e,t){return p(),y("svg",A_e,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M14.793 8.293a1 1 0 1 1 1.414 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414L11 12.086z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M15.2 2c.824 0 1.502-.001 2.052.044.562.046 1.08.144 1.564.392a4 4 0 0 1 1.749 1.748c.247.485.345 1.002.391 1.564.045.55.044 1.228.044 2.052V21a1 1 0 0 1-1.588.8
909l-2.133-1.552-1.904 1.524a1 1 0 0 1-1.213.028L12 20.235 9.838 21.81a1 1 0 0 1-1.213-.028L6.72 20.257l-2.132 1.552A1 1 0 0 1 3 21V7.8c0-.824-.001-1.502.044-2.052.046-.562.144-1.08.392-1.564a4 4 0 0 1 1.748-1.748c.485-.248 1.002-.346 1.564-.392C7.298 1.999 7.976 2 8.8 2zM8.8 4c-.857 0-1.439 0-1.889.037-.438.036-.663.101-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.82C5 6.361 5 6.942 5 7.8v11.236l1.162-.845.142-.086a1 1 0 0 1 1.071.114l1.904 1.523 2.133-1.55.137-.085a1 1 0 0 1 1.039.084l2.132 1.551 1.905-1.523a1 1 0 0 1 1.213-.028l1.162.845V7.8c0-.857 0-1.439-.037-1.889-.036-.438-.101-.663-.18-.82a2 2 0 0 0-.875-.873c-.156-.08-.38-.145-.82-.18C16.639 4 16.058 4 15.2 4z","clip-rule":"evenodd"},null,-1)])])}const T_e={render:I_e},P_e={class:"flex min-h-full flex-col bg-white px-[14px] pb-[14px]"},D_e={key:0,class:"mt-4 h-40 animate-pulse rounded-[20px] border border-grey-80 bg-white"},E_e={key:1,class:"rounded-[24px] bg-grey-90 p-6 text-center"},L_e={class:"text-16-bold text-black"},R_e={class:"mt-4 rounded-[20px] border border-grey-80 bg-white p-5"},M_e={class:"text-16 text-black"},O_e={class:"grid grid-cols-3 gap-3"},F_e={class:"min-w-0"},N_e={class:"line-clamp-2 text-13 text-grey-40"},B_e={class:"mt-1 line-clamp-2 break-words text-16 text-black"},V_e={class:"min-w-0"},H_e={class:"line-clamp-2 text-13 text-grey-40"},q_e={class:"mt-1 line-clamp-2 break-words text-16 text-black"},j_e={class:"min-w-0"},U_e={class:"line-clamp-2 text-13 text-grey-40"},z_e={class:"mt-1 line-clamp-2 break-words text-16 text-black"},W_e={class:"text-13 text-grey-40"},G_e={class:"mt-1 text-24-bold text-black"},Y_e={class:"mt-auto pt-6"},K_e=G({__name:"GkuPaymentHistoryItemPanel",setup(e){const{t}=be(),s=st(),n=Fu(),r=A(()=>String(s.query.gku_account??"")),i=A(()=>Number(s.query.gku_payment_index??-1)),o=A(()=>n.paymentHistory[i.value]??null),l=A(()=>d(o.value));Se(r,async h=>{h&&!n.paymentHistory.length&&await n.loadPaymentHistory(h)},{immediate:!0});function u(){const h=o.value?.card.receiptDocumentUrl;h&&window.open(h,"_blank","noopener,noreferrer")}function d(h){if(!h)return"";const g=f([h.title,h.description,h.card.labelAmount,h.card.title]);return g?new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric"}).format(g):h.title.trim()||h.description.trim()||h.card.title.trim()}function f(h){for(const g of h){const m=g.trim();if(!m)continue;const _=m.match(/((?:19|20)\d{2})-(0[1-9]|1[0-2])(?:-(0[1-9]|[12]\d|3[01]))?/);if(_)return new Date(Number(_[1]),Number(_[2])-1,Number(_[3]??1));const v=Date.parse(m);if(Number.isFinite(v))return new Date(v)}return null}return(h,g)=>{const m=T_e;return p(),y("div",P_e,[a(n).isHistoryLoading&&!o.value?(p(),y("div",D_e)):o.value?(p(),y(j,{key:2},[c("section",R_e,[c("h1",M_e,b(l.value),1),g[0]||(g[0]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),c("div",O_e,[c("div",F_e,[c("p",N_e,b(a(t)("drawer.gku.payment.accrued")),1),c("p",B_e,b(a(Wr)(o.value.card.amountTotal)),1)]),c("div",V_e,[c("p",H_e,b(a(t)("drawer.gku.payment.commission")),1),c("p",q_e,b(a(Wr)(o.value.card.amountCommission)),1)]),c("div",j_e,[c("p",U_e,b(a(t)("drawer.gku.payment.method")),1),c("p",z_e,b(o.value.source.trim()||a(t)("drawer.gku.payment.card")),1)])]),g[1]||(g[1]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),c("p",W_e,b(a(t)("drawer.gku.payment.total")),1),c("p",G_e,b(a(Wr)(o.value.amount)),1)]),c("div",Y_e,[T(a(vt),{label:a(t)("drawer.gku.payment.check"),variant:"secondary",disabled:!o.value.card.receiptDocumentUrl,onClick:u},{icon:Xe(()=>[T(m)]),_:1},8,["label","disabled"])])],64)):(p(),y("section",E_e,[c("p",L_e,b(a(t)("drawer.gku.payment.paymentNotFound")),1)]))])}}}),Q_e=Object.assign(K_e,{__name:"GkuPaymentHistoryItemPanel"}),X_e={class:"flex h-full flex-col"},Z_e={class:"flex-1 px-6"},J_e={class:"mx-auto flex h-full max-w-[432px] flex-col items-center justify-center text-center"},e3e={class:"mt-8 text-24-bold text-black"},t3e={class:"mt-3 max-w-[348px] text-16 leading-6 text-grey-40"},s3e={class:"mt-7 flex w-full flex-col items-start gap-2 rounded-[24px] bg-[#F7F8FC] p-4 text-left"},n3e={class:"min-w-0 flex-1"},r3e=G({__name:"RegistrationSuccessPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=B0(),i=A(()=>{const l=r.withOrganizationName?"registrationSuccess.organizationItems":"registrationSuccess.residentItems";return[0,1,2,3].map(u=>n(`${l}[${u}]`))});function o(){if(r.shouldOpenOrganizationPanel){s("go",{to:"address-organization",replace:!0});return}s("go","close")}return(l,u)=>{const d=ng,f=W0,h=Ae("PrimaryButton");return p(),y("div",X_e,[c("div",Z_e,[c("div",J_e,[T(d),c("h1",e3e,b(a(n)("registrationSuccess.title")),1),c("p",t3e,b(a(n)("registrationSuccess.description")),1),c("ul",s3e,[(p(!0),y(j,null,le(i.value,g=>(p(),y("li",{key:g,class:"flex h-4 w-full items-start gap-2 text-13 leading-4 text-black"},[T(f,{class:"h-4 w-4 shrink-0 text-[#40497A]"}),c("span",n3e,b(g),1)]))),128))]),T(h,{class:"mt-6 w-full",label:a(n)("registrationSuccess.continue"),onClick:o},null,8,["label"])])])])}}}),i3e=Object.assign(r3e,{__name:"RegistrationSuccessPanel"}),ef=Ke("incidents",{state:()=>({title:"",description:"",incidents:[],detail:null,error:null,detailError:null,isLoading:!1,isMoreLoading:!1,isDetailLoa
9ding:!1,page:1,count:20,hasReachedMax:!1,requestId:0,detailRequestId:0}),actions:{async loadList(e,t={}){const s=Ne();if(!s.isAuthorized||!e)return this.clearList(),null;const n=!!t.append;if(n&&(this.isMoreLoading||this.hasReachedMax))return null;const r=n?this.page+1:1,i=++this.requestId,o=s.sessionToken,l=ue();n?this.isMoreLoading=!0:(this.isLoading=!0,this.incidents=[],this.hasReachedMax=!1),this.error=null;const u=await l.fetchIncidents({premisesId:e,page:r,count:this.count});return i!==this.requestId||!s.isAuthorized||s.sessionToken!==o?null:(u.ok?(this.title=u.data.title,this.description=u.data.description,this.incidents=n?[...this.incidents,...u.data.incidents]:u.data.incidents,this.page=r,this.hasReachedMax=u.data.incidents.length<this.count,this.error=null):(n||(this.incidents=[]),this.error=u.error),this.isLoading=!1,this.isMoreLoading=!1,u)},async loadDetail(e,t){const s=Ne();if(!s.isAuthorized||!e||!t)return this.clearDetail(),null;const n=++this.detailRequestId,r=s.sessionToken,i=ue();this.isDetailLoading=!0,this.detail=null,this.detailError=null;const o=await i.fetchIncidentDetail(e,t);return n!==this.detailRequestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.detail=o.data,this.detailError=null):(this.detail=null,this.detailError=o.error),this.isDetailLoading=!1,o)},clearList(){this.requestId+=1,this.title="",this.description="",this.incidents=[],this.error=null,this.isLoading=!1,this.isMoreLoading=!1,this.page=1,this.hasReachedMax=!1},clearDetail(){this.detailRequestId+=1,this.detail=null,this.detailError=null,this.isDetailLoading=!1},clearAll(){this.clearList(),this.clearDetail()}}}),o3e="5.12.2",a3e=60,l3e=0,c3e=120,u3e=384,d3e=384,f3e="Frame 3",p3e=0,h3e=JSON.parse('[{"id":"comp_0","nm":"Pre-comp 1","fr":60,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-270,"ix":10},"p":{"a":0,"k":[192.812,296.188,0],"ix":2,"l":2},"a":{"a":0,"k":[127.75,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[127.75,7.25],[191.125,7.188]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.501]},"t":105,"s":[0]},{"t":120,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[0.499]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":105,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":90,"op":120,"st":90,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-180,"ix":10},"p":{"a":0,"k":[88.562,192.062,0],"ix":2,"l":2},"a":{"a":0,"k":[127.75,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[127.75,7.25],[191.125,7.188]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.501]},"t":105,"s":[0]},{"t":120,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[0.499]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":105,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":90,"op":120,"st":90,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-90,"ix":10},"p":{"a":0,"k":[192.688,87.562,0],"ix":2,"l":2},"a":{"a":0,"k":[127.75,7.25,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[127.75,7.25],[191.125,7.188]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false}
vendor: 4,724 bytes, line 9
9,{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.501]},"t":105,"s":[0]},{"t":120,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[0.499]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":105,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":90,"op":120,"st":90,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[169.562,185.312,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[127.75,7.25],[191.125,7.188]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.501]},"t":105,"s":[0]},{"t":120,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[0.499]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":105,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":90,"op":120,"st":90,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"main comp","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[192,192,0],"ix":2,"l":2},"a":{"a":0,"k":[240,240,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":480,"h":480,"ip":0,"op":300,"st":0,"bm":0}]},{"id":"comp_1","nm":"main comp","fr":60,"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"lines","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240,240,0],"ix":2,"l":2},"a":{"a":0,"k":[240,240,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":480,"h":480,"ip":60,"op":122,"st":60,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"lines","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240,240,0],"ix":2,"l":2},"a":{"a":0,"k":[240,240,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":480,"h":480,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Vector 17","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[236,152,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-10],[0,10]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector 17","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Rectangle 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[236,212.002,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[20,10],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":2,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false}
9,{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 8","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[236.125,66.875,0],"ix":2,"l":2},"a":{"a":0,"k":[-3.875,-173.125,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.677,"y":0},"o":{"x":0.68,"y":0},"t":60.451,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[4.438,-215.75],[-12.25,-215.75],[-24.25,-160.125],[-4,-128.5],[16.5,-160.172]],"c":true}]},{"i":{"x":0.322,"y":1},"o":{"x":0.178,"y":0.549},"t":90,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-3.063,-215.75],[-5,-215.75],[-5.062,-160.125],[-4,-128.5],[-2.969,-160.188]],"c":true}]},{"t":120,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[4.438,-215.75],[-12.25,-215.75],[-24.25,-160.125],[-4,-128.5],[16.5,-160.172]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":60,"op":122,"st":60,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[236.125,66.875,0],"ix":2,"l":2},"a":{"a":0,"k":[-3.875,-173.125,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.677,"y":0},"o":{"x":0.68,"y":0}
9,"t":0.451,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[4.438,-215.75],[-12.25,-215.75],[-24.25,-160.125],[-4,-128.5],[16.5,-160.172]],"c":true}]},{"i":{"x":0.322,"y":1},"o":{"x":0.178,"y":0.549},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-3.063,-215.75],[-5,-215.75],[-5.062,-160.125],[-4,-128.5],[-2.969,-160.188]],"c":true}]},{"t":60,"s":[{"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[4.438,-215.75],[-12.25,-215.75],[-24.25,-160.125],[-4,-128.5],[16.5,-160.172]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Vector","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[235.999,342.001,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2,0],[0,0],[5.523,0],[0,5.523],[0,0],[0,6]],"o":[[0,6],[0,0],[0,5.523],[-5.523,0],[0,0],[2,0],[0,0]],"v":[[5,-27.5],[10,-20.5],[10,17.5],[0,27.5],[-10,17.5],[-10,-20.5],[-5,-27.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Vector 19","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[340.469,240.471,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,2],[0,-2]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector 19","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Ellipse 21","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[56.471,240.471,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6,6],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 21","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Ellipse 20","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.433,"y":1},"o":{"x":0.595,"y":0}
vendor: 12,147 bytes, line 9
9,"t":0,"s":[402.909,269.783,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0},"o":{"x":1,"y":1},"t":60,"s":[402.909,292.283,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.433,"y":1},"o":{"x":0.595,"y":0},"t":61,"s":[402.909,292.283,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0},"o":{"x":1,"y":1},"t":121,"s":[402.909,269.783,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.433,"y":1},"o":{"x":0.595,"y":0},"t":122,"s":[402.909,269.783,0],"to":[0,0,0],"ti":[0,0,0]},{"t":182,"s":[402.909,292.283,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-2.794,2.144],[-0.912,3.402],[0,0]],"o":[[3.522,0],[2.794,-2.144],[0,0],[0,0]],"v":[[-7.727,5.929],[2.013,2.623],[7.727,-5.929],[-7.727,-5.929]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 20","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Ellipse 19","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[370.909,240.001,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[2.18,2.041],[2.929,0.583],[2.795,-1.052],[1.818,-2.369],[0.293,-2.972],[-1.321,-2.678],[-2.536,-1.577],[-2.986,0],[0,0]],"o":[[-0.773,-2.885],[-2.18,-2.041],[-2.929,-0.583],[-2.795,1.052],[-1.818,2.369],[-0.293,2.972],[1.321,2.678],[2.536,1.577],[0,0],[0,0]],"v":[[15.727,-4.141],[11.21,-11.678],[3.394,-15.693],[-5.363,-14.974],[-12.421,-9.74],[-15.65,-1.568],[-14.077,7.077],[-8.176,13.587],[0.273,16],[0.273,-4.141]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 19","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Vector","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[168.471,240.47,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[36,-6],[27,-6.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,4.382],[-4.38,-0.122],[0,0]],"o":[[0,0],[-4.38,0.122],[0,-4.382],[0,0],[0,0]],"v":[[6.999,6.806],[-28.003,7.778],[-36,0],[-28.003,-7.778],[6.999,-6.806]],"c":false},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[36,6],[27,6.25]],"c":false},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0}]},{"id":"comp_2","nm":"lines","fr":60,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Vector 20","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.386,"y":1},"o":{"x":0.611,"y":0},"t":0,"s":[196,352,0],"to":[0,0,0],"ti":[0,0,0]},{"t":60,"s":[236,352,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-15],[0,15]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector 20","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Vector 18","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[40,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[0,-15],[0,15]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.341176480055,0.694117665291,0.46274510026,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector 18","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0}]}]'),m3e=[{ddd:0,ind:1,ty:0,nm:"Pre-comp 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[191.562,192,0],ix:2,l:2},a:{a:0,k:[192,192,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:384,h:384,ip:0,op:300,st:0,bm:0}],g3e=[],y3e={},_3e={v:o3e,fr:a3e,ip:l3e,op:c3e,w:u3e,h:d3e,nm:f3e,ddd:p3e,assets:h3e,layers:m3e,markers:g3e,props:y3e};function v3e(){const e=Ne(),t=Oe(),s="/images/resident-home/hero.jpg",n=X(!1),r=A(()=>t.residence?.houseImage?.trim()??""),i=A(()=>e.isAuthorized&&r.value.length>0&&!n.value?r.value:s);Se(r,()=>{n.value=!1});function o(){i.value!==s&&(n.value=!0)}return{heroImageUrl:i,onHeroImageError:o}}function Mn(){const e=is(),t=st(),s=Ne(),n=Oe(),{heroImageUrl:r,onHeroImageError:i}=v3e(),o=A(()=>(n.userInfo?.selectAddresses.length??0)>0);function l(){const u={...t.query,panel:o.value?"address-select":"profile-address-premises"};e.push({path:t.path,query:u})}return Se(()=>s.isAuthorized,u=>{u||e.replace("/")}),{sessionStore:s,userInfoStore:n,heroImageUrl:r,onHeroImageError:i,openAddressPanel:l}}const b3e={class:"flex h-full flex-col"},x3e={class:"flex flex-col items-center text-center"},k3e={class:"flex h-24 w-24 items-center justify-center rounded-[24px] bg-red-90"},w3e={class:"mt-6 text-24-bold text-black"},C3e={key:0,class:"mt-2 text-16 text-grey-40"},$3e={key:0,class:"mt-6 space-y-2"},S3e={key:1,class:"mt-10 text-center text-16 text-grey-40"},A3e={key:2,class:"mt-6 space-y-2"},I3e=["onClick"],T3e={class:"mb-2 flex justify-end"},P3e={class:"text-16-bold text-black"},D3e={key:0,class:"mt-1 whitespace-pre-line text-13 text-black"},E3e={key:1,class:"mt-3 text-13 text-grey-40"},L3e={key:0,class:"h-16 rounded-[12px] bg-grey-90"},R3e=G({__name:"IncidentsListPanel",emits:["go"],setup(e,{emit:t}){const s=Xc(()=>wt(()=>import("./0V0cf9V1.js"),__vite__mapDeps([41,40]),import.meta.url).then(m=>m.Vue3Lottie)),n=t,{t:r}=be(),{userInfoStore:i}=Mn(),o=ef(),l=X(null);je(()=>{o.loadList(i.residence?.premisesId??null)});function u(m){n("go",{to:"incident-info",query:{incident_claim_id:m}})}function d(m){n("go",{to:"incident-result",query:{incident_claim_id:m}})}function f(){const m=l.value;!m||o.isLoading||o.isMoreLoading||o.hasReachedMax||m.scrollTop+m.clientHeight>m.scrollHeight-250&&o.loadList(i.residence?.premisesId??null,{append:!0})}function h(m){return m==="completed"?"bg-emerald-primary":m==="canceled"?"bg-red-50":"bg-purple-50"}function g(m){const _=new Date(m);return Number.isNaN(_.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(_)}return(m,_)=>{const v=wu;return p(),y("section",b3e,[c("div",{ref_key:"scrollContainerRef",ref:l,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80",onScrollPassive:f},[c("div",x3e,[c("div",k3e,[T(v,null,{fallback:Xe(()=>[..._[0]||(_[0]=[c("div",{class:"h-24 w-24 shrink-0"},null,-1)])]),default:Xe(()=>[T(a(s),{class:"h-24 w-24 shrink-0","animation-data":a(_3e),height:96,width:96,loop:!0,"auto-play":!0,"aria-hidden":"true"},null,8,["animation-data"])]),_:1})]),c("h1",w3e,b(a(o).title||a(r)("incidents.title")),1),a(o).description?(p(),y("p",C3e,b(a(o).description),1)):E("",!0)]),a(o).isLoading?(p(),y("div",$3e,[(p(),y(j,null,le(5,k=>c("div",{key:k,class:"h-24 rounded-[12px] bg-grey-90"})),64))])):a(o).incidents.length?(p(),y("div",A3e,[(p(!0),y(j,null,le(a(o).incidents,k=>(p(),y("article",{key:k.claimId,class:"rounded-[12px] bg-grey-90 p-4"},[c("button",{type:"button",class:"block w-full text-left",onClick:x=>u(k.claimId)},[c("span",T3e,[c("span",{class:oe(["h-2 w-2 rounded-full",h(k.status)])},null,2)]),c("h2",P3e,b(k.title),1),k.currentStep?(p(),y("p",D3e,b(k.currentStep),1)):E("",!0),k.date?(p(),y("p",E3e,b(a(r)("incidents.createdAt",{date:g(k.date)})),1)):E("",!0)],8,I3e),k.showResultButton?(p(),K(a(vt),{key:0,class:"mt-3 w-auto",label:a(r)("incidents.showResult"),size:"small","full-width":!1,onClick:x=>d(k.claimId)},null,8,["label","onClick"])):E("",!0)]))),128)),a(o).isMoreLoading?(p(),y("div",L3e)):E("",!0)])):(p(),y("div",S3e,b(a(r)("incidents.empty")),1))],544)])}}}),M3e=Object.assign(R3e,{__name:"IncidentsListPanel"}),O3e={class:"flex h-full flex-col"},F3e={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},N3e={class:"text-24-bold text-black"},B3e={key:0,class:"mt-6 space-y-4"},V3e={key:0,class:"mt-6 inline-flex rounded-[8px] bg-red-90 px-3 py-2 text-13 text-black"},H3e={key:1,class:"mt-6"},q3e={class:"mt-1 flex h-6 w-6 shrink-0 items-center justify-center"},j3e={class:"min-w-0 flex-1"},U3e={class:"text-16 text-black"},z3e={class:"mt-2 text-13 text-grey-40"},W3e={key:2,class:"mt-10 text-center text-16 text-grey-40"},G3e={key:2,class:"mt-10 text-center text-16 text-grey-40"},Y3e={key:0,class:"p-6"},K3e=G({__name:"IncidentInfoPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{userInfoStore:i}=Mn(),o=ef(),l=A(()=>typeof n.query.incident_claim_id=="string"?n.query.incident_claim_id:""),u=A(()=>o.detail),d=A(()=>u.value?.status==="completed"?"bg-emerald-primary":u.value?.status==="canceled"?"bg-red-50":"bg-purple-50");je(()=>{o.loadDetail(i.residence?.premisesId??null,l.value)});function f(){s("go",{to:"incident-result",query:{incident_claim_id:l.value}})}function h(g){const m=new Date(g);return Number.isNaN(m.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(m)}return(g,m)=>(p(),y("section",O3e,[c("div",F3e,[c("h1",N3e,b(a(u)?.pageTitle||a(r)("incidents.detail")),1),a(o).isDetailLoa
9ding?(p(),y("div",B3e,[(p(),y(j,null,le(5,_=>c("div",{key:_,class:"h-16 rounded-[12px] bg-grey-90"})),64))])):a(u)?(p(),y(j,{key:1},[a(u).incidentTitle?(p(),y("div",V3e,b(a(u).incidentTitle),1)):E("",!0),a(u).steps.length?(p(),y("div",H3e,[(p(!0),y(j,null,le(a(u).steps,_=>(p(),y("div",{key:`${_.title}-${_.date}`,class:"flex items-start gap-4 pb-5"},[c("div",q3e,[c("span",{class:oe(["h-3 w-3 rounded-full",_.isFinal?a(d):"bg-purple-50"])},null,2)]),c("div",j3e,[c("p",U3e,b(_.title),1),c("p",z3e,b(h(_.date)),1)])]))),128))])):(p(),y("div",W3e,b(a(r)("incidents.emptyProgress")),1))],64)):(p(),y("p",G3e,b(a(r)("incidents.detailEmpty")),1))]),a(u)?.showResultButton?(p(),y("div",Y3e,[T(a(vt),{class:"w-full",label:a(r)("incidents.showResult"),onClick:f},null,8,["label"])])):E("",!0)]))}}),Q3e=Object.assign(K3e,{__name:"IncidentInfoPanel"}),X3e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Z3e(e,t){return p(),y("svg",X3e,[...t[0]||(t[0]=[c("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6 8a6 6 0 1 1 12 0A6 6 0 0 1 6 8m6-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8","clip-rule":"evenodd"},null,-1),c("path",{fill:"currentColor",d:"M5.813 16.617C7.443 15.596 9.633 15 12 15s4.557.598 6.187 1.616C19.803 17.627 21 19.15 21 21a1 1 0 1 1-2 0c0-.912-.594-1.888-1.873-2.687C15.862 17.522 14.052 17 12 17s-3.862.522-5.127 1.313C5.593 19.112 5 20.089 5 21a1 1 0 1 1-2 0c0-1.85 1.197-3.373 2.813-4.384"},null,-1)])])}const J3e={render:Z3e},eve={class:"flex h-full flex-col"},tve={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},sve={class:"text-24-bold text-black"},nve={key:0,class:"mt-6 space-y-4"},rve={key:0,class:"mt-6 flex items-start gap-3 rounded-[12px] bg-grey-90 p-4"},ive={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-[8px] bg-white"},ove={class:"min-w-0 flex-1"},ave={class:"text-11 text-grey-40"},lve={class:"mt-1 whitespace-pre-line text-16 text-black"},cve={key:1,class:"mt-6 grid grid-cols-2 gap-1 rounded-[12px] bg-grey-80 p-1"},uve=["aria-pressed","onClick"],dve={key:2,class:"mt-4"},fve={class:"text-11 text-black"},pve={key:3,class:"mt-4"},hve={class:"text-11 text-black"},mve={key:4,class:"mt-10 text-center text-16 text-grey-40"},gve={key:2,class:"mt-10 text-center text-16 text-grey-40"},yve=G({__name:"IncidentResultPanel",setup(e){const t=G({props:{files:{type:Array,required:!0}},setup(v){const k=Ne();function x(w){if(!k.sessionToken||!w.url)return w.url;const $=new URL(w.url,window.location.origin);return $.searchParams.set("btlrsid",k.sessionToken),$.toString()}function C(w){const $=x(w);$&&window.open($,"_blank","noopener,noreferrer")}return()=>ot("div",{class:v.files.some(w=>w.isImage)?"space-y-4":"space-y-2"},v.files.map(w=>w.isImage?ot("button",{type:"button",class:"block aspect-[267/162] w-full overflow-hidden rounded-[8px] bg-grey-90",onClick:()=>C(w)},[ot("img",{src:x(w),alt:w.name,class:"h-full w-full object-cover"})]):ot("button",{type:"button",class:"flex min-h-9 w-full items-center gap-3 rounded-[8px] bg-grey-90 px-3 py-2 text-left text-black",onClick:()=>C(w)},[ot(ha),ot("span",{class:"min-w-0 truncate text-11"},w.name)])))}}),s=st(),{t:n}=be(),{userInfoStore:r}=Mn(),i=ef(),o=X("photos"),l=A(()=>i.detail),u=A(()=>[{label:n("maintenanceAndRepair.photos"),value:"photos"},{label:n("maintenanceAndRepair.files"),value:"files"}]),d=A(()=>(l.value?.allAttachmentImage.length??0)>0),f=A(()=>(l.value?.allAttachmentDocuments.length??0)>0),h=A(()=>o.value==="photos"?l.value?.allAttachmentImage??[]:l.value?.allAttachmentDocuments??[]),g=A(()=>h.value.filter(v=>v.isBefore)),m=A(()=>h.value.filter(v=>!v.isBefore)),_=A(()=>o.value==="files"?n("maintenanceAndRepair.beforeFiles"):n("maintenanceAndRepair.beforePhoto"));return je(()=>{const v=typeof s.query.incident_claim_id=="string"?s.query.incident_claim_id:"";(!i.detail||v)&&i.loadDetail(r.residence?.premisesId??null,v)}),Pl(()=>{!d.value&&f.value&&(o.value="files")}),(v,k)=>{const x=J3e;return p(),y("section",eve,[c("div",tve,[c("h1",sve,b(a(n)("incidents.result")),1),a(i).isDetailLoading?(p(),y("div",nve,[(p(),y(j,null,le(4,C=>c("div",{key:C,class:"h-16 rounded-[12px] bg-grey-90"})),64))])):a(l)?(p(),y(j,{key:1},[a(l).resultComment?(p(),y("div",rve,[c("div",ive,[T(x,{"aria-hidden":"true"})]),c("div",ove,[c("p",ave,b(a(n)("incidents.executor")),1),c("p",lve,b(a(l).resultComment),1)])])):E("",!0),a(d)&&a(f)?(p(),y("div",cve,[(p(!0),y(j,null,le(a(u),C=>(p(),y("button",{key:C.value,type:"button",class:oe(["h-12 flex-1 rounded-[8px] px-3 text-center text-16 text-black transition-colors",a(o)===C.value?"bg-white":""]),"aria-pressed":a(o)===C.value,onClick:w=>o.value=C.value},b(C.label),11,uve))),128))])):E("",!0),a(g).length?(p(),y("div",dve,[c("p",fve,b(a(_)),1),T(a(t),{class:"mt-4",files:a(g)},null,8,["files"])])):E("",!0),a(m).length?(p(),y("div",pve,[c("p",hve,b(a(n)("maintenanceAndRepair.afterResult")),1),T(a(t),{class:"mt-4",files:a(m)},null,8,["files"])])):E("",!0),!a(g).length&&!a(m).length?(p(),y("div",mve,b(a(n)("incidents.emptyResult")),1)):E("",!0)],64)):(p(),y("p",gve,b(a(n)("incidents.detailEmpty")),1))])])}}}),_ve=Object.assign(yve,{__name:"IncidentResultPanel"}),vve={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function bve(e,t){return p(),y("svg",vve,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M36.37 78.392V76.57a2 2 0 0 1 4 0v1.823c0 2.174.002 3.685.098 4.86.094 1.151.269 1.803.517 2.292a5.64 5.64 0 0 0 2.463 2.468c.487.249 1.138.424 2.286.518 1.173.096 2.68.096 4.851.096h35.768c1.472 0 2.48-.008 3.463.19a9.6 9.6 0 0 1 2.4.823c.898.448 1.689 1.074 2.852 1.979l13.03 10.129c1.085.843 1.79 1.389 2.333 1.737a3 3 0 0 0 .519.285.54.54 0 0 0 .333-.165 3 3 0 0 0 .094-.588c.058-.643.061-1.536.061-2.912v-48.26c0-2.175-.002-3.686-.098-4.861-.094-1.152-.268-1.804-.517-2.293a5.64 5.64 0 0 0-2.463-2.467c-.487-.248-1.137-.423-2.286-.517-1.172-.096-2.68
9-.098-4.85-.098H93.08a2 2 0 0 1 0-4h8.144c2.104 0 3.803-.002 5.176.11 1.397.115 2.633.357 3.779.942a9.64 9.64 0 0 1 4.209 4.217c.583 1.146.825 2.382.939 3.78.112 1.376.111 3.078.111 5.186v48.261c0 1.296.001 2.407-.078 3.274-.075.834-.249 1.842-.902 2.669a4.54 4.54 0 0 1-3.523 1.728c-1.055.01-1.959-.472-2.663-.923-.732-.469-1.607-1.152-2.629-1.947l-13.03-10.13c-1.287-1-1.723-1.327-2.182-1.557a5.6 5.6 0 0 0-1.403-.481c-.503-.101-1.046-.11-2.675-.11H50.585c-2.104 0-3.803.002-5.177-.11-1.397-.115-2.633-.358-3.778-.942a9.64 9.64 0 0 1-4.21-4.217c-.583-1.147-.825-2.383-.939-3.781-.112-1.376-.11-3.077-.11-5.185m43.26-25.49V26.353c0-2.174-.002-3.685-.098-4.86-.094-1.152-.269-1.804-.517-2.293a5.64 5.64 0 0 0-2.463-2.467c-.488-.249-1.137-.424-2.286-.518-1.173-.096-2.68-.097-4.851-.097H18.776c-2.17 0-3.678.001-4.85.097-1.15.094-1.8.27-2.286.518A5.64 5.64 0 0 0 9.177 19.2c-.25.489-.423 1.141-.517 2.293-.096 1.175-.098 2.686-.098 4.86v48.26l.008 1.732c.008.476.024.86.053 1.18.032.353.074.524.093.589.09.094.207.151.335.165.062-.025.223-.096.518-.285.543-.348 1.248-.894 2.333-1.738l13.03-10.129c1.163-.904 1.954-1.53 2.851-1.978a9.6 9.6 0 0 1 2.4-.823c.984-.198 1.992-.189 3.465-.189h35.767c2.17 0 3.678-.002 4.85-.097 1.15-.094 1.8-.27 2.287-.518a5.64 5.64 0 0 0 2.463-2.468c.248-.489.423-1.141.517-2.293.096-1.175.098-2.685.098-4.86M66.36 47.804a2 2 0 1 1 0 4h-44.53a2 2 0 0 1 0-4zm0-10.196a2 2 0 1 1 0 4h-44.53a2 2 0 0 1 0-4zm0-10.196a2 2 0 0 1 0 4h-44.53a2 2 0 0 1 0-4zm17.269 25.49c0 2.108 0 3.81-.111 5.184-.115 1.399-.356 2.635-.939 3.782a9.64 9.64 0 0 1-4.21 4.217c-1.146.584-2.381.827-3.778.94-1.374.113-3.073.112-5.177.112H33.647c-1.629 0-2.172.008-2.675.11-.487.097-.958.26-1.403.481-.46.23-.895.557-2.182 1.558l-13.03 10.129c-1.022.794-1.897 1.477-2.63 1.947-.703.45-1.607.932-2.662.923a4.54 4.54 0 0 1-3.523-1.728c-.653-.827-.827-1.835-.902-2.669-.04-.434-.06-.928-.069-1.476l-.008-1.798V26.353c0-2.108-.002-3.81.11-5.186.114-1.398.356-2.634.94-3.78a9.64 9.64 0 0 1 4.208-4.218c1.146-.584 2.382-.826 3.779-.94 1.373-.112 3.072-.111 5.176-.111h50.639c2.104 0 3.803-.001 5.177.111 1.397.114 2.633.356 3.778.94a9.64 9.64 0 0 1 4.21 4.217c.583 1.147.825 2.383.939 3.782.112 1.375.11 3.077.11 5.185z"},null,-1)])])}const q7={render:bve},xve={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function kve(e,t){return p(),y("svg",xve,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M8 13a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1M9 16a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2z"},null,-1),c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M13.041 2c.294.004.566.02.83.083a3 3 0 0 1 .868.36c.306.186.559.44.846.728l3.244 3.244c.288.287.542.54.729.846a3 3 0 0 1 .36.867A3.7 3.7 0 0 1 20 9v8.839c0 .527 0 .982-.03 1.356-.033.395-.104.789-.297 1.167a3 3 0 0 1-1.311 1.311c-.378.193-.772.264-1.167.297-.375.03-.83.03-1.356.03H8.16c-.527 0-.981 0-1.356-.03-.395-.033-.789-.104-1.167-.297a3 3 0 0 1-1.311-1.31c-.193-.38-.264-.773-.296-1.168A18 18 0 0 1 4 17.84V6.162c0-.528 0-.982.03-1.357.033-.395.104-.788.297-1.167a3 3 0 0 1 1.311-1.31c.378-.194.772-.265 1.167-.297C7.18 2 7.635 2 8.161 2L12.758 2h.283M12 4H8.2c-.577 0-.949 0-1.232.024-.272.022-.373.06-.422.085a1 1 0 0 0-.437.437c-.025.05-.063.15-.085.422C6 5.25 6 5.624 6 6.2v11.6c0 .577 0 .949.024 1.232.022.272.06.373.085.422a1 1 0 0 0 .437.437c.05.025.15.063.422.085C7.25 20 7.623 20 8.2 20h7.6c.577 0 .949 0 1.232-.024.272-.022.372-.06.422-.085a1 1 0 0 0 .437-.437c.025-.05.063-.15.085-.422C18 18.75 18 18.377 18 17.8V10h-1.838c-.528 0-.982 0-1.357-.03-.395-.033-.789-.104-1.167-.297a3 3 0 0 1-1.311-1.31c-.193-.38-.264-.773-.296-1.168C12 6.821 12 6.365 12 5.84zm5.584 4-.228-.23-3.126-3.126-.23-.228V5.8c0 .577 0 .949.024 1.232.022.272.06.373.085.422a1 1 0 0 0 .437.437c.05.025.15.063.422.085C15.25 8 15.623 8 16.2 8z","clip-rule":"evenodd"},null,-1)])])}const tf={render:kve},wve={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"16",fill:"none"};function Cve(e,t){return p(),y("svg",wve,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M11.2 3.401a1 1 0 1 1 1.6 1.2l-6 8a1 1 0 0 1-1.507.107l-3-3a1 1 0 0 1 1.414-1.414l2.184 2.184zM16.2 3.401a1 1 0 1 1 1.6 1.2l-6 8a1 1 0 0 1-1.507.107l-1-1a1 1 0 1 1 1.414-1.414l.184.184z"},null,-1)])])}const j7={render:Cve},$ve={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"16",fill:"none"};function Sve(e,t){return p(),y("svg",$ve,[...t[0]||(t[0]=[c("path",{fill:"#999",d:"M11.2 3.401a1 1 0 1 1 1.6 1.2l-6 8a1 1 0 0 1-1.507.107l-3-3a1 1 0 0 1 1.414-1.414l2.184 2.184zM16.2 3.401a1 1 0 1 1 1.6 1.2l-6 8a1 1 0 0 1-1.507.107l-1-1a1 1 0 1 1 1.414-1.414l.184.184z"},null,-1)])])}const U7={render:Sve},Zr=Object.create(null);Zr.open="0";Zr.close="1";Zr.ping="2";Zr.pong="3";Zr.message="4";Zr.upgrade="5";Zr.noop="6";
vendor: 5,991 bytes, line 9
9const Ud=Object.create(null);Object.keys(Zr).forEach(e=>{Ud[Zr[e]]=e});const nm={type:"error",data:"parser error"},z7=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",W7=typeof ArrayBuffer=="function",G7=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,dg=({type:e,data:t},s,n)=>z7&&t instanceof Blob?s?n(t):W4(t,n):W7&&(t instanceof ArrayBuffer||G7(t))?s?n(t):W4(new Blob([t]),n):n(Zr[e]+(t||"")),W4=(e,t)=>{const s=new FileReader;return s.onload=function(){const n=s.result.split(",")[1];t("b"+(n||""))},s.readAsDataURL(e)};function G4(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Cp;function Ave(e,t){if(z7&&e.data instanceof Blob)return e.data.arrayBuffer().then(G4).then(t);if(W7&&(e.data instanceof ArrayBuffer||G7(e.data)))return t(G4(e.data));dg(e,!1,s=>{Cp||(Cp=new TextEncoder),t(Cp.encode(s))})}const Y4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Y4.length;e++)Lc[Y4.charCodeAt(e)]=e;const Ive=e=>{let t=e.length*.75,s=e.length,n,r=0,i,o,l,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),f=new Uint8Array(d);for(n=0;n<s;n+=4)i=Lc[e.charCodeAt(n)],o=Lc[e.charCodeAt(n+1)],l=Lc[e.charCodeAt(n+2)],u=Lc[e.charCodeAt(n+3)],f[r++]=i<<2|o>>4,f[r++]=(o&15)<<4|l>>2,f[r++]=(l&3)<<6|u&63;return d},Tve=typeof ArrayBuffer=="function",fg=(e,t)=>{if(typeof e!="string")return{type:"message",data:Y7(e,t)};const s=e.charAt(0);return s==="b"?{type:"message",data:Pve(e.substring(1),t)}:Ud[s]?e.length>1?{type:Ud[s],data:e.substring(1)}:{type:Ud[s]}:nm},Pve=(e,t)=>{if(Tve){const s=Ive(e);return Y7(s,t)}else return{base64:!0,data:e}},Y7=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,K7="�",Dve=(e,t)=>{const s=e.length,n=new Array(s);let r=0;e.forEach((i,o)=>{dg(i,!1,l=>{n[o]=l,++r===s&&t(n.join(K7))})})},Eve=(e,t)=>{const s=e.split(K7),n=[];for(let r=0;r<s.length;r++){const i=fg(s[r],t);if(n.push(i),i.type==="error")break}return n};function Lve(){return new TransformStream({transform(e,t){Ave(e,s=>{const n=s.length;let r;if(n<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,n);else if(n<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(s)})}})}let $p;function xd(e){return e.reduce((t,s)=>t+s.length,0)}function kd(e,t){if(e[0].length===t)return e.shift();const s=new Uint8Array(t);let n=0;for(let r=0;r<t;r++)s[r]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),s}function Rve(e,t){$p||($p=new TextDecoder);const s=[];let n=0,r=-1,i=!1;return new TransformStream({transform(o,l){for(s.push(o);;){if(n===0){if(xd(s)<1)break;const u=kd(s,1);i=(u[0]&128)===128,r=u[0]&127,r<126?n=3:r===126?n=1:n=2}else if(n===1){if(xd(s)<2)break;const u=kd(s,2);r=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),n=3}else if(n===2){if(xd(s)<8)break;const u=kd(s,8),d=new DataView(u.buffer,u.byteOffset,u.length),f=d.getUint32(0);if(f>Math.pow(2,21)-1){l.enqueue(nm);break}r=f*Math.pow(2,32)+d.getUint32(4),n=3}else{if(xd(s)<r)break;const u=kd(s,r);l.enqueue(fg(i?u:$p.decode(u),t)),n=0}if(r===0||r>e){l.enqueue(nm);break}}}})}const Q7=4;function Is(e){if(e)return Mve(e)}function Mve(e){for(var t in Is.prototype)e[t]=Is.prototype[t];return e}Is.prototype.on=Is.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Is.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this};Is.prototype.off=Is.prototype.removeListener=Is.prototype.removeAllListeners=Is.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+e];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,r=0;r<s.length;r++)if(n=s[r],n===t||n.fn===t){s.splice(r,1);break}return s.length===0&&delete this._callbacks["$"+e],this};Is.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),s=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(s){s=s.slice(0);for(var n=0,r=s.length;n<r;++n)s[n].apply(this,t)}return this};Is.prototype.emitReserved=Is.prototype.emit;Is.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Is.prototype.hasListeners=function(e){return!!this.listeners(e).length};const sf=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,s)=>s(t,0),zn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ove="arraybuffer";function X7(e,...t){return t.reduce((s,n)=>(e.hasOwnProperty(n)&&(s[n]=e[n]),s),{})}const Fve=zn.setTimeout,Nve=zn.clearTimeout;function nf(e,t){t.useNativeTimers?(e.setTimeoutFn=Fve.bind(zn),e.clearTimeoutFn=Nve.bind(zn)):(e.setTimeoutFn=zn.setTimeout.bind(zn),e.clearTimeoutFn=zn.clearTimeout.bind(zn))}const Bve=1.33;function Vve(e){return typeof e=="string"?Hve(e):Math.ceil((e.byteLength||e.size)*Bve)}function Hve(e){let t=0,s=0;for(let n=0,r=e.length;n<r;n++)t=e.charCodeAt(n),t<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(n++,s+=4);return s}function Z7(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qve(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t}function jve(e){let t={},s=e.split("&");for(let n=0,r=s.length;n<r;n++){let i=s[n].split("=");
vendor: 6,278 bytes, line 9
9t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class Uve extends Error{constructor(t,s,n){super(t),this.description=s,this.context=n,this.type="TransportError"}}class pg extends Is{constructor(t){super(),this.writable=!1,nf(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,s,n){return super.emitReserved("error",new Uve(t,s,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const s=fg(t,this.socket.binaryType);this.onPacket(s)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,s={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const s=qve(t);return s.length?"?"+s:""}}class zve extends pg{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const s=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||s()})),this.writable||(n++,this.once("drain",function(){--n||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const s=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Eve(t,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Dve(t,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=Z7()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(t,s)}}let J7=!1;try{J7=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Wve=J7;function Gve(){}class Yve extends zve{constructor(t){if(super(t),typeof location<"u"){const s=location.protocol==="https:";let n=location.port;n||(n=s?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,s){const n=this.request({method:"POST",data:t});n.on("success",s),n.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(s,n)=>{this.onError("xhr poll error",s,n)}),this.pollXhr=t}}class Gr extends Is{constructor(t,s,n){super(),this.createRequest=t,nf(this,n),this._opts=n,this._method=n.method||"GET",this._uri=s,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const s=X7(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(s);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var r;n.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=Gr.requestsCount++,Gr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Gve,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Gr.requestsCount=0;Gr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",K4);else if(typeof addEventListener=="function"){const e="onpagehide"in zn?"pagehide":"unload";addEventListener(e,K4,!1)}}function K4(){for(let e in Gr.requests)Gr.requests.hasOwnProperty(e)&&Gr.requests[e].abort()}const Kve=(function(){const e=e9({xdomain:!1});return e&&e.responseType!==null})();class Qve extends Yve{constructor(t){super(t);const s=t&&t.forceBase64;this.supportsBinary=Kve&&!s}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Gr(e9,this.uri(),t)}}function e9(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Wve))return new XMLHttpRequest}catch{}if(!t)try{return new zn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const t9=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Xve extends pg{get name(){return"websocket"}doOpen(){const t=this.uri(),s=this.opts.protocols,n=t9?{}:X7(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,s,n)}catch(r){return this.emitReserved("error",r)}
vendor: 10,345 bytes, line 9
9this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let s=0;s<t.length;s++){const n=t[s],r=s===t.length-1;dg(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}r&&sf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=Z7()),this.supportsBinary||(s.b64=1),this.createUri(t,s)}}const Sp=zn.WebSocket||zn.MozWebSocket;class Zve extends Xve{createSocket(t,s,n){return t9?new Sp(t,s,n):s?new Sp(t,s):new Sp(t)}doWrite(t,s){this.ws.send(s)}}class Jve extends pg{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const s=Rve(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(s).getReader(),r=Lve();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then(({done:l,value:u})=>{l||(this.onPacket(u),i())}).catch(l=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let s=0;s<t.length;s++){const n=t[s],r=s===t.length-1;this._writer.write(n).then(()=>{r&&sf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const e4e={websocket:Zve,webtransport:Jve,polling:Qve},t4e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,s4e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rm(e){if(e.length>8e3)throw"URI too long";const t=e,s=e.indexOf("["),n=e.indexOf("]");s!=-1&&n!=-1&&(e=e.substring(0,s)+e.substring(s,n).replace(/:/g,";")+e.substring(n,e.length));let r=t4e.exec(e||""),i={},o=14;for(;o--;)i[s4e[o]]=r[o]||"";return s!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=n4e(i,i.path),i.queryKey=r4e(i,i.query),i}function n4e(e,t){const s=/\/{2,9}/g,n=t.replace(s,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function r4e(e,t){const s={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,r,i){r&&(s[r]=i)}),s}const im=typeof addEventListener=="function"&&typeof removeEventListener=="function",zd=[];im&&addEventListener("offline",()=>{zd.forEach(e=>e())},!1);class po extends Is{constructor(t,s){if(super(),this.binaryType=Ove,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(s=t,t=null),t){const n=rm(t);s.hostname=n.host,s.secure=n.protocol==="https"||n.protocol==="wss",s.port=n.port,n.query&&(s.query=n.query)}else s.host&&(s.hostname=rm(s.host).host);nf(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(n=>{const r=n.prototype.name;this.transports.push(r),this._transportsByName[r]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=jve(this.opts.query)),im&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zd.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const s=Object.assign({},this.opts.query);s.EIO=Q7,s.transport=t,this.id&&(s.sid=this.id);const n=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&po.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(t);s.open(),this.setTransport(s)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",po.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=t.data,this._onError(s);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(s+=Vve(r)),n>0&&s>this._maxPayload)return this.writeBuffer.slice(0,n);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,sf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,s,n){return this._sendPacket("message",t,s,n),this}send(t,s,n){return this._sendPacket("message",t,s,n),this}_sendPacket(t,s,n,r){if(typeof s=="function"&&(r=s,s=void 0),typeof n=="function"&&(r=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const i={type:t,data:s,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),t()},n=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(po.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),im&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=zd.indexOf(this._offlineEventListener);n!==-1&&zd.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,s),this.writeBuffer=[],this._prevBufferLen=0}}}po.protocol=Q7;class i4e extends po{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let s=this.createTransport(t),n=!1;po.priorWebsocketSuccess=!1;const r=()=>{n||(s.send([{type:"ping",data:"probe"}]),s.once("packet",h=>{if(!n)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;po.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(s),s.send([{type:"upgrade"}
vendor: 10,528 bytes, line 9
9]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=s.name,this.emitReserved("upgradeError",g)}}))};function i(){n||(n=!0,f(),s.close(),s=null)}const o=h=>{const g=new Error("probe error: "+h);g.transport=s.name,i(),this.emitReserved("upgradeError",g)};function l(){o("transport closed")}function u(){o("socket closed")}function d(h){s&&h.name!==s.name&&i()}const f=()=>{s.removeListener("open",r),s.removeListener("error",o),s.removeListener("close",l),this.off("close",u),this.off("upgrading",d)};s.once("open",r),s.once("error",o),s.once("close",l),this.once("close",u),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||s.open()},200):s.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const s=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&s.push(t[n]);return s}}let o4e=class extends i4e{constructor(t,s={}){const n=typeof t=="object",r=n?{...t}:{...s};(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>e4e[i]).filter(i=>!!i)),super(n?r:t,r)}};function a4e(e,t="",s){let n=e;s=s||typeof location<"u"&&location,e==null&&(e=s.protocol+"//"+s.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=s.protocol+e:e=s.host+e),/^(https?|wss?):\/\//.test(e)||(typeof s<"u"?e=s.protocol+"//"+e:e="https://"+e),n=rm(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(s&&s.port===n.port?"":":"+n.port),n}const l4e=typeof ArrayBuffer=="function",c4e=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s9=Object.prototype.toString,u4e=typeof Blob=="function"||typeof Blob<"u"&&s9.call(Blob)==="[object BlobConstructor]",d4e=typeof File=="function"||typeof File<"u"&&s9.call(File)==="[object FileConstructor]";function hg(e){return l4e&&(e instanceof ArrayBuffer||c4e(e))||u4e&&e instanceof Blob||d4e&&e instanceof File}function Wd(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let s=0,n=e.length;s<n;s++)if(Wd(e[s]))return!0;return!1}if(hg(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Wd(e.toJSON(),!0);for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&Wd(e[s]))return!0;return!1}function f4e(e){const t=[],s=e.data,n=e;return n.data=om(s,t),n.attachments=t.length,{packet:n,buffers:t}}function om(e,t){if(!e)return e;if(hg(e)){const s={_placeholder:!0,num:t.length};return t.push(e),s}else if(Array.isArray(e)){const s=new Array(e.length);for(let n=0;n<e.length;n++)s[n]=om(e[n],t);return s}else if(typeof e=="object"&&!(e instanceof Date)){const s={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s[n]=om(e[n],t));return s}return e}function p4e(e,t){return e.data=am(e.data,t),delete e.attachments,e}function am(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let s=0;s<e.length;s++)e[s]=am(e[s],t);else if(typeof e=="object")for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]=am(e[s],t));return e}const h4e=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Rt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Rt||(Rt={}));class m4e{constructor(t){this.replacer=t}encode(t){return(t.type===Rt.EVENT||t.type===Rt.ACK)&&Wd(t)?this.encodeAsBinary({type:t.type===Rt.EVENT?Rt.BINARY_EVENT:Rt.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let s=""+t.type;return(t.type===Rt.BINARY_EVENT||t.type===Rt.BINARY_ACK)&&(s+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(s+=t.nsp+","),t.id!=null&&(s+=t.id),t.data!=null&&(s+=JSON.stringify(t.data,this.replacer)),s}encodeAsBinary(t){const s=f4e(t),n=this.encodeAsString(s.packet),r=s.buffers;return r.unshift(n),r}}class mg extends Is{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let s;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(t);const n=s.type===Rt.BINARY_EVENT;n||s.type===Rt.BINARY_ACK?(s.type=n?Rt.EVENT:Rt.ACK,this.reconstructor=new g4e(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(hg(t)||t.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(t),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let s=0;const n={type:Number(t.charAt(0))};if(Rt[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Rt.BINARY_EVENT||n.type===Rt.BINARY_ACK){const i=s+1;for(;t.charAt(++s)!=="-"&&s!=t.length;);const o=t.substring(i,s);if(o!=Number(o)||t.charAt(s)!=="-")throw new Error("Illegal attachments");const l=Number(o);if(!y4e(l)||l<0)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=l}if(t.charAt(s+1)==="/"){const i=s+1;for(;++s&&!(t.charAt(s)===","||s===t.length););n.nsp=t.substring(i,s)}else n.nsp="/";const r=t.charAt(s+1);if(r!==""&&Number(r)==r){const i=s+1;for(;++s;){const o=t.charAt(s);if(o==null||Number(o)!=o){--s;break}if(s===t.length)break}n.id=Number(t.substring(i,s+1))}if(t.charAt(++s)){const i=this.tryParse(t.substr(s));if(mg.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,s){switch(t){case Rt.CONNECT:return Q4(s);case Rt.DISCONNECT:return s===void 0;case Rt.CONNECT_ERROR:return typeof s=="string"||Q4(s);case Rt.EVENT:case Rt.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&h4e.indexOf(s[0])===-1);case Rt.ACK:case Rt.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class g4e{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const s=p4e(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const y4e=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Q4(e){return Object.prototype.toString.call(e)==="[object Object]"}const _4e=Object.freeze(Object.defineProperty({__proto__:null,Decoder:mg,Encoder:m4e,get PacketType(){return Rt}},Symbol.toStringTag,{value:"Module"}));function cr(e,t,s){return e.on(t,s),function(){e.off(t,s)}}const v4e=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class n9 extends Is{constructor(t,s,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=s,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[cr(t,"open",this.onopen.bind(this)),cr(t,"packet",this.onpacket.bind(this)),cr(t,"error",this.onerror.bind(this)),cr(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...s){var n,r,i;if(v4e.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(s.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const o={type:Rt.EVENT,data:s};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const f=this.ids++,h=s.pop();this._registerAckCallback(f,h),o.id=f}const l=(r=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||r===void 0?void 0:r.writable,u=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!l||(u?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,s){var n;const r=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(r===void 0){this.acks[t]=s;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);s.call(this,new Error("operation has timed out"))},r),o=(...l)=>{this.io.clearTimeoutFn(i),s.apply(this,l)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...s){return new Promise((n,r)=>{const i=(o,l)=>o?r(o):n(l);i.withError=!0,s.push(i),this.emit(t,...s)})}_addToQueue(t){let s;typeof t[t.length-1]=="function"&&(s=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...i)=>(this._queue[0],r!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(r)):(this._queue.shift(),s&&s(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!t||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Rt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,s),this._clearAcks()}
vendor: 7,089 bytes, line 9
9_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Rt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Rt.EVENT:case Rt.BINARY_EVENT:this.onevent(t);break;case Rt.ACK:case Rt.BINARY_ACK:this.onack(t);break;case Rt.DISCONNECT:this.ondisconnect();break;case Rt.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const s=t.data||[];t.id!=null&&s.push(this.ack(t.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const n of s)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const s=this;let n=!1;return function(...r){n||(n=!0,s.packet({type:Rt.ACK,id:t,data:r}))}}onack(t){const s=this.acks[t.id];typeof s=="function"&&(delete this.acks[t.id],s.withError&&t.data.unshift(null),s.apply(this,t.data))}onconnect(t,s){this.id=t,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Rt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const s=this._anyListeners;for(let n=0;n<s.length;n++)if(t===s[n])return s.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const s=this._anyOutgoingListeners;for(let n=0;n<s.length;n++)if(t===s[n])return s.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const n of s)n.apply(this,t.data)}}}function Zl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-s:e+s}return Math.min(e,this.max)|0};Zl.prototype.reset=function(){this.attempts=0};Zl.prototype.setMin=function(e){this.ms=e};Zl.prototype.setMax=function(e){this.max=e};Zl.prototype.setJitter=function(e){this.jitter=e};class lm extends Is{constructor(t,s){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(s=t,t=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,nf(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((n=s.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Zl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=t;const r=s.parser||_4e;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var s;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(s=this.backoff)===null||s===void 0||s.setMin(t),this)}randomizationFactor(t){var s;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(s=this.backoff)===null||s===void 0||s.setJitter(t),this)}reconnectionDelayMax(t){var s;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(s=this.backoff)===null||s===void 0||s.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new o4e(this.uri,this.opts);const s=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=cr(s,"open",function(){n.onopen(),t&&t()}),i=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},o=cr(s,"error",i);if(this._timeout!==!1){const l=this._timeout,u=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),s.close()},l);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(cr(t,"ping",this.onping.bind(this)),cr(t,"data",this.ondata.bind(this)),cr(t,"error",this.onerror.bind(this)),cr(t,"close",this.onclose.bind(this)),cr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(s){this.onclose("parse error",s)}}ondecoded(t){sf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,s){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new n9(this,t,s),this.nsps[t]=n),n}_destroy(t){const s=Object.keys(this.nsps);for(const n of s)if(this.nsps[n].active)return;this._close()}_packet(t){const s=this.encoder.encode(t);for(let n=0;n<s.length;n++)this.engine.write(s[n],t.options)}
9cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,s){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},s);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bc={};function Gd(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const s=a4e(e,t.path||"/socket.io"),n=s.source,r=s.id,i=s.path,o=bc[r]&&i in bc[r].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let u;return l?u=new lm(n,t):(bc[r]||(bc[r]=new lm(n,t)),u=bc[r]),s.query&&!t.query&&(t.query=s.queryKey),u.socket(s.path,t)}Object.assign(Gd,{Manager:lm,Socket:n9,io:Gd,connect:Gd});const b4e=30*1e3,x4e=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","heic","heif"]);let Tr=null;function X4(e){const t=e.chat_conversation_id??e.conversation_id??e.conversationId;if(t)return String(t);const s=e.message;if(s&&typeof s=="object"){const n=s;return String(n.chat_conversation_id??n.conversation_id??"")}return""}function Z4(e){return e&&typeof e=="object"?e:null}function J4(e){return(e??"").replace(/\r\n?/g,` 10`).trim()}function eb(e){return`${e.type}:${e.name}:${e.extension}`}function k4e(e,t){if(!e.id.startsWith("temp-")||!e.isMine||!t.isMine||J4(e.text)!==J4(t.text)||e.attachments.length!==t.attachments.length)return!1;const s=e.attachments.map(eb),n=t.attachments.map(eb);if(s.some((o,l)=>o!==n[l]))return!1;const r=new Date(e.createdAt).getTime(),i=new Date(t.createdAt).getTime();return!Number.isFinite(r)||!Number.isFinite(i)?!1:Math.abs(i-r)<=b4e}function Ap(e,t){const s=[...e];return t.forEach(n=>{const r=s.findIndex(o=>o.id===n.id);if(r>=0){s.splice(r,1,n);return}const i=s.findIndex(o=>k4e(o,n));if(i>=0){s.splice(i,1,n);return}s.push(n)}),s.sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function w4e(e){const t=e.originalName||"FILE";let s=e.url;const n=(t.split(".").pop()??"").toLowerCase(),i=Ne().sessionToken;if(s&&!s.startsWith("blob:")&&!s.startsWith("data:")&&i){const o=s.includes("?")?"&":"?";s=`${s}${o}btlrsid=${i}`}return{url:s,name:t,type:x4e.has(n)||e.mimeType.startsWith("image/")?"image":"file",extension:n.toUpperCase()||"FILE"}}function tb(e,t={}){return{id:e.chatMessageId,isMine:t.forceMine??e.isMyMessage,text:e.body,attachments:e.attachments.map(w4e),createdAt:e.createdAt,isRead:!!e.readAt,isFailed:!1}}const r9=Ke("houseConversationChat",{state:()=>({conversationId:"",userId:"",recipient:null,messages:[],pendingUrls:[],isLoading:!1,hasLoaded:!1,error:null,isRefreshing:!1,isSocketConnected:!1,requestId:0}),getters:{title:e=>e.recipient?.shortName||e.recipient?.fullName||""},actions:{async openByConversation(e){this.clear();const t=++this.requestId;this.conversationId=e,await this.loadInitial(t)},async openByUser(e){this.clear();const t=++this.requestId;this.userId=e,this.isLoading=!0,this.hasLoaded=!1;const n=await ue().createHouseChatConversation(e);if(t===this.requestId){if(!n.ok){this.error=n.error,this.isLoading=!1,this.hasLoaded=!0;return}this.conversationId=n.data.conversationId,await this.loadInitial(t)}},async loadInitial(e){const t=e??this.requestId;if(!this.conversationId){this.isLoading=!1,this.hasLoaded=!0;return}this.isLoading=!0,this.hasLoaded=!1,this.error=null,this.messages=[],await this.fetchMessages({merge:!1,requestId:t}),t===this.requestId&&(await this.markRead(t),t===this.requestId&&(this.connectSocket(t),this.isLoading=!1,this.hasLoaded=!0))},async fetchMessages(e={}){const t=e.requestId??this.requestId;if(!this.conversationId||this.isRefreshing||t!==this.requestId)return;this.isRefreshing=!0;const n=await ue().fetchHouseChatMessages(this.conversationId);if(t!==this.requestId){this.isRefreshing=!1;return}if(n.ok){this.recipient=n.data.recipient;const r=n.data.messages.map(i=>tb(i));this.messages=e.merge?Ap(this.messages,r):r.sort((i,o)=>new Date(i.createdAt).getTime()-new Date(o.createdAt).getTime()),this.error=null}else this.error=n.error;this.isRefreshing=!1},async markRead(e){const t=e??this.requestId;if(!this.conversationId||t!==this.requestId)return;const n=await ue().markHouseChatMessagesRead(this.conversationId);t===this.requestId&&n.ok&&(this.messages=this.messages.map(r=>r.isMine?r:{...r,isRead:!0}))},connectSocket(e){const t=e??this.requestId,s=Ne(),{public:{apiBaseUrl:n}}=kn();!this.conversationId||!s.sessionToken||t!==this.requestId||(this.disconnectSocket(),Tr=Gd(n,{autoConnect:!1,reconnection:!1,transports:["websocket"],auth:{btlrsid:s.sessionToken}}),Tr.on("connect",()=>{if(t!==this.requestId){Tr?.disconnect();return}this.isSocketConnected=!0}),Tr.on("disconnect",()=>{this.isSocketConnected=!1}),Tr.on("chat:message",r=>{const i=Z4(r);t===this.requestId&&i&&X4(i)===this.conversationId&&this.fetchMessages({merge:!0,requestId:t}).then(()=>this.markRead(t))}),Tr.on("chat:read",r=>{const i=Z4(r);t===this.requestId&&i&&X4(i)===this.conversationId&&this.fetchMessages({merge:!0,requestId:t})}),Tr.connect())},disconnectSocket(){Tr?.removeAllListeners(),Tr?.disconnect(),Tr=null,this.isSocketConnected=!1},addPendingUrl(e){this.pendingUrls.push(e)}
10,clearPendingUrls(){this.pendingUrls.forEach(e=>URL.revokeObjectURL(e)),this.pendingUrls=[]},addMessage(e){this.messages=Ap(this.messages,[e])},async sendMessage(e,t,s){if(!this.conversationId){const i={message:"Conversation id is required"};return this.error=i,this.messages=this.messages.filter(o=>o.id!==e),this.clearPendingUrls(),{ok:!1,error:i}}const r=await ue().sendHouseChatMessage(this.conversationId,t,s);return r.ok?(r.data.message&&(this.messages=Ap(this.messages,[tb(r.data.message,{forceMine:!0})])),this.clearPendingUrls(),{ok:!0,data:!0}):(this.error=r.error,this.messages=this.messages.map(i=>i.id===e?{...i,isFailed:!0}:i),this.clearPendingUrls(),r)},clear(){this.requestId+=1,this.disconnectSocket(),this.clearPendingUrls(),this.conversationId="",this.userId="",this.recipient=null,this.messages=[],this.isLoading=!1,this.hasLoaded=!1,this.error=null,this.isRefreshing=!1}}}),C4e={class:"flex h-full flex-col bg-white"},$4e={key:0,class:"space-y-6 py-6"},S4e={key:1,class:"flex h-full flex-col items-center justify-center text-center"},A4e={class:"text-16 text-black"},I4e={class:"mt-2 text-13 text-grey-40"},T4e={key:2,class:"flex h-full flex-col items-center justify-center text-center"},P4e={class:"mt-6 whitespace-pre-line text-16 text-black"},D4e={class:"flex justify-center pb-2 pt-0"},E4e={class:"rounded-full bg-[#F7F8FC] px-3 py-2 text-13 text-[#565F8F]"},L4e={key:0,class:"mb-2 text-13 text-grey-40"},R4e={key:0,class:"whitespace-pre-line break-words text-13 text-black"},M4e=["onClick"],O4e={key:1,class:"flex items-center gap-3 rounded-[12px] bg-grey-90 p-3"},F4e={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-paleLime-primary"},N4e={class:"min-w-0 flex-1"},B4e={class:"block truncate text-13-bold text-black"},V4e={class:"block text-13 text-grey-40"},H4e={class:"mt-2 flex items-center justify-end gap-1 text-13 text-grey-40"},q4e={key:0},j4e={key:1,class:"mt-2 text-11 text-red-50"},U4e={class:"shrink-0 bg-white px-6 pb-6"},z4e={class:"flex min-h-14 items-end gap-2 rounded-[12px] bg-[#F7FAF9]"},W4e=["aria-label"],G4e=["placeholder"],Y4e=["aria-label","disabled"],K4e=G({__name:"HouseConversationChatPanel",setup(e){const t=st(),s=r9(),{t:n}=be(),{$showSnackbar:r}=Te(),i=X(""),o=X(null),l=X(null),u=X(null),d=A(()=>s.messages.length>0),f=A(()=>s.isLoading||!s.hasLoaded),h=A(()=>i.value.trim().length>0),g=A(()=>s.recipient?.shortName||s.recipient?.fullName||""),m=A(()=>{const L=new Map;return[...s.messages].sort((D,R)=>new Date(D.createdAt).getTime()-new Date(R.createdAt).getTime()).forEach(D=>{const R=new Date(D.createdAt),F=R.toISOString().split("T")[0]??"",N=v(R),z=L.get(F)??{label:N,messages:[]};z.messages.push(D),L.set(F,z)}),Array.from(L.entries()).map(([D,R])=>({date:D,label:R.label,messages:R.messages}))});je(()=>{const L=_(t.query.conversation_id),D=_(t.query.user_id);L?s.openByConversation(L):D?s.openByUser(D):s.clear()}),Se(()=>s.messages.length,()=>lt(x)),Se(()=>s.hasLoaded,()=>lt(x)),Tt(()=>{s.clear()});function _(L){return Array.isArray(L)?String(L[0]??""):typeof L=="string"?L:""}function v(L){return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}).format(L)}function k(L){const D=new Date(L);return Number.isNaN(D.getTime())?"":new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(D)}function x(){const L=o.value;L&&(L.scrollTop=L.scrollHeight)}function C(){lt(()=>{const L=u.value;L&&(L.style.height="0px",L.style.height=`${Math.min(L.scrollHeight,160)}px`)})}function w(L){L.shiftKey||L.ctrlKey||L.altKey||L.metaKey||L.isComposing||(L.preventDefault(),h.value&&$())}async function $(){const L=i.value.trim();if(!L){i.value="";return}const D=`temp-${Date.now()}`;s.addMessage({id:D,isMine:!0,text:L,attachments:[],createdAt:new Date().toISOString(),isRead:!1,isFailed:!1}),i.value="",C(),await lt(),x();const R=await s.sendMessage(D,L);R.ok||r(R.error.message??n("house.conversationChat.sendError"))}function S(){l.value?.click()}async function I(L){const D=L.target,R=D.files?.item(0);if(!R)return;const F=R.type.startsWith("image/")||Eu(R);if(!F&&R.size>15*1024*1024){r(n("drawerClaimChat.tooLargeFile")),D.value="";return}const N=F?await ma(R):R,z=URL.createObjectURL(N),me=`temp-${Date.now()}`,ge={url:z,name:N.name,type:F?"image":"file",extension:(N.name.split(".").pop()??"FILE").toUpperCase(),file:N};s.addPendingUrl(z),s.addMessage({id:me,isMine:!0,text:"",attachments:[ge],createdAt:new Date().toISOString(),isRead:!1,isFailed:!1}),D.value="",await lt(),x();const fe=await s.sendMessage(me,void 0,N);fe.ok||r(fe.error.message??n("house.conversationChat.sendError"))}function P(L){if(L.file){window.open(URL.createObjectURL(L.file),"_blank");return}window.open(L.url,"_blank","noopener,noreferrer")}return(L,D)=>{const R=q7,F=ni,N=tf,z=j7,me=U7,ge=V0,fe=X0,te=Z0;return p(),y("div",C4e,[c("div",{ref_key:"scrollContainer",ref:o,class:"min-h-0 flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},[a(f)?(p(),y("div",$4e,[D[1]||(D[1]=c("div",{class:"flex justify-center"},[c("div",{class:"h-8 w-24 rounded-full bg-[#F7F8FC] animate-pulse"})],-1)),(p(),y(j,null,le(5,V=>c("div",{key:`house-chat-skeleton-${V}`,class:"space-y-2"},[c("div",{class:oe(["h-4 w-20 rounded bg-grey-80 animate-pulse",V%2===0?"ml-auto":""])},null,2),c("div",{class:oe(["h-20 rounded-[12px] animate-pulse",V%2===0?"ml-auto w-[62%] bg-grey-90":"w-[68%] border border-grey-80 bg-white"])},null,2)])),64))])):a(s).error&&!a(d)?(p(),y("div",S4e,[c("h3",A4e,b(a(n)("house.conversationChat.loadError")),1),c("p",I4e,b(a(n)("house.conversationChat.tryLater")),1)])):a(d)?(p(!0),y(j,{key:3},le(a(m),V=>(p(),y("div",{key:V.date,class:"space-y-6 pb-6"},[c("div",D4e,[c("span",E4e,b(V.label),1)]),(p(!0),y(j,null,le(V.messages,pe=>(p(),y("div",{key:pe.id,class:oe(["flex flex-col",pe.isMine?"items-end":"items-start"])}
10,[!pe.isMine&&a(g)?(p(),y("span",L4e,b(a(g)),1)):E("",!0),c("div",{class:oe(["max-w-[78%] rounded-[12px] px-4 py-3",pe.isMine?"bg-[#F7FAF9]":"border border-[#D8DEDC] bg-white"])},[pe.text?(p(),y("p",R4e,b(pe.text),1)):E("",!0),(p(!0),y(j,null,le(pe.attachments,(ye,ne)=>(p(),y("div",{key:`${pe.id}-${ne}`,class:oe({"mt-3":pe.text||ne>0})},[c("button",{type:"button",class:"block w-full text-left",onClick:ve=>P(ye)},[ye.type==="image"?(p(),K(F,{key:0,src:ye.url,alt:ye.name,class:"max-h-[180px] w-full rounded-[12px] object-cover"},null,8,["src","alt"])):(p(),y("span",O4e,[c("span",F4e,[T(N,{class:"[&>path]:fill-white"})]),c("span",N4e,[c("span",B4e,b(ye.name),1),c("span",V4e,b(ye.extension),1)])]))],8,M4e)],2))),128)),c("div",H4e,[pe.isMine?(p(),y("span",q4e,[pe.isRead?(p(),K(z,{key:0,class:"text-paleLime-primary","aria-hidden":"true"})):(p(),K(me,{key:1,"aria-hidden":"true"}))])):E("",!0),c("span",null,b(k(pe.createdAt)),1)]),pe.isFailed?(p(),y("p",j4e,b(a(n)("house.conversationChat.sendError")),1)):E("",!0)],2)],2))),128))]))),128)):(p(),y("div",T4e,[T(R),c("h3",P4e,b(a(n)("house.conversationChat.empty")),1)]))],512),c("div",U4e,[c("div",z4e,[c("button",{type:"button",class:"flex h-14 w-14 shrink-0 items-center justify-center","aria-label":a(n)("chat.attachFile"),onClick:S},[T(ge,{class:"[&>path]:fill-grey-40"})],8,W4e),pn(c("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":D[0]||(D[0]=V=>it(i)?i.value=V:null),rows:"1",placeholder:a(n)("chat.placeholder"),class:"min-h-14 flex-1 resize-none overflow-hidden bg-transparent py-4 text-16 leading-6 text-black outline-none placeholder:text-grey-40",onInput:C,onKeydown:Qr(w,["enter"])},null,40,G4e),[[jr,a(i)]]),c("button",{type:"button",class:"flex h-14 w-14 shrink-0 items-center justify-center","aria-label":a(n)("chat.send"),disabled:!a(h),onClick:$},[c("span",{class:oe(["flex h-10 w-10 items-center justify-center rounded-full transition-colors",a(h)?"bg-paleLime-primary":"bg-transparent"])},[a(h)?(p(),K(fe,{key:0,"aria-hidden":"true"})):(p(),K(te,{key:1,"aria-hidden":"true"}))],2)],8,Y4e)]),c("input",{ref_key:"fileInputRef",ref:l,type:"file",accept:"*/*",class:"hidden",onChange:I},null,544)])])}}}),Q4e=Object.assign(K4e,{__name:"HouseConversationChatPanel"}),rf=Ke("drawerClaimAdditionalWorks",{state:()=>({isLoading:!1,isAcceptLoading:!1,isDeclineLoading:!1,error:null,claimId:"",listId:"",premisesId:"",card:null,loadSeq:0}),getters:{items:e=>e.card?.items??[],baseAmount:e=>e.card?.baseCost??0,additionalWorksAmount:e=>e.card?.listCost??0,totalAmount:e=>e.card?.totalCost??0,showSubmitButton:e=>!!e.card?.showSubmitButton},actions:{setContext(e,t,s){const n=this.claimId===e&&this.listId===t&&this.premisesId===s;this.claimId=e,this.listId=t,this.premisesId=s,this.error=null,n||(this.loadSeq+=1,this.isLoading=!1,this.card=null)},async loadCard(){if(!this.claimId||!this.listId||!this.premisesId){this.isLoading=!1,this.card=null;return}const e=++this.loadSeq;this.isLoading=!0,this.error=null;const t=ue();try{const s=await t.fetchClaimAdditionalWorkCard(this.claimId,this.listId,this.premisesId);if(e!==this.loadSeq)return;s.ok?this.card=s.data:(this.error=s.error,this.card=null)}finally{e===this.loadSeq&&(this.isLoading=!1)}},async accept(){this.isAcceptLoading=!0,this.error=null;const t=await ue().approveClaimAdditionalWork(this.claimId,this.listId,this.premisesId);return t.ok||(this.error=t.error),this.isAcceptLoading=!1,t},async decline(){this.isDeclineLoading=!0,this.error=null;const t=await ue().declineClaimAdditionalWork(this.claimId,this.listId,this.premisesId);return t.ok||(this.error=t.error),this.isDeclineLoading=!1,t}}}),ri=Ke("drawerClaimInfo",{state:()=>({isLoading:!0,error:null,selectedClaimId:null,selectedPremisesId:null,claim:null}),getters:{isResult:e=>e.claim!=null?e.claim.resultComment.length>0||e.claim.resultFilesAfter.length>0||e.claim.resultFilesBefore.length>0:!1},actions:{formatCreatedAt(){if(!this.claim?.createdAt)return"";const e=new Date(this.claim?.createdAt);if(Number.isNaN(e.getTime()))return"";const t=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"long"}).format(e),s=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(e);return`${t}, ${s}`},startLoad(){},setClaimId(e){this.selectedClaimId=e,this.loadClaim()},setClaimContext(e,t=null){this.selectedClaimId=e,this.selectedPremisesId=t,this.loadClaim()},async loadClaim(){const e=this.selectedClaimId;if(!e)return;const t=Ne(),s=Oe(),n=this.selectedPremisesId??s.residence?.premisesId??"",r=t.sessionToken;if(!t.isAuthorized||n.length===0)return;this.isLoading=!0,this.error=null;const o=await ue().fetchClaimInfo(e,n);e!==this.selectedClaimId||n!==(this.selectedPremisesId??s.residence?.premisesId??"")||r!==t.sessionToken||(o.ok?this.claim=o.data.claim:this.error=o.error,this.isLoading=!1)}}}),Nu=Ke("cardSecureStore",{state:()=>({isLoading:!1,card:null}),actions:{}}),of=Ke("drawerClaimArbitration",{state:()=>({arbitrationInfo:null}),actions:{updateArbitrationInfo(e){this.arbitrationInfo=e?{...e}:null}}}),af=Ke("drawerClaimCancel",{state:()=>({isLoading:!1,isSubmitting:!1,error:null,claimId:"",premisesId:"",reasons:[],selectedReason:"",commentValue:""}),getters:{finalReason:e=>e.commentValue.trim()||e.selectedReason},actions:{setContext(e,t){this.claimId=e,this.premisesId=t,this.error=null,this.reasons=[],this.selectedReason="",this.commentValue=""},updateCommentValue(e){this.commentValue=e;const t=e.trim();this.selectedReason=this.reasons.includes(t)?t:""},toggleReason(e){if(this.selectedReason===e){this.selectedReason="",this.commentValue="";return}this.selectedReason=e,this.commentValue=e},async loadReasons(){if(!this.premisesId){this.reasons=[];return}this.isLoading=!0,this.error=null,this.reasons=[];const t=await ue().fetchClaimCancelReasons(this.premisesId);t.ok?this.reasons=t.data.reasons:this.error=t.error,this.isLoading=!1},async cancelClaim(){this.isSubmitting=!0,this.error=null;const t=await ue().cancelClaim(this.claimId,this.premisesId,this.commentValue.trim());return t.ok||(this.error=t.error),this.isSubmitting=!1,t}}}),i9=globalThis.setInterval,X4e=5e3,Z4e=120*1e3;let wd=null,Cd=!1;
10const J4e=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","heic","heif"]);function sb(e){return`${e.type}:${e.name}:${e.extension}`}function ebe(e){return e.id.startsWith("temp-")}function nb(e){return(e??"").replace(/\r\n?/g,` 11`).trim()}function tbe(e,t){if(!ebe(e)||!e.isMine||!t.isMine)return!1;const s=nb(e.text),n=nb(t.text);if(s!==n||e.attachments.length!==t.attachments.length)return!1;const r=e.attachments.map(sb),i=t.attachments.map(sb);if(r.some((u,d)=>u!==i[d]))return!1;const o=new Date(e.createdAt).getTime(),l=new Date(t.createdAt).getTime();return!Number.isFinite(o)||!Number.isFinite(l)?!1:Math.abs(l-o)<=Z4e}function sbe(e,t){const s=[...e];return t.forEach(n=>{const r=s.findIndex(o=>o.id===n.id);if(r>=0){s.splice(r,1,n);return}const i=s.findIndex(o=>tbe(o,n));if(i>=0){s.splice(i,1,n);return}s.push(n)}),s}function nbe(e){const t=e.fileName??"";let s=e.url??"";const n=(t.split(".").pop()??"").toLowerCase(),r=n.toUpperCase()||"FILE",i=J4e.has(n)?"image":"file",l=Ne().sessionToken;if(s&&!s.startsWith("blob:")&&!s.startsWith("data:")&&l){const u=s.includes("?")?"&":"?";s=`${s}${u}btlrsid=${l}`}return{url:s,name:t,extension:r,type:i}}function rbe(e){return{id:e.id,isMine:e.isMyMessage,text:e.text,attachments:e.attachments.map(nbe),createdAt:e.createdAt,isRead:e.maskedAsRead}}const fu=Ke("drawerClaimChat",{state:()=>({hasLoaded:!1,isLoading:!1,error:null,claimId:null,selectedPremisesId:null,title:"",number:"",messages:[],pendingUrls:[],readMarkedKey:null,readMarkingKey:null}),actions:{setClaimId(e){this.claimId=e},setClaimContext(e,t=null){this.claimId=e,this.selectedPremisesId=t},addMessage(e){this.messages.push(e)},addPendingUrl(e){this.pendingUrls.push(e)},clearPendingUrls(){this.pendingUrls.forEach(e=>URL.revokeObjectURL(e)),this.pendingUrls=[]},async fetchMessages(e){const t=e?.claimId??this.claimId,s=e?.merge??!1,n=e?.showLoading??!1;if(!t){n&&(this.isLoading=!1,this.hasLoaded=!0);return}const r=Ne(),i=Oe(),o=this.selectedPremisesId??i.residence?.premisesId??null;if(!r.isAuthorized){n&&(this.isLoading=!1,this.hasLoaded=!0);return}if(!o){n&&(this.isLoading=i.isLoading,this.hasLoaded=!i.isLoading);return}n&&(this.isLoading=!0,this.hasLoaded=!1,this.messages=[]),this.error=null;const u=await ue().fetchClaimChatMessages(t,o);if(u.ok){this.title=u.data.title,this.number=u.data.number;const d=u.data.messages.map(rbe);this.messages=s?sbe(this.messages,d):d}else this.error=u.error;n&&(this.isLoading=!1,this.hasLoaded=!0),this.claimId=t},async loadMessages(e){await this.fetchMessages({claimId:e,showLoading:!0})},async markMessagesRead(e){const t=e??this.claimId;if(!t)return null;const s=Ne(),n=Oe(),r=this.selectedPremisesId??n.residence?.premisesId??null;if(!s.isAuthorized||!r)return null;const i=`${t}:${r}`;if(this.readMarkedKey===i||this.readMarkingKey===i)return null;this.readMarkingKey=i;try{const l=await ue().markClaimChatMessagesRead(t,r);return l.ok&&(this.readMarkedKey=i),l}finally{this.readMarkingKey===i&&(this.readMarkingKey=null)}},async syncMessages(){if(!(Cd||this.isLoading)){Cd=!0;try{await this.fetchMessages({merge:!0})}finally{Cd=!1}}},startPolling(e){e!==void 0&&(this.claimId=e),this.stopPolling(),this.claimId&&(wd=i9(()=>{this.syncMessages()},X4e))},stopPolling(){wd&&(clearInterval(wd),wd=null),Cd=!1},async sendMessage(e,t,s){if(!this.claimId){const u={message:"Claim id is required"};return this.error=u,this.messages=this.messages.filter(d=>d.id!==e),this.clearPendingUrls(),{ok:!1,error:u}}const n=Ne(),r=Oe(),i=this.selectedPremisesId??r.residence?.premisesId??null;if(!n.isAuthorized||!i){const u={message:n.isAuthorized?"Premises id is required":"User is not authorized"};return this.error=u,this.messages=this.messages.filter(d=>d.id!==e),this.clearPendingUrls(),{ok:!1,error:u}}this.error=null;const l=await ue().sendClaimChatMessage(this.claimId,i,t,s);return l.ok?this.clearPendingUrls():(this.error=l.error,this.messages=this.messages.filter(u=>u.id!==e),this.clearPendingUrls()),l}}}),lf=Ke("drawerClaimProgress",{state:()=>({isLoading:!1,error:null,steps:[]}),actions:{startLoad(){}}}),cf=Ke("drawerClaimRateDone",{state:()=>({isLoading:!1,isSuccess:null,newClaimId:""}),actions:{startLoad(){}}}),ibe=Ke("faq",{state:()=>({data:null,items:[],error:null,isLoading:!1}),actions:{async fetchFaq(){this.isLoading=!0;const t=await ue().fetchFaq();t.ok?(this.data=t.data,this.items=t.data.elements??[],this.error=null):(this.data=null,this.items=[],this.error=t.error),this.isLoading=!1}}}),Jl=Ke("general",{state:()=>({error:null,isLoading:!1,notificationsBadgeCount:0}),getters:{},actions:{async loadInfo(){this.isLoading=!0;const e=Ne(),t=Oe();e.isAuthorized?(t.isLoaded||await t.fetchUserInfoAndAddresses(),this.fetchMainInfo()):this.fetchMainInfo()},async reloadAll(){this.isLoading=!0,this.loadInfo()},async fetchMainInfo(){Ne().isAuthorized||this.fetchFaq(),this.loadBadges()},async loadBadges(){const e=ue();try{const t=Ne(),s=t.sessionToken;if(t.isAuthorized){const n=await e.fetchBadges();if(!t.isAuthorized||t.sessionToken!==s){this.notificationsBadgeCount=0;return}n.ok?this.notificationsBadgeCount=n.data.count||0:this.notificationsBadgeCount=0}else this.notificationsBadgeCount=0}catch{this.notificationsBadgeCount=0}},clearNotificationsBadge(){this.notificationsBadgeCount=0},async fetchFaq(){await ibe().fetchFaq()}}}),$d=new Map;
11function obe(e,t,s){return`${e??""}:${t}:${s}`}const Bu=Ke("generalBadges",{state:()=>({claims:0,posts:0,error:null,isLoading:!1,requestId:0}),actions:{async load(){const e=Ne(),t=Oe(),s=t.residence?.premisesId,n=t.residence?.residentId;if(!e.isAuthorized||!s||!n){this.clear();return}const r=e.sessionToken,i=obe(r,s,n),o=$d.get(i);if(o){await o;return}const l=++this.requestId,u=ue();this.isLoading=!0,this.error=null;const d=u.fetchGeneralBadges(s,n).then(f=>{l!==this.requestId||!e.isAuthorized||e.sessionToken!==r||(f.ok?(this.claims=f.data.claims,this.posts=f.data.posts,this.error=null):this.error=f.error,this.isLoading=!1)}).finally(()=>{$d.get(i)===d&&$d.delete(i)});$d.set(i,d),await d},clearClaims(){this.claims=0},clearPosts(){this.posts=0},clear(){this.requestId+=1,this.claims=0,this.posts=0,this.error=null,this.isLoading=!1}}}),uf=Ke("drawerClaimRate",{state:()=>({isLoading:!1,isSuccess:null,error:null,isEnabled:!1,claimId:"",premisesId:"",rating:0,commentValue:""}),actions:{startLoad(){},async refreshRelatedData(){const e=Jl(),t=Bu();await Promise.allSettled([e.loadBadges(),t.load()])},updateCommentValue(e){this.commentValue=e,this.isEnabled=e.length>0},setRating(e){this.rating=e},setClaimContext(e,t){this.claimId=e,this.premisesId=t},async sendSuccess(){const e=Oe(),t=this.premisesId||e.residence?.premisesId||"",s=this.claimId;this.isLoading=!0;const r=await ue().acceptClaimWork(s,t,this.commentValue,this.rating);return this.isLoading=!1,r.ok&&await this.refreshRelatedData(),r},async sendDecline(){const e=Oe(),t=this.premisesId||e.residence?.premisesId||"",s=this.claimId;this.isLoading=!0;const r=await ue().declineClaimWork(s,t,this.commentValue,this.rating);return this.isLoading=!1,r.ok&&await this.refreshRelatedData(),r}}}),abe="image/",lbe=new Set(["jpg","jpeg","png","gif","webp","bmp","svg","heic","heif"]);function rb(e,t){return e.filter(s=>s.url).map(s=>{const n=s.name??"",r=cbe(s.url,t),i=o9(s),o=ube(n,s.mimeType);return{url:r,name:n,extension:o,isImage:i}})}function ib(e,t){return e.some(s=>!!s.url&&o9(s)===t)}function cbe(e,t){if(!e||!t||e.startsWith("blob:")||e.startsWith("data:"))return e;const s=e.indexOf("#"),n=s>=0?e.slice(s):"",r=s>=0?e.slice(0,s):e,i=r.indexOf("?"),o=i>=0?r.slice(0,i):r,l=i>=0?r.slice(i+1):"",u=new URLSearchParams(l);return u.set("btlrsid",t),`${o}?${u.toString()}${n}`}function o9(e){if(e.mimeType&&e.mimeType.startsWith(abe))return!0;const t=(e.name.split(".").pop()??"").toLowerCase();return lbe.has(t)}function ube(e,t){const s=(e.split(".").pop()??"").toUpperCase();return s||(t&&t.includes("/")?t.split("/").pop()?.toUpperCase()??"FILE":"FILE")}const df=Ke("draweClaimResult",{state:()=>({isLoading:!1,isSuccess:null,claim:null,selectedFileType:"photos"}),getters:{hasFilesBefore(e){return(e.claim?.resultFilesBefore??[]).length>0},hasFilesAfter(e){return(e.claim?.resultFilesAfter??[]).length>0},hasPhotos(e){return ib([...e.claim?.resultFilesBefore??[],...e.claim?.resultFilesAfter??[]],!0)},hasDocuments(e){return ib([...e.claim?.resultFilesBefore??[],...e.claim?.resultFilesAfter??[]],!1)},filteredFilesBefore(e){const t=Ne(),s=rb(e.claim?.resultFilesBefore??[],t.sessionToken);return e.selectedFileType==="photos"?s.filter(n=>n.isImage):s.filter(n=>!n.isImage)},filteredFilesAfter(e){const t=Ne(),s=rb(e.claim?.resultFilesAfter??[],t.sessionToken);return e.selectedFileType==="photos"?s.filter(n=>n.isImage):s.filter(n=>!n.isImage)}},actions:{startLoad(){},updateClaim(e){this.claim=e},setSelectedFileType(e){this.selectedFileType=e}}}),ff=Ke("claimsOverlayItemStore",{state:()=>({claimId:"",premisesId:"",isPay:!1,claim:null,error:null,isLoading:!1,isActionLoading:!1,claimPanelStack:[],view:"summary",decisionValue:null,rating:0,commentValue:"",loadSeq:0}),getters:{hasClaimPanels:e=>e.claimPanelStack.length>0,currentClaimPanel:e=>e.claimPanelStack[e.claimPanelStack.length-1]??null,isClaimInfoPanel(){return this.currentClaimPanel==="claim-info"},isDecisionStep:e=>e.view==="decision",isCardAddStep:e=>e.view==="card-add",isCardAddSecureStep:e=>e.view==="card-add-secure",showAutoChargeHint:e=>(e.claim?.amount??"").trim().length>0,isDecisionSubmitDisabled:e=>e.decisionValue===!1&&e.commentValue.trim().length===0},actions:{resetState(){this.claimId="",this.premisesId="",this.isPay=!1,this.claim=null,this.error=null,this.isLoading=!1,this.isActionLoading=!1,this.resetClaimPanels(),this.view="summary",this.decisionValue=null,this.rating=0,this.commentValue="",this.loadSeq+=1},async open(e){this.resetState(),this.claimId=e.claimId,this.premisesId=e.premisesId,this.isPay=e.isPay;const t=kr(),s=Nu();t.$reset(),t.resetForm(),s.$reset(),await this.loadClaim()},async loadClaim(){if(!this.claimId||!this.premisesId)return;const e=++this.loadSeq;this.isLoading=!0,this.error=null;const s=await ue().fetchClaimInfo(this.claimId,this.premisesId);e===this.loadSeq&&(s.ok?this.claim=s.data.claim:(this.error=s.error,this.claim=null),this.isLoading=!1)},startDecision(e){this.closeClaimFlow(),this.decisionValue=e,this.rating=0,this.commentValue="",this.view="decision"},updateCommentValue(e){this.commentValue=e},setRating(e){this.rating=e},goToSummary(){this.closeClaimFlow(),this.view="summary",this.decisionValue=null},goToCardAdd(){this.view="card-add"},goToCardAddSecure(){this.view="card-add-secure"},backFromCardFlow(){this.view="summary"},openClaimInfo(e){ri().setClaimContext(e?.claimId??this.claimId,e?.premisesId??this.premisesId),this.openClaimPanel("claim-info",{replace:e?.replace})},openClaimPanel(e,t){if(e==="claim-rate-done"){this.claimPanelStack=["claim-rate-done"];return}if(e==="claim-info"&&t?.replace){this.claimPanelStack=["claim-info"];return}if(t?.replace&&this.claimPanelStack.length>0){this.claimPanelStack[this.claimPanelStack.length-1]=e;return}this.claimPanelStack[this.claimPanelStack.length-1]!==e&&this.claimPanelStack.push(e)},backClaimPanel(){if(this.claimPanelStack.length<=1){this.closeClaimFlow();return}const e=this.claimPanelStack.pop();e&&this.resetClaimPanel(e)},closeClaimFlow(){this.resetClaimPanels()},resetClaimPanels(){this.claimPanelStack=[],this.resetClaimPanel("claim-chat"),this.resetClaimPanel("claim-cancel"),this.resetClaimPanel("claim-arbitration"),this.resetClaimPanel("claim-additional-works"),this.resetClaimPanel("claim-additional-works-help"),this.resetClaimPanel("claim-progress"),this.resetClaimPanel("claim-rate"),this.resetClaimPanel("claim-rate-done"),this.resetClaimPanel("claim-result"),this.resetClaimPanel("claim-info")},resetClaimPanel(e){if(e==="claim-chat"){const t=fu();t.stopPolling(),t.$reset();return}if(e==="claim-cancel"){af().$reset();return}if(e==="claim-arbitration"){of().$reset();return}if(e==="claim-additional-works"){rf().$reset();return}if(e!=="claim-additional-works-help"){if(e==="claim-progress"){lf().$reset();return}if(e==="claim-rate"){uf().$reset();return}if(e==="claim-rate-done"){cf().$reset();return}if(e==="claim-result"){df().$reset();return}}},async refreshRelatedData(){const e=Jl(),t=Bu();await Promise.allSettled([e.loadBadges(),t.load()])},async acceptWork(){this.isActionLoading=!0;const t=await ue().acceptClaimWork(this.claimId,this.premisesId,this.commentValue,this.rating);return this.isActionLoading=!1,t.ok&&await this.refreshRelatedData(),t},async declineWork(){this.isActionLoading=!0;const t=await ue().declineClaimWork(this.claimId,this.premisesId,this.commentValue,this.rating);return this.isActionLoading=!1,t.ok&&await this.refreshRelatedData(),t},async pay(){this.isActionLoading=!0;const t=await ue().payClaim(this.claimId,this.premisesId);return this.isActionLoading=!1,t.ok&&await this.refreshRelatedData(),t}}}),ob=180;function ab(e){return e.map(t=>({claimId:t.claimId,premisesId:t.premisesId}))}const ec=Ke("claimsOverlayStore",{state:()=>({isOpen:!1,isRequestInProgress:!1,error:null,requestInterval:ob,currentItem:null,currentMode:null,acceptQueue:[],payQueue:[],timerId:null}),getters:{isPay:e=>e.currentMode==="pay",hasPendingItems:e=>e.acceptQueue.length>0||e.payQueue.length>0}
11,actions:{start(){if(!Ne().isAuthorized){this.stop();return}this.isOpen||this.isRequestInProgress||this.timerId==null&&this.requestNeedActions()},stop(){this.cancelScheduledRequest(),this.resetQueue(),this.isRequestInProgress=!1,this.error=null},resetQueue(){this.isOpen=!1,this.currentItem=null,this.currentMode=null,this.acceptQueue=[],this.payQueue=[]},cancelScheduledRequest(){this.timerId!=null&&typeof window<"u"&&window.clearTimeout(this.timerId),this.timerId=null},scheduleNextRequest(){if(!Ne().isAuthorized||typeof window>"u"){this.cancelScheduledRequest();return}this.cancelScheduledRequest(),this.timerId=window.setTimeout(()=>{this.timerId=null,this.requestNeedActions()},this.requestInterval*1e3)},async requestNeedActions(){if(!(!Ne().isAuthorized||this.isRequestInProgress)){this.cancelScheduledRequest(),this.isRequestInProgress=!0,this.error=null;try{const s=await ue().fetchClaimsNeedActions();if(!s.ok){this.error=s.error,this.scheduleNextRequest();return}this.hydrateQueue(s.data)}finally{this.isRequestInProgress=!1}}},hydrateQueue(e){this.requestInterval=e.requestInterval>0?e.requestInterval:ob,this.acceptQueue=ab(e.needWorkAcceptanceClaims),this.payQueue=ab(e.needPaymentClaims),this.showNext()},showNext(){const e=this.acceptQueue.shift()??null;if(e){this.currentItem=e,this.currentMode="accept",this.isOpen=!0;return}const t=this.payQueue.shift()??null;if(t){this.currentItem=t,this.currentMode="pay",this.isOpen=!0;return}this.isOpen=!1,this.currentItem=null,this.currentMode=null,this.scheduleNextRequest()},completeCurrent(){this.isOpen=!1,this.currentItem=null,this.currentMode=null,this.showNext()},deferCurrent(){this.completeCurrent()}}}),dbe={class:"flex h-full flex-col bg-grey-90"},fbe={class:"flex-1 overflow-y-auto px-4 pb-4 scrollbar-4-grey80"},pbe={key:0,class:"flex flex-col gap-3"},hbe={class:"rounded-[24px] bg-white p-4"},mbe={class:"mt-4 space-y-4"},gbe={key:1,class:"flex flex-col gap-3"},ybe={class:"rounded-[24px] bg-white p-4 mt-2"},_be={class:"flex flex-wrap items-center justify-center gap-2"},vbe=["src"],bbe={class:"text-16-bold leading-tight"},xbe={class:"mt-4"},kbe={class:"flex items-start gap-3"},wbe={class:"min-w-0 flex-1"},Cbe={class:"text-13 text-black"},$be={class:"mt-1 text-13 text-grey-40"},Sbe={class:"shrink-0 text-right text-13 text-black"},Abe={class:"rounded-[24px] bg-white p-4"},Ibe={class:"space-y-2"},Tbe={class:"flex items-center gap-3"},Pbe={class:"min-w-0 flex-1 text-13 text-grey-40"},Dbe={class:"shrink-0 text-13 text-black"},Ebe={class:"flex items-center gap-3"},Lbe={class:"min-w-0 flex-1 text-13 text-grey-40"},Rbe={class:"shrink-0 text-13 text-black"},Mbe={class:"flex items-center gap-3"},Obe={class:"min-w-0 flex-1 text-24-bold text-black"},Fbe={class:"shrink-0 text-24-bold text-black"},Nbe={key:2,class:"flex h-full items-center justify-center px-6 text-center text-16 text-grey-40"},Bbe={key:0,class:"rounded-t-[24px] bg-white p-4"},Vbe={class:"flex flex-col gap-3"},Hbe=G({__name:"ClaimAdditionalWorksPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),{public:{apiBaseUrl:o}}=kn(),l=rf(),u=ri(),d=ff(),f=ec(),h=Oe(),g=Ne(),m=X(""),_=A(()=>({color:l.card?.textColor||"#565F8F",backgroundColor:l.card?.backgroundColor||"#F7F8FC"})),v=A(()=>P(l.card?.iconUrl?L(l.card.iconUrl):""));function k(R){return Array.isArray(R)?typeof R[0]=="string"?R[0]:"":typeof R=="string"?R:""}function x(){const R=k(n.query.id)||l.claimId||u.selectedClaimId||u.claim?.id||d.claimId||"",F=k(n.query.list_id)||l.listId,N=k(n.query.premises_id)||l.premisesId||u.selectedPremisesId||d.premisesId||h.residence?.premisesId||"";return{claimId:R,listId:F,premisesId:N}}async function C(){await u.loadClaim(),f.isOpen&&await d.loadClaim()}async function w(){if(l.isAcceptLoading||l.isDeclineLoading)return;const R=await l.accept();if(R.ok){await C(),s("go","back");return}i(R.error.message??r("drawerClaimAdditionalWorks.actionError"))}async function $(){if(l.isAcceptLoading||l.isDeclineLoading)return;const R=await l.decline();if(R.ok){await C(),s("go","back");return}i(R.error.message??r("drawerClaimAdditionalWorks.actionError"))}function S(R){const F=I(R.cost);return R.measureUnitValue.trim()?r("drawerClaimAdditionalWorks.itemPrice",{price:F,count:R.count,unit:R.measureUnitValue}):F}function I(R){return`${new Intl.NumberFormat("ru-RU").format(R/100)} â½`}function P(R){const F=R?.trim();if(F){if(F.startsWith("blob:")||F.startsWith("data:")||/^https?:\/\//i.test(F))return D(F);try{const N=o.endsWith("/")?o:`${o}/`;return D(new URL(F,N).toString())}catch{return D(F)}}}function L(R){const F=R.indexOf("#"),N=F>=0?R.slice(F):"",z=F>=0?R.slice(0,F):R,me=z.indexOf("?"),ge=me>=0?z.slice(0,me):z,fe=me>=0?z.slice(me):"";return`${ge}_x3.png${fe}${N}`}function D(R){const F=g.sessionToken;if(!F||R.startsWith("blob:")||R.startsWith("data:"))return R;const N=R.indexOf("#"),z=N>=0?R.slice(N):"",me=N>=0?R.slice(0,N):R,ge=me.indexOf("?"),fe=ge>=0?me.slice(0,ge):me,te=ge>=0?me.slice(ge+1):"",V=new URLSearchParams(te);V.set("btlrsid",F);const pe=V.toString();return`${`${fe}?${pe}`}${z}`}return Se(()=>{const{claimId:R,listId:F,premisesId:N}=x();return[R,F,N]},async([R,F,N])=>{const z=`${R}:${F}:${N}`;if(l.setContext(R,F,N),!R||!F||!N){m.value="",await l.loadCard();return}m.value===z&&(l.card||l.isLoading)||(m.value=z,await l.loadCard(),l.error&&i(l.error.message??r("drawerClaimAdditionalWorks.loadError")))},{immediate:!0}),(R,F)=>{const N=Ae("PrimaryButton");return p(),y("div",dbe,[c("div",fbe,[a(l).isLoading?(p(),y("div",pbe,[c("div",hbe,[F[1]||(F[1]=c("div",{class:"h-12 animate-pulse rounded-[12px] bg-grey-90"},null,-1)),c("div",mbe,[(p(),y(j,null,le(3,z=>c("div",{key:z,class:"space-y-2 border-b border-grey-80 pb-4 last:border-b-0 last:pb-0"},[...F[0]||(F[0]=[c("div",{class:"h-5 w-4/5 animate-pulse rounded bg-grey-90"},null,-1),c("div",{class:"h-4 w-2/5 animate-pulse rounded bg-grey-90"},null,-1)])])),64))])]),F[2]||(F[2]=c("div",{class:"rounded-[24px] bg-white p-4"},[c("div",{class:"h-20 animate-pulse rounded bg-grey-90"})],-1))])):a(l).card?(p(),y("div",gbe,[c("div",ybe,[c("div",{class:"flex min-h-12 items-center justify-center rounded-[12px] px-4 py-3 text-center",style:kt(a(_))},[c("div",_be,[a(v)?(p(),y("img",{key:0,src:a(v),class:"h-6 w-6 shrink-0 object-contain",alt:""},null,8,vbe)):E("",!0),c("span",bbe,b(a(l).card.title),1)])],4),c("div",xbe,[(p(!0),y(j,null,le(a(l).items,(z,me)=>(p(),y("div",{key:z.workTypeId||`${z.title}-${me}`,class:"border-b border-grey-80 py-4 first:pt-0 last:border-b-0 last:pb-0"}
11,[c("div",kbe,[c("div",wbe,[c("div",Cbe,b(z.title),1),c("div",$be,b(S(z)),1)]),c("div",Sbe,b(I(z.amount)),1)])]))),128))])]),c("div",Abe,[c("div",Ibe,[c("div",Tbe,[c("span",Pbe,b(a(r)("drawerClaimAdditionalWorks.baseWork")),1),c("span",Dbe,b(I(a(l).baseAmount)),1)]),c("div",Ebe,[c("span",Lbe,b(a(r)("drawerClaimAdditionalWorks.additionalWork")),1),c("span",Rbe,b(I(a(l).additionalWorksAmount)),1)])]),F[3]||(F[3]=c("div",{class:"my-4 h-px bg-grey-80"},null,-1)),c("div",Mbe,[c("span",Obe,b(a(r)("drawerClaimAdditionalWorks.total")),1),c("span",Fbe,b(I(a(l).totalAmount)),1)])])])):(p(),y("div",Nbe,b(a(r)("drawerClaimAdditionalWorks.loadError")),1))]),a(l).showSubmitButton?(p(),y("div",Bbe,[c("div",Vbe,[T(N,{class:"w-full",label:a(r)("drawerClaimAdditionalWorks.accept"),loading:a(l).isAcceptLoading,onClick:w},null,8,["label","loading"]),T(N,{class:"w-full",variant:"secondary",label:a(r)("drawerClaimAdditionalWorks.decline"),loading:a(l).isDeclineLoading,onClick:$},null,8,["label","loading"])])])):E("",!0)])}}}),a9=Object.assign(Hbe,{__name:"ClaimAdditionalWorksPanel"}),qbe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function jbe(e,t){return p(),y("svg",qbe,[...t[0]||(t[0]=[c("path",{fill:"#CDD4D2","fill-rule":"evenodd",d:"M42.183 4.034a1.5 1.5 0 0 1 .938.1l22 10A1.5 1.5 0 0 1 66 15.5v9a1.5 1.5 0 0 1-3 0v-8.034L44 7.83V89h8V36a1.5 1.5 0 0 1 1.194-1.468l24-5a1.5 1.5 0 0 1 1.017.147l13 7A1.5 1.5 0 0 1 92 38v52.5a1.5 1.5 0 0 1-1.5 1.5h-85A1.5 1.5 0 0 1 4 90.5v-77a1.5 1.5 0 0 1 1.183-1.466zM55 89h21V32.845L55 37.22zm24-55.489V89h10V38.896zM41 89V7.359L7 14.71V89zm-7-72.5a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m20 12a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m55 4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-27 7a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m55 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-27 9a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m55 0a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5","clip-rule":"evenodd"},null,-1)])])}const gg={render:jbe},Ube={class:"flex h-full flex-col"},zbe={class:"flex flex-1 flex-col items-center justify-center px-6 text-center"},Wbe={class:"mt-6 text-24-bold text-black"},Gbe={class:"mt-2 whitespace-pre-line text-16 text-grey-40"},Ybe={class:"p-6"},Kbe=G({__name:"ClaimAdditionalWorksHelpPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;return(r,i)=>{const o=gg,l=Ae("PrimaryButton");return p(),y("div",Ube,[c("div",zbe,[T(o,{class:"[&>path]:fill-emerald-primary"}),c("h1",Wbe,b(a(s)("drawerClaimAdditionalWorks.helpTitle")),1),c("p",Gbe,b(a(s)("drawerClaimAdditionalWorks.helpDescription")),1)]),c("div",Ybe,[T(l,{class:"w-full",label:a(s)("good"),onClick:i[0]||(i[0]=u=>n("go","back"))},null,8,["label"])])])}}}),l9=Object.assign(Kbe,{__name:"ClaimAdditionalWorksHelpPanel"});let Sd=0,Ad=0;const Qbe=Ke("residentOrganizationDetails",{state:()=>({inn:"",organizationName:"",kpp:"",ogrn:"",legalAddress:"",paymentAccount:"",bik:"",bankName:"",correspondentAccount:"",consignee:"",email:"",isConfirmed:!1,isCompanyLoading:!1,isBankLoading:!1,isSubmitting:!1}),getters:{canSubmit(e){return(e.inn.length===10||e.inn.length===12)&&e.organizationName.trim().length>0&&e.legalAddress.trim().length>0&&e.paymentAccount.length===20&&e.bik.length===9&&e.bankName.trim().length>0&&e.correspondentAccount.length===20&&e.email.trim().length>0&&e.isConfirmed},canSubmitWater(e){const t=(!e.kpp||/^\d{9}$/.test(e.kpp))&&(!e.correspondentAccount||/^\d{20}$/.test(e.correspondentAccount))&&(!e.email||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email));return(e.inn.length===10||e.inn.length===12)&&e.organizationName.trim().length>0&&/^\d{20}$/.test(e.paymentAccount)&&/^\d{9}$/.test(e.bik)&&e.isConfirmed&&t}},actions:{initialize(e){this.$reset(),this.email=e},changeInn(e){Sd+=1,this.inn=e.replace(/\D/g,"").slice(0,12),this.organizationName="",this.kpp="",this.ogrn="",this.legalAddress="",this.consignee="",this.isCompanyLoading=!1},cancelCompanyLoad(){Sd+=1,this.isCompanyLoading=!1},changeBik(e){Ad+=1,this.bik=e.replace(/\D/g,"").slice(0,9),this.bankName="",this.correspondentAccount="",this.isBankLoading=!1},cancelBankLoad(){Ad+=1,this.isBankLoading=!1},async loadCompany(){if(this.inn.length!==10&&this.inn.length!==12)return null;const e=this.inn,t=++Sd;this.isCompanyLoading=!0;const s=await ue().fetchResidentOrganizationCompany(e);return t!==Sd||e!==this.inn||(this.isCompanyLoading=!1,s.ok&&(this.organizationName=s.data.organizationName,this.kpp=s.data.kpp,this.ogrn=s.data.ogrn,this.legalAddress=s.data.legalAddress,this.consignee=s.data.organizationName)),s},async loadBank(){if(this.bik.length!==9)return null;const e=this.bik,t=++Ad;this.isBankLoading=!0;const s=await ue().fetchResidentOrganizationBank(e);return t!==Ad||e!==this.bik||(this.isBankLoading=!1,s.ok&&(this.bankName=s.data.bankName,this.correspondentAccount=s.data.correspondentAccount)),s},async save(e,t=!1){if((t?!this.canSubmitWater:!this.canSubmit)||this.isSubmitting)return null;this.isSubmitting=!0;
11try{return await ue().createResidentOrganizationDetails({resident_id:e,name:this.organizationName.trim(),inn:this.inn.trim(),kpp:this.kpp.trim(),ogrn:this.ogrn.trim(),bik:this.bik.trim(),account:this.paymentAccount.trim(),bank_name:this.bankName.trim(),correspondent_account:this.correspondentAccount.trim(),address:this.legalAddress.trim(),consignee:this.consignee.trim(),email:this.email.trim()})}finally{this.isSubmitting=!1}}}}),Xbe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Zbe(e,t){return p(),y("svg",Xbe,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M0 12C0 5.373 5.373 0 12 0s12 5.373 12 12-5.373 12-12 12S0 18.627 0 12"},null,-1),c("path",{fill:"#FA7A6E",d:"m11.297 16 .12-3.055-2.713 1.642L8 13.422l2.854-1.413L8 10.598l.704-1.184 2.713 1.642L11.297 8h1.406l-.12 3.055 2.714-1.642.703 1.184-2.854 1.412L16 13.423l-.703 1.165-2.714-1.642.12 3.055z"},null,-1)])])}const Jbe={render:Zbe},e5e={class:"relative"},t5e={key:0,class:"min-w-0 flex-1"},s5e={class:"block text-11 text-grey-40"},n5e=["value","placeholder","inputmode","maxlength","disabled"],r5e=["value","placeholder","inputmode","maxlength","disabled"],i5e=G({__name:"OrganizationDetailsField",props:{modelValue:{},placeholder:{},label:{},inputmode:{},maxlength:{},requiredMark:{type:Boolean},loading:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t;function n(r){s("update:modelValue",r.target.value)}return(r,i)=>{const o=Jbe;return p(),y("div",e5e,[c("div",{class:oe(["flex h-14 items-center rounded-lg border border-grey-80 px-4 transition-[border-color,box-shadow] duration-200 focus-within:border-transparent focus-within:ring-2 focus-within:ring-paleLime-primary",{"animate-pulse bg-grey-90":e.loading}])},[e.label?(p(),y("div",t5e,[c("span",s5e,b(e.label),1),c("input",{class:"block h-6 w-full min-w-0 p-0 text-16 text-black outline-none placeholder:text-grey-40",value:e.modelValue,placeholder:e.placeholder,inputmode:e.inputmode,maxlength:e.maxlength,disabled:e.loading,onInput:n},null,40,n5e)])):(p(),y("input",{key:1,class:"h-10 w-full min-w-0 p-0 text-16 text-black outline-none placeholder:text-grey-40",value:e.modelValue,placeholder:e.placeholder,inputmode:e.inputmode,maxlength:e.maxlength,disabled:e.loading,onInput:n},null,40,r5e))],2),e.requiredMark?(p(),K(o,{key:0,class:"absolute -right-2 -top-2"})):E("",!0)])}}}),Pr=Object.assign(i5e,{__name:"OrganizationDetailsField"}),o5e={class:"flex h-full min-h-0 flex-col bg-white"},a5e={class:"min-h-0 flex-1 overflow-y-auto px-4 pb-6 scrollbar-4-grey80 auth:px-6"},l5e={class:"mx-auto max-w-[432px]"},c5e={class:"text-24-bold text-black"},u5e={class:"mt-2 text-16 text-grey-40"},d5e={class:"mt-6"},f5e={class:"mb-3 text-16 text-black"},p5e={class:"mt-6"},h5e={class:"mb-3 text-16 text-black"},m5e={class:"flex flex-col gap-2"},g5e={class:"mt-6"},y5e={class:"mb-3 text-16 text-black"},_5e={class:"flex flex-col gap-2"},v5e={class:"mt-6"},b5e={class:"mb-3 text-16 text-black"},x5e={class:"mt-6"},k5e={class:"mb-3 text-16 text-black"},w5e={class:"flex-1 text-16 text-black"},C5e={class:"shrink-0 bg-white px-4 pb-4 pt-3 auth:px-6"},$5e=G({__name:"ResidentOrganizationDetailsPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),o=Qbe(),l=Ln(),u=Oe(),d=Ne();let f=!0;const h=A(()=>n.query.org_details_from==="water");let g=null,m=null;je(()=>{o.initialize(u.userInfo?.me.email??"")}),Se(()=>[d.sessionToken,u.residence?.residentId],()=>{h.value&&s("go",{to:"water-delivery",replace:!0})}),Tt(()=>{f=!1,g&&clearTimeout(g),m&&clearTimeout(m)});function _(S,I){return S.replace(/\D/g,"").slice(0,I)}function v(S){o.changeInn(S),g&&clearTimeout(g),(o.inn.length===10||o.inn.length===12)&&(g=setTimeout(async()=>{const I=await o.loadCompany();I&&!I.ok&&i(I.error.message??r("residentOrganizationDetails.loadError"))},400))}function k(S){o.cancelCompanyLoad(),o.kpp=_(S,9)}function x(S){o.paymentAccount=_(S,20)}function C(S){o.changeBik(S),m&&clearTimeout(m),o.bik.length===9&&(m=setTimeout(async()=>{const I=await o.loadBank();
11I&&!I.ok&&i(I.error.message??r("residentOrganizationDetails.loadError"))},400))}function w(S){o.cancelBankLoad(),o.correspondentAccount=_(S,20)}async function $(){const S=u.residence?.residentId??"",I=d.sessionToken;if(!S||!I)return;const P=h.value,L=await o.save(S,P);if(!f||!L||S!==u.residence?.residentId||I!==d.sessionToken)return;if(!L.ok||!L.data.success){i(L.ok?r("residentOrganizationDetails.saveError"):L.error.message??r("residentOrganizationDetails.saveError"));return}if(P){s("go",{to:"water-delivery-confirm",replace:!0});return}s("go","back");const D=await l.sendOrganizationDetailsEntered();D.ok||i(D.error.message??r("drawerClaimChat.sendError"))}return(S,I)=>{const P=_a,L=va;return p(),y("div",o5e,[c("div",a5e,[c("div",l5e,[c("h2",c5e,b(a(r)("residentOrganizationDetails.title")),1),c("p",u5e,b(a(r)("residentOrganizationDetails.subtitle")),1),c("section",d5e,[c("h3",f5e,b(a(r)("residentOrganizationDetails.identification")),1),T(Pr,{"model-value":a(o).inn,placeholder:a(r)("residentOrganizationDetails.inn"),inputmode:"numeric",maxlength:12,"required-mark":"","onUpdate:modelValue":v},null,8,["model-value","placeholder"])]),c("section",p5e,[c("h3",h5e,b(a(r)("residentOrganizationDetails.payer")),1),c("div",m5e,[T(Pr,{modelValue:a(o).organizationName,"onUpdate:modelValue":[I[0]||(I[0]=D=>a(o).organizationName=D),a(o).cancelCompanyLoad],placeholder:a(r)("residentOrganizationDetails.organizationName"),"required-mark":a(h),loading:a(o).isCompanyLoading},null,8,["modelValue","placeholder","required-mark","loading","onUpdate:modelValue"]),T(Pr,{"model-value":a(o).kpp,placeholder:a(r)("residentOrganizationDetails.kpp"),inputmode:"numeric",maxlength:9,loading:a(o).isCompanyLoading,"onUpdate:modelValue":k},null,8,["model-value","placeholder","loading"]),T(Pr,{modelValue:a(o).legalAddress,"onUpdate:modelValue":[I[1]||(I[1]=D=>a(o).legalAddress=D),a(o).cancelCompanyLoad],placeholder:a(r)("residentOrganizationDetails.legalAddress"),loading:a(o).isCompanyLoading},null,8,["modelValue","placeholder","loading","onUpdate:modelValue"])])]),c("section",g5e,[c("h3",y5e,b(a(r)("residentOrganizationDetails.bankDetails")),1),c("div",_5e,[T(Pr,{"model-value":a(o).paymentAccount,placeholder:a(r)("residentOrganizationDetails.paymentAccount"),inputmode:"numeric",maxlength:20,"required-mark":"","onUpdate:modelValue":x},null,8,["model-value","placeholder"]),T(Pr,{"model-value":a(o).bik,placeholder:a(r)("residentOrganizationDetails.bik"),inputmode:"numeric",maxlength:9,"required-mark":"","onUpdate:modelValue":C},null,8,["model-value","placeholder"]),T(Pr,{modelValue:a(o).bankName,"onUpdate:modelValue":[I[2]||(I[2]=D=>a(o).bankName=D),a(o).cancelBankLoad],placeholder:a(r)("residentOrganizationDetails.bankName"),loading:a(o).isBankLoading},null,8,["modelValue","placeholder","loading","onUpdate:modelValue"]),T(Pr,{"model-value":a(o).correspondentAccount,placeholder:a(r)("residentOrganizationDetails.correspondentAccount"),inputmode:"numeric",maxlength:20,loading:a(o).isBankLoading,"onUpdate:modelValue":w},null,8,["model-value","placeholder","loading"])])]),c("section",v5e,[c("h3",b5e,b(a(r)("residentOrganizationDetails.consigneeSection")),1),T(Pr,{modelValue:a(o).consignee,"onUpdate:modelValue":I[3]||(I[3]=D=>a(o).consignee=D),placeholder:a(r)("residentOrganizationDetails.consignee")},null,8,["modelValue","placeholder"])]),c("section",x5e,[c("h3",k5e,b(a(r)("residentOrganizationDetails.invoiceDelivery")),1),T(Pr,{modelValue:a(o).email,"onUpdate:modelValue":I[4]||(I[4]=D=>a(o).email=D),label:a(r)("residentOrganizationDetails.email"),placeholder:a(r)("residentOrganizationDetails.email"),inputmode:"email"},null,8,["modelValue","label","placeholder"])]),c("button",{type:"button",class:"mt-4 flex w-full items-start gap-2 text-left",onClick:I[5]||(I[5]=D=>a(o).isConfirmed=!a(o).isConfirmed)},[a(o).isConfirmed?(p(),K(P,{key:0,class:"shrink-0"})):(p(),K(L,{key:1,class:"shrink-0"})),c("span",w5e,b(a(r)("residentOrganizationDetails.confirmation")),1)])])]),c("div",C5e,[T(a(vt),{label:a(h)?a(r)("drawer.categories.waterDelivery.next"):a(r)("residentOrganizationDetail
11s.submit"),disabled:!(a(h)?a(o).canSubmitWater:a(o).canSubmit)||a(o).isSubmitting,loading:a(o).isSubmitting,onClick:$},null,8,["label","disabled","loading"])])])}}}),S5e=Object.assign($5e,{__name:"ResidentOrganizationDetailsPanel"}),A5e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function I5e(e,t){return p(),y("svg",A5e,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M11.44 2.62c.356-.159.765-.159 1.12 0 .259.117.437.33.58.54.146.215.304.504.494.847l1.464 2.653c.206.373.267.474.342.55a.9.9 0 0 0 .27.189c.1.046.22.07.647.142l3.046.503c.409.068.75.123 1.01.19.254.067.525.164.724.375.273.289.404.684.352 1.079-.037.29-.203.527-.37.726-.173.204-.418.444-.71.731l-2.103 2.068c-.315.31-.4.398-.452.493a.9.9 0 0 0-.104.308c-.014.105-.001.225.064.656l.433 2.881c.06.392.109.721.123.982.015.255.003.538-.138.789a1.35 1.35 0 0 1-.911.659c-.28.056-.552-.015-.795-.104-.249-.09-.554-.234-.92-.406l-2.838-1.334c-.385-.18-.495-.229-.603-.248a1 1 0 0 0-.33 0c-.107.02-.218.068-.602.248l-2.84 1.334c-.364.172-.67.316-.918.407-.244.088-.516.159-.795.103a1.35 1.35 0 0 1-.911-.66c-.141-.25-.153-.533-.139-.788.015-.26.064-.59.123-.982l.434-2.88c.065-.433.077-.552.063-.657a.9.9 0 0 0-.103-.308c-.053-.095-.138-.183-.452-.493l-2.103-2.068c-.292-.287-.537-.527-.71-.731-.168-.199-.333-.437-.371-.726-.051-.395.08-.79.353-1.08.199-.21.47-.307.723-.373.26-.068.602-.123 1.01-.19l3.047-.504c.426-.071.547-.096.647-.142a.9.9 0 0 0 .27-.189c.075-.076.136-.177.342-.55l1.463-2.653c.19-.343.35-.632.495-.846.143-.211.321-.424.58-.54"},null,-1)])])}const T5e={render:I5e},P5e={oss:{image:"/images/home/ai_oss.png",badgeKeys:[{key:"badge",type:"ai"}],pointKeys:["consultation","protocol","support"],skillKeys:["consultation","agenda","protocol"],stepKeys:["task","plan","meeting"],comparisonRows:["voting","quorum","protocol"]},real_estate_advisor:{image:"/images/home/ai_real.jpg",badgeKeys:[{key:"badge",type:"ai"},{key:"freeBadge",type:"free"}],pointKeys:["estimate","forecast","advice"],skillKeys:["estimate","forecast","advice"],stepKeys:["address","analysis","recommendation"],comparisonRows:["speed","price","forecast"]}};function D5e(e){return e==="oss"||e==="real_estate_advisor"}function E5e(e,t){const s=P5e[e],n=`home.resident.aiHelpers.details.${e}`;return{id:e,title:t(`${n}.title`),description:t(`${n}.description`),image:s.image,badges:s.badgeKeys.map(r=>({text:t(`${n}.${r.key}`),type:r.type})),points:s.pointKeys.map(r=>t(`${n}.points.${r}`)),mainStat:{value:t(`${n}.stats.main.value`),label:t(`${n}.stats.main.label`)},secondaryStats:["first","second"].map(r=>({value:t(`${n}.stats.${r}.value`),label:t(`${n}.stats.${r}.label`)})),quote:t(`${n}.quote.text`),quoteAuthor:t(`${n}.quote.author`),skills:s.skillKeys.map(r=>({title:t(`${n}.skills.${r}.title`),description:t(`${n}.skills.${r}.description`)})),steps:s.stepKeys.map(r=>({title:t(`${n}.steps.${r}.title`),description:t(`${n}.steps.${r}.description`)})),comparison:{assistantTitle:t(`${n}.comparison.assistantTitle`),regularTitle:t(`${n}.comparison.regularTitle`),rows:s.comparisonRows.map(r=>({assistant:t(`${n}.comparison.rows.${r}.assistant`),regular:t(`${n}.comparison.rows.${r}.regular`)}))},buttonText:t(`${n}.button`)}}const L5e={key:0,class:"flex h-full min-h-0 flex-col bg-white"},R5e={class:"flex flex-1 flex-col gap-12 overflow-y-auto px-6 pb-12"},M5e={class:"flex flex-col gap-2"},O5e={class:"overflow-hidden rounded-[24px] bg-grey-90"},F5e={class:"relative aspect-[1.862/1] overflow-hidden"},N5e=["src","alt"],B5e={class:"absolute right-2 top-2 flex flex-col items-end gap-1"},V5e={class:"flex min-h-[188px] flex-col gap-4 p-6"},H5e={class:"text-16 text-black"},q5e={class:"mt-1 text-13 text-grey-40"},j5e={class:"flex flex-col gap-2"},U5e={class:"rounded-[24px] bg-grey-90 p-6"},z5e={class:"text-24-bold text-black"},W5e={class:"mt-1 text-13 text-grey-40"},G5e={class:"grid grid-cols-2 gap-2"},Y5e={class:"text-24-bold text-black"},K5e={class:"mt-1 text-13 text-grey-40"},Q5e={class:"rounded-[24px] bg-grey-90 p-6"},X5e={class:"text-16 text-black"},Z5e={class:"mt-4 text-13 text-grey-40"},J5e={class:"text-center text-24-bold text-black"},e6e={class:"mt-6 flex flex-col gap-2"},t6e={class:"text-16 text-black"},s6e={class:"mt-1 text-13 text-grey-40"},n6e={class:"text-center text-24-bold text-black"},r6e={class:"mt-6 flex flex-col gap-2"},i6e={class:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#40497A] text-13-bold text-white"},o6e={class:"text-16 text-black"},a6e={class:"mt-1 text-13 text-grey-40"},l6e={class:"text-center text-24-bold text-black"},c6e={class:"mt-6 grid grid-cols-2 overflow-hidden rounded-[24px] bg-grey-90"},u6e={class:"rounded-[24px] bg-emerald-primary p-6 text-white"},d6e={class:"text-13-bold"},f6e={class:"mt-4 flex flex-col gap-4"},p6e={class:"p-6"},h6e={class:"text-13-bold text-black"},m6e={class:"mt-4 flex flex-col gap-4"},g6e={class:"shrink-0 bg-white p-6"},y6e=G({__name:"AiHelperDetailPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),o=Ne(),l=Oe(),u=ue(),d=X(null),f=X(!0);let h=0;const g=A(()=>{const k=Array.isArray(n.query.ai_helper_id)?n.query.ai_helper_id[0]:n.query.ai_helper_id;return D5e(k)?k:null}),m=A(()=>g.value?E5e(g.value,k=>r(k)):null);async function _(){const k=++h,x=g.value;if(d.value=null,!x){f.value=!1;return}if(o.isAuthorized&&!l.isLoaded){f.value=!0;return}f.value=!0;const C=o.isAuthorized?l.residence?.residentId:void 0,w=await u.fetchScreenAiHelpers(C);if(k===h){if(w.ok){const $=w.data.items.find(P=>P.id===x),S=$?.categoryId.trim()??"",I=$?.categoryName.trim()??"";
11S&&I&&(d.value={id:S,name:I})}f.value=!1,d.value||i(r("home.resident.aiHelpers.details.loadError"))}}je(()=>{Se(()=>[g.value,o.isAuthorized,l.isLoaded,l.residence?.residentId],()=>{_()},{immediate:!0})});function v(){if(!m.value||!d.value)return;const{id:k,name:x}=d.value,C=Ln();o.isAuthorized?(C.$reset(),C.setClaimContext(k,x)):C.startDemoChat(k,x),s("go",{to:"claim-create-chat",query:{claimId:k,claimTitle:x}})}return(k,x)=>{const C=J2,w=G0,$=T5e,S=Du,I=Ae("PrimaryButton");return a(m)?(p(),y("div",L5e,[c("div",R5e,[c("section",M5e,[c("div",O5e,[c("div",F5e,[c("img",{src:a(m).image,alt:a(m).title,class:"h-full w-full object-cover"},null,8,N5e),c("div",B5e,[(p(!0),y(j,null,le(a(m).badges,P=>(p(),y("span",{key:P.text,class:oe(["inline-flex h-6 items-center gap-1 rounded-full px-2 text-11-bold text-white",P.type==="ai"?"bg-[#40497A]":"bg-emerald-primary"])},[P.type==="ai"?(p(),K(C,{key:0,"aria-hidden":"true"})):E("",!0),Qe(" "+b(P.text),1)],2))),128))])]),c("div",V5e,[c("div",null,[c("h1",H5e,b(a(m).title),1),c("p",q5e,b(a(m).description),1)]),c("ul",j5e,[(p(!0),y(j,null,le(a(m).points,P=>(p(),y("li",{key:P,class:"flex items-start gap-2 text-13 text-black"},[T(w,{class:"shrink-0","aria-hidden":"true"}),c("span",null,b(P),1)]))),128))])])]),c("div",U5e,[c("p",z5e,b(a(m).mainStat.value),1),c("p",W5e,b(a(m).mainStat.label),1)]),c("div",G5e,[(p(!0),y(j,null,le(a(m).secondaryStats,P=>(p(),y("div",{key:P.value,class:"rounded-[24px] bg-grey-90 p-6"},[c("p",Y5e,b(P.value),1),c("p",K5e,b(P.label),1)]))),128))]),c("blockquote",Q5e,[c("p",X5e,b(a(m).quote),1),c("footer",Z5e,b(a(m).quoteAuthor),1)])]),c("section",null,[c("h2",J5e,b(a(r)("home.resident.aiHelpers.details.skillsTitle")),1),c("div",e6e,[(p(!0),y(j,null,le(a(m).skills,P=>(p(),y("div",{key:P.title,class:"flex gap-4 rounded-[24px] bg-grey-90 p-6"},[T($,{class:"shrink-0","aria-hidden":"true"}),c("div",null,[c("h3",t6e,b(P.title),1),c("p",s6e,b(P.description),1)])]))),128))])]),c("section",null,[c("h2",n6e,b(a(r)("home.resident.aiHelpers.details.stepsTitle")),1),c("div",r6e,[(p(!0),y(j,null,le(a(m).steps,(P,L)=>(p(),y("div",{key:P.title,class:"flex gap-4 rounded-[24px] bg-grey-90 p-6"},[c("span",i6e,b(L+1),1),c("div",null,[c("h3",o6e,b(P.title),1),c("p",a6e,b(P.description),1)])]))),128))])]),c("section",null,[c("h2",l6e,b(a(r)("home.resident.aiHelpers.details.comparisonTitle")),1),c("div",c6e,[c("div",u6e,[c("h3",d6e,b(a(m).comparison.assistantTitle),1),c("ul",f6e,[(p(!0),y(j,null,le(a(m).comparison.rows,P=>(p(),y("li",{key:P.assistant,class:"flex items-start gap-2 text-13"},[T(w,{class:"shrink-0 [&>path]:fill-paleLime-primary","aria-hidden":"true"}),c("span",null,b(P.assistant),1)]))),128))])]),c("div",p6e,[c("h3",h6e,b(a(m).comparison.regularTitle),1),c("ul",m6e,[(p(!0),y(j,null,le(a(m).comparison.rows,P=>(p(),y("li",{key:P.regular,class:"flex items-start gap-2 text-13 text-grey-40"},[x[0]||(x[0]=c("span",{class:"w-4 shrink-0 text-center"},"â",-1)),c("span",null,b(P.regular),1)]))),128))])])])])]),c("div",g6e,[T(I,{label:a(m).buttonText,loading:a(f),disabled:!a(d),onClick:v},{icon:Xe(()=>[T(S,{class:"[&>path]:fill-white","aria-hidden":"true"})]),_:1},8,["label","loading","disabled"])])])):E("",!0)}}}),_6e=Object.assign(y6e,{__name:"AiHelperDetailPanel"}),v6e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function b6e(e,t){return p(),y("svg",v6e,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M9 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4M17 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4"},null,-1),c("path",{fill:"#fff","fill-rule":"evenodd",d:"M3.627 2c.228 0 .456-.001.65.014.205.015.444.053.69.165a2 2 0 0 1 .768.612l.082.116.098.17c.085.17.135.338.17.488.044.19.078.414.112.64l.2 1.295h12.2c.303 0 .595 0 .838.02.251.022.554.074.85.242a2 2 0 0 1 .81.866l.07.16.04.118c.082.275.083.537.068.758-.016.243-.06.531-.107.831l-.552 3.587c-.108.707-.198 1.293-.308 1.768-.114.486-.264.928-.53 1.336a4 4 0 0 1-1.699 1.458c-.443.2-.903.282-1.401.32-.486.037-1.079.036-1.794.036h-3.764c-.715 0-1.308 0-1.794-.036-.498-.038-.958-.12-1.401-.32a4 4 0 0 1-1.7-1.458c-.265-.408-.415-.85-.529-1.336-.11-.475-.2-1.06-.308-1.768L4.22 4.509a8 8 0 0 0-.084-.49l-.003-.01-.01-.001A8 8 0 0 0 3.627 4H3a1 1 0 0 1 0-2zm3.735 9.777c.114.738.19 1.236.28 1.62.086.37.169.561.256.696a2 2 0 0 0 .85.728c.147.067.348.12.728.149.392.03.896.03 1.642.03h3.764c.746 0 1.25 0 1.642-.03.38-.03.581-.082.728-.149.347-.157.642-.41.85-.728.087-.135.17-.326.256-.697.09-.383.166-.881.28-1.619l.551-3.586c.052-.335.08-.523.09-.66v-.016l-.017-.002a9 9 0 0 0-.665-.013H6.704z","clip-rule":"evenodd"},null,-1)])])}const x6e={render:b6e},k6e=Ls("/images/food/restaurant-salad.png"),pf=Ke("foodDelivery",{state:()=>({restaurant:null,deliveryAddress:"",menu:[],cart:null,error:null,isLoading:!1,isDeliveryTypeUpdating:!1,isCommentSaving:!1,isClearing:!1,updatingItemIds:[]}),actions:{async load(e,t){this.isLoading=!0,this.error=null;
11const s=await ue().fetchFoodRestaurant(e,t);return s.ok?(this.restaurant=s.data.restaurant,this.deliveryAddress=s.data.deliveryAddress,this.menu=s.data.menu,this.cart=s.data.cart):(this.restaurant=null,this.deliveryAddress="",this.menu=[],this.cart=null,this.error=s.error),this.isLoading=!1,s},async loadCart(e){this.isLoading=!0,this.error=null;const t=await ue().fetchFoodCart(e);return t.ok?this.applyCart(t.data):this.error=t.error,this.isLoading=!1,t},applyCart(e){this.cart=e;const t=new Map(e.items.map(s=>[s.menuItemId,s.count]));for(const s of this.menu)for(const n of s.items)n.count=t.get(n.id)??0},async setItemCount(e,t){const s=this.restaurant?.id||this.cart?.restaurantId;if(!s||this.updatingItemIds.includes(e))return null;const n=this.menu.flatMap(u=>u.items).find(u=>u.id===e),r=this.cart?.items.find(u=>u.menuItemId===e);if(!n&&!r)return null;const i=n?.count??r?.count??0,o=Math.min(99,Math.max(0,t));n&&(n.count=o),r&&(r.count=o),this.updatingItemIds.push(e);const l=await ue().updateFoodCartItem(s,e,o);if(this.updatingItemIds=this.updatingItemIds.filter(u=>u!==e),l.ok)this.applyCart(l.data);else if(n&&(n.count=i),r&&(r.count=i),l.error.status===409){for(const u of this.menu)u.items=u.items.filter(d=>d.id!==e);this.menu=this.menu.filter(u=>u.items.length>0)}return l},async setDeliveryType(e){const t=this.restaurant?.id||this.cart?.restaurantId;if(!t||this.isDeliveryTypeUpdating||this.cart?.deliveryType===e)return null;this.isDeliveryTypeUpdating=!0;const s=await ue().updateFoodCartDeliveryType(t,e);return this.isDeliveryTypeUpdating=!1,s.ok&&this.applyCart(s.data),s},async saveCourierComment(e){const t=this.restaurant?.id||this.cart?.restaurantId;if(!t||this.isCommentSaving)return null;this.isCommentSaving=!0;const s=await ue().updateFoodCartComment(t,e.slice(0,500));return this.isCommentSaving=!1,s.ok&&this.applyCart(s.data),s},async clearCart(){const e=this.restaurant?.id||this.cart?.restaurantId;if(!e||this.isClearing)return null;this.isClearing=!0;const t=await ue().clearFoodCart(e);return this.isClearing=!1,t.ok&&this.applyCart(t.data),t},reset(){this.restaurant=null,this.deliveryAddress="",this.menu=[],this.cart=null,this.error=null,this.isLoading=!1,this.isDeliveryTypeUpdating=!1,this.isCommentSaving=!1,this.isClearing=!1,this.updatingItemIds=[]}}}),w6e={class:"food-panel min-h-full bg-grey-90 pb-[88px]"},C6e={key:0,class:"rounded-b-[24px] bg-white px-4 pb-8 pt-4"},$6e={class:"rounded-b-[24px] bg-white px-4 pb-4"},S6e={key:0},A6e=["srcset"],I6e=["src"],T6e={key:1,src:k6e,alt:"",class:"mx-auto h-24 w-24 object-contain"},P6e={class:"mt-6 text-center text-24-bold text-black"},D6e={class:"mx-auto mt-2 max-w-[328px] whitespace-pre-line text-center text-16 text-grey-40"},E6e={key:2,class:"mx-auto mt-6 flex max-w-[328px] flex-wrap justify-center gap-2"},L6e={class:"mt-6 flex rounded-[12px] bg-grey-90 p-1"},R6e=["disabled"],M6e={key:0,class:"rounded-full bg-emerald-primary px-2 py-1 text-11-bold text-white"},O6e=["disabled"],F6e={class:"text-24-bold text-black"},N6e={class:"mt-4 grid grid-cols-2 items-stretch gap-x-2 gap-y-4"},B6e={class:"relative aspect-square overflow-hidden rounded-[24px] bg-grey-80"},V6e=["srcset"],H6e=["src","alt"],q6e={key:0,class:"absolute inset-0 flex items-center justify-center bg-transparent-black32 text-title-44 text-white"},j6e={key:1,class:"absolute right-2 top-2 rounded-full bg-emerald-primary px-2 py-1 text-11-bold text-white"},U6e={class:"mt-2 flex-1"},z6e={class:"text-13 text-black"},W6e={key:0,class:"mt-1 text-11 text-grey-40"},G6e={key:1,class:"mt-1 text-11 text-grey-40"},Y6e={class:"mt-2"},K6e={key:0,class:"inline-flex h-10 items-center gap-2 rounded-full bg-[#2D3666] p-1 text-white"},Q6e=["aria-label","disabled","onClick"],X6e={class:"min-w-[34px] text-center text-13"},Z6e=["aria-label","disabled","onClick"],J6e={key:1,class:"inline-flex h-10 items-center gap-2 rounded-full bg-grey-90 py-1 pl-4 pr-1"},e8e={key:0,class:"text-11 text-grey-40 line-through"},t8e={class:"text-13 text-black"},s8e=["aria-label","disabled","onClick"],n8e={key:0,class:"pointer-events-none fixed bottom-0 right-0 z-20 h-20 w-full rounded-t-[24px] bg-white p-4"},r8e=G({__name:"FoodDeliveryPanel",emits:["close","go"],setup(e,{emit:t}){const s=st(),{t:n}=be(),{$showSnackbar:r}=Te(),i=pf(),o=Oe(),l=t,u=A(()=>i.cart?.deliveryType??"delivery");function d(C){return typeof C=="string"?C:""}function f(C){return C?`${C}.png`:""}function h(C){return C?`${C}.png 1x, ${C}_x2.png 2x, ${C}_x3.png 3x, ${C}_x4.png 4x`:""}
11function g(C){return[C.portionText,C.weightText].filter(Boolean).join(" · ")}function m(C){return i.updatingItemIds.includes(C)}async function _(){const C=d(s.query.premises_id)||o.residence?.premisesId||"",w=d(s.query.resident_id)||o.residence?.residentId;if(!C){r(n("drawer.foodDelivery.addressRequired")),l("close");return}const $=await i.load(C,w);$.ok||(r($.error.message??n("drawer.foodDelivery.loadErrorTitle")),l("close"))}async function v(C,w){const $=await i.setItemCount(C,w);$&&!$.ok&&r($.error.status===409?n("drawer.foodDelivery.itemUnavailable"):$.error.message??n("drawer.foodDelivery.cartUpdateError"))}function k(){l("go",{to:"food-cart",query:{food_restaurant_id:i.restaurant?.id,premises_id:d(s.query.premises_id)||void 0,resident_id:d(s.query.resident_id)||void 0}})}async function x(C){const w=await i.setDeliveryType(C);w&&!w.ok&&r(w.error.message??n("drawer.foodDelivery.deliveryTypeError"))}return je(_),(C,w)=>{const $=x6e;return p(),y("div",w6e,[a(i).isLoading?(p(),y("div",C6e,[...w[2]||(w[2]=[c("div",{class:"mx-auto h-24 w-24 animate-pulse rounded-full bg-grey-90"},null,-1),c("div",{class:"mx-auto mt-6 h-8 w-44 animate-pulse rounded bg-grey-90"},null,-1),c("div",{class:"mx-auto mt-3 h-12 w-64 animate-pulse rounded bg-grey-90"},null,-1)])])):a(i).restaurant?(p(),y(j,{key:1},[c("section",$6e,[a(i).restaurant.imageUrl?(p(),y("picture",S6e,[c("source",{srcset:h(a(i).restaurant.imageUrl)},null,8,A6e),c("img",{src:f(a(i).restaurant.imageUrl),alt:"",class:"mx-auto h-24 w-24 object-contain"},null,8,I6e)])):(p(),y("img",T6e)),c("h1",P6e,b(a(n)("drawer.foodDelivery.title")),1),c("p",D6e,b(a(i).restaurant.description),1),a(i).restaurant.markers.length?(p(),y("div",E6e,[(p(!0),y(j,null,le(a(i).restaurant.markers,S=>(p(),y("span",{key:S,class:"rounded-full bg-purple-90 px-3 py-2 text-13 text-[#2D3666]"},b(S),1))),128))])):E("",!0),c("div",L6e,[a(i).restaurant.delivery.enabled?(p(),y("button",{key:0,type:"button",class:oe(["flex h-12 flex-1 items-center justify-center gap-2 rounded-[8px] text-16 transition-all",a(u)==="delivery"?"bg-white shadow-[0_4px_16px_rgba(33,41,38,0.08)]":""]),disabled:a(i).isDeliveryTypeUpdating,onClick:w[0]||(w[0]=S=>x("delivery"))},[Qe(b(a(n)("drawer.foodDelivery.delivery"))+" ",1),a(i).restaurant.delivery.priceText?(p(),y("span",M6e,b(a(i).restaurant.delivery.priceText),1)):E("",!0)],10,R6e)):E("",!0),a(i).restaurant.pickup.enabled?(p(),y("button",{key:1,type:"button",class:oe(["h-12 flex-1 rounded-[8px] text-16 transition-all",a(u)==="pickup"?"bg-white shadow-[0_4px_16px_rgba(33,41,38,0.08)]":""]),disabled:a(i).isDeliveryTypeUpdating,onClick:w[1]||(w[1]=S=>x("pickup"))},b(a(n)("drawer.foodDelivery.pickup")),11,O6e)):E("",!0)])]),(p(!0),y(j,null,le(a(i).menu,S=>(p(),y("section",{key:S.id||S.name,class:"mt-2 rounded-[24px] bg-white p-4"},[c("h2",F6e,b(S.name),1),c("div",N6e,[(p(!0),y(j,null,le(S.items,I=>(p(),y("article",{key:I.id,class:"flex min-w-0 flex-col"},[c("div",B6e,[c("picture",null,[c("source",{srcset:h(I.imageUrl)},null,8,V6e),c("img",{src:f(I.imageUrl),alt:I.name,class:"h-full w-full object-cover",loading:"lazy"},null,8,H6e)]),I.count?(p(),y("div",q6e,b(I.count),1)):E("",!0),I.discountPercent?(p(),y("span",j6e," â"+b(I.discountPercent)+"% ",1)):E("",!0)]),c("div",U6e,[c("h3",z6e,b(I.name),1),g(I)?(p(),y("p",W6e,b(g(I)),1)):E("",!0),I.description?(p(),y("p",G6e,b(I.description),1)):E("",!0)]),c("div",Y6e,[I.count?(p(),y("div",K6e,[c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full bg-white/10 text-24","aria-label":a(n)("drawer.foodDelivery.decrease"),disabled:m(I.id),onClick:P=>v(I.id,I.count-1)},"â",8,Q6e),c("span",X6e,b(I.priceText),1),c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full bg-white/10 text-24","aria-label":a(n)("drawer.foodDelivery.increase"),disabled:m(I.id)||I.count>=99,onClick:P=>v(I.id,I.count+1)},"+",8,Z6e)])):(p(),y("div",J6e,[I.oldPriceText?(p(),y("span",e8e,b(I.oldPriceText),1)):E("",!0),c("span",t8e,b(I.priceText),1),c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full bg-white text-24 shadow-[0_4px_16px_rgba(33,41,38,0.08)]","aria-label":a(n)("drawer.foodDelivery.increase"),disabled:m(I.id),onClick:P=>v(I.id,1)},"+",8,s8e)]))])]))),128))])]))),128)),a(i).cart?.itemsCount?(p(),y("div",n8e,[c("button",{type:"button",class:"pointer-events-auto flex h-12 w-full items-center justify-center gap-2 rounded-[12px] bg-[#9CCA7F] px-6 text-16-bold text-white",onClick:k},[T($,{"aria-hidden":"true"}),Qe(" "+b(a(n)("drawer.foodDelivery.cart"))+" "+b(a(i).cart.itemsAmountText),1)])])):E("",!0)],64)):E("",!0)])}}}),i8e=Object.assign(r8e,{__name:"FoodDeliveryPanel"}),o8e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function a8e(e,t){return p(),y("svg",o8e,[...t[0]||(t[0]=[c("path",{fill:"#999","fill-rule":"evenodd",d:"M8.001 3.916a2.75 2.75 0 1 1-.002 5.502 2.75 2.75 0 0 1 .002-5.502m0 1.5a1.25 1.25 0 1 0 .001 2.502 1.25 1.25 0 0 0-.001-2.502","clip-rule":"evenodd"},null,-1),c("path",{fill:"#999","fill-rule":"evenodd",d:"M8.001.583a6.084 6.084 0 0 1 6.084 6.083c0 1.71-.778 3.205-1.823 4.563-1.039 1.348-2.422 2.659-3.73 3.967a.75.75 0 0 1-1.061 0c-1.309-1.308-2.693-2.62-3.73-3.967C2.694 9.87 1.917 8.377 1.917 6.666A6.084 6.084 0 0 1 8.001.583m0 1.5a4.584 4.584 0 0 0-4.583 4.583c0 1.235.556 2.408 1.51 3.647.836 1.085 1.914 2.145 3.073 3.295 1.16-1.15 2.238-2.21 3.073-3.295.954-1.239 1.511-2.412 1.511-3.647a4.584 4.584 0 0 0-4.584-4.583","clip-rule":"evenodd"},null,-1)])])}const c9={render:a8e},Vu=Ke("foodOrder",{state:()=>({order:null,error:null,isLoading:!1,isCreating:!1,isCommentSaving:!1,isCancelling:!1,isPaying:!1}),actions:{async create(e,t){if(this.isCreating)return null;this.isCreating=!0;const s=await ue().createFoodOrder(e,t);return this.isCreating=!1,s.ok?(this.order=s.data,this.error=null):this.error=s.error,s},async load(e){this.isLoading=!0,this.error=null;
11const t=await ue().fetchFoodOrder(e);return this.isLoading=!1,t.ok?this.order=t.data:this.error=t.error,t},async saveComment(e){if(!this.order?.id||this.isCommentSaving)return null;this.isCommentSaving=!0;const t=await ue().updateFoodOrderComment(this.order.id,e.slice(0,500));return this.isCommentSaving=!1,t.ok&&(this.order=t.data),t},async pay(e){if(!this.order?.id||this.isPaying)return null;this.isPaying=!0;const t=await ue().payFoodOrder(this.order.id,e);return this.isPaying=!1,t.ok&&(this.order=t.data),t},async cancel(){if(!this.order?.id||this.isCancelling)return null;this.isCancelling=!0;const e=await ue().cancelFoodOrder(this.order.id);return this.isCancelling=!1,e.ok&&(this.order=e.data),e},reset(){this.order=null,this.error=null,this.isLoading=!1,this.isCreating=!1,this.isCommentSaving=!1,this.isCancelling=!1,this.isPaying=!1}}}),l8e={class:"flex min-h-full flex-col bg-grey-90"},c8e={key:0,class:"space-y-2 p-4"},u8e={class:"rounded-b-[24px] bg-white px-4 pb-4"},d8e={class:"flex rounded-[12px] bg-grey-90 p-1"},f8e=["disabled"],p8e={key:0,class:"rounded-full bg-emerald-primary px-2 py-1 text-11-bold text-white"},h8e=["disabled"],m8e={class:"mt-2 rounded-[24px] bg-white p-4"},g8e={class:"flex items-start gap-4"},y8e={class:"min-w-0 flex-1"},_8e={class:"text-16 text-black"},v8e={class:"mt-1 text-13 text-grey-40"},b8e={key:0,class:"mt-4 w-fit rounded-full bg-purple-90 px-3 py-2 text-13 text-[#2D3666]"},x8e={key:0,class:"mt-2 rounded-[24px] bg-white p-4"},k8e={class:"h-[68px] w-[68px] flex-none overflow-hidden rounded-[12px] bg-grey-80"},w8e=["srcset"],C8e=["src","alt"],$8e={class:"min-w-0 flex-1"},S8e={class:"line-clamp-2 text-13 text-black"},A8e={class:"mt-1 text-11 text-grey-40"},I8e={class:"flex h-9 w-[92px] flex-none items-center justify-between rounded-full bg-grey-90 px-[10px] text-13"},T8e=["disabled","onClick"],P8e={class:"w-8 text-center"},D8e=["disabled","onClick"],E8e={class:"sticky bottom-0 mt-auto rounded-t-[24px] bg-white p-4"},L8e={class:"flex items-center justify-between text-24-bold text-black"},R8e={key:0,class:"mt-2 text-center text-13 text-red-50"},lb="bg-white shadow-[0_4px_16px_rgba(33,41,38,0.08)]",M8e=G({__name:"FoodCartPanel",emits:["close","go"],setup(e,{emit:t}){const s=st(),{t:n}=be(),{$showSnackbar:r}=Te(),i=pf(),o=Vu(),l=t,u=A(()=>i.cart),d=A(()=>u.value?.deliveryPriceText||i.restaurant?.delivery.priceText||""),f=A(()=>u.value?.restaurantMarkers.length?u.value.restaurantMarkers:i.restaurant?.markers??[]),h=A(()=>u.value?.pickupMarker||i.restaurant?.pickup.marker||f.value.find(F=>/\d{1,2}:\d{2}/.test(F))||""),g=A(()=>i.updatingItemIds.length>0||o.isCreating),m=A(()=>u.value?.deliveryType==="pickup"),_=A(()=>u.value?.deliveryAddress||i.deliveryAddress),v=A(()=>_.value.split(",").map(F=>F.trim()).filter(Boolean)),k=A(()=>m.value?u.value?.restaurantName||i.restaurant?.name||"":v.value.length>3?v.value.slice(0,3).join(", "):_.value),x=A(()=>m.value?u.value?.pickupAddress||i.restaurant?.pickup.address||u.value?.restaurantDescription||i.restaurant?.description||"":v.value.length>3?v.value.slice(3).join(", "):n("drawer.foodCart.deliveryAddress"));function C(F){return typeof F=="string"?F:""}function w(F){return F?`${F}.png`:""}function $(F){return F?`${F}.png 1x, ${F}_x2.png 2x, ${F}_x3.png 3x`:""}function S(F){return i.updatingItemIds.includes(F)}function I(){l("go",{to:"food-cart-comment"})}async function P(){const F=C(s.query.food_restaurant_id)||i.restaurant?.id||i.cart?.restaurantId||"";if(!F){r(n("drawer.foodCart.loadError")),l("close");return}const N=await i.loadCart(F);N.ok||(r(N.error.message??n("drawer.foodCart.loadError")),l("close"))}async function L(){if(!u.value?.canOrder)return;const F=C(s.query.food_restaurant_id)||u.value.restaurantId,N=u.value.deliveryType==="delivery"&&C(s.query.resident_id)||void 0,z=await o.create(F,N);if(z){if(!z.ok){r(z.error.message??n("drawer.foodOrder.createError")),z.error.status===409&&z.error.message?.toLowerCase().includes("пÑÑÑ")?l("go",{to:"food-delivery",replace:!0}):z.error.status===409&&z.error.message?.toLowerCase().includes("минималÑ")&&await P();return}l("go",{to:"food-order",query:{food_order_id:String(z.data.id),open_payment:"1",premises_id:C(s.query.premises_id)||void 0}})}}async function D(F,N){const z=await i.setItemCount(F,N);z&&!z.ok&&r(z.error.message??n("drawer.foodDelivery.cartUpdateError"))}async function R(F){const N=await i.setDeliveryType(F);
11N&&!N.ok&&r(N.error.message??n("drawer.foodDelivery.deliveryTypeError"))}return je(P),(F,N)=>{const z=c9,me=K0,ge=Xl,fe=Ae("PrimaryButton");return p(),y("div",l8e,[a(i).isLoading?(p(),y("div",c8e,[(p(),y(j,null,le(4,te=>c("div",{key:te,class:"h-[84px] animate-pulse rounded-[24px] bg-white"})),64))])):a(u)?(p(),y(j,{key:1},[c("section",u8e,[c("div",d8e,[c("button",{type:"button",class:oe(["flex h-12 flex-1 items-center justify-center gap-2 rounded-[8px] text-16 transition-all",a(u).deliveryType==="delivery"?lb:""]),disabled:a(i).isDeliveryTypeUpdating,onClick:N[0]||(N[0]=te=>R("delivery"))},[Qe(b(a(n)("drawer.foodDelivery.delivery"))+" ",1),a(d)?(p(),y("span",p8e,b(a(d)),1)):E("",!0)],10,f8e),a(i).restaurant?.pickup.enabled?(p(),y("button",{key:0,type:"button",class:oe(["h-12 flex-1 rounded-[8px] text-16 transition-all",a(u).deliveryType==="pickup"?lb:""]),disabled:a(i).isDeliveryTypeUpdating,onClick:N[1]||(N[1]=te=>R("pickup"))},b(a(n)("drawer.foodDelivery.pickup")),11,h8e)):E("",!0)])]),c("section",m8e,[c("div",g8e,[c("div",y8e,[c("p",_8e,b(a(k)),1),c("p",v8e,b(a(x)),1)]),T(z)]),a(u).deliveryType==="pickup"&&a(h)?(p(),y("p",b8e,b(a(h)),1)):E("",!0),a(u).deliveryType==="delivery"?(p(),y("button",{key:1,type:"button",class:"mt-4 inline-flex h-8 items-center gap-1 rounded-full bg-grey-90 px-3 text-13 text-black",onClick:I},[T(me),Qe(" "+b(a(n)("drawer.foodCart.courierComment")),1)])):E("",!0)]),a(u).items.length?(p(),y("section",x8e,[(p(!0),y(j,null,le(a(u).items,(te,V)=>(p(),y("article",{key:te.id||te.menuItemId,class:oe(["flex min-h-[68px] items-center gap-4",{"mt-4":V>0}])},[c("picture",k8e,[c("source",{srcset:$(te.imageUrl)},null,8,w8e),c("img",{src:w(te.imageUrl),alt:te.name,class:"h-full w-full object-cover"},null,8,C8e)]),c("div",$8e,[c("p",S8e,b(te.name),1),c("p",A8e,[Qe(b(te.amountText||te.priceText),1),te.portion?(p(),y(j,{key:0},[Qe(" · "+b(te.portion),1)],64)):E("",!0)])]),c("div",I8e,[c("button",{type:"button",class:"flex h-4 w-4 items-center justify-center text-24",disabled:S(te.menuItemId),onClick:pe=>D(te.menuItemId,te.count-1)},"â",8,T8e),c("span",P8e,b(te.count),1),c("button",{type:"button",class:"flex h-4 w-4 items-center justify-center text-24",disabled:S(te.menuItemId)||te.count>=99,onClick:pe=>D(te.menuItemId,te.count+1)},"+",8,D8e)])],2))),128))])):E("",!0),c("section",E8e,[c("div",L8e,[c("span",null,b(a(n)("drawer.foodCart.total")),1),c("span",null,b(a(u).totalAmountText),1)]),T(fe,{class:"mt-4",label:a(n)("drawer.foodCart.payByCard"),disabled:!a(u).canOrder,loading:a(g),onClick:L},{icon:Xe(()=>[T(ge,{class:"[&>path]:fill-white"})]),_:1},8,["label","disabled","loading"]),!a(u).canOrder&&a(u).canOrderError?(p(),y("p",R8e,b(a(u).canOrderError),1)):E("",!0)])],64)):E("",!0)])}}}),O8e=Object.assign(M8e,{__name:"FoodCartPanel"}),F8e={class:"flex h-full items-center justify-center px-4"},N8e={class:"w-full text-center"},B8e={class:"text-24-bold text-black"},V8e={class:"mt-6 space-y-3"},H8e=["disabled"],q8e=G({__name:"FoodCartClearPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=pf(),i=t;async function o(){const l=await r.clearCart();if(l){if(!l.ok){n(l.error.message??s("drawer.foodCart.clearError"));return}i("go",{to:"food-delivery",replace:!0})}}return(l,u)=>(p(),y("div",F8e,[c("div",N8e,[c("h1",B8e,b(a(s)("drawer.foodCart.clearTitle")),1),c("div",V8e,[c("button",{type:"button",class:"h-12 w-full rounded-[12px] bg-paleLime-primary text-16-bold text-white disabled:opacity-50",disabled:a(r).isClearing,onClick:o},b(a(s)("drawer.foodCart.clear")),9,H8e),c("button",{type:"button",class:"h-12 w-full rounded-[12px] bg-grey-90 text-16-bold text-black",onClick:u[0]||(u[0]=d=>i("go","back"))},b(a(s)("drawer.foodCart.cancel")),1)])])]))}}),j8e=Object.assign(q8e,{__name:"FoodCartClearPanel"}),U8e={class:"flex h-full flex-col"},z8e={class:"px-6"},W8e={class:"text-24-bold text-black"},G8e={class:"mt-2 text-16 text-grey-40"},Y8e={class:"mt-auto p-6"},K8e=G({__name:"FoodCartCommentPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=pf(),i=t,o=X(r.cart?.courierComment??"");async function l(){const u=await r.saveCourierComment(o.value);if(u){if(!u.ok){n(u.error.message??s("drawer.foodCart.commentError"));return}i("go","back")}}return(u,d)=>{const f=ti,h=Ae("PrimaryButton");return p(),y("div",U8e,[c("div",z8e,[c("h1",W8e,b(a(s)("drawer.foodCart.commentTitle")),1),c("p",G8e,b(a(s)("drawer.foodCart.commentSubtitle")),1),T(f,{modelValue:a(o),"onUpdate:modelValue":d[
110]||(d[0]=g=>it(o)?o.value=g:null),class:"mt-6 [&>div]:rounded-[12px]",multiline:"","max-length":500,"placeholder-text":a(s)("drawer.foodCart.commentPlaceholder")},null,8,["modelValue","placeholder-text"])]),c("div",Y8e,[T(h,{label:a(s)("drawer.foodCart.save"),loading:a(r).isCommentSaving,onClick:l},null,8,["label","loading"])])])}}}),Q8e=Object.assign(K8e,{__name:"FoodCartCommentPanel"}),X8e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function Z8e(e,t){return p(),y("svg",X8e,[...t[0]||(t[0]=[c("path",{fill:"#FA7A6E","fill-rule":"evenodd",d:"M10.7 5.833c.96 0 1.85.157 2.52.428.334.135.638.307.866.525.23.22.414.517.414.881v5c0 .364-.185.66-.414.88-.228.218-.531.391-.865.526-.67.271-1.562.427-2.52.427-.96 0-1.851-.156-2.521-.427-.334-.135-.638-.308-.867-.526-.229-.22-.412-.516-.413-.88v-5c0-.364.184-.662.413-.88.229-.219.533-.391.867-.526.67-.271 1.561-.428 2.52-.428m2.52 5.74c-.67.271-1.56.427-2.52.427-.959 0-1.85-.156-2.52-.427a4 4 0 0 1-.28-.128v1.222c0 .006.002.06.105.157.106.101.286.215.549.322.524.211 1.283.354 2.146.354s1.622-.143 2.146-.354c.263-.107.444-.22.55-.322.102-.098.104-.15.104-.157v-1.222q-.135.07-.28.128m0-2.5c-.67.271-1.56.427-2.52.427-.959 0-1.85-.156-2.52-.427a4 4 0 0 1-.28-.128v1.222l.013.042c.013.026.04.065.092.115.106.101.286.215.549.322.524.211 1.283.354 2.146.354s1.622-.143 2.146-.354c.263-.107.444-.22.55-.322a.4.4 0 0 0 .091-.115l.013-.042V8.945q-.135.07-.28.128m-2.52-2.24c-.863 0-1.622.143-2.146.354-.263.107-.443.22-.55.322-.104.1-.104.154-.104.158 0 .006.002.06.105.157.106.101.286.215.549.322.524.211 1.283.354 2.146.354s1.622-.143 2.146-.354c.263-.107.444-.22.55-.322.102-.098.104-.15.104-.157 0-.004 0-.058-.104-.158-.106-.101-.287-.215-.55-.322-.524-.211-1.283-.354-2.146-.354","clip-rule":"evenodd"},null,-1),c("path",{fill:"#FA7A6E","fill-rule":"evenodd",d:"M5.3 1.5c.959 0 1.85.156 2.52.427.334.135.638.308.867.526.229.22.413.516.413.88v1a.5.5 0 0 1-.935.243q-.165.09-.345.163c-.67.271-1.561.428-2.52.428s-1.85-.157-2.52-.428a4 4 0 0 1-.28-.128V6c0 .004 0 .051.089.142.09.092.247.2.481.302.468.206 1.152.355 1.949.384q.138.005.28.005a.5.5 0 0 1 0 1q-.16 0-.318-.006c-.885-.032-1.7-.198-2.313-.468q-.086-.039-.168-.08v1.388l.013.042a.4.4 0 0 0 .091.115c.106.101.287.215.55.322.524.211 1.283.354 2.146.354a.5.5 0 1 1 0 1c-.96 0-1.85-.156-2.52-.427a4 4 0 0 1-.28-.128v1.388c0 .004 0 .058.104.158.106.101.287.215.55.322.524.211 1.283.354 2.146.354a.5.5 0 0 1 0 1c-.96 0-1.85-.157-2.52-.428-.334-.135-.638-.307-.866-.525-.23-.22-.414-.517-.414-.881v-8c0-.364.185-.66.414-.88.228-.218.532-.391.865-.526.67-.271 1.562-.427 2.52-.427m0 1c-.863 0-1.622.143-2.146.354-.263.107-.444.22-.55.322-.102.098-.104.15-.104.157 0 .004 0 .058.104.158.106.101.287.215.55.321.524.212 1.283.355 2.146.355s1.622-.143 2.146-.354c.263-.107.443-.22.55-.322.104-.1.104-.154.104-.158 0-.006-.002-.06-.105-.157-.106-.101-.286-.215-.549-.322C6.922 2.643 6.163 2.5 5.3 2.5","clip-rule":"evenodd"},null,-1)])])}const u9={render:Z8e},J8e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function exe(e,t){return p(),y("svg",J8e,[...t[0]||(t[0]=[c("path",{fill:"#999",d:"M7.41 9.254a.75.75 0 0 1 0 1.492l-.077.004H4.666a.75.75 0 0 1 0-1.5h2.667z"},null,-1),c("path",{fill:"#999","fill-rule":"evenodd",d:"M12.4 2.583c.268 0 .514 0 .718.018.213.017.447.056.677.173.329.168.597.436.765.765.117.23.156.464.173.677.017.204.017.45.017.718v6.133c0 .268 0 .514-.017.718a1.8 1.8 0 0 1-.173.677 1.75 1.75 0 0 1-.765.765c-.23.117-.464.157-.677.174-.204.017-.45.016-.718.016H3.6c-.268 0-.514.001-.718-.016a1.8 1.8 0 0 1-.677-.174 1.75 1.75 0 0 1-.765-.765 1.8 1.8 0 0 1-.173-.677c-.017-.204-.017-.45-.017-.718V4.934c0-.268 0-.514.017-.718.017-.213.056-.447.173-.677.168-.329.436-.597.765-.765.23-.117.464-.156.677-.173.204-.017.45-.018.718-.018zM2.75 6.75v4.317c0 .293 0 .467.01.596.01.118.025.133.017.118a.25.25 0 0 0 .11.109c.012.003.046.01.117.016.129.01.303.011.596.011h8.8c.293 0 .467 0 .596-.01a1 1 0 0 0 .117-.017.25.25 0 0 0 .11-.109c-.008.015.007 0 .016-.118.01-.129.011-.303.011-.596V6.75zm.85-2.666c-.293 0-.467 0-.596.01a1 1 0 0 0-.117.017.25.25 0 0 0-.11.11 1 1 0 0 0-.016.117c-.01.129-.011.304-.011.596v.316
11h10.5v-.316c0-.292 0-.467-.01-.596a1 1 0 0 0-.017-.117.25.25 0 0 0-.11-.11 1 1 0 0 0-.117-.016c-.129-.01-.303-.011-.596-.011z","clip-rule":"evenodd"},null,-1)])])}const yg={render:exe},txe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function sxe(e,t){return p(),y("svg",txe,[...t[0]||(t[0]=[c("path",{fill:"#2D3666",d:"M8.643 12a1 1 0 0 1 0 2h-2.7a1 1 0 0 1 0-2zM18.2 12a1 1 0 0 1 0 2h-2.7a1 1 0 0 1 0-2z"},null,-1),c("path",{fill:"#2D3666","fill-rule":"evenodd",d:"M15.324 4c.663 0 1.262-.016 1.794.187.433.166.82.436 1.123.788.374.436.553 1.007.76 1.615l.777 2.266.784-.38a1 1 0 0 1 .875 1.798l-.382.185q.316.343.537.76c.234.447.326.922.368 1.423.04.49.04 1.09.04 1.808v2.362c0 .358.005.687-.055.98a2.78 2.78 0 0 1-2.204 2.156c-.292.056-.62.052-.991.052h-.45c-1.33 0-2.477-.922-2.743-2.188H8.442C8.176 19.078 7.03 20 5.7 20h-.45c-.372 0-.7.004-.991-.052a2.78 2.78 0 0 1-2.205-2.156c-.06-.293-.054-.623-.054-.98V14.45c0-.718-.001-1.318.04-1.808.042-.501.133-.976.368-1.423.145-.278.327-.532.536-.76l-.382-.185a1 1 0 0 1 .875-1.799l.783.381.778-2.266c.208-.608.386-1.18.76-1.615a2.8 2.8 0 0 1 1.124-.788C7.413 3.984 8.012 4 8.676 4zM7.32 11.25c-.772 0-1.293 0-1.694.032-.39.031-.582.088-.708.15-.322.16-.58.412-.739.715-.06.114-.115.29-.146.662C4 13.195 4 13.7 4 14.45v2.362c0 .454.005.534.014.578.059.285.294.53.624.594.056.011.147.016.612.016h.45c.468 0 .8-.362.8-.75 0-.82.676-1.438 1.45-1.438h8.1c.773 0 1.45.618 1.45 1.438 0 .387.331.75.8.75h.45c.464 0 .555-.005.611-.016a.78.78 0 0 0 .624-.594c.01-.044.015-.123.015-.578V14.45c0-.752-.001-1.255-.034-1.64-.03-.374-.086-.549-.146-.663a1.67 1.67 0 0 0-.738-.715c-.127-.062-.318-.119-.708-.15-.402-.032-.923-.032-1.695-.032zM8.676 6c-.83 0-.977.016-1.08.055a.8.8 0 0 0-.322.224c-.063.074-.12.19-.385.96l-.692 2.018q.504-.009 1.123-.007h9.36q.618-.002 1.122.007l-.692-2.018c-.264-.769-.322-.886-.385-.96a.8.8 0 0 0-.321-.224c-.103-.039-.251-.055-1.08-.055z","clip-rule":"evenodd"},null,-1)])])}const nxe={render:sxe},_g=Ke("cards",{state:()=>({isLoading:!1,error:null,cards:[]}),actions:{async fetchCards(){this.isLoading=!0,this.error=null;const t=await ue().fetchCards();return t.ok?this.cards=t.data.cards:this.error=t.error,this.isLoading=!1,t},async deleteCard(e){this.isLoading=!0;const s=await ue().deleteCard(e);s.ok?this.fetchCards():(this.error=s.error,this.isLoading=!1)},async prioritizeCard(e){this.isLoading=!0;const s=await ue().prioritizeCard(e);s.ok?this.fetchCards():(this.error=s.error,this.isLoading=!1)}}}),rxe={class:"min-h-full bg-grey-90 pb-4"},ixe={key:0,class:"space-y-2 p-4"},oxe={class:"rounded-[24px] bg-white p-4 text-center"},axe=["src"],lxe={key:1,class:"mx-auto flex h-[72px] w-[72px] items-center justify-center rounded-full border-2 border-grey-70 p-2"},cxe={class:"mt-4 text-24-bold text-black"},uxe={class:"mx-auto mt-2 max-w-[328px] whitespace-pre-line text-16 text-grey-40"},dxe={class:"mt-2 rounded-[24px] bg-white p-4"},fxe={class:"text-16 text-black"},pxe={class:"mt-4 space-y-2"},hxe={class:"rounded-[12px] bg-grey-90 p-4"},mxe={class:"flex items-center justify-between gap-2 text-13 text-grey-40"},gxe={class:"mt-1 text-16 text-black"},yxe={key:0,class:"rounded-[12px] bg-grey-90 p-4"},_xe={class:"flex items-center justify-between gap-2 text-13 text-grey-40"},vxe={class:"mt-1 text-16 text-black"},bxe={class:"rounded-[12px] bg-grey-90 p-4"},xxe={class:"flex items-center justify-between gap-2 text-13 text-grey-40"},kxe={class:"mt-1 text-16 text-black"},wxe=["disabled"],Cxe={class:"flex items-center justify-between gap-2 text-13 text-grey-40"},$xe={class:"mt-1 text-16 text-black"},Sxe={class:"mt-2 rounded-[24px] bg-white p-4"},Axe={class:"text-16 text-black"},Ixe={class:"mt-4 space-y-2"},Txe={class:"h-[52px] w-[52px] flex-none overflow-hidden rounded-[12px] bg-grey-80"}
11,Pxe=["srcset"],Dxe=["src","alt"],Exe={class:"min-w-0 flex-1"},Lxe={class:"text-13 text-black"},Rxe={class:"mt-1 text-11 text-grey-40"},Mxe={key:0},Oxe={class:"mt-2 flex min-h-[52px] items-center gap-3"},Fxe={class:"flex h-[52px] w-[52px] items-center justify-center rounded-[12px] bg-purple-90"},Nxe={class:"text-13 text-black"},Bxe={class:"mt-1 text-11 text-black"},Vxe={key:0,class:"sticky bottom-0 mt-2 space-y-2 rounded-t-[24px] bg-white p-4"},Hxe=["disabled"],qxe=G({__name:"FoodOrderPanel",emits:["close","go"],setup(e,{emit:t}){const s=st(),{t:n}=be(),{$showSnackbar:r}=Te(),i=Vu(),o=_g(),l=t,u=A(()=>i.order),d=X(0);let f=null;const h=A(()=>!!(u.value?.canPay&&d.value>0)),g=A(()=>{const S=u.value?.paymentStatusText.toLowerCase()??"";return S.includes("оплаÑен")&&!S.includes("не оплаÑен")?"text-emerald-primary":"text-red-50"});function m(S){return typeof S=="string"?S:""}function _(S){return S?`${S}.png`:""}function v(S){return S?`${S}.png 1x, ${S}_x2.png 2x, ${S}_x3.png 3x`:""}function k(){f&&clearInterval(f),d.value=u.value?.paymentSecondsLeft??0,!(d.value<=0)&&(f=i9(async()=>{d.value=Math.max(0,d.value-1),d.value===0&&(f&&clearInterval(f),f=null,u.value?.id&&await i.load(u.value.id))},1e3))}async function x(){const S=await o.fetchCards();if(!S.ok){r(S.error.message??n("drawer.foodPayment.cardsError"));return}l("go",{to:S.data.cards.length?"food-order-payment":"food-order-card-add",query:{open_payment:void 0}})}function C(){u.value?.status==="awaiting_payment"&&l("go","food-order-comment")}async function w(){const S=await i.cancel();S&&!S.ok&&r(S.error.message??n("drawer.foodOrder.cancelError"))}async function $(){const S=Number(m(s.query.food_order_id)||i.order?.id||0);if(!S){r(n("drawer.foodOrder.loadError")),l("close");return}const I=await i.load(S);if(!I.ok){r(I.error.message??n("drawer.foodOrder.loadError")),l("close");return}k(),m(s.query.open_payment)==="1"&&I.data.canPay&&x()}return je($),Tt(()=>{f&&clearInterval(f)}),(S,I)=>{const P=u9,L=yg,D=c9,R=K0,F=nxe,N=Ae("PrimaryButton");return p(),y("div",rxe,[a(i).isLoading?(p(),y("div",ixe,[...I[0]||(I[0]=[c("div",{class:"h-48 animate-pulse rounded-[24px] bg-white"},null,-1),c("div",{class:"h-80 animate-pulse rounded-[24px] bg-white"},null,-1)])])):a(u)?(p(),y(j,{key:1},[c("section",oxe,[a(u).statusIconUrl?(p(),y("img",{key:0,src:`${a(u).statusIconUrl}_x3.png`,alt:"",class:"mx-auto h-[72px] w-[72px] object-contain"},null,8,axe)):(p(),y("div",lxe,[...I[1]||(I[1]=[c("span",{class:"flex h-full w-full items-center justify-center rounded-full bg-[#2D3666] text-24-bold text-white"},"â½",-1)])])),c("h1",cxe,b(a(u).statusTitle),1),c("p",uxe,b(a(u).statusDescription),1)]),c("section",dxe,[c("h2",fxe,b(a(u).deliveryTitle),1),c("div",pxe,[c("div",hxe,[c("div",mxe,[c("p",null,b(a(n)("drawer.foodOrder.amount")),1),T(P,{"aria-hidden":"true",class:"shrink-0 [&>path]:fill-grey-40"})]),c("p",gxe,[Qe(b(a(u).totalAmountText),1),a(u).paymentStatusText?(p(),y(j,{key:0},[I[2]||(I[2]=Qe(" · ",-1)),c("span",{class:oe(a(g))},b(a(u).paymentStatusText),3)],64)):E("",!0)])]),a(u).paidFrom?(p(),y("div",yxe,[c("div",_xe,[c("p",null,b(a(n)("drawer.foodOrder.paymentMethod")),1),T(L,{"aria-hidden":"true",class:"shrink-0"})]),c("p",vxe,b(a(u).paidFrom),1)])):E("",!0),c("div",bxe,[c("div",xxe,[c("p",null,b(a(u).addressTitle),1),T(D,{"aria-hidden":"true",class:"shrink-0"})]),c("p",kxe,[Qe(b(a(u).address),1),a(u).addressDetails?(p(),y(j,{key:0},[Qe(", "+b(a(u).addressDetails),1)],64)):E("",!0)])]),a(u).courierComment?(p(),y("button",{key:1,type:"button",class:"w-full rounded-[12px] bg-grey-90 p-4 text-left",disabled:a(u).status!=="awaiting_payment",onClick:C},[c("div",Cxe,[c("p",null,b(a(n)("drawer.foodOrder.comment")),1),T(R,{"aria-hidden":"true",class:"shrink-0 [&>path]:fill-grey-40"})]),c("p",$xe,b(a(u).courierComment),1)],8,wxe)):E("",!0)])]),c("section",Sxe,[c("h2",Axe,b(a(n)("drawer.foodOrder.contents")),1),c("div",Ixe,[(p(!0),y(j,null,le(a(u).items,z=>(p(),y("article",{key:z.id+z.name,class:"flex min-h-[52px] items-center gap-3"},[c("picture",Txe,[c("source",{srcset:v(z.imageUrl)},null,8,Pxe),c("img",{src:_(z.imageUrl),alt:z.name,class:"h-full w-full object-cover"},null,8,Dxe)]),c("div",Exe,[c("p",Lxe,b(z.name),1),c("p",Rxe,[Qe(b(z.amountText||z.priceText),
111),z.count?(p(),y(j,{key:0},[Qe(" · "+b(z.count)+" "+b(a(n)("drawer.foodOrder.pieces")),1)],64)):E("",!0)])])]))),128)),a(u).deliveryAmountText?(p(),y("div",Mxe,[I[3]||(I[3]=c("div",{class:"ml-16 border-t border-grey-80"},null,-1)),c("div",Oxe,[c("div",Fxe,[T(F)]),c("div",null,[c("p",Nxe,b(a(n)("drawer.foodDelivery.delivery")),1),c("p",Bxe,b(a(u).deliveryAmountText),1)])])])):E("",!0)])]),a(h)||a(u).canCancel?(p(),y("section",Vxe,[a(h)?(p(),K(N,{key:0,label:a(n)("drawer.foodOrder.pay"),loading:a(o).isLoading,onClick:x},null,8,["label","loading"])):E("",!0),a(u).canCancel?(p(),y("button",{key:1,type:"button",class:"h-12 w-full rounded-[12px] bg-grey-90 text-16-bold text-black disabled:opacity-50",disabled:a(i).isCancelling,onClick:w},b(a(n)("drawer.foodOrder.cancel")),9,Hxe)):E("",!0)])):E("",!0)],64)):E("",!0)])}}}),jxe=Object.assign(qxe,{__name:"FoodOrderPanel"}),Uxe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function zxe(e,t){return p(),y("svg",Uxe,[...t[0]||(t[0]=[ls('<path fill="#11986C" d="M22 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM36 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM50 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM64 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3z"></path><path fill="#11986C" fill-rule="evenodd" d="M29.6 24.5c1.095 0 2.007-.001 2.75.06.76.062 1.473.196 2.147.54a5.5 5.5 0 0 1 2.403 2.403c.344.674.478 1.388.54 2.147.061.743.06 1.655.06 2.75v3.2c0 1.095.001 2.007-.06 2.75-.062.76-.196 1.473-.54 2.147a5.5 5.5 0 0 1-2.403 2.403c-.674.344-1.388.478-2.147.54-.743.061-1.655.06-2.75.06h-7.2c-1.095 0-2.007.001-2.75-.06-.76-.062-1.473-.196-2.147-.54a5.5 5.5 0 0 1-2.403-2.403c-.344-.674-.478-1.388-.54-2.147-.061-.743-.06-1.655-.06-2.75v-3.2c0-1.095-.001-2.007.06-2.75.062-.76.196-1.473.54-2.147a5.5 5.5 0 0 1 2.403-2.403c.674-.344 1.388-.478 2.147-.54.743-.061 1.655-.06 2.75-.06zm-7.2 3c-1.144 0-1.914.002-2.505.05-.574.047-.849.13-1.03.223a2.5 2.5 0 0 0-1.092 1.092c-.093.181-.176.456-.223 1.03-.049.591-.05 1.36-.05 2.505v3.2c0 1.145.002 1.914.05 2.505.047.574.13.849.223 1.03a2.5 2.5 0 0 0 1.092 1.093c.181.092.456.175 1.03.222.591.048 1.36.05 2.505.05h7.2c1.144 0 1.914-.002 2.505-.05.574-.047.849-.13 1.03-.223a2.5 2.5 0 0 0 1.093-1.092c.092-.181.175-.456.222-1.03.048-.591.05-1.36.05-2.505v-3.2c0-1.144-.002-1.914-.05-2.505-.047-.574-.13-.849-.223-1.03a2.5 2.5 0 0 0-1.092-1.092c-.181-.093-.456-.176-1.03-.223-.591-.049-1.36-.05-2.505-.05z" clip-rule="evenodd"></path><path fill="#11986C" d="M59.705 26.018a1.5 1.5 0 0 1 2.121 0 11.29 11.29 0 0 1 0 15.964 1.5 1.5 0 0 1-2.12-2.12 8.29 8.29 0 0 0 1.796-9.034 8.3 8.3 0 0 0-1.797-2.69 1.5 1.5 0 0 1 0-2.12"></path><path fill="#11986C" d="M55.44 30.439a1.5 1.5 0 0 1 2.12 0 5.04 5.04 0 0 1 0 7.123 1.5 1.5 0 0 1-2.12-2.122 2.04 2.04 0 0 0 0-2.88 1.5 1.5 0 0 1 0-2.122"></path><path fill="#11986C" fill-rule="evenodd" d="M61.2 14.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v4.797l4.63 1.24 1.522.411c1.442.391 2.643.735 3.642 1.092 1.348.482 2.453 1.028 3.372 1.856a9.5 9.5 0 0 1 2.935 5.086c.257 1.21.179 2.439-.078 3.847a37 37 0 0 1-.52 2.328 2 2 0 0 1-.036.19q-.023.084-.055.163c-.197.771-.421 1.615-.67 2.542l-5.798 21.636c-.573 2.14-1.026 3.833-1.502 5.164-.481 1.348-1.028 2.451-1.856 3.37a9.5 9.5 0 0 1-5.084 2.937c-1.21.257-2.44.178-3.849-.078-1.39-.254-3.083-.707-5.222-1.28L25.976 73.126c-2.14-.573-3.832-1.026-5.163-1.502-1.348-.482-2.452-1.029-3.372-1.856a9.5 9.5 0 0 1-2.736-4.311 29 29 0 0 1-1.281-.071c-1.427-.117-2.634-.36-3.736-.921a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.087-1.057-.108-2.306-.113-3.8L4.5 51.2V28.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c1.
11102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115zm14.103 42.856c-.139 1.095-.382 2.06-.838 2.956a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H18.8l-.872-.002c.365.77.88 1.464 1.52 2.04.508.457 1.202.842 2.374 1.26 1.19.426 2.742.844 4.93 1.43l40.955 10.974c2.188.586 3.742 1.001 4.984 1.228 1.225.223 2.018.236 2.687.094a6.5 6.5 0 0 0 3.478-2.008c.458-.508.843-1.2 1.262-2.373.425-1.19.843-2.743 1.429-4.931l3.546-13.234zM18.8 17.5c-2.265 0-3.873.002-5.132.105-1.241.1-2.01.293-2.62.603a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.132v22.4l.002 1.58c.005 1.467.025 2.608.102 3.552.102 1.241.294 2.01.604 2.62a6.5 6.5 0 0 0 2.84 2.84c.61.31 1.379.502 2.62.603 1.259.103 2.867.105 5.132.105h42.4c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V28.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.603-1.259-.103-2.867-.105-5.132-.105zm56.7 33.7c0 1.152 0 2.18-.017 3.098L85.87 57.08l1.476-5.506q.178-.665.334-1.256L75.5 47.056zm0-7.25 12.906 3.458q.096-.43.166-.816c.224-1.225.237-2.018.095-2.687a6.5 6.5 0 0 0-2.009-3.48c-.508-.456-1.201-.84-2.374-1.26-.892-.319-1.989-.634-3.404-1.018l-1.525-.412-3.855-1.033z" clip-rule="evenodd"></path>',5)])])}const d9={render:zxe},Wxe={class:"flex h-full items-center justify-center px-4 py-6 text-center"},Gxe={class:"w-full"},Yxe={class:"flex justify-center"},Kxe={class:"mt-6 text-24-bold text-black"},Qxe={class:"mt-2 text-16 text-grey-40"},Xxe={class:"mt-6 space-y-2 text-left"},Zxe=["onClick"],Jxe={class:"min-w-0 flex-1 text-16 text-black"},eke={key:0,class:"h-3 w-3 rounded-full bg-paleLime-primary"},tke={class:"mt-6 space-y-3"},ske=G({__name:"FoodOrderPaymentPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=Vu(),i=_g(),{cards:o}=ho(i),l=t,u=X(""),d=X(!1);function f(){u.value=o.value.find(m=>m.isPriority)?.cardId??o.value[0]?.cardId??""}async function h(){const m=await i.fetchCards();if(!m.ok){n(m.error.message??s("drawer.foodPayment.cardsError"));return}f(),o.value.length||l("go","food-order-card-add")}async function g(){if(!u.value)return;const m=await r.pay(u.value);if(!m)return;if(m.ok){l("go",{to:"food-order-payment-success",replace:!0});return}const _=m.error.message?.toLowerCase()??"";if(m.error.status===404){await h();return}if(m.error.code===1){l("go","food-order-card-add");return}if(m.error.code===97){d.value=!0,window.setTimeout(async()=>{const v=r.order?.id;if(v){const k=await r.load(v);if(k.ok&&k.data.status!=="awaiting_payment"){l("go",{to:"food-order",replace:!0});return}}d.value=!1},2e3);return}if(_.includes("иÑÑекло")||_.includes("Ñже оплаÑен")){const v=r.order?.id;v&&await r.load(v),l("go",{to:"food-order",replace:!0});return}r.error=m.error,l("go",{to:"food-order-payment-error",replace:!0})}return je(()=>{h()}),(m,_)=>{const v=d9,k=Xl,x=Ae("PrimaryButton");return p(),y("div",Wxe,[c("div",Gxe,[c("div",Yxe,[T(v)]),c("h1",Kxe,b(a(s)("drawer.foodPayment.title")),1),c("p",Qxe,b(a(s)("drawer.foodPayment.charge",{amount:a(r).order?.totalAmountText??""})),1),c("div",Xxe,[(p(!0),y(j,null,le(a(o),C=>(p(),y("button",{key:C.cardId,type:"button",class:"flex h-14 w-full items-center gap-4 roun
11ded-[12px] bg-grey-90 px-4",onClick:w=>u.value=C.cardId},[T(k),c("span",Jxe,b(a(s)("drawer.foodPayment.card"))+" "+b(C.number),1),c("span",{class:oe(["flex h-6 w-6 items-center justify-center rounded-full border-[3px]",a(u)===C.cardId?"border-paleLime-primary":"border-grey-70"])},[a(u)===C.cardId?(p(),y("span",eke)):E("",!0)],2)],8,Zxe))),128)),c("button",{type:"button",class:"flex h-14 w-full items-center gap-4 rounded-[12px] border border-dashed border-grey-80 px-4 text-16 text-black",onClick:_[0]||(_[0]=C=>l("go","food-order-card-add"))},[_[2]||(_[2]=c("span",{class:"text-24"},"+",-1)),Qe(" "+b(a(s)("drawer.foodPayment.bindCard")),1)])]),c("div",tke,[T(x,{label:a(s)("drawer.foodPayment.confirm"),disabled:!a(u),loading:a(r).isPaying||a(d),onClick:g},null,8,["label","disabled","loading"]),T(x,{label:a(s)("drawer.foodCart.cancel"),variant:"secondary",onClick:_[1]||(_[1]=C=>l("go","back"))},null,8,["label"])])])])}}}),nke=Object.assign(ske,{__name:"FoodOrderPaymentPanel"}),rke={class:"flex h-full items-center justify-center px-4"},ike={class:"w-full text-center"},oke={class:"text-24-bold text-black"},ake={class:"mt-2 text-16 text-grey-40"},lke=["disabled"],cke=G({__name:"FoodOrderCommentPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=Vu(),i=t,o=X(r.order?.courierComment??"");async function l(){const u=await r.saveComment(o.value);if(u){if(!u.ok){n(u.error.message??s("drawer.foodOrder.commentError"));return}i("go","back")}}return(u,d)=>(p(),y("div",rke,[c("div",ike,[c("h1",oke,b(a(s)("drawer.foodCart.commentTitle")),1),c("p",ake,b(a(s)("drawer.foodCart.commentSubtitle")),1),pn(c("textarea",{"onUpdate:modelValue":d[0]||(d[0]=f=>it(o)?o.value=f:null),maxlength:"500",rows:"2",class:"mt-6 h-20 w-full resize-none rounded-[12px] border border-grey-80 px-3 py-4 text-16 text-black outline-none focus:border-grey-40"},null,512),[[jr,a(o)]]),c("button",{type:"button",class:"mt-6 h-12 w-full rounded-[12px] bg-paleLime-primary text-16-bold text-white disabled:opacity-50",disabled:a(r).isCommentSaving,onClick:l},b(a(s)("drawer.foodCart.save")),9,lke)])]))}}),uke=Object.assign(cke,{__name:"FoodOrderCommentPanel"}),dke={class:"flex h-full flex-col"},fke={class:"px-6"},pke={class:"text-24-bold text-black"},hke={class:"mt-2 text-16 text-grey-40"},mke={class:"mt-6"},gke={class:"mt-3 grid grid-cols-2 gap-3"},yke={class:"mt-auto p-6"},_ke=["disabled"],vke={key:0,class:"h-6 w-6 animate-spin rounded-full border-2 border-white border-t-transparent"},bke={key:1},xke=G({__name:"FoodOrderCardAddPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=kr(),{cardForm:i,isFormValid:o}=ho(r),l=t,u=X(null),d=X(null);Se(()=>i.value.cardNumber.replace(/\s/g,""),(h,g="")=>{h.length===16&&g.length!==16&<(()=>u.value?.focus())}),Se(()=>i.value.expDate,(h,g="")=>{h.length===5&&g.length!==5&<(()=>d.value?.focus())});async function f(){if(!o.value)return;const h=await r.submitCardForm();if(!h.ok){n(h.error.message??s("card.processingError"));return}if(h.data.secureCheckNeeded){Nu().card=h.data,l("go","food-order-card-secure");return}r.resetForm(),l("go","back")}return je(()=>{r.resetForm(),r.loadCpKey()}),(h,g)=>{const m=Ae("LabeledTextField");return p(),y("div",dke,[c("div",fke,[c("h1",pke,b(a(s)("drawer.foodPayment.cardTitle")),1),c("p",hke,b(a(s)("drawer.foodPayment.cardDescription")),1),c("div",mke,[T(m,{ref:"cardNumberField",modelValue:a(i).cardNumber,"onUpdate:modelValue":g[0]||(g[0]=_=>a(i).cardNumber=_),class:"[&>div]:rounded-[12px]",label:a(s)("drawerNewCard.number"),"digits-only-on-paste":!0,formatter:a(r).formatCardNumber,"input-mode":"numeric"},null,8,["modelValue","label","formatter"]),c("div",gke,[T(m,{ref_key:"expDateField",ref:u,modelValue:a(i).expDate,"onUpdate:modelValue":g[1]||(g[1]=_=>a(i).expDate=_),class:"[&>div]:rounded-[12px]",label:a(s)("drawerNewCard.date"),formatter:a(r).formatExpDate,"input-mode":"numeric"},null,8,["modelValue","label","formatter"]),T(m,{ref_key:"cvvField",ref:d,modelValue:a(i).cvv,"onUpdate:modelValue":g[2]||(g[2]=_=>a(i).cvv=_),class:"[&>
11div]:rounded-[12px]",label:a(s)("drawerNewCard.cvv"),type:"password","digits-only-on-paste":!0,formatter:a(q0)(3),"input-mode":"numeric"},null,8,["modelValue","label","formatter"])])])]),c("div",yke,[c("button",{type:"button",class:"flex h-12 w-full items-center justify-center rounded-[12px] bg-paleLime-primary text-16-bold text-white disabled:opacity-50",disabled:!a(o)||a(r).isCreating,onClick:f},[a(r).isCreating?(p(),y("span",vke)):(p(),y("span",bke,b(a(s)("drawer.foodPayment.bindCard")),1))],8,_ke)])])}}}),kke=Object.assign(xke,{__name:"FoodOrderCardAddPanel"}),wke={class:"flex h-full items-center justify-center px-4 py-6 text-center"},Cke={class:"w-full"},$ke={class:"flex justify-center"},Ske={class:"mt-6 text-24-bold text-black"},Ake={class:"mt-2 text-16 text-grey-40"},Ike={class:"mt-6 space-y-3"},Tke=G({__name:"FoodOrderPaymentSuccessPanel",emits:["close","go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go",{to:"food-order",replace:!0})}return(i,o)=>{const l=ng,u=Ae("PrimaryButton");return p(),y("div",wke,[c("div",Cke,[c("div",$ke,[T(l)]),c("h1",Ske,b(a(s)("drawer.foodPayment.successTitle")),1),c("p",Ake,b(a(s)("drawer.foodPayment.successDescription")),1),c("div",Ike,[T(u,{label:a(s)("drawer.foodPayment.goToOrder"),onClick:r},null,8,["label"]),T(u,{label:a(s)("close"),variant:"secondary",onClick:o[0]||(o[0]=d=>n("close"))},null,8,["label"])])])])}}}),Pke=Object.assign(Tke,{__name:"FoodOrderPaymentSuccessPanel"}),Dke={class:"flex h-full items-center justify-center px-4 py-6 text-center"},Eke={class:"w-full"},Lke={class:"mt-6 text-24-bold text-black"},Rke={class:"mx-auto mt-2 max-w-[328px] text-16 text-grey-40"},Mke={class:"mt-6 space-y-3"},Oke=G({__name:"FoodOrderPaymentErrorPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go",{to:"food-order-payment",replace:!0})}function i(){n("go",{to:"food-order",replace:!0})}return(o,l)=>{const u=ya;return p(),y("div",Dke,[c("div",Eke,[T(u),c("h1",Lke,b(a(s)("drawer.foodPayment.errorTitle")),1),c("p",Rke,b(a(s)("drawer.foodPayment.errorDescription")),1),c("div",Mke,[c("button",{type:"button",class:"h-12 w-full rounded-[12px] bg-paleLime-primary text-16-bold text-white",onClick:r},b(a(s)("drawer.foodPayment.retry")),1),c("button",{type:"button",class:"h-12 w-full rounded-[12px] bg-grey-90 text-16-bold text-black",onClick:i},b(a(s)("drawer.foodPayment.goToOrder")),1)])])])}}}),Fke=Object.assign(Oke,{__name:"FoodOrderPaymentErrorPanel"});let xc=null;const f9=Ke("drawerClaims",{state:()=>({isLoading:{subCategories:!0,categories:!0,search:!1},workCategories:[],currentCategoryId:"",categories:[],anotherWorkTypeId:"",error:null,searchQuery:""}),getters:{hasData(e){return e.workCategories.length>0||e.categories.length>0}},actions:{async loadCategoriesWorks(e){this.currentCategoryId=e,this.isLoading.subCategories=!0,this.error=null;const t=Oe(),n=await ue().fetchCategoriesWorks(t.residence?.premisesId??"",e);return n.ok?this.workCategories=n.data.workTypes??[]:this.error=n.error,this.isLoading.subCategories=!1,n},getStartWorkId(e,t){return e.ok?(this.categories=e.data.categories??[],t||(this.categories[0]?.id??null??"")):""},async loadCategories(e){this.isLoading.categories=!0;const t=Oe(),n=await ue().fetchFlatClaimsCategories(t.residence?.premisesId??"");return n.ok||(this.categories=[]),this.isLoading.categories=!1,n},async loadAll(e){await this.loadCategories(e)},async updateSearchQuery(e){if(this.searchQuery=e,xc&&xc.abort(),e.length===0){this.isLoading.search=!1,this.loadCategoriesWorks(this.currentCategoryId);return}const t=typeof AbortController<"u"?new AbortController:null;xc=t,this.isLoading.search=!0;try{const s=Oe(),r=await ue().fetchCategoriesWorksSearch(s.residence?.premisesId??"",e);r.ok?this.workCategories=r.data.workTypes??[]:this.error=r.error,this.isLoading.search=!1}catch(s){s?.name!=="AbortError"&&(this.error=s??null,this.isLoading.search=!1)}finally{this.isLoading.search=!1,xc===t&&(xc=null)}}}}),Al=Ke("drawerClaimFlow",{state:()=>({step:"category-list",selectedCategoryId:"",selectedCategoryTitle:"",selectedWorkId:"",selectedWorkTitle:"",customWorkId:"",pendingCategoryId:"",claimId:""}),getters:{hasCategory(e){return!!e.selectedCategoryId},isWorkRequest(e){return e.step==="work-request"}
11,isCustomRequest(e){return e.step==="custom-request"}},actions:{startWithCategory(e,t){this.selectedCategoryId=e,this.selectedCategoryTitle=t,this.selectedWorkId="",this.selectedWorkTitle="",this.customWorkId="",this.step="work-list"},startCustom(e,t){this.selectedCategoryId="custom",this.selectedCategoryTitle=e,this.selectedWorkId="",this.selectedWorkTitle="",this.customWorkId=t,this.step="custom-request"},openWorkRequest(e,t){this.selectedWorkId=e,this.selectedWorkTitle=t,this.customWorkId="",this.step="work-request"},openCustomRequest(e,t){this.customWorkId=e,this.selectedWorkTitle=t,this.selectedWorkId="",this.step="custom-request"},backToWorkList(){this.selectedWorkId="",this.selectedWorkTitle="",this.customWorkId="",this.step="work-list"},saveClaimId(e){this.claimId=e},queueCategory(e){this.pendingCategoryId=e??""},consumePendingCategory(){const e=this.pendingCategoryId;return this.pendingCategoryId="",e},resetFlow(){this.$reset()}}}),Nke=Ke("claimCategory",{state:()=>({isLoading:!1,category:"",categoryId:"",items:[],error:null}),actions:{startLoad(e,t){return this.category=e??"",this.categoryId=t??"",this.loadInfo()},async loadInfo(){if(!this.categoryId){this.items=[];return}this.isLoading=!0,this.error=null;const e=ue(),t=Oe(),s=await e.fetchCategoriesWorks(t.residence?.premisesId??"",this.categoryId??"");s.ok?this.items=s.data.workTypes??[]:(this.items=[],this.error=s.error),this.isLoading=!1}}});let Wi=null;const p9=Ke("claimCategoryRequest",{state:()=>({isLoading:!1,isStartLoading:!1,wasLoad:!1,isEnabled:!1,isAmountLoading:!1,amountPrice:0,error:null,categoryValue:"",subCategoryValue:"",workId:"",categoryPriceValue:0,commentValue:"",countValue:"",countPlaceholder:""}),actions:{resetState(){Wi&&(Wi.abort(),Wi=null),this.$reset()},async startLoad(e){if(this.wasLoad)return;this.wasLoad=!0,this.isStartLoading=!0,this.workId=e??"";const t=ue(),s=Oe(),n=await t.fetchCategoriesWorkDetail(s.residence?.premisesId??"",this.workId);if(n.ok){this.categoryValue=n.data.workType?.claimCategory?.title??"",this.subCategoryValue=n.data.workType?.title??"";const r=n.data.workType?.measureUnit?.title??"",i=n.data.workType?.measureUnit?.value??"";this.categoryPriceValue=n?.data?.workType?.cost??0,this.countPlaceholder=`${r} ${i}`}this.isStartLoading=!1},updateCommentValue(e){this.commentValue=e,this.isEnabled=e.length>0},async updateCountValue(e){Wi&&Wi.abort();const t=typeof AbortController<"u"?new AbortController:null;Wi=t,this.countValue=e,this.isAmountLoading=!0;try{const s=ue(),n=Oe(),r=await s.fetchCategoriesWorksAmount(n.residence?.premisesId??"",this.workId,e,t?.signal);if(r.ok)this.amountPrice=r.data.amount??0;else if(r.error.code===-925){wi("925");return}wi("done")}catch(s){s?.name!=="AbortError"&&(this.error=s??null)}finally{this.isAmountLoading=!1,Wi===t&&(Wi=null)}},async create(){this.isLoading=!0;const e=ue(),t=Oe(),s=await e.fetchCreateClaim(t.residence?.residentId??"",this.workId,this.commentValue,this.countValue,t.residence?.entrance??null,t.residence?.flat??null,t.residence?.flatType??null);return this.isLoading=!1,s}}}),Bke=Ke("claimCategoryCustom",{state:()=>({isLoading:!1,isEnabled:!1,error:null,commentValue:"",workId:""}),actions:{updateInfo(e){this.workId=e??""},updateCommentValue(e){this.commentValue=e,e.length>0?this.isEnabled=!0:this.isEnabled=!1},async create(){this.isLoading=!0;const e=ue(),t=Oe(),s=await e.fetchCreateClaim(t.residence?.premisesId??"",this.workId,this.commentValue,null,t.residence?.entrance??null,t.residence?.flat??null,t.residence?.flatType??null);return this.isLoading=!1,s}}}),h9=Ke("drawerClaimList",{state:()=>({isLoading:!1,isLoadingMore:!1,error:null,claims:[],hasMore:!1,page:0,count:15}),actions:{async fetchPage({page:e,mode:t}){if(t==="append"){if(this.isLoadingMore||!this.hasMore)return;this.isLoadingMore=!0}else this.isLoading=!0;t==="replace"&&(this.claims=[],this.hasMore=!1),this.error=null;try{const s=Ne(),n=Oe(),r=n.residence?.premisesId??"";if(!s.isAuthorized||r.length==0){this.claims=[],this.hasMore=!1;return}const o=await ue().fetchClaimsActive(r,n.userInfo?.isHideHistory??!1,e,this.count);if(!o.ok){this.error=o.error,t==="append"&&(this.hasMore=!1);return}const l=o.data.claims;if(t==="replace")this.claims=l;else{const u=new Set(this.claims.map(f=>f.id)),d=l.filter(f=>!u.has(f.id));this.claims.push(...d)}this.hasMore=l.length>=this.count,this.page=e}catch(s){const n={message:"Unexpected error"};this.claims=[],this.hasMore=!1,this.error=s??n}finally{t==="append"?this.isLoadingMore=!1:this.isLoading=!1}},async startLoad(){this.page=0,await this.fetchPage({page:1,mode:"replace"})},async loadMore(){if(this.isLoadingMore||!this.hasMore)return;const e=this.page+1;await this.fetchPage({page:e,mode:"append"})}}}),m9=Ke("drawerClaimsHistoryStore",{state:()=>({isLoading:!1,isLoadingMore:!1,error:null,claims:[],hasMore:!1,page:0,count:15}),actions:{async fetchPage({page:e,mode:t}){if(t==="append"){if(this.isLoadingMore||!this.hasMore)return;this.isLoadingMore=!0}else this.isLoading=!0;t==="replace"&&(this.claims=[],this.hasMore=!1),this.error=null;try{const s=Ne(),r=Oe().residence?.premisesId??"";if(!s.isAuthorized||r.length==0){this.claims=[],this.hasMore=!1;return}const o=await ue().fetchClaimsFinished(r,e,this.count);if(!o.ok){this.error=o.error,t==="append"&&(this.hasMore=!1);return}const l=o.data.claims;if(t==="replace")this.claims=l;else{const u=new Set(this.claims.map(f=>f.id)),d=l.filter(f=>!u.has(f.id));this.claims.push(...d)}this.hasMore=l.length>=this.count,this.page=e}catch(s){const n={message:"Unexpected error"};this.error=s??n,t==="append"&&(this.hasMore=!1)}finally{t==="append"?this.isLoadingMore=!1:this.isLoading=!1}},async startLoad(){this.page=0,await this.fetchPage({page:1,mode:"replace"})},async loadMore(){if(this.isLoadingMore||!this.hasMore)return;const e=this.page+1;await this.fetchPage({page:e,mode:"append"})}}}),hf=Ke("drawerClaimBillDetailTypeStore",{state:()=>({isLoading:!1,error:null,selectedFilterType:"all"}),actions:{startLoad(){},setSelectedFilterType(e){this.selectedFilterType=e}}
11}),Vke=25,Hke="all",qke=-new Date().getTimezoneOffset();function jke(e){return e.map(t=>({date:t.date,list:t.payments.map(s=>({billId:s.billId,name:s.name,comment:s.comment,amount:s.amount,amountInCents:s.amountInCents,statusText:s.statusText,statusTextColor:s.statusTextColor}))}))}function Uke(e,t){const s=e.map(i=>({date:i.date,list:i.list.map(o=>({...o}))})),n=new Map;s.forEach((i,o)=>{n.set(i.date,o)});let r=0;return t.forEach(i=>{const o={date:i.date,list:i.list.map(f=>({...f}))},l=n.get(i.date);if(l==null){n.set(i.date,s.length),s.push(o),r+=o.list.length;return}const u=s[l];if(!u)return;const d=new Set(u.list.map(f=>f.billId));o.list.forEach(f=>{d.has(f.billId)||(u.list.push(f),r+=1)})}),{sections:s,added:r}}const pu=Ke("drawerClaimBillStore",{state:()=>{const t=hf()?.selectedFilterType??Hke;return{isLoading:!1,isLoadingMore:!1,error:null,hasMore:!1,sections:[],selectedBillId:null,page:0,count:Vke,statusFilter:t,dateFrom:null,dateTo:null,timezone:qke}},actions:{async startLoad(){this.page=0,this.timezone=-new Date().getTimezoneOffset(),await this.fetchPage({page:1,mode:"replace"})},async fetchPage({page:e,mode:t}){if(t==="append"){if(this.isLoadingMore||!this.hasMore)return;this.isLoadingMore=!0}else this.isLoading=!0;t==="replace"&&(this.sections=[],this.selectedBillId=null,this.hasMore=!1),this.error=null;try{if(!Ne().isAuthorized){this.sections=[],this.selectedBillId=null,this.hasMore=!1;return}const r=await ue().fetchPayments({page:e,count:this.count,timezone:this.timezone,status:this.statusFilter??void 0,dateFrom:this.dateFrom??void 0,dateTo:this.dateTo??void 0});if(!r.ok){this.error=r.error,t==="append"&&(this.hasMore=!1);return}const i=jke(r.data.groups);let o=0;if(t==="replace")this.sections=i,o=i.reduce((u,d)=>u+d.list.length,0);else{const u=Uke(this.sections,i);this.sections=u.sections,o=u.added}const l=this.sections[0]?.list[0]?.billId??null;(t==="replace"||this.selectedBillId==null)&&(this.selectedBillId=l),this.hasMore=o>0,this.page=e}catch(s){const n={message:"Unexpected error"};this.error=s??n,t==="append"&&(this.hasMore=!1)}finally{t==="append"?this.isLoadingMore=!1:this.isLoading=!1}},async loadMore(){if(this.isLoadingMore||!this.hasMore)return;const e=this.page+1;await this.fetchPage({page:e,mode:"append"})},selectBill(e){this.selectedBillId=e},resetSelection(){this.selectedBillId=null}}}),g9=Ke("drawerClaimBillDetailStore",{state:()=>({isLoading:!1,error:null,selectedBillId:null,paymentBill:null,isPaymentLoad:!1}),actions:{async startLoad(){const e=ue(),t=-new Date().getTimezoneOffset();this.isLoading=!0,this.error=null;const s=await e.fetchPaymentBill({billId:this.selectedBillId??"",timezone:t});return s.ok?this.paymentBill=s.data.bill:this.error=s.error,this.isLoading=!1,s},async pay(){this.isPaymentLoad=!0;const t=await ue().payPaymentBill(this.selectedBillId??"");return this.isPaymentLoad=!1,t},setSelectedBillId(e){this.selectedBillId=e}}}),vg=Ke("drawerClaimBillDetailMonthStore",{state:()=>({isLoading:!1,range:{start:null,end:null}}),actions:{startLoad(){},setRange(e){this.range=e},setRangeFromStrings(e,t){this.range={start:cb(e),end:cb(t)}},resetRange(){this.range={start:null,end:null}}}});function cb(e){if(typeof e!="string"||e.length===0)return null;const t=e.split("-");if(t.length!==3)return null;const[s,n,r]=t.map(i=>Number(i));return Number.isNaN(s)||Number.isNaN(n)||Number.isNaN(r)||!s||!n?null:new Date(s,n-1,r)}const bg=Ke("drawerAddressListStore",{state:()=>({isLoading:!1,error:null}),actions:{async refresh(){this.isLoading=!0,this.error=null;const t=await Oe().fetchUserInfoAndAddresses();return t.ok||(this.error=t.error),this.isLoading=!1,t}}}),ub=Re.flat,xg=Ke("drawerAddressEditStore",{state:()=>({isLoading:!1,error:null,address:null,selectedType:ub,flatNumber:"",flatFloor:"",flatEntrance:"",parkingSpotNumber:"",storeRoomNumber:"",withoutCommercialNumber:"",originalOrganizationName:"",organizationName:"",withOrganizationName:!1}),getters:{isButtonEnabled(e){switch(e.selectedType){case Re.flat:return!!e.flatNumber.trim();case Re.parkingSpot:return!!e.parkingSpotNumber.trim();case Re.storeRoom:return!!e.storeRoomNumber.trim();case Re.commercialStoreroom:case Re.withoutFunctional:return!!e.withoutCommercialNumber.trim();default:return!1}}},actions:{setAddress(e){switch(this.address=e,this.selectedType=e.normalizedFlatType||ub,this.flatNumber="",this.flatFloor="",this.flatEntrance="",this.parkingSpotNumber="",this.storeRoomNumber="",this.withoutCommercialNumber="",this.withOrganizationName=e.withOrganizationName,this.organizationName=e.organizationName,this.originalOrganizationName=e.organizationName,this.selectedType){case Re.flat:this.flatNumber=e.flat??"",this.flatEntrance=e.entrance??"",this.flatFloor=e.floor??"";break;case Re.parkingSpot:this.parkingSpotNumber=e.flat??"";break;case Re.storeRoom:this.storeRoomNumber=e.flat??"";break;case Re.commercialStoreroom:case Re.withoutFunctional:this.withoutCommercialNumber=e.flat??"";break}},updateType(e){this.selectedType=e,e!==Re.flat&&(this.flatNumber="",this.flatEntrance="",this.flatFloor=""),e!==Re.parkingSpot&&(this.parkingSpotNumber=""),e!==Re.storeRoom&&(this.storeRoomNumber=""),e!==Re.commercialStoreroom&&e!==Re.withoutFunctional&&(this.withoutCommercialNumber="")},getDisplayType(e){switch(e){case Re.flat:return"address.add.flat";case Re.parkingSpot:return"address.add.parking";case Re.storeRoom:return"address.add.store";case Re.commercialStoreroom:case Re.withoutFunctional:return"address.add.commercial";default:return""}},getDisplayPlaceholder(){switch(this.selectedType){case Re.flat:return"";case Re.parkingSpot:return"address.add.parkingNumber";case Re.storeRoom:return"address.add.storeNumber";case Re.commercialStoreroom:case Re.withoutFunctional:return"address.add.commercialNumber";default:return""}},async save(){if(!this.address){const i={message:"Address not selected"};return this.error=i,{ok:!1,error:i}}this.isLoading=!0,this.error=null;let e="",t="",s="";switch(this.selectedType){case Re.flat:e=this.flatNumber.trim(),t=this.flatEntrance.trim(),s=this.flatFloor.trim();break;case Re.parkingSpot:e=this.parkingSpotNumber.trim();break;case Re.storeRoom:e=this.storeRoomNumber.trim();break;case Re.commercialStoreroom:case Re.withoutFunctional:e=this.withoutCommercialNumber.trim();break}const r=await ue().saveAddress(this.address.residentId,this.address.address,e,t,s,this.address.flatType,this.organizationName);return r.ok?await Oe().fetchUserInfoAndAddresses():this.error=r.error,this.isLoading=!1,r}}}),kg=Ke("drawerAddressPremisesStore",{state:()=>({isLoading:!1,error:null,searchQuery:"",addresses:[],searchExample:"",selectedHouse:null,controller:null}),actions:{updateSearchQuery(e){this.searchQuery=e,e.length>2?this.fetchAddresses(e):(this.cancelRequest(),this.addresses=[])},cancelRequest(){this.controller&&(this.controller.abort(),this.controller=null)},async fetchAddresses(e){this.cancelRequest();const t=new AbortController;this.controller=t,this.isLoading=!0,this.error=null;const n=await ue().fetchAddresses(e,"",t.signal);return this.controller!==t?(this.isLoading=!1,n):(this.controller=null,this.isLoading=!1,n.ok?this.addresses=n.data.suggestions:(this.addresses=[],this.error=n.error),n)},async fetchSearchExample(){if(this.searchExample.length>0)return;const t=await ue().fetchAddresses("","");t.ok&&(this.searchExample=t.data.example)},selectHouse(e){this.selectedHouse=e},clearSelection(){this.selectedHouse=null}}}),wg=Ke("drawerAddressResidenceStore",{state:()=>({isLoading:!1,error:null,houseId:"",address:"",streetPart:"",settlementPart:"",selectedType:Re.flat,flatNumber:"",flatFloor:"",flatEntrance:"",parkingSpotNumber:"",storeRoomNumber:"",withoutCommercialNumber:"",organizationName:"",withOrganizationName:!1}),getters:{isButtonEnabled(e){const t=!e.withOrganizationName||e.organizationName.trim().length>0;let s;switch(e.selectedType){case Re.flat:s=!!e.flatNumber.trim();break;case Re.parkingSpot:s=!!e.parkingSpotNumber.trim();break;case Re.storeRoom:s=!!e.storeRoomNumber.trim();break;case Re.commercialStoreroom:case Re.withoutFunctional:s=!!e.withoutCommercialNumber.trim();break;default:s=!1}return s&&t}},actions:{setFromHouse(e){this.houseId=e.houseId,this.address=e.address,this.streetPart=e.addressStreetPart,this.settlementPart=e.addressSettlementPart,this.organizationName="",this.withOrganizationName=e.withOrganizationName},updateType(e){this.selectedType=e},getDisplayType(e){switch(e){case Re.flat:return"address.add.flat";case Re.parkingSpot:return"address.add.parking";case Re.storeRoom:return"address.add.store";case Re.commercialStoreroom:case Re.withoutFunctional:return"address.add.commercial";default:return""}},getDisplayPlaceholder(){switch(this.selectedType){case Re.flat:return"";case Re.parkingSpot:return"address.add.parkingNumber";case Re.storeRoom:return"address.add.storeNumber";case Re.commercialStoreroom:case Re.withoutFunctional:return"address.add.commercialNumber";default:return""}},resetForm(){this.selectedType=Re.flat,this.flatNumber="",this.flatFloor="",this.flatEntrance="",this.parkingSpotNumber="",this.storeRoomNumber="",this.withoutCommercialNumber="",this.organizationName=""},async save(){this.isLoading=!0,this.error=null;const e=Oe(),t=new Set(e.userInfo?.selectAddresses.map(l=>l.residentId)??[]);let s="",n="",r="";switch(this.selectedType){case Re.flat:s=this.flatNumber.trim(),n=this.flatEntrance.trim(),r
11=this.flatFloor.trim();break;case Re.parkingSpot:s=this.parkingSpotNumber.trim();break;case Re.storeRoom:s=this.storeRoomNumber.trim();break;case Re.commercialStoreroom:case Re.withoutFunctional:s=this.withoutCommercialNumber.trim();break}const o=await ue().addAddress(this.houseId,s,n,r,this.selectedType,this.organizationName.trim());if(o.ok){const l=await e.fetchUserInfoAndAddresses();if(l.ok){const d=l.data.selectAddresses.find(f=>!t.has(f.residentId));d&&e.saveAddress(d)}this.resetForm(),kg().clearSelection()}else this.error=o.error;return this.isLoading=!1,o}}}),Cg=Ke("drawerAddressConfirmStore",{state:()=>({isLoading:!1,error:null,address:null}),actions:{setAddress(e){this.address=e},clear(){this.address=null,this.error=null,this.isLoading=!1},async deleteAddress(){if(!this.address)throw new Error("Address is not set");this.isLoading=!0,this.error=null;const t=await ue().deleteAddress(this.address.residentId);return t.ok?(await bg().refresh(),this.clear()):this.error=t.error,this.isLoading=!1,t}}}),F1=Ke("drawerProfileConfirm",{state:()=>({isLoading:!1,isExit:!1,isSuccess:null}),actions:{async deleteAccount(){this.isLoading=!0;const t=await ue().deleteUser();return t.ok&&Ne().clearAll(),this.isLoading=!1,t},async logout(){this.isLoading=!0;const t=await ue().logout();return Ne().clearAll(),this.isLoading=!1,t}}}),y9=Ke("drawerPersonalStore",{state:()=>({isLoading:!1,error:null,info:null,email:"",emailNeedConfirm:!1,aboutMe:"",phone:"",largeText:"das asd as asdasd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asdasdadafsdg asga sdfa sdf",emptyText:"",userName:"",isVisibleInNeighbors:!1,isSaving:!1,isSendingEmailConfirm:!1,isDeleting:!1,isLoggingOut:!1}),actions:{async loadInfo(){const e=Oe();e.userInfo&&(this.phone=e.getPhone,this.email=e.userInfo.me.email,this.emailNeedConfirm=e.userInfo.me.emailNeedConfirm,this.userName=e.getUserName)},async requestEmailConfirm(){this.isSendingEmailConfirm=!0,this.error=null;const t=await ue().requestEmailConfirm(this.email);return t.ok||(this.error=t.error),this.isSendingEmailConfirm=!1,t},async saveChanges(){this.isSaving=!0,this.error=null;const t=await ue().savePeronal(this.userName,this.email);return t.ok?this.isSaving=!1:this.error=t.error,this.isSaving=!1,t},async deleteAccount(){this.isDeleting=!0,this.error=null;const t=await ue().deleteUser();return this.isDeleting=!1,t},async logout(){this.isLoggingOut=!0,this.error=null;const t=await ue().logout();return this.isLoggingOut=!1,t},async saveVisability(){const t=await ue().saveProfileVisible(this.isVisibleInNeighbors);t.ok||(this.error=t.error)}}}),_9=Ke("drawerNotificationsStore",{state:()=>({isLoading:!1,isLoadingMore:!1,error:null,hasMore:!0,page:1,pageSize:25,sections:[]}),actions:{reset(){this.sections=[],this.page=1,this.hasMore=!0,this.error=null},mergeSections(e){for(const t of e){const s=t.notifications.filter(r=>r.id.length>0).map(r=>({id:r.id,createdAtTime:r.createdAtTime,maskedAsRead:r.maskedAsRead,title:r.title,body:r.body,payload:r.payload}));if(!s.length)continue;const n=this.sections.find(r=>r.date===t.date);if(n){const r=new Set(n.list.map(o=>o.id)),i=s.filter(o=>!r.has(o.id));i.length&&(n.list=[...n.list,...i])}else this.sections.push({date:t.date,list:s})}},markRead(e){for(const t of this.sections){const s=t.list.find(n=>n.id===e);if(s){s.maskedAsRead=!0;break}}},markAllRead(){this.sections=this.sections.map(e=>({...e,list:e.list.map(t=>({...t,maskedAsRead:!0}))}))},async load(){this.isLoading||(Jl().clearNotificationsBadge(),this.reset(),await this.fetchPage(1))},async markAsReaded(){await ue().fetchMarkReadedNotifications()},async fetchPage(e){const t=ue(),s=e===1;s?this.isLoading=!0:this.isLoadingMore=!0,this.error=null;try{const n=await t.fetchNotifications({page:e,count:this.pageSize});if(!n.ok){this.error=n.error,s&&(this.sections=[],this.hasMore=!1);return}const{groups:r}=n.data;this.mergeSections(r);const i=r.reduce((o,l)=>o+l.notifications.length,0);this.page=e,s&&this.markAsReaded(),i<this.pageSize&&(this.hasMore=!1)}finally{s?this.isLoading=!1:this.isLoadingMore=!1}},async loadMore(){this.isLoading||this.isLoadingMore||!this.hasMore||await this.fetchPage(this.page+1)}}}),zke=Ke("drawerCardAddSecureStore",{state:()=>({isLoading:!1,error:null,verification:{phone:"+7 (900) 000-00-00",maskedNumber:"**** 1234",provider:"SafePay",verificationUrl:"https://secure.example.com/session"}}),actions:{startLoad(){},setVerification(e){this.verification=e}}}),Wke=Ke("addressSelectStore",{state:()=>({isLoading:!1}),actions:{selectAddress(){}}}),ba=Ke("addressOrganization",{state:()=>({address:null,organizationName:"",isLoading:!1,error:null}),getters:{isButtonEnabled(e){return!!e.organizationName.trim()}},actions:{shouldPrompt(e){return e?e.withOrganizationName&&!e.organizationName.trim():!1},openIfNeeded(e){return!e||!this.shouldPrompt(e)?!1:(this.address={...e},this.organizationName="",this.error=null,!0)},async save(){if(!this.address){const r={message:"Address not selected"};return this.error=r,{ok:!1,error:r}}const e=this.address;this.isLoading=!0,this.error=null;const t=this.organizationName.trim(),n=await ue().saveAddress(e.residentId,e.address,e.flat,e.entrance,e.floor,e.flatType,t);if(n.ok){const r=Oe(),i={...e,organizationName:t};r.userInfo&&(r.userInfo.selectAddresses=r.userInfo.selectAddresses.map(o=>o.residentId===i.residentId?i:o)),r.residence?.residentId===i.residentId&&r.saveAddress(i),await r.fetchUserInfoAndAddresses(),this.$reset()}else this.error=n.error;return this.isLoading=!1,n}}}),db=11,fb=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,mf=Ke("drawerCompanyRequestStore",{state:()=>
11({name:"",email:"",phone:"",companyName:"",companyType:"",captchaToken:"",contactChannel:"callback",isAgreementAccepted:!1,bcName:"",bcEmail:"",bcPhone:"",bcCompanyName:"",isBcUserAgreementAccepted:!1,isBcPersonalDataAccepted:!1,bcRequestSource:null,isFromHeader:!0,isSubmitting:!1,companyTypes:["УпÑавлÑÑÑÐ°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ","ТСÐ","ТСÐ","ÐизнеÑ-ÑенÑÑ","ÐпаÑÑаменÑÑ"]}),getters:{phoneDigits:e=>e.phone.replace(/\D+/g,""),isEmailValid:e=>e.email.trim().length>0&&fb.test(e.email.trim()),isPhoneValid(){return this.phoneDigits.length===db},bcPhoneDigits:e=>e.bcPhone.replace(/\D+/g,""),isBcEmailValid:e=>e.bcEmail.trim().length>0&&fb.test(e.bcEmail.trim()),isBcPhoneValid(){return this.bcPhoneDigits.length===db},isSubmitEnabled(e){return e.name.trim().length>0&&this.isEmailValid&&this.isPhoneValid&&e.companyName.trim().length>0&&e.companyType.trim().length>0&&e.captchaToken.trim().length>0&&e.isAgreementAccepted},isBcSubmitEnabled(e){return e.bcName.trim().length>0&&this.isBcEmailValid&&this.isBcPhoneValid&&e.bcCompanyName.trim().length>0&&e.isBcUserAgreementAccepted&&e.isBcPersonalDataAccepted}},actions:{loadPrefill(){if(!Ne().isAuthorized)return;const t=Oe();t.userInfo&&(this.name||(this.name=t.getUserName),this.email||(this.email=t.userInfo.me.email),this.phone||(this.phone=t.getPhone))},toggleAgreement(){this.isAgreementAccepted=!this.isAgreementAccepted},toggleBcUserAgreement(){this.isBcUserAgreementAccepted=!this.isBcUserAgreementAccepted},toggleBcPersonalData(){this.isBcPersonalDataAccepted=!this.isBcPersonalDataAccepted},setCompanyType(e){this.companyType=e},setContactChannel(e){(e==="callback"||e==="telegram")&&(this.contactChannel=e)},setCaptchaToken(e){this.captchaToken=e.trim()},setBcRequestSource(e){this.bcRequestSource=e},async submit(){if(!this.isSubmitEnabled||this.isSubmitting){const{$i18n:e}=Te();return{ok:!1,message:e.t("company.request.formInvalid")}}this.isSubmitting=!0;try{const e=ue(),{$i18n:t}=Te(),s=this.contactChannel==="callback"?t.t("company.request.callback"):"Telegram",n=await e.sendCompanyContactRequest(this.name.trim(),this.email.trim(),this.phone.trim(),s,this.companyName.trim(),this.companyType.trim(),this.captchaToken);return!n.ok||!n.data.success?{ok:!1,message:n.ok?t.t("company.request.sendError"):n.error.message??t.t("company.request.sendError")}:(this.captchaToken="",{ok:!0})}catch{const{$i18n:e}=Te();return{ok:!1,message:e.t("company.request.sendError")}}finally{this.isSubmitting=!1}},async submitBc(){if(!this.isBcSubmitEnabled||this.isSubmitting){const{$i18n:e}=Te();return{ok:!1,message:e.t("company.request.formInvalid")}}this.isSubmitting=!0;try{const e=ue(),{$i18n:t}=Te(),s=await e.sendBcContactRequest(this.bcName.trim(),this.bcEmail.trim(),this.bcPhone.trim(),this.bcCompanyName.trim());return!s.ok||!s.data.success?{ok:!1,message:s.ok?t.t("company.request.sendError"):s.error.message??t.t("company.request.sendError")}:{ok:!0}}catch{const{$i18n:e}=Te();return{ok:!1,message:e.t("company.request.sendError")}}finally{this.isSubmitting=!1}}}}),v9=Ke("demoCategory",{state:()=>({data:null,categories:[],error:null,isLoading:!1}),actions:{async fetchCategories(){this.isLoading=!0,this.error=null;const t=await ue().fetchDemoCategories();t.ok?(this.data=t.data,this.categories=t.data.categories,this.error=null):(this.data=null,this.categories=[],this.error=t.error),this.isLoading=!1},clear(){this.data=null,this.categories=[],this.error=null,this.isLoading=!1}}}),Hu=Ke("drawerInviteStore",{state:()=>({inviteMethods:null,inviteText:"",isTextEdited:!1,isLoading:!1,error:null,requestId:0}),getters:{inviteLink:e=>e.inviteMethods?.inviteLink.trim()??"",qrLink:e=>e.inviteMethods?.qrLink.trim()??"",flysheetLink:e=>e.inviteMethods?.flysheetLink.trim()??"",defaultInviteText:e=>e.inviteMethods?.defaultInviteText.trim()??"",shareText(e){const t=e.inviteText.trim(),s=e.inviteMethods?.inviteLink.trim()??"";return[t,s].filter(Boolean).join(` 12`)}},actions:{async load(e){const t=++this.requestId;this.isLoading=!0,this.error=null;const n=await ue().fetchPremisesInviteMethods(e);return t!==this.requestId||(n.ok?(this.inviteMethods=n.data,this.isTextEdited||(this.inviteText=n.data.defaultInviteText),this.error=null):(this.inviteMethods=null,this.error=n.error),this.isLoading=!1),n},setInviteText(e){this.inviteText=e,this.isTextEdited=e.trim()!==this.defaultInviteText}}}),b9=Ke("premisesDebt",{state:()=>({screen:null,error:null,isLoading:!1,requestId:0}),actions:{async loadScreen(e){const t=Ne();if(!t.isAuthorized||!e){this.clear();return}const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.screen=null,this.error=null;const i=await r.fetchPremisesDebt(e);s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(i.ok?(this.screen=i.data,this.error=null):(this.screen=null,this.error=i.error),this.isLoading=!1)},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1}}}),x9=Ke("ukSchedule",{state:()=>({screen:null,error:null,isLoading:!1,requestId:0}),actions:{async loadSchedule(e){const t=Ne();if(!t.isAuthorized||!e)return this.clear(),null;const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.screen=null,this.error=null;const i=await r.fetchUkSchedule(e);return s!==this.requestId||!t.isAuthorized||t.sessionToken!==n?null:(i.ok?(this.screen=i.data,this.error=null):(this.screen=null,this.error=i.error),this.isLoading=!1,i)},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1}}}),k9=Ke("executors",{state:()=>({screen:null,info:null,error:null,infoError:null,isLoading:!1,isInfoLoading:!1,requestId:0,infoRequestId:0}),actions:{async loadOnShift(e){const t=Ne();if(!t.isAuthorized||!e){this.clear();return}const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.screen=null,this.error=null;const i=await r.fetchExecutorsOnShift(e);s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(i.ok?(this.screen=i.data,this.error=null):(this.screen=null,this.error=i.error),this.isLoading=!1)},async loadInfo(e,t){const s=Ne();if(!s.isAuthorized||!e||!t){this.clearInfo();return}const n=++this.infoRequestId,r=s.sessionToken,i=ue();this.isInfoLoading=!0,this.info=null,this.infoError=null;const o=await i.fetchExecutorInfo(e,t);n!==this.infoRequestId||!s.isAuthorized||s.sessionToken!==r||(o.ok?(this.info=o.data,this.infoError=null):(this.info=null,this.infoError=o.error),this.isInfoLoading=!1)},clearInfo(){this.infoRequestId+=1,this.info=null,this.infoError=null,this.isInfoLoading=!1},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1,this.clearInfo()}}}),So=Ke("maintenanceAndRepair",{state:()=>({items:[],detail:null,history:[],categories:[],selectedCategory:null,historySelectedCategory:null,historyDateRange:null,progress:null,error:null,detailError:null,historyError:null,categoriesError:null,progressError:null,isLoading:!1,isDetailLoa
12ding:!1,isHistoryLoading:!1,isHistoryMoreLoading:!1,isCategoriesLoading:!1,isProgressLoading:!1,isFeedbackSending:!1,historyPage:1,historyCount:20,historyHasReachedMax:!1,requestId:0,detailRequestId:0,historyRequestId:0,categoriesRequestId:0,progressRequestId:0}),getters:{selectedCategoryTitle(e){return e.selectedCategory?.title??""},historySelectedCategoryTitle(e){return e.historySelectedCategory?.title??""}},actions:{async loadList(e){const t=Ne();if(!t.isAuthorized||!e)return this.clearList(),null;const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.error=null;const i=await r.fetchMaintenanceAndRepairs({premisesId:e,categoryId:this.selectedCategory?.id??null});return s!==this.requestId||!t.isAuthorized||t.sessionToken!==n?null:(i.ok?(this.items=i.data.maintenanceAndRepair,this.error=null):(this.items=[],this.error=i.error),this.isLoading=!1,i)},setSelectedCategory(e){this.selectedCategory=e},setHistorySelectedCategory(e){this.historySelectedCategory=e},setHistoryDateRange(e){this.historyDateRange=e},async loadCategories(e){const t=Ne();if(!t.isAuthorized||!e)return this.categories=[],null;const s=++this.categoriesRequestId,n=t.sessionToken,r=ue();this.isCategoriesLoading=!0,this.categoriesError=null;const i=await r.fetchMaintenanceAndRepairCategories(e);return s!==this.categoriesRequestId||!t.isAuthorized||t.sessionToken!==n?null:(i.ok?(this.categories=i.data.categories,this.categoriesError=null):(this.categories=[],this.categoriesError=i.error),this.isCategoriesLoading=!1,i)},async loadDetail(e,t,s=null){const n=Ne();if(!n.isAuthorized||!e||!t)return this.clearDetail(),null;const r=++this.detailRequestId,i=n.sessionToken,o=ue();this.isDetailLoading=!0,this.detail=null,this.detailError=null;const l=await o.fetchMaintenanceAndRepairById({premisesId:e,maintenanceAndRepairId:t,claimId:s});return r!==this.detailRequestId||!n.isAuthorized||n.sessionToken!==i?null:(l.ok?(this.detail=l.data,this.detailError=null):(this.detail=null,this.detailError=l.error),this.isDetailLoading=!1,l)},async loadHistory(e,t={}){const s=Ne();if(!s.isAuthorized||!e)return this.clearHistory(),null;const n=!!t.append;if(n&&(this.isHistoryMoreLoading||this.historyHasReachedMax))return null;const r=n?this.historyPage+1:1,i=++this.historyRequestId,o=s.sessionToken,l=ue();n?this.isHistoryMoreLoading=!0:(this.isHistoryLoading=!0,this.history=[],this.historyHasReachedMax=!1),this.historyError=null;const u=await l.fetchMaintenanceAndRepairHistory({premisesId:e,page:r,count:this.historyCount,categoryId:this.historySelectedCategory?.id??null,dateFrom:this.historyDateRange?.from??null,dateTo:this.historyDateRange?.to??null});return i!==this.historyRequestId||!s.isAuthorized||s.sessionToken!==o?null:(u.ok?(this.history=n?[...this.history,...u.data.history]:u.data.history,this.historyPage=r,this.historyHasReachedMax=u.data.history.length<this.historyCount,this.historyError=null):(n||(this.history=[]),this.historyError=u.error),this.isHistoryLoading=!1,this.isHistoryMoreLoading=!1,u)},async loadProgress(e,t){const s=Ne();if(!s.isAuthorized||!e||!t)return this.clearProgress(),null;const n=++this.progressRequestId,r=s.sessionToken,i=ue();this.isProgressLoading=!0,this.progress=null,this.progressError=null;const o=await i.fetchMaintenanceAndRepairProgress(e,t);return n!==this.progressRequestId||!s.isAuthorized||s.sessionToken!==r?null:(o.ok?(this.progress=o.data,this.progressError=null):(this.progress=null,this.progressError=o.error),this.isProgressLoading=!1,o)},async sendFeedback(e,t,s,n){if(!e||!t||s<=0)return null;const r=ue();this.isFeedbackSending=!0;const i=await r.sendMaintenanceAndRepairFeedback({premisesId:e,claimId:t,value:s,comment:n});return this.isFeedbackSending=!1,i.ok&&this.detail?.claimId===t&&(this.detail.isVisibleStarsDialog=!1,this.detail.starsValue=s,this.detail.isVisibleStarsValue=!0),i},clearList(){this.requestId+=1,this.items=[],this.error=null,this.isLoading=!1},clearDetail(){this.detailRequestId+=1,this.detail=null,this.detailError=null,this.isDetailLoading=!1},clearHistory(){this.historyRequestId+=1,this.history=[],this.historyError=null,this.isHistoryLoading=!1,this.isHistoryMoreLoading=!1,this.historyPage=1,this.historyHasReachedMax=!1},clearProgress(){this.progressRequestId+=1,this.progress=null,this.progressError=null,this.isProgressLoading=!1},clearAll(){this.clearList(),this.clearDetail(),this.clearHistory(),this.clearProgress(),this.categoriesRequestId+=1,this.categories=[],this.selectedCategory=null,this.historySelectedCategory=null,this.historyDateRange=null,this.categoriesError=null,this.isCategoriesLoading=!1,this.isFeedbackSending=!1}}}),Id=new Map,Gke=["ai_helpers","services_v2","for_home"];function w9(e){return e.trim().toLowerCase().replaceAll("-","_")}function Yke(e){return Gke.includes(e)}function Kke(e){const t=e.rawContent;return!!(t&&typeof t=="object"&&"show"in t&&t.show===!0)}function Qke(e){const t=new Set,s=n=>n.filter(r=>{const i=w9(r.type);return Yke(i)?Kke(r)?(t.add(i),!0):!1:!0});return{screen:{...e,leftColumn:s(e.leftColumn),rightColumn:s(e.rightColumn)},requested:t}}function Xke(e,t){return`${e??""}:${t??""}`}const C9=Ke("generalScreen",{state:()=>({screen:null,residentId:null,error:null,isLoading:!1,isSkeletonLoading:!1,isAiHelpersLoading:!1,isServicesV2Loading:!1,isForHomeLoading:!1,requestId:0}),actions:{prepareSkeleton(e){this.requestId+=1,this.screen=null,this.residentId=e??null,this.error=null,this.isLoading=!0,this.isSkeletonLoading=!0,this.isAiHelpersLoading=!1,this.isServicesV2Loading=!1,this.isForHomeLoading=!1},async loadScreen(e,t={}){const s=Ne();if(!s.isAuthorized){this.clear();return}const n=s.sessionToken,r=Xke(n,e),i=Id.get(r);if(i){await i;return}
12const o=++this.requestId,l=ue(),u=t.clearBeforeLoad??!0;this.isLoading=!0,u&&(this.screen=null,this.isSkeletonLoading=!0),this.error=null;const d=l.fetchGeneralScreen(e).then(f=>{if(!(o!==this.requestId||!s.isAuthorized||s.sessionToken!==n)){if(f.ok){const{screen:h,requested:g}=Qke(f.data);this.screen=h,this.residentId=e??null,this.error=null,this.isAiHelpersLoading=!1,this.isServicesV2Loading=!1,this.isForHomeLoading=!1,g.has("ai_helpers")&&this.loadAiHelpers(e,o,n),g.has("services_v2")&&this.loadServicesV2(e,o,n),g.has("for_home")&&this.loadForHome(e,o,n)}else(u||!this.screen)&&(this.screen=null,this.residentId=null),this.isAiHelpersLoading=!1,this.isServicesV2Loading=!1,this.isForHomeLoading=!1,this.error=f.error;this.isLoading=!1,this.isSkeletonLoading=!1}}).finally(()=>{Id.get(r)===d&&Id.delete(r)});Id.set(r,d),await d},replaceDynamicBlock(e,t){if(!this.screen)return;const s=n=>n.flatMap(r=>w9(r.type)!==e?[r]:t?[{...r,content:t}]:[]);this.screen={...this.screen,leftColumn:s(this.screen.leftColumn),rightColumn:s(this.screen.rightColumn)}},isCurrentRequest(e,t){const s=Ne();return e===this.requestId&&s.isAuthorized&&s.sessionToken===t},async loadAiHelpers(e,t,s){this.isAiHelpersLoading=!0;const n=await ue().fetchScreenAiHelpers(e);this.isCurrentRequest(t,s)&&(this.replaceDynamicBlock("ai_helpers",n.ok&&n.data.items.length>0?n.data:null),this.isAiHelpersLoading=!1)},async loadServicesV2(e,t,s){this.isServicesV2Loading=!0;const n=await ue().fetchScreenServicesV2(e);this.isCurrentRequest(t,s)&&(this.replaceDynamicBlock("services_v2",n.ok&&n.data.items.length>0?n.data:null),this.isServicesV2Loading=!1)},async loadForHome(e,t,s){this.isForHomeLoading=!0;const n=await ue().fetchScreenForHome(e);this.isCurrentRequest(t,s)&&(this.replaceDynamicBlock("for_home",n.ok&&n.data.items.length>0?n.data:null),this.isForHomeLoading=!1)},clear(){this.requestId+=1,this.screen=null,this.residentId=null,this.error=null,this.isLoading=!1,this.isSkeletonLoading=!1,this.isAiHelpersLoading=!1,this.isServicesV2Loading=!1,this.isForHomeLoading=!1}}}),$g=Ke("activeResidents",{state:()=>({screen:null,infoOverlay:null,error:null,infoOverlayError:null,isLoading:!1,isLoadingMore:!1,isPageLoading:!1,page:1,count:15,hasReachedMax:!1,isInfoOverlayLoading:!1,requestId:0,infoOverlayRequestId:0}),actions:{async loadScreen(e){const t=Ne();if(!t.isAuthorized||!e){this.clear();return}const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.isLoadingMore=!1,this.isPageLoading=!1,this.page=1,this.hasReachedMax=!1,this.screen=null,this.error=null;const i=await r.fetchActiveResidents(e,1,this.count);s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(i.ok?(this.screen=i.data,this.error=null,this.page=1,this.hasReachedMax=this.count>=i.data.total):(this.screen=null,this.error=i.error),this.isLoading=!1)},async loadMore(e){const t=Ne();if(!t.isAuthorized||!e||this.isLoading||this.isLoadingMore||this.hasReachedMax)return;const s=this.requestId,n=t.sessionToken,r=ue(),i=this.page+1;this.isLoadingMore=!0;const o=await r.fetchActiveResidents(e,i,this.count);if(!(s!==this.requestId||!t.isAuthorized||t.sessionToken!==n)){if(o.ok){const l=this.screen?.initGroupUsers??[];this.screen={...o.data,initGroupUsers:[...l,...o.data.initGroupUsers]},this.page=i,this.error=null,this.hasReachedMax=i*this.count>=o.data.total}else this.error=o.error;this.isLoadingMore=!1}},async loadPage(e,t){const s=Ne();if(!s.isAuthorized||!e||this.isLoading||this.isPageLoading||t<1||t===this.page)return;const n=this.requestId,r=s.sessionToken,i=ue();this.isPageLoading=!0,this.error=null;const o=await i.fetchActiveResidents(e,t,this.count);n!==this.requestId||!s.isAuthorized||s.sessionToken!==r||(o.ok?(this.screen=o.data,this.page=t,this.hasReachedMax=t*this.count>=o.data.total):this.error=o.error,this.isPageLoading=!1)},async loadInfoOverlay(e){const t=Ne();if(!t.isAuthorized||!e){this.clearInfoOverlay();return}const s=++this.infoOverlayRequestId,n=t.sessionToken,r=ue();this.isInfoOverlayLoading=!0,this.infoOverlay=null,this.infoOverlayError=null;const i=await r.fetchActiveResidentsInfoOverlay(e);s!==this.infoOverlayRequestId||!t.isAuthorized||t.sessionToken!==n||(i.ok?(this.infoOverlay=i.data,this.infoOverlayError=null):(this.infoOverlay=null,this.infoOverlayError=i.error),this.isInfoOverlayLoading=!1)},async closeRatingOpportunityBanner(e,t){if(this.screen&&(this.screen.ratingOpportunityBanner=null),!e||!t)return;await ue().viewRatingOpportunityBanner(e,t)},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1,this.isLoadingMore=!1,this.isPageLoading=!1,this.page=1,this.hasReachedMax=!1},clearInfoOverlay(){this.infoOverlayRequestId+=1,this.infoOverlay=null,this.infoOverlayError=null,this.isInfoOverlayLoading=!1}}}),$9=Ke("houseConversations",{state:()=>({screen:null,error:null,isLoading:!1,isLoadingMore:!1,page:1,count:20,hasReachedMax:!1,requestId:0}),actions:{async loadScreen(e){const t=Ne();if(!t.isAuthorized||!e){this.clear();return}const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.isLoadingMore=!1,this.page=1,this.hasReachedMax=!1,this.screen=null,this.error=null;const i=await r.fetchHouseChatConversations(e,1,this.count);s!==this.requestId||!t.isAuthorized||t.sessionToken!==n||(i.ok?(this.screen=i.data,this.error=null,this.page=1,this.hasReachedMax=i.data.conversations.length<this.count):(this.screen=null,this.error=i.error),this.isLoading=!1)},async loadMore(e){const t=Ne();if(!t.isAuthorized||!e||this.isLoading||this.isLoadingMore||this.hasReachedMax)return;const s=this.requestId,n=t.sessionToken,r=ue(),i=this.page+1;this.isLoadingMore=!0;const o=await r.fetchHouseChatConversations(e,i,this.count);if(!(s!==this.requestId||!t.isAuthorized||t.sessionToken!==n)){if(o.ok){const l=this.screen?.conversations??[];this.screen={...o.data,conversations:[...l,...o.data.conversations]},this.page=i,this.error=null,this.hasReachedMax=o.data.conversations.length<this.count}else this.error=o.error;this.isLoadingMore=!1}},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1,this.isLoadingMore=!1,this.page=1,this.hasReachedMax=!1}}}),S9=Ke("waterDelivery",()=>{const e=ue(),t=Ne(),s=Oe(),n=C9(),r=X(null),i=X(null),o=X(null),l=X(""),u=X(!1),d=X(!1),f=X(null),h=X(!1),g=X(0);let m=0;const _=A(()=>JSON.stringify([t.sessionToken,s.residence?.premisesId,s.residence?.residentId])),v=A(()=>s.residence?.premisesId??""),k=A(()=>s.residence?.residentId??""),x=A(()=>t.isAuthorized&&!!(v.value&&k.value)),C=A(()=>r.value?.tariffs??[]),w=A(()=>C.value.find(V=>V.id===l.value)??null),$=A(()=>o.value?.status==="paused"),S=A(()=>u.value||d.value);function I(){m++,r.value=null,i.value=null,o.value=null,l.value="",u.value=!1,d.value=!1,f.value=null,h.value=!1,g.value=0}Se(_,I,{flush:"sync"});async function P(V,pe,ye=!1){if(!x.value||S.value)return!1;const ne=m,ve=_.value,J=ye?d:u;J.value=!0,f.value=null;try{const he=await V();if(ne!==m||ve!==_.value)return!1;
12if(!he.ok||!he.data.success){if(he.ok){const Ee=he.data.code;Ee===97&&(g.value=Date.now()+2e3),f.value={code:Ee,message:he.data.message}}else f.value=he.error,h.value=he.error.status===422;return!1}return pe(he.data),!0}catch(he){return ne===m&&(f.value={message:he instanceof Error?he.message:void 0}),!1}finally{ne===m&&(J.value=!1)}}function L(V=!1){return r.value&&!V?Promise.resolve(!0):P(()=>e.fetchWaterScreen(v.value,k.value),pe=>{r.value=pe,pe.waterSubscriptionId||(o.value=null),pe.tariffs.some(ye=>ye.id===l.value)||(l.value="")})}function D(){return P(()=>e.fetchWaterSubscription(k.value),V=>{o.value=V,r.value&&(r.value.waterSubscriptionId=V.waterSubscriptionId,r.value.subscriptionStatus=V.status)})}function R(V){!S.value&&C.value.some(pe=>pe.id===V)&&(l.value=V)}function F(){if(!w.value)return Promise.resolve(!1);const V=l.value;return i.value=null,P(()=>e.fetchWaterCheckout(k.value,V),pe=>{i.value=pe,l.value=pe.tariff.id})}function N(){n.loadScreen(k.value,{clearBeforeLoad:!1})}async function z(V,pe){const ye=i.value;return!ye?.payer?.id||!ye.tariff.id||!V||!pe?!1:await P(()=>e.createWaterSubscription({resident_id:k.value,water_tariff_id:ye.tariff.id,resident_organization_details_id:ye.payer.id,offer_accepted:V,supplier_offer_accepted:pe}),ve=>{o.value=ve,i.value=null,r.value&&(r.value.waterSubscriptionId=ve.waterSubscriptionId,r.value.subscriptionStatus=ve.status),N()},!0)}function me(V){return Number.isSafeInteger(V)&&V>0}async function ge(V,pe,ye,ne){return!me(V)||!Number.isSafeInteger(pe)||pe<0||!Number.isSafeInteger(ye)||ye<0||ne!==void 0&&!/^\d{4}-\d{2}-\d{2}$/.test(ne)?!1:P(()=>e.confirmWaterDelivery(V,{resident_id:k.value,bottles_received:pe,empty_bottles_returned:ye,...ne?{delivery_date:ne}:{}}),ve=>{o.value=ve,N()},!0)}async function fe(V,pe){return!me(V)||pe!==void 0&&pe.length>1e3?!1:P(()=>e.reportWaterDeliveryProblem(V,{resident_id:k.value,...pe?{comment:pe}:{}}),ye=>{o.value=ye,N()},!0)}async function te(V){const pe=o.value;if(!pe?.waterSubscriptionId||S.value||V==="tariff"&&(Date.now()<g.value||!pe.canChangeTariff||!w.value)||V==="pause"&&!pe.canPause||V==="resume"&&!pe.canResume)return!1;const ye=k.value,ne=l.value,ve=m;return P(async()=>{const J=await(V==="tariff"?e.changeWaterTariff(ye,ne):e.waterSubscriptionAction(V,ye));return!J.ok||!J.data.success||ve!==m||(N(),V==="cancel")?J:(o.value=J.data,r.value&&(r.value.subscriptionStatus=J.data.status),Promise.resolve(J))},J=>{V==="cancel"?(o.value=null,i.value=null,r.value=null,l.value=""):(o.value=J,r.value&&(r.value.subscriptionStatus=J.status))},!0)}return{screen:r,checkout:i,subscription:o,selectedTariffId:l,tariffs:C,selectedTariff:w,isPaused:$,isLoading:u,isActionLoading:d,isBusy:S,error:f,requiresResidenceSelection:h,tariffLockedUntil:g,hasContext:x,premisesId:v,residentId:k,reset:I,loadScreen:L,loadSubscription:D,selectTariff:R,loadCheckout:F,createSubscription:z,confirmDelivery:ge,reportDeliveryProblem:fe,changeSubscription:te}}),kc=new Set;let cm=0;function Zke(){const e=document.documentElement,t=document.body;cm=window.scrollY||0;const s=window.innerWidth-e.clientWidth;e.style.scrollbarGutter="auto",e.style.overflow="hidden",e.style.paddingRight=s?`${s}px`:"",t.style.position="fixed",t.style.top=`-${cm}px`,t.style.left="0",t.style.right="0",t.style.width="100%"}function Jke(){const e=document.documentElement,t=document.body;t.style.position="",t.style.top="",t.style.left="",t.style.right="",t.style.width="",e.style.overflow="",e.style.paddingRight="",e.style.scrollbarGutter="",window.scrollTo(0,cm)}function xn(e,t){const s=kc.has(e);if(t){if(s)return;kc.add(e),kc.size===1&&Zke();return}s&&(kc.delete(e),kc.size===0&&Jke())}function hu(e,t){const s=e%10,n=e%100;return s===1&&n!==11?t.one:s>=2&&s<=4&&(n<10||n>=20)?t.few:t.many}const ewe={key:0,class:"fixed inset-0 z-50 flex items-center justify-center w-full h-full bg-black bg-opacity-50"},twe={class:"bg-white rounded-lg shadow-lg p-6 max-w-sm w-full mx-4"},swe=["innerHTML"],nwe=G({__name:"SvgAuthAlert",props:{show:{type:Boolean},svg:{},authIdRoute:{},isLoading:{type:Boolean}},emits:["confirm","cancel"],setup(e,{emit:t}){const{t:s}=be(),n=t,r=X(""),i=()=>{r.value&&n("confirm",r.value)},o=()=>{n("cancel")};return(l,u)=>{const d=Ae("PrimaryButton");return e.show?(p(),y("div",ewe,[c("div",twe,[c("div",{class:"flex justify-center mb-4",innerHTML:e.svg},null,8,swe),T(a(wo),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=f=>r.value=f),placeholder:a(s)("captcha.enterCode"),type:"text",class:"mb-4",size:"default"},null,8,["modelValue","placeholder"]),T(d,{label:a(s)("confirm"),disabled:!r.value,loading:e.isLoading,class:"mb-3",onClick:i},null,8,["label","disabled","loading"]),c("button",{type:"button",class:"w-full px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md xl:hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",onClick:o},b(a(s)("cancel")),1)])])):E("",!0)}}}),rwe=Object.assign(nwe,{__name:"SvgAuthAlert"}),iwe={class:"flex flex-col h-full"},owe={class:"flex-1 overflow-y-auto"},awe={class:"pl-6"},lwe={class:"text-24-bold text-left"},cwe={class:"pl-6 pt-2"},uwe={class:"text-16 text-left text-grey-40"},dwe={class:"p-6 space-y-4 pt-6"},fwe={class:"space-y-4"},pwe={class:"text-13 leading-5 text-grey-10"},hwe={class:"text-13 leading-5 text-grey-10"},mwe={class:"p-6 pt-4"},gwe=G({__name:"LoginPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),{t:n}=be(),r=l7(),i=F0(),o=X(!1),l=X(!1),u=A(()=>r.isEnabled&&o.value&&l.value),d=async()=>{const m=await r.send();if(m.ok){if(m.data.step=="captcha"){const _=N0();_.authIdRoute=m.data.authIdRoute,_.phoneValue=r.phoneValue,_.smartKey=m.data.yaClientKey,_.isFromCode=!1,g("go","captcha");return}i.updateInfo(m.data.id,r.phoneValue),g("go","login-code")}else s(m.error.message??"unknown")};async function f(m){const _=await r.handleCaptcha(m);_.ok?(r.showAlert=!1,i.updateInfo(_.data.id,r.phoneValue),g("go","login-code")):s(_.error.message??"unknown")}function h(){r.showAlert=!1}const g=t;return(m,_)=>{const v=_a,k=va,x=Ae("PrimaryButton"),C=rwe;return p(),y("div",iwe,[c("div",owe,[c("div",awe,[c("h1",lwe,b(m.$t("loginPhone.title")),1)]),c("div",cwe,[c("h1",uwe,b(m.$t("loginPhone.descr")),1)]),c("div",dwe,[T(a(wo),{"model-value":a(r).phoneValue,type:"tel","input-mode":"tel",autocomplete:"tel",placeholder:a(n)("loginPhone.placeholder"),formatter:("createRuPhoneFormatter"in m?m.createRuPhoneFormatter:a(zl))(),"digits-only-on-paste":!0,size:"default","onUpdate:modelValue":a(r).updatePhoneValue},null,8,["model-value","placeholder","formatter","onUpdate:modelValue"]),c("div",fwe,[c("button",{type:"button",class:"inline-flex items-start gap-3 text-left",onClick:_[1]||(_[1]=w=>o.value=!o.value)},[o.value?(p(),K(v,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(k,{key:1,class:"h-6 w-6 shrink-0"})),c("span",pwe,[Qe(b(a(n)("loginPhone.userAgreementConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/terms-of-use",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:_[0]||(_[0]=St(()=>{},["stop"]))},b(a(n)("loginPhone.userAgreementLink")),1),_[5]||(_[5]=c("br",null,null,-1)),Qe(" "+b(a(n)("loginPhone.userAgreementConsentPart2")),1)])]),c("button",{type:"button",class:"inline-flex items-start gap-3 text-left",onClick:_[4]||(_[4]=w=>l.value=!l.value)},[l.value?(p(),K(v,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(k,{key:1,class:"h-6 w-6 shrink-0"})),c("span",hwe,[Qe(b(a(n)("loginPhone.personalDataConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/consent-to-pd",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:_[2]||(_[2]=St(()=>{},["stop"]))},b(a(n)("loginPhone.personalDataConsentLink")),1),_[6]||(_[6]=c("br",null,null,-1)),Qe(" "+b(a(n)("loginPhone.personalDataConsentPart2"))+" ",1),c("a",{href:"https://butler.social/docs/privacy-policy",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:_[3]||(_[3]=St(()=>{},["stop"]))},b(a(n)("loginPhone.personalDataPolicyLink")),1)])])])])]),c("div",mwe,[T(x,{class:"w-full",label:a(n)("loginPhone.getCode"),loading:a(r).isLoading,disabled:!u.value,onClick:d},null,8,["label","loading","disabled"])]),T(C,{show:a(r).showAlert,svg:a(r).svgContent,"auth-id-route":a(r).authIdRoute,"is-loading":a(r).isCaptchaLoad,onConfirm:f,onCancel:h},null,8,["show","svg","auth-id-route","is-loading"])])}}}),ywe=Object.assign(gwe,{__name:"LoginPanel"}),_we={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"};function vwe(e,t){return p(),y("svg",_we,[...t[0]||(t[0]=[c("path",{fill:"#111","fill-opacity":".06","fill-rule":"evenodd",d:"M24 44C12.954 44 4 35.046 4 24S12.954 4 24 4s2
120 8.954 20 20-8.954 20-20 20m0-36c8.837 0 16 7.163 16 16s-7.163 16-16 16S8 32.837 8 24 15.163 8 24 8","clip-rule":"evenodd"},null,-1),c("path",{fill:"#111",d:"M40 24A16 16 0 0 0 24 8a2 2 0 1 1 0-4 20 20 0 0 1 20 20 2 2 0 1 1-4 0"},null,-1)])])}const bwe={render:vwe},mu=Ke("loginPersonal",{state:()=>({isLoading:!1,error:null,oldUser:null,needSendAddress:!0,isPersonalRegistration:!1,showFio:!1,showEmail:!1,fio:"",email:"",sessionId:"",houseId:"",address:"",streetPart:"",settlementPart:"",selectedType:"",flatEntrence:"",flatFloor:"",flatNumber:"",parkingSpotNumber:"",storeRoomNumber:"",withoutComersialNumber:"",organizationName:"",withOrganizationName:!1}),getters:{getAddress:e=>e.streetPart.length>0?e.streetPart:"",getResidence:e=>e.selectedType.length>0?e.streetPart:"",isNeedAdditionalDescrInType:e=>e.selectedType==Re.flat,isButtonEnable:e=>e.address.length>0&&e.selectedType.length>0,getTypeNumber:e=>{switch(e.selectedType){case Re.flat:return e.flatNumber;case Re.parkingSpot:return e.parkingSpotNumber;case Re.storeRoom:return e.storeRoomNumber;case Re.commercialStoreroom:return e.withoutComersialNumber;case Re.withoutFunctional:return e.withoutComersialNumber}return""},getDisplayType:e=>{switch(e.selectedType){case Re.flat:return"address.add.flat";case Re.parkingSpot:return"address.add.parking";case Re.storeRoom:return"address.add.store";case Re.commercialStoreroom:return"address.add.commercial";case Re.withoutFunctional:return"address.add.commercial"}return""}},actions:{setSessionData(e,t){if(this.sessionId=e,t!=null&&(this.oldUser=t,t.selectAddresses.length>0)){this.needSendAddress=!1;const s=t.selectAddresses[0];switch(this.address=s?.address??"",this.selectedType=s?.normalizedFlatType??"",this.houseId=s?.residentId??"",this.settlementPart=s?.addressSettlementPart??"",this.streetPart=s?.addressStreetPart??"",this.organizationName=s?.organizationName??"",this.withOrganizationName=s?.withOrganizationName??!1,this.selectedType){case Re.flat:{this.flatNumber=s?.flat??"",this.flatEntrence=s?.entrance??"",this.flatFloor=s?.floor??"";break}case Re.parkingSpot:{this.parkingSpotNumber=s?.flat??"";break}case Re.storeRoom:{this.storeRoomNumber=s?.flat??"";break}case Re.commercialStoreroom:{this.withoutComersialNumber=s?.flat??"";break}case Re.withoutFunctional:{this.withoutComersialNumber=s?.flat??"";break}}}},setSignupFields(e){this.showFio=e.includes("fio"),this.showEmail=e.includes("email"),this.isPersonalRegistration=this.showFio||this.showEmail},setSelectedResidenceFromAddressStore(){const e=uu();this.selectedType=e.selectedType,this.flatEntrence=e.flatEntrence,this.flatFloor=e.flatFloor,this.flatNumber=e.flatNumber,this.parkingSpotNumber=e.parkingSpotNumber,this.storeRoomNumber=e.storeRoomNumber,this.withoutComersialNumber=e.withoutComersialNumber,this.organizationName=e.organizationName,this.withOrganizationName=e.withOrganizationName,this.needSendAddress=!0},async saveAddress(){this.isLoading=!0;const t=await ue().fetchUserInfoAndAddresses(this.sessionId);if(t.ok){const s=Ne(),n=Oe();s.setSession(this.sessionId??""),n.saveUser(t.data)}else this.isLoading=!1,this.error=t.error;return t},async save(){this.isLoading=!0;const e=ue();let t="",s="",n="",r="";if(this.needSendAddress)switch(r=this.selectedType,r){case Re.flat:{t=this.flatNumber,s=this.flatEntrence,n=this.flatFloor;break}case Re.parkingSpot:{t=this.parkingSpotNumber;break}case Re.storeRoom:{t=this.storeRoomNumber;break}case Re.commercialStoreroom:{t=this.withoutComersialNumber;break}case Re.withoutFunctional:{t=this.withoutComersialNumber;break}}const i=uu(),o=this.needSendAddress?this.organizationName.trim()||i.organizationName.trim():this.organizationName.trim(),l=await e.addLoginPeronal(this.sessionId,this.houseId,this.address,t,s,n,r,o,this.fio.trim(),this.email.trim());return l.ok?this.saveAddress():(this.isLoading=!1,this.error=l.error,l)}}});function gf(e){return e?.withOrganizationName?"/claims":"/"}const xwe={class:"flex flex-col h-full"},kwe={class:"flex-1 overflow-y-auto"},wwe={class:"pl-6"},Cwe={class:"text-24-bold text-left"},$we={class:"pl-6 pt-2"},Swe={class:"text-16 text-left text-grey-40"},Awe={class:"p-6 space-y-4 pt-6"},Iwe={class:"p-6 pt-4"},Twe=G({__name:"LoginCodePanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),{t:n}=be(),r=F0(),i=A(()=>r.remindSeconds>0?n("loginCode.timer",[v()]):n("loginCode.resend"));Se(()=>r.code,(x,C)=>{x.length===6&&(C?.length??0)!==6&&m()});function o(x){r.updateCode(x)}const l=is();async function u(x,C=!1){const w=await r.getAllAddresses(C);if(w.ok)if(w.data.selectAddresses.length>0||C){const $=ba(),S=Oe(),I=Ln();if(I.hasPendingDemoAuthorization()){await l.replace({path:"/",query:I.buildClaimCreateChatQuery()});return}const P=$.openIfNeeded(S.residence);await l.replace({path:gf(S.residence),query:P?{panel:"address-organization"}:{}})}else d(w.data);else s(w.error.message??"")}function d(x){const C=mu();C.setSessionData(r.sessionData,x),C.setSignupFields(["address"]),$l().setFromData(C.sessionId),k("go",{to:"registration-address-list",replace:!0})}function f(x){const C=mu();C.setSessionData(r.sessionData,x),C.setSignupFields(r.signupFields),$l().setFromData(C.sessionId),k("go",{to:"registration-personal",replace:!0})}function h(){return r.signupFields.includes("fio")||r.signupFields.includes("email")}function g(){return r.signupFields.length>0&&r.signupFields.every(x=>x==="address")}async function m(){const x=await r.send();x.ok?h()?f(null):g()||x.data.step=="fio_email_screen"?d(null):x.data.step=="done"?u(!1,!0):u():s(x.error.message??"")}je(async()=>{r.id.length==0&&k("go",{to:"login",replace:!0})});const _=async()=>{const x=await r.resend();if(x.ok){if(x.data.step=="captcha"){const C=N0();C.authIdRoute=x.data.authIdRoute,C.phoneValue=r.phone,C.smartKey=x.data.yaClientKey,C.isFromCode=!0,k("go","captcha");return}r.updateInfo(x.data.id,r.phone),k("go","login-code")}else s(x.error.message??"unknown")};function v(){return r.remindSeconds.toString()}const k=t;return(x,C)=>{const w=bwe,$=Ae("PrimaryButton");return p(),y("div",xwe,[c("div",kwe,[c("div",wwe,[c("h1",Cwe,b(x.$t("loginCode.title")),1)]),c("div",$we,[c("h1",Swe,b(x.$t("loginCode.descr",[a(r).phone])),1)]),c("div",Awe,[T(a(wo),{"model-value":a(r).code,autocomplete:"one-time-code","input-mode":"numeric","digits-only-on-paste":!0,formatter:("createDigitsMaxLenFormatter"in x?x.createDigitsMaxLenFormatter:a(q0))(6),placeholder:a(n)("loginCode.placeholder"),size:"default","onUpdate:modelValue":o},null,8,["model-value","formatter","placeholder"])]),a(r).isLoading?(p(),K(w,{key:0,class:"w-12 h-12 animate-[spin_0.7s_linear_infinite] text-black mx-auto"})):E("",!0)]),c("div",Iwe,[T($,{class:"w-full",label:i.value,loading:a(r).isResendLoading,disabled:a(r).remindSeconds>0,onClick:_},null,8,["label","loading","disabled"])])])}}}),Pwe=Object.assign(Twe,{__name:"LoginCodePanel"}),Dwe={class:"container mx-auto px-6 py-6 pb-4 pt-0 flex flex-col h-full"},Ewe={class:"space-y-6"},Lwe={class:"text-24-bold text-left"},Rwe={class:"mt-auto pb-2"},Mwe=G({__name:"RegistrationPersonalPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=is(),{$showSnackbar:r}=Te(),i=mu(),o=A(()=>i.showFio||i.withOrganizationName),l=A(()=>{if(i.selectedType.length===0)return"";const m=s(i.getDisplayType);return i.isNeedAdditionalDescrInType?`${m} ${i.getTypeNumber}, ${s("registration.floor")} ${i.flatFloor}, ${s("registration.enterance")} ${i.flatEntrence}`:`${m} ${i.getTypeNumber}`});async function u(){if(!d()){r(s("registration.missingFields"));return}const m=await i.save();if(m.ok){window.ym?.(aa,"reachGoal","registration_sucsess");const _=ba(),v=Oe(),k=Ln(),x=k.hasPendingDemoAuthorization(),C=_.openIfNeeded(v.residence),w=!!v.residence?.withOrganizationName;B0().open({withOrganizationName:w,shouldOpenOrganizationPanel:C}),i.$reset(),await n.replace({path:x?"/":gf(v.residence),query:x?k.buildClaimCreateChatQuery():{panel:"registration-success"}})}else r(m.error.message??"")}function d(){return o.value&&i.fio.trim().length===0||i.showEmail&&i.email.trim().length===0?!1:i.isButtonEnable}function f(){$l().setFromData(i.sessionId),g("go",{to:"registration-address-list",replace:!1})}function h(){if(i.address.length===0){f();return}g("go",{to:"registration-address",replace:!1})}const g=t;return(m,_)=>{const v=Rs,k=Ae("SelectTextForm"),x=Ae("LabeledTextField"),C=Ae("PrimaryButton");return p(),y("div",Dwe,[c("div",Ewe,[c("h1",Lwe,b(a(s)("registration.title")),1),T(k,{"model-value":a(i).getAddress,label:a(s)("registration.address"),onSelect:f},{icon:Xe(()=>[T(v,{class:"[&>path]:fill-grey-40"})]),_:1},8,["model-value","label"]),T(k,{"model-value":l.value,label:a(s)("registration.residence"),onSelect:h},{icon:Xe(()=>[T(v,{class:"[&>path]:fill-grey-40"})]),_:1},8,["model-value","label"]),o.value?(p(),K(x,{key:0,modelValue:a(i).fio,"onUpdate:modelValue":_[0]||(_[0]=w=>a(i).fio=w),label:a(s)("registration.fio")},null,8,["modelValue","label"])):E("",!0),a(i).showEmail?(p(),K(x,{key:1,modelValue:a(i).email,"onUpdate:modelValue":_[1]||(_[1]=w=>a(i).email=w),label:a(s)("registration.email")},null,8,["modelValue","label"])):E("",!0)]),c("div",Rwe,[T(C,{label:a(s)("registration.button"),disabled:a(i).isLoading,loading:a(i).isLoading,onClick:u},null,8,["label","disabled","loading"])])])}}}),Owe=Object.assign(Mwe,{__name:"RegistrationPersonalPanel"});function A9(e){return e.addressStreetPart.length>0&&e.addressSettlementPart.length>0?`${e.addressSettlementPart}, ${e.addressStreetPart}`:e.addressStreetPart.length===0?e.addressSettlementPart:e.addressStreetPart}
12const Fwe={class:"container mx-auto px-6"},Nwe={class:"text-24 text-left mb-6"},Bwe={key:0,class:"mt-2 ml-2 text-left text-13 text-grey-40"},Vwe={key:0,class:"mt-6 space-y-4 ml-4 mr-4"},Hwe={key:1,class:"mt-6 text-center py-4"},qwe={class:"text-black text-16"},jwe={key:2,class:"mt-6"},Uwe=["onClick"],zwe={class:"text-16 text-black mb-1"},Wwe={class:"text-13 text-grey-40"},Gwe=G({__name:"RegistrationAddressListPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=$l(),r=A(()=>n.isLoading),i=A(()=>n.addresses),o=A(()=>n.searchExample);je(()=>{n.fetchSearchExample()});const l=d=>{if(!d.isCompleteAddress){n.updateSearchQuery(A9(d));return}const f=mu();f.address=d.address,f.settlementPart=d.addressSettlementPart,f.streetPart=d.addressStreetPart,f.houseId=d.houseId,f.organizationName="",f.withOrganizationName=d.withOrganizationName,f.needSendAddress=!0;const h=uu();if(h.$reset(),h.setFromData(d.houseId,d.address,d.addressStreetPart,d.addressSettlementPart,f.sessionId,d.withOrganizationName),f.isPersonalRegistration){u("go","back");return}u("go",{to:"registration-address",replace:!1})},u=t;return(d,f)=>{const h=Ae("SearchTextField");return p(),y("div",Fwe,[c("h1",Nwe,b(a(s)("registrationAddress.title")),1),c("div",null,[T(h,{"model-value":a(n).searchQuery,placeholder:a(s)("registrationAddress.placeholder"),"onUpdate:modelValue":a(n).updateSearchQuery},null,8,["model-value","placeholder","onUpdate:modelValue"]),o.value?(p(),y("p",Bwe,b(o.value),1)):E("",!0)]),r.value?(p(),y("div",Vwe,[(p(),y(j,null,le(3,g=>c("div",{key:g,class:"animate-pulse"},[...f[0]||(f[0]=[c("div",{class:"h-4 bg-gray-200 rounded w-1/3 mb-2 mt-4"},null,-1),c("div",{class:"h-6 bg-gray-200 rounded w-full mb-4"},null,-1)])])),64))])):i.value.length===0&&a(n).searchQuery.length>3?(p(),y("div",Hwe,[c("p",qwe,b(a(s)("registrationAddress.empty")),1)])):(p(),y("div",jwe,[(p(!0),y(j,null,le(i.value,g=>(p(),y("div",{key:g.houseId,class:"cursor-pointer xl:hover:bg-grey-90 px-4 py-4 rounded-md",onClick:m=>l(g)},[c("div",zwe,b(g.addressStreetPart),1),c("div",Wwe,b(g.addressSettlementPart),1)],8,Uwe))),128))]))])}}}),Ywe=Object.assign(Gwe,{__name:"RegistrationAddressListPanel"}),Kwe={class:"flex flex-col min-h-full"},Qwe={class:"container mx-auto px-6 flex-1"},Xwe={class:"text-24 text-left mb-6"},Zwe={class:"space-y-4"},Jwe={key:0,class:"space-y-6"},e7e={class:"flex gap-6"},t7e={class:"w-full p-6 pt-4"},s7e=G({__name:"RegistrationAddressPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=uu(),r=mu(),i=$l(),o=is(),{$showSnackbar:l}=Te(),u=A({get:()=>n.organizationName,set:g=>{n.organizationName=g,r.organizationName=g}}),d=A(()=>n.availableTypes.map(g=>({label:s(n.getDisplayType(g)),value:g})));async function f(){if(r.setSelectedResidenceFromAddressStore(),r.isPersonalRegistration){h("go","back");return}const g=await r.save();if(g.ok){window.ym?.(aa,"reachGoal","registration_sucsess");const m=ba(),_=Oe(),v=Ln(),k=v.hasPendingDemoAuthorization(),x=m.openIfNeeded(_.residence),C=!!_.residence?.withOrganizationName;r.$reset(),i.$reset(),n.$reset(),B0().open({withOrganizationName:C,shouldOpenOrganizationPanel:x}),await o.replace({path:k?"/":gf(_.residence),query:k?v.buildClaimCreateChatQuery():{panel:"registration-success"}})}else l(g.error.message??"")}const h=t;return(g,m)=>{const _=Ae("SegmentedControl"),v=Ae("LabeledTextField"),k=Ae("PrimaryButton");return p(),y("div",Kwe,[c("div",Qwe,[c("h1",Xwe,b(a(s)("registrationResidence.title")),1),T(_,{class:"mb-6",items:d.value,"model-value":a(n).selectedType,"onUpdate:modelValue":a(n).updateType},null,8,["items","model-value","onUpdate:modelValue"]),c("div",Zwe,[a(n).selectedType===a(Re).flat?(p(),y("div",Jwe,[T(v,{modelValue:a(n).flatNumber,"onUpdate:modelValue":m[0]||(m[0]=x=>a(n).flatNumber=x),label:a(s)("address.add.flat")},null,8,["modelValue","label"]),c("div",e7e,[T(v,{modelValue:a(n).flatFloor,"onUpdate:modelValue":m[1]||(m[1]=x=>a(n).flatFloor=x),label:a(s)("address.add.floor"),class:"flex-1"},null,8,["modelValue","label"]),T(v,{modelValue:a(n).flatEntrence,"onUpdate:modelValue":m[2]||(m[2]=x=>a(n).flatEntrence=x),label:a(s)("address.add.enterance"),class:"flex-1"},null,8,["modelValue","label"])])])):a(n).selectedType===a(Re).parkingSpot?(p(),K(v,{key:1,modelValue:a(n).parkingSpotNumber,"onUpdate:modelValue":m[3]||(m[3]=x=>a(n).parkingSpotNumber=x),label:a(s)(a(n).getDisplayPlaceholder())},null,8,["modelValue","label"])):a(n).selectedType===a(Re).storeRoom?(p(),K(v,{key:2,modelValue:a(n).storeRoomNumber,"onUpdate:modelValue":m[4]||(m[4]=x=>a(n).storeRoomNumber=x),label:a(s)(a(n).getDisplayPlaceholder())},null,8,["modelValue","label"])):a(n).selectedType===a(Re).commercialStoreroom?(p(),K(v,{key:3,modelValue:a(n).withoutComersialNumber,"onUpdate:modelValue":m[5]||(m[5]=x=>a(n).withoutComersialNumber=x),label:a(s)(a(n).getDisplayPlaceholder())},null,8,["modelValue","label"])):a(n).selectedType===a(Re).withoutFunctional?(p(),K(v,{key:4,modelValue:a(n).withoutComersialNumber,"onUpdate:modelValue":m[6]||(m[6]=x=>a(n).withoutComersialNumber=x),label:a(s)(a(n).getDisplayPlaceholder())},null,8,["modelValue","label"])):E("",!0),a(n).withOrganizationName?(p(),K(v,{key:5,modelValue:u.value,"onUpdate:modelValue":m[7]||(m[7]=x=>u.value=x),label:a(s)("address.add.organization"),autocomplete:"organization"},null,8,["modelValue","label"])):E("",!0)])]),c("div",t7e,[T(k,{label:a(s)("save"),loading:a(r).isLoading,disabled:!a(n).isButtonEnable,class:"w-full",onClick:f},null,8,["label","loading","disabled"])])])}}}),n7e=Object.assign(s7e,{__name:"RegistrationAddressPanel"}),r7e=G({__name:"SmartCaptcha",props:{sitekey:{},lang:{}},emits:["success","error"],setup(e,{emit:t}){const s=e,n=t,r=X(null);let i;return je(()=>{const o=()=>window.smartCaptcha?l():requestAnimationFrame(o);o();function l(){const u=window.smartCaptcha;!u||!r.value||(i=u.render(r.value,{sitekey:s.sitekey,hl:s.lang??"ru",callback:d=>n("success",d)}),u.subscribe(i,"network-error",()=>n("error","network-error")))}}),Tt(()=>{i!=null&&window.smartCaptcha?.destroy(i)}),(o,l)=>(p(),y("div",{ref_key:"root",ref:r,style:{height:"100px"}},null,512))}}),I9=Object.assign(r7e,{__name:"SmartCaptcha"}),i7e={class:"flex flex-col h-full"},o7e={class:"flex-1 overflow-y-auto"},a7e={class:"pl-6"},l7e={class:"text-24-bold text-left"},c7e={class:"pl-6 pt-2"},u7e={class:"text-16 text-left text-grey-40"},d7e={class:"relative px-6 pt-6"},f7e=G({__name:"RegistrationCaptchaPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),n=F0();je(()=>{r.reloadCaptcha()});const r=N0(),i=async u=>{const d=await r.handleCaptcha(u);d.ok?r.isFromCode?(n.updateInfo(d.data.id,r.phoneValue),l("go",{to:"back",replace:!1})):(n.updateInfo(d.data.id,r.phoneValue),l("go",{to:"login-code",replace:!0})):(r.captcaCode="",s(d.error.message??"unknown"))};function o(u){i(u)}const l=t;return(u,d)=>{const f=I9;return p(),y("div",i7e,[c("div",o7e,[c("div",a7e,[c("h1",l7e,b(u.$t("captcha.title")),1)]),c("div",c7e,[c("h1",u7e,b(u.$t("captcha.descr")),1)]),c("div",d7e,[T(f,{sitekey:"ysc1_BlAQ2aa35TFKPI1QWb8441g8BhQ82o7ja8PG7WOeb529ce9e",onSuccess:o,onError:d[0]||(d[0]=h=>
12a(s)("CAPTCHA: "+h))})])])])}}}),p7e=Object.assign(f7e,{__name:"RegistrationCaptchaPanel"}),h7e=["onClick"],m7e=5,g7e=G({__name:"ClaimsChips",props:{items:{},modelValue:{}},emits:["update:modelValue"],setup(e){const t=e,s=X(null),n=new Map,r=X(!1),i=X(!1);let o=0,l=0;const u=X(!1);function d(_){const v=s.value;v&&(r.value=!0,i.value=!1,o=_.clientX,l=v.scrollLeft)}function f(_){const v=s.value;if(!v||!r.value)return;const k=_.clientX-o;!i.value&&Math.abs(k)>m7e&&(i.value=!0,v.classList.add("chips-scroll--dragging"),v.setPointerCapture?.(_.pointerId)),i.value&&(v.scrollLeft=l-k,_.preventDefault())}function h(_){if(!r.value)return;const v=s.value;v&&(i.value&&_.preventDefault(),v.classList.remove("chips-scroll--dragging"),v.hasPointerCapture?.(_.pointerId)&&v.releasePointerCapture?.(_.pointerId),r.value=!1,i.value=!1)}function g(_,v){const k=_?.$el,x=_ instanceof HTMLButtonElement?_:k instanceof HTMLButtonElement?k:null;if(x){n.set(v,x);return}n.delete(v)}function m(){const _=s.value,v=t.modelValue;if(!_||!v||r.value||i.value)return;const k=n.get(v);if(!k)return;const x=_.scrollWidth-_.clientWidth;if(x<=0)return;const C=k.offsetLeft,w=Math.min(x,Math.max(0,C-(_.clientWidth-k.offsetWidth)/2));_.scrollTo({left:w,behavior:u.value?"smooth":"auto"}),u.value=!0}return Se(()=>[t.modelValue,t.items.map(_=>_.id).join("|")],async()=>{!t.modelValue||!t.items.length||(await lt(),m())},{immediate:!0}),(_,v)=>(p(),y("div",{ref_key:"scrollRef",ref:s,class:"chips-scroll flex flex-nowrap gap-2 overflow-x-auto w-full px-6",onPointerdown:d,onPointermove:f,onPointerup:h,onPointercancel:h,onPointerleave:h},[(p(!0),y(j,null,le(e.items,k=>(p(),y("button",{key:k.id,ref_for:!0,ref:x=>g(x,k.id),type:"button",class:oe(["inline-flex items-center px-3 py-2 rounded-full transition-colors flex-shrink-0",k.id===e.modelValue?"bg-paleLime-primary text-white text-13-bold":"bg-grey-90 text-black xl:hover:bg-grey-80 text-13-bold"]),onClick:x=>_.$emit("update:modelValue",k.id)},b(k.title),11,h7e))),128))],544))}}),y7e=Object.assign(Gs(g7e,[["__scopeId","data-v-3c563f10"]]),{__name:"ClaimsChips"}),_7e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function v7e(e,t){return p(),y("svg",_7e,[...t[0]||(t[0]=[c("path",{fill:"#111",d:"M13.293 7.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 1 1-1.414-1.414L15.586 13H6a1 1 0 0 1 0-2h9.586l-2.293-2.293a1 1 0 0 1 0-1.414"},null,-1)])])}const T9={render:v7e},b7e={class:"mx-auto flex h-full min-h-0 flex-col"},x7e={class:"px-6 pb-6 shrink-0"},k7e={class:"space-y-6"},w7e={class:"text-left text-24-bold"},C7e={class:"flex-1 min-h-0 px-6 pb-6 pr-sbw sbw-gap-2 overflow-y-auto scrollbar-4-grey80"},$7e=["onClick"],S7e={class:"text-16"},A7e={class:"mt-2 flex items-center justify-between"},I7e={class:"text-16-bold text-paleLime-primary"},T7e={key:1,class:"mt-6 text-center text-13 text-grey-50"},P7e={key:1,class:"mt-6 space-y-4 px-2 pr-6"},D7e=G({__name:"ClaimsPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),n=t,{t:r}=be(),i=f9(),o=Al(),l=A(()=>i.categories),u=A({get:()=>i.currentCategoryId,set:m=>{m&&h(m)}}),d=A(()=>{const m=i.searchQuery??"";return!i.isLoading.categories&&m.trim().length===0&&i.categories.length>0});je(async()=>{const m=o.pendingCategoryId;o.resetFlow(),o.queueCategory(m),f(m)});async function f(m){const _=await i.loadCategories(m);if(_.ok){const v=i.getStartWorkId(_,m);if(!v)return;await h(v);return}s(_.error.message??r("-27"))}async function h(m){if(!m||m===i.currentCategoryId)return;const _=i.categories.find(k=>k.id===m);_&&(o.startWithCategory(_.id,_.title),i.anotherWorkTypeId=_.anotherWorkTypeId??"");const v=await i.loadCategoriesWorks(m);v.ok||s(v.error.message??r("-27"))}function g(m){o.openWorkRequest(m.id,m.title),n("go","create-claim")}return(m,_)=>{const v=Ae("SearchTextField"),k=y7e,x=T9;return p(),y("div",b7e,[c("div",x7e,[c("div",k7e,[c("h1",w7e,b(a(r)("drawerClaimsCreate.title")),1),T(v,{loading:a(i).isLoading.search,"model-value":a(i).searchQuery,placeholder:a(r)("drawerClaimsCreate.placeholder"),"onUpdate:modelValue":a(i).updateSearchQuery},null,8,["loading","model-value","placeholder","onUpdate:modelValue"])])]),d.value?(p(),K(k,{key:0,modelValue:u.value,"onUpdate:modelValue":_[0]||(_[0]=C=>u.value=C),items:l.value,class:"mt-2 mb-6 px-6 shrink-0"},null,8,["modelValue","items"])):E("",!0),c("div",C7e,[!a(i).isLoading.search&&!a(i).isLoading.subCategories?(p(),y(j,{key:0},[a(i).workCategories.length?(p(!0),y(j,{key:0},le(a(i).workCategories,C=>(p(),y("div",{key:C.id,class:"group relative w-full cursor-pointer py-4 pr-6 text-black transition-colors duration-200",onClick:w=>
12g(C)},[c("div",null,[c("h3",S7e,b(C.title),1),c("div",A7e,[c("p",I7e,b(a(Sl)(C.cost)),1),T(x,{class:"hidden h-6 w-6 opacity-0 transition-opacity duration-200 xl:block xl:group-hover:opacity-100 [&>path]:fill-paleLime-primary"})])])],8,$7e))),128)):(p(),y("p",T7e,b(a(r)("registrationAddress.empty")),1))],64)):a(i).isLoading.search?E("",!0):(p(),y("div",P7e,[(p(),y(j,null,le(3,C=>c("div",{key:C,class:"animate-pulse"},[..._[1]||(_[1]=[c("div",{class:"mb-2 mt-4 h-4 w-1/3 rounded bg-gray-200"},null,-1),c("div",{class:"mb-4 h-6 w-full rounded bg-gray-200"},null,-1)])])),64))]))])])}}}),E7e=Object.assign(D7e,{__name:"ClaimsPanel"}),L7e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function R7e(e,t){return p(),y("svg",L7e,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0"},null,-1),c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-18a8 8 0 1 1 0 16 8 8 0 0 1 0-16","clip-rule":"evenodd"},null,-1)])])}const qu={render:R7e},M7e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function O7e(e,t){return p(),y("svg",M7e,[...t[0]||(t[0]=[c("path",{fill:"#D0D0D0","fill-rule":"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-18a8 8 0 1 1 0 16 8 8 0 0 1 0-16","clip-rule":"evenodd"},null,-1)])])}const ju={render:O7e},F7e={class:"px-6 py-2"},N7e={class:"text-24-bold mb-6"},B7e={key:0,class:"text-13 text-grey-40"},V7e={key:1,class:"space-y-4"},H7e=["onClick"],q7e={class:"min-w-0 flex-1"},j7e={class:"text-16 text-black"},U7e={key:0,class:"text-13 text-grey-40 mt-1"},z7e={class:"flex h-6 w-6 shrink-0 items-start justify-center"},W7e=G({__name:"ClaimsAddressPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Oe(),i=A(()=>r.residence?.residentId??null),o=A(()=>r.userInfo?.selectAddresses??[]);function l(f){return f.residentId===i.value}function u(f){return[a0(f.flatType),f.flat].filter(h=>h.length>0).join(" ")}function d(f){r.saveAddress(f),s("go","back")}return(f,h)=>{const g=qu,m=ju;return p(),y("div",F7e,[c("h1",N7e,b(a(n)("drawerClaimsCreate.addressTitle")),1),o.value.length<=1?(p(),y("p",B7e,b(a(n)("drawerClaimsCreate.addressEmpty")),1)):(p(),y("div",V7e,[(p(!0),y(j,null,le(o.value,_=>(p(),y("button",{key:_.residentId,type:"button",class:"w-full flex items-start gap-4 text-left",onClick:v=>d(_)},[c("div",q7e,[c("p",j7e,b(_.addressStreetPart),1),u(_)?(p(),y("p",U7e,b(u(_)),1)):E("",!0)]),c("div",z7e,[l(_)?(p(),K(g,{key:0,class:"h-6 w-6 text-emerald-primary"})):(p(),K(m,{key:1,class:"h-6 w-6 text-grey-40"}))])],8,H7e))),128))]))])}}}),G7e=Object.assign(W7e,{__name:"ClaimsAddressPanel"}),Y7e={class:"flex flex-col h-full"},K7e={class:"flex-1 overflow-y-auto"},Q7e={class:"px-6"},X7e={key:0},Z7e={class:"text-24-bold pb-2"},J7e={class:"text-16 pb-3"},e9e={class:"text-16-bold text-paleLime-primary pb-6"},t9e={class:"flex items-center justify-between gap-4"},s9e={class:"text-16 text-black"},n9e={class:"text-13 text-grey-40"},r9e={class:"pt-6"},i9e={class:"text-16"},o9e={class:"text-13 text-grey-40 pt-2 pb-3"},a9e={class:"pt-6"},l9e={class:"flex items-center justify-between"},c9e={class:"text-16"},u9e={key:0},d9e={key:0,class:"w-20 h-4 bg-grey-80 animate-pulse rounded-lg"},f9e={key:1,class:"px-2 py-1 bg-purple-50 text-white text-13 rounded-lg"},p9e={class:"text-13 text-grey-40 pt-2 pb-3"},h9e={key:1,class:"space-y-6"},m9e={class:"p-6"},g9e=G({__name:"CreateClaimPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=Al(),o=p9(),l=kr(),u=Oe(),d=A(()=>u.residence?u.getUserAddress:n("home.emptyAddress")),f=A(()=>(u.userInfo?.selectAddresses??[]).length>0);function h(){f.value&&s("go","claims-address")}async function g(){const m=await o.create();if(m.ok){const _=Al();wi(m.data.claim_id),_.saveClaimId(m.data.claim_id),s("go",{to:"create-claim-success",replace:!0})}else{if(m.error.code==1){l.consumeClaimRetryPending(),l.isFromClaims=!0,s("go",{to:"card-add",replace:!1});return}r(m.error.message??n("drawerClaimsCreate.error"))}}return Se(()=>l.claimRetryPending,async m=>{m&&(l.consumeClaimRetryPending(),await lt(),await g())},{immediate:!0}),je(async()=>{o.startLoad(i.selectedWorkId)}),(m,_)=>{const v=T9,k=ti,x=Ae("LabeledTextField");return p(),y("div",Y7e,[c("div",K7e,[c("div",Q7e,[a(o).isStartLoading?(p(),y("div",h9e,[..._[0]||(_[0]=[ls('<div class="space-y-3"><div class="h-6 w-3/4 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-5 w-2/3 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-5 w-32 rounded-lg bg-grey-80 animate-pulse"></div></div><div class="border-y border-grey-80 py-6 space-y-3"><div class="flex items-center justify-between gap-4"><div class="h-5 flex-1 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-6 w-6 rounded-full bg-grey-80 animate-pulse"></div></div>
12<div class="h-4 w-1/2 rounded-lg bg-grey-80 animate-pulse"></div></div><div class="space-y-3"><div class="h-5 w-48 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-4 w-3/4 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-24 rounded-xl bg-grey-80 animate-pulse"></div></div><div class="space-y-3"><div class="flex items-center justify-between"><div class="h-5 w-40 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-6 w-20 rounded-lg bg-grey-80 animate-pulse"></div></div><div class="h-4 w-3/4 rounded-lg bg-grey-80 animate-pulse"></div><div class="h-12 rounded-xl bg-grey-80 animate-pulse"></div></div>',4)])])):(p(),y("div",X7e,[c("div",null,[c("div",null,[c("p",Z7e,b(a(o).categoryValue),1),c("p",J7e,b(a(o).subCategoryValue),1),c("p",e9e,b(a(Sl)(a(o).categoryPriceValue)),1)])]),c("div",{class:oe(["border-y border-grey-80 py-6 space-y-2",{"cursor-pointer":f.value}]),onClick:h},[c("div",t9e,[c("p",s9e,b(d.value),1),f.value?(p(),K(v,{key:0,class:"h-6 w-6 text-grey-40"})):E("",!0)]),c("p",n9e,b(a(u).getUserResidence),1)],2),c("div",r9e,[c("p",i9e,b(a(n)("claims-category-request.commnetTitle")),1),c("p",o9e,b(a(n)("claims-category-request.commnetDescr")),1),T(k,{"model-value":a(o).commentValue,multiline:!0,"input-type":"text","placeholder-text":a(n)("claims-category-request.commnetPlaceholder"),"onUpdate:modelValue":a(o).updateCommentValue},null,8,["model-value","placeholder-text","onUpdate:modelValue"])]),c("div",a9e,[c("div",l9e,[c("p",c9e,b(a(n)("claims-category-request.countTitle")),1),a(o).countValue?(p(),y("div",u9e,[a(o).isAmountLoading?(p(),y("div",d9e)):(p(),y("span",f9e,b(a(Sl)(a(o).amountPrice)),1))])):E("",!0)]),c("p",p9e,b(a(n)("claims-category-request.countDescr")),1),T(x,{"model-value":a(o).countValue,type:"text","input-mode":"numeric",formatter:a(q0)(100),label:a(o).countPlaceholder,"onUpdate:modelValue":a(o).updateCountValue},null,8,["model-value","formatter","label","onUpdate:modelValue"])])]))])]),c("div",m9e,[T(a(vt),{class:"w-full",label:a(n)("drawerClaimsCreate.createButton"),loading:a(o).isLoading,disabled:!a(o).isEnabled,onClick:g},null,8,["label","loading","disabled"])])])}}}),y9e=Object.assign(g9e,{__name:"CreateClaimPanel"}),_9e={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function v9e(e,t){return p(),y("svg",_9e,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M114.217 10.976c.563.403.857 1.083.767 1.77l-11.875 89.999a1.875 1.875 0 0 1-2.616 1.47L68.71 90.194 48.734 107.66a1.875 1.875 0 0 1-3.066-1.013l-6.03-27.74L6.233 66.763a1.875 1.875 0 0 1-.19-3.443l106.25-52.5a1.88 1.88 0 0 1 1.923.157M43.313 78.163l4.89 22.49 8.87-17.742q.08-.158.187-.299l42.026-55.069zm58.551-58.007L11.639 64.737l29.19 10.615zm8.481-.923-48.66 63.762 38.033 16.78zM59.628 86.187l5.296 2.336-11.486 10.044zM76.679 17.915a1.875 1.875 0 0 1-.844 2.514l-8.125 4.043a1.875 1.875 0 0 1-1.67-3.357l8.125-4.044a1.875 1.875 0 0 1 2.514.844M59.36 26.668c.46.928.08 2.052-.848 2.512q-.57.281-1.163.578c-5.382 2.675-12.217 6.073-19.126 7.919-7.405 1.978-15.351 2.3-21.827-2.41a1.875 1.875 0 0 1 2.206-3.033c5.114 3.72 11.663 3.688 18.653 1.82 6.527-1.744 13.043-4.98 18.483-7.683l1.11-.551a1.875 1.875 0 0 1 2.512.848","clip-rule":"evenodd"},null,-1)])])}const Uu={render:v9e},b9e={class:"flex h-full flex-col"},x9e={class:"flex-1 px-6"},k9e={class:"flex h-full flex-col items-center justify-center space-y-6 text-center"},w9e={class:"text-24-bold"},C9e={class:"text-13 text-grey-40 mt-2"},$9e={class:"p-6"},S9e=G({__name:"CreateClaimSuccess",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Oe();function i(){const o=Al().claimId,l=typeof o=="string"?o:o?.claim_id||o?.id||"";s("go",{to:"claim-info",query:{id:l,premises_id:r.residence?.premisesId??null},replace:!0})}return(o,l)=>{const u=Uu,d=Ae("PrimaryButton");return p(),y("div",b9e,[c("div",x9e,[c("div",k9e,[T(u,{class:"h-[120px] w-[120px] text-purple-50"}),c("div",w9e,[Qe(b(a(n)("drawerClaimsCreate.success"))+" ",1),c("p",C9e,b(a(n)("drawerClaimsCreate.descr")),1)])])]),c("div",$9e,[T(d,{class:"w-full",label:a(n)("drawerClaimsCreate.toClaim"),onClick:i},null,8,["label"])])])}}}),A9e=Object.assign(S9e,{__name:"CreateClaimSuccess"}),I9e={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function T9e(e,t){return p(),y("svg",I9e,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M77.2 28.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376V77.74c0 .98.001 1.82-.059 2.478-.058.637-.19 1.389-.673 2.012a3.5 3.5 0 0 1-2.65 1.356c-.789.026-1.477-.306-2.027-.632-.568-.336-1.248-.83-2.043-1.403l-9.57-6.912c-1.29-.932-1.785-1.281-2.31-1.527a6.5 6.5 0 0 0-1.542-.499c-.569-.108-1.173-.114-2.765-.114H40c-1.787 0-2.9.007-3.853-.183a9.5 9.5 0 0 1-7.464-7.463c-.19-.955-.183-2.067-.183-3.854a1.5 1.5 0 0 1 3 0c0 1.93.007 2.677.125 3.269a6.5 6.5 0 0 0 5.106 5.106c.592.118 1.338.125 3.269.125h27.861c1.481 0 2.414-.006 3.325.167.7
1279.148 1.537.393 2.255.73.84.392 1.592.943 2.792 1.81l9.572 6.913c.843.609 1.391 1.003 1.813 1.253.252.15.381.197.425.211a.5.5 0 0 0 .333-.17c.014-.043.051-.175.078-.469.045-.488.046-1.164.046-2.204V42.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.603-1.259-.103-2.867-.105-5.132-.105H74a1.5 1.5 0 0 1 0-3zM54 38.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM54 30.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM54 22.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M53.2 10.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.736.921a9.5 9.5 0 0 1 4.153 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v15.4c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.736a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H28.14c-1.592 0-2.196.006-2.765.114a6.5 6.5 0 0 0-1.543.5c-.524.245-1.018.594-2.308 1.526l-9.57 6.912c-.796.574-1.476 1.067-2.044 1.403-.55.326-1.238.658-2.026.632a3.5 3.5 0 0 1-2.65-1.356c-.483-.623-.616-1.375-.674-2.012-.06-.657-.059-1.497-.059-2.478V24.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c1.
12102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115zm-34.4 3c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.132V59.74c0 1.04.001 1.716.046 2.204.027.294.064.426.078.47a.5.5 0 0 0 .333.169c.044-.014.173-.062.425-.211.422-.25.97-.644 1.813-1.253l9.572-6.913c1.2-.867 1.953-1.418 2.792-1.81a9.5 9.5 0 0 1 2.255-.73c.91-.173 1.843-.167 3.325-.167H53.2c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V24.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.604-1.259-.102-2.867-.104-5.132-.104z","clip-rule":"evenodd"},null,-1)])])}const P9e={render:T9e},D9e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function E9e(e,t){return p(),y("svg",D9e,[...t[0]||(t[0]=[c("path",{fill:"#000","fill-rule":"evenodd",d:"M12 4a8 8 0 1 0 8 8 1 1 0 1 1 2 0A10 10 0 1 1 12 2a1 1 0 1 1 0 2","clip-rule":"evenodd"},null,-1)])])}const P9={render:E9e},L9e={class:"m-6 flex items-center gap-2 bg-grey-90 rounded-lg"},R9e=["aria-label"],M9e={class:"w-10 h-10 rounded-full flex items-center justify-center transition-colors xl:group-hover:bg-grey-80"},O9e=["placeholder"],F9e=["aria-disabled"],pb=296,N9e=G({__name:"AIChatInput",props:{modelValue:{},placeholder:{},isSending:{type:Boolean}},emits:["update:modelValue","send","attach"],setup(e,{emit:t}){const s=e,n=t,r=X(s.modelValue);Se(()=>s.modelValue,m=>{r.value=m,h()}),Se(r,m=>n("update:modelValue",m));const i=X(null),o=A(()=>!r.value.trim()),l=A(()=>!!s.isSending),u=A(()=>!o.value&&!l.value),{t:d}=be(),f=A(()=>s.placeholder||d("chat.placeholder")),h=()=>{lt(()=>{const m=i.value;if(!m)return;m.style.height="0px";const _=Math.min(m.scrollHeight,pb);m.style.height=`${_}px`,m.style.overflowY=m.scrollHeight>pb?"auto":"hidden",m.style.overflowX="hidden"})},g=m=>{m.shiftKey||m.ctrlKey||m.altKey||m.metaKey||m.isComposing||(m.preventDefault(),u.value&&n("send"))};return je(h),(m,_)=>{const v=V0,k=P9,x=X0,C=Z0;return p(),y("div",L9e,[c("div",{class:"w-14 h-14 flex items-center justify-center flex-shrink-0 self-end group cursor-pointer","aria-label":a(d)("chat.attachFile"),onClick:_[0]||(_[0]=w=>n("attach"))},[c("div",M9e,[T(v,{class:"w-6 h-6 [&>path]:fill-grey-40"})])],8,R9e),pn(c("textarea",{ref_key:"textareaRef",ref:i,"onUpdate:modelValue":_[1]||(_[1]=w=>r.value=w),placeholder:f.value,rows:"1",class:"flex-1 resize-none overflow-y-auto px-0 py-2 text-16 leading-6 rounded-md focus:outline-none caret-paleLime-primary scrollbar-4-grey80",style:{height:"auto"},onInput:h,onKeydown:Qr(g,["enter"])},null,40,O9e),[[jr,r.value]]),c("div",{class:oe(["w-14 h-14 rounded-full flex items-center justify-center transition-colors group self-end",u.value?"cursor-pointer":"cursor-default"]),"aria-disabled":u.value?"false":"true",onClick:_[2]||(_[2]=w=>u.value&&m.$emit("send"))},[c("div",{class:oe(["w-10 h-10 rounded-full flex items-center justify-center transition-colors",o.value||l.value?"bg-transparent":"bg-paleLime-primary xl:group-hover:bg-paleLime-40"])},[l.value?(p(),K(k,{key:0,class:"animate-spin"})):o.value?(p(),K(C,{key:2,class:""})):(p(),K(x,{key:1,class:""}))],2)],10,F9e)])}}}),B9e=Object.assign(N9e,{__name:"AIChatInput"}),V9e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function H9e(e,t){return p(),y("svg",V9e,[...t[0]||(t[0]=[c("path",{fill:"#F9F9F9","fill-rule":"evenodd",d:"M12 2a8 8 0 0 0-8 8v.884c0 1.184-.001 1.71-.051 2.229q-.068.706-.227 1.396c-.116.507-.282 1.008-.656 2.13l-.015.045A1 1 0 0 0 4 18h16a1 1 0 0 0 .949-1.316l-.015-.044c-.374-1.123-.54-1.624-.656-2.13q-.159-.691-.227-1.397c-.05-.518-.051-1.045-.051-2.229V10a8 8 0 0 0-8-8m-6 8a6 6 0 1 1 12 0v.941c0 1.112 0 1.74.06 2.364q.081.835.268 1.65c.076.33.168.653.29 1.045H5.382c.123-.392.215-.716.29-1.044a13 13 0 0 0 .268-1.65C6 12.68 6 12.053 6 10.942z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#F9F9F9",d:"M10.5 19.598a1 1 0 1 0-1 1.732 5 5 0 0 0 5 0 1 1 0 1 0-1-1.732 3 3 0 0 1-3 0"},null,-1)])])}const q9e={render:H9e},j9e={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function U9e(e,t){return p(),y("svg",j9e,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M10.5 8a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zM8.5 6a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M8.425 1.513a6.5 6.5 0 0 1 6.061 6.062 6.5 6.5 0 0 1-5.218 6.8 6.5 6.5 0 0 1-3.206-.171 59 59 0 0 0-.825-.254 3 3 0 0 0-.344-.088 2 2 0 0 0-.169-.018 2 2 0 0 0-.169.011c-.115.01-.271.05-.707.167l-.38.102c-.21.056-.401.108-.558.134a1.05 1.05 0 0 1-.562-.032 1 1 0 0 1-.575-.575 1.05 1.05 0 0 1-.032-.561c.027-.157.079-.348.135-.558l.101-.38c.117-.436.157-.592.167-.708.01-.107.013-.14.012-.169a2 2 0 0 0-.019-.169 3 3 0 0 0-.087-.344c-.058-.196-.141-.462-.254-.825a6.5 6.5 0 0 1 2.247-7.094 6.5 6.5 0 0 1 4.382-1.33m-.066.998A5.502 5.502 0 0 0 2.75 9.64c.113.36.199.636.26.842.057.197.103.365.12.492.013.102.025.189.027.282s-.006.18-.016.282c-.02.222-.092.481-.197.873l-.101.38a6 6 0 0 0-.116.47q0 .008-.002.014h.016c.1-.018.24-.055.469-.116l.38-.102c.392-.105.652-.176.874-.197.101-.01.19-.017.282-.015.093.001.18.013.281.027.128.017.296.062.492.12.207.06.483.147.842.259a5.5 5.5 0 0 0 6.003-1.902 5.5 5.5 0 0 0-.474-7.237 5.5 5.5 0 0 0-3.53-1.6","clip-rule":"evenodd"},null,-1)])])}const D9={render:U9e},z9e={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function W9e(e,t){return p(),y("svg",z9e,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M11 10a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M12.704 1.285c.261-.034.584-.05.922.062.4.132.748.387.994.726l.099.15.062.116c.133.27.177.542.197.771.023.254.022.562.022.884v16.012c0 .322 0 .63-.021.884-.023.262-.078.58-.26.886a2 2 0 0 1-1.093.877 2.04 2.04 0 0 1-.922.062c-.253-.033-.553-.101-.868-.171l-5.8-1.29c-.21-.046-.419-.092-.595-.145a2 2 0 0 1-.61-.289 2 2 0 0 1-.669-.833 2 2 0 0 1-.15-.659C4 19.145 4 18.931 4 18.717V5.283c0-.214 0-.428.013-.611.014-.196.048-.423.15-.66a2 2 0 0 1 .668-.832 2 2 0 0 1 .61-.29c.176-.052.386-.098.595-.145l5.8-1.289c.315-.07.615-.137.868-.17m.26 1.984c-.144.019-.344.062-.694.14L6.47 4.7c-.238.052-.364.08-.453.107q-.005 0-.008.002l-.001.01A7 7 0 0 0 6 5.283v13.434c0 .243.001.372.008.465v.01l.009.002c.089.027.215.055.453.108l5.8 1.289c.35.078.55.121.695.14q.01 0 .018.002l.003-.018a9 9 0 0 0 .014-.71V3.996c0-.36 0-.564-.014-.71l-.003-.018q-.008 0-.018.002","clip-rule":"evenodd"},null,-1),c("path",{fill:"#212926",d:"M17.4 3c.264 0 .522-.001.739.017.228.018.498.063.77.2.328.169.604.424.796.737l.077.138.087.203c.072.2.1.395.114.566.018.217.017.475.017.739v12.8c0 .264.001.522-.017.739a2 2 0 0 1-.2.77 2 2
120 0 1-.875.873 2 2 0 0 1-.77.201c-.216.018-.474.017-.738.017H17a1 1 0 0 1 0-2h.4c.297 0 .46-.001.576-.01l.011-.003.002-.011c.01-.117.011-.28.011-.576V5.6c0-.297-.001-.459-.01-.576l-.003-.012-.011-.001A8 8 0 0 0 17.4 5H17a1 1 0 0 1 0-2z"},null,-1)])])}const G9e={render:W9e},Y9e=Ls("/images/chat_butler_avatar.png");function hb(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}function K9e(e){if(Array.isArray(e))return e}function Q9e(e,t){var s=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s!=null){var n,r,i,o,l=[],u=!0,d=!1;try{if(i=(s=s.call(e)).next,t!==0)for(;!(u=(n=i.call(s)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){d=!0,r=f}finally{try{if(!u&&s.return!=null&&(o=s.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function X9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z9e(e,t){return K9e(e)||Q9e(e,t)||J9e(e,t)||X9e()}function J9e(e,t){if(e){if(typeof e=="string")return hb(e,t);var s={}.toString.call(e).slice(8,-1);return s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set"?Array.from(e):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?hb(e,t):void 0}}const E9=Object.entries,mb=Object.setPrototypeOf,eCe=Object.isFrozen,tCe=Object.getPrototypeOf,sCe=Object.getOwnPropertyDescriptor;let Us=Object.freeze,zs=Object.seal,qa=Object.create,L9=typeof Reflect<"u"&&Reflect,um=L9.apply,dm=L9.construct;Us||(Us=function(t){return t});zs||(zs=function(t){return t});um||(um=function(t,s){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t.apply(s,r)});dm||(dm=function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];return new t(...n)});const wc=Ts(Array.prototype.forEach),nCe=Ts(Array.prototype.lastIndexOf),gb=Ts(Array.prototype.pop),Ra=Ts(Array.prototype.push),rCe=Ts(Array.prototype.splice),no=Array.isArray,Rc=Ts(String.prototype.toLowerCase),Ip=Ts(String.prototype.toString),yb=Ts(String.prototype.match),Cc=Ts(String.prototype.replace),_b=Ts(String.prototype.indexOf),iCe=Ts(String.prototype.trim),oCe=Ts(Number.prototype.toString),aCe=Ts(Boolean.prototype.toString),vb=typeof BigInt>"u"?null:Ts(BigInt.prototype.toString),bb=typeof Symbol>"u"?null:Ts(Symbol.prototype.toString),Fs=Ts(Object.prototype.hasOwnProperty),$c=Ts(Object.prototype.toString),Hs=Ts(RegExp.prototype.test),Mo=lCe(TypeError);function Ts(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var s=arguments.length,n=new Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];return um(e,t,n)}}function lCe(e){return function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return dm(e,s)}}function Nt(e,t){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rc;if(mb&&mb(e,null),!no(t))return e;let n=t.length;for(;n--;){let r=t[n];if(typeof r=="string"){const i=s(r);i!==r&&(eCe(t)||(t[n]=i),r=i)}e[r]=!0}return e}function cCe(e){for(let t=0;t<e.length;t++)Fs(e,t)||(e[t]=null);return e}function rn(e){const t=qa(null);for(const n of E9(e)){var s=Z9e(n,2);const r=s[0],i=s[1];Fs(e,r)&&(no(i)?t[r]=cCe(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=rn(i):t[r]=i)}return t}function uCe(e){switch(typeof e){case"string":return e;case"number":return oCe(e);case"boolean":return aCe(e);case"bigint":return vb?vb(e):"0";case"symbol":return bb?bb(e):"Symbol()";case"undefined":return $c(e);case"function":case"object":{if(e===null)return $c(e);const t=e,s=Er(t,"toString");if(typeof s=="function"){const n=s(t);return typeof n=="string"?n:$c(n)}return $c(e)}default:return $c(e)}}function Er(e,t){for(;e!==null;){const n=sCe(e,t);if(n){if(n.get)return Ts(n.get);if(typeof n.value=="function")return Ts(n.value)}e=tCe(e)}function s(){return null}return s}function dCe(e){try{return Hs(e,""),!0}catch{return!1}}const xb=Us(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Tp=Us(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pp=Us(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),fCe=Us(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dp=Us(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pCe=Us(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),kb=Us(["#text"]),wb=Us(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
13spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ep=Us(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Cb=Us(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Td=Us(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hCe=zs(/{{[\w\W]*|^[\w\W]*}}/g),mCe=zs(/<%[\w\W]*|^[\w\W]*%>/g),gCe=zs(/\${[\w\W]*/g),yCe=zs(/^data-[\-\w.\u00B7-\uFFFF]+$/),_Ce=zs(/^aria-[\-\w]+$/),$b=zs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vCe=zs(/^(?:\w+script|data):/i),bCe=zs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xCe=zs(/^html$/i),kCe=zs(/^[a-z][.\w]*(-[.\w]+)+$/i),Sb=zs(/<[/\w!]/g),wCe=zs(/<[/\w]/g),CCe=zs(/<\/no(script|embed|frames)/i),$Ce=zs(/\/>/i),Dr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},SCe=function(){return typeof window>"u"?null:window}
vendor: 4,217 bytes, line 13
13,ACe=function(t,s){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";s&&s.hasAttribute(r)&&(n=s.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Ab=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Gi=function(t,s,n,r){return Fs(t,s)&&no(t[s])?Nt(r.base?rn(r.base):{},t[s],r.transform):n};function R9(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SCe();const t=qe=>R9(qe);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Dr.document||!e.Element)return t.isSupported=!1,t;let s=e.document;const n=s,r=n.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,o=e.Node,l=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,h=e.trustedTypes,g=l.prototype,m=Er(g,"cloneNode"),_=Er(g,"remove"),v=Er(g,"nextSibling"),k=Er(g,"childNodes"),x=Er(g,"parentNode"),C=Er(g,"shadowRoot"),w=Er(g,"attributes"),$=o&&o.prototype?Er(o.prototype,"nodeType"):null,S=o&&o.prototype?Er(o.prototype,"nodeName"):null;if(typeof i=="function"){const qe=s.createElement("template");qe.content&&qe.content.ownerDocument&&(s=qe.content.ownerDocument)}let I,P="",L,D=!1,R=0;const F=function(){if(R>0)throw Mo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},N=function(U){F(),R++;try{return I.createHTML(U)}finally{R--}},z=function(U){F(),R++;try{return I.createScriptURL(U)}finally{R--}},me=function(){return D||(L=ACe(h,r),D=!0),L},ge=s,fe=ge.implementation,te=ge.createNodeIterator,V=ge.createDocumentFragment,pe=ge.getElementsByTagName,ye=n.importNode;let ne=Ab();t.isSupported=typeof E9=="function"&&typeof x=="function"&&fe&&fe.createHTMLDocument!==void 0;const ve=hCe,J=mCe,he=gCe,Ee=yCe,He=_Ce,de=vCe,Me=bCe,De=kCe;let ze=$b,Ue=null;const ut=Nt({},[...xb,...Tp,...Pp,...Dp,...kb]);let H=null;const Y=Nt({},[...wb,...Ep,...Cb,...Td]);let W=Object.seal(qa(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ae=null;const M=Object.seal(qa(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let q=!0,re=!0,ce=!1,ie=!0,$e=!1,se=!0,xe=!1,Ve=!1,Ze=null,Je=null,dt=!1,ft=!1,It=!1,Wt=!1,ss=!0,Ps=!1;const Ms="user-content-";let Gt=!0,Le=!1,ee={},Pe=null;const Ge=Nt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _t=null;const qt=Nt({},["audio","video","img","source","image","track"]);let Ht=null;const ps=Nt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ws="http://www.w3.org/1998/Math/MathML",gs="http://www.w3.org/2000/svg",xs="http://www.w3.org/1999/xhtml";let Zt=xs,Ns=!1,en=null;const tn=Nt({},[ws,gs,xs],Ip),Os=Us(["mi","mo","mn","ms","mtext"]);let On=Nt({},Os);const wr=Us(["annotation-xml"]);let Fn=Nt({},wr);const Bi=Nt({},["title","style","font","a","script"]);let ke=null;const Fe=["application/xhtml+xml","text/html"],ct="text/html";let at=null,Mt=null;const ys=s.createElement("form"),Bs=function(U){return U instanceof RegExp||U instanceof Function},Nn=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mt&&Mt===U)return;(!U||typeof U!="object")&&(U={}
vendor: 5,016 bytes, line 13
13),U=rn(U),ke=Fe.indexOf(U.PARSER_MEDIA_TYPE)===-1?ct:U.PARSER_MEDIA_TYPE,at=ke==="application/xhtml+xml"?Ip:Rc,Ue=Gi(U,"ALLOWED_TAGS",ut,{transform:at}),H=Gi(U,"ALLOWED_ATTR",Y,{transform:at}),en=Gi(U,"ALLOWED_NAMESPACES",tn,{transform:Ip}),Ht=Gi(U,"ADD_URI_SAFE_ATTR",ps,{transform:at,base:ps}),_t=Gi(U,"ADD_DATA_URI_TAGS",qt,{transform:at,base:qt}),Pe=Gi(U,"FORBID_CONTENTS",Ge,{transform:at}),_e=Gi(U,"FORBID_TAGS",rn({}),{transform:at}),ae=Gi(U,"FORBID_ATTR",rn({}),{transform:at}),ee=Fs(U,"USE_PROFILES")?U.USE_PROFILES&&typeof U.USE_PROFILES=="object"?rn(U.USE_PROFILES):U.USE_PROFILES:!1,q=U.ALLOW_ARIA_ATTR!==!1,re=U.ALLOW_DATA_ATTR!==!1,ce=U.ALLOW_UNKNOWN_PROTOCOLS||!1,ie=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=U.SAFE_FOR_TEMPLATES||!1,se=U.SAFE_FOR_XML!==!1,xe=U.WHOLE_DOCUMENT||!1,ft=U.RETURN_DOM||!1,It=U.RETURN_DOM_FRAGMENT||!1,Wt=U.RETURN_TRUSTED_TYPE||!1,dt=U.FORCE_BODY||!1,ss=U.SANITIZE_DOM!==!1,Ps=U.SANITIZE_NAMED_PROPS||!1,Gt=U.KEEP_CONTENT!==!1,Le=U.IN_PLACE||!1,ze=dCe(U.ALLOWED_URI_REGEXP)?U.ALLOWED_URI_REGEXP:$b,Zt=typeof U.NAMESPACE=="string"?U.NAMESPACE:xs,On=Fs(U,"MATHML_TEXT_INTEGRATION_POINTS")&&U.MATHML_TEXT_INTEGRATION_POINTS&&typeof U.MATHML_TEXT_INTEGRATION_POINTS=="object"?rn(U.MATHML_TEXT_INTEGRATION_POINTS):Nt({},Os),Fn=Fs(U,"HTML_INTEGRATION_POINTS")&&U.HTML_INTEGRATION_POINTS&&typeof U.HTML_INTEGRATION_POINTS=="object"?rn(U.HTML_INTEGRATION_POINTS):Nt({},wr);const we=Fs(U,"CUSTOM_ELEMENT_HANDLING")&&U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING=="object"?rn(U.CUSTOM_ELEMENT_HANDLING):qa(null);if(W=qa(null),Fs(we,"tagNameCheck")&&Bs(we.tagNameCheck)&&(W.tagNameCheck=we.tagNameCheck),Fs(we,"attributeNameCheck")&&Bs(we.attributeNameCheck)&&(W.attributeNameCheck=we.attributeNameCheck),Fs(we,"allowCustomizedBuiltInElements")&&typeof we.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=we.allowCustomizedBuiltInElements),zs(W),$e&&(re=!1),It&&(ft=!0),ee&&(Ue=Nt({},kb),H=qa(null),ee.html===!0&&(Nt(Ue,xb),Nt(H,wb)),ee.svg===!0&&(Nt(Ue,Tp),Nt(H,Ep),Nt(H,Td)),ee.svgFilters===!0&&(Nt(Ue,Pp),Nt(H,Ep),Nt(H,Td)),ee.mathMl===!0&&(Nt(Ue,Dp),Nt(H,Cb),Nt(H,Td))),M.tagCheck=null,M.attributeCheck=null,Fs(U,"ADD_TAGS")&&(typeof U.ADD_TAGS=="function"?M.tagCheck=U.ADD_TAGS:no(U.ADD_TAGS)&&(Ue===ut&&(Ue=rn(Ue)),Nt(Ue,U.ADD_TAGS,at))),Fs(U,"ADD_ATTR")&&(typeof U.ADD_ATTR=="function"?M.attributeCheck=U.ADD_ATTR:no(U.ADD_ATTR)&&(H===Y&&(H=rn(H)),Nt(H,U.ADD_ATTR,at))),Fs(U,"ADD_URI_SAFE_ATTR")&&no(U.ADD_URI_SAFE_ATTR)&&Nt(Ht,U.ADD_URI_SAFE_ATTR,at),Fs(U,"FORBID_CONTENTS")&&no(U.FORBID_CONTENTS)&&(Pe===Ge&&(Pe=rn(Pe)),Nt(Pe,U.FORBID_CONTENTS,at)),Fs(U,"ADD_FORBID_CONTENTS")&&no(U.ADD_FORBID_CONTENTS)&&(Pe===Ge&&(Pe=rn(Pe)),Nt(Pe,U.ADD_FORBID_CONTENTS,at)),Gt&&(Ue["#text"]=!0),xe&&Nt(Ue,["html","head","body"]),Ue.table&&(Nt(Ue,["tbody"]),delete _e.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ye=I;I=U.TRUSTED_TYPES_POLICY;try{P=N("")}catch(nt){throw I=Ye,nt}}else U.TRUSTED_TYPES_POLICY===null?(I=void 0,P=""):(I===void 0&&(I=me()),I&&typeof P=="string"&&(P=N("")));Us&&Us(U),Mt=U},Bn=Nt({},[...Tp,...Pp,...fCe]),hn=Nt({},[...Dp,...pCe]),Vi=function(U,we,Ye){return we.namespaceURI===xs?U==="svg":we.namespaceURI===ws?U==="svg"&&(Ye==="annotation-xml"||On[Ye]):!!Bn[U]},Ao=function(U,we,Ye){return we.namespaceURI===xs?U==="math":we.namespaceURI===gs?U==="math"&&Fn[Ye]:!!hn[U]},Vn=function(U,we,Ye){return we.namespaceURI===gs&&!Fn[Ye]||we.namespaceURI===ws&&!On[Ye]?!1:!hn[U]&&(Bi[U]||!Bn[U])},Dt=function(U){let we=x(U);(!we||!we.tagName)&&(we={namespaceURI:Zt,tagName:"template"});const Ye=Rc(U.tagName),nt=Rc(we.tagName);return en[U.namespaceURI]?U.namespaceURI===gs?Vi(Ye,we,nt):U.namespaceURI===ws?Ao(Ye,we,nt):U.namespaceURI===xs?Vn(Ye,we,nt):!!(ke==="application/xhtml+xml"&&en[U.namespaceURI]):!1},sn=function(U){Ra(t.removed,{element:U});try{x(U).removeChild(U)}catch{if(_(U),!x(U))throw Mo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ii=function(U){const we=k(U);if(we){const nt=[];wc(we,$t=>{Ra(nt,$t)}),wc(nt,$t=>{try{_($t)}catch{}})}const Ye=w(U);if(Ye)for(let nt=Ye.length-1;nt>=0;--nt){const $t=Ye[nt],Et=$t&&$t.name;if(typeof Et=="string")try{U.removeAttribute(Et)}catch{}}},nr=function(U,we){try{Ra(t.removed,{attribute:we.getAttributeNode(U),from:we})}catch{Ra(t.removed,{attribute:null,from:we})}if(we.removeAttribute(U),U==="is")if(ft||It)try{sn(we)}catch{}else try{we.setAttribute(U,"")}catch{}},sc=function(U){const we=w(U);if(we)for(let Ye=we.length-1;Ye>=0;--Ye){const nt=we[Ye],$t=nt&&nt.name;if(!(typeof $t!="string"||H[at($t)]))try{U.removeAttribute($t)}catch{}}},ka=function(U){const we=[U];for(;we.length>0;){const Ye=we.pop();
13($?$(Ye):Ye.nodeType)===Dr.element&&sc(Ye);const $t=k(Ye);if($t)for(let Et=$t.length-1;Et>=0;--Et)we.push($t[Et])}},wa=function(U){let we=null,Ye=null;if(dt)U="<remove></remove>"+U;else{const Et=yb(U,/^[\r\n\t ]+/);Ye=Et&&Et[0]}ke==="application/xhtml+xml"&&Zt===xs&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const nt=I?N(U):U;if(Zt===xs)try{we=new f().parseFromString(nt,ke)}catch{}if(!we||!we.documentElement){we=fe.createDocument(Zt,"template",null);try{we.documentElement.innerHTML=Ns?P:nt}catch{}}const $t=we.body||we.documentElement;return U&&Ye&&$t.insertBefore(s.createTextNode(Ye),$t.childNodes[0]||null),Zt===xs?pe.call(we,xe?"html":"body")[0]:xe?we.documentElement:$t},oi=function(U){return te.call(U.ownerDocument||U,U,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cr=function(U){return U=Cc(U,ve," "),U=Cc(U,J," "),U=Cc(U,he," "),U},rr=function(U){var we;U.normalize();const Ye=te.call(U.ownerDocument||U,U,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let nt=Ye.nextNode();for(;nt;)nt.data=Cr(nt.data),nt=Ye.nextNode();const $t=(we=U.querySelectorAll)===null||we===void 0?void 0:we.call(U,"template");$t&&wc($t,Et=>{$r(Et.content)&&rr(Et.content)})},Hi=function(U){const we=S?S(U):null;return typeof we!="string"||at(we)!=="form"?!1:typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||U.attributes!==w(U)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function"||U.nodeType!==$(U)||U.childNodes!==k(U)},$r=function(U){if(!$||typeof U!="object"||U===null)return!1;try{return $(U)===Dr.documentFragment}catch{return!1}},ai=function(U){if(!$||typeof U!="object"||U===null)return!1;try{return typeof $(U)=="number"}catch{return!1}};function $n(qe,U,we){qe.length!==0&&wc(qe,Ye=>{Ye.call(t,U,we,Mt)})}const Ca=function(U,we){return!!(se&&U.hasChildNodes()&&!ai(U.firstElementChild)&&Hs(Sb,U.textContent)&&Hs(Sb,U.innerHTML)||se&&U.namespaceURI===xs&&we==="style"&&ai(U.firstElementChild)||U.nodeType===Dr.processingInstruction||se&&U.nodeType===Dr.comment&&Hs(wCe,U.data))},qi=function(U,we){if(!_e[we]&&Aa(we)&&(W.tagNameCheck instanceof RegExp&&Hs(W.tagNameCheck,we)||W.tagNameCheck instanceof Function&&W.tagNameCheck(we)))return!1;if(Gt&&!Pe[we]){const Ye=x(U),nt=k(U);if(nt&&Ye){const $t=nt.length;for(let Et=$t-1;Et>=0;--Et){const Cs=Le?nt[Et]:m(nt[Et],!0);Ye.insertBefore(Cs,v(U))}}}return sn(U),!0},$a=function(U){if($n(ne.beforeSanitizeElements,U,null),Hi(U))return sn(U),!0;const we=at(S?S(U):U.nodeName);if($n(ne.uponSanitizeElement,U,{tagName:we,allowedTags:Ue}),Ca(U,we))return sn(U),!0;if(_e[we]||!(M.tagCheck instanceof Function&&M.tagCheck(we))&&!Ue[we])return qi(U,we);if(($?$(U):U.nodeType)===Dr.element&&!Dt(U)||(we==="noscript"||we==="noembed"||we==="noframes")&&Hs(CCe,U.innerHTML))return sn(U),!0;if($e&&U.nodeType===Dr.text){const nt=Cr(U.textContent);U.textContent!==nt&&(Ra(t.removed,{element:U.cloneNode()}),U.textContent=nt)}return $n(ne.afterSanitizeElements,U,null),!1},Sa=function(U,we,Ye){if(ae[we]||ss&&(we==="id"||we==="name")&&(Ye in s||Ye in ys))return!1;const nt=H[we]||M.attributeCheck instanceof Function&&M.attributeCheck(we,U);if(!(re&&Hs(Ee,we))){if(!(q&&Hs(He,we))){if(nt){if(!Ht[we]){if(!Hs(ze,Cc(Ye,Me,""))){if(!((we==="src"||we==="xlink:href"||we==="href")&&U!=="script"&&_b(Ye,"data:")===0&&_t[U])){if(!(ce&&!Hs(de,Cc(Ye,Me,"")))){if(Ye)return!1}}}}}else if(!(Aa(U)&&(W.tagNameCheck instanceof RegExp&&Hs(W.tagNameCheck,U)||W.tagNameCheck instanceof Function&&W.tagNameCheck(U))&&(W.attributeNameCheck instanceof RegExp&&Hs(W.attributeNameCheck,we)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(we,U))||we==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Hs(W.tagNameCheck,Ye)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Ye))))return!1}}return!0},nc=Nt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Aa=function(U){return!nc[Rc(U)]&&Hs(De,U)},Q=function(U,we,Ye,nt){if(I&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Ye)switch(h.getAttributeType(U,we)){case"TrustedHTML":return N(nt);case"TrustedScriptURL":return z(nt)}return nt},Ie=function(U,we,Ye,nt){try{Ye?U.setAttributeNS(Ye,we,nt):U.setAttribute(we,nt),Hi(U)?sn(U):gb(t.removed)}catch{nr(we,U)}},We=function(U){$n(ne.beforeSanitizeAttributes,U,null);const we=U.attributes;if(!we||Hi(U))return;const Ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let nt=we.length;const $t=at(U.nodeName);for(;nt--;){const Et=we[nt],Cs=Et.name,_s=Et.namespaceURI,mn=Et.value,Sn=at(Cs),rc=mn;let Vs=Cs==="value"?rc:iCe(rc);if(Ye.attrName=Sn,Ye.attrValue=Vs,Ye.keepAttr=!0,Ye.forceKeepAttr=void 0,$n(ne.uponSanitizeAttribute,U,Ye),Vs=Ye.attrValue,Ps&&
13(Sn==="id"||Sn==="name")&&_b(Vs,Ms)!==0&&(nr(Cs,U),Vs=Ms+Vs),se&&Hs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Vs)){nr(Cs,U);continue}if(Sn==="attributename"&&yb(Vs,"href")){nr(Cs,U);continue}if(!Ye.forceKeepAttr){if(!Ye.keepAttr){nr(Cs,U);continue}if(!ie&&Hs($Ce,Vs)){nr(Cs,U);continue}if($e&&(Vs=Cr(Vs)),!Sa($t,Sn,Vs)){nr(Cs,U);continue}Vs=Q($t,Sn,_s,Vs),Vs!==rc&&Ie(U,Cs,_s,Vs)}}$n(ne.afterSanitizeAttributes,U,null)},Be=function(U){let we=null;const Ye=oi(U);for($n(ne.beforeSanitizeShadowDOM,U,null);we=Ye.nextNode();)if($n(ne.uponSanitizeShadowNode,we,null),$a(we),We(we),$r(we.content)&&Be(we.content),($?$(we):we.nodeType)===Dr.element){const $t=C(we);$r($t)&&(ir($t),Be($t))}$n(ne.afterSanitizeShadowDOM,U,null)},ir=function(U){const we=[{node:U,shadow:null}];for(;we.length>0;){const Ye=we.pop();if(Ye.shadow){Be(Ye.shadow);continue}const nt=Ye.node,Et=($?$(nt):nt.nodeType)===Dr.element,Cs=k(nt);if(Cs)for(let _s=Cs.length-1;_s>=0;--_s)we.push({node:Cs[_s],shadow:null});if(Et){const _s=S?S(nt):null;if(typeof _s=="string"&&at(_s)==="template"){const mn=nt.content;$r(mn)&&we.push({node:mn,shadow:null})}}if(Et){const _s=C(nt);$r(_s)&&we.push({node:null,shadow:_s},{node:_s,shadow:null})}}};return t.sanitize=function(qe){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=null,Ye=null,nt=null,$t=null;if(Ns=!qe,Ns&&(qe="<!-->"),typeof qe!="string"&&!ai(qe)&&(qe=uCe(qe),typeof qe!="string"))throw Mo("dirty is not a string, aborting");if(!t.isSupported)return qe;Ve?(Ue=Ze,H=Je):Nn(U),(ne.uponSanitizeElement.length>0||ne.uponSanitizeAttribute.length>0)&&(Ue=rn(Ue)),ne.uponSanitizeAttribute.length>0&&(H=rn(H)),t.removed=[];const Et=Le&&typeof qe!="string"&&ai(qe);if(Et){const mn=S?S(qe):qe.nodeName;if(typeof mn=="string"){const Sn=at(mn);if(!Ue[Sn]||_e[Sn])throw Mo("root node is forbidden and cannot be sanitized in-place")}if(Hi(qe))throw Mo("root node is clobbered and cannot be sanitized in-place");try{ir(qe)}catch(Sn){throw ii(qe),Sn}}else if(ai(qe))we=wa("<!---->"),Ye=we.ownerDocument.importNode(qe,!0),Ye.nodeType===Dr.element&&Ye.nodeName==="BODY"||Ye.nodeName==="HTML"?we=Ye:we.appendChild(Ye),ir(Ye);else{if(!ft&&!$e&&!xe&&qe.indexOf("<")===-1)return I&&Wt?N(qe):qe;if(we=wa(qe),!we)return ft?null:Wt?P:""}we&&dt&&sn(we.firstChild);const Cs=oi(Et?qe:we);try{for(;nt=Cs.nextNode();)$a(nt),We(nt),$r(nt.content)&&Be(nt.content)}catch(mn){throw Et&&ii(qe),mn}if(Et)return wc(t.removed,mn=>{mn.element&&ka(mn.element)}),$e&&rr(qe),qe;if(ft){if($e&&rr(we),It)for($t=V.call(we.ownerDocument);we.firstChild;)$t.appendChild(we.firstChild);else $t=we;return(H.shadowroot||H.shadowrootmode)&&($t=ye.call(n,$t,!0)),$t}let _s=xe?we.outerHTML:we.innerHTML;return xe&&Ue["!doctype"]&&we.ownerDocument&&we.ownerDocument.doctype&&we.ownerDocument.doctype.name&&Hs(xCe,we.ownerDocument.doctype.name)&&(_s="<!DOCTYPE "+we.ownerDocument.doctype.name+`> 14`+_s),$e&&(_s=Cr(_s)),I&&Wt?N(_s):_s},t.setConfig=function(){let qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(qe),Ve=!0,Ze=Ue,Je=H},t.clearConfig=function(){Mt=null,Ve=!1,Ze=null,Je=null,I=L,P=""},t.isValidAttribute=function(qe,U,we){Mt||Nn({});const Ye=at(qe),nt=at(U);return Sa(Ye,nt,we)},t.addHook=function(qe,U){typeof U=="function"&&Fs(ne,qe)&&Ra(ne[qe],U)},t.removeHook=function(qe,U){if(Fs(ne,qe)){if(U!==void 0){const we=nCe(ne[qe],U);return we===-1?void 0:rCe(ne[qe],we,1)[0]}return gb(ne[qe])}},t.removeHooks=function(qe){Fs(ne,qe)&&(ne[qe]=[])},t.removeAllHooks=function(){ne=Ab()},t}var M9=R9();function Sg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xa=Sg();function O9(e){xa=e}var jo={exec:()=>null};function Ma(e){let t=[];return s=>{let n=Math.max(0,Math.min(3,s-1)),r=t[n];return r||(r=e(n),t[n]=r),r}}function Vt(e,t=""){let s=typeof e=="string"?e:e.source,n={replace:(r,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Zs.caret,"$1"),s=s.replace(r,o),n},getRegex:()=>new RegExp(s,t)};return n}var ICe=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Zs={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine
vendor: 4,347 bytes, line 14
14:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ma(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ma(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ma(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ma(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ma(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ma(e=>new RegExp(`^ {0,${e}}>`))},TCe=/^(?:[ \t]*(?:\n|$))+/,PCe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,DCe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ECe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ag=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,F9=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,N9=Vt(F9).replace(/bull/g,Ag).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),LCe=Vt(F9).replace(/bull/g,Ag).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ig=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,RCe=/^[^\n]+/,Tg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,MCe=Vt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),OCe=Vt(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ag).getRegex(),yf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Pg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,FCe=Vt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Pg).replace("tag",yf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),B9=Vt(Ig).replace("hr",zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yf).getRegex(),NCe=Vt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B9).getRegex(),Dg={blockquote:NCe,code:PCe,def
vendor: 6,409 bytes, lines 14-15
14:MCe,fences:DCe,heading:ECe,hr:zu,html:FCe,lheading:N9,list:OCe,newline:TCe,paragraph:B9,table:jo,text:RCe},Ib=Vt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yf).getRegex(),BCe={...Dg,lheading:LCe,table:Ib,paragraph:Vt(Ig).replace("hr",zu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ib).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yf).getRegex()},VCe={...Dg,html:Vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:jo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Vt(Ig).replace("hr",zu).replace("heading",` *#{1,6} *[^ 15]`).replace("lheading",N9).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},HCe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qCe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,V9=/^( {2,}|\\)\n(?!\s*$)/,jCe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tc=/[\p{P}\p{S}]/u,_f=/[\s\p{P}\p{S}]/u,Eg=/[^\s\p{P}\p{S}]/u,UCe=Vt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_f).getRegex(),H9=/(?!~)[\p{P}\p{S}]/u,zCe=/(?!~)[\s\p{P}\p{S}]/u,WCe=/(?:[^\s\p{P}\p{S}]|~)/u,GCe=Vt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ICe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),q9=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,YCe=Vt(q9,"u").replace(/punct/g,tc).getRegex(),KCe=Vt(q9,"u").replace(/punct/g,H9).getRegex(),j9="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",QCe=Vt(j9,"gu").replace(/notPunctSpace/g,Eg).replace(/punctSpace/g,_f).replace(/punct/g,tc).getRegex(),XCe=Vt(j9,"gu").replace(/notPunctSpace/g,WCe).replace(/punctSpace/g,zCe).replace(/punct/g,H9).getRegex(),ZCe=Vt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Eg).replace(/punctSpace/g,_f).replace(/punct/g,tc).getRegex(),JCe=Vt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,tc).getRegex(),e$e="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",t$e=Vt(e$e,"gu").replace(/notPunctSpace/g,Eg).replace(/punctSpace/g,_f).replace(/punct/g,tc).getRegex(),s$e=Vt(/\\(punct)/,"gu").replace(/punct/g,tc).getRegex(),n$e=Vt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),r$e=Vt(Pg).replace("(?:-->|$)","-->").getRegex(),i$e=Vt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",r$e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),N1=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,o$e=Vt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",N1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),U9=Vt(/^!?\[(label)\]\[(ref)\]/).replace("label",N1).replace("ref",Tg).getRegex(),z9=Vt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tg).getRegex(),a$e=Vt("reflink|nolink(?!\\()","g").replace("reflink",U9).replace("nolink",z9).getRegex(),Tb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lg={_backpedal:jo,anyPunctuation:s$e,autolink:n$e,blockSkip:GCe,br:V9,code:qCe,del:jo,delLDelim:jo,delRDelim:jo,emStrongLDelim:YCe,emStrongRDelimAst:QCe,emStrongRDelimUnd:ZCe,escape:HCe,link:o$e,nolink:z9,punctuation:UCe,reflink:U9,reflinkSearch:a$e,tag:i$e,text:jCe,url:jo},l$e={...Lg,link:Vt(/^!?\[(label)\]\((.*?)\)/).replace("label",N1).getRegex(),reflink:Vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N1).getRegex()},fm={...Lg,emStrongRDelimAst:XCe,emStrongLDelim:KCe,delLDelim:JCe,delRDelim:t$e,url:Vt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Tb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Vt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Tb).getRegex()},c$e={...fm,br:Vt(V9).replace("{2,}","*").getRegex(),text:Vt(fm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}
vendor: 20,887 bytes, lines 15-76
15,Pd={normal:Dg,gfm:BCe,pedantic:VCe},Sc={normal:Lg,gfm:fm,breaks:c$e,pedantic:l$e},u$e={"&":"&","<":"<",">":">",'"':""","'":"'"},Pb=e=>u$e[e];function Lr(e,t){if(t){if(Zs.escapeTest.test(e))return e.replace(Zs.escapeReplace,Pb)}else if(Zs.escapeTestNoEncode.test(e))return e.replace(Zs.escapeReplaceNoEncode,Pb);return e}function Db(e){try{e=encodeURI(e).replace(Zs.percentDecode,"%")}catch{return null}return e}function Eb(e,t){let s=e.replace(Zs.findPipe,(i,o,l)=>{let u=!1,d=o;for(;--d>=0&&l[d]==="\\";)u=!u;return u?"|":" |"}),n=s.split(Zs.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(Zs.slashPipe,"|");return n}function Yi(e,t,s){let n=e.length;if(n===0)return"";let r=0;for(;r<n&&e.charAt(n-r-1)===t;)r++;return e.slice(0,n-r)}function Lb(e){let t=e.split(` 16`),s=t.length-1;for(;s>=0&&Zs.blankLine.test(t[s]);)s--;return t.length-s<=2?e:t.slice(0,s+1).join(` 17`)}function d$e(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])s++;else if(e[n]===t[1]&&(s--,s<0))return n;return s>0?-2:-1}function f$e(e,t=0){let s=t,n="";for(let r of e)if(r===" "){let i=4-s%4;n+=" ".repeat(i),s+=i}else n+=r,s++;return n}function Rb(e,t,s,n,r){let i=t.href,o=t.title||null,l=e[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:s,href:i,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}function p$e(e,t,s){let n=e.match(s.other.indentCodeCompensation);if(n===null)return t;let r=n[1];return t.split(` 18`).map(i=>{let o=i.match(s.other.beginningSpace);if(o===null)return i;let[l]=o;return l.length>=r.length?i.slice(r.length):i}).join(` 19`)}var B1=class{options;rules;lexer;constructor(t){this.options=t||xa}space(t){let s=this.rules.block.newline.exec(t);if(s&&s[0].length>0)return{type:"space",raw:s[0]}}code(t){let s=this.rules.block.code.exec(t);if(s){let n=this.options.pedantic?s[0]:Lb(s[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(t){let s=this.rules.block.fences.exec(t);if(s){let n=s[0],r=p$e(n,s[3]||"",this.rules);return{type:"code",raw:n,lang:s[2]?s[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):s[2],text:r}}}heading(t){let s=this.rules.block.heading.exec(t);if(s){let n=s[2].trim();if(this.rules.other.endingHash.test(n)){let r=Yi(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Yi(s[0],` 20`),depth:s[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let s=this.rules.block.hr.exec(t);if(s)return{type:"hr",raw:Yi(s[0],` 21`)}}blockquote(t){let s=this.rules.block.blockquote.exec(t);if(s){let n=Yi(s[0],` 22`).split(` 23`),r="",i="",o=[];for(;n.length>0;){let l=!1,u=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))u.push(n[d]),l=!0;else if(!l)u.push(n[d]);else break;n=n.slice(d);let f=u.join(` 24`),h=f.replace(this.rules.other.blockquoteSetextReplace,` 25 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 26${f}`:f,i=i?`${i} 27${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,o,!0),this.lexer.state.top=g,n.length===0)break;let m=o.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let _=m,v=_.raw+` 28`+n.join(` 29`),k=this.blockquote(v);o[o.length-1]=k,r=r.substring(0,r.length-_.raw.length)+k.raw,i=i.substring(0,i.length-_.text.length)+k.text;break}else if(m?.type==="list"){let _=m,v=_.raw+` 30`+n.join(` 31`),k=this.list(v);o[o.length-1]=k,r=r.substring(0,r.length-m.raw.length)+k.raw,i=i.substring(0,i.length-_.raw.length)+k.raw,n=v.substring(o.at(-1).raw.length).split(` 32`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(t){let s=this.rules.block.list.exec(t);if(s){let n=s[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;t;){let d=!1,f="",h="";if(!(s=o.exec(t))||this.rules.block.hr.test(t))break;f=s[0],t=t.substring(f.length);let g=f$e(s[2].split(` 33`,1)[0],s[1].length),m=t.split(` 34`,1)[0],_=!g.trim(),v=0;if(this.options.pedantic?(v=2,h=g.trimStart()):_?v=s[1].length+1:(v=g.search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=g.slice(v),v+=s[1].length),_&&this.rules.other.blankLine.test(m)&&(f+=m+` 35`,t=t.substring(m.length+1),d=!0),!d){let k=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),C=this.rules.other.fencesBeginRegex(v),w=this.rules.other.headingBeginRegex(v),$=this.rules.other.htmlBeginRegex(v),S=this.rules.other.blockquoteBeginRegex(v);for(;t;){let I=t.split(` 36`,1)[0],P;if(m=I,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),P=m):P=m.replace(this.rules.other.tabCharGlobal," "),C.test(m)||w.test(m)||$.test(m)||S.test(m)||k.test(m)||x.test(m))break;if(P.search(this.rules.other.nonSpaceChar)>=v||!m.trim())h+=` 37`+P.slice(v);else{if(_||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||C.test(g)||w.test(g)||x.test(g))break;h+=` 38`+m}_=!m.trim(),f+=I+` 39`,t=t.substring(I.length+1),g=P.slice(v)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0)),i.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),i.raw+=f}let u=i.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let d of i.items){this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]);let f=d.tokens[0];if(d.task&&(f?.type==="text"||f?.type==="paragraph")){d.text=d.text.replace(this.rules.other.listReplaceTask,""),f.raw=f.raw.replace(this.rules.other.listReplaceTask,""),f.text=f.text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let g={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=g.checked,i.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=g.raw+d.tokens[0].raw,d.tokens[0].text=g.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(g)):d.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):d.tokens.unshift(g)}}else d.task&&(d.task=!1);if(!i.loose){let h=d.tokens.filter(m=>m.type==="space"),g=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));i.loose=g}}if(i.loose)for(let d of i.items){d.loose=!0;for(let f of d.tokens)f.type==="text"&&(f.type="paragraph")}return i}}html(t){let s=this.rules.block.html.exec(t);if(s){let n=Lb(s[0]);return{type:"html",block:!0,raw:n,pre:s[1]==="pre"||s[1]==="script"||s[1]==="style",text:n}}}def(t){let s=this.rules.block.def.exec(t);if(s){let n=s[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=s[2]?s[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=s[3]?s[3].substring(1,s[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):s[3];return{type:"def",tag:n,raw:Yi(s[0],` 40`),href:r,title:i}}}table(t){let s=this.rules.block.table.exec(t);if(!s||!this.rules.other.tableDelimiter.test(s[2]))return;let n=Eb(s[1]),r=s[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=s[3]?.trim()?s[3].replace(this.rules.other.tableRowBlankLine,"").split(` 41`):[],o={type:"table",raw:Yi(s[0],` 42`),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<n.length;l++)o.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:o.align[l]});for(let l of i)o.rows.push(Eb(l,o.header.length).map((u,d)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[d]})));return o}}lheading(t){let s=this.rules.block.lheading.exec(t);if(s){let n=s[1].trim();return{type:"heading",raw:Yi(s[0],` 43`),depth:s[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let s=this.rules.block.paragraph.exec(t);if(s){let n=s[1].charAt(s[1].length-1)===` 44`?s[1].slice(0,-1):s[1];return{type:"paragraph",raw:s[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let s=this.rules.block.text.exec(t);if(s)return{type:"text",raw:s[0],text:s[0],tokens:this.lexer.inline(s[0])}}escape(t){let s=this.rules.inline.escape.exec(t);if(s)return{type:"escape",raw:s[0],text:s[1]}}tag(t){let s=this.rules.inline.tag.exec(t);if(s)return!this.lexer.state.inLink&&this.rules.other.startATag.test(s[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(s[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(s[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(s[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:s[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:s[0]}}link(t){let s=this.rules.inline.link.exec(t);if(s){let n=s[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Yi(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=d$e(s[2],"()");if(o===-2)return;if(o>-1){let l=(s[0].indexOf("!")===0?5:4)+s[1].length+o;s[2]=s[2].substring(0,o),s[0]=s[0].substring(0,l).trim(),s[3]=""}}let r=s[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=s[3]?s[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Rb(s,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},s[0],this.lexer,this.rules)}}reflink(t,s){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=s[r.toLowerCase()];if(!i){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Rb(n,i,n[0],this.lexer,this.rules)}}emStrong(t,s,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,l,u=i,d=0,f=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,s=s.slice(-1*t.length+i);(r=f.exec(s))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(l=[...o].length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&i%3&&!((i+l)%3)){d+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+d);let h=[...r[0]][0].length,g=t.slice(0,i+r.index+h+l);if(Math.min(i,l)%2){let _=g.slice(1,-1);return{type:"em",raw:g,text:_,tokens:this.lexer.inlineTokens(_)}}let m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let s=this.rules.inline.code.exec(t);if(s){let n=s[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:s[0],text:n}}}br(t){let s=this.rules.inline.br.exec(t);if(s)return{type:"br",raw:s[0]}}del(t,s,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,l,u=i,d=this.rules.inline.delRDelim;for(d.lastIndex=0,s=s.slice(-1*t.length+i);(r=d.exec(s))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(l=[...o].length,l!==i))continue;if(r[3]||r[4]){u+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u);let f=[...r[0]][0].length,h=t.slice(0,i+r.index+f+l),g=h.slice(i,-i);return{type:"del",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(t){let s=this.rules.inline.autolink.exec(t);if(s){let n,r;return s[2]==="@"?(n=s[1],r="mailto:"+n):(n=s[1],r=n),{type:"link",raw:s[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let s;if(s=this.rules.inline.url.exec(t)){let n,r;if(s[2]==="@")n=s[0],r="mailto:"+n;else{let i;do i=s[0],s[0]=this.rules.inline._backpedal.exec(s[0])?.[0]??"";while(i!==s[0]);n=s[0],s[1]==="www."?r="http://"+s[0]:r=s[0]}return{type:"link",raw:s[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let s=this.rules.inline.text.exec(t);if(s){let n=this.lexer.state.inRawBlock;return{type:"text",raw:s[0],text:s[0],escaped:n}}}},ur=class pm{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||xa,this.options.tokenizer=this.options.tokenizer||new B1,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:Zs,block:Pd.normal,inline:Sc.normal};this.options.pedantic?(s.block=Pd.pedantic,s.inline=Sc.pedantic):this.options.gfm&&(s.block=Pd.gfm,this.options.breaks?s.inline=Sc.breaks:s.inline=Sc.gfm),this.tokenizer.rules=s}static get rules(){return{block:Pd,inline:Sc}}static lex(t,s){return new pm(s).lex(t)}static lexInline(t,s){return new pm(s).inlineTokens(t)}lex(t){t=t.replace(Zs.carriageReturn,` 45`),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let n=this.inlineQueue[s];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Zs.tabCharGlobal," ").replace(Zs.spaceLine,""));let r=1/0;for(;t;){if(t.length<r)r=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,s))?(t=t.substring(i.raw.length),s.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=s.at(-1);i.raw.length===1&&l!==void 0?l.raw+=` 46`:s.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let l=s.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(` 47`)?"":` 48`)+i.raw,l.text+=` 49`+i.text,this.inlineQueue.at(-1).src=l.text):s.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let l=s.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(` 50`)?"":` 51`)+i.raw,l.text+=` 52`+i.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},s.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),s.push(i);continue}let o=t;if(this.options.extensions?.startBlock){let l=1/0,u=t.slice(1),d;this.options.extensions.startBlock.forEach(f=>{d=f.call({lexer:this},u),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(o=t.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let l=s.at(-1);n&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(` 53`)?"":` 54`)+i.raw,l.text+=` 55`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):s.push(i),n=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let l=s.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(` 56`)?"":` 57`)+i.raw,l.text+=` 58`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):s.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}inlineTokens(t,s=[]){this.tokenizer.lexer=this;let n=t,r=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+"["+"a".repeat(r[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,l="",u=1/0;for(;t;){if(t.length<u)u=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}o||(l=""),o=!1;let d;if(this.options.extensions?.inline?.some(h=>(d=h.call({lexer:this},t,s))?(t=t.substring(d.raw.length),s.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let h=s.at(-1);d.type==="text"&&h?.type==="text"?(h.raw+=d.raw,h.text+=d.text):s.push(d);continue}if(d=this.tokenizer.emStrong(t,n,l)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.del(t,n,l)){t=t.substring(d.raw.length),s.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),s.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),s.push(d);continue}let f=t;if(this.options.extensions?.startInline){let h=1/0,g=t.slice(1),m;this.options.extensions.startInline.forEach(_=>{m=_.call({lexer:this},g),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(f=t.substring(0,h+1))}if(d=this.tokenizer.inlineText(f)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),o=!0;let h=s.at(-1);h?.type==="text"?(h.raw+=d.raw,h.text+=d.text):s.push(d);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return s}infiniteLoopError(t){let s="Infinite loop on byte: "+t;if(this.options.silent)console.error(s);else throw new Error(s)}},V1=class{options;parser;constructor(e){this.options=e||xa}space(e){return""}code({text:e,lang:t,escaped:s}){let n=(t||"").match(Zs.notSpaceStart)?.[0],r=e.replace(Zs.endingNewline,"")+` 59`;return n?'<pre><code class="language-'+Lr(n)+'">'+(s?r:Lr(r,!0))+`</code></pre> 60`:"<pre><code>"+(s?r:Lr(r,!0))+`</code></pre> 61`}blockquote({tokens:e}){return`<blockquote> 62${this.parser.parse(e)}</blockquote> 63`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 64`}hr(e){return`<hr> 65`}list(e){let t=e.ordered,s=e.start,n="";for(let o=0;o<e.items.length;o++){let l=e.items[o];n+=this.listitem(l)}let r=t?"ol":"ul",i=t&&s!==1?' start="'+s+'"':"";return"<"+r+i+`> 66`+n+"</"+r+`> 67`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 68`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 69`}table(e){let t="",s="";for(let r=0;r<e.header.length;r++)s+=this.tablecell(e.header[r]);t+=this.tablerow({text:s});let n="";for(let r=0;r<e.rows.length;r++){let i=e.rows[r];s="";for(let o=0;o<i.length;o++)s+=this.tablecell(i[o]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table> 70<thead> 71`+t+`</thead> 72`+n+`</table> 73`}tablerow({text:e}){return`<tr> 74${e}</tr> 75`}tablecell(e){let t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}> 76`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Lr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){let n=this.parser.parseInline(s),r=Db(e);
vendor: 5,975 bytes, line 76
76if(r===null)return n;e=r;let i='<a href="'+e+'"';return t&&(i+=' title="'+Lr(t)+'"'),i+=">"+n+"</a>",i}image({href:e,title:t,text:s,tokens:n}){n&&(s=this.parser.parseInline(n,this.parser.textRenderer));let r=Db(e);if(r===null)return Lr(s);e=r;let i=`<img src="${e}" alt="${Lr(s)}"`;return t&&(i+=` title="${Lr(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Lr(e.text)}},Rg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},dr=class hm{options;renderer;textRenderer;constructor(t){this.options=t||xa,this.options.renderer=this.options.renderer||new V1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Rg}static parse(t,s){return new hm(s).parse(t)}static parseInline(t,s){return new hm(s).parseInline(t)}parse(t){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let o=r,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){s+=l||"";continue}}let i=r;switch(i.type){case"space":{s+=this.renderer.space(i);break}case"hr":{s+=this.renderer.hr(i);break}case"heading":{s+=this.renderer.heading(i);break}case"code":{s+=this.renderer.code(i);break}case"table":{s+=this.renderer.table(i);break}case"blockquote":{s+=this.renderer.blockquote(i);break}case"list":{s+=this.renderer.list(i);break}case"checkbox":{s+=this.renderer.checkbox(i);break}case"html":{s+=this.renderer.html(i);break}case"def":{s+=this.renderer.def(i);break}case"paragraph":{s+=this.renderer.paragraph(i);break}case"text":{s+=this.renderer.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,s=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=l||"";continue}}let o=i;switch(o.type){case"escape":{n+=s.text(o);break}case"html":{n+=s.html(o);break}case"link":{n+=s.link(o);break}case"image":{n+=s.image(o);break}case"checkbox":{n+=s.checkbox(o);break}case"strong":{n+=s.strong(o);break}case"em":{n+=s.em(o);break}case"codespan":{n+=s.codespan(o);break}case"br":{n+=s.br(o);break}case"del":{n+=s.del(o);break}case"text":{n+=s.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},Mc=class{options;block;constructor(e){this.options=e||xa}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ur.lex:ur.lexInline}provideParser(e=this.block){return e?dr.parse:dr.parseInline}},h$e=class{defaults=Sg();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=dr;Renderer=V1;TextRenderer=Rg;Lexer=ur;Tokenizer=B1;Hooks=Mc;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(let n of e)switch(s=s.concat(t.call(this,n)),n.type){case"table":{let r=n;for(let i of r.header)s=s.concat(this.walkTokens(i.tokens,t));for(let i of r.rows)for(let o of i)s=s.concat(this.walkTokens(o.tokens,t));break}case"list":{let r=n;s=s.concat(this.walkTokens(r.items,t));break}default:{let r=n;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let o=r[i].flat(1/0);s=s.concat(this.walkTokens(o,t))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{let n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=t.renderers[r.name];i?t.renderers[r.name]=function(...o){let l=r.renderer.apply(this,o);return l===!1&&(l=i.apply(this,o)),l}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),n.extensions=t),s.renderer){let r=this.defaults.renderer||new V1(this.defaults);for(let i in s.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,l=s.renderer[o],u=r[o];r[o]=(...d)=>{let f=l.apply(r,d);return f===!1&&(f=u.apply(r,d)),f||""}}n.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new B1(this.defaults);for(let i in s.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,l=s.tokenizer[o],u=r[o];r[o]=(...d)=>{let f=l.apply(r,d);return f===!1&&(f=u.apply(r,d)),f}}n.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new Mc;for(let i in s.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,l=s.hooks[o],u=r[o];Mc.passThroughHooks.has(i)?r[o]=d=>
76{if(this.defaults.async&&Mc.passThroughHooksRespectAsync.has(i))return(async()=>{let h=await l.call(r,d);return u.call(r,h)})();let f=l.call(r,d);return u.call(r,f)}:r[o]=(...d)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(r,d);return h===!1&&(h=await u.apply(r,d)),h})();let f=l.apply(r,d);return f===!1&&(f=u.apply(r,d)),f}}n.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,i=s.walkTokens;n.walkTokens=function(o){let l=[];return l.push(i.call(this,o)),r&&(l=l.concat(r.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ur.lex(e,t??this.defaults)}parser(e,t){return dr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,s)=>{let n={...s},r={...this.defaults,...n},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let o=r.hooks?await r.hooks.preprocess(t):t,l=await(r.hooks?await r.hooks.provideLexer(e):e?ur.lex:ur.lexInline)(o,r),u=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(u,r.walkTokens));let d=await(r.hooks?await r.hooks.provideParser(e):e?dr.parse:dr.parseInline)(u,r);return r.hooks?await r.hooks.postprocess(d):d})().catch(i);try{r.hooks&&(t=r.hooks.preprocess(t));let o=(r.hooks?r.hooks.provideLexer(e):e?ur.lex:ur.lexInline)(t,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let l=(r.hooks?r.hooks.provideParser(e):e?dr.parse:dr.parseInline)(o,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(o){return i(o)}}}onError(e,t){return s=>{if(s.message+=` 77Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Lr(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}},la=new h$e;function Jt(e,t){return la.parse(e,t)}Jt.options=Jt.setOptions=function(e){return la.setOptions(e),Jt.defaults=la.defaults,O9(Jt.defaults),Jt};Jt.getDefaults=Sg;Jt.defaults=xa;Jt.use=function(...e){return la.use(...e),Jt.defaults=la.defaults,O9(Jt.defaults),Jt};Jt.walkTokens=function(e,t){return la.walkTokens(e,t)};Jt.parseInline=la.parseInline;Jt.Parser=dr;Jt.parser=dr.parse;Jt.Renderer=V1;Jt.TextRenderer=Rg;Jt.Lexer=ur;Jt.lexer=ur.lex;Jt.Tokenizer=B1;Jt.Hooks=Mc;Jt.parse=Jt;Jt.options;Jt.setOptions;Jt.use;Jt.walkTokens;Jt.parseInline;dr.parse;ur.lex;const m$e=G({__name:"AnimatedChatHtml",props:{html:{},contentClass:{},finishImmediately:{type:Boolean}},emits:["done","progress"],setup(e,{emit:t}){const s=e,n=t,r=X(null);let i=null,o=[],l=0,u=0,d=!1,f=32;const h=()=>{i!==null&&(window.clearTimeout(i),i=null)},g=x=>{const C=document.createTreeWalker(x,NodeFilter.SHOW_TEXT),w=[];let $=C.nextNode();for(;$;){const S=$;w.push({node:S,value:S.nodeValue??""}),$=C.nextNode()}return w},m=()=>{h(),o.forEach(({node:x,value:C})=>{x.nodeValue=C}),d||(d=!0,n("progress"),n("done"))},_=()=>{if(s.finishImmediately){m();return}const x=o[l];if(!x){m();return}x.node.nodeValue=x.value.slice(0,u+1),u+=1,n("progress"),u>=x.value.length&&(l+=1,u=0),i=window.setTimeout(_,f)},v=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,k=async()=>{h(),d=!1,l=0,u=0,await lt();const x=r.value;if(!x)return;x.innerHTML=s.html,o=g(x);const C=o.reduce((w,$)=>w+$.value.length,0);if(f=Math.max(8,Math.min(32,Math.floor(5e3/Math.max(C,1)))),s.finishImmediately||v()||o.length===0){m();return}o.forEach(({node:w})=>{w.nodeValue=""}),_()};return Se(()=>s.html,()=>k(),{immediate:!0}),Se(()=>s.finishImmediately,x=>{x&&m()}),Tt(h),(x,C)=>(p(),y("div",{ref_key:"containerRef",ref:r,class:oe(e.contentClass)},null,2))}}),Mb=Object.assign(m$e,{__name:"AnimatedChatHtml"}),g$e={class:"w-full"},y$e={key:0,class:"shrink-0"},_$e={key:0,class:"mb-2 text-13 text-grey-40"},v$e={key:1}
77,b$e={class:"w-full min-w-0 rounded-2xl border border-[#E6EBE9] bg-white px-6 py-5"},x$e={class:"flex flex-col items-start gap-3"},k$e=["onClick"],w$e={class:"flex items-start gap-3"},C$e={class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-paleLime-primary p-2"},$$e={class:"flex min-w-0 flex-1 flex-col gap-1"},S$e=["title"],A$e={class:"text-13 uppercase text-grey-40"},I$e=["href","onClick"],T$e=["innerHTML"],P$e={key:5,class:"max-w-full whitespace-pre-line break-words text-13 text-black"},D$e={key:2},E$e=["onClick"],L$e={class:"flex items-start gap-3"},R$e={class:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-paleLime-primary p-2"},M$e={class:"flex min-w-0 flex-1 flex-col gap-1"},O$e=["title"],F$e={class:"text-13 uppercase text-grey-40"},N$e=["href","onClick"],B$e=["innerHTML"],V$e={key:5,class:"max-w-full whitespace-pre-line break-words text-13 text-black"},H$e={key:1,class:"mt-3 space-y-3"},q$e=["onClick"],j$e={class:"flex items-start gap-3"},U$e={class:"flex h-12 w-12 items-center justify-center rounded-full bg-paleLime-primary p-2 shrink-0"},z$e={class:"flex min-w-0 flex-1 flex-col gap-1"},W$e=["title"],G$e={class:"text-13 text-grey-40 uppercase"},Y$e={key:0,class:"mt-4 flex w-full pl-[52px]"},K$e={class:"ml-auto flex w-full max-w-[80%] flex-wrap justify-end gap-2"},Q$e=["onClick"],X$e={key:1,class:"mt-4 flex w-full flex-wrap gap-2 pl-[52px]"},Z$e={key:2,class:"mt-3 pl-[52px]"},J$e={class:"w-full rounded-2xl border border-[#E6EBE9] bg-white p-4"},eSe={class:"flex items-center gap-3"},tSe={class:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-grey-90"},sSe={class:"text-16-bold text-black"},nSe={class:"mt-4 flex items-center gap-3"},Ob="X-Amz-SignedHeaders=host",rSe=G({__name:"ClaimCreateChatMessage",props:{message:{},finishAnimation:{type:Boolean}},emits:["action","command","registration","revealProgress"],setup(e,{emit:t}){const s=e,n=t,{t:r}=be(),{$showSnackbar:i}=Te(),o=Ln(),l=Ne(),{isButlerShareUrl:u,openShareOrExternal:d}=Dl(),f=/https?:\/\/[^\s<>"']+/gi,h=/<a\b[^>]*>[\s\S]*?<\/a>/gi,g=new Set(["jpg","jpeg","png","webp","gif"]),m=new Set(["pdf","doc","docx","xls","xlsx","txt","zip","rar"]),_=/\n\s*([-*]|\d+\.)\s/;let v=null;const k=W=>W.replace(/[.,;:!?)]*$/u,""),x=W=>{const _e=W.indexOf(Ob);if(_e>=0){const M=_e+Ob.length;return{url:W.slice(0,M),endOffset:M}}const ae=k(W);return{url:ae,endOffset:ae.length}},C=W=>{try{const{pathname:_e}=new URL(W);return(_e.split(".").pop()??"").toLowerCase()}catch{return((W.split("?")[0]??"").split(".").pop()??"").toLowerCase()}},w=W=>{try{const{pathname:_e}=new URL(W);return decodeURIComponent(_e.split("/").pop()??"")||W}catch{return W.split("?")[0]?.split("/").pop()||W}},$=W=>{const _e=C(W);return g.has(_e)?{type:"image",url:W}:m.has(_e)?{type:"file",url:W,name:w(W),extension:_e}:{type:"link",url:W}},S=W=>W.length>240||_.test(W),I=W=>{const _e=Jt.parse(W,{async:!1,breaks:!0});return v??=M9(window),v.sanitize(_e)},P=(W,_e)=>({type:"text",value:W,renderedHtml:_e?I(W):""}),L=(W,_e)=>{const ae=[],M=[...W.matchAll(h)].map(ce=>({start:ce.index??0,end:(ce.index??0)+ce[0].length}));let q=0;for(const ce of W.matchAll(f)){const ie=ce.index??0;if(M.some(Je=>ie>=Je.start&&ie<Je.end))continue;const se=ce[0],{url:xe,endOffset:Ve}=x(se),Ze=W.slice(q,ie).trim();Ze&&ae.push(P(Ze,_e)),ae.push($(xe)),q=ie+Ve}const re=W.slice(q).trim();return re&&ae.push(P(re,_e)),ae.length?ae:[P(W,_e)]},D=A(()=>!s.message.isMine&&s.message.kind!=="action"&&S(s.message.text)),R=A(()=>L(s.message.text,!s.message.isMine)),F=X(new Set),N=X(!1),z=X(""),me=X(!1),ge=X(null),fe=A(()=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(z.value.trim())),te=A(()=>!s.message.isMine&&ne.value&&s.message.needEmailBlock!==null&&s.message.needEmailBlock!==void 0),V=A(()=>R.value.map((W,_e)=>W.type==="text"?_e:-1).filter(W=>W>=0)),pe=A(()=>!s.message.isMine&&s.message.shouldAnimate===!0),ye=A(()=>!pe.value||V.value.every(W=>F.value.has(W))),ne=A(()=>ye.value);Se(()=>s.message.id,()=>{F.value=new Set,N.value=!1,z.value="",me.value=!1,ge.value=null}),Se(()=>o.messages.at(-1)?.id,()=>{o.messages.at(-1)?.isMine&&(N.value=!1)});const ve=W=>pe.value&&!F.value.has(W),J=W=>{const _e=new Set([...F.value,W]);F.value=_e,V.value.every(ae=>_e.has(ae))&&o.markMessageAnimationDone(s.message.id),n("revealProgress")},he=()=>{n("revealProgress")},Ee=(W,_e)=>{u(_e)&&(W.preventDefault(),d(_e))},He=()=>{s.message.actionType&&n("action",s.message.actionType)},de=W=>{W.trim()&&n("command",W)},Me=()=>{n("registration")},De=()=>
77{N.value=!N.value,n("revealProgress")},ze=W=>["relative h-8 rounded-full px-3 py-2 text-13 transition-colors duration-150 xl:hover:duration-200",ge.value===W&&W==="like"?"bg-paleLime-primary text-white xl:hover:bg-paleLime-40":ge.value===W&&W==="dislike"?"bg-red-50 text-white xl:hover:bg-red-40":"bg-grey-90 text-black xl:hover:bg-grey-80"],Ue=async W=>{const _e=s.message.chatId;if(!_e||ge.value===W)return;const ae=ge.value;ge.value=W;const M=await o.sendReaction(_e,W);if(!M.ok){ge.value=ae,i(M.error.message??r("-28"));return}o.resolveEmailBlock(s.message.id)},ut=async()=>{const W=s.message.chatId;if(!W||!fe.value||me.value)return;me.value=!0;const _e=await o.sendEmail(W,z.value.trim());if(me.value=!1,!_e.ok){i(_e.error.message??r("-28"));return}o.resolveEmailBlock(s.message.id),N.value=!1},H=W=>{window.open(W,"_blank","noopener,noreferrer")},Y=W=>{if(W.file){const _e=URL.createObjectURL(W.file);window.open(_e,"_blank")}else window.open(W.url,"_blank","noopener,noreferrer")};return(W,_e)=>{const ae=ni,M=tf,q=q9e,re=D9,ce=G9e;return p(),y("div",g$e,[c("div",{class:oe(["flex w-full gap-3",e.message.isMine?"justify-end":"justify-start items-end"])},[e.message.isMine?E("",!0):(p(),y("div",y$e,[..._e[3]||(_e[3]=[c("img",{src:Y9e,alt:"Butler avatar",class:"h-10 w-10",width:"40",height:"40"},null,-1)])])),c("div",{class:oe(["min-w-0",D.value?"flex-1":"max-w-[72%]"])},[e.message.isMine?E("",!0):(p(),y("p",_$e," ÐаÑÐ»ÐµÑ ")),e.message.kind==="action"?(p(),y("div",v$e,[c("div",b$e,[c("div",x$e,[(p(!0),y(j,null,le(R.value,(ie,$e)=>(p(),y(j,{key:`${e.message.id}-action-segment-${$e}`},[ie.type==="image"?(p(),K(ae,{key:0,src:ie.url,alt:"",class:"max-h-[180px] w-full max-w-[300px] cursor-pointer rounded-lg object-cover",onClick:se=>H(ie.url)},null,8,["src","onClick"])):ie.type==="file"?(p(),y("button",{key:1,type:"button",class:"w-full max-w-[300px] rounded-2xl border border-[#E6EBE9] bg-white px-4 py-3 text-left transition hover:opacity-80",onClick:se=>H(ie.url)},[c("div",w$e,[c("div",C$e,[T(M,{class:"[&>path]:fill-white"})]),c("div",$$e,[c("span",{class:"truncate text-16-bold text-black",title:ie.name},b(ie.name),9,S$e),c("span",A$e,b(ie.extension.toUpperCase()),1)])])],8,k$e)):ie.type==="link"?(p(),y("a",{key:2,href:ie.url,target:"_blank",rel:"noopener noreferrer",class:"max-w-full break-words text-13 text-purple-50 underline",onClick:se=>Ee(se,ie.url)},b(ie.url),9,I$e)):E("",!0),ie.type==="text"&&!e.message.isMine&&ve($e)?(p(),K(Mb,{key:3,html:ie.renderedHtml,"content-class":"chat-markdown max-w-full break-words text-13 text-black","finish-immediately":e.finishAnimation,onDone:se=>J($e),onProgress:he},null,8,["html","finish-immediately","onDone"])):ie.type==="text"&&!e.message.isMine?(p(),y("div",{key:4,class:"chat-markdown max-w-full break-words text-13 text-black",innerHTML:ie.renderedHtml},null,8,T$e)):ie.type==="text"?(p(),y("p",P$e,b(ie.value),1)):E("",!0)],64))),128))])]),ne.value?(p(),K(a(vt),{key:0,class:"mt-2",label:e.message.actionLabel??"",onClick:He},null,8,["label"])):E("",!0)])):(p(),y("div",D$e,[e.message.text?(p(),y("div",{key:0,class:oe(["w-full min-w-0",e.message.isMine?"rounded-2xl bg-grey-90 p-6":D.value?"chat-long-surface":"w-fit rounded-2xl border border-[#E6EBE9] bg-white p-6"])},[c("div",{class:oe(["flex flex-col items-start",D.value?"gap-4":"gap-3"])},[(p(!0),y(j,null,le(R.value,(ie,$e)=>(p(),y(j,{key:`${e.message.id}-segment-${$e}`},[ie.type==="image"?(p(),K(ae,{key:0,src:ie.url,alt:"",class:"max-h-[180px] w-full max-w-[300px] cursor-pointer rounded-lg object-cover",onClick:se=>H(ie.url)},null,8,["src","onClick"])):ie.type==="file"?(p(),y("button",{key:1,type:"button",class:oe(["w-full max-w-[300px] rounded-2xl px-4 py-3 text-left transition hover:opacity-80",e.message.isMine?"bg-grey-90":"bg-white border border-[#E6EBE9]"]),onClick:se=>H(ie.url)},[c("div",L$e,[c("div",R$e,[T(M,{class:"[&>path]:fill-white"})]),c("div",M$e,[c("span",{class:"truncate text-16-bold text-black",title:ie.name},b(ie.name),9,O$e),c("span",F$e,b(ie.extension.toUpperCase()),1)])])],10,E$e)):ie.type==="link"?(p(),y("a",{key:2,href:ie.url,target:"_blank",rel:"noopener noreferrer",class:"max-w-full break-words text-13 text-purple-50 underline",onClick:se=>Ee(se,ie.url)},b(ie.url),9,N$e)):E("",!0),ie.type==="text"&&!e.message.isMine&&ve($e)?(p(),K(Mb,{key:3,html:ie.renderedHtml,"content-class":["chat-markdown max-w-full break-words text-13 text-black",D.value?"chat-markdown-long":""],"finish-immediately":e.finishAnimation,onDone:se=>J($e),onProgress:he},null,8,["html","content-class","finish-immediately","onDone"])):ie.type==="text"&&!e.message.isMine?(p(),y("div",{key:4,class:oe(["chat-markdown max-w-full break-words text-13 text-black",D.value?"chat-markdown-long":""]),innerHTML:ie.renderedHtml},null,10,B$e)):ie.type==="text"?(p(),y("p",V$e,b(ie.value),1)):E("",!0)],64))),128))],2)],2)):E("",!0),e.message.attachments?.length?(p(),y("div",H$e,[(p(!0),y(j,null,le(e.message.attachments,(ie,$e)=>(p(),y("div",{key:`${e.message.id}-${$e}`,class:"cursor-pointer",onClick:se=>Y(ie)},[ie.type==="image"?(p(),K(ae,{key:0,src:ie.url,alt:ie.name,class:"max-h-[160px] w-full max-w-[300px] rounded-lg object-cover"},null,8,["src","alt"])):(p(),y("div",{key:1,class:oe(["rounded-2xl px-4 py-3 transition hover:opacity-80",e.message.isMine?"bg-grey-90":"bg-white border border-[#
77E6EBE9]"])},[c("div",j$e,[c("div",U$e,[T(M,{class:"[&>path]:fill-white"})]),c("div",z$e,[c("span",{class:"text-16-bold text-black truncate",title:ie.name},b(ie.name),9,W$e),c("span",G$e,b(ie.extension.toUpperCase()),1)])])],2))],8,q$e))),128))])):E("",!0)]))],2)],2),!e.message.isMine&&e.message.textButtons?.length&&ne.value?(p(),y("div",Y$e,[c("div",K$e,[(p(!0),y(j,null,le(e.message.textButtons,(ie,$e)=>(p(),y("button",{key:`${e.message.id}-command-${$e}`,type:"button",class:"rounded-full bg-purple-90 px-3 py-2 text-13 text-purple-50",onClick:se=>de(ie)},b(ie),9,Q$e))),128))])])):E("",!0),te.value?(p(),y("div",X$e,[c("button",{type:"button",class:oe(ze("like")),onClick:_e[0]||(_e[0]=ie=>Ue("like"))}," ðð¼ ",2),c("button",{type:"button",class:oe(ze("dislike")),onClick:_e[1]||(_e[1]=ie=>Ue("dislike"))}," ðð¼ ",2),T(a(Ya),{variant:"secondary",label:a(r)("drawerClaimCreateChat.priceWatcherButton"),onClick:De},{icon:Xe(()=>[T(q,{class:"[&>path]:fill-black"})]),_:1},8,["label"]),T(a(Ya),{variant:"secondary",label:a(r)("drawerClaimCreateChat.mailButton"),onClick:De},{icon:Xe(()=>[T(re)]),_:1},8,["label"]),a(l).isAuthorized?E("",!0):(p(),K(a(Ya),{key:0,variant:"secondary",label:a(r)("drawerClaimCreateChat.registerButton"),onClick:Me},{icon:Xe(()=>[T(ce)]),_:1},8,["label"]))])):E("",!0),N.value?(p(),y("div",Z$e,[c("div",J$e,[c("div",eSe,[c("div",tSe,[T(q,{class:"[&>path]:fill-black"})]),c("h4",sSe,b(e.message.needEmailBlock?.title),1)]),c("div",nSe,[T(a(wo),{modelValue:z.value,"onUpdate:modelValue":_e[2]||(_e[2]=ie=>z.value=ie),class:"min-w-0 flex-1",type:"email",placeholder:"[email protected]",size:"default"},null,8,["modelValue"]),T(a(Ya),{class:"shrink-0",disabled:!fe.value||me.value,loading:me.value,label:e.message.needEmailBlock?.buttonText||a(r)("drawerClaimCreateChat.mailWatcherFollowButton"),onClick:ut},null,8,["disabled","loading","label"])])])])):E("",!0)])}}}),iSe=Object.assign(Gs(rSe,[["__scopeId","data-v-bd357228"]]),{__name:"ClaimCreateChatMessage"}),oSe={class:"flex h-full min-h-0 flex-col"},aSe={class:"flex flex-1 min-h-0 flex-col overflow-hidden"},lSe={key:0,class:"flex h-full flex-col items-center justify-center text-center"},cSe={class:"mt-6 text-24-bold text-black"},uSe={class:"mt-2 px-6 text-16 text-grey-40"},dSe={class:"mt-6 px-6 flex w-full flex-col gap-3"},fSe={key:1,class:"flex h-full flex-col gap-6 px-6 py-6","aria-label":"Loading"},pSe={key:0,class:"shrink-0 px-6 pb-6 pt-2"},hSe={key:2,class:"shrink-0 px-6 pb-6 pt-2"},mSe={class:"flex w-full flex-col gap-3"},gSe=G({__name:"ClaimCreateChatPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),n=st(),r=Ln(),i=kr(),o=Oe(),{t:l}=be(),u=t,d=A({get:()=>r.messageDraft,set:ne=>r.setMessageDraft(ne)}),f=X(null),h=X(null),g=()=>{const ne=f.value;ne&&(ne.scrollTop=ne.scrollHeight)},m=()=>{const ne=f.value;ne&&(r.scrollTop>0?ne.scrollTop=r.scrollTop:ne.scrollTop=ne.scrollHeight)},_=()=>{const ne=f.value;return ne?ne.scrollHeight-ne.scrollTop-ne.clientHeight<220:!1},v=()=>{_()&<(g)};Se(()=>r.messages.length,()=>lt(g));const k=ne=>Array.isArray(ne)?ne[0]??"":ne??"";async function x(){const ne=k(n.query.category_id),ve=k(n.query.work_type_id),J=k(n.query.resident_id);if(!ne&&!ve)return!0;if(!ne||!ve||!J)return s(l("drawerClaimCreateChat.shareLinkError")),u("go","back"),!1;if(r.claimId===ne&&r.workTypeId===ve)return!0;const he=o.userInfo?.selectAddresses.find(de=>de.residentId===J);he&&o.saveAddress(he);const Ee=await ue().fetchSharedServiceCategoryDetail(ne,J);if(!Ee.ok)return s(Ee.error.message??l("-27")),u("go","back"),!1;const He=Ee.data.items.find(de=>de.workTypeId===ve);return He?(r.$reset(),r.setClaimContext(Ee.data.categoryId||ne,Ee.data.title),r.setWorkTypeContext(He.workTypeId,He.title),r.setMessageDraft(He.templateUserMessage),r.isFree=!1,!0):(s(l("drawerClaimCreateChat.shareWorkTypeNotFound")),u("go","back"),!1)}je(async()=>{if(!await x())return;const ne=Ne(),ve=k(n.query.claimId),J=k(n.query.claimTitle),he=k(n.query.claim_category_id),Ee=k(n.query.category_title),He=Object.prototype.hasOwnProperty.call(n.query,"claim_category_id")||Object.prototype.hasOwnProperty.call(n.query,"category_title"),de=Object.prototype.hasOwnProperty.call(n.query,"claimId")||Object.prototype.hasOwnProperty.call(n.query,"claimTitle"),Me=r.claimId,De=He?he:de?ve:r.claimId,ze=He?Ee:de?J:r.claimTitle;if(r.setClaimContext(De||"",ze),!ne.isAuthorized&&!r.isDemo)if(De||ze)r.startDemoChat(De||"",ze);else{u("go",{to:"login",replace:!0});return}if(ne.isAuthorized&&r.hasPendingDemoAuthorization()){r.continueDemoAfterAuthorization(),N();return}if(!r.hasInitialized||Me!==De){C();return}lt(m)}),Tt(()=>{const ne=f.value;ne&&r.setScrollTop(ne.scrollTop)});async function C(){const ne=await r.getUuids();if(!ne.ok){s(ne.error.message??l("-27"));return}
77w(ne.data.userHasNoOrganizationDetails)}const w=ne=>{ne&&u("go",{to:"resident-organization-details"})},$=ne=>{const ve=ne.botMessage?.trim()??"",J=ne.textButtons?.filter(He=>He.trim().length>0)??[],he=ne.userHasNotCard?"bind-card":ne.userHasDebtBill?"pay":null;if(!ve&&J.length===0)return;const Ee={id:`bot-${Date.now()}`,text:ve,createdAt:new Date().toISOString(),isMine:!1,textButtons:J,kind:he?"action":"text",shouldAnimate:!0,chatId:r.uuid,needEmailBlock:ne.needEmailBlock??r.pendingNeedEmailBlock,actionType:he??void 0,actionLabel:he==="bind-card"?l("drawer.claims.createChat.bindCard"):he==="pay"?l("drawer.claims.createChat.pay"):void 0};r.addMessage(Ee)},S=async ne=>{const ve=ne.trim();if(!ve){r.setMessageDraft("");return}r.clearTextButtons(),r.setMessageDraft("");const J={id:`temp-${Date.now()}`,text:ve,createdAt:new Date().toISOString(),isMine:!0,kind:"text"};r.addMessage(J);const he=await r.sendMessage(ve);if(he&&!he.ok){s(he.error.message??l("-28"));return}he?.ok&&($(he.data),w(he.data.userHasNoOrganizationDetails))},I=async()=>{await S(r.messageDraft)},P=async ne=>{await S(ne)},L=()=>{h.value?.click()},D=async ne=>{const ve=ne.target,J=ve.files;if(!J?.length)return;const he=J.item(0);if(!he)return;const Ee=he.type.startsWith("image/")||Eu(he);if(!Ee&&he.size>15*1024*1024){s(l("drawerClaimChat.tooLargeFile")),ve.value="";return}let He=he;Ee&&(He=await ma(he)),r.setMessageDraft(""),r.clearTextButtons();const de={url:URL.createObjectURL(He),name:He.name,type:Ee?"image":"file",extension:R(He.name),file:He},Me={id:`temp-${Date.now()}`,text:"",createdAt:new Date().toISOString(),isMine:!0,kind:"text",attachments:[de]};r.addMessage(Me);const De=await r.sendMessage(void 0,He);De&&!De.ok?s(De.error.message??l("-28")):De?.ok&&($(De.data),w(De.data.userHasNoOrganizationDetails)),ve.value="",lt(g)},R=ne=>{const ve=ne.split(".");return(ve.length>1?ve.pop():"")?.toUpperCase()||"FILE"},F=()=>{r.continueDialog(),N()};async function N(){const ne=await r.getHistory();ne.ok||s(ne.error.message??l("-28"))}const z=()=>{r.startNewDialog()},me=ne=>{ne&&ye(ne)},ge=()=>{const ne=r.resultClaimId;u("go",{to:"claim-info",query:{id:ne,premises_id:o.residence?.premisesId??null},replace:!0})},fe=()=>{u("go",{to:"close",replace:!1})},te=()=>{u("go",{to:"login",replace:!1,segmentationChoice:"find_executor",claimTitle:r.claimTitle||null})},V=()=>{te()},pe=()=>{te()},ye=ne=>{ne=="bind-card"?(i.consumeClaimRetryPending(),i.isFromClaims=!0,u("go",{to:"card-add",replace:!1})):u("go",{to:"claim-bill",replace:!1})};return(ne,ve)=>{const J=P9e,he=B9e;return p(),y("div",oSe,[c("div",aSe,[a(r).isContinueDialog?(p(),y("div",lSe,[T(J),c("h3",cSe,b(a(l)("drawerClaimCreateChat.continueTitle")),1),c("p",uSe,b(a(l)("drawerClaimCreateChat.continueDescription")),1),c("div",dSe,[T(a(vt),{label:a(l)("drawerClaimCreateChat.continueButton"),onClick:F},null,8,["label"]),T(a(vt),{variant:"secondary",label:a(l)("drawerClaimCreateChat.newButton"),onClick:z},null,8,["label"])])])):a(r).isLoad?(p(),y("div",fSe,[...ve[1]||(ve[1]=[ls('<div class="flex justify-end"><div class="w-[220px] rounded-2xl bg-grey-90 px-6 py-4"><div class="h-4 w-36 rounded-full bg-grey-80 animate-pulse"></div></div></div><div class="flex justify-start"><div class="w-[280px] rounded-2xl bg-grey-90 px-6 py-5"><div class="space-y-4"><div class="h-4 w-28 rounded-full bg-grey-80 animate-pulse"></div><div class="h-4 w-40 rounded-full bg-grey-80 animate-pulse"></div></div></div></div>',2)])])):(p(),y("div",{key:2,ref_key:"scrollContainer",ref:f,class:"flex flex-1 min-h-0 flex-col gap-6 overflow-y-auto px-6 py-6 scrollbar-4-grey80"},[(p(!0),y(j,null,le(a(r).messages,Ee=>(p(),K(iSe,{key:Ee.id,message:Ee,"finish-animation":a(r).isSending,onRevealProgress:v,onAction:me,onCommand:P,onRegistration:pe},null,8,["message","finish-animation"]))),128))],512))]),a(r).userNeedRegistration&&!a(r).isContinueDialog&&!a(r).isLoad?(p(),y("div",pSe,[T(a(vt),{label:a(l)("drawerClaimCreateChat.loginButton"),onClick:V},null,8,["label"])])):a(r).chatIsOpen&&!a(r).isContinueDialog&&!a(r).isLoad?(p(),K(he,{key:1,modelValue:d.value,"onUpdate:modelValue":ve[0]||(ve[0]=Ee=>d.value=Ee),class:"shrink-0","is-sending":a(r).isSending,onSend:I,onAttach:L},null,8,["modelValue","is-sending"])):!a(r).chatIsOpen&&!a(r).isContinueDialog&&!a(r).isLoad?(p(),y("div",hSe,[c("div",mSe,[a(r).resultClaimId.length>0&&a(r).claimCreatedSuccess?(p(),K(a(vt),{key:0,label:a(l)("drawerClaimCreateChat.endMoveButton"),onClick:ge},null,8,["label"])):E("",!0),a(r).resultClaimId.length>0&&a(r).claimCreatedSuccess?(p(),K(a(vt),{key:1,variant:"secondary",label:a(l)("drawerClaimCreateChat.endCloseButton"),onClick:fe},null,8,["label"])):(p(),K(a(vt),{key:2,label:a(l)("drawerClaimCreateChat.endCloseButton"),onClick:fe},null,8,["label"]))])])):E("",!0),c("input",{ref_key:"fileInputRef",ref:h,type:"file",accept:"*/*",class:"hidden",onChange:D},null,544)])}}}),ySe=Object.assign(gSe,{__name:"ClaimCreateChatPanel"}),_Se={class:"m-6 flex items-center gap-2 bg-grey-90 rounded-lg"},vSe=["aria-label"],bSe={class:"w-10 h-10 rounded-full flex items-center justify-center transition-colors xl:group-hover:bg-grey-80"},xSe=["placeholder"],kSe=["aria-disabled"],Fb=296,wSe=G({__name:"ChatInput",props:{modelValue:{},placeholder:{}},emits:["update:modelValue","send","attach"],setup(e,{emit:t}){const s=e,n=t,r=X(s.modelValue);Se(()=>s.modelValue,h=>{r.value=h,d()}),Se(r,h=>n("update:modelValue",h));const i=X(null),o=A(()=>!r.value.trim()),{t:l}=be(),u=A(()=>s.placeholder||l("chat.placeholder")),d=()=>{lt(()=>{const h=i.value;if(!h)return;h.style.height="0px";const g=Math.min(h.scrollHeight,Fb);h.style.height=`${g}px`,h.style.overflowY=h.scrollHeight>Fb?"auto":"hidden",h.style.overflowX="hidden"})},f=h=>{h.shiftKey||h.ctrlKey||h.altKey||h.metaKey||h.isComposing||(h.preventDefault(),o.value||n("send"))};return je(d),(h,g)=>{const m=V0,_=X0,v=Z0;return p(),y("div",_Se,[c("div",{class:"w-14 h-14 flex items-center justify-center flex-shrink-0 self-end group cursor-pointer","aria-label":a(l)("chat.attachFile"),onClick:g[0]||(g[0]=k=>n("attach"))},[c("div",bSe,[T(m,{class:"w-6 h-6 [&>path]:fill-grey-40"})])],8,vSe),pn(c("textarea",{ref_key:"textareaRef",ref:i,"onUpdate:modelValue":g[1]||(g[1]=k=>r.value=k),placeholder:u.value,rows:"1",class:"flex-1 resize-none overflow-y-auto px-0 py-2 text-16 leading-6 rounded-md focus:outline-none caret-paleLime-primary scrollbar-4-grey80",style:{height:"auto"},onInput:d,onKeydown:Qr(f,["enter"])},null,40,xSe),[[jr,r.value]]),c("div",{class:oe(["w-14 h-14 roun
77ded-full flex items-center justify-center transition-colors group self-end",o.value?"cursor-default":"cursor-pointer"]),"aria-disabled":o.value?"true":"false",onClick:g[2]||(g[2]=k=>!o.value&&h.$emit("send"))},[c("div",{class:oe(["w-10 h-10 rounded-full flex items-center justify-center transition-colors",o.value?"bg-transparent":"bg-paleLime-primary xl:group-hover:bg-paleLime-40"])},[o.value?(p(),K(v,{key:1,class:""})):(p(),K(_,{key:0,class:""}))],2)],10,kSe)])}}}),CSe=Object.assign(wSe,{__name:"ChatInput"}),$Se={class:"max-w-[80%]"},SSe={class:"text-16 whitespace-pre-line break-words"},ASe=["onClick"],ISe={class:"flex items-start gap-3"},TSe={class:"flex h-12 w-12 items-center justify-center rounded-full bg-paleLime-primary p-2 shrink-0"},PSe={class:"flex min-w-0 flex-1 flex-col gap-1"},DSe=["title"],ESe={class:"text-13 text-grey-40 uppercase"},LSe={class:"mt-3 ml-auto flex w-full items-center justify-end gap-2 text-13 text-grey-40"},RSe={key:0},MSe={key:1,class:"relative inline-block"},OSe=["onClick"],FSe={class:"flex items-start gap-3"},NSe={class:"flex h-12 w-12 items-center justify-center rounded-full bg-paleLime-primary p-2 shrink-0"},BSe={class:"flex min-w-0 flex-1 flex-col gap-1"},VSe=["title"],HSe={class:"text-13 text-grey-40 uppercase"},qSe={key:0,class:"mt-3 flex items-center justify-end gap-2 text-13 text-grey-40"},jSe={key:0},USe={key:2,class:"absolute bottom-2 right-2 text-white rounded-full p-2 text-13 flex items-center gap-2 bg-transparent-black48"},zSe={key:0},WSe=G({__name:"ClaimChatMessage",props:{message:{},timeLabel:{}},setup(e){const t=e,s=A(()=>t.message.isMine?"bg-paleLime-90 text-black":"bg-grey-90 text-black"),n=A(()=>t.message.isMine?"bg-paleLime-90":"bg-grey-90"),r=i=>{if(i.file){const o=URL.createObjectURL(i.file);window.open(o,"_blank")}else window.open(i.url,"_blank","noopener,noreferrer")};return(i,o)=>{const l=ni,u=tf,d=j7,f=U7;return p(),y("div",{class:oe(["flex w-full",e.message.isMine?"justify-end":"justify-start"])},[c("div",$Se,[e.message.text?(p(),y("div",{key:0,class:oe(["rounded-lg px-4 py-3",s.value])},[c("p",SSe,b(e.message.text),1),(p(!0),y(j,null,le(e.message.attachments,(h,g)=>(p(),y("div",{key:`${e.message.id}-${g}`,class:oe(["cursor-pointer","mt-3"]),onClick:m=>r(h)},[h.type==="image"?(p(),K(l,{key:0,src:h.url,alt:h.name,class:"max-h-[160px] w-full rounded-lg object-cover"},null,8,["src","alt"])):(p(),y("div",{key:1,class:oe(["rounded-2xl px-4 py-3 transition hover:opacity-80",n.value])},[c("div",ISe,[c("div",TSe,[T(u,{class:"[&>path]:fill-white"})]),c("div",PSe,[c("span",{class:"text-16-bold text-black truncate",title:h.name},b(h.name),9,DSe),c("span",ESe,b(h.extension.toUpperCase()),1)])])],2))],8,ASe))),128)),c("div",LSe,[e.message.isMine?(p(),y("span",RSe,[e.message.isRead?(p(),K(d,{key:0})):(p(),K(f,{key:1}))])):E("",!0),c("span",null,b(e.timeLabel),1)])],2)):(p(),y("div",MSe,[(p(!0),y(j,null,le(e.message.attachments,(h,g)=>(p(),y("div",{key:`${e.message.id}-${g}`,class:"cursor-pointer relative inline-block",onClick:m=>r(h)},[h.type==="image"?(p(),K(l,{key:0,src:h.url,alt:h.name,class:"max-h-[160px] w-full rounded-lg object-cover"},null,8,["src","alt"])):(p(),y("div",{key:1,class:oe(["rounded-2xl px-4 py-3 transition hover:opacity-80",n.value])},[c("div",FSe,[c("div",NSe,[T(u,{class:"[&>path]:fill-white"})]),c("div",BSe,[c("span",{class:"text-16-bold text-black truncate",title:h.name},b(h.name),9,VSe),c("span",HSe,b(h.extension.toUpperCase()),1)])]),!e.message.text&&g===e.message.attachments.length-1?(p(),y("div",qSe,[e.message.isMine?(p(),y("span",jSe,[e.message.isRead?(p(),K(d,{key:0})):(p(),K(f,{key:1}))])):E("",!0),c("span",null,b(e.timeLabel),1)])):E("",!0)],2)),g===e.message.attachments.length-1&&h.type==="image"?(p(),y("div",USe,[e.message.isMine?(p(),y("span",zSe,[e.message.isRead?(p(),K(d,{key:0})):(p(),K(f,{key:1}))])):E("",!0),c("span",null,b(e.timeLabel),1)])):E("",!0)],8,OSe))),128))]))])],2)}}}),GSe=Object.assign(WSe,{__name:"ClaimChatMessage"}),YSe={class:"flex h-full flex-col"},KSe={key:0,class:"space-y-6","aria-label":"Loading"},QSe={class:"flex justify-center"},XSe={class:"mt-4 inline-flex rounded-full bg-purple-90/60 px-3 py-2"},ZSe={class:"space-y-4"},JSe={class:"space-y-2"}
77,eAe={key:0,class:"h-4 w-4 rounded-full bg-grey-80 animate-pulse"},tAe={class:"flex justify-center"},sAe={class:"mt-4 rounded-full bg-purple-90 px-3 py-2 text-13 text-purple-50"},nAe={class:"space-y-4"},rAe={key:2,class:"flex h-full flex-col items-center justify-center text-center"},iAe={class:"mt-6 whitespace-pre-line text-16"},oAe=G({__name:"ClaimChatPanel",setup(e){const{t}=be(),{$showSnackbar:s}=Te(),n=fu(),r=X(""),i=X(null),o=X(null),l=st(),u=A(()=>[...n.messages].sort((S,I)=>new Date(S.createdAt).getTime()-new Date(I.createdAt).getTime())),d=A(()=>{const S=new Map;return u.value.forEach(I=>{const P=new Date(I.createdAt),L=P.toISOString().split("T")[0]??"",D=v(P);let R=S.get(L);R||(R={label:D,messages:[]},S.set(L,R)),R.messages.push(I)}),Array.from(S.entries()).map(([I,P])=>({date:I,label:P.label,messages:P.messages}))}),f=A(()=>n.messages.length>0),h=A(()=>n.isLoading||!n.hasLoaded),g=[{labelWidth:"w-24",messages:[{isMine:!1,maxWidth:"max-w-[78%]",lines:["w-40","w-64"],timeWidth:"w-12"},{isMine:!0,maxWidth:"max-w-[72%]",lines:["w-32","w-48"],timeWidth:"w-10"}]},{labelWidth:"w-20",messages:[{isMine:!1,maxWidth:"max-w-[68%]",lines:["w-52"],timeWidth:"w-11"},{isMine:!0,maxWidth:"max-w-[80%]",lines:["w-44","w-60","w-28"],timeWidth:"w-12"}]}],m=()=>{const S=i.value;S&&(S.scrollTop=S.scrollHeight)};Se(()=>n.messages.length,()=>{lt(m)}),je(()=>{const S=l.query.id,I=Array.isArray(S)?S[0]:S,P=l.query.premises_id,L=Array.isArray(P)?P[0]:P,D=typeof I=="string"?I:n.claimId??"",R=typeof L=="string"?L:n.selectedPremisesId;n.setClaimContext(D,R??null),n.markMessagesRead(D),n.loadMessages(D),n.startPolling(D)});const _=Oe();Se(()=>_.userInfo,()=>{n.markMessagesRead(),n.loadMessages()}),Tt(()=>{n.stopPolling()});function v(S){return S.toLocaleDateString("ru-RU",{day:"numeric",month:"long"})}function k(S){return new Date(S).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"})}const x=async()=>{const S=r.value.trim();if(!S){r.value="";return}const I=`temp-${Date.now()}`,P={id:I,isMine:!0,text:S,attachments:[],createdAt:new Date().toISOString(),isRead:!1};n.addMessage(P),r.value="",lt(m);const L=await n.sendMessage(I,S);L.ok||s(L.error.message??t("drawerClaimChat.sendError"))},C=()=>{o.value?.click()},w=async S=>{const I=S.target,P=I.files;if(!P?.length)return;const L=P.item(0);if(!L)return;const D=L.type.startsWith("image/")||Eu(L);if(!D&&L.size>15*1024*1024){s(t("drawerClaimChat.tooLargeFile")),I.value="";return}let R=L;D&&(R=await ma(L));const F=`temp-${Date.now()}`,N=URL.createObjectURL(R);n.addPendingUrl(N);const z={url:N,name:R.name,type:D?"image":"file",extension:$(R.name),file:R},me={id:F,isMine:!0,text:"",attachments:[z],createdAt:new Date().toISOString(),isRead:!1};n.addMessage(me),I.value="",lt(m);const ge=await n.sendMessage(F,void 0,R);ge.ok||s(ge.error.message??t("drawerClaimChat.sendError"))},$=S=>{const I=S.split(".");return(I.length>1?I.pop():"")?.toUpperCase()||"FILE"};return(S,I)=>{const P=q7;return p(),y("div",YSe,[c("div",{ref_key:"scrollContainer",ref:i,class:"flex-1 overflow-y-auto px-6 py-6 scrollbar-4-grey80"},[h.value?(p(),y("div",KSe,[(p(),y(j,null,le(g,(L,D)=>c("div",{key:`chat-skeleton-group-${D}`,class:"space-y-4"},[c("div",QSe,[c("span",XSe,[c("span",{class:oe(["h-4 rounded-full bg-purple-50/40 animate-pulse",L.labelWidth])},null,2)])]),c("div",ZSe,[(p(!0),y(j,null,le(L.messages,(R,F)=>(p(),y("div",{key:`chat-skeleton-message-${D}-${F}`,class:oe(["flex",R.isMine?"justify-end":"justify-start"])},[c("div",{class:oe(["w-full rounded-lg px-4 py-3",R.isMine?"bg-paleLime-90":"bg-grey-90",R.maxWidth])},[c("div",JSe,[(p(!0),y(j,null,le(R.lines,(N,z)=>(p(),y("div",{key:`chat-skeleton-line-${D}-${F}-${z}`,class:oe(["h-4 rounded bg-grey-80 animate-pulse",N])},null,2))),128))]),c("div",{class:oe(["mt-3 flex items-center gap-2",R.isMine?"justify-end":"justify-start"])},[R.isMine?(p(),y("span",eAe)):E("",!0),c("span",{class:oe(["h-4 rounded bg-grey-80 animate-pulse",R.timeWidth])},null,2)],2)],2)],2))),128))])])),64))])):f.value?(p(!0),y(j,{key:1},le(d.value,L=>(p(),y("div",{key:L.date,class:"space-y-4"},[c("div",tAe,[c("span",sAe,b(L.label),1)]),c("div",nAe,[(p(!0),y(j,null,le(L.messages,D=>(p(),K(GSe,{key:D.id,message:D,"time-label":k(D.createdAt)},null,8,["message","time-label"]))),128))])]))),128)):(p(),y("div",rAe,[T(P),c("h3",iAe,b(a(t)("drawerClaimChat.empty")),1)]))],512),T(CSe,{modelValue:r.value,"onUpdate:modelValue":I[0]||(I[0]=L=>r.value=L),onSend:x,onAttach:C},null,8,["modelValue"]),c("input",{ref_key:"fileInputRef",ref:o,type:"file",accept:"*/*",class:"hidden",onChange:w},null,544)])}}}),W9=Object.assign(oAe,{__name:"ClaimChatPanel"}),aAe={class:"flex h-full flex-col"},lAe={class:"flex flex-1 flex-col px-6 pb-6"},cAe={class:"flex flex-col items-center pt-2"},uAe={class:"mt-6 text-center text-24-bold"},dAe={class:"mt-6 w-full"},fAe={class:"mt-6 w-full"},pAe={class:"text-13 text-grey-40"},hAe={key:0,class:"mt-4 flex flex-wrap gap-2"},mAe={key:1,class:"mt-4 flex flex-wrap gap-2"},gAe=["onClick"],yAe={class:"mt-auto flex flex-col gap-3 pt-6"},_Ae=G({__name:"ClaimCancelPanel",emits:["go"],setup(e,{emit:t}){const s=st(),{t:n}=be(),{$showSnackbar:r}=Te(),i=af(),o=ri(),l=Oe(),u=t;function d(g){return Array.isArray(g)?g[0]??"":g??""}function f(){u("go","back")}async function h(){const g=await i.cancelClaim();if(g.ok){u("go","back");return}r(g.error.message??n("drawerClaimCancel.cancelError"))}return je(async()=>{const g=d(s.query.id)||i.claimId||o.selectedClaimId||o.claim?.id||"",m=d(s.query.premises_id)||i.premisesId||o.selectedPremisesId||l.residence?.premisesId||"";i.setContext(g,m),await i.loadReasons(),i.error&&r(i.error.message??n("drawerClaimCancel.reasonsError"))}),(g,m)=>{const _=ya,v=Ae("TextField"),k=Ae("PrimaryButton");return p(),y("div",aAe,[c("div",lAe,[c("div",cAe,[T(_),c("h1",uAe,b(a(n)("drawerClaimCancel.title")),1),c("div",dAe,[T(v,{"model-value":a(i).commentValue,placeholder:a(n)("drawerClaimCancel.placeholder"),size:"default","onUpdate:modelValue":a(i).updateCommentValue},null,8,["model-value","placeholder","onUpdate:modelValue"])]),c("div",fAe,[c("p",pAe,b(a(n)("drawerClaimCancel.frequentReasons")),1),a(i).isLoading?(p(),y("div",hAe,[(p(),y(j,null,le(6,x=>c("span",{key:x,class:"h-8 w-28 animate-pulse rounded-full bg-grey-90"})),64))])):(p(),y("div",mAe,[(p(!0),y(j,null,le(a(i).reasons,x=>(p(),y("button",{key:x,type:"button",class:oe(["rounded-full px-3 py-2 text-13 transition-colors duration-150",a(i).selectedReason===x?"bg-purple-50 text-white":"bg-purple-90 text-purple-50 xl:hover:bg-grey-90"]),onClick:C=>a(i).toggleReason(x)},b(x),11,gAe))),128))]))])]),c("div",yAe,[T(k,{class:"w-full",label:a(n)("drawerClaimCancel.submit"),loading:a(i).isSubmitting,onClick:h},null,8,["label","loading"]),T(k,{class:"w-full",variant:"secondary",label:a(n)("drawerClaimCancel.back"),onClick:f},null,8,["label"])])])])}}}),G9=Object.assign(_Ae,{__name:"ClaimCancelPanel"}),vAe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function bAe(e,t){return p(),y("svg",vAe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M36.253 14.254a22.004 22.004 0 0 1 22.001 22 1.502 1.502 0 0 1-3 0 19 19 0 0 0-5.565-13.434 19 19 0 0 0-13.436-5.565 1.501 1.501 0 0 1 0-3"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M13.626 13.627c12.497-12.496 32.758-12.496 45.255 0 12.141 12.142 12.485 31.61 1.035 44.168l2.507 2.508q.309-.296.582-.536c.48-.418.969-.776 1.55-1.017a5.5 5.5 0 0 1 4.21 0c.58.24 1.069.6 1.548 1.017.469.409 1.005.946 1.65 1.59L88.225 77.62c.644.644 1.18 1.18 1.59 1.649.418.479.776.968 1.016 1.549a5.5 5.5 0 0 1 0 4.21c-.24.58-.598 1.07-1.016 1.549-.41.468-.946 1.005-1.59 1.649s-1.18 1.18-1.65 1.59c-.478.418-.968.776-1.548 1.016a5.5 5.5 0 0 1-4.21 0c-.58-.24-1.07-.599-1.549-1.016-.469-.41-1.005-.946-1.65-1.59L61.357 71.963c-.644-.644-1.181-1.18-1.59-1.65-.418-.478-.776-.967-1.017-1.548a5.5 5.5 0 0 1 0-4.21c.241-.58.6-1.07 1.017-1.549q.24-.274.536-.582l-2.508-2.508c-12.558 11.45-32.026 11.107-44.168-1.034-12.496-12.497-12.496-32.758 0-45.255m53.74 60.104L79.74 86.106c.673.673 1.126 1.125 1.5 1.451.363.317.571.441.725.505a2.5 2.5 0 0 0 1.913 0c.155-.064.363-.188.726-.505.374-.326.826-.778 1.5-1.451.673-.673 1.125-1.126 1.451-1.5.317-.363.441-.572.505-.726.253-.612.253-1.3 0-1.9
7713-.064-.154-.188-.362-.505-.725-.326-.374-.778-.827-1.451-1.5L73.73 67.367zm.25-12.21a2.5 2.5 0 0 0-1.913 0c-.155.065-.363.189-.726.506-.374.326-.827.778-1.5 1.45-.673.674-1.125 1.127-1.451 1.5-.317.364-.441.572-.505.727a2.5 2.5 0 0 0 0 1.913c.064.154.188.362.505.725.326.374.778.827 1.451 1.5l1.768 1.768 6.364-6.364-1.768-1.768c-.673-.673-1.126-1.125-1.5-1.451-.363-.317-.571-.441-.725-.505M56.759 15.75c-11.325-11.325-29.686-11.326-41.011 0-11.326 11.324-11.325 29.686 0 41.011s29.686 11.325 41.011 0 11.325-29.686 0-41.011","clip-rule":"evenodd"},null,-1)])])}const Y9={render:bAe},xAe={class:"flex h-full flex-col"},kAe={class:"flex-1 px-6"},wAe={class:"flex h-full flex-col items-center justify-center space-y-6 text-center"},CAe={class:"text-24-bold text-black"},$Ae={class:"text-16 text-grey-40"},SAe={class:"p-6"},AAe=G({__name:"ClaimArbitrationPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t,r=of(),i=A(()=>r.arbitrationInfo?.detailsTitle||s("drawer.claims.arbitration.defaultTitle")),o=A(()=>r.arbitrationInfo?.detailsSubtitle||s("drawer.claims.arbitration.defaultSubtitle"));return(l,u)=>{const d=Y9,f=Ae("PrimaryButton");return p(),y("div",xAe,[c("div",kAe,[c("div",wAe,[T(d,{class:""}),c("div",CAe,b(i.value),1),c("p",$Ae,b(o.value),1)])]),c("div",SAe,[T(f,{class:"w-full",label:a(s)("drawer.claims.arbitration.okButton"),onClick:u[0]||(u[0]=h=>n("go","back"))},null,8,["label"])])])}}}),K9=Object.assign(AAe,{__name:"ClaimArbitrationPanel"}),IAe={class:"flex h-full flex-col"},TAe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},PAe={class:"text-24-bold mb-6"},DAe={class:"flex flex-col gap-2"},EAe={class:"min-w-0 truncate text-16 text-black"},LAe=G({__name:"ClaimAttachmentsPanel",setup(e){const{t}=be(),{public:{apiBaseUrl:s}}=kn(),n=ri(),r=Ne(),i=A(()=>n.claim?.attachments??[]);function o(h){const g=h.type.toLowerCase(),m=h.name.toLowerCase();return g.startsWith("image/")||/\.(jpe?g|png|gif|webp|heic|heif)$/i.test(m)}function l(h){return d(h.url)}function u(h){return d(h.url)}function d(h){const g=h.trim();if(!g)return"";if(g.startsWith("blob:")||g.startsWith("data:")||/^https?:\/\//i.test(g))return f(g);try{const m=s.endsWith("/")?s:`${s}/`;return f(new URL(g,m).toString())}catch{return f(g)}}function f(h){const g=r.sessionToken;if(!g||h.startsWith("blob:")||h.startsWith("data:"))return h;const m=h.indexOf("#"),_=m>=0?h.slice(m):"",v=m>=0?h.slice(0,m):h,k=v.indexOf("?"),x=k>=0?v.slice(0,k):v,C=k>=0?v.slice(k+1):"",w=new URLSearchParams(C);return w.set("btlrsid",g),`${x}?${w.toString()}${_}`}return(h,g)=>{const m=ni,_=ha;return p(),y("div",IAe,[c("div",TAe,[c("h1",PAe,b(a(t)("drawerClaimAttachments.title")),1),c("div",DAe,[(p(!0),y(j,null,le(i.value,v=>(p(),K(Jn(u(v)?"a":"div"),{key:v.id||v.url||v.name,href:u(v),target:"_blank",rel:"noopener noreferrer",class:oe(["flex min-h-[56px] w-full items-center gap-3 rounded-[10px] bg-grey-90 px-4 py-3 text-left transition-colors xl:hover:bg-grey-80",{"pointer-events-none":!u(v)}])},{default:Xe(()=>[o(v)?(p(),K(m,{key:0,src:l(v),"mime-type":v.type,alt:v.name,class:"h-6 w-6 shrink-0 rounded-[6px] object-cover",draggable:"false"},null,8,["src","mime-type","alt"])):(p(),K(_,{key:1,class:"shrink-0"})),c("span",EAe,b(v.name||a(t)("drawerClaimAttachments.file")),1)]),_:2},1032,["href","class"]))),128))])])])}}}),RAe=Object.assign(LAe,{__name:"ClaimAttachmentsPanel"}),MAe={xmlns:"http://www.w3.org/2000/svg",width:"160",height:"160",fill:"none"};function OAe(e,t){return p(),y("svg",MAe,[...t[0]||(t[0]=[ls('<path fill="#fff" d="M74.489 148.812c1.608 0 2.838 1.23 2.838 2.838v2.673H80c1.609 0 2.838 1.23 2.838 2.839S81.608 160 80 160H68.977c-1.608 0-2.839-1.23-2.839-2.838v-2.674h-8.184c-1.608 0-2.839-1.229-2.839-2.838s1.23-2.838 2.839-2.838zM107.558 154.323a2.839 2.839 0 1 1-.001 5.677 2.839 2.839 0 0 1 .001-5.677M118.581 154.323a2.839 2.839 0 1 1-.001 5.677 2.839 2.839 0 0 1 .001-5.677M124.092 121.254a2.839 2.839 0 1 1 0 5.677 2.839 2.839 0 0 1 0-5.677"></path><path fill="#fff" fill-rule="evenodd" d="M140.627 82.673c1.608 0 2.838 1.23 2.838 2.839v2.673h2.674c1.608 0 2.838 1.23 2.838 2.838s-1.23 2.839-2.838 2.839h-2.674v8.184c0 1.609-1.23 2.839-2.838 2.839s-2.838-1.23-2.838-2.839v-2.673h-5.347v2.673c0 1.609-1.23 2.839-2.838 2.839h-2.673v5.346h5.346v-2.673c0-1.609 1.23-2.839 2.839-2.839s2.838 1.23 2.838 2.839v8.184h2.673c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-2.673v5.346h2.673c1.608.001 2.838 1.231 2.838 2.839v2.673h10.858v-2.673c0-1.608 1.23-2.839 2.839-2.839 1.608.001 2.838 1.231 2.838 2.839v5.512c0 1.608-1.23 2.838-2.838 2.838h-8.185v5.346h2.673c1.609 0 2.838 1.23 2.838 2.839v5.511c0 1.609-1.229 2.838-2.838 2.838s-2.838-1.229-2.838-2.838v-2.673h-10.858v5.346h8.185c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-11.023c-1.609 0-2.839-1.23-2.839-2.838v-8.185h-16.369v2.673c0 1.609-1.23 2.838-2.839 2.838s-2.838-1.229-2.838-2.838v-2.673h-2.673c-1.609 0-2.839-1.23-2.839-2.838v-2.674h-5.346v8.185c0 1.609-1.23 2.838-2.838 2.838h-5.512c-1.608 0-2.838-1.229-2.838-2.838s1.23-2.838 2.838-2.838h2.673v-5.347H82.838v2.674c0 1.608-1.23 2.838-2.838 2.838s-2.838-1.23-2.838-2.838v-11.023c0-1.609 1.23-2.839 2.838-2.839h13.696v-2.673c0-1.608 1.23-2.839 2.839-2.839h2.673v-2.673c0-1.608 1.23-2.838 2.838-2.838h8.185v-5.346h-8.185c-1.608 0-2.838-1.23-2.838-2.839s1.23-2.838 2.838-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.839-2.839h5.511c1.609 0 2.839 1.23 2.839 2.839v2.673h5.346V99.373h-8.185c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839h13.696v-2.673c0-1.608 1.231-2.838 2.839-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.839-2.839zM121.419 143.3h5.346v-5.346h-5.346zm11.023 0h5.347v-5.346h-5.347zm-33.069-5.511h10.858v-5.347H99.373zm16.535-5.512h16.369v-16.369h-16.369z" clip-rule="evenodd"></path><path fill="#fff" d="M19.29 132.277a8.268 8.268 0 1 1-.001 16.534 8.268 8.268 0 0 1 .001-16.534"></path><path fill="#fff" fill-rule="evenodd" d="M26.18 121.254a12.35 12.35 0 0 1 12.4 12.401v14.054c0 6.614-5.51 12.126-12.125 12.126H12.401A12.35 12.35 0 0 1 0 147.434v-14.055c0-6.614 5.512-12.125 12.125-12.125zm-12.952 5.511c-4.134.001-7.716 3.583-7.716 7.717v12.125c0 4.409 3.306 7.716 7.716 7.716h12.125c4.134 0 7.716-3.582 7.716-7.716v-12.125c0-4.41-3.307-7.716-7.716-7.717z" clip-rule="evenodd"></path><path fill="#fff" d="M46.93 132.277c1.61 0 2.84 1.23 2.84 2.839v11.023c0 1.608-1.23 2.838-2.84 2.838-1.608 0-2.838-1.23-2.838-2.838v-11.023c0-1.609 1.23-2.839 2.839-2.839M63.466 121.254c1.608 0 2.838 1.23 2.838 2.838v2.673h2.673c1.608.001 2.838 1.231 2.838 2.839s-1.23 2.838-2.838 2.838h-8.185v5.347h2.673c1.609 0 2.839 1.23 2.839 2.838s-1.23 2.838-2.839 2.838h-5.511c-1.608 0-2.839-1.23-2.839-2.838v-8.185h-2.673c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839h8.185v-2.673c0-1.608 1.23-2.838 2.838-2.838M80 110.231c1.609 0 2.838 1.23 2.838 2.838v5.512c0 1.608-1.23 2.838-2.838 2.838h-2.673v2.673c0 1.609-1.23 2.839-2.838 2.839s-2.839-1.23-2.839-2.839v-2.673h-2.673c-1.608 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839h8.185v-2.673c0-1.608 1.23-2.838 2.838-2.838M157.162 115.742c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-2.674v2.673c0 1.609-1.229 2.839-2.838 2.839s-2.838-1.23-2.838-2.839v-5.511c0-1.609 1.23-2.839 2.838-2.839zM46.93 115.742a2.839 2.839 0 1 1 0 5.677 2.839 2.839 0 0 1 0-5.677M57.954 115.742a2.839 2.839 0 1 1 0 5.677 2.839 2.839 0 0 1 0-5.677M96.535 115.742a2.839 2.839 0 1 1 0 5.677 2.839 2.839 0 0 1 0-5.677M2.839 88.185c1.608 0 2.838 1.23 2.838 2.838v22.046c0 1.609-1.23 2.839-2.838 2.839S0 114.678 0 113.069V91.023c0-1.608 1.23-2.838 2.839-2.838M13.8
7762 99.208c1.608 0 2.838 1.23 2.838 2.838v2.673h2.673c1.609 0 2.839 1.23 2.839 2.839v2.673h13.696c1.608 0 2.838 1.23 2.838 2.838s-1.23 2.839-2.838 2.839H13.862c-1.609 0-2.839-1.23-2.839-2.839v-11.023c0-1.608 1.23-2.838 2.839-2.838M52.442 110.231a2.838 2.838 0 1 1 0 5.677 2.838 2.838 0 0 1 0-5.677M146.139 110.231a2.838 2.838 0 1 1-.001 5.677 2.838 2.838 0 0 1 .001-5.677"></path><path fill="#fff" d="M30.396 93.696c1.609 0 2.838 1.23 2.838 2.839v2.673h13.697c1.608 0 2.838 1.23 2.838 2.838v5.512c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-2.673H24.885c-1.609 0-2.839-1.23-2.839-2.839s1.23-2.838 2.839-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.838-2.839M63.466 99.208c1.608 0 2.838 1.23 2.838 2.838v2.673h5.346v-2.673c0-1.608 1.23-2.838 2.839-2.838s2.838 1.23 2.838 2.838v5.512c0 1.608-1.23 2.838-2.838 2.838H57.954c-1.608 0-2.839-1.23-2.839-2.838v-5.512c0-1.608 1.23-2.838 2.839-2.838zM96.535 104.719c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838H85.512c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839zM157.162 104.719c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-5.512c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839zM102.046 99.208a2.839 2.839 0 1 1 0 5.678 2.839 2.839 0 0 1 0-5.678"></path><path fill="#fff" d="M74.489 82.673c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-2.674v8.185c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-2.673h-2.673c-1.608 0-2.838-1.23-2.838-2.839s1.23-2.838 2.838-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.839-2.839zM129.604 44.092c1.608 0 2.838 1.23 2.838 2.839v2.673h2.674c1.608 0 2.838 1.23 2.838 2.838v8.185h2.673c1.608 0 2.838 1.23 2.838 2.838v2.673h5.347v-2.673c0-1.608 1.23-2.838 2.838-2.838s2.838 1.23 2.838 2.838v2.673h2.674c1.608 0 2.838 1.23 2.838 2.839v5.512c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-2.674h-10.858v2.674c0 1.608-1.23 2.838-2.838 2.838h-5.511c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839h2.673v-5.346h-2.673c-1.609 0-2.839-1.23-2.839-2.839v-2.673h-5.346v2.673c0 1.609-1.23 2.839-2.839 2.839h-2.673v5.346h2.673c1.609 0 2.839 1.23 2.839 2.839s-1.23 2.838-2.839 2.838h-2.673v5.346h2.673c1.609 0 2.839 1.23 2.839 2.839s-1.23 2.838-2.839 2.838h-5.511c-1.609 0-2.839-1.23-2.839-2.838v-2.674h-2.673c-1.608 0-2.838-1.23-2.838-2.838v-2.673h-5.346v5.346h2.673c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-8.185v8.185c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-2.673H80c-1.608 0-2.838-1.23-2.838-2.839s1.23-2.838 2.838-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.839-2.839h13.696V68.977c0-1.608 1.23-2.839 2.838-2.839h2.673v-2.673c0-1.608 1.23-2.838 2.839-2.838s2.838 1.23 2.838 2.838v8.185h5.346V60.792h-2.673c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839h13.696V49.77h-8.184c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839zM157.162 82.673c1.608 0 2.838 1.23 2.838 2.839v11.023c0 1.608-1.23 2.838-2.838 2.838h-5.512c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839h2.673V88.35h-2.673c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839zM24.885 66.139c1.608 0 2.838 1.23 2.838 2.838v22.046c0 1.609-1.23 2.839-2.838 2.839h-5.512c-1.608 0-2.838-1.23-2.838-2.839v-5.511c0-1.609 1.23-2.839 2.838-2.839h2.673v-5.346h-2.673c-1.608 0-2.838-1.23-2.838-2.838v-5.512c0-1.608 1.23-2.839 2.838-2.839zM63.466 77.162c1.608 0 2.838 1.23 2.838 2.838s-1.23 2.838-2.839 2.838H44.259v8.185c0 1.609-1.23 2.839-2.839 2.839h-5.511c-1.609 0-2.839-1.23-2.839-2.839s1.23-2.838 2.839-2.838h2.673v-5.347h-2.673c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.838 2.839-2.838z"></path><path fill="#fff" d="M8.35 49.604c1.608 0 2.838 1.23 2.838 2.838v2.673h8.185c1.609 0 2.839 1.23 2.839 2.839s-1.23 2.838-2.839 2.838H16.7v2.673c0 1.609-1.23 2.839-2.838 2.839s-2.839-1.23-2.839-2.839v-2.673H5.677v5.346H8.35c1.608 0 2.838 1.23 2.838 2.839v16.535c0 1.608-1.23 2.838-2.838 2.838s-2.838-1.23-2.838-2.838v-2.674H2.839C1.23 82.838 0 81.608 0 80s1.23-2.838 2.839-2.838h2.673v-5.347H2.839C1.23 71.815 0 70.585 0 68.977V57.954c0-1.608 1.23-2.839 2.839-2.839h2.673v-2.673c0-1.608 1.23-2.838 2.838-2.838M129.604 77.162a2.838 2.838 0 1 1 0 5.675 2.838 2.838 0 0 1 0-5.675M85.512 49.604c1.608 0 2.838 1.23 2.838 2.838v2.673h8.185c1.608 0 2.838 1.23 2.838 2.839v5.511c0 1.609-1.23 2.839-2.838 2.839h-2.673v2.673c0 1.608-1.23 2.838-2.839 2.838H88.35v2.674c0 1.608-1.23 2.838-2.838 2.838H68.977c-1.608 0-2.839-1.23-2.839-2.838V63.465c0-1.608 1.23-2.838 2.839-2.838s2.838 1.23 2.838 2.838v2.673h2.674c1.608 0 2.838 1.23 2.838 2.839v2.673h5.346V52.442c0-1.608 1.23-2.838 2.839-2.838M41.42 66.139c1.608 0 2.838 1.23 2.838 2.838s-1.23 2.838-2.839 2.838h-5.511c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839zM57.954 66.139a2.838 2.838 0 1 1 0 5.676 2.838 2.838 0 0 1 0-5.677M129.604 66.139a2.838 2.838 0 1 1 0 5.675 2.838 2.838 0 0 1 0-5.675M35.908 55.115c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-2.674v2.673c0 1.609-1.23 2.839-2.838 2.839s-2.838-1.23-2.838-2.839v-5.511c0-1.608 1.23-2.839 2.838-2.839zM57.954 55.115c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838H55.28v2.673c0 1.609-1.23 2.839-2.839 2.839h-5.511c-1.609 0-2.839-1.23-2.839-2.839v-5.511c0-1.608 1.23-2.839 2.839-2.839zM146.139 55.115a2.839 2.839 0 1 1-.001 5.678 2.839 2.839 0 0 1 .001-5.678M24.885 44.092c1.608 0 2.838 1.23 2.838 2.839v5.511c0 1.609-1.23 2.839-2.838 2.839s-2.839-1.23-2.839-2.839V49.77h-8.184c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839zM41.42 49.604a2.838 2.838 0 1 1 0 5.677 2.838 2.838 0 0 1 0-5.677"></path><path fill="#fff" fill-rule="evenodd" d="M91.023 0c1.609 0 2.839 1.23 2.839 2.839v2.673h5.346V2.839c0-1.609 1.23-2.839 2.838-2.839s2.839 1.23 2.839 2.839v2.673h2.673c1.608 0 2.838 1.23 2.838 2.838v2.673h2.673c1.609 0 2.839 1.23 2.839 2.839s-1.23 2.838-2.839 2.838h-2.673v5.346h2.673c1.609 0 2.839 1.23 2.839 2.839s-1.23 2.838-2.839 2.838h-8.184v8.185c0 1.608-1.23 2.838-2.839 2.838s-2.838-1.23-2.838-2.838V24.885c0-1.609 1.23-2.839 2.838-2.839h2.673V11.188H88.35v2.674c0 1.608-1.23 2.838-2.838 2.838h-2.674v10.858h5.347v-2.673c0-1.609 1.23-2.839 2.838-2.839s2.839 1.23 2.839 2.839v11.023c0 1.608-1.23 2.838-2.839 2.838s-2.838-1.23-2.838-2.838v-2.674h-5.347v5.347h2.674c1.608 0 2.838 1.23 2.838 2.838s-1.23 2.839-2.838 2.839h-2.674v2.673c0 1.608-1.23 2.838-2.838 2.838h-8.185v2.673c0 1.609-1.23 2.839-2.838 2.839h-5.512c-1.608 0-2.838-1.23-2.838-2.839V49.77H46.931c-1.
77609 0-2.839-1.23-2.839-2.838V30.396c0-1.608 1.23-2.838 2.839-2.838s2.838 1.23 2.838 2.838v8.185h2.673c1.609 0 2.839 1.23 2.839 2.838v2.673H71.65V41.42c0-1.608 1.23-2.838 2.839-2.838h2.673v-5.347h-5.347v2.674c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-8.185h-2.673c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839h2.673V16.7h-5.346v2.673c0 1.608-1.23 2.838-2.838 2.839H55.28v2.673c0 1.608-1.23 2.838-2.839 2.838s-2.838-1.23-2.838-2.838v-5.512c0-1.608 1.23-2.838 2.838-2.838h2.673v-2.673c0-1.609 1.23-2.839 2.839-2.839h8.184V5.677h-8.184c-1.608 0-2.839-1.23-2.839-2.838S56.345 0 57.954 0zM71.815 27.558h5.347v-5.346h-5.347zm0-16.535h5.347V5.677h-5.347z" clip-rule="evenodd"></path><path fill="#fff" d="M157.162 44.092c1.608 0 2.838 1.23 2.838 2.839v5.511c0 1.609-1.23 2.839-2.838 2.839s-2.839-1.23-2.839-2.839V49.77h-8.184c-1.609 0-2.839-1.23-2.839-2.838s1.23-2.839 2.839-2.839zM35.908 44.092a2.839 2.839 0 1 1 0 5.677 2.839 2.839 0 0 1 0-5.677M107.558 44.092c1.608 0 2.838 1.23 2.838 2.839s-1.23 2.838-2.838 2.838h-5.512c-1.608 0-2.838-1.23-2.838-2.838s1.23-2.839 2.838-2.839zM113.069 33.07c1.609 0 2.839 1.23 2.839 2.838v5.511c0 1.609-1.23 2.839-2.839 2.839s-2.838-1.23-2.838-2.839v-5.511c0-1.609 1.23-2.839 2.838-2.839M57.954 27.558c1.608 0 2.838 1.23 2.838 2.838v5.512c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838v-5.512c0-1.608 1.23-2.838 2.839-2.838M19.29 11.023a8.267 8.267 0 1 1 0 16.535 8.267 8.267 0 0 1 0-16.535"></path><path fill="#fff" fill-rule="evenodd" d="M26.18 0a12.35 12.35 0 0 1 12.4 12.401v14.054c0 6.614-5.51 12.126-12.125 12.126H12.401A12.35 12.35 0 0 1 0 26.18V12.125C0 5.512 5.512 0 12.125 0zM13.228 5.512c-4.134 0-7.716 3.582-7.716 7.716v12.125c0 4.41 3.306 7.716 7.716 7.716h12.125c4.134 0 7.716-3.582 7.716-7.716V13.228c0-4.41-3.307-7.716-7.716-7.716z" clip-rule="evenodd"></path><path fill="#fff" d="M140.544 11.023a8.268 8.268 0 1 1 0 16.536 8.268 8.268 0 0 1 0-16.536"></path><path fill="#fff" fill-rule="evenodd" d="M147.434 0a12.35 12.35 0 0 1 12.401 12.401v14.054c0 6.614-5.512 12.126-12.126 12.126h-14.054a12.35 12.35 0 0 1-12.401-12.401V12.125C121.254 5.512 126.765 0 133.379 0zm-12.952 5.512c-4.134 0-7.716 3.582-7.717 7.716v12.125c.001 4.41 3.307 7.716 7.717 7.716h12.125c4.134 0 7.716-3.582 7.716-7.716V13.228c0-4.41-3.307-7.716-7.716-7.716z" clip-rule="evenodd"></path><path fill="#fff" d="M96.535 16.535a2.838 2.838 0 1 1 0 5.677 2.838 2.838 0 0 1 0-5.677M46.93 0c1.61 0 2.84 1.23 2.84 2.839v2.673h2.672c1.609 0 2.839 1.23 2.839 2.838s-1.23 2.838-2.839 2.838H49.77v2.674c0 1.608-1.23 2.838-2.838 2.838s-2.839-1.23-2.839-2.838V2.839C44.092 1.23 45.322 0 46.931 0M113.069 0a2.839 2.839 0 1 1 0 5.678 2.839 2.839 0 0 1 0-5.678"></path>',14)])])}const FAe={render:OAe},NAe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function BAe(e,t){return p(),y("svg",NAe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M11.147 8.646a.5.5 0 1 1 .707.708l-2 2a.5.5 0 0 1-.708 0l-1-1a.5.5 0 1 1 .708-.708l.646.647z"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M6.8 1.5c.552 0 .996 0 1.354.03.365.03.685.092.98.242a2.5 2.5 0 0 1 1.093 1.093c.151.296.214.616.244.98.029.36.029.803.029 1.355v.3h.3c.552 0 .996 0 1.354.03.365.03.685.092.98.242a2.5 2.5 0 0 1 1.093 1.093c.151.296.214.616.244.98.029.36.029.803.029 1.355v1.6c0 .552 0 .996-.03 1.354-.03.365-.092.685-.243.98a2.5 2.5 0 0 1-1.092 1.093c-.296.151-.616.214-.98.244-.36.029-.803.029-1.355.029H9.2c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.092c-.15-.296-.213-.616-.243-.98-.029-.36-.029-.803-.029-1.355v-.3h-.3c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.092c-.15-.296-.213-.616-.243-.98C1.5 7.794 1.5 7.351 1.5 6.8V5.2c0-.552 0-.996.03-1.354.03-.365.092-.685.242-.98.24-.471.623-.854 1.093-1.094.296-.15.616-.213.98-.243.36-.029.803-.029 1.355-.029zm2.4 5c-.568 0-.965 0-1.273.025-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C6.5 8.235 6.5 8.632 6.5 9.2v1.6c0 .568 0 .965.025 1.273.025.302.071.476.138.608.144.282.374.512.656.656.132.067.306.113.608.138.308.025.705.025 1.273.025h1.6c.568 0 .965 0 1.273-.025.302-.025.476-.071.608-.138.282-.144.512-.374.656-.656.067-.132.113-.306.138-.608.025-.308.025-.705.025-1.273V9.2c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138-.308-.025-.705-.025-1.273-.025zm-4-4c-.568 0-.965 0-1.273.025-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C2.5 4.235 2.5 4.632 2.5 5.2v1.6c0 .568 0 .965.025 1.273.025.302.071.476.138.608.144.282.374.512.656.656.132.067.306.113.608.138.308.025.705.025 1.273.025h.3v-.3c0-.552 0-.996.03-1.354.03-.365.092-.685.242-.98.24-.471.623-.854 1.093-1.094.296-.15.616-.213.98-.243.36-.029.803-.029 1.355-.029h.3v-.3c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138C7.765 2.5 7.368 2.5 6.8 2.5z","clip-rule":"evenodd"},null,-1)])])}const VAe={render:BAe},HAe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function qAe(e,t){return p(),y("svg",HAe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M5.096 10.605a1 1 0 0 1 1.414 1.414l-1.377 1.377a3.87 3.87 0 0 0 5.472 5.471l1.377-1.377a1 1 0 0 1 1.414 1.414l-1.377 1.377a5.869 5.869 0 0 1-8.3-8.3z"},null,-1),c("path",{fill:"#212926",d:"M14.701 7.885a1 1 0 0 1 1.414 1.414L9.3 16.115a1 1 0 0 1-1.414-1.414z"},null,-1),c("path",{fill:"#212926",d:"M11.982 3.719a5.87 5.87 0 0 1 8.3 8.3l-1.378 1.377a1 1 0 0 1-1.414-1.415l1.377-1.376a3.87 3.87 0 0 0-5.471-5.472L12.019 6.51a1 1 0 1 1-1.414-1.414z"},null,-1)])])}const jAe={render:qAe},UAe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function zAe(e,t){return p(),y("svg",UAe,[...t[0]||(t[0]=[c("path",{fill:"#F5C658",d:"M7.559 1.595a1.08 1.08 0 0 1 .882 0c.216.097.356.271.456.419.103.15.214.351.338.577l.976 1.768c.142.257.171.3.201.33q.055.058.13.093c.042.019.096.032.39.08l2.03.337c.27.044.505.082.688.13.176.045.395.12.562.295.216.229.32.543.28.857-.033.242-.17.431-.286.57-.121.142-.291.308-.483.497L12.32 8.927c-.216.213-.251.255-.272.292a.4.4 0 0 0-.05.147c-.005.04-.003.093.042.39l.29 1.92c.038.258.073.487.083.67.01.178.005.406-.113.616-.153.272-.418.461-.72.522-.233.046-.45-.014-.62-.075-.174-.064-.386-.164-.626-.277l-1.894-.89c-.264-.124-.314-.144-.359-.152a.5.5 0 0 0-.162 0c-.045.008-.096.027-.36.152l-1.893.89c-.24.113-.452.213-.626.277-.17.061-.387.121-.
7762.075a1.07 1.07 0 0 1-.72-.522c-.118-.21-.123-.438-.113-.616.01-.183.045-.412.084-.67l.289-1.92c.045-.297.047-.35.042-.39a.4.4 0 0 0-.05-.147c-.021-.037-.056-.079-.272-.292L2.277 7.548c-.192-.189-.362-.355-.483-.498-.117-.138-.253-.327-.285-.57a1.05 1.05 0 0 1 .28-.856c.166-.175.385-.25.56-.296.183-.047.42-.085.69-.13l2.03-.335c.293-.049.348-.062.389-.081a.5.5 0 0 0 .13-.092c.03-.03.06-.074.201-.331l.976-1.768c.124-.226.235-.426.338-.577.1-.148.24-.322.456-.419"},null,-1)])])}const Mg={render:zAe},WAe={xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",fill:"none"};function GAe(e,t){return p(),y("svg",WAe,[...t[0]||(t[0]=[c("path",{fill:"#F9F9F9","fill-rule":"evenodd",d:"M3.5 11.5a9.5 9.5 0 1 1 6.086 8.868l-.182-.07-.013-.004h-.004l-.157.016-5.121.53q-.017 0-.034.003a7 7 0 0 1-.625.047c-.185.002-.52-.008-.841-.204a1.5 1.5 0 0 1-.7-1.048c-.059-.372.06-.685.132-.856.074-.172.18-.37.283-.559l1.652-3.057c.071-.133.11-.204.135-.257l.004-.008-.007-.024a11 11 0 0 0-.112-.341 9.5 9.5 0 0 1-.495-3.036M13 4a7.5 7.5 0 0 0-7.108 9.897l.024.073c.081.239.177.519.197.772.018.232.001.427-.056.652-.062.245-.19.479-.292.668l-.03.054-1.455 2.695 4.744-.49.033-.004c.12-.013.267-.028.412-.023.132.005.243.02.372.05.142.033.296.092.425.142l.04.015A7.5 7.5 0 1 0 13 4M8.5 9.5a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1m0 3.5a1 1 0 0 1 1-1h7a1 1 0 1 1 0 2h-7a1 1 0 0 1-1-1","clip-rule":"evenodd"},null,-1)])])}const YAe={render:GAe},KAe=Ls("/images/claims/arbitration_claim_detail.png"),QAe=Ls("/images/claims/invoice.png"),XAe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function ZAe(e,t){return p(),y("svg",XAe,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M7.307 1.717c.452-.13.934-.13 1.386 0 .283.082.53.225.79.413.253.183.545.431.907.737l4.433 3.75a.5.5 0 0 1-.646.765l-.677-.574V10.8c0 .551 0 .995-.03 1.354-.029.364-.092.684-.242.98a2.5 2.5 0 0 1-1.093 1.093c-.296.151-.616.214-.98.243q-.288.022-.655.027v.003h-5v-.003a10 10 0 0 1-.654-.027c-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.093c-.15-.296-.213-.616-.243-.98-.029-.358-.029-.803-.029-1.354V6.808l-.677.574a.5.5 0 0 1-.646-.764L5.61 2.867c.362-.306.654-.554.908-.737.258-.188.506-.33.789-.413M7.6 8.5c-.288 0-.474 0-.616.011a.6.6 0 0 0-.21.043.5.5 0 0 0-.22.22.6.6 0 0 0-.042.21A9 9 0 0 0 6.5 9.6v3.9h3V9.6c0-.287 0-.473-.012-.615a.6.6 0 0 0-.043-.21.5.5 0 0 0-.218-.22.6.6 0 0 0-.211-.043A9 9 0 0 0 8.4 8.5zm.816-5.822a1.5 1.5 0 0 0-.832 0c-.128.037-.27.11-.48.262-.216.157-.475.375-.848.69l-2.76 2.335Q3.5 5.982 3.5 6v4.8c0 .568 0 .965.025 1.273.025.302.071.476.138.607.144.283.374.513.656.657.132.066.306.113.608.137.162.014.35.02.573.023V9.599c0-.271 0-.505.016-.697.016-.197.051-.394.147-.583.144-.282.374-.512.656-.656.19-.096.386-.132.583-.148.192-.015.426-.015.698-.015h.8c.272 0 .506 0 .698.015.197.016.394.052.583.148.282.144.512.374.656.656.096.189.131.386.147.583.016.192.016.426.016.697v3.898c.224-.003.41-.01.573-.023.302-.024.476-.07.608-.137.282-.144.512-.374.656-.657.067-.131.113-.305.138-.607.025-.308.025-.705.025-1.274V6l.003-.034-2.759-2.334a16 16 0 0 0-.847-.69c-.211-.154-.353-.226-.481-.263","clip-rule":"evenodd"},null,-1)])])}const JAe={render:ZAe},eIe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function tIe(e,t){return p(),y("svg",eIe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M7.674 2.607c1.561-1.477 4.082-1.477 5.643 0a3.69 3.69 0 0 1 0 5.415L7.3 13.716c-1.105 1.045-2.886 1.045-3.991 0a2.626 2.626 0 0 1 0-3.852l5.78-5.47a1.717 1.717 0 0 1 2.34 0 1.564 1.564 0 0 1 0 2.29l-5.074 4.8a.5.5 0 0 1-.687-.727l5.074-4.8a.564.564 0 0 0 0-.837.717.717 0 0 0-.965 0l-5.782 5.47a1.63 1.63 0 0 0 0 2.399c.72.68 1.898.68 2.617 0l6.018-5.693c1.16-1.098 1.16-2.865 0-3.962-1.176-1.112-3.093-1.112-4.269 0L2.344 9.027a.5.5 0 0 1-.688-.727z"},null,-1)])])}const sIe={render:tIe},nIe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function rIe(e,t){return p(),y("svg",nIe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M10.5 8.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M9.169 1.22c.42.047.8.27 1.048.612.174.241.232.53.258.813.026.286.025.65.025 1.09V4.5h.3c.552 0 .996 0 1.354.029.365.03.685.092.98.243.471.24.854.623 1.094 1.093.15.296.213.616.243.98.029.359.029.803.029 1.355v2.6c0 .551 0 .995-.03 1.354-.029.364-.092.684-.242.98-.24.47-.623.854-1.093 1.093-.296.151-.616.214-.98.243-.36.03-.803.03-1.355.03H5.2c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.093c-.15-.296-.213-.616-.243-.98-.029-.359-.029-.803-.029-1.354V7.37c0-.646-.006-1.083.125-1.48.11-.337.291-.647.53-.908.283-.31.667-.519 1.23-.836L7.37 1.905c.383-.216.701-.394.963-.512.26-.116.54-.207.836-.174M5.2 5.5c-.568 0-.965 0-1.273.025-.302.025-.476.07-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.607C2.5 7.235 2.5 7.632 2.5 8.2v2.6c0 .568 0 .964.025 1.273.025.302.071.476.138.607.144.283.374.513.656.657.132.067.306.113.608.137.308.025.705.026 1.273.026h5.6c.568 0 .965 0 1.273-.026.302-.024.476-.07.608-.137.282-.144.512-.374.656-.657.067-.131.113-.305.138-.607.025-.309.025-.705.025-1.274V8.2c0-.567 0-.964-.025-1.273-.025-.301-.071-.475-.138-.607a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138-.308-.025-.705-.025-1.273-.025zm3.857-3.287c-.025-.003-.103-.002-.315.092-.21.094-.481.247-.882.472L4.794 4.502 5.2 4.5h4.3v-.765c0-.459 0-.769-.021-.998-.022-.231-.06-.3-.074-.32a.5.5 0 0 0-.348-.204","clip-rule":"evenodd"},null,-1)])])}const iIe={render:rIe},oIe={class:"flex h-full flex-col"},aIe={key:0,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},lIe={key:1,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},cIe={class:"flex flex-wrap items-center justify-center gap-2"},uIe=["src"],dIe={class:"text-16-bold leading-tight"},fIe={key:1,class:"mt-6 rounded-[12px] border border-grey-80 bg-white p-4"},pIe={class:"flex items-start gap-3"},hIe={class:"min-w-0 flex-1"},mIe={class:"truncate text-16-bold text-black"},gIe={class:"mt-1 text-13 text-grey-40"},yIe=["src"],_Ie={key:0,class:"mt-4 flex flex-col gap-2"},vIe=["onClick"],bIe=["src"],xIe={class:"ml-3 min-w-0 flex-1"},kIe={class:"text-16 text-black"},wIe={key:0,class:"mt-1 text-13 text-grey-40"},CIe={class:"min-w-0 flex-1"},$Ie={class:"flex items-center gap-1"},SIe={class:"text-16 text-black"},AIe={class:"mt-2 text-13 text-grey-40"},IIe={class:"mt-4 flex items-center gap-2"},TIe={class:"text-13 text-grey-40"},PIe={class:"min-w-0 flex-1"},DIe={class:"text-16 text-black"},EIe={class:"mt-2 text-13 text-grey-40"},LIe={class:"min-w-0 flex-1"},RIe={class:"text-16 text-black"},MIe={class:"mt-2 text-13 text-grey-40"},OIe={key:5,class:"mt-6 w-full rounded-[12px] bg-grey-90 p-4"},FIe={class:"flex items-start gap-3"},NIe={class:"min-w-0 flex-1"},BIe={class:"flex flex-wrap items-center gap-1"},VIe={class:"text-16 text-black"},HIe=["src"],qIe={class:"mt-1 text-13 text-grey-40"},jIe=["src"],UIe={key:0,class:"mt-4 overflow-hidden rounded-[12px] border border-grey-80 bg-white"},zIe={class:"flex min-h-12 items-stretch"},WIe={class:"min-w-0 flex-1 px-4 py-3"},GIe={class:"break-all text-13 text-grey-40"},YIe=["aria-label"],KIe={class:"text-13 text-grey-40"},QIe={class:"text-13 text-grey-40"},XIe={class:"min-w-0 truncate"},ZIe={key:2,class:"mt-6 rounded-[12px] bg-grey-90 p-4"},JIe={class:"flex items-start justify-between gap-3"},eTe={class:"min-w-0"},tTe={class:"text-16-bold text-black"},sTe={key:0,class:"mt-1 text-13 text-grey-40"},nTe={key:0,class:"shrink-0 text-16 text-black"},rTe={key:0,class:"mt-3 text-13 text-red-50"},iTe={key:1,class:"mt-3 text-13 text-grey-40"},oTe={key:2,class:"mt-3 text-13 text-grey-40"},aTe={key:3,class:"mt-3 text-13 text-grey-40"},lTe={key:4,class:"mt-4 text-16-bold text-black"},cTe={key:5,class:"mt-3 flex flex-wrap gap-2"},uTe={class:"min-w-0 flex-1"},dTe={class:"truncate text-16 text-black"},fTe=["disabled","onClick"],pTe=["src","alt"],hTe={class:"ml-3 min-w-0 flex-1"},mTe={class:"truncate text-16 text-black"},gTe={class:"mt-1 truncate text-13 text-grey-40"},yTe=["aria-label"],_Te={key:1,class:"ml-3 shrink-0 rounded-full bg-white px-2 py-1 text-13 text-grey-40"},vTe={key:7,class:"mt-6 flex flex-col gap-4"},bTe={key:0,class:"flex gap-4"},xTe={key:1,class:"rounded-[16px] bg-grey-90 p-4"},kTe={class:"text-16 text-black"},wTe={key:2,class:"flex gap-3 px-6 pb-6"},CTe={key:3,class:"flex flex-col gap-3 px-6 pb-6"},$Te={key:0,class:"mt-6 flex min-h-[4px] w-full flex-col items-start gap-4 roun
77ded-[16px] bg-purple-50 p-4"},STe={class:"flex flex-col items-start gap-1"},ATe={class:"text-16-bold text-white"},ITe={key:0,class:"text-13 text-white opacity-80"},TTe={class:"flex flex-wrap items-center gap-3"},PTe={key:1,class:"relative"},DTe={key:0,class:"absolute -right-0.5 -top-0.5 z-0 h-3 w-3 rounded-full border-2 border-white bg-red-50","aria-hidden":"true"},ETe=G({__name:"ClaimInfoPanel",emits:["go","close"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),{public:{apiBaseUrl:r}}=kn(),i=t,o=uf(),l=df(),u=of(),d=af(),f=rf();function h(){o.isSuccess=!0,o.setClaimContext(m.selectedClaimId??v.claimId,m.selectedPremisesId??v.premisesId),i("go",{to:"claim-rate",replace:!1})}function g(){o.isSuccess=!1,o.setClaimContext(m.selectedClaimId??v.claimId,m.selectedPremisesId??v.premisesId),i("go",{to:"claim-rate",replace:!1})}const m=ri(),_=ec(),v=ff(),k=kr(),x=st(),C=Ne(),w=Oe(),$=Jl(),S=Bu(),I=X(!1),P=X(""),L=A(()=>{const ke=m.claim?.arbitrationInfo;return ke?{title:ke.title||s("drawer.claims.info.defaultTitle"),subtitle:ke.subtitle||s("drawer.claims.info.defaultSubtitle"),dateText:ke.dateText||s("drawer.claims.info.defaultDateText"),backgroundColor:ke.backgroundColor||"#F6F4EF"}:null}),D=A(()=>{if(L.value)return{backgroundColor:L.value.backgroundColor}}),R=A(()=>{const ke=m.claim?.claimInfoCard;return ke&&(ke.title.trim().length>0||ke.subtitle.trim().length>0||ke.backgroundColor.trim().length>0)?ke:null}),F=A(()=>{const ke=m.claim?.incidentInfo;return ke||null}),N=A(()=>{if(F.value)return{backgroundColor:F.value.backgroundColor||"#F6F4EF"}}),z=A(()=>{if(R.value)return{backgroundColor:R.value.backgroundColor||"#F6F4EF"}}),me=A(()=>!!m.claim?.waterDelivery),ge=A(()=>m.claim?.waterDelivery??null),fe=A(()=>!!(ge.value?.hasInvoice&&ge.value.id>0)),te=A(()=>{if(me.value)return null;const ke=m.claim?.invoices??[];return ke[ke.length-1]??null}),V=A(()=>fe.value?ge.value?.isPaid===!0:te.value?.isPaid===!0),pe=A(()=>{const ke=m.claim?.qrInfo;return ke||null}),ye=A(()=>ps(pe.value?.iconCheck)),ne=A(()=>ps(pe.value?.passImg)),ve=A(()=>{const ke=m.claim;return ke?ke.amount.length>0&&!_.isPay:!1}),J=A(()=>m.claim?.markers[0]??null),he=A(()=>{const ke=J.value?.iconUrl;return ke?Ht(ws(ke)):void 0}),Ee=A(()=>({color:J.value?.textColor||"#111111",backgroundColor:J.value?.backgroundColor||"#F6F6FA"})),He=A(()=>{const ke=m.claim?.additionalWorksList;return ke&&(ke.title.trim().length>0||ke.subtitle.trim().length>0||ke.iconUrl.trim().length>0||ke.lists.length>0)?ke:null}),de=A(()=>Ht(He.value?.iconUrl)),Me=A(()=>{const ke=m.claim;return ke?ke.needPayment&&!me.value:!1}),De=A(()=>qt(m.claim?.createdAt??"")),ze=A(()=>m.claim?.title.trim()??""),Ue=A(()=>m.claim?.attachments.length??0),ut=A(()=>s("drawerClaimInfo.attachments",{count:Ue.value})),H=A(()=>{const ke=m.claim;if(!ke)return[];const Fe=[];return ke.address.trim().length>0&&Fe.push({key:"address",label:ke.address,icon:JAe}),Ue.value>0&&Fe.push({key:"attachments",label:ut.value,icon:sIe,isButton:!0,onClick:ss}),ke.amount.trim().length>0&&Fe.push({key:"amount",label:ke.amount,icon:iIe}),Fe}),Y=A(()=>m.claim?.resultComment?.trim()??""),W=A(()=>Y.value.length>0),_e=A(()=>{const ke=m.claim;return ke?ke.resultFilesAfter.length>0||ke.resultFilesBefore.length>0:!1}),ae=A(()=>!!(m.claim?.isShowProgressSteps||_e.value||W.value)),M=X(null),q=X(!1),re=X(!1),ce=A(()=>{if(!q.value)return{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}});let ie=null;function $e(){const ke=M.value;if(!ke||!W.value){re.value=!1;return}const Fe=ke.style,ct=Fe.display,at=Fe.overflow,Mt=Fe.webkitBoxOrient,ys=Fe.webkitLineClamp;Fe.display="-webkit-box",Fe.overflow="hidden",Fe.webkitBoxOrient="vertical",Fe.webkitLineClamp="2",re.value=ke.scrollHeight>ke.clientHeight+1,Fe.display=ct,Fe.overflow=at,Fe.webkitBoxOrient=Mt,Fe.webkitLineClamp=ys}function se(){ie?.disconnect(),ie=null,!(!M.value||typeof ResizeObserver>"u")&&(ie=new ResizeObserver(()=>{$e()}),ie.observe(M.value))}function xe(){q.value=!q.value}function Ve(){const ke=lf();ke.steps=m.claim?.steps??[],i("go",{to:"claim-progress",replace:!1})}function Ze(){m.claim&&(l.updateClaim(m.claim),i("go",{to:"claim-result",replace:!1}))}function Je(){const ke=x.query.premises_id,Fe=Array.isArray(ke)?ke[0]:ke;i("go",{to:"claim-chat",replace:!1,query:{premises_id:typeof Fe=="string"?Fe:null}})}function dt(){fe.value?It():ft()}function ft(){const ke=Ht(te.value?.url);ke&&typeof window<"u"&&window.open(ke,"_blank","noopener,noreferrer")}function It(){const ke=ge.value;if(!ke?.hasInvoice||ke.id<=0||typeof window>"u")return;const Fe=ue().waterDeliveryInvoiceUrl(ke.id);window.open(Fe,"_blank","noopener,noreferrer")}function Wt(ke){const Fe=m.claim,ct=Fe?.waterDelivery,at=typeof x.query.premises_id=="string"?x.query.premises_id:m.selectedPremisesId;!Fe||!ct?.needsConfirmation||ct.id<=0||i("go",{to:"water-delivery-receipt",replace:!1,query:{id:Fe.id,premises_id:at||null,water_delivery_id:ct.id,water_receipt_from:"claim",water_receipt_mode:ke}})}function ss(){if(Ue.value===0)return;const ke=x.query.premises_id,Fe=Array.isArray(ke)?ke[0]:ke;i("go",{to:"claim-attachments",replace:!1,query:{premises_id:typeof Fe=="string"?Fe:null}})}function Ps(){i("go",{to:"claim-additional-works-help",replace:!1})}function Ms(ke){if(!ke)return;const Fe=x.query.premises_id,ct=Array.isArray(Fe)?Fe[0]:Fe,at=m.claim?.id??m.selectedClaimId??v.claimId??"",Mt=typeof ct=="string"?ct:"",ys=m.selectedPremisesId||v.premisesId||Mt||w.residence?.premisesId||"";f.setContext(at,ke,ys),i("go",{to:"claim-additional-works",replace:!1,query:{id:at||null,list_id:ke,premises_id:ys||null}})}function Gt(ke){if(!ke)return;const Fe=x.query.premises_id,ct=Array.isArray(Fe)?Fe[0]:Fe;i("go",{to:"executor-info",query:{executor_id:ke,premises_id:typeof ct=="string"?ct:null}})}function Le(){const ke=x.query.premises_id,Fe=Array.isArray(ke)?ke[0]:ke,ct=m.claim?.id??m.selectedClaimId??"",at=typeof Fe=="string"?Fe:"",Mt=m.selectedPremisesId||at||w.residence?.premisesId||"";d.setContext(ct,Mt),i("go",{to:"claim-cancel",replace:!1,query:{id:ct||null,premises_id:Mt||null}})}async function ee(){const ke=x.query.premises_id,Fe=Array.isArray(ke)?ke[0]:ke,ct=m.selectedClaimId,at=typeof Fe=="string"?Fe:"",Mt=m.selectedPremisesId||v.premisesId||at||w.residence?.premisesId||"";if(!ct||!Mt||I.value){console.log(m.claim?.id),console.log(m.selectedClaimId),console.log(v.claimId);return}I.value=!0;const Bs=await ue().payClaim(ct,Mt);if(I.value=!1,Bs.ok){if(_.isOpen){_.completeCurrent();return}await Promise.allSettled([m.loadClaim(),$.loadBadges(),S.load()]);return}if(Bs.error.code===1){if(k.consumeClaimRetryPending(),k.isFromClaims=!0,_.isOpen){v.closeClaimFlow(),v.goToCardAdd();return}i("go",{to:"card-add",replace:!1});return}n(Bs.error.message??s("claimsOverlay.actionError"))}function Pe(){u.updateArbitrationInfo(m.claim?.arbitrationInfo??null);const ke=x.query.premises_id,Fe=Array.isArray(ke)?ke[0]:ke;i("go",{to:"claim-arbitration",replace:!1,query:{premises_id:typeof Fe=="string"?Fe:null}})}async function Ge(){const ke=pe.value?.shareText.trim()??"";if(!ke)return;const Fe=await Wl(ke);n(s(Fe?"drawerClaimInfo.linkCopied":"drawerClaimInfo.linkCopyError"),!1)}async function _t(){const ke=pe.value?.shareText.trim()??"";if(ke){if(typeof navigator<"u"&&typeof navigator.share=="function")try{await navigator.share({text:ke});return}catch(Fe){if(Fe instanceof DOMException&&Fe.name==="AbortError")return}await Ge()}}function qt(ke){if(!ke)return"";const Fe=new Date(ke);if(Number.isNaN(Fe.getTime()))return"";const ct=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"long"}).format(Fe),at=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(Fe);return`${ct}, ${at}`}function Ht(ke){const Fe=ke?.trim();if(Fe){if(Fe.startsWith("blob:")||Fe.startsWith("data:")||/^https?:\/\//i.test(Fe))return Fn(Fe);try{const ct=r.endsWith("/")?r:`${r}/`;return Fn(new URL(Fe,ct).toString())}catch{return Fn(Fe)}}}function ps(ke){const Fe=ke?.trim();if(Fe)return Ht(ws(Fe))}function ws(ke){const Fe=ke.indexOf("#"),ct=Fe>=0?ke.slice(Fe):"",at=Fe>=0?ke.slice(0,Fe):ke,Mt=at.indexOf("?"),ys=Mt>=0?at.slice(0,Mt):at,Bs=Mt>=0?at.slice(Mt):"";return`${ys}_x3.png${Bs}${ct}`}function gs(ke){return{backgroundColor:ke.backgroundColor||"#F7F8FC"}}function xs(ke){return Ht(ke?ws(ke):"")}function Zt(ke){return ke.count<=0?"":s("drawerClaimAdditionalWorks.listSummary",{count:ke.count,word:Ns(ke.count),amount:en(ke.amount)})}function Ns(ke){const Fe=ke%10,ct=ke%100;return Fe===1&&ct!==11?s("drawerClaimAdditionalWorks.workOne"):Fe>=2&&Fe<=4&&(ct<12||ct>14)?s("drawerClaimAdditionalWorks.workFew"):s("drawerClaimAdditionalWorks.workMany")}function en(ke){return`${new Intl.NumberFormat("ru-RU").format(ke/100)} â½`}function tn(ke){if(ke)return Fn(ke)}function Os(ke){return ke>0}function On(ke){return ke.toFixed(1)}function wr(ke){const Fe=ke.target;if(!(Fe instanceof HTMLImageElement))return;const ct="/images/avatar_placeholder.png";Fe.src.endsWith(ct)||(Fe.src=ct)}function Fn(ke){const Fe=C.sessionToken;if(!Fe||ke.startsWith("blob:")||ke.startsWith("data:"))return ke;const ct=ke.indexOf("#"),at=ct>=0?ke.slice(ct):"",Mt=ct>=0?ke.slice(0,ct):ke,ys=Mt.indexOf("?"),Bs=ys>=0?Mt.slice(0,ys):Mt,Nn=ys>=0?Mt.slice(ys+1):"",Bn=new URLSearchParams(Nn);Bn.set("btlrsid",Fe);const hn=Bn.toString();return`${`${Bs}?${hn}`}${at}`}const Bi=A(()=>{const ke=x.query.id,Fe=Array.isArray(ke)?ke[0]:ke,ct=x.query.premises_id,at=Array.isArray(ct)?ct[0]:ct;return{claimId:m.selectedClaimId||v.claimId||(typeof Fe=="string"?Fe:""),premisesId:m.selectedPremisesId||v.premisesId||(typeof at=="string"?at:"")||w.residence?.premisesId||""}});return Se(()=>[Bi.value.claimId,Bi.value.premisesId],([ke,Fe])=>
77{if(!ke||!Fe)return;const ct=`${ke}:${Fe}`;if(P.value===ct)return;P.value=ct,ue().markClaimStageViewed(ke,Fe)},{immediate:!0}),je(()=>{const ke=x.query.id,Fe=Array.isArray(ke)?ke[0]:ke,ct=x.query.premises_id,at=Array.isArray(ct)?ct[0]:ct;m.setClaimContext(typeof Fe=="string"?Fe:m.selectedClaimId,typeof at=="string"?at:m.selectedPremisesId)}),Se(()=>w.userInfo,()=>{m.loadClaim()}),Se(()=>k.claimRetryPending,async ke=>{!ke||_.isOpen||(k.consumeClaimRetryPending(),await lt(),await ee())},{immediate:!0}),Se(Y,async()=>{q.value=!1,await lt(),se(),$e()},{immediate:!0,flush:"post"}),Tt(()=>{ie?.disconnect()}),(ke,Fe)=>{const ct=Lu,at=Rs,Mt=si,ys=FAe,Bs=VAe,Nn=jAe,Bn=Mg,hn=Ae("PrimaryButton"),Vi=J0,Ao=YAe,Vn=h7;return p(),y("div",oIe,[a(m).isLoading?(p(),y("div",aIe,[...Fe[2]||(Fe[2]=[ls('<div class="flex flex-col gap-6 animate-pulse"><div class="flex justify-center mt-2"><div class="h-16 w-16 rounded-full bg-grey-80"></div></div><div class="mx-auto h-8 w-3/5 rounded bg-grey-80"></div><div class="rounded-lg bg-grey-90 px-4 py-5"><div class="h-4 w-1/3 rounded bg-grey-80"></div><div class="mt-4 grid grid-cols-2 gap-3"><div class="h-10 rounded-full bg-grey-80"></div><div class="h-10 rounded-full bg-grey-80"></div></div></div><div class="space-y-4 rounded border border-grey-80 px-4 py-6"><div class="h-4 w-2/5 rounded bg-grey-80"></div><div class="h-4 w-1/3 rounded bg-grey-80"></div><div class="h-5 w-3/5 rounded bg-grey-80"></div><div class="h-4 w-full rounded bg-grey-80"></div><div class="h-4 w-full rounded bg-grey-80"></div></div><div class="flex items-center gap-3"><div class="h-12 w-12 rounded-full bg-grey-80"></div><div class="flex-1 space-y-3"><div class="h-5 w-1/2 rounded bg-grey-80"></div><div class="h-4 w-1/3 rounded bg-grey-80"></div></div></div><div class="flex gap-4"><div class="h-12 flex-1 rounded-3xl bg-grey-80"></div><div class="h-12 flex-1 rounded-3xl bg-grey-80"></div></div></div>',1)])])):a(m).claim!=null?(p(),y("div",lIe,[c("h1",{class:oe(["text-24-bold",a(me)?"mb-6":"mb-4"])},b(a(s)("drawerClaimInfo.title")),3),a(J)?(p(),y("div",{key:0,class:oe(["flex items-center justify-center rounded-[12px] px-4 text-center",a(me)?"min-h-12 py-3":"min-h-[64px] py-3"]),style:kt(a(Ee))},[c("div",cIe,[a(he)?(p(),y("img",{key:0,src:a(he),class:"h-6 w-6 shrink-0 object-contain",alt:""},null,8,uIe)):E("",!0),c("span",dIe,b(a(J).text),1)])],6)):E("",!0),a(He)?(p(),y("div",fIe,[c("div",pIe,[c("div",hIe,[c("button",{type:"button",class:"inline-flex max-w-full items-center gap-1 text-left transition-opacity xl:hover:opacity-70",onClick:Ps},[c("span",mIe,b(a(He).title),1),T(ct,{class:"h-4 w-4 shrink-0 [&>path]:fill-grey-40"})]),c("p",gIe,b(a(He).subtitle),1)]),a(de)?(p(),y("img",{key:0,src:a(de),class:"h-11 w-11 shrink-0 object-contain",alt:""},null,8,yIe)):E("",!0)]),a(He).lists.length>0?(p(),y("div",_Ie,[(p(!0),y(j,null,le(a(He).lists,Dt=>(p(),y("button",{key:Dt.listId,type:"button",class:"flex w-full items-start rounded-[12px] p-4 text-left transition-opacity xl:hover:opacity-80",style:kt(gs(Dt)),onClick:sn=>Ms(Dt.listId)},[xs(Dt.iconUrl)?(p(),y("img",{key:0,src:xs(Dt.iconUrl),class:"h-6 w-6 shrink-0 object-contain",alt:""},null,8,bIe)):E("",!0),c("div",xIe,[c("div",kIe,b(Dt.title),1),Zt(Dt)?(p(),y("p",wIe,b(Zt(Dt)),1)):E("",!0)]),T(at,{class:"ml-3 shrink-0 [&>path]:fill-grey-40"})],12,vIe))),128))])):E("",!0)])):E("",!0),a(L)?(p(),y("button",{key:2,type:"button",class:"mt-6 flex w-full items-start gap-4 roun
77ded-lg px-4 py-4 text-left",style:kt(a(D)),onClick:Pe},[c("div",CIe,[c("div",$Ie,[c("span",SIe,b(a(L).title),1),T(ct,{class:"h-4 w-4 shrink-0"})]),c("p",AIe,b(a(L).subtitle),1),c("div",IIe,[T(Mt,{class:"h-4 w-4 shrink-0 [&>path]:fill-grey-40"}),c("span",TIe,b(a(L).dateText),1)])]),Fe[3]||(Fe[3]=c("img",{src:KAe,class:"h-11 w-11 shrink-0",alt:""},null,-1))],4)):E("",!0),a(F)?(p(),y("div",{key:3,class:"mt-6 w-full rounded-lg px-4 py-4 text-left",style:kt(a(N))},[c("div",PIe,[c("div",DIe,b(a(F).title),1),c("p",EIe,b(a(F).subtitle),1)])],4)):E("",!0),a(R)?(p(),y("div",{key:4,class:"mt-6 w-full rounded-lg px-4 py-4 text-left",style:kt(a(z))},[c("div",LIe,[c("div",RIe,b(a(R).title),1),c("p",MIe,b(a(R).subtitle),1)])],4)):E("",!0),a(pe)?(p(),y("div",OIe,[c("div",FIe,[c("div",NIe,[c("div",BIe,[c("span",VIe,b(a(pe).title),1),a(ye)?(p(),y("img",{key:0,src:a(ye),class:"h-6 w-6 shrink-0 object-contain",alt:""},null,8,HIe)):E("",!0)]),c("p",qIe,b(a(pe).subTitle),1)]),a(pe).iconCheck&&a(ne)?(p(),y("img",{key:0,src:a(ne),class:"h-[60px] w-10 shrink-0 object-contain",alt:""},null,8,jIe)):(p(),K(ys,{key:1,class:"h-[60px] w-[60px] shrink-0"}))]),a(pe).qrLink?(p(),y("div",UIe,[c("div",zIe,[c("div",WIe,[c("p",GIe,b(a(pe).qrLink),1)]),c("button",{type:"button",class:"flex min-h-12 w-12 shrink-0 items-center justify-center border-l border-grey-80 transition-colors duration-200 xl:hover:bg-grey-90","aria-label":a(s)("drawerClaimInfo.copyLink"),onClick:Ge},[T(Bs)],8,YIe)])])):E("",!0),a(pe).qrLink?(p(),y("button",{key:1,type:"button",class:"mt-4 flex h-12 w-full items-center justify-center gap-2 rounded-[12px] bg-white px-4 text-16 text-black transition-colors duration-200 xl:hover:bg-grey-80",onClick:_t},[T(Nn),c("span",null,b(a(s)("drawerClaimInfo.shareLink")),1)])):E("",!0)])):E("",!0),c("div",{class:oe(["mt-6",a(me)?"":"py-6"])},[a(De)||a(ze)?(p(),y("div",{key:0,class:oe(["flex items-center justify-between gap-4",a(me)?"mb-2":"mb-4"])},[c("span",KIe,b(a(De)),1),c("span",QIe,b(a(ze)),1)],2)):E("",!0),c("h3",{class:oe(["text-16-bold text-black",a(me)?"mb-1":"mb-2"])},b(a(m).claim.workTypeName),3),c("p",{class:oe(a(me)?"text-13 text-black":"text-13 text-grey-40")},b(a(m).claim.text),3),a(H).length>0?(p(),y("div",{key:1,class:oe(["mt-6 flex flex-col items-start",a(me)?"gap-2":"gap-3"])},[(p(!0),y(j,null,le(a(H),Dt=>(p(),K(Jn(Dt.isButton?"button":"div"),{key:Dt.key,type:"button",class:oe(["inline-flex max-w-full items-center gap-2 rounded-full bg-grey-90 px-3 text-left text-13 text-black",[a(me)?"min-h-8 py-2":"min-h-12 py-2",Dt.isButton?a(me)?"transition-colors auth:hover:bg-grey-80":"transition-colors xl:hover:bg-grey-80":""]]),onClick:Dt.onClick},{default:Xe(()=>[(p(),K(Jn(Dt.icon),{class:"shrink-0"})),c("span",XIe,b(Dt.label),1)]),_:2},1032,["class","onClick"]))),128))],2)):E("",!0),a(ge)&&(a(ge).needsConfirmation||a(ge).problemReported||a(ge).isConfirmed)?(p(),y("section",ZIe,[c("div",JIe,[c("div",eTe,[c("div",tTe,b(a(s)("drawerClaimInfo.waterDeliveryTitle")),1),a(ge).dateText?(p(),y("p",sTe,b(a(ge).dateText),1)):E("",!0)]),a(ge).amountText?(p(),y("span",nTe,b(a(ge).amountText),1)):E("",!0)]),a(ge).isPaymentOverdue&&a(ge).paymentRequiredText?(p(),y("p",rTe,b(a(ge).paymentRequiredText),1)):a(ge).statusTitle?(p(),y("p",iTe,b(a(ge).statusTitle),1)):E("",!0),a(ge).isConfirmed&&(a(ge).bottlesReceived!==void 0||a(ge).emptyBottlesReturned!==void 0)?(p(),y("p",oTe,b(a(s)("drawerClaimInfo.waterDeliveryReceived",{received:a(ge).bottlesReceived??"â",returned:a(ge).emptyBottlesReturned??"â"})),1)):E("",!0),a(ge).problemReported?(p(),y("p",aTe,[Qe(b(a(s)("drawerClaimInfo.waterDeliveryProblem")),1),a(ge).problemComment?(p(),y(j,{key:0},[Qe(": "+b(a(ge).problemComment),1)],64)):E("",!0)])):E("",!0),a(ge).needsConfirmation?(p(),y("p",lTe,b(a(s)("drawerClaimInfo.waterDeliveryConfirmTitle")),1)):E("",!0),a(ge).needsConfirmation?(p(),y("div",cTe,[c("button",{type:"button",class:"rounded-full bg-paleLime-primary px-3 py-2 text-13 text-white",onClick:Fe[0]||(Fe[0]=Dt=>Wt("confirm"))},b(a(s)("drawerClaimInfo.waterDeliveryConfirmYes")),1),c("button",{type:"button",class:"rounded-full border border-grey-60 px-3 py-2 text-13 text-black",onClick:Fe[1]||(Fe[1]=Dt=>Wt("problem"))},b(a(s)("drawerClaimInfo.waterDeliveryConfirmNo")),1)])):E("",!0)])):E("",!0),a(te)||a(fe)?(p(),y("button",{key:3,type:"button",class:"mt-6 flex min-h-[76px] w-full items-center gap-4 roun
77ded-[12px] bg-grey-90 p-4 text-left transition-opacity auth:hover:opacity-80",onClick:dt},[Fe[4]||(Fe[4]=c("img",{src:QAe,class:"h-11 w-11 shrink-0 object-cover",alt:""},null,-1)),c("div",uTe,[c("div",dTe,b(a(s)("drawerClaimInfo.invoiceTitle")),1),c("p",{class:oe(["mt-1 truncate text-13",a(V)?"text-emerald-primary":"text-grey-40"])},b(a(V)?a(s)("drawerClaimInfo.invoicePaid"):a(s)("drawerClaimInfo.invoiceNotPaid")),3)]),T(at,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])):E("",!0)],2),a(m).claim.executors.length>0?(p(),y("div",{key:6,class:oe(["mb-6 flex flex-col gap-2",a(te)||a(fe)?a(me)?"mt-2":"-mt-4":"mt-6"])},[(p(!0),y(j,null,le(a(m).claim.executors,(Dt,sn)=>(p(),y("button",{key:Dt.id||sn,type:"button",class:oe(["flex min-h-[56px] w-full items-center rounded-[10px] bg-grey-90 px-4 py-3 text-left transition-colors xl:hover:bg-grey-80",{"cursor-default xl:hover:bg-grey-90":!Dt.id}]),disabled:!Dt.id,onClick:ii=>Gt(Dt.id)},[c("img",{src:tn(Dt.imageUrl)||"/images/avatar_placeholder.png",alt:Dt.name,class:"h-[44px] w-[44px] shrink-0 rounded-full object-cover",draggable:"false",onError:wr},null,40,pTe),c("div",hTe,[c("h2",mTe,b(Dt.name),1),c("p",gTe,b(Dt.profession),1)]),Os(Dt.rating)?(p(),y("div",{key:0,class:"ml-3 flex shrink-0 items-center gap-1 rounded-full bg-white px-2 py-1 text-13","aria-label":a(s)("maintenanceAndRepair.executorRating",{rating:On(Dt.rating)})},[T(Bn,{class:"shrink-0","aria-hidden":"true"}),c("span",null,b(On(Dt.rating)),1)],8,yTe)):(p(),y("div",_Te,b(a(s)("maintenanceAndRepair.noRating")),1))],10,fTe))),128))],2)):E("",!0),a(ae)?(p(),y("div",vTe,[a(m).claim.isShowProgressSteps||a(_e)?(p(),y("div",bTe,[a(m).claim.isShowProgressSteps?(p(),K(hn,{key:0,variant:"secondary",label:a(s)("drawerClaimInfo.progress"),onClick:Ve},null,8,["label"])):E("",!0),a(_e)?(p(),K(hn,{key:1,variant:"secondary",label:a(s)("drawerClaimInfo.materials"),onClick:Ze},null,8,["label"])):E("",!0)])):E("",!0),a(W)?(p(),y("div",xTe,[c("div",kTe,b(a(s)("drawerClaimResult.title")),1),c("div",{ref_key:"resultCommentTextRef",ref:M,class:"mt-4 whitespace-pre-line break-words text-13 text-grey-40",style:kt(a(ce))},b(a(Y)),5),a(re)?(p(),y("button",{key:0,type:"button",class:"mt-2 inline-flex items-center gap-1 text-13 text-paleLime-primary",onClick:xe},[c("span",null,b(a(q)?a(s)("drawerClaimInfo.hide"):a(s)("drawerClaimInfo.showFull")),1),T(Vi,{class:oe(["h-4 w-4 shrink-0 transition-transform duration-200",{"rotate-180":a(q)}])},null,8,["class"])])):E("",!0)])):E("",!0)])):E("",!0)])):E("",!0),a(m).isLoading?(p(),y("div",wTe,[...Fe[5]||(Fe[5]=[c("div",{class:"h-12 w-full rounded-3xl bg-grey-80 animate-pulse"},null,-1)])])):a(m).claim!=null&&(a(m).claim.messagesAllowed||a(Me)||a(m).claim.canBeCanceled||a(me))?(p(),y("div",CTe,[a(m).claim!=null&&a(m).claim.needAcceptWork&&!a(me)?(p(),y("div",$Te,[c("div",STe,[c("span",ATe,b(a(s)("drawerClaimInfo.acceptWork")),1),a(ve)?(p(),y("span",ITe,b(a(s)("drawerClaimInfo.paymentAutoCharge")),1)):E("",!0)]),c("div",TTe,[c("button",{type:"button",class:"inline-flex items-center justify-center rounded-full bg-paleLime-primary px-3 py-2 text-13 text-white transition-colors duration-200 xl:hover:bg-paleLime-40",onClick:h},b(a(s)("drawerClaimInfo.acceptYes")),1),c("button",{type:"button",class:"inline-flex items-center justify-center rounded-full border border-transparent-white16 bg-transparent px-3 py-2 text-13 text-white transition-colors duration-200 xl:hover:border-white",onClick:g},b(a(s)("drawerClaimInfo.acceptNo")),1)])])):E("",!0),a(m).claim.messagesAllowed?(p(),y("div",PTe,[T(hn,{class:"w-full",label:a(s)("drawerClaimChat.title"),onClick:Je},{icon:Xe(()=>[T(Ao,{class:"shrink-0"})]),_:1},8,["label"]),a(m).claim.hasUnreadMessages?(p(),y("span",DTe)):E("",!0)])):E("",!0),a(Me)?(p(),K(hn,{key:2,class:"w-full",label:a(s)("pay"),loading:a(I),onClick:ee},{icon:Xe(()=>[T(Vn,{class:"shrink-0"})]),_:1},8,["label","loading"])):E("",!0),a(m).claim.canBeCanceled?(p(),K(hn,{key:3,variant:"secondary",class:"w-full",label:a(s)("drawerClaimInfo.cancelClaim"),onClick:Le},null,8,["label"])):E("",!0)])):E("",!0)])}}}),Q9=Object.assign(ETe,{__name:"ClaimInfoPanel"}),LTe={class:"flex h-full flex-col"},RTe={class:"px-6"},MTe={class:"text-24-bold text-left"},OTe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},FTe={key:0,class:"mt-6 space-y-4"},NTe={key:0,class:"mt-6 text-center text-13 text-grey-40"},BTe={key:1,class:"mt-6 space-y-6"},VTe=["onClick"],HTe={key:0,class:"mb-4 flex flex-wrap items-center gap-2"},qTe=["src"],jTe={class:"leading-none"},UTe={key:1,class:"absolute right-0 top-0 h-1.5 w-1.5 rounded-full bg-red-50"},zTe={class:"mt-2 truncate text-16 text-black"},WTe={class:"mt-2 flex items-center justify-between text-13 text-grey-40"},GTe={key:0,class:"flex items-center gap-2"},YTe=G({__name:"ClaimListPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=h9(),i=Ne(),o=Oe(),{isAuthorized:l}=ho(i),{residence:u}=ho(o),d=A(()=>r.isLoading||o.isLoading);Se([l,()=>u.value?.premisesId],async([m,_])=>{!m||!_||await r.startLoad()},{immediate:!0});function f(m){s("go",{to:"claim-info",query:{id:m.id,premises_id:u.value?.premisesId??null}})}function h(m){if(!m)return"";const _=new Date(m);if(Number.isNaN(_.getTime()))return"";const v=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"long"}).format(_),k=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(_);return`${v}, ${k}`}function g(m){return{color:m.textColor||"#111111",backgroundColor:"transparent"}}return(m,_)=>{const v=yg;return p(),y("div",LTe,[c("div",RTe,[c("h1",MTe,b(a(n)("drawerClaimList.title")),1)]),c("div",OTe,[d.value?(p(),y("div",FTe,[(p(),y(j,null,le(3,k=>c("div",{key:k,class:"animate-pulse"},[..._[0]||(_[0]=[c("div",{class:"mb-2 h-4 w-1/3 rounded bg-grey-80"},null,-1),c("div",{class:"h-6 w-full rounded bg-grey-80"},null,-1)])])),64))])):(p(),y(j,{key:1},[a(r).claims.length?(p(),y("div",BTe,[(p(!0),y(j,null,le(a(r).claims,k=>(p(),y("div",{key:k.id,class:"cursor-pointer border-b border-grey-80 last:border-b-0 pb-6",onClick:x=>f(k)},[k.markers?.length?(p(),y("div",HTe,[(p(!0),y(j,null,le(k.markers,x=>(p(),y("span",{key:`${k.id}-${x.text}`,class:"relative inline-flex items-center gap-2 pr-3.5 text-16-bold text-purple-50 whitespace-nowrap",style:kt(g(x))},[x.iconUrl?(p(),y("img",{key:0,src:`${x.iconUrl}_x3.png`,alt:"",class:"h-6 w-6",loading:"lazy"},null,8,qTe)):E("",!0),c("span",jTe,b(x.text),1),x.needIndicator?(p(),y("span",UTe)):E("",!0)],4))),128))])):E("",!0),c("p",zTe,b(k.title),1),c("div",WTe,[c("span",null,b(h(k.createdAt)),1),String(k.amount??"").trim()!==""?(p(),y("span",GTe,[T(v,{class:"h-4 w-4"}),c("span",null,b(k.amount),1)])):E("",!0)])],8,VTe))),128))])):(p(),y("p",NTe,b(a(n)("registrationAddress.empty")),1))],64))])])}}}),KTe=Object.assign(YTe,{__name:"ClaimListPanel"}),QTe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function XTe(e,t){return p(),y("svg",QTe,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M90.484 4.332a23.43 23.43 0 0 1 12.48 3.127 2 2 0 0 1 .414 3.146L90.156 23.827l5.016 5.016 13.224-13.223.173-.154a1.998 1.998 0 0 1 2.972.568 23.43 23.43 0 0 1-3.722 28.281l-.032.028a23.43 23.43 0 0 1-24.068 5.59l-.14-.05-6.231 6.588 32.3
7712 32.313c6.011 6.011 6.01 15.757-.001 21.769s-15.757 6.011-21.768 0L56.185 78.847l-29.706 31.458h-.002c-4.807 5.082-12.86 5.194-17.806.248-4.946-4.947-4.834-13 .247-17.806l.002-.002 31.457-29.707-1.308-1.308c-.372-.372-.738-.736-1.02-1.068-.297-.35-.616-.794-.805-1.373a4 4 0 0 1 0-2.472c.189-.58.508-1.023.805-1.373.282-.332.648-.696 1.02-1.068l5.792-5.793-15.226-15.227-11.755-2.713a2 2 0 0 1-1.23-.86l-10.415-16.1-.09-.152a2 2 0 0 1 .354-2.35l3.788-3.788a2 2 0 0 1 2.501-.265l16.099 10.418a2 2 0 0 1 .862 1.228l2.712 11.752L47.69 45.755l5.795-5.794c.372-.373.735-.738 1.067-1.02.35-.296.793-.616 1.372-.804a4 4 0 0 1 2.473 0c.579.188 1.023.507 1.373.804.331.282.695.647 1.068 1.02l1.914 1.914 6.48-6.13a23.4 23.4 0 0 1-1.21-4.94A23.43 23.43 0 0 1 90.484 4.333M55.19 62.85c2.096 2.504 3.021 4.853 3.021 7.04 0 1.66-.532 3.031-1.218 4.11l33.725 33.724c4.45 4.45 11.663 4.449 16.112 0s4.449-11.663 0-16.112L73.107 57.888c-1.079.686-2.45 1.218-4.11 1.218-2.187 0-4.537-.925-7.04-3.021zm-3.824 3.825c-.372.372-.735.739-1.067 1.02-.35.297-.794.616-1.373.804-.803.26-1.67.26-2.473 0-.579-.188-1.023-.508-1.373-.805-.331-.281-.695-.647-1.067-1.02l-.807-.806-31.54 29.785h-.002c-3.444 3.258-3.519 8.718-.166 12.071a8.42 8.42 0 0 0 12.071-.166l29.785-31.542-.45-.45a2 2 0 0 1 0-2.828c.728-.729 1.308-1.671 1.308-2.847 0-.942-.373-2.337-1.863-4.2zM14.82 98.722a4.018 4.018 0 1 1 5.681 5.682 4.018 4.018 0 0 1-5.682-5.682M68.95 69.844a2 2 0 0 1 2.829 0l28.41 28.41.136.152a2 2 0 0 1-2.812 2.814l-.152-.137-28.41-28.411a2 2 0 0 1 0-2.828M57.141 41.99c-.178.151-.41.38-.828.799L41.898 57.204c-.42.42-.649.65-.8.829l-.016.02.016.02c.151.178.38.409.8.828l4.944 4.944c.42.42.65.649.828.8l.02.016.02-.016c.178-.151.41-.38.83-.8l14.414-14.414c.42-.42.648-.65.8-.828l.014-.02-.015-.02c-.151-.178-.38-.41-.799-.83L58.01 42.79c-.42-.42-.65-.648-.83-.799q-.01-.008-.02-.015zm8.441 2.715.2.2c.373.373.74.737 1.02 1.069.298.349.616.793.805 1.373.26.803.26 1.669 0 2.472-.189.58-.507 1.024-.804 1.373-.282.332-.648.695-1.02 1.068l-.986.984c1.864 1.49 3.26 1.861 4.201 1.861 1.176 0 2.118-.58 2.847-1.308a2 2 0 0 1 2.663-.147l5.213-5.51a23.4 23.4 0 0 1-6.582-5.53 23.4 23.4 0 0 1-2.118-3.05zM90.614 8.33a19.43 19.43 0 0 0-17.061 11.4 19.43 19.43 0 0 0 2.679 20.343 19.43 19.43 0 0 0 27.268 2.754L85.914 25.241a2 2 0 0 1 0-2.828l12.66-12.66a19.4 19.4 0 0 0-7.96-1.423m7.388 23.34 8.329 8.329a19.43 19.43 0 0 0 2.916-19.573zm-17.412.346a2 2 0 0 1 2.828 0l3.788 3.788a2 2 0 0 1-2.828 2.829l-3.788-3.788a2 2 0 0 1 0-2.829m-70.12-19.15 9.1 14.063 8.403 1.939-1.939-8.404-14.062-9.099z"},null,-1)])])}const ZTe={render:XTe},JTe={class:"flex h-full flex-col px-6"},ePe={class:"text-24-bold text-left"},tPe={class:"flex-1 flex flex-col"},sPe={key:0,class:"flex flex-col items-center justify-center flex-1"},nPe={class:"text-center text-16"},rPe={key:1,class:"space-y-6 mt-6"},iPe={class:"w-6 h-6 flex items-center justify-center"},oPe={class:"flex-1"},aPe={class:"text-16"},lPe={class:"text-13 text-grey-40 mt-2"},cPe=G({__name:"ClaimProgressPanel",emits:["go"],setup(e){const{t}=be(),s=lf(),n=r=>{const i=new Date(r);return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Moscow"}).format(i)};return(r,i)=>(p(),y("div",JTe,[c("h1",ePe,b(a(t)("drawerClaimProgress.title")),1),c("div",tPe,[a(s).steps.length?(p(),y("div",rPe,[(p(!0),y(j,null,le(a(s).steps,(o,l)=>(p(),y("div",{key:l,class:"flex items-start space-x-4"},[c("div",iPe,[c("div",{class:oe(["w-3 h-3 rounded-full",o.isFinal?"bg-paleLime-primary":"bg-purple-50"])},null,2)]),c("div",oPe,[c("p",aPe,b(o.title),1),c("p",lPe,b(a(t)("drawerClaimProgress.dateFrom"))+" "+b(n(o.date)),1)])]))),128))])):(p(),y("div",sPe,[T(a(ZTe),{class:"mb-4"}),c("h3",nPe,b(a(t)("drawerClaimProgress.empty")),1)]))])]))}}),X9=Object.assign(cPe,{__name:"ClaimProgressPanel"}),uPe={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"};function dPe(e,t){return p(),y("svg",uPe,[...t[0]||(t[0]=[c("path",{fill:"#F9BE3F",d:"M19.82 7.418c1.367-2.426 2.051-3.64 2.95-4.044a3 3 0 0 1 2.463 0c.898.404 1.582 1.618 2.95 4.044l2.357 4.183c.397.704.595 1.056.866 1.335.24.247.52.45.83.602.348.172.744.251 1.536.411l4.706.95c2.731.55 4.096.826 4.759 1.556a3 3 0 0 1 .76 2.342c-.106.98-1.049 2.005-2.934 4.056l-3.25 3.534c-.547.595-.82.893-1.001 1.236a3 3 0 0 0-.317.975c-.055.385-.009.786.084 1.589l.551 4.77c.32 2.767.48 4.15-.01 5.005a3 3 0 0 1-1.992 1.448c-.964.2-2.23-.379-4.764-1.538l-4.366-1.998c-.734-.337-1.102-.505-1.485-.571a3 3 0 0 0-1.025 0c-.382.066-.75.235-1.485.57l-4.365 1.999c-2.533 1.16-3.8 1.739-4.764 1.538a3 3 0 0 1-1.993-1.448c-.489-.855-.329-2.238-.01-5.006l.552-4.77c.093-.802.14-1.203.084-1.588a3 3 0 0 0-.317-.975c-.181-.343-.455-.64-1.001-1.236l-3.25-3.534c-1.885-2.051-2.828-3.077-2.935-4.056a3 3 0 0 1 .761-2.342c.662-.73 2.028-1.005 4.758-1.556l4.707-.95c.792-.16 1.188-.24 1.537-.41.309-.153.59-.356.83-.603.27-.279.468-.631.865-1.335z"},null,-1)])])}const vf={render:dPe},fPe={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"};function pPe(e,t){return p(),y("svg",fPe,[...t[0]||(t[0]=[c("path",{fill:"#E3E3E3",d:"M19.82 7.419c1.367-2.427 2.051-3.64 2.95-4.045a3 3 0 0 1 2.463 0c.898.405 1.582 1.618 2.95 4.045L30.54 11.6c.397.704.595 1.056.866 1.335.24.247.52.45.83.603.348.171.744.25 1.536.41l4.706.95c2.731.551 4.096.827 4.759 1.556a3 3 0 0 1 .76 2.343c-.106.979-1.049 2.004-2.934 4.055l-3.25 3.535c-.547.595-.82.892-1.001 1.236a3 3 0 0 0-.317.975c-.055.384-.009.785.084 1.588l.551 4.77c.32 2.767.48 4.15-.01 5.006a3 3 0 0 1-1.992 1.448c-.964.2-2.23-.38-4.764-1.539l-4.366-1.998c-.734-.336-1.102-.504-1.485-.57a3 3 0 0 0-1.025 0c-.382.066-.75.234-1.485.57l-4.365 1.998c-2.533 1.16-3.8 1.74-4.764 1.539a3 3 0 0 1-1.993-1.448c-.489-.855-.329-2.239-.01-5.006l.552-4.77c.093-.803.14-1.204.084
77-1.588a3 3 0 0 0-.317-.975c-.181-.344-.455-.641-1.001-1.236l-3.25-3.535c-1.885-2.05-2.828-3.076-2.935-4.055a3 3 0 0 1 .761-2.343c.662-.73 2.028-1.005 4.758-1.556l4.707-.95c.792-.16 1.188-.239 1.537-.41.309-.152.59-.356.83-.603.27-.278.468-.63.865-1.335z"},null,-1)])])}const bf={render:pPe},hPe={class:"flex h-full flex-col"},mPe={class:"flex-1 min-h-0 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},gPe={class:"text-24-bold text-left"},yPe={class:"text-16 text-grey-40 text-left mt-4"},_Pe={class:"flex items-center justify-start mt-6 space-x-1"},vPe=["onClick"],bPe={class:"p-6"},xPe=G({__name:"ClaimRatePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=uf(),{t:r}=be(),{$showSnackbar:i}=Te(),o=cf(),l=ec(),u=ri(),d=A(()=>!n.isSuccess&&n.commentValue.trim().length===0);async function f(){if(l.isOpen){l.completeCurrent();return}await u.loadClaim(),s("go","back")}async function h(){if(n.isSuccess){const g=await n.sendSuccess();if(g.ok){if(l.isOpen){l.completeCurrent();return}o.isSuccess=n.isSuccess,s("go",{to:"claim-rate-done",replace:!1})}else{if(g.error.code==88){await f();return}i(g.error.message??r("-3"))}}else{const g=await n.sendDecline();if(g.ok){if(l.isOpen){l.completeCurrent();return}o.isSuccess=n.isSuccess,o.newClaimId=g.data.reopened_claim_id,s("go",{to:"claim-rate-done",replace:!1})}else{if(g.error.code==88){await f();return}i(g.error.message??r("-4"))}}}return(g,m)=>{const _=vf,v=bf,k=ti;return p(),y("div",hPe,[c("div",mPe,[c("h1",gPe,b(a(n).isSuccess?a(r)("drawerClaimRate.titleSuccesss"):a(r)("drawerClaimRate.titleUnsuccess")),1),c("h1",yPe,b(a(n).isSuccess?a(r)("drawerClaimRate.descrSuccess"):a(r)("drawerClaimRate.descrUnsuccess")),1),c("div",_Pe,[(p(),y(j,null,le(5,x=>c("div",{key:x,class:"cursor-pointer",onClick:C=>a(n).setRating(x)},[x<=a(n).rating?(p(),K(_,{key:0,class:""})):(p(),K(v,{key:1,class:""}))],8,vPe)),64))]),T(k,{"model-value":a(n).commentValue,multiline:!0,"input-type":"text",class:"mt-6","placeholder-text":a(n).isSuccess?a(r)("drawerClaimRate.commentSuccess"):a(r)("drawerClaimRate.commentUnsuccess"),"onUpdate:modelValue":a(n).updateCommentValue},null,8,["model-value","placeholder-text","onUpdate:modelValue"])]),c("div",bPe,[T(a(vt),{class:"w-full",label:a(r)("send"),loading:a(n).isLoading,disabled:d.value,onClick:h},null,8,["label","loading","disabled"])])])}}}),Z9=Object.assign(xPe,{__name:"ClaimRatePanel"}),kPe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function wPe(e,t){return p(),y("svg",kPe,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M61.272 13.2c4.283-6.427 11.508-9.273 18.099-8.323 3.84.553 7.479 2.4 10.151 5.577 2.678 3.184 4.286 7.583 4.286 13.072 0 3.766-.95 7.386-2.503 10.793a9 9 0 0 1 2.167.182c2.082.416 3.402 1.872 4.171 3.507.75 1.593 1.073 3.524 1.172 5.41.171 3.258-.305 6.868-.947 9.549 2.061 1.796 3.328 5.089 3.571 9.467.29 5.214-2.269 11.065-5.262 16.03-2.967 4.922-6.585 9.33-9.103 11.988-4.706 8.588-12.725 15.276-22.201 17.307-6.686 1.433-13.266 5.84-15.679 7.851a2 2 0 0 1-2.67-.098C40.2 109.399 27.2 98.108 11.273 95.045a2.001 2.001 0 0 1-.614-3.7c.747-.427 3.267-2.87 2.816-8.277-.685-8.222 2.078-15.657 6.667-22.869 1.16-1.822 2.322-3.357 3.35-4.747 1.042-1.409 1.945-2.669 2.71-4.053 1.482-2.681 2.534-5.997 2.534-11.755 0-3.198.5-5.712 1.488-7.563l.058-.103c-.973-2.697-1.546-5.528-1.546-8.452 0-5.489 1.608-9.888 4.286-13.072 2.673-3.177 6.311-5.024 10.151-5.577 6.591-.95 13.816 1.897 18.098 8.323M37.905 33.028c-1-.491-1.854-.614-2.482-.489-.543.109-1.144.444-1.67 1.427-.56 1.05-1.016 2.832-1.016 5.678 0 6.327-1.175 10.328-3.033 13.69-.905 1.637-1.95 3.082-2.995 4.496-1.06 1.433-2.124 2.84-3.19 4.517-4.317 6.783-6.644 13.344-6.057 20.39.336 4.042-.643 7.096-1.96 9.176 14.505 3.852 26.207 13.565 32.545 19.524 3.321-2.448 9.506-6.201 15.987-7.589 8.247-1.768 15.433-7.697 19.652-15.533l.068-.117a2 2 0 0 1 .249-.318c2.353-2.456 5.884-6.73 8.749-11.482 2.912-4.831 4.912-9.796 4.693-13.743-.304-5.479-2.208-6.933-3.1-7.156-.873-.218-2.437.348-3.184 2.589-1.01 3.03-2.68 6.535-4.773 9.632-2.067 3.059-4.688 5.932-7.681 7.428a2 2 0 0 1-1.788-3.578c2.096-1.048 4.246-3.265 6.155-6.09 1.883-2.786 3.394-5.962 4.292-8.657 1.03-3.088 3.667-5.492 6.746-5.376.494-2.283.844-5.22.708-7.818-.086-1.644-.36-2.99-.796-3.918-.417-.886-.874-1.196-1.336-1.288-1.19-.238-2.012-.07-2.677.297-.72.398-1.453 1.141-2.235 2.385-1.621 2.58-2.948 6.423-4.926 11.369-3.3 8.25-10.061 12.629-13.226 13.846a2.001 2.001 0 0 1-1.436-3.733c2.349-.904 8.142-4.584 10.948-11.599q.262-.658.517-1.308a81 81 0 0 1-1.784 1.636c-3.905 3.471-7.801 6.284-10.716 8.228a93 93 0 0 1-3.535 2.248 63 63 0 0 1-1.374.805 2 2 0 0 1-1.943 0l-.315-.18a58 58 0 0 1-.85-.5 90 90 0 0 1-3.033-1.903 104 104 0 0 1-6.696-4.778q-.064.615-.15 1.23c-.322 2.251-.604 3.907-.811 5.17-.212 1.29-.331 2.095-.364 2.758-.057 1.144.12 1.92 1.068 4.446 1.703 4.54.87 8.011-.273 9.536a2 2 0 0 1-3.2-2.4s.023-.032.059-.104c.038-.075.084-.181.13-.32.095-.276.187-.663.23-1.156.084-.978-.027-2.377-.692-4.151-.96-2.562-1.42-4.014-1.317-6.05.046-.927.206-1.953.412-3.207.21-1.282.484-2.887.799-5.088 1.21-8.467-1.265-16.755-4.628-20.68-.797-.93-1.78-1.707-2.765-2.192M78.799 8.836c-5.909-.851-12.657 2.239-15.686 9.349a2.001 2.001 0 0 1-3.68 0c-3.03-7.11-9.778-10.2-15.687-9.35-2.946.425-5.669 1.825-7.661 4.193-1.987 2.362-3.348 5.81-3.348 10.498 0 1.828.274 3.642.776 5.434q.541-.226 1.125-.343c1.758-.351 3.529.082 5.034.822 1.52.748 2.923 1.88 4.035 3.177 3.32 3.874 5.638 10.493 5.878 17.64a98 98 0 0 0 8.709 6.41 86 86 0 0 0 2.896 1.82l.08.046q.133-.076.281-.165c.813
77-.49 1.98-1.216 3.383-2.151 2.81-1.874 6.549-4.575 10.278-7.89 7.585-6.743 14.596-15.555 14.596-24.8 0-4.689-1.36-8.136-3.347-10.498-1.993-2.368-4.716-3.768-7.662-4.192","clip-rule":"evenodd"},null,-1),c("path",{fill:"#9CCA7F",d:"M94.323 7.589a2 2 0 0 1 2.82.217c1.588 1.853 4.299 6.94 4.299 14.025a2.001 2.001 0 0 1-4 0c0-6.146-2.38-10.306-3.336-11.422a2 2 0 0 1 .217-2.82"},null,-1)])])}const CPe={render:wPe},$Pe={class:"flex h-full flex-col"},SPe={class:"flex-1 px-6 flex flex-col justify-center items-center"},APe={class:"text-24-bold text-center whitespace-pre-line mt-2"},IPe={key:3,class:"mt-6 flex w-full flex-col gap-3"},TPe=G({__name:"ClaimRatePanelDone",emits:["go"],setup(e,{emit:t}){const s=t,n=cf(),r=st(),i=is(),{t:o}=be();function l(){s("go","back")}async function u(d){if(r.path===d){await i.replace({path:d}),s("go","close");return}await i.push({path:d})}return(d,f)=>{const h=CPe,g=Uu,m=Ae("PrimaryButton");return p(),y("div",$Pe,[c("div",SPe,[a(n).isSuccess?(p(),K(h,{key:0})):(p(),K(g,{key:1,class:"[&>path]:fill-emerald-primary"})),c("h1",APe,b(a(n).isSuccess?a(o)("drawerClaimRate.success"):a(o)("drawerClaimRate.fail")),1),a(n).isSuccess?(p(),K(m,{key:2,class:"w-full mt-6",label:a(o)("good"),onClick:l},null,8,["label"])):(p(),y("div",IPe,[T(m,{class:"w-full",label:a(o)("moveToClaims"),onClick:f[0]||(f[0]=_=>u("/claims"))},null,8,["label"]),T(m,{class:"w-full",variant:"secondary",label:a(o)("moveToHome"),onClick:f[1]||(f[1]=_=>u("/"))},null,8,["label"])]))])])}}}),J9=Object.assign(TPe,{__name:"ClaimRatePanelDone"}),PPe=G({__name:"TextRadioButton",props:{label:{},isActive:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>{const i="inline-flex items-center gap-0 rounded-lg px-4 py-3 text-13-bold transition-colors duration-200";return s.isActive?`${i} box-border bg-transparent text-paleLime-primary border-2 border-paleLime-primary`:`${i} bg-grey-90 text-grey-40`});return(i,o)=>(p(),y("button",{type:"button",class:oe(r.value),onClick:o[0]||(o[0]=l=>n("click"))},[c("span",null,b(s.label),1)],2))}}),DPe=Object.assign(PPe,{__name:"TextRadioButton"}),EPe={class:"flex h-full flex-col"},LPe={class:"flex-1 overflow-y-auto px-6 scrollbar-4-grey80"},RPe={class:"text-24-bold text-left"},MPe={key:0,class:"mt-8"},OPe={class:"flex items-center gap-6"},FPe={class:"flex gap-4"},NPe={key:1,class:"mt-8"},BPe={key:0,class:"text-16 text-black"},VPe={key:1,class:"text-16 text-black"},HPe={key:2,class:"mt-4 grid grid-cols-2 gap-4"},qPe=["onClick"],jPe={class:"aspect-square w-full overflow-hidden rounded-lg bg-grey-90"},UPe=["src","alt"],zPe={key:3,class:"mt-4 space-y-2"},WPe=["onClick"],GPe={class:"text-16"},YPe={key:2,class:"mt-8"},KPe={class:"text-16 text-black"},QPe={key:0,class:"mt-4 grid grid-cols-2 gap-4"},XPe=["onClick"],ZPe={class:"aspect-square w-full overflow-hidden rounded-lg bg-grey-90"},JPe=["src","alt"],eDe={key:1,class:"mt-4 space-y-2"},tDe=["onClick"],sDe={class:"text-16"},nDe={class:"p-6"},rDe=G({__name:"ClaimResultPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=df(),{t:r}=be();Pl(()=>{if(!n.hasPhotos&&n.hasDocuments){n.setSelectedFileType("files");return}n.hasPhotos&&!n.hasDocuments&&n.setSelectedFileType("photos")});function i(l){l&&window.open(l,"_blank","noopener,noreferrer")}function o(){s("go","back")}return(l,u)=>{const d=DPe,f=tf,h=Ae("PrimaryButton");return p(),y("div",EPe,[c("div",LPe,[c("h1",RPe,b(a(r)("drawerClaimResult.title")),1),a(n).hasPhotos&&a(n).hasDocuments?(p(),y("div",MPe,[c("div",OPe,[c("div",FPe,[T(d,{label:a(r)("drawerClaimResult.photo"),"is-active":a(n).selectedFileType==="photos",onClick:u[0]||(u[0]=g=>a(n).setSelectedFileType("photos"))},null,8,["label","is-active"]),T(d,{label:a(r)("drawerClaimResult.files"),"is-active":a(n).selectedFileType==="files",onClick:u[1]||(u[1]=g=>a(n).setSelectedFileType("files"))},null,8,["label","is-active"])])])])):E("",!0),a(n).hasFilesBefore&&a(n).filteredFilesBefore.length?(p(),y("div",NPe,[a(n).selectedFileType==="files"?(p(),y("p",BPe,b(a(r)("drawerClaimResult.beforeFiles")),1)):(p(),y("p",VPe,b(a(r)("drawerClaimResult.beforePhoto")),1)),a(n).selectedFileType==="photos"?(p(),y("div",HPe,[(p(!0),y(j,null,le(a(n).filteredFilesBefore,(g,m)=>(p(),y("button",{key:`before-${m}-${g.url}`,type:"button",class:"group w-full text-left focus:outline-none",onClick:_=>i(g.url)},[c("div",jPe,[c("img",{src:g.url,alt:g.name,class:"h-full w-full object-cover"},null,8,UPe)])],8,qPe))),128))])):(p(),y("div",zPe,[(p(!0),y(j,null,le(a(n).filteredFilesBefore,(g,m)=>(p(),y("button",{key:`before-${m}-${g.url}`,type:"button",class:"w-full text-left focus:outline-none bg-grey-90 py-3 px-4 flex items-center gap-4",onClick:_=>i(g.url)},[T(f,{class:"[&>path]:fill-black"}),c("span",GPe,b(g.name),1)],8,WPe))),128))]))])):E("",!0),a(n).hasFilesAfter&&a(n).filteredFilesAfter.length?(p(),y("div",YPe,[c("p",KPe,b(a(r)("drawerClaimResult.afterTitle")),1),a(n).selectedFileType==="photos"?(p(),y("div",QPe,[(p(!0),y(j,null,le(a(n).filteredFilesAfter,(g,m)=>(p(),y("button",{key:`after-${m}-${g.url}`,type:"button",class:"group w-full text-left focus:outline-none",onClick:_=>i(g.url)},[c("div",ZPe,[c("img",{src:g.url,alt:g.name,class:"h-full w-full object-cover"},null,8,JPe)])],8,XPe))),128))])):(p(),y("div",eDe,[(p(!0),y(j,null,le(a(n).filteredFilesAfter,(g,m)=>(p(),y("button",{key:`after-${m}-${g.url}`,type:"button",class:"w-full text-left focus:outline-none bg-grey-90 py-3 px-4 flex items-center gap-4",onClick:_=>i(g.url)},[T(f,{class:"[&>path]:fill-black"}),c("span",sDe,b(g.name),1)],8,tDe))),128))]))])):E("",!0)]),c("div",nDe,[T(h,{class:"w-full",label:a(r)("good"),onClick:o},null,8,["label"])])])}}}),eC=Object.assign(rDe,{__name:"ClaimResultPanel"}),iDe=G({__name:"ClaimBillFilterButton",props:{label:{},isActive:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>{const i="inline-flex items-center gap-0 rounded-lg px-3 py-2 text-13 transition-colors duration-200";return s.isActive?`${i} bg-paleLime-primary text-white`:`${i} bg-grey-90 text-black`});return(i,o)=>{const l=J0;return p(),y("button",{type:"button",class:oe(r.value),onClick:o[0]||(o[0]=u=>n("click"))},[c("span",null,b(s.label),1),T(l)],2)}}}),oDe=Object.assign(iDe,{__name:"ClaimBillFilterButton"}),aDe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function lDe(e,t){return p(),y("svg",aDe,[...t[0]||(t[0]=[c("path",{fill:"#CDD4D2","fill-rule":"evenodd",d:"M60 48.5a5.5 5.5 0 1 1 0 11H36a5.5 5.5 0 1 1 0-11zm-24 3a2.5 2.5 0 0 0 0 5h24a2.5 2.5 0 0 0 0-5z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#CDD4D2",d:"M46 32.5a1.5 1.5 0 0 1 0 3H22a1.5 1.5 0 0 1 0-3zM38 24.5a1.5 1.5 0 0 1 0 3H22a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#CDD4D2","fill-rule":"evenodd",d:"M69.2 4.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v21.915c1.037.142
771.956.384 2.813.82a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v22.4c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.737a9.5 9.5 0 0 1-4.153 4.152c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H18.8c-2.215 0-3.967 0-5.376-.114-1.427-.117-2.634-.36-3.736-.921a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.087-1.057-.108-2.306-.113-3.8L4.5 77.2V54.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c.856-.436 1.775-.678 2.812-.82V26.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c.88-.449 1.829-.692 2.902-.832C21.222 8.07 25.193 4.5 30 4.5zm-50.4 39c-2.265 0-3.873.002-5.132.105-1.241.1-2.01.293-2.62.603a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.132v22.4l.002 1.58c.005 1.467.025 2.608.102 3.552.102 1.241.294 2.01.604 2.62a6.5 6.5 0 0 0 2.84 2.84c.61.31 1.379.502 2.62.603 1.259.103 2.867.105 5.132.105h58.4c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V54.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.603-1.259-.103-2.867-.105-5.132-.105zm8-28c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.603 2.62-.103 1.259-.105 2.867-.105 5.132v13.72c.97-.02 2.062-.02 3.3-.02h49.7v-5.198c0-2.028-.01-2.798-.18-3.506a6 6 0 0 0-.079-.296H62a9.5 9.5 0 0 1-9.5-9.5v-6.241a6 6 0 0 0-.296-.08c-.708-.17-1.478-.179-3.506-.179zm3.2-8a6.5 6.5 0 0 0-6.328 5.016c.926-.017 1.963-.016 3.128-.016h21.898c1.886 0 3.073-.01 4.206.263.97.232 1.896.617 2.746 1.137.994.61 1.827 1.456 3.16 2.789l8.501 8.501c1.333 1.333 2.18 2.166 2.789 3.16.52.85.905 1.776 1.137 2.746.272 1.133.263 2.32.263 4.206V40.5h5.7c1.238 0 2.33 0 3.3.02V18.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.604-1.259-.102-2.867-.104-5.132-.104zM55.5 22a6.5 6.5 0 0 0 6.5 6.5h4.364c-.308-.32-.69-.704-1.174-1.189L56.69 18.81a97 97 0 0 0-1.189-1.175z","clip-rule":"evenodd"},null,-1)])])}const tC={render:lDe},cDe={xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"};function uDe(e,t){return p(),y("svg",cDe,[...t[0]||(t[0]=[c("path",{fill:"#111","fill-opacity":".06","fill-rule":"evenodd",d:"M24 44C12.954 44 4 35.046 4 24S12.954 4 24 4s20 8.954 20 20-8.954 20-20 20m0-36c8.837 0 16 7.163 16 16s-7.163 16-16 16S8 32.837 8 24 15.163 8 24 8","clip-rule":"evenodd"},null,-1),c("path",{fill:"#111",d:"M40 24A16 16 0 0 0 24 8a2 2 0 1 1 0-4 20 20 0 0 1 20 20 2 2 0 1 1-4 0"},null,-1)])])}const Og={render:uDe},dDe={class:"flex h-full flex-col"},fDe={class:"px-6"},pDe={class:"text-24-bold text-left"},hDe={class:"mt-6 flex flex-wrap gap-2"},mDe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80 gutter-stable"},gDe={key:0,class:"mt-6 space-y-4"},yDe={key:1,class:"flex h-full flex-col items-center justify-center gap-6 text-center"},_De={class:"text-16 text-black whitespace-pre-line"},vDe={class:"mt-6 space-y-6"},bDe={class:"mb-4"},xDe={class:"inline-flex rounded-full bg-purple-90 px-3 py-2 text-13 text-purple-50"},kDe={class:"space-y-4"},wDe=["onClick"],CDe={class:"text-16 text-black"},$De={class:"mt-2 flex items-center justify-between text-13"},SDe={class:"text-grey-40"},ADe=G({__name:"ClaimBillPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=pu(),i=X(null),o=A(()=>!r.sections.length),l=A(()=>{const $=r.statusFilter??"all";return n($==="paid"?"drawerBillsType.pay":$==="not_paid"?"drawerBillsType.notPay":$==="refunded"?"drawerBillsType.return":"drawerClaimBill.filterAllTypes")});function u($){if(!$)return null;const S=$.split("T")[0];if(!S)return null;const[I,P,L]=S.split("-").map(Number);if(!I||!P||!L)return null;const D=I.toString().slice(-2);return`${L.toString().padStart(2,"0")}.${P.toString().padStart(2,"0")}.${D}`}const d=A(()=>{const $=u(r.dateFrom),S=u(r.dateTo);return $&&S?`${$} â ${S}`:n("drawerClaimBill.filterPeriod")}),f=A(()=>r.statusFilter!=="all"),h=A(()=>r.dateFrom!=null&&r.dateTo!=null);let g=null;const m=$=>{const S=($??"").toLowerCase();return S==="#11986c"?"text-emerald-primary":S==="#ef776c"?"text-red-50":S==="#7b61ff"?"text-purple-50":"text-grey-40"},_=($,S)=>{if(!Number.isFinite($))return S??"";
77const I=Math.floor($/100),P=Math.abs($%100),L=I.toLocaleString("ru-RU");return P===0?`${L} â½`:`${L},${P.toString().padStart(2,"0")} â½`},v=["all","paid","not_paid","refunded"],k=$=>typeof $=="string"&&v.includes($),x=()=>{const $=hf(),S=k(r.statusFilter)?r.statusFilter:"all";$.setSelectedFilterType(S),s("go",{to:"claim-bill-detail-type",replace:!1})},C=()=>{vg().setRangeFromStrings(r.dateFrom,r.dateTo),s("go",{to:"claim-bill-detail-month",replace:!1})},w=$=>{r.selectBill($),s("go",{to:"claim-bill-detail",replace:!1,query:{id:$}})};return je(()=>{r.startLoad(),!(typeof window>"u"||!("IntersectionObserver"in window))&&(g=new IntersectionObserver($=>{$.some(S=>S.isIntersecting)&&r.loadMore()},{root:null,rootMargin:"0px 0px 160px 0px"}),i.value&&r.hasMore&&g.observe(i.value))}),Se(()=>r.hasMore,$=>{if(g){if(!$){g.disconnect();return}i.value&&g.observe(i.value)}}),Se(i,($,S)=>{g&&(S&&g.unobserve(S),$&&r.hasMore&&g.observe($))}),Tt(()=>{g&&(g.disconnect(),g=null)}),($,S)=>{const I=oDe,P=tC,L=Og;return p(),y("div",dDe,[c("div",fDe,[c("h1",pDe,b(a(n)("drawerClaimBill.title")),1),c("div",hDe,[T(I,{label:l.value,"is-active":f.value,onClick:x},null,8,["label","is-active"]),T(I,{label:d.value,"is-active":h.value,onClick:C},null,8,["label","is-active"])])]),c("div",mDe,[a(r).isLoading?(p(),y("div",gDe,[(p(),y(j,null,le(3,D=>c("div",{key:D,class:"animate-pulse bg-white py-4"},[...S[0]||(S[0]=[c("div",{class:"h-6 w-3/4 rounded bg-grey-80"}
77,null,-1),c("div",{class:"mt-3 h-4 w-1/2 rounded bg-grey-80"},null,-1),c("div",{class:"mt-6 h-4 w-24 rounded bg-grey-80"},null,-1)])])),64))])):o.value?(p(),y("div",yDe,[T(P,{class:""}),c("p",_De,b(a(n)("drawerClaimBill.empty")),1)])):(p(),y(j,{key:2},[c("div",vDe,[(p(!0),y(j,null,le(a(r).sections,D=>(p(),y("section",{key:D.date},[c("div",bDe,[c("span",xDe,b(D.date),1)]),c("ul",kDe,[(p(!0),y(j,null,le(D.list,R=>(p(),y("li",{key:R.billId,class:"cursor-pointer",onClick:F=>w(R.billId)},[c("p",CDe,b(R.name),1),c("div",$De,[c("span",SDe,b(_(R.amountInCents,R.amount)),1),c("span",{class:oe(["text-13-bold",m(R.statusTextColor)])},b(R.statusText),3)])],8,wDe))),128))])]))),128))]),c("div",{ref_key:"loadMoreTrigger",ref:i,class:"flex items-center justify-center py-6"},[a(r).isLoadingMore?(p(),K(L,{key:0,class:"animate-[spin_0.8s_linear_infinite] text-black"})):E("",!0)],512)],64))])])}}}),IDe=Object.assign(ADe,{__name:"ClaimBillPanel"}),TDe={class:"flex h-full flex-col"},PDe={class:"flex-1 overflow-y-auto px-6 scrollbar-4-grey80 gutter-stable"},DDe={key:0,class:"mt-6 space-y-6 animate-pulse"},EDe={key:1},LDe={class:"text-24-bold text-left"},RDe={class:"text-16 text-left mt-6"},MDe={class:"text-13 text-grey-40 text-left mt-2"},ODe={key:0,class:"mt-6 flex flex-wrap items-center gap-2"},FDe={class:"leading-none"},NDe={key:1,class:"mt-6 divide-y divide-grey-80 rounded-2xl border border-grey-80 bg-white"},BDe={class:"flex-1"},VDe={class:"text-16 text-black"},HDe={key:0,class:"mt-2 text-13 text-grey-40"},qDe=["src"],jDe={class:"p-6"},UDe={key:0,class:"h-12 w-full rounded-3xl bg-grey-80 animate-pulse"},zDe=G({__name:"ClaimBillDetailPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),n=t,{t:r}=be(),i=g9(),o=st(),l=A(()=>i.paymentBill?.infoItems??[]),u=A(()=>i.paymentBill?.markers??[]),d=A(()=>u.value[0]??null),f=kr();async function h(){const _=await i.pay();if(_.ok)g();else{if(_.error.code==1){f.consumeClaimRetryPending(),f.isFromClaims=!0,n("go",{to:"card-add",replace:!1});return}s(_.error.message??r("-27"))}}Se(()=>f.claimRetryPending,async _=>{_&&(f.consumeClaimRetryPending(),await lt(),await h())},{immediate:!0}),je(()=>{const _=o.query.id,v=Array.isArray(_)?_[0]:_,k=typeof v=="string"?v:null;i.setSelectedBillId(k),g()});async function g(){const _=await i.startLoad();_.ok||s(_.error.message??r("-27"))}function m(_){return{color:_.textColor||"#111111"}}return(_,v)=>{const k=Ae("PrimaryButton");return p(),y("div",TDe,[c("div",PDe,[a(i).isLoading?(p(),y("div",DDe,[...v[0]||(v[0]=[ls('<div class="h-7 w-1/2 rounded bg-grey-80"></div><div class="h-5 w-2/3 rounded bg-grey-80"></div><div class="h-4 w-1/3 rounded bg-grey-80"></div><div class="h-9 w-2/5 rounded-full bg-grey-80"></div><div class="space-y-4 rounded-2xl border border-grey-90 bg-white px-4 py-4"><div class="h-5 w-1/2 rounded bg-grey-80"></div><div class="flex items-center justify-between gap-4"><div class="flex-1 space-y-2"><div class="h-5 w-2/3 rounded bg-grey-80"></div>
77<div class="h-4 w-1/2 rounded bg-grey-80"></div></div><div class="h-6 w-6 rounded-full bg-grey-80"></div></div><div class="flex items-center justify-between gap-4"><div class="flex-1 space-y-2"><div class="h-5 w-1/2 rounded bg-grey-80"></div><div class="h-4 w-1/3 rounded bg-grey-80"></div></div><div class="h-6 w-6 rounded-full bg-grey-80"></div></div><div class="flex items-center justify-between gap-4"><div class="flex-1 space-y-2"><div class="h-5 w-3/5 rounded bg-grey-80"></div><div class="h-4 w-2/5 rounded bg-grey-80"></div></div><div class="h-6 w-6 rounded-full bg-grey-80"></div></div></div>',5)])])):(p(),y("div",EDe,[c("h1",LDe,b(a(r)("drawerClaimBillDetail.title")),1),c("h3",RDe,b(a(i).paymentBill?.name),1),c("h3",MDe,b(a(i).paymentBill?.comment),1),d.value?(p(),y("div",ODe,[c("span",{class:"inline-flex items-center gap-2 rounded-full text-16-bold text-purple-50 whitespace-nowrap",style:kt(m(d.value))},[c("span",FDe,b(d.value.text),1)],4)])):E("",!0),l.value.length?(p(),y("ul",NDe,[(p(!0),y(j,null,le(l.value,(x,C)=>(p(),y("li",{key:C,class:"flex items-center justify-between gap-4 px-4 py-4"},[c("div",BDe,[c("p",VDe,b(x.title),1),x.text?(p(),y("p",HDe,b(x.text),1)):E("",!0)]),x.iconUrl?(p(),y("img",{key:0,src:`${x.iconUrl}_x3.png`,alt:"",class:"h-6 w-6 shrink-0"},null,8,qDe)):E("",!0)]))),128))])):E("",!0)]))]),c("div",jDe,[a(i).isLoading?(p(),y("div",UDe)):a(i).paymentBill?.isAllowedPay&&!a(i).isLoading?(p(),K(k,{key:1,class:"w-full",label:a(r)("pay"),loading:a(i).isPaymentLoad,onClick:h},null,8,["label","loading"])):E("",!0)])])}}}),WDe=Object.assign(zDe,{__name:"ClaimBillDetailPanel"}),GDe={class:"flex h-full flex-col"},YDe={class:"px-6"},KDe={class:"text-24-bold text-left"},QDe={class:"flex-1 px-6 pb-6 pt-4"},XDe={class:"mt-4 space-y-2"},ZDe=["onClick"],JDe={class:"text-black text-16"},eEe={class:"p-6"},tEe=G({__name:"ClaimBillDetailTypePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=hf(),i=[{value:"all",labelKey:"drawerBillsType.all"},{value:"paid",labelKey:"drawerBillsType.pay"},{value:"not_paid",labelKey:"drawerBillsType.notPay"},{value:"refunded",labelKey:"drawerBillsType.return"}];function o(d){return r.selectedFilterType===d}function l(d){r.selectedFilterType=d}function u(){const d=pu();d.statusFilter=r.selectedFilterType,s("go","back")}return(d,f)=>{const h=qu,g=ju,m=Ae("PrimaryButton");return p(),y("div",GDe,[c("div",YDe,[c("h1",KDe,b(a(n)("drawerBillsType.title")),1)]),c("div",QDe,[c("ul",XDe,[(p(),y(j,null,le(i,_=>c("li",{key:_.value},[c("button",{type:"button",class:"flex w-full items-center justify-between gap-4 rounded-xl px-0 py-3",onClick:v=>l(_.value)},[c("span",JDe,b(a(n)(_.labelKey)),1),o(_.value)?(p(),K(h,{key:0,class:""})):(p(),K(g,{key:1,class:""}))],8,ZDe)])),64))])]),c("div",eEe,[T(m,{class:"w-full",label:a(n)("save"),onClick:u},null,8,["label"])])])}}}),sEe=Object.assign(tEe,{__name:"ClaimBillDetailTypePanel"}),nEe=G({__name:"DateRangeWeeky",setup(e){const t=X({start:null,end:null}),s=new Date;return s.setHours(23,59,59,999),(n,r)=>{const i=Ae("VDatePicker");return p(),K(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=o=>t.value=o),"is-range":"",locale:"ru-RU","title-position":"left",columns:1,expanded:!0,transparent:"","max-date":a(s),borderless:""},null,8,["modelValue","max-date"])}}}),rEe=Object.assign(Gs(nEe,[["__scopeId","data-v-f9590806"]]),{__name:"DateRangeWeeky"}),iEe={class:"flex h-full flex-col px-6"},oEe={class:"pb-6"},aEe=G({__name:"ClaimBillDetailMonthPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=vg();function i(u,d){if(!u)return null;const f=u.getFullYear(),h=String(u.getMonth()+1).padStart(2,"0"),g=String(u.getDate()).padStart(2,"0");return`${f}-${h}-${g}${d?"T00:00:00.000":"T23:59:59.999"}`}function o(){const u=pu(),{start:d,end:f}=r.range;u.dateFrom=i(d,!0),u.dateTo=i(f??d,!1),s("go","back")}function l(){const u=pu();u.dateFrom=null,u.dateTo=null,s("go","back")}return(u,d)=>{const f=rEe,h=wu,g=Ae("PrimaryButton");return p(),y("div",iEe,[T(h,null,{default:Xe(()=>[T(f,{modelValue:a(r).range,"onUpdate:modelValue":d[0]||(d[0]=m=>a(r).range=m)},null,8,["modelValue"])]),_:1}),d[1]||(d[1]=c("div",{class:"flex-1 px-6 flex flex-col justify-center items-center"},null,-1)),c("div",oEe,[T(g,{class:"w-full",label:a(n)("save"),onClick:o},null,8,["label"]),T(g,{class:"w-full mt-4",variant:"secondary",label:a(n)("reset"),onClick:l},null,8,["label"])])])}}}),lEe=Object.assign(aEe,{__name:"ClaimBillDetailMonthPanel"}),cEe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function uEe(e,t){return p(),y("svg",cEe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M10.5 8.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M9.169 1.22c.42.047.8.27 1.048.612.174.242.232.53.258.813.026.286.025.65.025 1.09V4.5h.3c.552 0 .996 0 1.354.03.365.029.685.091.98.242.471.24.854.623 1.094 1.093.15.296.213.616.243.98.029.36.029.803.029 1.355v2.6c0 .551 0 .996-.03 1.354-.029.364-.092.684-.242.98a2.5 2.5 0 0 1-1.093 1.093c-.296.151-.616.214-.98.243-.36.03-.803.03-1.355.03H5.2c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.092c-.15-.296-.213-.617-.243-.98A18 18 0 0 1 1.5 10.8V7.37c0-.646-.006-1.082.125-1.48.11-.337.291-.647.53-.908.283-.31.667-.518 1.23-.836l3.985-2.24c.383-.216.701-.395.963-.513.26-.116.54-.207.836-.173M5.2 5.5c-.568 0-.965 0-1.273.025-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C2.5 7.235 2.5 7.632 2.5 8.2v2.6c0 .568 0 .965.025 1.273.025.302.071.476.138.607.144.283.374.513.656.657.132.067.306.113.608.137.308.026.705.026 1.273.026h5.6c.568 0 .965 0 1.273-.026.302-.024.476-.07.608-.137.282-.144.512-.374.656-.656.067-.132.113-.306.138-.608.025-.308.025-.705.025-1.273V8.2c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138-.308-.025-.705-.025-1.273-.025zm3.857-3.287c-.025-.003-.103-.002-.315.092-.21.095-.481.247-.882.472L4.794 4.502 5.2 4.5h4.3v-.765c0-.459 0-.769-.021-.998-.022-.231-.06-.3-.074-.32a.5.5 0 0 0-.348-.204","clip-rule":"evenodd"},null,-1)])])}const dEe={render:uEe},fEe={class:"flex items-center justify-between gap-4 text-13 text-grey-40"},pEe={class:"min-w-0 truncate"},hEe={class:"shrink-0"},mEe={key:0,class:"mt-1 text-16-bold text-black"},gEe={key:1,class:"mt-1 text-13 text-grey-40 line-clamp-2"},yEe={key:2,class:"mt-4 inline-flex items-center gap-2 rounded-full bg-white px-3 py-2"},_Ee={class:"text-13 text-black"},vEe={key:3,class:"mt-4 flex items-start justify-between gap-2"},bEe={key:0,class:"flex min-w-0 flex-wrap items-center gap-2"},xEe=["src"],kEe={class:"leading-none"},wEe={key:1,class:"absolute right-0 top-0 h-2 w-2 rounded-full bg-red-50"},CEe={class:"text-13 leading-4 text-black"},$Ee={key:0,class:"absolute right-0 top-0 h-2 w-2 rounded-full bg-red-50","aria-hidden":"true"},SEe={key:4,class:"mt-2"},AEe={class:"mt-1 flex items-center justify-between"},IEe={class:"text-13 text-grey-40"},TEe={key:0,class:"text-13 text-grey-40"},PEe=G({__name:"ClaimListItem",props:{title:{},dateText:{},fallbackDateText:{default:""},workTypeName:{default:""},text:{default:""},amountText:{default:""},priceText:{default:""},markers:{default:()=>[]},status:{default:void 0},hasUnreadMessages:{type:Boolean,default:!1},messagesAllowed:{type:Boolean,default:!1}},emits:["click","messagesClick"],setup(e,{emit:t}){const s=e,n=t,{t:r}=be(),i=A(()=>s.messagesAllowed);function o(l){return{color:l.textColor||"#111111",backgroundColor:l.backgroundColor||"transparent"}}return(l,u)=>{const d=dEe,f=D9;return p(),y("button",{type:"button",class:"w-full rounded-[12px] bg-grey-90 p-4 text-left",onClick:u[1]||(u[1]=h=>n("click"))},[c("div",fEe,[c("span",pEe,b(s.dateText),1),c("span",hEe,b(s.title),1)]),s.workTypeName?(p(),y("p",mEe,b(s.workTypeName),1)):E("",!0),s.text?(p(),y("p",gEe,b(s.text),1)):E("",!0),s.amountText?(p(),y("div",yEe,[T(d),c("span",_Ee,b(s.amountText),1)])):E("",!0),s.markers.length||a(i)?(p(),y("div",vEe,[s.markers.length?(p(),y("div",bEe,[(p(!0),y(j,null,le(s.markers,h=>(p(),y("div",{key:h.text,class:"relative inline-flex items-center gap-2 rounded-full px-3 py-1 pr-6 text-13 whitespace-nowrap",style:kt(o(h))},[h.iconUrl?(p(),y("img",{key:0,src:`${h.iconUrl}_x3.png`,alt:"",class:"h-[16px] w-[16px]",loading:"lazy"},null,8,xEe)):E("",!0),c("span",kEe,b(h.text),1),h.needIndicator?(p(),y("span",wEe)):E("",!0)],4))),128))])):E("",!0),a(i)?(p(),y("div",{key:1,class:"relative inline-flex h-8 w-[62px] shrink-0 items-start gap-2 rounded-full bg-white p-2",onClick:u[0]||(u[0]=St(h=>n("messagesClick"),["stop"]))},[T(f,{class:"h-4 w-4 shrink-0"}),c("span",CEe,b(a(r)("claimListItem.chat")),1),s.hasUnreadMessages?(p(),y("span",$
77Ee)):E("",!0)])):E("",!0)])):s.status?.text?(p(),y("div",SEe,[c("p",{class:"inline-flex rounded-full text-13",style:kt({color:s.status.textColor,backgroundColor:s.status.backgroundColor})},b(s.status.text),5),c("div",AEe,[c("p",IEe,b(s.fallbackDateText),1),s.priceText?(p(),y("p",TEe,b(s.priceText),1)):E("",!0)])])):E("",!0)])}}}),DEe=Object.assign(PEe,{__name:"ClaimListItem"}),EEe={class:"flex h-full flex-col"},LEe={class:"px-6"},REe={class:"text-24-bold text-left"},MEe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},OEe={key:0,class:"mt-6 space-y-4"},FEe={key:0,class:"flex h-full flex-col items-center justify-center text-16 text-black whitespace-pre-line text-center"},NEe={key:1,class:"mt-6 space-y-2"},BEe=G({__name:"ClaimsHistoryPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=m9(),i=X(null),o=Oe(),l=A(()=>!r.claims.length);let u=null;je(()=>{r.startLoad(),!(typeof window>"u"||!("IntersectionObserver"in window))&&(u=new IntersectionObserver(g=>{g.some(m=>m.isIntersecting)&&r.loadMore()},{root:null,rootMargin:"0px 0px 160px 0px"}),i.value&&r.hasMore&&u.observe(i.value))}),Se(()=>r.hasMore,g=>{if(u){if(!g){u.disconnect();return}i.value&&u.observe(i.value)}}),Se(i,(g,m)=>{u&&(m&&u.unobserve(m),g&&r.hasMore&&u.observe(g))}),Tt(()=>{u&&(u.disconnect(),u=null)}),Se(()=>o.userInfo,()=>{r.startLoad()});function d(g){if(!g)return"";const m=new Date(g);if(Number.isNaN(m.getTime()))return"";const _=new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"long"}).format(m),v=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(m);return`${_}, ${v}`}function f(g){s("go",{to:"claim-info",query:{id:g.id,premises_id:o.residence?.premisesId??null}})}function h(g){s("go",{to:"claim-chat",query:{id:g.id,premises_id:o.residence?.premisesId??null}})}return(g,m)=>{const _=tC,v=DEe,k=Og;return p(),y("div",EEe,[c("div",LEe,[c("h1",REe,b(a(n)("drawerClaimHistory.title")),1)]),c("div",MEe,[a(r).isLoading?(p(),y("div",OEe,[(p(),y(j,null,le(3,x=>c("div",{key:x,class:"animate-pulse"},[...m[0]||(m[0]=[c("div",{class:"mb-2 h-4 w-1/3 rounded bg-grey-80"},null,-1),c("div",{class:"h-6 w-full rounded bg-grey-80"},null,-1)])])),64))])):(p(),y(j,{key:1},[l.value?(p(),y("div",FEe,[T(_,{class:"mb-6"}),c("span",null,b(a(n)("drawerClaimHistory.empty")),1)])):(p(),y("div",NEe,[(p(!0),y(j,null,le(a(r).claims,x=>(p(),K(v,{key:x.id,title:x.title,"date-text":d(x.createdAt),"work-type-name":x.workTypeName,text:x.text,"amount-text":x.amount,markers:x.markers,"has-unread-messages":x.isHasUnreadMessages,"messages-allowed":x.messagesAllowed,onClick:C=>f(x),onMessagesClick:C=>h(x)},null,8,["title","date-text","work-type-name","text","amount-text","markers","has-unread-messages","messages-allowed","onClick","onMessagesClick"]))),128)),c("div",{ref_key:"loadMoreTrigger",ref:i,class:"flex items-center justify-center py-6"},[a(r).isLoadingMore?(p(),K(k,{key:0,class:"animate-[spin_0.8s_linear_infinite] text-black"})):E("",!0)],512)]))],64))])])}}}),VEe=Object.assign(BEe,{__name:"ClaimsHistoryPanel"}),HEe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function qEe(e,t){return p(),y("svg",HEe,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M93.585 23.586a2 2 0 0 1 2.828 2.828L92.827 30l3.586 3.586a2 2 0 0 1-2.828 2.828l-3.586-3.586-3.586 3.586a2 2 0 0 1-2.828-2.828L87.17 30l-3.585-3.586a2 2 0 0 1 2.828-2.828l3.586 3.586z"},null,-1),c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M59.999 4a10 10 0 0 1 9.239 6.173c.502 1.213.76 2.514.76 3.827v5.403a33 33 0 0 1 4.386 1.635C77.491 15.637 83.32 12 90 12c9.94 0 18 8.059 18 18 0 8.535-5.941 15.682-13.912 17.533.518 2.728.787 5.562.787 8.467v5.065c0 8.313 2.76 16.39 7.846 22.966 5.037 6.511.396 15.969-7.836 15.969H76.967A17 17 0 0 1 60 116a17.001 17.001 0 0 1-16.97-16H25.113c-8.232 0-12.873-9.458-7.836-15.969a37.53 37.53 0 0 0 7.847-22.967V56c0-17.257 9.502-32.1 24.875-36.602V14a10 10 0 0 1 6.172-9.24A10 10 0 0 1 60 4m-12.962 96a12.999 12.999 0 0 0 22.154 8.192A13 13 0 0 0 72.96 100zm12.962-78c-18.48 0-30.875 14.978-30.875 34v5.065c0 9.199-3.055 18.138-8.684 25.414C17.437 90.36 20.204 96 25.113 96h69.771c4.908 0 7.676-5.64 4.673-9.522a41.53 41.53 0 0 1-8.683-25.413V56c0-2.762-.266-5.44-.772-8.002L90 48c-9.942 0-18-8.059-18-18 0-1.841.276-3.618.79-5.291C69.014 22.973 64.725 22 59.999 22m30-6c-7.732 0-14 6.268-14 14s6.268 14 14 14c7.731 0 14-6.268 14-14s-6.269-14-14-14m-30-8a6 6 0 0 0-6 6v4.486a36.7 36.7 0 0 1 6-.486c2.067 0 4.07.167 6 .488V14a6 6 0 0 0-6-6","clip-rule":"evenodd"},null,-1)])])}const jEe={render:qEe},UEe={class:"flex h-full flex-col"},zEe={class:"px-6"},WEe={class:"text-24-bold text-left"},GEe={class:"flex-1 overflow-y-auto px-6 scrollbar-4-grey80 gutter-stable"},YEe={key:0,class:"mt-6 space-y-8"},KEe={class:"space-y-4"},QEe={key:1,class:"flex h-full items-center justify-center"},XEe={key:2,class:"flex h-full flex-col items-center justify-center gap-6 text-center"},ZEe={class:"text-16 text-black whitespace-pre-line"},JEe={class:"space-y-6 mt-6"},eLe={class:"mb-4"},tLe={class:"inline-flex rounded-full bg-purple-90 px-3 py-2 text-13 text-purple-50"},sLe={class:"divide-y divide-grey-80"},nLe=["onClick"],rLe={class:"flex-1"},iLe={class:"text-16"},oLe={class:"mt-2 text-13 text-grey-40 whitespace-pre-line"},aLe={class:"shrink-0 flex items-center text-16 text-grey-40"},lLe={key:0,class:"ml-2.5 h-[12px] w-[12px] rounded-full bg-red-50","aria-hidden":"true"},cLe=G({__name:"NotificationsPanel",setup(e){const{t}
77=be(),s=_9(),n=X(null),r=A(()=>!s.sections.length&&!s.isLoading),i=A(()=>s.isLoading&&!s.sections.length);let o=null;je(()=>{s.load(),!(typeof window>"u"||!("IntersectionObserver"in window))&&(o=new IntersectionObserver(d=>{d.some(f=>f.isIntersecting)&&s.loadMore()},{root:null,rootMargin:"0px 0px 160px 0px"}),n.value&&s.hasMore&&o.observe(n.value))}),Se(()=>s.hasMore,d=>{if(o){if(!d){o.disconnect();return}n.value&&o.observe(n.value)}}),Se(n,(d,f)=>{o&&(f&&o.unobserve(f),d&&s.hasMore&&o.observe(d))}),Tt(()=>{o&&(o.disconnect(),o=null)});const{openShareOrExternal:l}=Dl(),u=async d=>{if(d.url.trim()){try{const f=new URL(d.url,window.location.origin);if(f.pathname==="/share/claim/detail/chat"){await Bt(`${f.pathname}${f.search}`);return}}catch{}l(d.url)}};return(d,f)=>{const h=Og,g=jEe;return p(),y("div",UEe,[c("div",zEe,[c("h1",WEe,b(a(t)("drawerNotifications.title")),1)]),c("div",GEe,[i.value?(p(),y("div",YEe,[(p(),y(j,null,le(3,m=>c("section",{key:`notification-skeleton-${m}`},[f[1]||(f[1]=c("div",{class:"mb-4"},[c("span",{class:"inline-flex rounded-full bg-purple-90/60 px-3 py-2"},[c("span",{class:"h-4 w-24 rounded-full bg-purple-50/40 animate-pulse"})])],-1)),c("ul",KEe,[(p(),y(j,null,le(3,_=>c("li",{key:`notification-skeleton-item-${m}-${_}`,class:"flex items-start justify-between gap-4"},[...f[0]||(f[0]=[c("div",{class:"flex-1 space-y-2"},[c("div",{class:"h-5 w-3/4 rounded bg-grey-80 animate-pulse"}),c("div",{class:"h-4 w-full rounded bg-grey-80 animate-pulse"})],-1),c("span",{class:"h-4 w-12 rounded bg-grey-80 animate-pulse"},null,-1)])])),64))])])),64))])):a(s).isLoading?(p(),y("div",QEe,[T(h,{class:"h-10 w-10 animate-[spin_0.8s_linear_infinite] text-black"})])):r.value?(p(),y("div",XEe,[T(g,{class:""}),c("p",ZEe,b(a(t)("drawerNotifications.empty")),1)])):(p(),y(j,{key:3},[c("div",JEe,[(p(!0),y(j,null,le(a(s).sections,m=>(p(),y("section",{key:m.date},[c("div",eLe,[c("span",tLe,b(m.date),1)]),c("ul",sLe,[(p(!0),y(j,null,le(m.list,_=>(p(),y("li",{key:_.id,class:"flex cursor-pointer items-start justify-between gap-4 py-4",onClick:v=>u(_.payload)},[c("div",rLe,[c("p",iLe,b(_.title),1),c("p",oLe,b(_.body),1)]),c("span",aLe,[Qe(b(_.createdAtTime)+" ",1),_.maskedAsRead?E("",!0):(p(),y("span",lLe))])],8,nLe))),128))])]))),128))]),c("div",{ref_key:"loadMoreTrigger",ref:n,class:"flex items-center justify-center py-6"},[a(s).isLoadingMore?(p(),K(h,{key:0,class:"animate-[spin_0.8s_linear_infinite] text-black"})):E("",!0)],512)],64))])])}}}),uLe=Object.assign(cLe,{__name:"NotificationsPanel"}),dLe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function fLe(e,t){return p(),y("svg",dLe,[...t[0]||(t[0]=[ls('<path fill="#9CCA7F" d="M27.499 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM44.999 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM62.499 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM79.999 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99z"></path><path fill="#9CCA7F" fill-rule="evenodd" d="M40.999 30.505h.052c.647 0 1.248 0 1.752.04.54.045 1.142.147 1.737.45a4.5 4.5 0 0 1 1.964 1.964c.303.595.405 1.197.45 1.737.04.504.04 1.105.04 1.752v12.104c0 .647 0 1.248-.04 1.752-.045.54-.147 1.142-.45 1.737a4.5 4.5 0 0 1-1.964 1.964c-.595.303-1.197.405-1.737.45-.503.04-1.
77105.04-1.752.04H23.947c-.647 0-1.248 0-1.752-.04-.54-.045-1.142-.147-1.737-.45a4.5 4.5 0 0 1-1.964-1.964c-.303-.595-.405-1.197-.45-1.737-.04-.504-.04-1.105-.04-1.752V36.448c0-.647 0-1.248.04-1.752.045-.54.147-1.142.45-1.737a4.5 4.5 0 0 1 1.964-1.964c.595-.303 1.197-.405 1.737-.45.504-.04 1.105-.04 1.752-.04H41m1.794 23.83.305-.033.084-.011-.033.006-.051.005a7 7 0 0 1-.305.033m1.692-.437.211-.117.077-.047-.023.017-.054.03q-.104.06-.21.117m1.912-1.912.066-.14.023-.052-.012.03-.01.022zM22.52 34.523c.316-.026.746-.028 1.479-.028h17c.733 0 1.163.002 1.48.028.146.011.224.026.257.034h.004a.5.5 0 0 1 .2.2l.002.006c.008.033.023.111.035.258.025.316.027.746.027 1.479v12c0 .733-.002 1.163-.027 1.48a2 2 0 0 1-.035.257l-.002.004a.5.5 0 0 1-.2.2l-.004.002a2 2 0 0 1-.258.035c-.316.025-.746.027-1.479.027h-17c-.733 0-1.163-.002-1.48-.028a2 2 0 0 1-.257-.034l-.005-.002a.5.5 0 0 1-.2-.2l-.001-.004a2 2 0 0 1-.035-.258c-.025-.316-.027-.746-.027-1.479v-12c0-.733.002-1.163.027-1.48.012-.146.027-.224.035-.257v-.005a.5.5 0 0 1 .2-.2l.006-.001c.033-.008.111-.023.258-.035M20.99 30.9l.009-.002.002-.001q.08-.027.16-.05l-.16.05zl-.02.007zm0 0-.02.007z" clip-rule="evenodd"></path><path fill="#9CCA7F" fill-rule="evenodd" d="M76.499 18.005h.047c2.745 0 4.926 0 6.683.143 1.79.147 3.318.453 4.715 1.165a12 12 0 0 1 5.242 5.242c.712 1.397 1.018 2.924 1.165 4.715.143 1.757.143 3.938.143 6.683v5.971l11.495 3.082c6.399 1.715 10.196 8.292 8.482 14.69l-10.354 38.638c-1.715 6.398-8.292 10.197-14.69 8.482L26.643 89.992a11.99 11.99 0 0 1-8.36-8.055 35 35 0 0 1-1.514-.085c-1.79-.147-3.318-.453-4.715-1.165a12 12 0 0 1-5.242-5.242c-.712-1.397-1.018-2.924-1.165-4.714-.08-.995-.116-2.125-.131-3.416l-.01-1.344L5.505 64V35.953c0-2.745 0-4.926.143-6.684.147-1.79.453-3.317 1.165-4.714a12 12 0 0 1 5.242-5.242c1.397-.712 2.924-1.018 4.715-1.165 1.757-.143 3.938-.143 6.683-.143H76.5m16.688 57.44c.421-.827.698-1.702.885-2.648l11.902 3.188-5.71 21.317a8.006 8.006 0 0 1-9.804 5.66L27.676 86.139a7.99 7.99 0 0 1-5.084-4.147q.443.001.907.003h53.047c2.745 0 4.926 0 6.683-.143 1.79-.147 3.318-.453 4.715-1.165a12 12 0 0 0 5.242-5.242m-76.093-53.32c1.567-.128 3.572-.13 6.405-.13h53c2.833 0 4.838.002 6.405.13 1.545.126 2.488.364 3.23.742a8 8 0 0 1 3.498 3.498c.378.742.616 1.685.742 3.23.128 1.567.13 3.572.13 6.405v28c0 2.833-.002 4.838-.13 6.405-.126 1.545-.364 2.488-.742 3.23a8 8 0 0 1-3.498 3.498c-.742.378-1.685.616-3.23.742-1.567.128-3.572.13-6.405.13h-53c-2.833 0-4.838-.002-6.405-.13-1.545-.126-2.488-.364-3.23-.742a8 8 0 0 1-3.498-3.498c-.378-.742-.616-1.685-.742-3.23-.096-1.175-.121-2.597-.128-4.43L9.494 36c0-2.833.002-4.838.13-6.405.126-1.545.364-2.488.742-3.23a8 8 0 0 1 3.498-3.498c.742-.378 1.685-.616 3.23-.742M94.45 68.767c.041-1.367.043-2.943.043-4.767v-4.031l14.716 3.942-2.204 8.22zm15.791-8.71-15.748-4.22v-9.781l10.463 2.803a8.006 8.006 0 0 1 5.66 9.805zM9.422 31.103q.003-.126.008-.25l.004-.083q-.007.163-.012.334" clip-rule="evenodd"></path><path fill="#9CCA7F" d="M69.214 37.963a1.996 1.996 0 0 1 2.82 0 6.43 6.43 0 0 1 1.88 4.537 6.42 6.42 0 0 1-1.88 4.537 1.996 1.996 0 0 1-2.82-2.822 2.43 2.43 0 0 0 0-3.43 1.997 1.997 0 0 1 0-2.822"></path><path fill="#9CCA7F" d="M74.546 32.438a1.994 1.994 0 0 1 2.82 0 14.23 14.23 0 0 1 4.17 10.062 14.23 14.23 0 0 1-4.17 10.063 1.994 1.994 0 1 1-2.82-2.82 10.24 10.24 0 0 0 2.986-6.74l.013-.503a10.24 10.24 0 0 0-3-7.242 1.994 1.994 0 0 1 0-2.82"></path>',5)])])}const pLe={render:fLe},hLe={class:"flex h-full flex-col"},mLe={class:"px-6"},gLe={class:"text-24-bold text-left"},yLe={class:"flex-1 px-6 pb-6"},_Le={key:0,class:"mt-6 space-y-4"},vLe={key:1,class:"flex h-full flex-col"},bLe={key:0,class:"flex flex-1 flex-col items-center justify-center text-center"},xLe={class:"mt-6 text-16 text-black"},kLe={key:1,class:"mt-6 flex-1 overflow-y-auto scrollbar-4-grey80"},wLe={class:"flex-1"},CLe={class:"text-16 text-black"},$Le={key:0,class:"mt-0 text-13 text-emerald-primary"},SLe=["aria-label","onClick"],ALe={class:"p-6"},ILe=G({__name:"CardListPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=_g(),{cards:i,isLoading:o}=ho(r),l=A(()=>i.value.slice().sort((g,m)=>Number(m.isPriority)-Number(g.isPriority))),u=A(()=>!l.value.length);je(async()=>{await r.fetchCards()});function d(g){if(!g)return"";const m=g.trim();if(!m)return"";if(m.includes("*"))return m;const _=m.replace(/\D/g,"");return _?_.match(/.{1,4}/g)?.join(" ")??m:m}function f(){s("go","card-add")}function h(g){s("go",{to:"card-delete",query:{id:g}})}return(g,m)=>{const _=pLe,v=Xl,k=jl,x=pa,C=Ae("PrimaryButton");return p(),y("div",hLe,[c("div",mLe,[c("h1",gLe,b(a(n)("drawerCardList.title")),1)]),c("div",yLe,[a(o)?(p(),y("div",_Le,[(p(),y(j,null,le(3,w=>c("div",{key:w,class:"h-20 animate-pulse rounded-3xl bg-grey-80"})),64))])):(p(),y("div",vLe,[u.value?(p(),y("div",bLe,[T(_,{class:"[&>path]:fill-grey-70"}),c("p",xLe,b(a(n)("drawerCardList.empty")),1)])):(p(),y("div",kLe,[c("ul",null,[(p(!0),y(j,null,le(l.value,w=>(p(),y("li",{key:w.cardId,class:"flex items-start gap-3 py-4"},[T(v,{class:"h-6 w-6 text-grey-30"}),c("div",wLe,[c("p",CLe,b(d(w.number)),1),w.isPriority?(p(),y("p",$Le,b(a(n)("drawerCardList.selected")),1)):E("",!0)]),c("button",{type:"button",class:"text-grey-40 transition hover:text-black","aria-label":a(n)("drawerCardList.remove",{number:d(w.number)}),onClick:$=>h(w.cardId)},[T(k,{class:"[&>path]:fill-grey-40"})],8,SLe)]))),128))])]))]))]),c("div",ALe,[T(C,{class:"w-full",label:a(n)("drawerCardList.button"),onClick:f},{icon:Xe(()=>[T(x)]),_:1},8,["label"])])])}}}),TLe=Object.assign(ILe,{__name:"CardListPanel"}),PLe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function DLe(e,t){return p(),y("svg",PLe,[...t[0]||(t[0]=[ls('<path fill="#9CCA7F" d="M27.499 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM44.999 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM62.499 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99zM79.999 65.505a1.995 1.995 0 0 1 0 3.99h-7.5a1.995 1.995 0 0 1 0-3.99z"></path><path fill="#9CCA7F" fill-rule="evenodd" d="M41.05 30.505c.648 0 1.25 0 1.753.04.54.045 1.142.147 1.737.45a4.5 4.5 0 0 1 1.964 1.964c.303.595.405 1.197.45 1.737.04.504.04 1.105.04 1.752v12.104c0 .647 0 1.248-.04 1.752-.045.54-.147 1.142-.45 1.737a4.5 4.5 0 0 1-1.964 1.964c-.595.303-1.197.405-1.737.45-.503.04-1.
77105.04-1.752.04H23.947c-.647 0-1.248 0-1.752-.04-.54-.045-1.142-.147-1.737-.45a4.5 4.5 0 0 1-1.964-1.964c-.303-.595-.405-1.197-.45-1.737-.04-.504-.04-1.105-.04-1.752V36.448c0-.647 0-1.248.04-1.752.045-.54.147-1.142.45-1.737a4.5 4.5 0 0 1 1.964-1.964c.595-.303 1.197-.405 1.737-.45.504-.04 1.105-.04 1.752-.04zm2.048 23.798.051-.006.033-.006zm1.598-.522.054-.03.023-.017q-.037.024-.077.047M24 34.495c-.733 0-1.163.002-1.48.028a2 2 0 0 0-.257.034h-.005a.5.5 0 0 0-.2.2l-.001.006a2 2 0 0 0-.035.258c-.025.316-.027.746-.027 1.479v12c0 .733.002 1.163.027 1.48.012.146.027.224.035.257v.004a.5.5 0 0 0 .2.2l.006.002c.033.008.111.023.258.035.316.025.746.027 1.479.027h17c.733 0 1.163-.002 1.48-.028.146-.011.224-.026.257-.034l.004-.002a.5.5 0 0 0 .2-.2l.002-.004c.008-.033.023-.111.035-.258.025-.316.027-.746.027-1.479v-12c0-.733-.002-1.163-.027-1.48a2 2 0 0 0-.035-.257l-.002-.005a.5.5 0 0 0-.2-.2l-.004-.001a2 2 0 0 0-.258-.035c-.316-.025-.746-.027-1.479-.027zM20.99 30.9l.009-.002.002-.002z" clip-rule="evenodd"></path><path fill="#9CCA7F" d="M74.546 32.438a1.994 1.994 0 0 1 2.82 0 14.23 14.23 0 0 1 4.17 10.062 14.23 14.23 0 0 1-4.17 10.063 1.994 1.994 0 1 1-2.82-2.82 10.24 10.24 0 0 0 2.986-6.74l.013-.503a10.24 10.24 0 0 0-3-7.242 1.994 1.994 0 0 1 0-2.82"></path><path fill="#9CCA7F" d="M69.214 37.963a1.996 1.996 0 0 1 2.82 0 6.43 6.43 0 0 1 1.88 4.537 6.42 6.42 0 0 1-1.88 4.537 1.996 1.996 0 0 1-2.82-2.822 2.43 2.43 0 0 0 0-3.43 1.997 1.997 0 0 1 0-2.822M101.586 15.586a2 2 0 1 1 2.828 2.828L100.828 22l3.586 3.586a2 2 0 0 1-2.828 2.828L98 24.828l-3.586 3.586a2 2 0 1 1-2.828-2.828L95.172 22l-3.586-3.586a2 2 0 1 1 2.828-2.828L98 19.172z"></path><path fill="#9CCA7F" fill-rule="evenodd" d="M98 4c9.941 0 18 8.059 18 18s-8.059 18-18 18c-1.2 0-2.372-.119-3.506-.343v2.267l11.495 3.082c6.399 1.715 10.196 8.292 8.482 14.69l-10.354 38.638c-1.715 6.398-8.292 10.197-14.69 8.482L26.643 89.992a11.99 11.99 0 0 1-8.36-8.055 35 35 0 0 1-1.514-.085c-1.79-.147-3.318-.453-4.715-1.165a12 12 0 0 1-5.242-5.242c-.712-1.397-1.018-2.924-1.165-4.714-.08-.995-.116-2.125-.131-3.416l-.01-1.344L5.505 64V35.953c0-2.745 0-4.926.143-6.684.147-1.79.453-3.317 1.165-4.714a12 12 0 0 1 5.242-5.242c1.397-.712 2.924-1.018 4.715-1.165 1.757-.143 3.938-.143 6.683-.143h53.094c1.448 0 2.74 0 3.894.021C82.25 9.997 89.424 4 98 4m-3.928 68.797c-.187.946-.464 1.82-.886 2.648a12 12 0 0 1-5.242 5.243c-1.397.711-2.924 1.017-4.715 1.164-1.757.143-3.938.143-6.683.143H23.499q-.464 0-.907-.003a7.99 7.99 0 0 0 5.084 4.147l62.784 16.823a8.006 8.006 0 0 0 9.804-5.66l5.71-21.317zM23.5 21.995c-2.833 0-4.838.002-6.405.13-1.545.126-2.488.364-3.23.742a8 8 0 0 0-3.498 3.498c-.378.742-.616 1.685-.742 3.23-.128 1.567-.13 3.572-.13 6.405l.002 29.975c.007 1.833.032 3.255.128 4.43.126 1.545.364 2.488.742 3.23a8 8 0 0 0 3.498 3.498c.742.378 1.685.616 3.23.742 1.567.128 3.572.13 6.405.13h53c2.833 0 4.838-.002 6.405-.13 1.545-.126 2.488-.364 3.23-.742a8 8 0 0 0 3.498-3.498c.378-.742.616-1.685.742-3.23.128-1.567.13-3.572.13-6.405V38.368C84.308 35.526 80.004 29.271 80 22.01a264 264 0 0 0-3.501-.015zM94.494 64c0 1.824-.002 3.4-.043 4.767l12.555 3.365 2.204-8.22-14.716-3.943zm0-8.163 15.748 4.22.375-1.393a8.006 8.006 0 0 0-5.66-9.805l-10.463-2.803zM98 8c-7.732 0-14 6.268-14 14s6.268 14 14 14 14-6.268 14-14-6.268-14-14-14" clip-rule="evenodd"></path>',5)])])}const ELe={render:DLe},LLe=Ke("cardDeleteStore",{state:()=>({isLoading:!1,id:""}),actions:{async deleteCard(){this.isLoading=!0;const t=await ue().deleteCard(this.id);return this.isLoading=!1,t}}}),RLe={class:"flex h-full flex-col"},MLe={class:"flex-1 px-6 flex flex-col justify-center items-center"},OLe={class:"text-24-bold text-center"},FLe=G({__name:"CardDeletePanel",emits:["go"],setup(e,{emit:t}){const s=st(),n=LLe(),{$showSnackbar:r}=Te(),i=t,{t:o}=be();je(()=>{const d=s.query.id,f=Array.isArray(d)?d[0]:d;n.id=f??""});async function l(){const d=await n.deleteCard();d.ok?u():r(d.error.message??o("-26"))}function u(){i("go","back")}return(d,f)=>{const h=ELe,g=Ae("PrimaryButton");return p(),y("div",RLe,[c("div",MLe,[T(h),c("h1",OLe,b(a(o)("drawerCardDelete.title")),1),T(g,{loading:a(n).isLoading,class:"w-full mt-6",label:a(o)("delete"),onClick:l},null,8,["loading","label"]),T(g,{class:"w-full mt-4",variant:"secondary",label:a(o)("doCancel"),onClick:u},null,8,["label"])])])}}}),NLe=Object.assign(FLe,{__name:"CardDeletePanel"}),BLe={class:"flex h-full flex-col"},VLe={class:"px-6"},HLe={class:"text-24-bold text-left"},qLe={class:"flex-1 px-6 pb-6 mt-6"},jLe={class:"grid grid-cols-2 gap-6 mt-6"},ULe={class:"p-6"},zLe=G({__name:"CardAddPanel",emits:["go"],setup(e,{emit:t}){const{$showSnackbar:s}=Te(),n=t,{t:r}=be(),i=kr(),{cardForm:o,isFormValid:l}=ho(i),u=i.formatCardNumber,d=i.formatExpDate,f=X(null),h=X(null),g=X(null);Se(()=>o.value.cardNumber.replace(/\s/g,""),(_,v="")=>{_.length===16&&v.length!==16&<(()=>h.value?.focus())}),Se(()=>o.value.expDate,(_,v="")=>{_.length===5&&v.length!==5&<(()=>g.value?.focus())}),je(()=>{i.loadCpKey()});async function m(){if(!l.value)return;const _=await i.submitCardForm();if(_.ok)if(_.data.secureCheckNeeded)Nu().card=_.data,n("go","card-add-secure");else{const v=i.isFromClaims;i.$reset(),v&&i.markClaimRetryPending(),n("go","back")}else s(_.error.message??r("-26"))}return(_,v)=>{const k=Ae("LabeledTextField"),x=Ae("PrimaryButton");return p(),y("div",BLe,[c("div",VLe,[c("h1",HLe,b(a(r)(a(i).isFromClaims?"drawerCardList.claimsTitle":"drawerCardList.title")),1)]),c("div",qLe,[T(k,{ref_key:"cardNumberField",ref:f,modelValue:a(o).cardNumber,"onUpdate:modelValue":v[0]||(v[0]=C=>
77a(o).cardNumber=C),label:a(r)("drawerNewCard.number"),"digits-only-on-paste":!0,formatter:a(u),"input-mode":"numeric"},null,8,["modelValue","label","formatter"]),c("div",jLe,[T(k,{ref_key:"expDateField",ref:h,modelValue:a(o).expDate,"onUpdate:modelValue":v[1]||(v[1]=C=>a(o).expDate=C),label:a(r)("drawerNewCard.date"),formatter:a(d),"input-mode":"numeric"},null,8,["modelValue","label","formatter"]),T(k,{ref_key:"cvvField",ref:g,modelValue:a(o).cvv,"onUpdate:modelValue":v[2]||(v[2]=C=>a(o).cvv=C),label:a(r)("drawerNewCard.cvv"),type:"password","digits-only-on-paste":!0,formatter:a(q0)(3),"input-mode":"numeric"},null,8,["modelValue","label","formatter"])])]),c("div",ULe,[T(x,{class:"w-full",disabled:!a(l),loading:a(i).isCreating,label:a(r)("next"),onClick:m},null,8,["disabled","loading","label"])])])}}}),sC=Object.assign(zLe,{__name:"CardAddPanel"}),WLe={class:"flex h-full flex-col"},GLe={key:0,class:"flex-1 overflow-hidden"},YLe=["src"],KLe={key:1,class:"flex flex-1 flex-col items-center justify-center px-6 text-center"},QLe=G({__name:"CardAddSecurePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=Nu(),r=Ne(),i=X(null),o=X(!1);let l=null;const u=A(()=>{const k=n.card?.reqUrl??"",x=r.sessionToken;if(!k)return"";if(!x)return k;try{const C=typeof window>"u"?"https://placeholder.local":window.location.origin,w=new URL(k,C);return w.searchParams.set("btlrsid",x),w.toString()}catch{const C=k.includes("?")?"&":"?";return`${k}${C}btlrsid=${encodeURIComponent(x)}`}});function d(k){try{let C=new URL(k,window.location.origin).pathname||"";return C.length>1&&C.endsWith("/")&&(C=C.slice(0,-1)),C}catch{return""}}function f(){o.value||(o.value=!0,_(),v())}function h(){const k=i.value;if(k)try{const x=k.contentWindow?.location?.href??"";if(!x)return;d(x)==="/cards/done"&&f()}catch{}}function g(){h()}function m(){_(),o.value=!1;const k=i.value;k&&(k.addEventListener("load",g),l=window.setInterval(h,400))}function _(){l!=null&&(clearInterval(l),l=null),i.value?.removeEventListener("load",g)}function v(){const k=kr(),x=k.isFromClaims;k.reset(),x&&k.markClaimRetryPending(),s("go","back"),requestAnimationFrame(()=>s("go","back"))}return Se([i,u],([k,x],C)=>{const w=C?.[0];if(w&&w!==k&&w.removeEventListener("load",g),!x||!k){_();return}m()},{immediate:!0}),Tt(()=>{_()}),(k,x)=>(p(),y("div",WLe,[u.value?(p(),y("div",GLe,[c("iframe",{ref_key:"iframeRef",ref:i,src:u.value,class:"h-full w-full",referrerpolicy:"no-referrer",sandbox:"allow-forms allow-scripts allow-same-origin"},null,8,YLe)])):(p(),y("div",KLe))]))}}),mm=Object.assign(QLe,{__name:"CardAddSecurePanel"}),XLe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function ZLe(e,t){return p(),y("svg",XLe,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M16.742 85.991a2 2 0 0 1 2 2v5.089l-.01.205a2 2 0 0 1-3.98 0l-.01-.205v-5.089a2 2 0 0 1 2-2M29.465 83.446a2 2 0 0 1 2 2v5.09l-.01.204a2 2 0 0 1-3.98 0l-.01-.205v-5.089a2 2 0 0 1 2-2M42.188 80.901a2 2 0 0 1 2 2v5.09l-.011.204a2 2 0 0 1-3.979 0l-.01-.205v-5.089a2 2 0 0 1 2-2M16.742 65.634a2 2 0 0 1 2 2v5.089l-.01.205a2 2 0 0 1-3.98 0l-.01-.205v-5.09a2 2 0 0 1 2-2M29.465 63.089a2 2 0 0 1 2 2v5.089l-.01.205a2 2 0 0 1-3.98 0l-.01-.205v-5.09a2 2 0 0 1 2-2M42.188 60.545a2 2 0 0 1 2 2v5.089l-.011.205a2 2 0 0 1-3.979 0l-.01-.205v-5.09a2 2 0 0 1 2-2M16.742 45.276a2 2 0 0 1 2 2v5.09l-.01.204a2 2 0 0 1-3.98 0l-.01-.205v-5.089a2 2 0 0 1 2-2M29.465 42.732a2 2 0 0 1 2 2v5.09l-.01.204a2 2 0 0 1-3.98 0l-.01-.205v-5.089a2 2 0 0 1 2-2M42.188 40.187a2 2 0 0 1 2 2v5.09l-.011.204a2 2 0 0 1-3.979 0l-.01-.205v-5.089a2 2 0 0 1 2-2M16.742 24.92a2 2 0 0 1 2 2v5.089l-.01.205a2 2 0 0 1-3.98 0l-.01-.205v-5.09a2 2 0 0 1 2-2M29.465 22.375a2 2 0 0 1 2 2v5.089l-.01.205a2 2 0 0 1-3.98 0l-.01-.205v-5.09a2 2 0 0 1 2-2M42.188 19.83a2 2 0 0 1 2 2v5.089l-.011.205a2 2 0 0 1-3.979 0l-.01-.205V21.83a2 2 0 0 1 2-2M76.54 87.264a2 2 0 0 1 2 2v5.088l-.012.206a2 2 0 0 1-3.978 0l-.01-.206v-5.088a2 2 0 0 1 2-2M86.719 85.991a2 2 0 0 1 2 2v5.089l-.011.205a2 2 0 0 1-3.978 0l-.011-.205v-5.089a2 2 0 0 1 2-2M76.54 69.451a2 2 0 0 1 2 2v5.089l-.012.205a2 2 0 0 1-3.978 0l-.01-.205V71.45a2 2 0 0 1 2-2M86.719 68.179a2 2 0 0 1 2 2v5.088l-.011.206a2 2 0 0 1-3.978 0l-.011-.206V70.18a2 2 0 0 1 2-2M76.54 51.639a2 2 0 0 1 2 2v5.088l-.012.206a2 2 0 0 1-3.978 0l-.01-.206V53.64a2 2 0 0 1 2-2M86.719 50.366a2 2 0 0 1 2 2v5.089l-.011.205a2 2 0 0 1-3.978 0l-.011-.205v-5.089a2 2 0 0 1 2-2"},null,-1),c("path",{fill:"#9CCA7F","fill-rule":"evenodd",d:"M52.737 3.943a2 2 0 0 1 1.092.162L81.82 16.828a2 2 0 0 1 1.173 1.821V30.1a2 2 0 0 1-4 0V19.937L55.002 9.031v103.042h9.995V44.731a2 2 0 0 1 1.592-1.958l30.536-6.361.174-.028c.406-.048.82.03 1.182.225l16.54 8.907a2 2 0 0 1 1.052 1.76v66.797a2 2 0 0 1-2 2H5.926a2 2 0 0 1-2-2V16.104l.008-.174a2 2 0 0 1 1.569-1.78L52.579 3.97zM7.926 17.718v94.355h43.076V8.404zm61.071 28.64v65.715h26.536V40.829zm30.536 65.715h12.54V48.471l-12.54-6.753z","clip-rule":"evenodd"},null,-1)])])}const JLe={render:ZLe},eRe={class:"flex h-full flex-col"},tRe={class:"flex-1 overflow-y-auto px-6 pb-6 flex flex-col"},sRe={class:"text-24-bold text-left"},nRe={key:0,class:"mt-6 space-y-4"},rRe={key:1,class:"mt-6 flex flex-1 flex-col gap-6"},iRe={key:0,class:"rounded-2xl bg-red-90/30 px-4 py-3 text-13 text-red-50"},oRe={key:1,class:"flex flex-1 flex-col items-center justify-center text-center gap-4"},aRe={class:"text-16 text-black"},lRe={key:2},cRe={class:"flex items-start gap-4"},uRe={class:"flex-1"},dRe={class:"text-16 text-black"},fRe={key:0,class:"text-13 text-grey-40 mt-2"},pRe=["onClick"],hRe={class:"p-6 pt-0"},mRe=G({__name:"AddressListPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=bg(),i=Oe(),o=A(()=>i.userInfo?.selectAddresses??[]),l=A(()=>
77r.error?.message??""),u=xg();je(async()=>{i.userInfo||await r.refresh()});function d(g){const m=[];return g.flatType&&g.flat&&m.push(`${a0(g.flatType)} ${g.flat}`),g.floor&&m.push(`${n("address.add.floor").toLowerCase()} ${g.floor}`),g.entrance&&m.push(`${n("address.add.enterance").toLocaleLowerCase()} ${g.entrance}`),m.join(", ")}function f(){s("go",{to:"profile-address-premises",replace:!1})}function h(g){u.setAddress(g),s("go",{to:"profile-address-edit",replace:!1})}return(g,m)=>{const _=JLe,v=ag,k=Ae("PrimaryButton");return p(),y("div",eRe,[c("div",tRe,[c("h1",sRe,b(a(n)("address.list.title")),1),a(r).isLoading?(p(),y("div",nRe,[(p(),y(j,null,le(3,x=>c("div",{key:x,class:"rounded-2xl bg-grey-90 p-4 animate-pulse"},[...m[0]||(m[0]=[c("div",{class:"h-4 w-1/2 bg-grey-70 rounded"},null,-1),c("div",{class:"h-4 w-1/3 bg-grey-80 rounded mt-3"},null,-1),c("div",{class:"h-4 w-1/4 bg-grey-80 rounded mt-3"},null,-1)])])),64))])):(p(),y("div",rRe,[l.value?(p(),y("div",iRe,b(l.value),1)):E("",!0),o.value.length?(p(),y("div",lRe,[(p(!0),y(j,null,le(o.value,x=>(p(),y("div",{key:x.residentId,class:"py-4"},[c("div",cRe,[c("div",uRe,[c("div",dRe,b(x.addressStreetPart),1),d(x)?(p(),y("div",fRe,b(d(x)),1)):E("",!0)]),c("div",{class:"flex items-start cursor-pointer",onClick:C=>h(x)},[T(v,{class:"[&>path]:fill-paleLime-primary"})],8,pRe)])]))),128))])):(p(),y("div",oRe,[T(_),c("p",aRe,b(a(n)("address.list.emptyTitle")),1)]))]))]),c("div",hRe,[T(k,{label:a(n)("address.list.add"),onClick:f},null,8,["label"])])])}}}),gRe=Object.assign(mRe,{__name:"AddressListPanel"}),yRe={class:"flex h-full flex-col"},_Re={class:"flex-1 overflow-y-auto px-6 pb-6"},vRe={class:"text-24-bold text-left text-black"},bRe={key:0,class:"mt-4 text-13 text-grey-40"},xRe={key:1,class:"mt-6 space-y-6"},kRe={class:"text-13 text-grey-40"},wRe={class:"mt-0.5 text-16 text-black"},CRe={class:"mt-3 space-y-2"},$Re=["onClick"],SRe={class:"flex h-6 w-6 shrink-0 items-center justify-center","aria-hidden":"true"},ARe={class:"text-16 text-black"},IRe={class:"p-6 pt-0"},TRe=G({__name:"AddressSelectPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Oe(),i=A(()=>r.userInfo?.selectAddresses??[]),o=A(()=>r.residence?.residentId??null),l=A(()=>{const g=new Map;for(const m of i.value)g.has(m.premisesId)||g.set(m.premisesId,{premisesId:m.premisesId,settlement:m.addressSettlementPart,street:m.addressStreetPart,addresses:[]}),g.get(m.premisesId).addresses.push(m);return Array.from(g.values())}),u=g=>g.flatType&&g.flat?`${a0(g.flatType)} ${g.flat}`:g.address,d=g=>g.residentId===o.value,f=g=>{if(!d(g)&&(r.saveAddress(g),Jl().loadInfo(),ba().openIfNeeded(g))){s("go",{to:"address-organization",replace:!0});return}s("go","back")},h=()=>{s("go",{to:"profile-address-premises",replace:!1})};return(g,m)=>{const _=qu,v=ju,k=pa,x=Ae("PrimaryButton");return p(),y("div",yRe,[c("div",_Re,[c("h1",vRe,b(a(n)("drawerAddressSelect.title")),1),i.value.length?(p(),y("div",xRe,[(p(!0),y(j,null,le(l.value,C=>(p(),y("div",{key:C.premisesId},[c("p",kRe,b(C.settlement),1),c("p",wRe,b(C.street),1),c("div",CRe,[(p(!0),y(j,null,le(C.addresses,w=>(p(),y("button",{key:w.residentId,type:"button",class:"flex w-full items-center gap-3 rounded-2xl bg-grey-90 px-4 py-3 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-primary/60 xl:hover:bg-grey-80",onClick:$=>f(w)},[c("div",SRe,[d(w)?(p(),K(_,{key:0})):(p(),K(v,{key:1}))]),c("p",ARe,b(u(w)),1)],8,$Re))),128))])]))),128))])):(p(),y("p",bRe,b(a(n)("drawerAddressSelect.empty")),1))]),c("div",IRe,[T(x,{label:a(n)("address.list.add"),onClick:h},{icon:Xe(()=>[T(k,{class:""})]),_:1},8,["label"])])])}}}),PRe=Object.assign(TRe,{__name:"AddressSelectPanel"}),DRe={xmlns:"http://www.w3.org/2000/svg",width:"87",height:"87",fill:"none"};function ERe(e,t){return p(),y("svg",DRe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M33.5 26a1.5 1.5 0 0 1 1.5 1.5v28a1.5 1.5 0 0 1-3 0v-28a1.5 1.5 0 0 1 1.5-1.5M43.5 22a1.5 1.5 0 0 1 1.5 1.5v32a1.5 1.5 0 0 1-3 0v-32a1.5 1.5 0 0 1 1.5-1.5M53.5 18a1.5 1.5 0 0 1 1.5 1.5v36a1.5 1.5 0 0 1-3 0v-36a1.5 1.5 0 0 1 1.5-1.5M77.5 66a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM77.5 58a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM77.5 50a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM77.5 42a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M62.943.107A1.5 1.5 0 0 1 65 1.5v15.025l12.11 5.398c.541.24.89.778.89 1.37v8.367l8.055 3.208c.57.227.945.78.945 1.393V85.5a1.5 1.5 0 0 1-1.5 1.5h-84a1.5 1.5 0 0 1 0-3H11v-7.091c-6.196-.741-11-6.013-11-12.41v-26C0 31.597 5.596 26 12.5 26c3.803 0 7.207 1.701 9.5 4.38V17.5a1.5 1.5 0 0 1 .943-1.392zM22 72.618a12.47 12.47 0 0 1-8 4.291v7.09h8zm3-54.103V84h7V65.5a1.5 1.5 0 0 1 1.5-1.5h20a1.5 1.5 0 0 1 1.5 1.5V84h7V3.715zM35 84h7V67h-7zm10 0h7V67h-7zm20 0h19v-7H65zm0-10h19V37.278l-19-7.567zM12.5 29A9.5 9.5 0 0 0 3 38.5v26c0 4.736 3.466 8.661 8 9.38v-9.76l-3.56-3.56a1.5 1.5 0 0 1 2.12-2.12L11 59.878V50.12l-1.56-1.56A1.5 1.5 0 0 1 11 46.086V43.5a1.5 1.5 0 0 1 3 0v10.379l1.44-1.44a1.5 1.5 0 1 1 2.12 2.121L14 58.12v15.76c4.534-.719 8-4.644 8-9.38v-26a9.5 9.5 0 0 0-9.5-9.5M65 26.482l10 3.983v-6.199L65 19.81z","clip-rule":"evenodd"},null,-1)])])}const LRe={render:ERe},RRe={class:"flex h-full flex-col"},MRe={class:"flex-1 overflow-y-auto px-6"},ORe={class:"mx-auto flex max-w-[360px] flex-col items-center pt-4 text-center"},FRe={class:"mt-8 text-24-bold text-black"},NRe={class:"mt-3 text-16 text-black whitespace-pre-line"},BRe={class:"mt-2 text-16 text-grey-40"},VRe={class:"mt-10"},HRe={class:"p-6 pt-0"},qRe=G({__name:"AddressOrganizationPanel",emits:["go"],setup(e,{emit:t}){const s=t,{$showSnackbar:n}=Te(),{t:r}=be(),i=ba(),o=Oe(),l=A(()=>{const h=i.address;return h?h.address.trim()||[h.addressSettlementPart,h.addressStreetPart].map(g=>
77g.trim()).filter(Boolean).join(", "):""});let u;const d=()=>{u?.(),u=void 0};u=Se([()=>i.address,()=>o.residence,()=>o.userInfo,()=>o.isLoading],([h,g,m,_])=>{if(h||i.openIfNeeded(g)){d();return}!_&&m&&!i.shouldPrompt(g)&&(s("go","close"),d())},{immediate:!0});async function f(){const h=await i.save();if(h.ok){s("go","close");return}n(h.error.message??"")}return(h,g)=>{const m=LRe,_=Ae("TextField"),v=Ae("PrimaryButton");return p(),y("div",RRe,[c("div",MRe,[c("div",ORe,[T(m,{class:"h-[87px] w-[87px] shrink-0"}),c("h1",FRe,b(a(r)("drawerAddressOrganization.title")),1),c("p",NRe,b(a(r)("drawerAddressOrganization.descr")),1),c("p",BRe,b(l.value),1)]),c("div",VRe,[T(_,{modelValue:a(i).organizationName,"onUpdate:modelValue":g[0]||(g[0]=k=>a(i).organizationName=k),placeholder:a(r)("drawerAddressOrganization.placeholder"),autocomplete:"organization",size:"default"},null,8,["modelValue","placeholder"])])]),c("div",HRe,[T(v,{label:a(r)("save"),loading:a(i).isLoading,disabled:!a(i).isButtonEnabled,onClick:f},null,8,["label","loading","disabled"])])])}}}),jRe=Object.assign(qRe,{__name:"AddressOrganizationPanel"}),URe={class:"flex h-full flex-col"},zRe={class:"flex-1 overflow-y-auto px-6"},WRe={class:"text-24-bold text-left"},GRe={class:"mt-6 space-y-4"},YRe={key:0,class:"space-y-4"},KRe={class:"flex gap-6"},QRe={class:"p-6 pt-0"},XRe=G({__name:"AddressEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=xg();je(()=>{i.address||s("go",{to:"back",replace:!1})});async function o(){const u=i.originalOrganizationName.trim(),d=i.organizationName.trim();if(!i.isButtonEnabled||u.length>0&&d.length===0){r(n("FillDataWarning"));return}const f=await i.save();f.ok?s("go",{to:"profile-address-list",replace:!1}):f.error?.message&&r(f.error.message)}function l(){const u=Cg();u.address=i.address,s("go",{to:"profile-address-confirm",replace:!1})}return(u,d)=>{const f=Ae("LabeledTextField"),h=Ae("PrimaryButton");return p(),y("div",URe,[c("div",zRe,[c("h1",WRe,b(a(i).address?.addressStreetPart??""),1),c("div",GRe,[a(i).selectedType===a(Re).flat?(p(),y("div",YRe,[T(f,{modelValue:a(i).flatNumber,"onUpdate:modelValue":d[0]||(d[0]=g=>a(i).flatNumber=g),label:a(n)("address.add.flat")},null,8,["modelValue","label"]),c("div",KRe,[T(f,{modelValue:a(i).flatFloor,"onUpdate:modelValue":d[1]||(d[1]=g=>a(i).flatFloor=g),label:a(n)("address.add.floor")},null,8,["modelValue","label"]),T(f,{modelValue:a(i).flatEntrance,"onUpdate:modelValue":d[2]||(d[2]=g=>a(i).flatEntrance=g),label:a(n)("address.add.enterance")},null,8,["modelValue","label"])])])):a(i).selectedType===a(Re).parkingSpot?(p(),K(f,{key:1,modelValue:a(i).parkingSpotNumber,"onUpdate:modelValue":d[3]||(d[3]=g=>a(i).parkingSpotNumber=g),label:a(n)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])):a(i).selectedType===a(Re).storeRoom?(p(),K(f,{key:2,modelValue:a(i).storeRoomNumber,"onUpdate:modelValue":d[4]||(d[4]=g=>a(i).storeRoomNumber=g),label:a(n)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])):(p(),K(f,{key:3,modelValue:a(i).withoutCommercialNumber,"onUpdate:modelValue":d[5]||(d[5]=g=>a(i).withoutCommercialNumber=g),label:a(n)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])),a(i).withOrganizationName?(p(),K(f,{key:4,modelValue:a(i).organizationName,"onUpdate:modelValue":d[6]||(d[6]=g=>a(i).organizationName=g),label:a(n)("address.add.organization")},null,8,["modelValue","label"])):E("",!0)])]),c("div",QRe,[T(h,{label:a(n)("save"),loading:a(i).isLoading,onClick:o},null,8,["label","loading"]),T(h,{label:a(n)("address.delete"),variant:"secondary",loading:a(i).isLoading,disabled:!a(i).isButtonEnabled,class:"mt-4",onClick:l},null,8,["label","loading","disabled"])])])}}}),ZRe=Object.assign(XRe,{__name:"AddressEditPanel"}),JRe={class:"flex h-full flex-col"},eMe={class:"flex-1 overflow-y-auto px-6"},tMe={class:"text-24-bold text-left"},sMe={class:"mt-6 space-y-4"},nMe={key:0,class:"space-y-4"},rMe={class:"flex gap-6"},iMe={class:"p-6 pt-0"},oMe=G({__name:"AddressResidencePanel",emits:["go"],setup(e,{emit:t}){const s=t,{$showSnackbar:n}=Te(),{t:r}=be(),i=wg(),o=st(),l=is(),u=[Re.flat,Re.parkingSpot,Re.storeRoom,Re.withoutFunctional],d=[Re.parkingSpot,Re.withoutFunctional],f=A(()=>i.withOrganizationName?d:u),h=A(()=>f.value.map(m=>({label:r(i.getDisplayType(m)),value:m})));je(()=>{if(!i.houseId){s("go",{to:"back",replace:!0});return}f.value.includes(i.selectedType)||i.updateType(f.value[0]??Re.flat)});async function g(){const m=i.withOrganizationName,_=await i.save();_.ok?(rg().open({withOrganizationName:m}),m&&await l.replace({path:gf({withOrganizationName:m}),query:o.query}),s("go",{to:"address-residence-success",replace:!0})):n(_.error.message??"")}return(m,_)=>{const v=Ae("SegmentedControl"),k=Ae("LabeledTextField"),x=Ae("PrimaryButton");return p(),y("div",JRe,[c("div",eMe,[c("h1",tMe,b(a(r)("registrationResidence.title")),1),T(v,{class:"mt-6 !flex !flex-wrap !overflow-x-visible",items:h.value,"model-value":a(i).selectedType,"onUpdate:modelValue":a(i).updateType},null,8,["items","model-value","onUpdate:modelValue"]),c("div",sMe,[a(i).selectedType===a(Re).flat?(p(),y("div",nMe,[T(k,{modelValue:a(i).flatNumber,"onUpdate:modelValue":_[0]||(_[0]=C=>a(i).flatNumber=C),label:a(r)("address.add.flat")},null,8,["modelValue","label"]),c("div",rMe,[T(k,{modelValue:a(i).flatFloor,"onUpdate:modelValue":_[1]||(_[1]=C=>a(i).flatFloor=C),label:a(r)("address.add.floor")},null,8,["modelValue","label"]),T(k,{modelValue:a(i).flatEntrance,"onUpdate:modelValue":_[2]||(_[2]=C=>a(i).flatEntrance=C),label:a(r)("address.add.enterance")},null,8,["modelValue","label"])])])):a(i).selectedType===a(Re).parkingSpot?(p(),K(k,{key:1,modelValue:a(i).parkingSpotNumber,"onUpdate:modelValue":_[3]||(_[3]=C=>a(i).parkingSpotNumber=C),label:a(r)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])):a(i).selectedType===a(Re).storeRoom?(p(),K(k,{key:2,modelValue:a(i).storeRoomNumber,"onUpdate:modelValue":_[4]||(_[4]=C=>a(i).storeRoomNumber=C),label:a(r)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])):(p(),K(k,{key:3,modelValue:a(i).withoutCommercialNumber,"onUpdate:modelValue":_[5]||(_[5]=C=>a(i).withoutCommercialNumber=C),label:a(r)(a(i).getDisplayPlaceholder())},null,8,["modelValue","label"])),a(i).withOrganizationName?(p(),K(k,{key:4,modelValue:a(i).organizationName,"onUpdate:modelValue":_[6]||(_[6]=C=>a(i).organizationName=C),label:a(r)("address.add.organization")},null,8,["modelValue","label"])):E("",!0)])]),c("div",iMe,[T(x,{label:a(r)("save"),loading:a(i).isLoading,disabled:!a(i).isButtonEnabled,onClick:g},null,8,["label","loading","disabled"])])])}}}),aMe=Object.assign(oMe,{__name:"AddressResidencePanel"}),lMe=Ke("unauthorizedScreen",{state:()=>
77({addressByGeo:null,screen:null,aiHelpers:null,services:null,forHome:null,addressError:null,screenError:null,aiHelpersError:null,servicesError:null,forHomeError:null,isAddressLoading:!1,isScreenLoading:!1,isAiHelpersLoading:!1,isServiceGroupsLoading:!1,requestId:0}),getters:{addressText(e){return e.screen?.address||e.addressByGeo?.address||""}},actions:{async loadByGeo(e,t,s={}){const n=++this.requestId,r=Ne(),i=ue(),o=s.clearBeforeLoad??!0;if(r.isAuthorized)return;this.isAddressLoading=!0,this.addressError=null,o&&(this.screen=null);const l=await i.fetchHouseAddressByGeo(e,t);if(!(n!==this.requestId||r.isAuthorized)){if(this.isAddressLoading=!1,l.ok){this.addressByGeo=l.data,this.addressError=null,await this.loadScreen(l.data.fiasId||void 0,{requestId:n,clearBeforeLoad:o});return}this.addressByGeo=null,this.addressError=l.error,await this.loadScreen(void 0,{requestId:n,clearBeforeLoad:o})}},async loadScreen(e,t={}){const s=t.requestId??++this.requestId,n=Ne(),r=ue(),i=t.clearBeforeLoad??!0;if(n.isAuthorized)return;this.isScreenLoading=!0,i&&(this.screen=null,this.aiHelpers=null,this.services=null,this.forHome=null,this.isAiHelpersLoading=!1,this.isServiceGroupsLoading=!1),this.screenError=null;const o=await r.fetchUnauthorizedScreen(e);s!==this.requestId||n.isAuthorized||(o.ok?(this.screen=o.data,this.screenError=null,o.data.showAiHelpers?this.loadAiHelpers(s):(this.aiHelpers=null,this.aiHelpersError=null,this.isAiHelpersLoading=!1),o.data.showServicesV2?this.loadServiceGroups(s):(this.services=null,this.forHome=null,this.servicesError=null,this.forHomeError=null,this.isServiceGroupsLoading=!1)):((i||!this.screen)&&(this.screen=null),this.aiHelpers=null,this.services=null,this.forHome=null,this.aiHelpersError=null,this.servicesError=null,this.forHomeError=null,this.isAiHelpersLoading=!1,this.isServiceGroupsLoading=!1,this.screenError=o.error),this.isScreenLoading=!1)},async loadAiHelpers(e){const t=Ne(),s=ue();if(t.isAuthorized)return;this.isAiHelpersLoading=!0,this.aiHelpersError=null;const n=await s.fetchScreenAiHelpers();e!==this.requestId||t.isAuthorized||(n.ok&&n.data.items.length>0?this.aiHelpers=n.data:(this.aiHelpers=null,this.aiHelpersError=n.ok?null:n.error),this.isAiHelpersLoading=!1)},async loadServiceGroups(e){const t=Ne(),s=ue();if(t.isAuthorized)return;this.isServiceGroupsLoading=!0,this.servicesError=null,this.forHomeError=null;const[n,r]=await Promise.all([s.fetchScreenServicesV2(),s.fetchScreenForHome()]);e!==this.requestId||t.isAuthorized||(this.services=n.ok&&n.data.items.length>0?n.data:null,this.forHome=r.ok&&r.data.items.length>0?r.data:null,this.servicesError=n.ok?null:n.error,this.forHomeError=r.ok?null:r.error,this.isServiceGroupsLoading=!1)},selectAddress(e,t,s={}){this.addressByGeo={success:!0,address:t,fiasId:e},this.loadScreen(e,s)},clear(){this.requestId+=1,this.addressByGeo=null,this.screen=null,this.aiHelpers=null,this.services=null,this.forHome=null,this.addressError=null,this.screenError=null,this.aiHelpersError=null,this.servicesError=null,this.forHomeError=null,this.isAddressLoading=!1,this.isScreenLoading=!1,this.isAiHelpersLoading=!1,this.isServiceGroupsLoading=!1}}}),cMe={class:"flex h-full flex-col"},uMe={class:"flex-1 overflow-y-auto px-6 pb-4"},dMe={class:"text-24-bold text-left"},fMe={key:0,class:"mt-2 ml-2 text-left text-13 text-grey-40"},pMe={key:1,class:"mt-6 space-y-4 ml-4 mr-4"},hMe={key:2,class:"mt-6 text-center py-4"},mMe={class:"text-black text-16"},gMe={key:3,class:"mt-6"},yMe=["onClick"],_Me={class:"text-16 text-black mb-1"},vMe={class:"text-13 text-grey-40"},bMe=G({__name:"AddressPremisesPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Ne(),i=wg(),o=kg(),l=lMe();je(()=>{o.fetchSearchExample()}),wn(()=>{o.cancelRequest()});function u(d){if(!d.isCompleteAddress){o.updateSearchQuery(A9(d));return}if(!r.isAuthorized){l.selectAddress(d.fiasId,d.address),s("go","close");return}o.selectHouse(d),i.setFromHouse(d),s("go",{to:"profile-address-residence",replace:!1})}return(d,f)=>{const h=Ae("SearchTextField");return p(),y("div",cMe,[c("div",uMe,[c("h1",dMe,b(a(n)("address.residence.title")),1),T(h,{class:"mt-6","model-value":a(o).searchQuery,placeholder:a(n)("address.residence.placeholder"),"onUpdate:modelValue":a(o).updateSearchQuery},null,8,["model-value","placeholder","onUpdate:modelValue"]),a(o).searchExample?(p(),y("p",fMe,b(a(o).searchExample),1)):E("",!0),a(o).isLoading?(p(),y("div",pMe,[(p(),y(j,null,le(3,g=>c("div",{key:g,class:"animate-pulse"},[...f[0]||(f[0]=[c("div",{class:"h-4 bg-gray-200 rounded w-1/3 mb-2 mt-4"},null,-1),c("div",{class:"h-6 bg-gray-200 rounded w-full mb-4"},null,-1)])])),64))])):a(o).addresses.length===0&&a(o).searchQuery.length>3?(p(),y("div",hMe,[c("p",mMe,b(a(n)("registrationAddress.empty")),1)])):(p(),y("div",gMe,[(p(!0),y(j,null,le(a(o).addresses,g=>(p(),y("div",{key:g.houseId,class:"cursor-pointer xl:hover:bg-grey-90 px-4 py-4 rounded-md",onClick:m=>u(g)},[c("div",_Me,b(g.addressStreetPart),1),c("div",vMe,b(g.addressSettlementPart),1)],8,yMe))),128))]))])])}}}),xMe=Object.assign(bMe,{__name:"AddressPremisesPanel"}),kMe={class:"flex h-full flex-col"},wMe={class:"flex-1 px-6 flex flex-col items-center justify-center text-center"},CMe={class:"text-24-bold text-black mb-6"},$Me=G({__name:"AddressConfirmPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=Cg(),o=A(()=>i.address);async function l(){if(!o.value){u();return}const d=await i.deleteAddress();d.ok?s("go",{to:"profile-address-list",replace:!0}):d.error?.message&&r(d.error.message)}function u(){i.clear(),s("go",{to:"back",replace:!1})}return(d,f)=>{const h=Ae("PrimaryButton");return p(),y("div",kMe,[c("div",wMe,[c("p",CMe,b(a(n)("address.deleteConfirm")),1),T(h,{label:a(n)("address.confirm.delete"),loading:a(i).isLoading,onClick:l},null,8,["label","loading"]),T(h,{class:"mt-4",variant:"secondary",label:a(n)("doCancel"),disabled:a(i).isLoading,onClick:u},null,8,["label","disabled"])])])}}}),SMe=Object.assign($Me,{__name:"AddressConfirmPanel"}),AMe={xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"};function IMe(e,t){return p(),y("svg",AMe,[...t[0]||(t[0]=[c("path",{fill:"#9CCA7F",d:"M92.5 4.875a2 2 0 0 1 2 2v104.25h8a2 2 0 1 1 0 4h-10a2 2 0 0 1-2-2V8.875H40.01L68.125 18.1A2 2
770 0 1 69.5 20v80a2 2 0 0 1-1.376 1.9l-40 13.125c-.201.066-.412.1-.624.1h-10a2 2 0 1 1 0-4h8V6.875a2 2 0 0 1 2-2zm-63 105.488 36-11.812V21.448l-36-11.812zM58 66.25v-12.5a2 2 0 1 1 4 0v12.5a2 2 0 1 1-4 0"},null,-1)])])}const TMe={render:IMe},PMe={class:"flex h-full flex-col"},DMe={class:"flex-1 px-6 flex flex-col justify-center items-center"},EMe={class:"text-24-bold text-center mt-6 whitespace-pre-line"},LMe=G({__name:"ProfileConfirmPanel",emits:["go"],setup(e,{emit:t}){const s=t,{$showSnackbar:n}=Te(),r=F1(),{t:i}=be();async function o(){if(r.isExit){const u=await r.logout();u.ok?(Bt("/"),s("go","close")):n(u.error.message??"")}else{const u=await r.deleteAccount();u.ok?(Bt("/"),s("go","close")):n(u.error.message??"")}}function l(){s("go","back")}return(u,d)=>{const f=TMe,h=ya,g=Ae("PrimaryButton");return p(),y("div",PMe,[c("div",DMe,[a(r).isExit?(p(),K(f,{key:0,class:"[&>path]:fill-emerald-primary"})):(p(),K(h,{key:1})),c("h1",EMe,b(a(r).isExit?a(i)("personal.exitTitle"):a(i)("personal.deleteTitle")),1),T(g,{loading:a(r).isLoading,class:"mt-6 mb-4",label:a(r).isExit?a(i)("personal.exit"):a(i)("delete"),onClick:o},null,8,["loading","label"]),T(g,{variant:"secondary",label:(a(r).isExit,a(i)("personal.exitCancel")),onClick:l},null,8,["label"])])])}}}),RMe=Object.assign(LMe,{__name:"ProfileConfirmPanel"}),MMe={class:"flex h-full flex-col"},OMe={class:"flex-1 px-6"},FMe={class:"flex h-full flex-col items-center justify-center text-center"},NMe={class:"text-24-bold mt-6 text-black"},BMe={class:"text-16 mt-2 text-grey-40"},VMe=G({__name:"PersonalEmailSuccessPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be();function r(){s("go","back")}return(i,o)=>{const l=Uu,u=Ae("PrimaryButton");return p(),y("div",MMe,[c("div",OMe,[c("div",FMe,[T(l,{class:"[&>path]:fill-emerald-primary"}),c("div",NMe,b(a(n)("personal.emailSuccessTitle")),1),c("p",BMe,b(a(n)("personal.emailSuccessDescr")),1),T(u,{class:"w-full mt-6",label:a(n)("good"),onClick:r},null,8,["label"])])])])}}}),HMe=Object.assign(VMe,{__name:"PersonalEmailSuccessPanel"}),qMe={class:"flex h-full flex-col"},jMe={class:"flex-1 px-6"},UMe={class:"text-24-bold text-left"},zMe={key:0,class:"text-16 mt-2 text-grey-40"},WMe={class:"p-6"},GMe=G({__name:"PersonalEditPanel",emits:["go"],setup(e,{emit:t}){const s=du(),{$showSnackbar:n}=Te(),r=st();je(()=>{r.query.edit==="email"&&(s.isEmail=!0),s.loadInfo()});const i=t,{t:o}=be();async function l(){if(s.isEmail){const u=await s.changeEmail();u.ok?i("go",{to:"profile-personal-email-success",replace:!0}):n(u.error.message??o("-27"))}else{const u=await s.changeName();u.ok?i("go","back"):n(u.error.message??o("-27"))}}return(u,d)=>{const f=Ae("LabeledTextField"),h=Ae("PrimaryButton");return p(),y("div",qMe,[c("div",jMe,[c("h1",UMe,b(a(s).isEmail?a(o)("personal.emailTitle"):a(o)("personal.nameTitle")),1),a(s).isEmail?(p(),y("p",zMe,b(a(o)("personal.emailDescr")),1)):E("",!0),T(f,{modelValue:a(s).value,"onUpdate:modelValue":d[0]||(d[0]=g=>a(s).value=g),label:a(s).isEmail?a(o)("personal.email"):a(o)("personal.fioPlaceholder"),class:"mt-6"},null,8,["modelValue","label"])]),c("div",WMe,[T(h,{loading:a(s).isLoading,disabled:a(s).value.length==0,class:"w-full",label:a(s).isEmail?a(o)("personal.sendEmail"):a(o)("done"),onClick:l},null,8,["loading","disabled","label"])])])}}}),YMe=Object.assign(GMe,{__name:"PersonalEditPanel"}),KMe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function QMe(e,t){return p(),y("svg",KMe,[...t[0]||(t[0]=[c("path",{fill:"#909996","fill-rule":"evenodd",d:"M15.797 3.065a3.634 3.634 0 1 1 5.139 5.14L9.27 19.868c-.213.213-.396.4-.612.555-.177.127-.37.235-.57.32-.243.104-.498.164-.791.236l-4.06.992a1 1 0 0 1-1.21-1.209l.993-4.06c.071-.293.131-.548.235-.792q.13-.301.32-.569c.155-.215.342-.4.555-.612zM5.545 16.145c-.257.257-.306.31-.343.361q-.064.09-.107.19c-.025.059-.045.129-.131.482l-.602 2.459 2.46-.6c.354-.087.424-.107.482-.131a1 1 0 0 0 .19-.108c.052-.037.105-.085.363-.343l8.164-8.165-2.31-2.31zM19.522 4.479a1.634 1.634 0 0 0-2.31 0l-2.088 2.087 2.31 2.31 2.088-2.087a1.634 1.634 0 0 0 0-2.31","clip-rule":"evenodd"},null,-1)])])}const XMe={render:QMe},ZMe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function JMe(e,t){return p(),y("svg",ZMe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M2.6 2.967c.247-.08.49-.017.662.037.186.059.418.155.685.266l8.47 3.53c.27.112.503.21.677.3.16.084.377.215.495.447a1 1 0 0 1 0 .906c-.118.232-.335.362-.495.446-.174.091-.408.189-.677.301l-8.47 3.53c-.267.11-.499.207-.685.266-.171.054-.415.116-.662.037a1 1 0 0 1-.645-.635c-.082-.245-.024-.49.028-.663.056-.187.15-.42.257-.69L3.458 8 2.24 4.954c-.107-.269-.201-.502-.257-.69-.052-.172-.11-.417-.028-.663a1 1 0 0 1 .645-.634m.34 1.01c.041.135.114.318.23.605L4.334 7.5
77h2.662a.5.5 0 1 1 0 1H4.335L3.17 11.418c-.115.287-.188.47-.228.604l-.007.027q.013-.003.027-.006c.134-.042.316-.119.602-.238l8.47-3.528c.287-.12.47-.197.596-.263q.013-.007.024-.014l-.024-.015a9 9 0 0 0-.597-.263l-8.47-3.528c-.285-.119-.467-.195-.6-.237l-.028-.007z"},null,-1)])])}const eOe={render:JMe},tOe={class:"flex h-full flex-col"},sOe={class:"flex-1 px-6 flex flex-col items-left"},nOe={class:"text-24-bold text-left"},rOe={class:"mt-6 rounded-lg bg-grey-90 p-4"},iOe={class:"text-13 text-grey-40"},oOe=["title"],aOe={class:"mt-2 rounded-lg bg-grey-90 p-4"},lOe={class:"flex items-start justify-between gap-4"},cOe={class:"text-13 text-grey-40"},uOe=["title"],dOe=["aria-label"],fOe={class:"mt-2 rounded-lg bg-grey-90 p-4"},pOe={class:"flex items-start justify-between gap-4"},hOe={class:"text-13 text-grey-40"},mOe=["title"],gOe=["aria-label"],yOe=["disabled"],_Oe={class:"p-6"},vOe=G({__name:"PersonalPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=y9(),i=Oe(),{$showSnackbar:o}=Te();je(()=>{if(!Ne().isAuthorized){s("go",{to:"login",replace:!0});return}r.loadInfo()}),Se(()=>i.userInfo,()=>{r.loadInfo()});function l(){const g=du();g.isEmail=!1,s("go",{to:"profile-personal-edit",replace:!1})}function u(){const g=du();g.isEmail=!0,s("go",{to:"profile-personal-edit",replace:!1})}async function d(){const g=await r.requestEmailConfirm();g.ok?o(n("personal.emailConfirmRequestSuccess"),!1):o(g.error.message??n("-27"))}function f(){const g=F1();g.isExit=!1,s("go",{to:"profile-confirm",replace:!1})}function h(){const g=F1();g.isExit=!0,s("go",{to:"profile-confirm",replace:!1})}return(g,m)=>{const _=XMe,v=eOe,k=P9,x=Ae("PrimaryButton");return p(),y("div",tOe,[c("div",sOe,[c("h1",nOe,b(a(n)("personal.editTitle")),1),c("div",rOe,[c("div",iOe,b(a(n)("loginPhone.placeholder")),1),c("div",{class:"mt-1 truncate text-16 text-black",title:a(r).phone},b(a(r).phone),9,oOe)]),c("div",aOe,[c("div",lOe,[c("button",{class:"min-w-0 flex-1 text-left",type:"button",onClick:l},[c("div",cOe,b(a(n)("registration.fio")),1),c("div",{class:oe(["mt-1 truncate text-16",a(r).userName?"text-black":"text-grey-40"]),title:a(r).userName},b(a(r).userName||a(n)("personal.notSpecifiedMale")),11,uOe)]),c("button",{class:"shrink-0",type:"button","aria-label":a(n)("personal.editFio"),onClick:l},[T(_)],8,dOe)])]),c("div",fOe,[c("div",pOe,[c("button",{class:"min-w-0 flex-1 text-left",type:"button",onClick:u},[c("div",hOe,[Qe(b(a(n)("registration.email"))+" ",1),a(r).email?(p(),y("span",{key:0,class:oe(a(r).emailNeedConfirm?"text-red-50":"text-emerald-primary")}," · "+b(a(r).emailNeedConfirm?a(n)("personal.emailNotConfirmed"):a(n)("personal.emailConfirmed")),3)):E("",!0)]),c("div",{class:oe(["mt-1 truncate text-16 text-black",a(r).email?"text-black":"text-grey-40"]),title:a(r).email},b(a(r).email||a(n)("personal.notSpecifiedFemale")),11,mOe)]),c("button",{class:"shrink-0",type:"button","aria-label":a(n)("personal.editEmail"),onClick:u},[T(_)],8,gOe)]),a(r).email&&a(r).emailNeedConfirm?(p(),y("button",{key:0,class:"mt-4 inline-flex h-10 items-center gap-2 rounded-full bg-white px-4 text-13 text-black disabled:opacity-60",type:"button",disabled:a(r).isSendingEmailConfirm,onClick:d},[a(r).isSendingEmailConfirm?(p(),K(k,{key:1,class:"animate-spin"})):(p(),K(v,{key:0})),Qe(" "+b(a(n)("personal.sendEmailToAddress")),1)],8,yOe)):E("",!0)])]),c("div",_Oe,[T(x,{variant:"secondaryRed",class:"w-full",label:a(n)("personal.delete"),onClick:f},null,8,["label"]),T(x,{variant:"secondary",class:"w-full mt-4",label:a(n)("personal.exit"),onClick:h},null,8,["label"])])])}}}),bOe=Object.assign(vOe,{__name:"PersonalPanel"}),xOe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function kOe(e,t){return p(),y("svg",xOe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M19 11a1 1 0 1 1 0 2H5a1 1 0 1 1 0-2z"},null,-1)])])}const nC={render:kOe},wOe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function COe(e,t){return p(),y("svg",wOe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M11 19v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 1 1 2 0v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0"},null,-1)])])}const rC={render:COe},$Oe={class:"w-full overflow-x-hidden mt-6"},SOe=["aria-expanded"],AOe={class:"text-16-bold whitespace-pre-line"},IOe={class:"inline-flex items-center justify-center"},TOe={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"},Nb="cubic-bezier(.22,.61,.36,1)",POe=G({__name:"MasterFaqItem",props:{title:{},defaultOpen:{type:Boolean,default:!1},durationMs:{default:320}},setup(e){const t=e,s=X(t.defaultOpen),n=`faq-panel-${Math.random().toString(36).slice(2,8)}`,r=A(()=>({transition:`height ${t.durationMs}ms ${Nb}, opacity ${t.durationMs}ms ${Nb}`}));function i(){s.value=!s.value}function o(g){const m=g;m.style.height="0px",m.style.opacity="0"}function l(g){const m=g;m.style.height=m.scrollHeight+"px",m.style.opacity="1"}function u(g){const m=g;m.style.height="auto"}function d(g){const m=g;m.style.height=m.scrollHeight+"px",m.style.opacity="1"}function f(g){const m=g;m.offsetHeight,m.style.height="0px",m.style.opacity="0"}function h(g){const m=g;m.style.height="0px"}return(g,m)=>{const _=nC,v=rC;return p(),y("div",$Oe,[c("button",{"aria-expanded":s.value?"true":"false","aria-controls":n,class:"group flex w-full items-center justify-between text-left text-black whitespace-pre-line",onClick:i}
77,[c("span",AOe,b(e.title),1),c("span",IOe,[T(Un,{name:"faq-icon",mode:"out-in"},{default:Xe(()=>[s.value?(p(),K(_,{key:"minus",class:"[&>path]:fill-black"})):(p(),K(v,{key:"plus",class:"[&>path]:fill-black"}))]),_:1})])],8,SOe),T(Un,{onBeforeEnter:o,onEnter:l,onAfterEnter:u,onBeforeLeave:d,onLeave:f,onAfterLeave:h},{default:Xe(()=>[pn(c("div",{id:n,ref:"panelRef",class:"overflow-hidden w-full",style:kt(r.value)},[c("div",TOe,[er(g.$slots,"default",{},void 0,!0)])],4),[[$S,s.value]])]),_:3}),m[0]||(m[0]=c("div",{class:"h-[1px] w-full bg-grey-80 mt-6"},null,-1))])}}}),iC=Object.assign(Gs(POe,[["__scopeId","data-v-fdf65b15"]]),{__name:"MasterFaqItem"}),DOe={class:"flex h-full flex-col"},EOe={class:"flex-1 overflow-y-auto px-6 pb-6"},LOe={class:"mt-6 text-24-bold text-black"},ROe={class:"mt-2 text-16 text-grey-40"},MOe={key:0,class:"mt-6 space-y-0"},OOe={key:1,class:"mt-12 text-center"},FOe={class:"text-16 text-grey-40"},NOe={key:2,class:"mt-6"},BOe=G({__name:"ProfileHelpPanel",setup(e){const{t}=be(),s=ue(),n=X(!0),r=X([]);return je(async()=>{const i=await s.fetchFaq();i.ok&&(r.value=i.data.elements),n.value=!1}),(i,o)=>{const l=iC;return p(),y("div",DOe,[c("div",EOe,[c("h1",LOe,b(a(t)("profileHelp.title")),1),c("p",ROe,b(a(t)("profileHelp.subtitle")),1),n.value?(p(),y("div",MOe,[(p(),y(j,null,le(4,u=>c("div",{key:u,class:"h-[56px] w-full animate-pulse rounded-[12px] bg-grey-90"})),64))])):r.value.length===0?(p(),y("div",OOe,[c("p",FOe,b(a(t)("profileHelp.empty")),1)])):(p(),y("div",NOe,[(p(!0),y(j,null,le(r.value,(u,d)=>(p(),K(l,{key:d,title:u.title},{default:Xe(()=>[Qe(b(u.text),1)]),_:2},1032,["title"]))),128))]))])])}}}),VOe=Object.assign(BOe,{__name:"ProfileHelpPanel"}),HOe={class:"flex h-full flex-col"},qOe={class:"flex-1 overflow-y-auto px-6 pb-6"},jOe={class:"mt-6 text-24-bold text-black"},UOe={class:"mt-4 text-13 text-grey-40"},zOe={key:0,class:"mt-1 text-13 text-grey-40"},WOe={class:"mt-8"},GOe={class:"text-16 text-black"},YOe={key:0,class:"mt-4 space-y-2"},KOe={key:1,class:"mt-4 text-center"},QOe={class:"text-16 text-grey-40"},XOe={key:2,class:"mt-4"},ZOe=G({__name:"ProfileAboutPanel",setup(e){const{t}=be(),s=ue(),n=X(!0),r=X([]),i=X("");return je(async()=>{const o=await s.fetchAboutDocs();o.ok&&(r.value=o.data.agreements),n.value=!1}),(o,l)=>{const u=iC;return p(),y("div",HOe,[c("div",qOe,[c("h1",jOe,b(a(t)("profileAbout.title")),1),c("p",UOe,b(a(t)("profileAbout.description")),1),i.value?(p(),y("p",zOe,b(a(t)("profileAbout.version",{version:i.value})),1)):E("",!0),c("div",WOe,[c("p",GOe,b(a(t)("profileAbout.documents")),1),n.value?(p(),y("div",YOe,[(p(),y(j,null,le(2,d=>c("div",{key:d,class:"h-[56px] w-full animate-pulse rounded-[12px] bg-grey-90"})),64))])):r.value.length===0?(p(),y("div",KOe,[c("p",QOe,b(a(t)("profileAbout.empty")),1)])):(p(),y("div",XOe,[(p(!0),y(j,null,le(r.value,(d,f)=>(p(),K(u,{key:f,title:d.header},{default:Xe(()=>[Qe(b(d.text),1)]),_:2},1032,["title"]))),128))]))])])])}}}),JOe=Object.assign(ZOe,{__name:"ProfileAboutPanel"}),eFe={class:"flex h-full flex-col"},tFe={class:"flex-1 overflow-y-auto scrollbar-4-grey80 px-6 pb-6"},sFe={class:"text-24-bold text-left"},nFe={class:"mt-2 text-16 text-grey-40"},rFe={class:"mt-6 space-y-4"},iFe={class:"text-13 leading-5 text-grey-10"},oFe={class:"text-13 leading-5 text-grey-10"},aFe={class:"p-6 pt-4"},lFe=G({__name:"BcRequestPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=mf(),o=zl(),l={heroRequest:'Ðнопка "ÐÑÑавиÑÑ Ð·Ð°ÑвкÑ" в наÑале ÑÑÑ.',heroDemo:'Ðнопка "демо-доÑÑÑп"',onePass:'"оÑÑавиÑÑ Ð·Ð°ÑвкÑ" в конÑе ÑÑÑаниÑÑ'};async function u(){const d=await i.submitBc();if(!d.ok){r(d.message);return}const f=i.bcRequestSource?l[i.bcRequestSource]:null;f&&window.ym?.(aa,"reachGoal",f),s("go",{to:"bc-request-success",replace:!0})}return(d,f)=>{const h=Ae("LabeledTextField"),g=_a,m=va,_=Ae("PrimaryButton");return p(),y("div",eFe,[c("div",tFe,[c("h1",sFe,b(a(n)("bc.request.title")),1),c("p",nFe,b(a(n)("bc.request.descr")),1),T(h,{modelValue:a(i).bcName,"onUpdate:modelValue":f[0]||(f[0]=v=>a(i).bcName=v),label:a(n)("bc.request.name"),class:"mt-6"},null,8,["modelValue","label"]),T(h,{modelValue:a(i).bcEmail,"onUpdate:modelValue":f[1]||(f[1]=v=>a(i).bcEmail=v),label:a(n)("bc.request.email"),type:"email",autocomplete:"email",class:"mt-4"},null,8,["modelValue","label"]),T(h,{modelValue:a(i).bcPhone,"onUpdate:modelValue":f[2]||(f[2]=v=>a(i).bcPhone=v),label:a(n)("bc.request.phone"),"input-mode":"tel",autocomplete:"tel",formatter:a(o),class:"mt-4"},null,8,["modelValue","label","formatter"]),T(h,{modelValue:a(i).bcCompanyName,"onUpdate:modelValue":f[3]||(f[3]=v=>a(i).bcCompanyName=v),label:a(n)("bc.request.companyName"),class:"mt-4"},null,8,["modelValue","label"]),c("div",rFe,[c("button",{type:"button",class:"inline-flex items-start gap-3 text-left",onClick:f[5]||(f[5]=(...v)=>a(i).toggleBcUserAgreement&&a(i).toggleBcUserAgreement(...v))},[a(i).isBcUserAgreementAccepted?(p(),K(g,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(m,{key:1,class:"h-6 w-6 shrink-0"})),c("span",iFe,[Qe(b(a(n)("loginPhone.userAgreementConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/terms-of-use",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:f[4]||(f[4]=St(()=>{},["stop"]))},b(a(n)("loginPhone.userAgreementLink")),1),f[9]||(f[9]=c("br",null,null,-1)),Qe(" "+b(a(n)("loginPhone.userAgreementConsentPart2")),1)])]),c("button",{type:"button",class:"inline-flex items-start gap-3 text-left",onClick:f[8]||(f[8]=(...v)=>a(i).toggleBcPersonalData&&a(i).toggleBcPersonalData(...v))},[a(i).isBcPersonalDataAccepted?(p(),K(g,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(m,{key:1,class:"h-6 w-6 shrink-0"})),c("span",oFe,[Qe(b(a(n)("loginPhone.personalDataConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/consent-to-pd",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:f[6]||(f[6]=St(()=>{},["stop"]))},b(a(n)("loginPhone.personalDataConsentLink")),1),f[10]||(f[10]=c("br",null,null,-1)),Qe(" "+b(a(n)("loginPhone.personalDataConsentPart2"))+" ",1),c("a",{href:"https://butler.social/docs/privacy-policy",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:f[7]||(f[7]=St(()=>{},["stop"]))},b(a(n)("loginPhone.personalDataPolicyLink")),1)])])])]),c("div",aFe,[T(_,{class:"w-full",label:a(n)("bc.request.button"),disabled:!a(i).isBcSubmitEnabled,loading:a(i).isSubmitting,onClick:u},null,8,["label","disabled","loading"])])])}}}),cFe=Object.assign(lFe,{__name:"BcRequestPanel"}),uFe={class:"flex h-full flex-col"},dFe={class:"flex-1 px-6"},fFe={class:"flex h-full flex-col items-center justify-center text-center"},pFe={class:"mt-6 text-24-bold text-black"},hFe={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"},mFe={class:"p-6"},gFe=G({__name:"BcRequestSuccessPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be();function r(){s("go","close")}return(i,o)=>{const l=Uu,u=Ae("PrimaryButton");return p(),y("div",uFe,[c("div",dFe,[c("div",fFe,[T(l,{class:"h-[120px] w-[120px]"}),c("div",pFe,b(a(n)("company.request.doneTitle")),1),c("p",hFe,b(a(n)("company.request.doneDescr")),1)])]),c("div",mFe,[T(u,{class:"w-full",label:a(n)("good"),onClick:r},null,8,["label"])])])}}}),yFe=Object.assign(gFe,{__name:"BcRequestSuccessPanel"}),_Fe={class:"flex h-full flex-col"},vFe={class:"flex-1 overflow-y-auto scrollbar-4-grey80 px-6 pb-6"},bFe={class:"text-24-bold text-left"},xFe={class:"text-16 text-grey-40 mt-2"},kFe={class:"relative mt-4"},wFe={class:"text-16 text-grey-40"},CFe={class:"p-6 pt-4"},$Fe=G({__name:"CompanyRequestPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=mf(),o=zl(),l=A(()=>{const g=n("company.request.agree"),m=n("company.request.agreeGreen");return g.includes(m)?g.replace(m,""):`${g} `}),u=A(()=>[{label:n("company.request.recall"),value:"callback"},{label:n("company.request.tg"),value:"telegram"}]);je(()=>{i.loadPrefill()});async function d(){const g=await i.submit();if(!g.ok){r(g.message);return}i.isFromHeader?window.ym?.(aa,"reachGoal","ÐÑÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ - в наÑале"):window.ym?.(aa,"reachGoal","ÐÑÑавиÑÑ Ð·Ð°ÑÐ²ÐºÑ - в ÑеÑедине"),s("go",{to:"company-request-success",replace:!0})}function f(g){i.setCaptchaToken(g)}function h(){window.open("https://butler.social/docs/privacy-policy","_blank")}return(g,m)=>{const _=Ae("LabeledTextField"),v=Ae("SegmentedControl"),k=Rs,x=Ae("SelectTextForm"),C=I9,w=_a,$=va,S=Ae("PrimaryButton");return p(),y("div",_Fe,[c("div",vFe,[c("h1",bFe,b(a(n)("company.request.title")),1),c("p",xFe,b(a(n)("company.request.descr")),1),T(_,{modelValue:a(i).name,"onUpdate:modelValue":m[0]||(m[0]=I=>a(i).name=I),label:a(n)("company.request.name"),class:"mt-6"},null,8,["modelValue","label"]),T(_,{modelValue:a(i).email,"onUpdate:modelValue":m[1]||(m[1]=I=>a(i).email=I),label:a(n)("company.request.email"),type:"email",autocomplete:"email",class:"mt-4"},null,8,["modelValue","label"]),T(_,{modelValue:a(i).phone,"onUpdate:modelValue":m[2]||(m[2]=I=>a(i).phone=I),label:a(n)("company.request.phone"),"input-mode":"tel",autocomplete:"tel",formatter:a(o),class:"mt-4"},null,8,["modelValue","label","formatter"]),T(v,{class:"mt-4",items:u.value,"model-value":a(i).contactChannel,"onUpdate:modelValue":a(i).setContactChannel},null,8,["items","model-value","onUpdate:modelValue"]),T(_,{modelValue:a(i).companyName,"onUpdate:modelValue":m[3]||(m[3]=I=>a(i).companyName=I),label:a(n)("company.request.companyName"),class:"mt-4"},null,8,["modelValue","label"]),T(x,{"model-value":a(i).companyType,label:a(n)("company.request.type"),class:"mt-4",onSelect:m[4]||(m[4]=I=>s("go",{to:"company-request-type",replace:!1}))},{icon:Xe(()=>[T(k)]),_:1},8,["model-value","label"]),c("div",kFe,[T(C,{sitekey:"ysc1_BlAQ2aa35TFKPI1QWb8441g8BhQ82o7ja8PG7WOeb529ce9e",onSuccess:f,onError:m[5]||(m[5]=I=>a(r)("CAPTCHA: "+I))})]),c("button",{type:"button",class:"mt-6 inline-flex items-center gap-2 text-left",onClick:m[6]||(m[6]=(...I)=>a(i).toggleAgreement&&a(i).toggleAgreement(...I))},[a(i).isAgreementAccepted?(p(),K(w,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K($,{key:1,class:"h-6 w-6 shrink-0"})),c("span",wFe,[Qe(b(l.value)+" ",1),c("span",{class:"text-emerald-primary curs
77or-pointer",onClick:St(h,["stop"])},b(a(n)("company.request.agreeGreen")),1)])])]),c("div",CFe,[T(S,{class:"w-full",label:a(n)("company.request.button"),disabled:!a(i).isSubmitEnabled,loading:a(i).isSubmitting,onClick:d},null,8,["label","disabled","loading"])])])}}}),SFe=Object.assign($Fe,{__name:"CompanyRequestPanel"}),AFe={class:"flex h-full flex-col"},IFe={class:"px-6 flex-1 overflow-y-auto scrollbar-4-grey80 pb-6"},TFe={class:"text-24-bold text-left"},PFe={class:"mt-6"},DFe=["onClick"],EFe={class:"text-16 text-black"},LFe={class:"p-6 pt-4"},RFe=G({__name:"CompanyRequestTypePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=mf(),i=X(r.companyType),o={"УпÑавлÑÑÑÐ°Ñ ÐºÐ¾Ð¼Ð¿Ð°Ð½Ð¸Ñ":"company.types.uk",ТСÐ:"company.types.tszh",ТСÐ:"company.types.tsn","ÐизнеÑ-ÑенÑÑ":"company.types.businessCenter",ÐпаÑÑаменÑÑ:"company.types.apartments"};function l(d){const f=o[d];return f?n(f):d}function u(){i.value&&(r.setCompanyType(i.value),s("go","back"))}return(d,f)=>{const h=qu,g=ju,m=Ae("PrimaryButton");return p(),y("div",AFe,[c("div",IFe,[c("h1",TFe,b(a(n)("company.request.type")),1),c("div",PFe,[(p(!0),y(j,null,le(a(r).companyTypes,_=>(p(),y("button",{key:_,type:"button",class:"flex w-full items-center gap-3 py-4 text-left text-16 text-black",onClick:v=>i.value=_},[i.value===_?(p(),K(h,{key:0})):(p(),K(g,{key:1})),c("span",EFe,b(l(_)),1)],8,DFe))),128))])]),c("div",LFe,[T(m,{class:"w-full",label:a(n)("save"),disabled:!i.value,onClick:u},null,8,["label","disabled"])])])}}}),MFe=Object.assign(RFe,{__name:"CompanyRequestTypePanel"}),OFe={class:"flex h-full flex-col"},FFe={class:"flex-1 px-6"},NFe={class:"flex h-full flex-col items-center justify-center text-center"},BFe={class:"mt-6 text-24-bold text-black"},VFe={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"},HFe={class:"p-6"},qFe=G({__name:"CompanyRequestSuccessPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be();function r(){s("go","close")}return(i,o)=>{const l=Uu,u=Ae("PrimaryButton");return p(),y("div",OFe,[c("div",FFe,[c("div",NFe,[T(l,{class:"h-[120px] w-[120px] [&>path]:fill-emerald-primary"}),c("div",BFe,b(a(n)("company.request.doneTitle")),1),c("p",VFe,b(a(n)("company.request.doneDescr")),1)])]),c("div",HFe,[T(u,{class:"w-full",label:a(n)("good"),onClick:r},null,8,["label"])])])}}}),jFe=Object.assign(qFe,{__name:"CompanyRequestSuccessPanel"}),UFe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function zFe(e,t){return p(),y("svg",UFe,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M13.2 2c.824 0 1.502-.001 2.052.044.562.046 1.08.144 1.564.392a4 4 0 0 1 1.749 1.748c.247.485.345 1.002.391 1.564.045.55.044 1.228.044 2.052v8.4c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.749c-.485.247-1.002.345-1.564.391-.55.045-1.228.044-2.052.044h-2.4c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C4.999 17.702 5 17.024 5 16.2V7.8c0-.824-.001-1.502.044-2.052.046-.562.144-1.08.392-1.564a4 4 0 0 1 1.748-1.748c.485-.248 1.002-.346 1.564-.392C9.298 1.999 9.976 2 10.8 2zM15 4.4c0 .264.001.522-.017.739a2 2 0 0 1-.2.77 2 2 0 0 1-.875.873 2 2 0 0 1-.77.201c-.216.018-.474.017-.738.017h-.8c-.264 0-.522.001-.739-.017a2 2 0 0 1-.77-.2 2 2 0 0 1-.873-.875 2 2 0 0 1-.201-.77C8.999 4.923 9 4.665 9 4.4v-.369l-.089.006c-.438.036-.663.101-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.82C7 6.361 7 6.942 7 7.8v8.4c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C9.361 20 9.942 20 10.8 20h2.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.031.038-1.888V7.8c0-.857 0-1.439-.037-1.889-.036-.438-.101-.663-.18-.82a2 2 0 0 0-.875-.873c-.156-.08-.38-.145-.82-.18L15 4.03zm-4 0c0 .297.001.459.01.576l.002.011.012.002c.117.01.28.011.576.011h.8c.297 0 .46-.001.576-.01l.011-.003.002-.011C13 4.859 13 4.696 13 4.4V4h-2z","clip-rule":"evenodd"},null,-1)])])}const WFe={render:zFe},GFe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function YFe(e,t){return p(),y("svg",GFe,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M4.064 13a8 8 0 0 0 5.663 6.67A14.8 14.8 0 0 1 7.453 13zm12.483 0
77a14.8 14.8 0 0 1-2.274 6.67A8 8 0 0 0 19.936 13zm-7.082 0A12.77 12.77 0 0 0 12 19.44 12.77 12.77 0 0 0 14.535 13zm.262-8.67A8 8 0 0 0 4.064 11h3.39c.207-2.382.992-4.67 2.273-6.67M12 4.56A12.77 12.77 0 0 0 9.465 11h5.07A12.77 12.77 0 0 0 12 4.56m2.273-.23A14.8 14.8 0 0 1 16.547 11h3.389a8 8 0 0 0-5.663-6.67","clip-rule":"evenodd"},null,-1)])])}const KFe={render:YFe},QFe={class:"flex w-full flex-col"},XFe={class:"text-center"},ZFe=["id"],JFe={class:"mt-2 text-16 text-grey-40"},eNe={class:"mt-5 flex flex-col gap-2"},tNe={class:"rounded-[8px] bg-grey-90 px-4 py-4"},sNe={class:"flex items-start justify-between gap-4"},nNe={class:"min-w-0"},rNe={class:"text-16 text-black"},iNe={class:"mt-1 max-w-[250px] text-13 text-grey-40"},oNe={class:"mt-4 flex flex-wrap gap-2"},aNe=["onClick"],lNe={class:"rounded-[8px] bg-grey-90 px-4 py-4"},cNe={class:"flex items-start justify-between gap-4"},uNe={class:"min-w-0"},dNe={class:"text-16 text-black"},fNe={class:"mt-1 text-13 text-grey-40"},pNe="https://lk.butler.social/",hNe=G({__name:"AppMobileContinueContent",props:{titleId:{default:"mobile-continue-title"}},setup(e){const{t}=be(),s=Ne(),n=Oe(),r=[{key:"googlePlay",labelKey:"appMobileContinue.downloads.googlePlay",url:"https://clck.ru/3TeUZy"},{key:"appStore",labelKey:"appMobileContinue.downloads.appStore",url:"https://clck.ru/3TeUXz"},{key:"ruStore",labelKey:"appMobileContinue.downloads.ruStore",url:"https://clck.ru/3TeUVA"},{key:"apk",labelKey:"appMobileContinue.downloads.apk",url:"https://butler.social/download/apps/butler-mkd/android.apk"}];function i(l){window.open(l,"_blank")}function o(){const l=s.sessionToken?.trim(),u=n.residence?.residentId.trim(),d=new URL(l?"/share/auth":"/",pNe);l&&d.searchParams.set("session",l),u&&d.searchParams.set("resident_id",u),window.location.assign(d.toString())}return(l,u)=>{const d=WFe,f=KFe;return p(),y("div",QFe,[c("div",XFe,[c("h1",{id:e.titleId,class:"text-24-bold text-black"},b(a(t)("appMobileContinue.title")),9,ZFe),c("p",JFe,b(a(t)("appMobileContinue.subtitle")),1)]),c("div",eNe,[c("article",tNe,[c("div",sNe,[c("div",nNe,[c("h2",rNe,b(a(t)("appMobileContinue.downloadTitle")),1),c("p",iNe,b(a(t)("appMobileContinue.downloadDescription")),1)]),T(d,{class:"h-6 w-6 shrink-0","aria-hidden":"true"})]),c("div",oNe,[(p(),y(j,null,le(r,h=>c("button",{key:h.key,type:"button",class:"h-[28px] rounded-full bg-paleLime-primary px-3 text-11 text-white transition-colors xl:hover:bg-paleLime-40",onClick:g=>i(h.url)},b(a(t)(h.labelKey)),9,aNe)),64))])]),c("article",lNe,[c("div",cNe,[c("div",uNe,[c("h2",dNe,b(a(t)("appMobileContinue.browserTitle")),1),c("p",fNe,b(a(t)("appMobileContinue.browserDescription")),1)]),T(f,{class:"h-6 w-6 shrink-0","aria-hidden":"true"})]),c("button",{type:"button",class:"mt-4 h-[32px] rounded-full bg-white px-4 text-13 text-black transition-colors xl:hover:bg-grey-80",onClick:o}
77,b(a(t)("appMobileContinue.browserButton")),1)])])])}}}),oC=Object.assign(hNe,{__name:"AppMobileContinueContent"}),mNe={},gNe={class:"px-5 pb-6","aria-labelledby":"drawer-mobile-continue-title"};function yNe(e,t){const s=oC;return p(),y("section",gNe,[T(s,{"title-id":"drawer-mobile-continue-title"})])}const _Ne=Object.assign(Gs(mNe,[["render",yNe]]),{__name:"MobileContinuePanel"}),vNe=Ke("allCategoriesStore",{state:()=>({data:null,household:[],forHome:[],searchQuery:"",error:null,isLoading:!0,requestId:0}),getters:{allCategories:e=>[...e.household,...e.forHome]},actions:{updateSearchQuery(e){this.searchQuery=e},async fetchAll(){const e=ue(),t=Oe(),s=Ne(),n=s.isAuthorized,r=n?t.residence?.residentId??null:null,i=++this.requestId;this.isLoading=!0,this.data=null,this.household=[],this.forHome=[],this.error=null;const o=await e.fetchServicesScreenV2(r);i!==this.requestId||s.isAuthorized!==n||n&&t.residence?.residentId!==r||(o.ok?(this.household=o.data.household,this.forHome=o.data.forHome,this.data=o.data,this.error=null):(this.data=null,this.household=[],this.forHome=[],this.error=o.error),this.isLoading=!1)}}}),bNe={class:"flex h-full flex-col overflow-hidden"},xNe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},kNe={class:"flex flex-col gap-6"},wNe={class:"text-left text-24-bold text-black"},CNe={class:"flex items-center gap-2"},$Ne={class:"grid grid-cols-2 gap-2"},SNe=["onClick"],ANe={class:"absolute left-4 right-4 top-4 z-10 block truncate text-16 leading-6 text-black"},INe={key:0,class:"absolute left-4 top-11 z-10 block text-13 text-grey-40"},TNe={key:1,class:"absolute bottom-4 left-4 z-10 rounded-full bg-paleLime-primary px-2 py-1 text-11-bold text-white"},PNe=["src"],DNe=G({__name:"AllCategoriesPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=vNe(),r=Ne(),i=Oe(),o=Al(),l=st(),u=is(),d=Array.isArray(l.query.categoryGroup)?l.query.categoryGroup[0]:l.query.categoryGroup,f=X(d==="for-home"?"for-home":"household"),h=t,g=A(()=>f.value==="for-home"?n.forHome:n.household),m=A(()=>r.isAuthorized?"auth:hover:bg-grey-80":"xl:hover:bg-grey-80");function _(w){f.value=w,u.replace({path:l.path,query:{...l.query,categoryGroup:w}})}function v(){if(!r.isAuthorized){k();return}h("go","all-categories-search")}function k(){o.queueCategory(null);const w={...l.query,panel:"login"};delete w.categoryId,u.push({path:l.path,query:w})}function x(w){if(wi("all categories panel tap",{id:w.id,title:w.title}),w.isFoodDelivery){h("go",{to:"food-delivery",query:{premises_id:i.residence?.premisesId,resident_id:i.residence?.residentId}});return}if(w.isWaterDelivery){h("go",{to:r.isAuthorized?"water-delivery":"login"});return}h("go",{to:"service-category-detail",query:{serviceCategoryId:w.id}})}const C=A(()=>r.isAuthorized&&!i.isLoaded?void 0:r.isAuthorized?i.residence?.residentId??null:null);return Se(C,w=>{w!==void 0&&n.fetchAll()},{immediate:!0}),(w,$)=>{const S=Ae("SearchTextField");return p(),y("div",bNe,[c("div",xNe,[c("div",kNe,[c("h1",wNe,b(a(n).data?.title||a(s)("drawer.categories.servicesTitle")),1),c("div",CNe,[c("button",{type:"button",class:oe(["rounded-full px-4 py-3 text-13 transition-colors",f.value==="household"?"bg-[#40497A] text-white":"bg-grey-90 text-black"]),onClick:$[0]||($[0]=I=>_("household"))},b(a(s)("drawer.categories.household")),3),c("button",{type:"button",class:oe(["rounded-full px-4 py-3 text-13 transition-colors",f.value==="for-home"?"bg-[#40497A] text-white":"bg-grey-90 text-black"]),onClick:$[1]||($[1]=I=>_("for-home"))},b(a(s)("drawer.categories.forHome")),3)]),T(S,{"model-value":a(n).searchQuery,placeholder:a(s)("drawer.categories.searchPlaceholder"),readonly:"",role:"button",tabindex:"0",onClick:v,onKeydown:[Qr(St(v,["prevent"]),["enter"]),Qr(St(v,["prevent"]),["space"])]},null,8,["model-value","placeholder","onKeydown"]),c("div",$Ne,[a(n).isLoading||C.value===void 0?(p(),y(j,{key:0},le(6,I=>c("div",{key:`skeleton-${I}`,class:"relative h-[164px] overflow-hidden rounded-[12px] bg-grey-90 p-4 animate-pulse"},[...$[2]||($[2]=[c("div",{class:"h-4 w-2/3 rounded bg-gray-200"},null,-1),c("div",{class:"mt-3 h-3 w-1/3 rounded bg-gray-200"},null,-1),c("div",{class:"absolute bottom-4 right-4 h-16 w-16 rounded bg-gray-200"},null,-1)])])),64)):(p(!0),y(j,{key:1},le(g.value,I=>(p(),y("button",{key:I.id,type:"button",class:oe(["group relative h-[164px] overflow-hidden rounded-[12px] bg-grey-90 p-4 text-left transition-colors",m.value]),onClick:P=>x(I)},[c("span",ANe,b(I.title),1),I.priceFrom!==void 0?(p(),y("span",INe,b(a(Sl)(I.priceFrom)),1)):E("",!0),I.isNewCategory?(p(),y("span",TNe,b(a(s)("home.categories.new")),1)):E("",!0),I.iconUrl?(p(),y("img",{key:2,src:`${I.iconUrl}_x3.png`,alt:"",class:"absolute bottom-4 right-4 h-16 w-16 object-contain","aria-hidden":"true",draggable:"false"},null,8,PNe)):E("",!0)],10,SNe))),128))])])])])}}}),ENe=Object.assign(DNe,{__name:"AllCategoriesPanel"}),aC=Ls("/images/magnifier_large.png"),LNe={class:"flex h-full flex-col overflow-hidden"},RNe={class:"shrink-0 px-6 pb-5"},MNe={class:"text-left text-24-bold text-black"},ONe={class:"mt-6"},FNe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},NNe={class:"min-w-0 flex-1"},BNe={class:"block text-16 text-black"},VNe={class:"mt-1 block text-13 text-grey-40"},HNe={key:0,class:"mt-6 text-center text-16 text-black"},qNe={key:1,class:"mt-5 space-y-2"},jNe={key:2,class:"mt-5 space-y-2"},UNe=["onClick"],zNe={class:"block text-16 text-black"},WNe={class:"mt-1 flex w-full items-center justify-between gap-3"},GNe={class:"block text-16 text-grey-40"},YNe={key:0,class:"min-w-0 shrink truncate rounded-full bg-white px-2 py-1 text-11-bold text-black"},KNe={key:3,class:"mt-6 text-center text-16 text-grey-50"},QNe=G({__name:"AllCategoriesSearchPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=ue(),i=Oe(),o=Ne(),l=Ln(),u=t,d=X(""),f=X([]),h=X(!1),g=X(!1);let m=null,_=null;async function v(w){const $=w.trim();if(m&&(m.abort(),m=null),!$){f.value=[],h.value=!1,g.value=!1;return}const S=typeof AbortController<"u"?new AbortController:null;m=S,h.value=!0,g.value=!0;try{const I=await r.fetchCategoriesWorksSearch(i.residence?.premisesId??"",$,S?.signal);if(m!==S)return;if(I.ok){f.value=I.data.workTypes??[];return}f.value=[],n(I.error.message??s("-27"))}catch(I){I?.name!=="AbortError"&&(f.value=[],n(I?.message??s("-27")))}finally{m===S&&(m=null,h.value=!1)}}function k(){l.$reset(),l.isFree=!0,u("go",{to:"claim-create-chat",query:{claimId:void 0,claimTitle:void 0,category_title:void 0,claim_category_id:void 0,categoryId:void 0}})}function x(w){o.isAuthorized?(l.setClaimContext(w.claimCategoryId,w.categoryTitle),l.isFree=!1):l.startDemoChat(w.claimCategoryId,w.categoryTitle),l.setWorkTypeContext(w.id,w.title),l.setMessageDraft(w.templateUserMessage),u("go",{to:"claim-create-chat",query:{category_title:w.categoryTitle,claim_category_id:w.claimCategoryId,claimId:void 0,claimTitle:void 0,categoryId:void 0}})}function C(w){if(wi("all categories search panel work type tap",{id:w.id,title:w.title,categoryTitle:w.categoryTitle,claimCategoryId:w.claimCategoryId}),w.isWaterDelivery){u("go",o.isAuthorized?"water-delivery":"login");return}x(w)}return Tt(()=>{_&&clearTimeout(_),m&&m.abort()}),Se(d,w=>{_&&clearTimeout(_),_=setTimeout(()=>{v(w)},300)}),(w,$)=>{const S=Ae("SearchTextField"),I=Rs;return p(),y("div",LNe,[c("div",RNe,[c("h1",MNe,b(a(s)("drawer.categories.searchTitle")),1),c("div",ONe,[T(S,{"model-value":d.value,placeholder:a(s)("drawer.categories.searchInputLabel"),loading:h.value,autofocus:"","onUpdate:modelValue":$[0]||($[0]=P=>d.value=P)},null,8,["model-value","placeholder","loading"])])]),c("div",FNe,[c("button",{type:"button",class:"flex min-h-[64px] w-full items-center gap-4 roun
77ded-[8px] bg-grey-90 px-4 py-[10px] text-left transition-colors xl:hover:bg-grey-80",onClick:k},[$[1]||($[1]=c("img",{src:aC,alt:"",class:"h-11 w-11 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,-1)),c("span",NNe,[c("span",BNe,b(a(s)("drawer.categories.noNeededServiceTitle")),1),c("span",VNe,b(a(s)("drawer.categories.noNeededServiceDescription")),1)]),T(I,{class:"h-6 w-6 shrink-0 [&>path]:fill-grey-40"})]),f.value.length>0?(p(),y("p",HNe,b(a(s)("drawer.categories.searchFound",{count:f.value.length})),1)):E("",!0),h.value?(p(),y("div",qNe,[(p(),y(j,null,le(3,P=>c("div",{key:`skeleton-${P}`,class:"h-[72px] rounded-[8px] bg-grey-90 p-3 animate-pulse"},[...$[2]||($[2]=[c("div",{class:"h-4 w-3/4 rounded bg-gray-200"},null,-1),c("div",{class:"mt-3 h-4 w-24 rounded bg-gray-200"},null,-1)])])),64))])):f.value.length?(p(),y("div",jNe,[(p(!0),y(j,null,le(f.value,P=>(p(),y("button",{key:P.id,type:"button",class:"flex min-h-[72px] w-full flex-col rounded-[8px] bg-grey-90 px-3 py-3 text-left transition-colors xl:hover:bg-grey-80",onClick:L=>C(P)},[c("span",zNe,b(P.title),1),c("span",WNe,[c("span",GNe,b(a(Sl)(P.cost)),1),P.categoryTitle?(p(),y("span",YNe,b(P.categoryTitle),1)):E("",!0)])],8,UNe))),128))])):g.value?(p(),y("p",KNe,b(a(s)("drawer.categories.searchEmpty")),1)):E("",!0)])])}}}),XNe=Object.assign(QNe,{__name:"AllCategoriesSearchPanel"}),ZNe=Ke("serviceCategoryDetailStore",{state:()=>({data:null,categoryId:"",error:null,isLoading:!1}),actions:{async fetch(e){this.categoryId=e,this.data=null,this.error=null,this.isLoading=!0;const t=ue(),s=Ne(),n=Oe().residence?.residentId??null,r=s.isAuthorized?await t.fetchServiceCategoryDetail(e,n):await t.fetchUnauthorizedServiceCategoryDetail(e);return this.categoryId!==e||(r.ok?this.data=r.data:this.error=r.error,this.isLoading=!1),r}}}),JNe={class:"flex h-full min-h-0 flex-col overflow-hidden"},eBe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},tBe={key:0,class:"flex flex-col items-center gap-6 animate-pulse"},sBe={class:"flex gap-2"},nBe={class:"w-full rounded-[24px] bg-grey-90 p-4"},rBe={class:"mt-4 space-y-2"},iBe={key:1,class:"flex flex-col items-center gap-6"},oBe=["src"],aBe={key:1,class:"h-24 w-24"},lBe={class:"w-full text-center"},cBe={class:"text-24-bold text-black"},uBe={key:0,class:"mt-2 text-16 text-grey-40"},dBe={key:2,class:"flex flex-wrap justify-center gap-2"},fBe={class:"w-full rounded-[24px] bg-grey-90 p-4"},pBe={class:"text-16-bold text-black"},hBe={key:0,class:"mt-4 flex flex-col gap-2"},mBe=["onClick"],gBe={class:"block pr-16 text-16 text-black"},yBe={class:"mt-1 block text-13 text-grey-40"},_Be={key:0,class:"absolute right-0 top-0 rounded-bl-[12px] bg-[#FA7A6E] px-2 py-1 text-11-bold text-white"},vBe={key:1,class:"mt-4 text-16 text-grey-40"},bBe={key:2,class:"flex h-full flex-col items-center justify-center text-center"},xBe={class:"text-16 text-grey-40"},kBe={key:0,class:"shrink-0 bg-white px-6 py-6"},wBe={class:"mb-3 text-center text-13 text-grey-40"},CBe=G({__name:"ServiceCategoryDetailPanel",emits:["go"],setup(e,{emit:t}){const s=st(),n=ZNe(),r=Ne(),i=Ln(),{t:o}=be(),{$showSnackbar:l}=Te(),u=t,d=A(()=>{const _=s.query.serviceCategoryId;return Array.isArray(_)?_[0]??"":_??""}),f=A(()=>r.isAuthorized?"auth:hover:bg-grey-80":"xl:hover:bg-grey-80");function h(_){return _.priceFromText?_.priceFromText:_.priceFrom!==void 0?Sl(_.priceFrom):""}async function g(){if(!d.value){u("go","back");return}const _=await n.fetch(d.value);_&&!_.ok&&l(_.error.message??o("-27"))}function m(_){const v=n.data;v&&(r.isAuthorized?(i.setClaimContext(v.categoryId,v.title),i.isFree=!1):i.startDemoChat(v.categoryId,v.title),_?i.setWorkTypeContext(_.workTypeId,_.title):i.clearWorkTypeContext(),i.setMessageDraft(_?.templateUserMessage??""),u("go",{to:"claim-create-chat",query:{claimId:v.categoryId,claimTitle:v.title}}))}return je(()=>{g()}),(_,v)=>{const k=Du;return p(),y("div",JNe,[c("div",eBe,[a(n).isLoading?(p(),y("div",tBe,[v[2]||(v[2]=c("div",{class:"h-24 w-24 rounded-[16px] bg-grey-80"},null,-1)),v[3]||(v[3]=c("div",{class:"w-full space-y-2 text-center"}
77,[c("div",{class:"mx-auto h-8 w-1/2 rounded bg-grey-80"}),c("div",{class:"mx-auto h-5 w-3/4 rounded bg-grey-80"})],-1)),c("div",sBe,[(p(),y(j,null,le(3,x=>c("div",{key:x,class:"h-8 w-24 rounded-full bg-grey-80"})),64))]),c("div",nBe,[v[1]||(v[1]=c("div",{class:"h-6 w-24 rounded bg-grey-80"},null,-1)),c("div",rBe,[(p(),y(j,null,le(3,x=>c("div",{key:x,class:"h-[76px] rounded-[8px] bg-white"})),64))])])])):a(n).data?(p(),y("div",iBe,[a(n).data.iconUrl?(p(),y("img",{key:0,src:`${a(n).data.iconUrl}_x3.png`,alt:"",class:"h-24 w-24 object-contain","aria-hidden":"true",draggable:"false"},null,8,oBe)):(p(),y("div",aBe)),c("div",lBe,[c("h1",cBe,b(a(n).data.title),1),a(n).data.description?(p(),y("p",uBe,b(a(n).data.description),1)):E("",!0)]),a(n).data.markers.length?(p(),y("div",dBe,[(p(!0),y(j,null,le(a(n).data.markers,x=>(p(),y("span",{key:x,class:"rounded-full bg-[#F7F8FC] px-3 py-2 text-13 text-[#40497A]"},b(x),1))),128))])):E("",!0),c("section",fBe,[c("h2",pBe,b(a(o)("drawer.categories.detail.choose")),1),a(n).data.items.length?(p(),y("div",hBe,[(p(!0),y(j,null,le(a(n).data.items,x=>(p(),y("button",{key:x.workTypeId,type:"button",class:oe(["relative min-h-[76px] w-full overflow-hidden rounded-[8px] bg-white p-4 text-left transition-colors",f.value]),onClick:C=>m(x)},[c("span",gBe,b(x.title),1),c("span",yBe,b(h(x)),1),x.needShowBenefitMarker?(p(),y("span",_Be,b(a(o)("drawer.categories.detail.benefit")),1)):E("",!0)],10,mBe))),128))])):(p(),y("p",vBe,b(a(o)("drawer.categories.detail.empty")),1))])])):(p(),y("div",bBe,[c("p",xBe,b(a(o)("drawer.categories.detail.loadError")),1),T(a(vt),{class:"mt-4",variant:"secondary",label:a(o)("drawer.categories.detail.retry"),onClick:g},null,8,["label"])]))]),a(n).data?(p(),y("div",kBe,[c("p",wBe,b(a(o)("drawer.categories.detail.botHint")),1),T(a(vt),{label:a(o)("drawer.categories.detail.askBot"),onClick:v[0]||(v[0]=x=>m())},{icon:Xe(()=>[T(k,{class:"[&>path]:fill-white"})]),_:1},8,["label"])])):E("",!0)])}}}),$Be=Object.assign(CBe,{__name:"ServiceCategoryDetailPanel"}),SBe=["aria-label"],ABe={class:"flex flex-col gap-6 animate-pulse","aria-hidden":"true"},IBe={class:"flex justify-center gap-2"},TBe={class:"space-y-4 rounded-[12px] bg-grey-90 p-4"},PBe={key:0,class:"space-y-2"},DBe={key:1,class:"space-y-3 rounded-[12px] bg-grey-90 p-4"},EBe={key:0,class:"h-4 w-1/3 rounded bg-grey-80"},LBe={class:"space-y-3 rounded-[12px] bg-grey-90 p-4"},RBe={key:0,class:"h-4 w-2/3 rounded bg-grey-80"},MBe={key:2,class:"space-y-3"},OBe=G({__name:"WaterDeliverySkeleton",props:{variant:{}},setup(e){const{t}=be();return(s,n)=>(p(),y("div",{class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80","aria-busy":"true","aria-label":a(t)("drawer.categories.waterDelivery.loading")},[c("div",ABe,[e.variant==="landing"?(p(),y(j,{key:0},[n[3]||(n[3]=c("div",{class:"mx-auto h-24 w-24 rounded-[16px] bg-grey-80"},null,-1)),n[4]||(n[4]=c("div",{class:"space-y-2"},[c("div",{class:"mx-auto h-8 w-1/2 rounded bg-grey-80"}),c("div",{class:"mx-auto h-5 w-3/4 rounded bg-grey-80"})],-1)),c("div",IBe,[(p(),y(j,null,le(3,r=>c("div",{key:r,class:"h-8 w-24 rounded-full bg-grey-80"})),64))]),c("div",TBe,[n[0]||(n[0]=c("div",{class:"h-6 w-24 rounded-full bg-grey-80"},null,-1)),n[1]||(n[1]=c("div",{class:"h-6 w-3/4 rounded bg-grey-80"},null,-1)),(p(),y(j,null,le(3,r=>c("div",{key:r,class:"h-5 w-full rounded bg-grey-80"})),64)),n[2]||(n[2]=c("div",{class:"h-12 rounded-full bg-grey-80"},null,-1))])],64)):(p(),y(j,{key:1},[e.variant==="tariffs"?(p(),y("div",PBe,[...n[5]||(n[5]=[c("div",{class:"h-8 w-3/4 rounded bg-grey-80"},null,-1),c("div",{class:"h-5 w-1/3 rounded bg-grey-80"},null,-1)])])):(p(),y("div",DBe,[...n[6]||(n[6]=[c("div",{class:"h-4 w-1/2 roun
77ded bg-grey-80"},null,-1),c("div",{class:"h-6 w-3/4 rounded bg-grey-80"},null,-1)])])),(p(!0),y(j,null,le(e.variant==="tariffs"?4:3,r=>(p(),y("div",{key:r,class:"space-y-2"},[e.variant!=="tariffs"?(p(),y("div",EBe)):E("",!0),c("div",LBe,[n[7]||(n[7]=c("div",{class:"flex justify-between gap-4"},[c("div",{class:"h-6 w-1/2 rounded bg-grey-80"}),c("div",{class:"h-6 w-1/4 rounded bg-grey-80"})],-1)),e.variant!=="tariffs"?(p(),y("div",RBe)):E("",!0)])]))),128)),e.variant==="checkout"?(p(),y("div",MBe,[(p(),y(j,null,le(2,r=>c("div",{key:r,class:"h-6 rounded bg-grey-80"})),64))])):E("",!0),n[8]||(n[8]=c("div",{class:"h-12 rounded-full bg-grey-80"},null,-1))],64))])],8,SBe))}}),Wu=Object.assign(OBe,{__name:"WaterDeliverySkeleton"}),FBe=Ls("/images/home/water_delivery_hero.png"),NBe=Ls("/images/home/water_delivery_card_background.png");function Gu(e,t){const s=S9(),n=st(),r=Ne(),{$showSnackbar:i}=Te(),{t:o}=be(),l=X(!0);let u=!1;const d=X(!1),f=X(!1);let h=0;const g=A(()=>n.query.tariffs_done==="subscription"),m=A(()=>n.query.tariffs_done==="checkout");async function _(){const k=++h;if(d.value=!1,l.value=!0,!!f.value){if(!s.hasContext){l.value=!1;return}if(u=s.isBusy,!u)try{await v(k),k===h&&f.value&&s.error&&i(s.error.message||o("drawer.categories.waterDelivery.loadError"))}finally{k===h&&(l.value=!1)}}}async function v(k){if(e==="subscription"){if(!await s.loadSubscription()||k!==h)return;if(!!!s.subscription?.waterSubscriptionId){t({to:"water-delivery",replace:!0});return}s.selectTariff(s.subscription?.tariff.id??"")}else if(e==="receipt"){if(n.query.water_receipt_from==="claim"){const C=ri();if(!C.claim&&n.query.id&&n.query.premises_id&&C.setClaimContext(String(n.query.id),String(n.query.premises_id)),k!==h)return}else if(!await s.loadSubscription()||k!==h)return}else{if(!await s.loadScreen(e==="landing")||k!==h)return;const x=!!s.screen?.waterSubscriptionId;if(e==="landing"&&x){t({to:"water-delivery-subscription",replace:!0});return}if(g.value){if(!await s.loadSubscription()||k!==h)return;s.selectTariff(s.subscription?.tariff.id??"")}if((e==="checkout"||e==="tariffs")&&x&&!g.value){t({to:"water-delivery-subscription",replace:!0});return}}if(e==="checkout"){const x=typeof n.query.water_tariff_id=="string"?n.query.water_tariff_id:s.selectedTariffId;if(s.selectTariff(x),!s.selectedTariff){t({to:"water-delivery-tariffs",replace:!0});return}if(!await s.loadCheckout()||k!==h)return;if(!s.checkout?.payer?.id){t({to:"resident-organization-details",replace:!0,query:{org_details_from:"water",water_tariff_id:s.selectedTariffId}});return}}d.value=!0}return Se(()=>[f.value,r.sessionToken,s.hasContext,s.premisesId,s.residentId],()=>{_()}),Se(()=>s.isBusy,k=>{!k&&u&&f.value&&_()}),je(()=>{f.value=!0}),Tt(()=>{h++,f.value=!1,d.value=!1}),{store:s,ready:d,isInitializing:l,isSubscriptionEdit:g,isCheckoutEdit:m}}const BBe={class:"flex h-full min-h-0 flex-col overflow-hidden"},VBe={key:1,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},HBe={class:"flex flex-col items-center gap-6"},qBe={class:"w-full text-center"},jBe={class:"text-24-bold text-black"},UBe={class:"mt-2 text-16 text-grey-40"},zBe={class:"flex flex-wrap justify-center gap-2"},WBe={class:"relative w-full overflow-hidden rounded-[12px] bg-[#2D3666] p-4"},GBe={class:"relative flex flex-col gap-4"},YBe={class:"inline-flex w-fit items-center gap-1 rounded-full bg-red-50 px-2 py-1 text-11-bold text-white"},KBe={class:"flex flex-col gap-1"},QBe={class:"flex items-start justify-between gap-2"},XBe={class:"min-w-0 text-16-bold text-white"},ZBe={class:"shrink-0 whitespace-nowrap text-16-bold text-white"},JBe={class:"font-normal text-transparent-white48"},eVe={class:"text-13 text-transparent-white48"},tVe={class:"flex flex-col gap-2"},sVe={class:"text-13 text-white"},nVe=G({__name:"WaterDeliveryPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t,{store:r,ready:i,isInitializing:o}=Gu("landing",u=>n("go",u)),l=A(()=>[s("drawer.categories.waterDelivery.featureDelivery"),s("drawer.categories.waterDelivery.featurePump"),s("drawer.categories.waterDelivery.featureFlexibleTariff")]);return(u,d)=>{const f=Wu,h=J2,g=G0;return p(),y("div",BBe,[a(o)?(p(),K(f,{key:0,variant:"landing"})):a(i)?(p(),y("div",VBe,[c("div",HBe,[d[3]||(d[3]=c("img",{src:FBe,alt:"",class:"h-24 w-24 object-contain","aria-hidden":"true",draggable:"false"}
77,null,-1)),c("div",qBe,[c("h1",jBe,b(a(r).screen?.title),1),c("p",UBe,b(a(r).screen?.description),1)]),c("div",zBe,[(p(!0),y(j,null,le(a(r).screen?.markers,m=>(p(),y("span",{key:m,class:"rounded-full bg-purple-90 px-3 py-2 text-13 text-[#2D3666]"},b(m),1))),128))]),c("section",WBe,[d[2]||(d[2]=c("img",{src:NBe,alt:"",class:"pointer-events-none absolute bottom-0 right-0 h-[232px] w-[232px]","aria-hidden":"true",draggable:"false"},null,-1)),c("div",GBe,[c("span",YBe,[T(h,{class:"[&>path]:fill-white","aria-hidden":"true"}),Qe(" "+b(a(s)("drawer.categories.waterDelivery.subscriptionBadge")),1)]),c("div",KBe,[c("div",QBe,[c("h2",XBe,b(a(s)("drawer.categories.waterDelivery.scheduleTitle")),1),c("p",ZBe,[Qe(b(a(s)("drawer.categories.waterDelivery.from"))+" "+b(a(Wr)(a(r).screen?.minAmount??0))+" ",1),c("span",JBe,b(a(s)("drawer.categories.waterDelivery.perMonth")),1)])]),c("p",eVe,b(a(s)("drawer.categories.waterDelivery.chooseBottlesDescription")),1)]),d[1]||(d[1]=c("div",{class:"h-px bg-transparent-white8"},null,-1)),c("ul",tVe,[(p(!0),y(j,null,le(a(l),m=>(p(),y("li",{key:m,class:"flex items-center gap-2"},[T(g,{class:"shrink-0 [&>path]:fill-paleLime-primary","aria-hidden":"true"}),c("span",sVe,b(m),1)]))),128))]),T(a(vt),{label:a(s)("drawer.categories.waterDelivery.chooseTariff"),disabled:!a(r).tariffs.length,onClick:d[0]||(d[0]=m=>n("go","water-delivery-tariffs"))},null,8,["label","disabled"])])])])])):E("",!0)])}}}),rVe=Object.assign(nVe,{__name:"WaterDeliveryPanel"}),iVe={class:"flex h-full min-h-0 flex-col overflow-hidden"},oVe={key:1,class:"flex-1 overflow-y-auto px-6 scrollbar-4-grey80"},aVe={class:"flex flex-col gap-2"},lVe={class:"text-24-bold text-black"},cVe={class:"text-16 text-grey-40"},uVe={class:"mt-6 flex flex-col gap-2"},dVe=["disabled","onClick"],fVe={class:"flex items-center justify-between gap-2"},pVe={key:0,class:"text-16 text-grey-40"},hVe={key:2,class:"shrink-0 bg-white px-6 py-6"},mVe=G({__name:"WaterDeliveryTariffsPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=t,{store:i,ready:o,isInitializing:l,isSubscriptionEdit:u,isCheckoutEdit:d}=Gu("tariffs",g=>r("go",g)),f=A(()=>u.value||d.value);async function h(){if(!o.value||i.isBusy)return;const g=u.value?await i.changeSubscription("tariff"):await i.loadCheckout();if(o.value){if(!g){i.error&&n(i.error.message||s("drawer.categories.waterDelivery.actionError"));return}if(u.value){r("go",{to:"water-delivery-subscription",replace:!0});return}r("go",{to:i.checkout?.payer?.id?"water-delivery-confirm":"resident-organization-details",replace:f.value,query:{water_tariff_id:i.selectedTariffId,org_details_from:i.checkout?.payer?.id?void 0:"water"}})}}return(g,m)=>{const _=Wu,v=W0;return p(),y("div",iVe,[a(l)?(p(),K(_,{key:0,variant:"tariffs"})):a(o)?(p(),y("div",oVe,[c("div",aVe,[c("h1",lVe,b(a(s)("drawer.categories.waterDelivery.chooseBottlesTitle")),1),c("p",cVe,b(a(i).selectedTariff?.pricePerBottleText||a(i).tariffs[0]?.pricePerBottleText),1)]),c("div",uVe,[(p(!0),y(j,null,le(a(i).tariffs,k=>(p(),y("button",{key:k.id,type:"button",class:oe(["w-full rounded-[12px] p-4 text-left transition-colors",k.id===a(i).selectedTariffId?"bg-[#2D3666]":"bg-grey-90"]),disabled:a(i).isBusy,onClick:x=>a(i).selectTariff(k.id)},[c("div",fVe,[c("span",{class:oe(["text-16",k.id===a(i).selectedTariffId?"text-white":"text-black"])},b(k.title),3),c("span",{class:oe(["text-16",k.id===a(i).selectedTariffId?"text-white":"text-black"])},b(k.amountText||k.pricePerBottleText),3)]),(p(!0),y(j,null,le(k.markers,(x,C)=>(p(),y("div",{key:`${x.text}-${C}`,class:"mt-4 flex items-center gap-2"},[T(v,{class:"shrink-0 [&>path]:fill-current",style:kt({color:x.textColor||"#FA7A6E"}),"aria-hidden":"true"},null,8,["style"]),c("span",{class:oe(["rounded-full px-2 py-1 text-13",k.id===a(i).selectedTariffId?"text-white":"text-black"]),style:kt(x.backgroundColor?{backgroundColor:x.backgroundColor,color:x.textColor||void 0}:void 0)},b(x.text),7)]))),128))],10,dVe))),128)),a(i).tariffs.length?E("",!0):(p(),y("p",pVe,b(a(s)("drawer.categories.waterDelivery.noTariffs")),1))])])):E("",!0),a(o)?(p(),y("div",hVe,[T(a(vt),{label:a(f)?a(s)("drawer.categories.waterDelivery.done"):a(s)("drawer.categories.waterDelivery.next"),disabled:!a(i).selectedTariff||a(i).isBusy||a(u)&&!a(i).subscription?.canChangeTariff,loading:a(i).isBusy,onClick:h},null,8,["label","disabled","loading"])])):E("",!0)])}}}),gVe=Object.assign(mVe,{__name:"WaterDeliveryTariffsPanel"}),yVe={class:"flex-1 text-13 text-black"},_Ve=["href"],vVe={key:1},bVe=G({__name:"WaterDeliveryOffer",props:{offer:{}},setup(e){const t=e,s=A(()=>/^(https?:\/\/|\/(?!\/))/i.test(t.offer.url)?t.offer.url:""),n=A(()=>t.offer.linkText?t.offer.text.indexOf(t.offer.linkText):-1),r=A(()=>n.value<0?`${t.offer.text} `:t.offer.text.slice(0,n.value)),i=A(()=>n.value<0?"":t.offer.text.slice(n.value+t.offer.linkText.length));return(o,l)=>(p(),y("span",yVe,[Qe(b(a(r)),1),a(s)?(p(),y("a",{key:0,href:a(s),target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:l[0]||(l[0]=St(()=>{},["stop"]))},b(e.offer.linkText||a(s)),9,_Ve)):(p(),y("span",vVe,b(e.offer.linkText),1)),Qe(b(a(i)),1)]))}}),xVe=Object.assign(bVe,{__name:"WaterDeliveryOffer"}
77),kVe={class:"flex h-full min-h-0 flex-col overflow-hidden"},wVe={key:1,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},CVe={key:0,class:"rounded-[12px] bg-[#2D3666] p-4"},$Ve={class:"text-13 text-transparent-white48"},SVe={class:"mt-1 text-16-bold text-white"},AVe={class:"mt-4"},IVe={class:"flex items-center justify-between gap-2"},TVe={class:"text-13 text-grey-40"},PVe=["disabled"],DVe={class:"mt-2 flex items-center justify-between gap-2 rounded-[12px] bg-grey-90 p-4"},EVe={class:"text-16 text-black"},LVe={class:"text-16 text-black"},RVe={class:"mt-4"},MVe={class:"text-13 text-grey-40"},OVe={class:"mt-2 flex flex-col gap-1 rounded-[12px] bg-grey-90 p-4"},FVe={class:"text-16 text-black"},NVe={class:"mt-4"},BVe={class:"text-13 text-grey-40"},VVe={class:"mt-2 flex flex-col gap-1 rounded-[12px] bg-grey-90 p-4"},HVe={class:"text-16 text-black"},qVe={key:0,class:"text-13 text-grey-40"},jVe={key:1,class:"text-13 text-grey-40"},UVe={key:2,class:"shrink-0 bg-white px-6 pb-6 pt-3"},zVe={class:"flex items-center gap-2"},WVe={class:"mt-3 flex items-center gap-2"},GVe=G({__name:"WaterDeliveryConfirmPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=t,i=X(!1),o=X(!1),l=A(()=>i.value&&o.value),{store:u,ready:d,isInitializing:f}=Gu("checkout",g=>r("go",g));Se(()=>u.checkout,()=>{i.value=!1,o.value=!1});async function h(){if(!d.value||u.isBusy||!l.value)return;const g=await u.createSubscription(i.value,o.value);d.value&&(g?r("go",{to:"water-delivery-subscription",replace:!0}):u.error&&n(u.error.message||s("drawer.categories.waterDelivery.actionError")))}return(g,m)=>{const _=Wu,v=_a,k=va,x=xVe;return p(),y("div",kVe,[a(f)?(p(),K(_,{key:0,variant:"checkout"})):a(d)&&a(u).checkout?(p(),y("div",wVe,[a(u).checkout.deliveryDateText||a(u).checkout.deliveryDate?(p(),y("section",CVe,[c("p",$Ve,b(a(s)("drawer.categories.waterDelivery.confirmNextDeliveryLabel")),1),c("p",SVe,b([a(u).checkout.deliveryDateText,a(u).checkout.deliveryTimeText].filter(Boolean).join(", ")),1)])):E("",!0),c("section",AVe,[c("div",IVe,[c("h3",TVe,b(a(s)("drawer.categories.waterDelivery.confirmTariffLabel")),1),c("button",{type:"button",class:"text-13 text-emerald-primary transition-opacity auth:hover:opacity-80",disabled:a(u).isBusy,onClick:m[0]||(m[0]=C=>r("go",{to:"water-delivery-tariffs",query:{tariffs_done:"checkout"}}))},b(a(s)("drawer.categories.waterDelivery.confirmChange")),9,PVe)]),c("div",DVe,[c("span",EVe,b(a(u).checkout.tariff.title),1),c("span",LVe,b(a(u).checkout.tariff.amountText||a(u).checkout.tariff.pricePerBottleText),1)])]),c("section",RVe,[c("h3",MVe,b(a(s)("drawer.categories.waterDelivery.confirmAddressLabel")),1),c("div",OVe,[c("p",FVe,b(a(u).checkout.addressText),1)])]),c("section",NVe,[c("h3",BVe,b(a(s)("drawer.categories.waterDelivery.confirmPayerLabel")),1),c("div",VVe,[c("p",HVe,b(a(u).checkout.payer?.name),1),a(u).checkout.payer?.inn?(p(),y("p",qVe,b(a(s)("drawer.categories.waterDelivery.payerInn",{inn:a(u).checkout.payer.inn})),1)):E("",!0),a(u).checkout.payer?.email?(p(),y("p",jVe,b(a(s)("drawer.categories.waterDelivery.confirmInvoiceEmailHint",{email:a(u).checkout.payer?.email})),1)):E("",!0)])])])):E("",!0),a(d)&&a(u).checkout?(p(),y("div",UVe,[c("label",zVe,[pn(c("input",{"onUpdate:modelValue":m[1]||(m[1]=C=>it(i)?i.value=C:null),type:"checkbox",class:"sr-only"},null,512),[[$y,a(i)]]),a(i)?(p(),K(v,{key:0,class:"shrink-0","aria-hidden":"true"})):(p(),K(k,{key:1,class:"shrink-0","aria-hidden":"true"})),T(x,{offer:a(u).checkout.offer},null,8,["offer"])]),c("label",WVe,[pn(c("input",{"onUpdate:modelValue":m[2]||(m[2]=C=>it(o)?o.value=C:null),type:"checkbox",class:"sr-only"},null,512),[[$y,a(o)]]),a(o)?(p(),K(v,{key:0,class:"shrink-0","aria-hidden":"true"})):(p(),K(k,{key:1,class:"shrink-0","aria-hidden":"true"})),T(x,{offer:a(u).checkout.supplierOffer},null,8,["offer"])]),T(a(vt),{class:"mt-3",label:a(s)("drawer.categories.waterDelivery.confirmSubscribe"),disabled:!a(l)||a(u).isBusy||!a(u).checkout.payer?.id,loading:a(u).isActionLoading,onClick:h},null,8,["label","disabled","loading"])])):E("",!0)])}}}),YVe=Object.assign(GVe,{__name:"WaterDeliveryConfirmPanel"}),KVe={class:"flex h-full min-h-0 flex-col overflow-hidden"},QVe={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},XVe={class:"text-24-bold text-black"},ZVe={class:"mt-6 flex gap-2 rounded-full bg-grey-90 p-1",role:"tablist"},JVe={class:"mt-6 rounded-[12px] bg-grey-90 p-4"},eHe={class:"text-16 text-black"},tHe={key:0,class:"mt-1 text-13 text-grey-40"},sHe={class:"mt-1 text-13 text-grey-40"},nHe={class:"block text-13 text-grey-40"},rHe={class:"block text-13 text-grey-40"},iHe={class:"block text-13 text-grey-40"},oHe={class:"block text-13 text-grey-40"},aHe={class:"mt-3 flex flex-wrap gap-2"},lHe=["onClick"],cHe={class:"shrink-0 bg-white px-6 pb-6 pt-3"},uHe=G({__name:"WaterDeliveryReceiptPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),o=ri(),l=A(()=>n.query.water_receipt_from==="claim"),u=L=>typeof L=="string"?L:void 0,{store:d,ready:f,isInitializing:h}=Gu("receipt",L=>s("go",L)),g=X(n.query.water_receipt_mode==="problem"?"problem":"confirm");Se([l,()=>u(n.query.id),()=>u(n.query.premises_id)],([L,D,R])=>{!L||!D||!R||(o.selectedClaimId!==D||o.selectedPremisesId!==R)&&o.setClaimContext(D,R)},{immediate:!0});const m=X(""),_=X(""),v=X(""),k=X(null),x=A(()=>[r("drawer.categories.waterDelivery.courierDidNotArrive"),r("drawer.categories.waterDelivery.couldNotAccept")]),C=A(()=>!!(w.value?.deliveryDate&&S(w.value.deliveryDate))),w=A(()=>{const L=Number(n.query.water_delivery_id);return!Number.isSafeInteger(L)||L<=0?null:l.value?o.claim?.waterDelivery?.id===L?o.claim.waterDelivery:null:d.subscription?.deliveries.find(D=>D.id===L)??null}),$=A(()=>g.value==="problem"?v.value.length<=1e3:m.value!==""&&_.value!==""&&/^\d+$/.test(m.value)&&/^\d+$/.test(_.value));function S(L){if(!/^\d{4}-\d{2}-\d{2}$/.test(L))return null;const D=new Date(`${L}T00:00:00`);return Number.isNaN(D.getTime())?null:D}function I(L){return`${L.getFullYear()}
77-${String(L.getMonth()+1).padStart(2,"0")}-${String(L.getDate()).padStart(2,"0")}`}Se([f,w,()=>o.isLoading],([L,D,R])=>{L&&!R&&!D&&(i(r("drawer.categories.waterDelivery.receiptExpired")),s("go",l.value?{to:"claim-info",replace:!0,query:{id:u(n.query.id),premises_id:u(n.query.premises_id)}}:{to:"water-delivery-subscription",replace:!0}))});async function P(){if(!$.value||!w.value||d.isBusy)return;if(!(g.value==="confirm"?await d.confirmDelivery(w.value.id,Number(m.value),Number(_.value),k.value?I(k.value):void 0):await d.reportDeliveryProblem(w.value.id,v.value||void 0))){d.error&&i(d.error.message||r("drawer.categories.waterDelivery.actionError"));return}l.value?(await o.loadClaim(),s("go",{to:"claim-info",replace:!0,query:{id:u(n.query.id),premises_id:u(n.query.premises_id)}})):s("go",{to:"water-delivery-subscription",replace:!0})}return(L,D)=>{const R=Wu,F=Ae("VDatePicker");return p(),y("div",KVe,[a(h)||a(l)&&a(o).isLoading?(p(),K(R,{key:0,variant:"receipt"})):a(w)?(p(),y(j,{key:1},[c("div",QVe,[c("h1",XVe,b(a(r)("drawer.categories.waterDelivery.receiptTitle")),1),c("div",ZVe,[c("button",{type:"button",class:oe(["flex-1 rounded-full px-3 py-3 text-13",a(g)==="confirm"?"bg-white text-black shadow-sm":"text-grey-40"]),onClick:D[0]||(D[0]=N=>g.value="confirm")},b(a(r)("drawer.categories.waterDelivery.receiptConfirmTab")),3),c("button",{type:"button",class:oe(["flex-1 rounded-full px-3 py-3 text-13",a(g)==="problem"?"bg-white text-black shadow-sm":"text-grey-40"]),onClick:D[1]||(D[1]=N=>g.value="problem")},b(a(r)("drawer.categories.waterDelivery.receiptProblemTab")),3)]),c("section",JVe,[c("p",eHe,b(a(w).dateText),1),a(w).deliveryDateText||a(w).deliveryTimeText?(p(),y("p",tHe,b([a(w).deliveryDateText,a(w).deliveryTimeText].filter(Boolean).join(", ")),1)):E("",!0),c("p",sHe,b([a(w).bottlesText,a(w).amountText].filter(Boolean).join(" · ")),1)]),a(g)==="confirm"?(p(),y("form",{key:0,class:"mt-6 space-y-4",onSubmit:St(P,["prevent"])},[c("label",nHe,[Qe(b(a(r)("drawer.categories.waterDelivery.bottlesReceived"))+" ",1),pn(c("input",{"onUpdate:modelValue":D[2]||(D[2]=N=>it(m)?m.value=N:null),type:"number",min:"0",step:"1",required:"",class:"mt-2 h-12 w-full rounded-[12px] bg-grey-90 px-4 text-16 text-black"},null,512),[[jr,a(m)]])]),c("label",rHe,[Qe(b(a(r)("drawer.categories.waterDelivery.emptyBottlesReturned"))+" ",1),pn(c("input",{"onUpdate:modelValue":D[3]||(D[3]=N=>it(_)?_.value=N:null),type:"number",min:"0",step:"1",required:"",class:"mt-2 h-12 w-full rounded-[12px] bg-grey-90 px-4 text-16 text-black"},null,512),[[jr,a(_)]])]),c("label",iHe,[Qe(b(a(r)("drawer.categories.waterDelivery.actualDeliveryDate"))+" ",1),T(F,{modelValue:a(k),"onUpdate:modelValue":D[4]||(D[4]=N=>it(k)?k.value=N:null),borderless:"",expanded:"",color:"green",class:"mt-2 rounded-[12px] bg-grey-90"},null,8,["modelValue"])]),a(C)?(p(),y("button",{key:0,type:"button",class:"rounded-full bg-grey-90 px-3 py-2 text-13 text-black",onClick:D[5]||(D[5]=N=>k.value=S(a(w).deliveryDate))},b(a(w).deliveryDateText),1)):E("",!0)],32)):(p(),y("form",{key:1,class:"mt-6",onSubmit:St(P,["prevent"])},[c("label",oHe,[Qe(b(a(r)("drawer.categories.waterDelivery.problemComment"))+" ",1),pn(c("textarea",{"onUpdate:modelValue":D[6]||(D[6]=N=>it(v)?v.value=N:null),maxlength:"1000",rows:"5",class:"mt-2 w-full resize-none rounded-[12px] bg-grey-90 p-4 text-16 text-black"},null,512),[[jr,a(v)]])]),c("div",aHe,[(p(!0),y(j,null,le(a(x),N=>(p(),y("button",{key:N,type:"button",class:"rounded-full bg-grey-90 px-3 py-2 text-13 text-black",onClick:z=>v.value=N},b(N),9,lHe))),128))])],32))]),c("div",cHe,[T(a(vt),{label:a(r)(a(g)==="confirm"?"drawer.categories.waterDelivery.receiptSubmit":"drawer.categories.waterDelivery.problemSubmit"),disabled:!a($)||a(d).isBusy,loading:a(d).isActionLoading,onClick:P},null,8,["label","disabled","loading"])])],64)):E("",!0)])}}}),dHe=Object.assign(uHe,{__name:"WaterDeliveryReceiptPanel"}),fHe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function pHe(e,t){return p(),y("svg",fHe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M10.207 7.293a1 1 0 0 1 0 1.414l-3.5 3.5a1 1 0 0 1-1.414-1.414L7.586 8.5 5.293 6.207a1 1 0 0 1 1.414-1.414z"},null,-1)])])}const hHe={render:pHe},mHe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function gHe(e,t){return p(),y("svg",mHe,[...t[0]||(t[0]=[c("path",{stroke:"#212926","stroke-linejoin":"round",d:"m8 1.75 1.88 3.83 4.22.61-3.05 2.97.72 4.21L8 11.38l-3.77 1.99.72-4.21L1.9 6.19l4.22-.61z"},null,-1)])])}const yHe={render:gHe},_He={class:"flex h-full min-h-0 flex-col overflow-hidden"},vHe={key:1,class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},bHe={key:0,class:"rounded-[12px] bg-red-90 p-4"},xHe={class:"text-16-bold text-black"},kHe={key:0,class:"mt-2 text-13 text-grey-40"},wHe={key:1,class:"rounded-[12px] bg-grey-90 p-4"},CHe={class:"text-16-bold text-black"},$He={class:"mt-1 text-13 text-grey-40"},SHe={key:2,class:"rounded-[12px] bg-[#2D3666] p-4"},AHe={class:"text-13 text-transparent-white48"},IHe={key:0,class:"mt-1 text-16-bold text-white"},THe={key:1,class:"mt-4 text-13 text-transparent-white48"},PHe={class:"mt-6"},DHe={class:"text-13 text-grey-40"},EHe={class:"mt-2 flex flex-wrap gap-2"},LHe={class:"rounded-full bg-grey-90 px-4 py-3 text-13 text-black"},RHe={class:"rounded-full bg-grey-90 px-4 py-3 text-13 text-black"},MHe={class:"mt-6"},OHe={class:"text-13 text-grey-40"},FHe={class:"mt-2 rounded-[12px] bg-grey-90 p-4"},NHe={class:"text-16 text-black"},BHe={class:"mt-6"},VHe={class:"text-13 text-grey-40"},HHe={class:"mt-2 flex flex-col gap-2"},qHe={key:0,class:"flex items-center justify-between gap-2 rounded-[12px] bg-grey-90 p-4"},jHe={class:"min-w-0"},UHe={class:"text-16 text-black"},zHe={class:"mt-1 text-13 text-grey-40"},WHe={class:"grid h-11 w-11 shrink-0 place-items-center rounded-full bg-white"},GHe={class:"flex items-start justify-between gap-2"},YHe={class:"flex min-w-0 flex-col gap-1"},KHe={class:"text-16 text-black"},QHe={key:0,class:"text-13 text-red-50"},XHe={key:0},ZHe={class:"grid h-11 w-11 shrink-0 place-items-center rounded-full bg-white"},JHe={key:1,class:"mt-4"},eqe=["onClick"],tqe={key:2,class:"mt-4 flex flex-wrap gap-2"},sqe=["onClick"],nqe=["onClick"],rqe={key:1,class:"text-13 text-grey-40"},iqe={class:"mt-6"},oqe={class:"text-13 text-grey-40"},aqe={key:0,class:"mt-2 text-13 text-grey-40"},lqe={class:"mt-2 flex flex-col items-start gap-2"},cqe=["disabled"],uqe=["disabled"],dqe=["disabled"],fqe=["disabled"],pqe={key:2,class:"shrink-0 bg-white px-6 py-6"},hqe=G({__name:"WaterDeliverySubscriptionPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=ue(),i=Oe(),o=Ln(),l=t,{store:u,ready:d,isInitializing:f}=Gu("subscription",I=>l("go",I)),h=A(()=>u.subscription),g=A(()=>h.value?.status==="paused"),m=A(()=>h.value?.status==="blocked"),_=A(()=>!!(h.value?.deliveryDate||h.value?.deliveryDateText)),v=I=>I===void 0?"â":String(I),k=I=>Number.isSafeInteger(I)&&I>0;function x(I){k(I)&&l("go",{to:"water-delivery-receipt",query:{water_delivery_id:I,water_receipt_mode:"confirm"}})}
77function C(I){l("go",{to:"claim-info",query:{id:I,premises_id:u.premisesId}})}async function w(I){if(u.isBusy)return;const P=await u.changeSubscription(I);if(d.value){if(!P){u.error&&n(u.error.message||s("drawer.categories.waterDelivery.actionError"));return}I==="cancel"&&(n(s("drawer.categories.waterDelivery.subscriptionCancelled")),l("go","close"))}}function $(I){const P=r.waterDeliveryInvoiceUrl(I);P&&window.open(P,"_blank","noopener,noreferrer")}function S(){o.$reset(),o.isFree=i.residence?.isConnectedToButlerPro??!1,l("go",{to:"claim-create-chat",query:{claimId:void 0,claimTitle:void 0,category_title:void 0,claim_category_id:void 0,categoryId:void 0}})}return(I,P)=>{const L=Wu,D=si,R=G0,F=Y0,N=p7,z=hHe,me=z0,ge=o7,fe=i7,te=yHe;return p(),y("div",_He,[a(f)?(p(),K(L,{key:0,variant:"subscription"})):a(d)&&a(h)?(p(),y("div",vHe,[a(m)?(p(),y("section",bHe,[c("p",xHe,b(a(h).statusText),1),a(h).changeTariffHint?(p(),y("p",kHe,b(a(h).changeTariffHint),1)):E("",!0)])):a(g)?(p(),y("section",wHe,[c("p",CHe,b(a(h).statusText),1),c("p",$He,b(a(s)("drawer.categories.waterDelivery.subscriptionPausedDescription")),1)])):(p(),y("section",SHe,[c("p",AHe,b(a(s)("drawer.categories.waterDelivery.confirmNextDeliveryLabel")),1),a(_)?(p(),y("p",IHe,b([a(h).deliveryDateText,a(h).deliveryTimeText].filter(Boolean).join(", ")),1)):E("",!0),a(h).changeTariffHint?(p(),y("p",THe,b(a(h).changeTariffHint),1)):E("",!0)])),c("section",PHe,[c("h3",DHe,b(a(s)("drawer.categories.waterDelivery.taraTitle")),1),c("div",EHe,[c("span",LHe,b(a(s)("drawer.categories.waterDelivery.taraReceivedChip",{count:v(a(h).taraReceivedTotal)})),1),c("span",RHe,b(a(s)("drawer.categories.waterDelivery.taraReturnedChip",{count:v(a(h).taraReturnedTotal)})),1)])]),c("section",MHe,[c("h3",OHe,b(a(s)("drawer.categories.waterDelivery.confirmAddressLabel")),1),c("div",FHe,[c("p",NHe,b(a(h).addressText),1)])]),c("section",BHe,[c("h3",VHe,b(a(s)("drawer.categories.waterDelivery.subscriptionInvoicesLabel")),1),c("div",HHe,[a(h).nextBillingDateText?(p(),y("article",qHe,[c("div",jHe,[c("p",UHe,b(a(s)("drawer.categories.waterDelivery.nextInvoice")),1),c("p",zHe,b(a(s)("drawer.categories.waterDelivery.nextInvoiceScheduled",{date:a(h).nextBillingDateText})),1)]),c("span",WHe,[T(D,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})])])):E("",!0),(p(!0),y(j,null,le(a(h).deliveries,V=>(p(),y("article",{key:V.id,class:oe(["relative overflow-hidden rounded-[12px] p-4",V.isPaymentOverdue?"bg-red-90":V.isPaid?"bg-grey-90":"bg-[#FCFAF4]"])},[V.isPaymentOverdue||!V.isPaid?(p(),y("span",{key:0,class:oe(["absolute inset-y-0 left-0 w-[3px]",V.isPaymentOverdue?"bg-red-50":"bg-yellow-50"])},null,2)):E("",!0),c("div",GHe,[c("div",YHe,[c("p",KHe,b(V.dateText),1),c("p",{class:oe(["text-13",V.isPaymentOverdue?"text-red-50":V.isPaid?"text-emerald-primary":"text-yellow-50"])},b(V.isPaymentOverdue&&V.paymentRequiredText||V.statusTitle),3),V.problemReported?(p(),y("p",QHe,[Qe(b(a(s)("drawer.categories.waterDelivery.problemReported")),1),V.problemComment?(p(),y("span",XHe,": "+b(V.problemComment),1)):E("",!0)])):E("",!0)]),c("span",ZHe,[V.isPaid?(p(),K(R,{key:0,"aria-hidden":"true"})):V.isPaymentOverdue?(p(),K(F,{key:1,class:"[&>path]:fill-red-50","aria-hidden":"true"})):(p(),K(N,{key:2,"aria-hidden":"true"}))])]),V.needsConfirmation&&k(V.id)?(p(),y("div",JHe,[c("button",{type:"button",class:"flex h-8 items-center gap-1 rounded-full bg-emerald-primary px-3 text-13 text-white auth:hover:opacity-80",onClick:pe=>x(V.id)},b(a(s)("drawer.categories.waterDelivery.receiptOpen")),9,eqe)])):E("",!0),V.hasInvoice&&V.id>0||V.claimId?(p(),y("div",tqe,[V.hasInvoice&&V.id>0?(p(),y("button",{key:0,type:"button",class:"flex h-8 items-center gap-1 rounded-full bg-white px-3 text-13 text-black auth:hover:opacity-80",onClick:pe=>$(V.id)},[Qe(b(a(s)("drawer.categories.waterDelivery.subscriptionInvoiceButton"))+" ",1),T(z,{class:"[&>path]:fill-grey-40","aria-hidden":"true"})],8,sqe)):E("",!0),V.claimId?(p(),y("button",{key:1,type:"button",class:"flex h-8 items-center gap-1 rounded-full bg-white px-3 text-13 text-black auth:hover:opacity-80",onClick:pe=>C(V.claimId)},[Qe(b(a(s)("drawer.categories.waterDelivery.subscriptionDeliveryRequestButton"))+" ",1),T(z,{class:"[&>path]:fill-grey-40","aria-hidden":"true"}
77)],8,nqe)):E("",!0)])):E("",!0)],2))),128)),a(h).deliveries.length?E("",!0):(p(),y("p",rqe,b(a(s)("drawer.categories.waterDelivery.noDeliveries")),1))])]),c("section",iqe,[c("h3",oqe,b(a(s)("drawer.categories.waterDelivery.subscriptionManageLabel")),1),!a(h).canChangeTariff&&a(h).changeTariffHint?(p(),y("p",aqe,b(a(h).changeTariffHint),1)):E("",!0),c("div",lqe,[a(h).canChangeTariff?(p(),y("button",{key:0,type:"button",class:"flex min-h-8 items-center gap-2 rounded-full bg-grey-90 px-3 py-1 text-13 text-black disabled:opacity-50 auth:hover:bg-grey-80",disabled:a(u).isBusy,onClick:P[0]||(P[0]=V=>l("go",{to:"water-delivery-tariffs",query:{tariffs_done:"subscription"}}))},[T(me,{"aria-hidden":"true"}),Qe(b(a(s)("drawer.categories.waterDelivery.subscriptionChangeTariff")),1)],8,cqe)):E("",!0),a(h).canPause||a(h).canResume?(p(),y("button",{key:1,type:"button",class:"flex min-h-8 items-center gap-2 rounded-full bg-grey-90 px-3 py-1 text-13 text-black disabled:opacity-50 auth:hover:bg-grey-80",disabled:a(u).isBusy,onClick:P[1]||(P[1]=V=>w(a(h).canResume?"resume":"pause"))},[a(h).canResume?(p(),K(ge,{key:0,"aria-hidden":"true"})):(p(),K(fe,{key:1,"aria-hidden":"true"})),Qe(" "+b(a(s)(a(h).canResume?"drawer.categories.waterDelivery.subscriptionResume":"drawer.categories.waterDelivery.subscriptionPause")),1)],8,uqe)):E("",!0),c("button",{type:"button",class:"flex min-h-8 items-center gap-2 rounded-full bg-grey-90 px-3 py-1 text-13 text-black auth:hover:bg-grey-80",disabled:a(u).isBusy,onClick:S},[T(te,{"aria-hidden":"true"}),Qe(b(a(s)("drawer.categories.waterDelivery.subscriptionCleanCooler")),1)],8,dqe),c("button",{type:"button",class:"min-h-8 rounded-full bg-grey-90 px-3 py-1 text-13 text-red-50 disabled:opacity-50 auth:hover:bg-grey-80",disabled:a(u).isBusy,onClick:P[2]||(P[2]=V=>w("cancel"))},b(a(s)("drawer.categories.waterDelivery.cancelSubscription")),9,fqe)])])])):E("",!0),a(d)?(p(),y("div",pqe,[T(a(vt),{label:a(s)("drawer.categories.waterDelivery.subscriptionBackToHome"),disabled:a(u).isBusy,onClick:P[3]||(P[3]=V=>l("go","close"))},null,8,["label","disabled"])])):E("",!0)])}}}),mqe=Object.assign(hqe,{__name:"WaterDeliverySubscriptionPanel"}),gqe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function yqe(e,t){return p(),y("svg",gqe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M8.478 2.64a10 10 0 0 1 12.014 4.08 10.002 10.002 0 0 1-7.838 15.258 10 10 0 0 1-10.313-7.39 1 1 0 0 1 1.931-.518 8.002 8.002 0 0 0 13.197 3.769A8.001 8.001 0 0 0 9.182 4.512 8 8 0 0 0 5.072 8H7a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 0 1 2 0v1.002A10 10 0 0 1 8.478 2.64"},null,-1),c("path",{fill:"#212926",d:"M12 6a1 1 0 0 1 1 1v4.34l2.894 1.24a1 1 0 0 1-.788 1.839l-3.5-1.5a1 1 0 0 1-.606-.92V7a1 1 0 0 1 1-1"},null,-1)])])}const _qe={render:yqe},vqe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function bqe(e,t){return p(),y("svg",vqe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M42 76.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM58 76.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM42 65.5a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM58 65.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM42 55a1.5 1.5 0 0 1 0 3H18a1.5 1.5 0 0 1 0-3zM58 55a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3z"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M29.273 20.5a6.228 6.228 0 0 1 0 12.454h-6.864v2.788h5.773a1.5 1.5 0 0 1 0 3h-5.773v3.621a1.5 1.5 0 0 1-3 0v-3.62H18a1.5 1.5 0 0 1 0-3h1.41v-2.789H18a1.5 1.5 0 0 1 0-3h1.41V22a1.5 1.5 0 0 1 1.5-1.5zm-6.864 9.454h6.864a3.227 3.227 0 1 0 0-6.454h-6.864z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M48.698 4.5c1.886 0 3.073-.01 4.206.263.97.232 1.896.617 2.746 1.137.994.61 1.827 1.456 3.16 2.788l8.501 8.502c1.333 1.333 2.18 2.166 2.789 3.16.52.85.905 1.776 1.137 2.746.272 1.133.263 2.32.263 4.206V77.2c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.737a9.5 9.5 0 0 1-4.153 4.152c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H18.8c-2.215 0-3.967 0-5.376-.114-1.427-.117-2.634-.36-3.736-.921a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.116-1.409-.115-3.16-.115-5.376V18.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.737a9.5 9.5 0 0 1 4.153-4.152c1.102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115zM18.8 7.5c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.
77132v58.4c0 2.265.002 3.873.104 5.132.102 1.241.294 2.01.604 2.62a6.5 6.5 0 0 0 2.84 2.84c.61.31 1.379.502 2.62.603 1.259.103 2.867.105 5.132.105h38.4c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V27.302c0-2.028-.01-2.798-.18-3.506a6 6 0 0 0-.079-.296H62a9.5 9.5 0 0 1-9.5-9.5V7.759a7 7 0 0 0-.296-.08c-.708-.17-1.478-.179-3.506-.179zM55.5 14a6.5 6.5 0 0 0 6.5 6.5h4.364c-.308-.32-.69-.704-1.174-1.189L56.69 10.81A98 98 0 0 0 55.5 9.635zM84 4.5a7.5 7.5 0 0 1 7.5 7.5v53.808c0 .79.002 1.288-.049 1.787a9.5 9.5 0 0 1-.218 1.27c-.118.487-.285.956-.548 1.701L85.5 85.255V90a1.5 1.5 0 0 1-3 0v-4.745l-5.185-14.689c-.263-.745-.43-1.214-.548-1.7a9.5 9.5 0 0 1-.218-1.271c-.051-.499-.049-.997-.049-1.787V12A7.5 7.5 0 0 1 84 4.5m-3.856 65.068L84 80.493l3.856-10.925.023-.068H80.12zm-.644-3.76c0 .282.002.507.004.692h8.992c.002-.185.004-.41.004-.692V17.5h-9zM84 7.5a4.5 4.5 0 0 0-4.5 4.5v2.5h9V12A4.5 4.5 0 0 0 84 7.5","clip-rule":"evenodd"},null,-1)])])}const xqe={render:bqe},kqe={class:"flex flex-col items-center text-center"},wqe={class:"mt-6 text-24-bold text-black"},Cqe={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"}
77,$qe={class:"mt-4 flex items-start gap-4 rounded-[12px] bg-grey-90 p-4"},Sqe={class:"min-w-0 flex-1"},Aqe={class:"text-16-bold text-black"},Iqe={class:"mt-1 text-13 text-grey-40"},Tqe=G({__name:"GkuAccountForm",props:{title:{},description:{},placeholder:{},whereTitle:{},whereDescription:{},buttonLabel:{},loading:{type:Boolean},initialValue:{},fullScreen:{type:Boolean},buttonPinned:{type:Boolean}},emits:["submit"],setup(e,{emit:t}){const s=e,n=t,r=X(s.initialValue??"");Se(()=>s.initialValue,o=>{r.value=o??""});function i(){const o=r.value.trim();o&&n("submit",o)}return(o,l)=>{const u=xqe;return p(),y("div",{class:oe(["bg-white p-6",e.fullScreen?"flex min-h-full flex-col":["rounded-[24px]",e.buttonPinned?"flex flex-col":""]])},[c("div",kqe,[T(u,{"aria-hidden":"true"}),c("h2",wqe,b(e.title),1),c("p",Cqe,b(e.description),1)]),T(a(wo),{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),class:"mt-6",type:"text",placeholder:e.placeholder,size:"default"},null,8,["modelValue","placeholder"]),c("div",$qe,[c("div",Sqe,[c("p",Aqe,b(e.whereTitle),1),c("p",Iqe,b(e.whereDescription),1)]),l[1]||(l[1]=c("img",{src:aC,alt:"",class:"h-[60px] w-[60px] shrink-0 object-contain","aria-hidden":"true"},null,-1))]),T(a(vt),{class:oe(e.fullScreen||e.buttonPinned?"mt-auto":"mt-6"),label:e.buttonLabel,disabled:!r.value.trim(),loading:e.loading,onClick:i},null,8,["class","label","disabled","loading"])],2)}}}),gm=Object.assign(Tqe,{__name:"GkuAccountForm"}),Pqe={class:"flex min-h-full flex-col bg-grey-90"},Dqe={key:0,class:"flex flex-1 flex-col overflow-y-auto bg-white"},Eqe={key:1,class:"flex-1 overflow-y-auto pb-6"},Lqe={class:"mt-2 rounded-[20px] bg-white px-4 pb-4 pt-[18px]"},Rqe={class:"text-16 text-black"},Mqe={class:"mt-2 truncate text-13 text-grey-40"}
77,Oqe={key:0,class:"mt-2 flex items-center gap-4 rounded-[24px] bg-white p-4"},Fqe={class:"min-w-0 flex-1 text-13 text-black"},Nqe={key:1,class:"mt-2 rounded-[20px] bg-white px-4 pb-4 pt-5"},Bqe={key:2,class:"mt-3 rounded-[24px] bg-white p-6 text-center"},Vqe={class:"text-16-bold text-black"},Hqe={class:"mt-2 text-13 text-grey-40"},qqe={key:3,class:"mt-3 rounded-[24px] bg-white p-6 text-center text-16 text-black"},jqe={key:4,class:"mt-2 rounded-[20px] bg-white px-4 pb-4 pt-5"},Uqe={class:"text-24-bold text-black"},zqe={class:"text-16 text-black"},Wqe={key:0,class:"mt-1 text-13 text-grey-40"},Gqe={class:"mt-2 flex items-center gap-2"},Yqe=["aria-label","onClick"],Kqe={key:1,class:"rounded-[24px] bg-white p-6 text-center text-16 text-black"},Qqe={key:2,class:"rounded-t-[24px] bg-white px-4 pb-4 pt-4"},Xqe=G({__name:"GkuMeterPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=ug(),i=Oe(),{$showSnackbar:o}=Te(),l=X(!1),u=A(()=>i.residence),d=A(()=>u.value?.personalAccount?.trim()??"");Se(d,()=>{f()},{immediate:!0});async function f(){await r.loadMeters(d.value)}async function h(C){const w=await r.saveAccount(u.value,C);w.ok?o(n("drawer.gku.account.saveSuccess"),!1):o(w.error.message??n("drawer.gku.account.saveError"))}async function g(){const C=await r.send(d.value);C.ok?o(n("drawer.gku.meter.sendSuccess"),!1):o(C.error.message??n("drawer.gku.meter.sendError"))}function m(C){s("go",{to:"gku-meter-history",query:{gku_account:d.value,gku_meter_device_id:C.deviceId,gku_meter_title:C.title,gku_meter_subtitle:v(C.subtitle)}})}function _(C){return C==null?"":(Number.isInteger(C),String(C))}function v(C){return!C||C.startsWith("â")?C:`â${C}`}function k(C){const w=C.toLowerCase();return w.includes("оÑоп")?"Ðкал":w.includes("вода")||w.includes("вод")||w.includes("гвÑ")||w.includes("Ñ
вÑ")||w.includes("water")?"м³":"кÐÑ·Ñ"}function x(C,w,$,S){const I=w.replace(",",".");return!/^\d*(?:\.\d*)?$/.test(I)||I.startsWith(".")?{text:C,selection:{start:$,end:S}}:{text:I,selection:{start:S,end:S}}}return(C,w)=>{const $=_qe;return p(),y("div",Pqe,[!d.value&&u.value?.contractNumberManagementAllowed?(p(),y("div",Dqe,[T(gm,{"full-screen":"",class:"flex-1",title:a(n)("drawer.gku.meter.title"),description:a(n)("drawer.gku.meter.description"),placeholder:a(n)("drawer.gku.meter.accountPlaceholder"),"where-title":a(n)("drawer.gku.meter.whereToFind"),"where-description":a(n)("drawer.gku.meter.whereToFindDescription"),"button-label":a(n)("drawer.gku.account.add"),loading:a(r).isSavingAccount,onSubmit:h},null,8,["title","description","placeholder","where-title","where-description","button-label","loading"])])):(p(),y("div",Eqe,[d.value?(p(),y(j,{key:0},[c("section",Lqe,[c("p",Rqe,b(a(n)("drawer.gku.account.personal")),1),c("p",Mqe,b(a(n)("drawer.gku.account.number",{number:d.value})),1)]),a(r).attentionText&&!l.value?(p(),y("section",Oqe,[c("p",Fqe,b(a(r).attentionText),1),c("button",{type:"button",class:"h-8 shrink-0 rounded-[12px] bg-grey-90 px-4 text-13 text-black transition-colors xl:hover:bg-grey-80",onClick:w[0]||(w[0]=S=>l.value=!0)},b(a(n)("drawer.gku.gotIt")),1)])):E("",!0),a(r).isLoading?(p(),y("section",Nqe,[w[2]||(w[2]=c("div",{class:"h-8 w-52 animate-pulse rounded-full bg-grey-90"},null,-1)),(p(),y(j,null,le(3,S=>c("div",{key:S,class:"pt-4"},[...w[1]||(w[1]=[c("div",{class:"h-5 w-40 animate-pulse rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-1 h-4 w-28 animate-pulse rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-3 h-14 w-full animate-pulse rounded-[12px] bg-grey-90"},null,-1)])])),64))])):a(r).error?(p(),y("section",Bqe,[c("p",Vqe,b(a(n)("drawer.gku.meter.loadError")),1),c("p",Hqe,b(a(r).error.message),1),T(a(vt),{class:"mt-6",label:a(n)("drawer.gku.repeat"),variant:"secondary",onClick:f},null,8,["label"])])):a(r).meters.length?(p(),y("section",jqe,[c("h2",Uqe,b(a(n)("drawer.gku.meter.readingsTitle")),1),(p(!0),y(j,null,le(a(r).meters,S=>(p(),y("div",{key:S.deviceId,class:"pt-4"},[c("p",zqe,b(S.title),1),v(S.subtitle)?(p(),y("p",Wqe,b(v(S.subtitle)),1)):E("",!0),c("div",Gqe,[T(a(wo),{class:"min-w-0 flex-1","model-value":a(r).values[S.deviceId]??"",type:"text","input-mode":"decimal",formatter:x,placeholder:_(S.lastReadingValue),suffix:k(S.title),size:"default","onUpdate:modelValue":I=>a(r).setValue(S.deviceId,I)},null,8,["model-value","placeholder","suffix","onUpdate:modelValue"]),c("button",{type:"button",class:"flex h-14 w-14 shrink-0 items-center justify-center rounded-[12px] border border-grey-80 transition-colors xl:hover:bg-grey-90","aria-label":a(n)("drawer.gku.meter.history"),onClick:I=>m(S)},[T($,{"aria-hidden":"true"})],8,Yqe)])]))),128))])):(p(),y("section",qqe,b(a(n)("drawer.gku.meter.emptyMeters")),1))],64)):(p(),y("section",Kqe,b(a(n)("drawer.gku.emptyUnavailable")),1))])),d.value&&a(r).meters.length?(p(),y("div",Qqe,[T(a(vt),{label:a(n)("drawer.gku.meter.submitButton"),disabled:!a(r).hasEnteredValues,loading:a(r).isSending,onClick:g},null,8,["label","disabled","loading"])])):E("",!0)])}}}),Zqe=Object.assign(Xqe,{__name:"GkuMeterPanel"}),Jqe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function eje(e,t){return p(),y("svg",Jqe,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m4.207 6.793a1 1 0 0 0-1.414 0L11 12.586l-1.293-1.293a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4.5-4.5a1 1 0 0 0 0-1.414","clip-rule":"evenodd"},null,-1)])])}const tje={render:eje},sje={class:"flex min-h-full flex-col bg-grey-90"},nje={key:0,class:"flex flex-1 flex-col overflow-y-auto bg-white"},rje={key:1,class:"flex flex-1 flex-col overflow-y-auto"},ije={key:0,class:"rounded-b-[24px] bg-white p-3"},oje={class:"grid grid-cols-2 rounded-[14px] bg-grey-90 p-1"},aje=["onClick"],lje={key:0,class:"mt-3 rounded-[24px] bg-white p-4"},cje={key:1,class:"mt-3 rounded-[24px] bg-white p-6 text-center"},uje={class:"text-16-bold text-black"},dje={class:"mt-2 text-13 text-grey-40"},fje={class:"mt-3 rounded-[24px] bg-white p-5"},pje={class:"flex items-start justify-between gap-3"},hje={class:"min-w-0"},mje={class:"text-16 text-black"},gje={class:"mt-1 text-13 text-grey-40"},yje={key:0,class:"mt-4 flex items-center gap-2 text-16 text-emerald-primary"},_je={class:"mt-4 text-title-32 text-black"},vje={class:"mt-4 flex flex-col gap-3"},bje={key:1,class:"grid grid-cols-2 gap-3"}
77,xje={key:0,class:"mt-3 flex items-center gap-4 rounded-[24px] bg-white p-4"},kje={class:"min-w-0 flex-1 text-13 text-black"},wje={class:"mt-3 rounded-[24px] bg-white p-4"},Cje={class:"text-24-bold text-black"},$je={class:"mt-4"},Sje={key:0,class:"text-13 text-grey-40"},Aje={key:1,class:"rounded-[12px] bg-grey-90 p-4 text-center"},Ije={class:"text-13 text-black"},Tje={key:2,class:"text-13 text-grey-40"},Pje={key:3,class:"mt-3 rounded-[24px] bg-white p-6 text-center text-16 text-black"},Dje=G({__name:"GkuPaymentPanel",emits:["go"],setup(e,{emit:t}){const s=G({props:{items:{type:Array,required:!0}},emits:["select"],setup(ne,{emit:ve}){return()=>{const J=[];let he=null;return ne.items.forEach(Ee=>{Ee.year!==he&&(J.push(ot("p",{class:"mb-3 mt-4 first:mt-0 pl-2 text-13 text-grey-40"},Ee.yearLabel)),he=Ee.year),J.push(ot("button",{key:Ee.key,type:"button",class:"mb-3 flex w-full items-start rounded-[12px] bg-grey-90 p-4 text-left transition-colors last:mb-0 xl:hover:bg-grey-80",onClick:()=>ve("select",Ee.index)},[ot("div",{class:"min-w-0 flex-1"},[ot("p",{class:"text-13 text-grey-40"},Ee.dateLabel),ot("p",{class:"mt-1 text-16 text-black"},Wr(Ee.amount))]),Ee.source?ot("p",{class:"ml-3 shrink-0 text-13 text-black"},Ee.source):ot(Rs,{class:"ml-3 shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})]))}),ot("div",J)}}}),n=t,{t:r}=be(),i=Fu(),o=Oe(),{$showSnackbar:l}=Te(),u=A(()=>o.residence),d=A(()=>!!u.value?.personalAccount?.trim()),f=A(()=>u.value?.isKapremontOn??!0),h=A(()=>d.value&&f.value),g=A(()=>d.value?i.accountType==="repair"&&f.value?u.value?.personalAccountRepair?.trim()??"":u.value?.personalAccount?.trim()??"":""),m=A(()=>i.paymentInfo),_=A(()=>i.accountType==="repair"?r("drawer.gku.account.repair"):r("drawer.gku.account.personal")),v=A(()=>[{value:"account",label:r("drawer.gku.payment.accountTab")},{value:"repair",label:r("drawer.gku.payment.repairTab")}]),k=A(()=>[{value:"charges",label:r("drawer.gku.payment.charges")},{value:"payments",label:r("drawer.gku.payment.payments")}]),x=A(()=>i.accountType==="repair"?r("drawer.gku.payment.repairTitle"):r("drawer.gku.payment.title")),C=A(()=>i.accountType==="repair"?r("drawer.gku.payment.repairDescription"):r("drawer.gku.payment.description")),w=A(()=>i.accountType==="repair"?r("drawer.gku.payment.repairWhereToFind"):r("drawer.gku.payment.whereToFind")),$=A(()=>i.accountType==="repair"?r("drawer.gku.payment.repairWhereToFindDescription"):r("drawer.gku.payment.whereToFindDescription")),S=A(()=>te((m.value?.charges??[]).map((ne,ve)=>({key:ne.id||String(ve),index:ve,title:ne.title||ne.card.title,amount:ne.amount})))),I=A(()=>te(i.paymentHistory.map((ne,ve)=>({key:`${ve}-${ne.title}`,index:ve,title:ne.title||ne.card.title,amount:ne.amount,source:ne.source.trim()})),!0));Se(g,()=>{i.clearPaymentHistory(),P(),i.historyMode==="payments"&&L()},{immediate:!0}),Se(f,ne=>{!ne&&i.accountType==="repair"&&i.setAccountType("account")},{immediate:!0});async function P(){await i.loadPaymentInfo(g.value)}async function L(){await i.loadPaymentHistory(g.value)}function D(ne){i.setAccountType(ne)}function R(ne){i.setHistoryMode(ne),ne==="payments"&&!i.paymentHistory.length&&L()}async function F(ne){await z(i.accountType,ne)}async function N(ne){await z("account",ne)}async function z(ne,ve){const J=await i.saveAccount(u.value,ne,ve);J.ok?(l(r("drawer.gku.account.saveSuccess"),!1),await P()):l(J.error.message??r("drawer.gku.account.saveError"))}function me(ne){const ve=m.value?.charges[ne];n("go",{to:"gku-payment-charge",query:{gku_account:g.value,gku_account_type:i.accountType,gku_charge_id:ve?.id||String(ne)}})}function ge(ne){n("go",{to:"gku-payment-history-item",query:{gku_account:g.value,gku_account_type:i.accountType,gku_payment_index:ne}})}function fe(ne){window.open(ne,"_blank","noopener,noreferrer")}function te(ne,ve=!1){return ne.map(J=>{const he=V(J.title),Ee=he?.getFullYear()??ye(J.title)??0;return{...J,year:Ee,yearLabel:Ee>0?String(Ee):r("drawer.gku.payment.noDate"),dateLabel:he?pe(he,ve):J.title}}).sort((J,he)=>J.year!==he.year?he.year-J.year:J.index-he.index)}function V(ne){const ve=ne.match(/((?:19|20)\d{2})-(0[1-9]|1[0-2])(?:-(0[1-9]|[12]\d|3[01]))?/);if(ve)return new Date(Number(ve[1]),Number(ve[2])-1,Number(ve[3]??1));const J=Date.parse(ne);return Number.isFinite(J)?new Date(J):null}function pe(ne,ve){return new Intl.DateTimeFormat("ru-RU",ve?{day:"numeric",month:"long"}:{month:"long"}).format(ne)}function ye(ne){const ve=ne.match(/(?:19|20)\d{2}/);return ve?Number(ve[0]):null}return(ne,ve)=>{const J=tje,he=u9,Ee=Lu,He=Xl;return p(),y("div",sje,[d.value?(p(),y("div",rje,[h.value?(p(),y("section",ije,[c("div",oje,[(p(!0),y(j,null,le(v.value,de=>(p(),y("button",{key:de.value,type:"button",class:oe(["h-12 flex-1 rounded-[8px] p-3 text-center text-16 text-black transition-colors",a(i).accountType===de.value?"bg-white shadow-[0_4px_16px_rgba(33,41,38,0.08)]":""]),onClick:Me=>D(de.value)},b(de.label),11,aje))),128))])])):E("",!0),g.value?(p(),y(j,{key:1},[a(i).isLoading&&!a(i).paymentInfo?(p(),y("section",lje,[...ve[6]||(ve[6]=[c("div",{class:"h-5 w-36 animate-pulse rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-4 h-12 w-48 animate-pulse rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-6 h-12 w-full animate-pulse rounded-[12px] bg-grey-90"},null,-1)])])):a(i).error?(p(),y("section",cje,[c("p",uje,b(a(r)("drawer.gku.payment.loadError")),1),c("p",dje,b(a(i).error.message),1),T(
77a(vt),{class:"mt-6",label:a(r)("drawer.gku.repeat"),variant:"secondary",onClick:P},null,8,["label"])])):m.value?(p(),y(j,{key:2},[c("section",fje,[c("div",pje,[c("div",hje,[c("p",mje,b(_.value),1),c("p",gje,b(a(r)("drawer.gku.account.number",{number:g.value})),1)])]),m.value.totalToBePaid===0?(p(),y("div",yje,[T(J,{"aria-hidden":"true"}),c("span",null,b(a(r)("drawer.gku.payment.paid")),1)])):(p(),y(j,{key:1},[m.value.penaltyToBePaid>0?(p(),y("button",{key:0,type:"button",class:"mt-4 inline-flex items-center gap-2 rounded-full bg-grey-90 px-3 py-2 text-13 text-black",onClick:ve[0]||(ve[0]=de=>n("go",{to:"home-debt-peny"}))},[T(he,{"aria-hidden":"true"}),c("span",null,b(a(r)("drawer.gku.payment.penalty",{amount:a(Wr)(m.value.penaltyToBePaid)})),1),T(Ee,{"aria-hidden":"true",class:"[&>path]:fill-grey-40"})])):E("",!0),c("p",_je,b(a(Wr)(m.value.totalToBePaid)),1),c("div",vje,[m.value.urlForPay?(p(),K(a(vt),{key:0,label:a(r)("drawer.gku.payment.payByCard"),onClick:ve[1]||(ve[1]=de=>fe(m.value.urlForPay))},{icon:Xe(()=>[T(He,{"aria-hidden":"true",class:"[&>path]:fill-white"})]),_:1},8,["label"])):E("",!0),m.value.urlForSbp||m.value.urlForYandexPay?(p(),y("div",bje,[m.value.urlForSbp?(p(),K(a(vt),{key:0,label:a(r)("drawer.gku.payment.payBySbp"),variant:"secondary",onClick:ve[2]||(ve[2]=de=>fe(m.value.urlForSbp))},{icon:Xe(()=>[...ve[7]||(ve[7]=[c("img",{src:cg,alt:"",class:"h-5 w-auto","aria-hidden":"true"},null,-1)])]),_:1},8,["label"])):E("",!0),m.value.urlForYandexPay?(p(),K(a(vt),{key:1,label:a(r)("drawer.gku.payment.payByYandex"),variant:"secondary",onClick:ve[3]||(ve[3]=de=>fe(m.value.urlForYandexPay))},{icon:Xe(()=>[...ve[8]||(ve[8]=[c("img",{src:V7,alt:"",class:"h-5 w-auto","aria-hidden":"true"},null,-1)])]),_:1},8,["label"])):E("",!0)])):E("",!0)])],64))]),m.value.attentionText&&!a(i).isAttentionDismissed?(p(),y("section",xje,[c("p",kje,b(m.value.attentionText),1),c("button",{type:"button",class:"shrink-0 rounded-full bg-grey-90 px-3 py-2 text-13 text-black transition-colors xl:hover:bg-grey-80",onClick:ve[4]||(ve[4]=de=>a(i).dismissAttention())},b(a(r)("drawer.gku.gotIt")),1)])):E("",!0),c("section",wje,[c("h2",Cje,b(a(r)("drawer.gku.payment.history")),1),T(a(xk),{modelValue:a(i).historyMode,"onUpdate:modelValue":[ve[5]||(ve[5]=de=>a(i).historyMode=de),R],class:"mt-4",items:k.value},null,8,["modelValue","items"]),c("div",$je,[a(i).historyMode==="charges"?(p(),y(j,{key:0},[S.value.length?(p(),K(a(s),{key:1,items:S.value,onSelect:me},null,8,["items"])):(p(),y("p",Sje,b(a(r)("drawer.gku.payment.emptyCharges")),1))],64)):(p(),y(j,{key:1},[a(i).isHistoryLoading?(p(),y(j,{key:0},[ve[9]||(ve[9]=c("div",{class:"h-16 animate-pulse rounded-[12px] bg-grey-90"},null,-1)),ve[10]||(ve[10]=c("div",{class:"mt-3 h-16 animate-pulse rounded-[12px] bg-grey-90"},null,-1))],64)):a(i).historyError?(p(),y("section",Aje,[c("p",Ije,b(a(i).historyError.message),1),c("button",{type:"button",class:"mt-3 rounded-full bg-white px-3 py-2 text-13 text-black",onClick:L},b(a(r)("drawer.gku.repeat")),1)])):I.value.length?(p(),K(a(s),{key:3,items:I.value,onSelect:ge},null,8,["items"])):(p(),y("p",Tje,b(a(r)("drawer.gku.payment.emptyPayments")),1))],64))])])],64)):E("",!0)],64)):u.value?.contractNumberManagementAllowed?(p(),K(gm,{key:2,class:oe(a(i).accountType==="repair"?"mt-3 flex-1":"mt-3"),"button-pinned":a(i).accountType==="repair",title:x.value,description:C.value,placeholder:a(r)("drawer.gku.payment.accountPlaceholder"),"where-title":w.value,"where-description":$.value,"button-label":a(r)("drawer.gku.payment.submitButton"),loading:a(i).isSavingAccount,onSubmit:F},null,8,["class","button-pinned","title","description","placeholder","where-title","where-description","button-label","loading"])):(p(),y("section",Pje,b(a(r)("drawer.gku.emptyUnavailable")),1))])):(p(),y("div",nje,[T(gm,{"full-screen":"",class:"flex-1",title:a(r)("drawer.gku.account.personal"),description:a(r)("drawer.gku.payment.description"),placeholder:a(r)("drawer.gku.payment.accountPlaceholder"),"where-title":a(r)("drawer.gku.payment.whereToFind"),"where-description":a(r)("drawer.gku.payment.whereToFindDescription"),"button-label":a(r)("drawer.gku.payment.submitButton"),loading:a(i).isSavingAccount,onSubmit:N},null,8,["title","description","placeholder","where-title","where-description","button-label","loading"])]))])}}}),Eje=Object.assign(Dje,{__name:"GkuPaymentPanel"}),Lje={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Rje(e,t){return p(),y("svg",Lje,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M37.025 10.19a36.5 36.5 0 0 1 26.4 1.73 1.5 1.5 0 1 1-1.268 2.719 33.5 33.5 0 1 0 13.94 12.12 5.5 5.5 0 0 1-1.47.589c-.673.161-1.371.152-2.278.152h-3.136a27.501 27.501 0 0 1-18.374 44.854 27.5 27.5 0 1 1 10.577-51.359 1.5 1.5 0 1 1-1.463 2.618 24.501 24.501 0 0 0-26.731 40.928 24.5 24.5 0 0 0 39.264-20.386A24.5 24.5 0 0 0 66.35 28.77l-4.253 4.253a18.5 18.5 0 1 1-20.368-5.428 18.5 18.5 0 0 1 13.307.296 1.5 1.5 0 0 1-1.14 2.774 15.501 15.501 0 1 0 6.072 4.486l-4.276 4.277a9.5 9.5 0 0 1 .426 10.505 9.501 9.501 0 0 1-17.597-5.57 9.5 9.5 0 0 1 7.85-8.722 1.5 1.5 0 0 1 .513 2.956 6.502 6.502 0 0 0-4.255 10.066 6.502 6.502 0 0 0 10.926-.288 6.5 6.5 0 0 0-.025-6.786l-4.47 4.472a1.5 1.5 0 0 1-2.121-2.121L65.5 25.379V20.65c0-.907-.01-1.605.153-2.278a5.5 5.5 0 0 1 .658-1.59c.361-.59.861-1.077 1.503-1.719L73.94 8.94l.159-.138a1.5 1.5 0 0 1 2.386.987l.841 5.886 5.886.84a1.5 1.5 0 0 1 .849 2.547l-5.693 5.692a36.501 36.501 0 0 1-13.6 52.666L69.03 88.5H80a1.5 1.5 0 0 1 0 3H16a1.5 1.5 0 0 1 0-3h10.97l4.262-11.082a36.5 36.5 0 0 1 5.793-67.228M62.04 78.688a36.5 36.5 0 0 1-9.276 2.5 36.5 36.5 0 0 1-18.808-2.5L30.185 88.5h35.63zm7.895-61.501c-.743.742-.935.947-1.068 1.164a2.5 2.5 0 0 0-.298.722c-.06.248-.07.529-.07 1.578V24.5h3.849c1.05 0 1.33-.01 1.578-.07a2.5 2.5 0 0 0 .723-.298c.217-.133.421-.325 1.164-1.068l4.004-4.003-4.03-.576a1.5 1.5 0 0 1-1.273-1.273l-.576-4.03z","clip-rule":"evenodd"},null,-1)])])}const Mje={render:Rje},Oje={class:"flex h-full flex-col"},Fje={class:"flex-1 overflow-y-auto px-6 pt-2 pb-4 scrollbar-4-grey80"},Nje={class:"flex justify-center"},Bje={class:"mt-4 text-center text-24-bold text-black"},Vje={class:"mt-2 text-center text-16 text-grey-40"},Hje={class:"mt-6 grid gap-3"},qje=["onClick"],jje=["src","alt"],Uje={class:"p-6 pt-2"},zje=G({__name:"SegmentationPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t,r=X(null),i=[{id:1,titleKey:"segmentation.options.manage.title",descrKey:"segmentation.options.manage.descr",imageSrc:"/images/segmentation/1.png"},{id:2,titleKey:"segmentation.options.specialist.title",descrKey:"segmentation.options.specialist.descr",imageSrc:"/images/segmentation/2.png"},{id:3,titleKey:"segmentation.options.neighbors.title",descrKey:"segmentation.options.neighbors.descr",imageSrc:"/images/segmentation/3.png"},{id:4,titleKey:"segmentation.options.uk.title",descrKey:"segmentation.options.uk.descr",imageSrc:"/images/segmentation/4.png"}],o={3:"join_neighbors",4:"join_uk"};function l(){if(r.value){if(r.value===1){n("go","segmentation-manage");return}if(r.value===2){n("go","segmentation-master");return}n("go",{to:"login",segmentationChoice:o[r.value]??null})}}return(u,d)=>{const f=Mje;return p(),y("div",Oje,[c("div",Fje,[c("div",Nje,[T(f,{class:""})]),c("h2",Bje,b(a(s)("segmentation.title")),1),c("p",Vje,b(a(s)("segmentation.subtitle")),1),c("div",Hje,[(p(),y(j,null,le(i,h=>c("button",{key:h.id,type:"button",class:oe(["group relative flex flex-col rounded-[12px] px-5 py-5 text-left transition-colors duration-200",r.value===h.id?"bg-emerald-primary":"bg-grey-90 xl:hover:bg-grey-80"]),onClick:g=>r.value=h.id},[c("p",{class:oe(["text-16-bold",r.value===h.id?"text-white":"text-black"])},b(a(s)(h.titleKey)),3),c("p",{class:oe(["mt-1 max-w-[70%] text-13 whitespace-pre-line",r.value===h.id?"text-white/80":"text-grey-40"])},b(a(s)(h.descrKey)),3),c("img",{src:h.imageSrc,alt:a(s)(h.titleKey),class:"absolute right-5 top-1/2 h-[60px] w-[60px] -translate-y-1/2 object-contain"},null,8,jje)],10,qje)),64))])]),c("div",Uje,[T(a(vt),{label:a(s)("segmentation.continue"),disabled:!r.value,onClick:l},null,8,["label","disabled"])])])}}}),Wje=Object.assign(zje,{__name:"SegmentationPanel"}),Gje={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Yje(e,t){return p(),y("svg",Gje,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M42.183 4.034a1.5 1.5 0 0 1 .938.1l22 10A1.5 1.5 0 0 1 66 15.5v9a1.5 1.5 0 0 1-3 0v-8.034L44 7.83V89h8V36a1.5 1.5 0 0 1 1.194-1.468l24-5a1.5 1.5 0 0 1 1.017.147l13 7A1.5 1.5 0 0 1 92 38v52.5a1.5 1.5 0 0 1-1.5 1.5h-85A1.5 1.5 0 0 1 4 90.5v-77a1.5 1.5 0 0 1 1.183-1.466zM55 89h21V32.845L55 37.22zm24-55.489V89h10V38.896zM41 89V7.359L7 14.71V89zm-7-72.5a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m20 12a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m5
775 4a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-27 7a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m55 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-27 9a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-10 2a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m55 0a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5m-8 1a1.5 1.5 0 0 1 1.5 1.5v4a1.5 1.5 0 0 1-3 0v-4a1.5 1.5 0 0 1 1.5-1.5","clip-rule":"evenodd"},null,-1)])])}const Kje={render:Yje},Qje={xmlns:"http://www.w3.org/2000/svg",width:"29",height:"28",fill:"none"};function Xje(e,t){return p(),y("svg",Qje,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M10.265 2.23C11.363 1.183 11.911.658 12.503.38a4 4 0 0 1 3.4 0c.592.277 1.14.802 2.238 1.85.395.378.592.567.808.724a4 4 0 0 0 1.296.624c.257.07.528.108 1.069.18 1.504.205 2.256.307 2.843.596a4 4 0 0 1 2.12 2.658c.151.636.083 1.392-.053 2.904-.049.544-.073.816-.062 1.083.021.483.13.958.32 1.402.106.245.246.48.526.949.779 1.303 1.168 1.955 1.307 2.593a4 4 0 0 1-.757 3.315c-.402.515-1.036.933-2.303 1.77-.455.3-.683.45-.885.626a4 4 0 0 0-.896 1.125c-.127.235-.223.49-.414 1.002-.534 1.421-.8 2.132-1.213 2.64a4 4 0 0 1-3.064 1.474c-.653.007-1.375-.228-2.82-.697-.518-.169-.778-.253-1.04-.3a4 4 0 0 0-1.439 0c-.263.047-.522.131-1.042.3-1.444.47-2.165.704-2.82.697A4 4 0 0 1 6.56 26.42c-.412-.507-.679-1.218-1.212-2.639-.192-.511-.288-.767-.414-1.002a4 4 0 0 0-.897-1.125c-.202-.175-.43-.326-.885-.626-1.267-.837-1.9-1.255-2.303-1.77a4 4 0 0 1-.757-3.315c.14-.638.529-1.29 1.307-2.593.28-.47.42-.703.526-.949a4 4 0 0 0 .32-1.402c.011-.267-.013-.539-.062-1.083-.136-1.512-.204-2.268-.052-2.904a4 4 0 0 1 2.12-2.658c.586-.29 1.338-.391 2.842-.595.541-.073.812-.11 1.07-.18a4 4 0 0 0 1.295-.625c.216-.157.414-.346.808-.723"},null,-1)])])}const Zje={render:Xje},Jje=Ls("/images/segmentation/manage_bg.png"),eUe={class:"flex h-full flex-col"},tUe={class:"flex-1 overflow-y-auto px-6 pt-2 pb-4 scrollbar-4-grey80"},sUe={class:"flex justify-center"},nUe={class:"mt-4 text-center text-24-bold text-black"},rUe={class:"mt-2 text-center text-16 text-grey-40"},iUe={class:"mt-6 grid grid-cols-3 gap-2"},oUe={class:"flex h-10 w-10 items-center justify-center"},aUe={class:"relative h-8 w-8"},lUe={x:"12.5",y:"12.5",fill:"currentColor","text-anchor":"middle","dominant-baseline":"central"},cUe={class:"mt-2 text-center text-13 text-black whitespace-pre-line"},uUe={class:"relative mt-4 overflow-hidden rounded-[16px] bg-purple-50"},dUe={class:"relative z-10 flex items-center justify-between p-5"},fUe={class:"flex flex-col gap-2"},pUe={class:"text-16-bold text-white"},hUe={class:"text-13 text-white/80"},mUe={class:"mt-6 text-13 text-grey-40"},gUe={class:"mt-4 space-y-2"},yUe=["src","alt"],_Ue={class:"text-16 text-black"},vUe={class:"text-13 text-grey-40"},bUe={class:"p-6 pt-2"},xUe=G({__name:"SegmentationManagePanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=t,i=[{textKey:"segmentationManage.steps.addHouse",active:!1},{textKey:"segmentationManage.steps.invite",active:!1},{textKey:"segmentationManage.steps.decide",active:!0}],o=[{id:1,titleKey:"segmentationManage.items.feed",descrKey:"segmentationManage.items.feedDescr",imageSrc:"/images/segmentation/m1.png"},{id:2,titleKey:"segmentationManage.items.polls",descrKey:"segmentationManage.items.pollsDescr",imageSrc:"/images/segmentation/m2.png"},{id:3,titleKey:"segmentationManage.items.piggyBank",descrKey:"segmentationManage.items.piggyBankDescr",imageSrc:"/images/segmentation/m3.png"},{id:4,titleKey:"segmentationManage.items.rating",descrKey:"segmentationManage.items.ratingDescr",imageSrc:"/images/segmentation/m4.png"}];function l(){n(s("segmentationManage.mockMessage"))}function u(){r("go",{to:"login",segmentationChoice:"manage_premises"})}return(d,f)=>{const h=Kje,g=Zje;return p(),y("div",eUe,[c("div",tUe,[c("div",sUe,[T(h)]),c("h2",nUe,b(a(s)("segmentationManage.title")),1),c("p",rUe,b(a(s)("segmentationManage.subtitle")),1),c("div",iUe,[(p(),y(j,null,le(i,(m,_)=>c("div",{key:_,class:"flex flex-col items-center rounded-[12px] bg-grey-90 px-3 py-3"},[c("div",oUe,[c("div",aUe,[T(g,{class:oe(["absolute inset-0 h-full w-full",[_===2?"[&>path]:fill-emerald-primary":"[&>path]:fill-grey-80"]])},null,8,["class"]),(p(),y("svg",{class:oe(["absolute inset-0 z-10 h-full w-full text-13-bold",_===2?"text-white":"text-black"]),viewB
77ox:"0 0 29 28","aria-hidden":"true"},[c("text",lUe,b(_+1),1)],2))])]),c("p",cUe,b(a(s)(m.textKey)),1)])),64))]),c("div",uUe,[f[0]||(f[0]=c("div",{class:"absolute top-0 right-0 h-full"},[c("img",{src:Jje,alt:"",class:"h-full object-contain"}),c("div",{class:"absolute top-0 left-0 h-full w-[196px]",style:{background:"linear-gradient(90deg, #565F8F 0%, rgba(86, 95, 143, 0) 100%)"}})],-1)),c("div",dUe,[c("div",fUe,[c("p",pUe,b(a(s)("segmentationManage.neighborsHere")),1),c("p",hUe,b(a(s)("segmentationManage.neighborsHereDescr")),1),T(a(Ya),{class:"mt-1 w-[64px]",label:a(s)("segmentationManage.check"),onClick:l},null,8,["label"])])])]),c("p",mUe,b(a(s)("segmentationManage.whatYouGet")),1),c("div",gUe,[(p(),y(j,null,le(o,m=>c("div",{key:m.id,class:"flex items-center gap-4 p-4 bg-grey-90 rounded-[12px]"},[c("img",{src:m.imageSrc,alt:a(s)(m.titleKey),class:"h-[44px] w-[44px] shrink-0 object-contain"},null,8,yUe),c("div",null,[c("p",_Ue,b(a(s)(m.titleKey)),1),c("p",vUe,b(a(s)(m.descrKey)),1)])])),64))])]),c("div",bUe,[T(a(vt),{label:a(s)("segmentationManage.enterOrCreate"),onClick:u},null,8,["label"])])])}}}),kUe=Object.assign(xUe,{__name:"SegmentationManagePanel"}),wUe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function CUe(e,t){return p(),y("svg",wUe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M55.424 56.84a1.5 1.5 0 0 1 2.121 0L78.76 78.051a1.5 1.5 0 0 1-2.122 2.121L55.424 58.96a1.5 1.5 0 0 1 0-2.12M13.518 78.406a3 3 0 1 1 4.242 4.241 3 3 0 0 1-4.242-4.241M63.369 27.848a1.5 1.5 0 0 1 2.12 0l2.83 2.828a1.5 1.5 0 1 1-2.122 2.121l-2.829-2.828a1.5 1.5 0 0 1 0-2.121"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M70.762 7.175a17.5 17.5 0 0 1 9.321 2.335 1.503 1.503 0 0 1 .312 2.36l-9.867 9.868 3.734 3.734 9.868-9.867a1.5 1.5 0 0 1 2.36.311 17.5 17.5 0 0 1-2.782 21.124l-.44.425a17.5 17.5 0 0 1-17.559 3.772l-.103-.037-4.646 4.912L85.83 70.98c4.49 4.49 4.49 11.773 0 16.264-4.351 4.35-11.32 4.486-15.834.408l-.43-.409L45.15 62.828 22.226 87.06c-3.48 3.678-9.235 3.87-12.951.52l-.354-.335c-3.695-3.696-3.612-9.713.185-13.305l24.232-22.924-.4-.4c-.378-.378-.726-.725-.991-1.038-.277-.326-.55-.712-.71-1.204a3.5 3.5 0 0 1 0-2.162c.16-.491.433-.879.71-1.205.265-.312.614-.659.992-1.037l3.747-3.748L25.323 28.86l-8.774-2.025c-.38-.087-.71-.32-.922-.646L7.85 14.166l-.066-.113a1.5 1.5 0 0 1 .265-1.762l2.828-2.829.098-.089a1.5 1.5 0 0 1 1.778-.109l12.02 7.778.119.085c.227.18.397.423.49.698l.04.14 2.024 8.773L38.807 38.1l3.748-3.748c.378-.378.726-.727 1.038-.992.326-.277.713-.55 1.204-.71l.266-.075a3.5 3.5 0 0 1 1.897.075l.179.065c.408.163.74.402 1.025.645.313.265.66.614 1.038.992l.851.852 4.832-4.572A17.5 17.5 0 0 1 70.762 7.175m-26.345 43.7c1.564 1.869 2.254 3.623 2.254 5.257a5.66 5.66 0 0 1-.908 3.067l25.925 25.924.316.302a8.501 8.501 0 0 0 11.704-12.322L57.784 47.178a5.66 5.66 0 0 1-3.067.908c-1.634 0-3.388-.69-5.257-2.255zm-2.286 2.288c-.378.378-.725.726-1.038.992a3.7 3.7 0 0 1-1.024.644l-.18.066a3.5 3.5 0 0 1-2.163 0c-.492-.16-.878-.434-1.204-.71-.313-.266-.66-.614-1.038-.992l-.025-.025L11.17 76.12a6.28 6.28 0 0 0-.126 9.003l.239.227a6.28 6.28 0 0 0 8.765-.352l22.979-24.295-.33-.329-.103-.113a1.5 1.5 0 0 1 .104-2.008c.543-.543.974-1.245.974-2.12 0-.7-.276-1.74-1.385-3.127zm3.67-17.677-.077.018c.035-.011-.005-.012-.19.144-.197.167-.444.414-.858.827l-9.616 9.616c-.413.413-.659.661-.826.859-.157.184-.155.223-.144.188a.5.5 0 0 0 0 .31c-.011-.035-.012.005.144.19.167.197.413.444.826.858l2.545 2.544c.413.414.66.66.858.828.184.156.225.154.19.143a.5.5 0 0 0 .31 0l.012-.009c.029-.018.085-.057.177-.134.197-.168.445-.414.858-.828l9.616-9.616c.414-.413.659-.66.827-.858.155-.184.154-.224.143-.19l.019-.076a.5.5 0 0 0-.019-.232l-.008-.013a2 2 0 0 0-.136-.177c-.167-.197-.412-.445-.826-.858l-2.546-2.545c-.413-.413-.66-.66-.858-.827a2 2 0 0 0-.177-.135l-.011-.009a.5.5 0 0 0-.234-.018m6.372 1.843c.212.215.405.417.567.608.242.285.482.617.645 1.024l.065.18a3.5 3.5 0 0 1 .075 1.897l-.075.265c-.16.492-.434.88-.71 1.205-.266.313-.614.66-.993 1.037l-.157.157c1.388 1.108 2.427 1.384 3.127 1.384.876 0 1.578-.432 2.121-.975a1.5 1.5 0 0 1 1.992-.114l3.883-4.105a17.5 17.5 0 0 1-4.906-4.124 17.5 17.5 0 0 1-1.58-2.273zM70.86 10.
77173a14.5 14.5 0 1 0 9.611 25.751L67.345 22.798a1.5 1.5 0 0 1 0-2.12l9.445-9.446a14.5 14.5 0 0 0-5.93-1.059m5.523 17.42L82.59 33.8a14.5 14.5 0 0 0 3.12-7.242c.33-2.5-.004-5.03-.944-7.347zM11.027 13.555l6.789 10.492 6.262 1.445-1.446-6.261-10.492-6.79z","clip-rule":"evenodd"},null,-1)])])}const $Ue={render:CUe},SUe={class:"flex h-full flex-col"},AUe={class:"flex-1 overflow-y-auto px-6 pt-2 pb-4 scrollbar-4-grey80"},IUe={class:"flex justify-center"},TUe={class:"mt-4 text-center text-24-bold text-black"},PUe={class:"mt-2 text-center text-16 text-grey-40 whitespace-pre-line"},DUe={class:"mt-6 space-y-2"},EUe=["src","alt"],LUe={class:"text-16 text-black"},RUe={class:"text-13 text-grey-40"},MUe={class:"p-6 pt-2"},OUe=G({__name:"SegmentationMasterPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t,r=[{id:1,titleKey:"segmentationMaster.items.ai",descrKey:"segmentationMaster.items.aiDescr",imageSrc:"/images/segmentation/ma1.png"},{id:2,titleKey:"segmentationMaster.items.masters",descrKey:"segmentationMaster.items.mastersDescr",imageSrc:"/images/segmentation/ma2.png"},{id:3,titleKey:"segmentationMaster.items.payment",descrKey:"segmentationMaster.items.paymentDescr",imageSrc:"/images/segmentation/ma3.png"},{id:4,titleKey:"segmentationMaster.items.history",descrKey:"segmentationMaster.items.historyDescr",imageSrc:"/images/segmentation/ma4.png"}];function i(){n("go","segmentation-master-category")}return(o,l)=>{const u=$Ue;return p(),y("div",SUe,[c("div",AUe,[c("div",IUe,[T(u)]),c("h2",TUe,b(a(s)("segmentationMaster.title")),1),c("p",PUe,b(a(s)("segmentationMaster.subtitle")),1),c("div",DUe,[(p(),y(j,null,le(r,d=>c("div",{key:d.id,class:"flex items-center gap-4 p-4 bg-grey-90 rounded-[12px]"},[c("img",{src:d.imageSrc,alt:a(s)(d.titleKey),class:"h-[44px] w-[44px] shrink-0 object-contain"},null,8,EUe),c("div",null,[c("p",LUe,b(a(s)(d.titleKey)),1),c("p",RUe,b(a(s)(d.descrKey)),1)])])),64))])]),c("div",MUe,[T(a(vt),{label:a(s)("segmentationMaster.enterOrCreate"),onClick:i},null,8,["label"])])])}}}),FUe=Object.assign(OUe,{__name:"SegmentationMasterPanel"}),NUe={class:"flex h-full flex-col"},BUe={class:"flex-1 overflow-y-auto px-6 pt-2 pb-4 scrollbar-4-grey80"},VUe={class:"text-center text-24-bold text-black"},HUe={class:"mt-2 text-center text-16 text-grey-40"},qUe={key:0,class:"mt-6 flex justify-center"},jUe={key:1,class:"mt-6 grid grid-cols-2 gap-3"},UUe=["onClick"],zUe={class:"text-16-bold text-black"},WUe={class:"mt-3 flex flex-1 items-end justify-center"},GUe=["src","alt"],YUe=G({__name:"SegmentationMasterCategoryPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),{$showSnackbar:n}=Te(),r=v9(),i=Ln(),o=t;je(()=>{r.fetchCategories()}),Se(()=>r.error,d=>{d&&n(d.message??s("segmentationMasterCategory.error"))});function l(d){i.startDemoChat(d.id,d.title),o("go",{to:"claim-create-chat",query:{claimId:d.id,claimTitle:d.title}})}function u(d){const f=d.split(/([?#].*)/,2),h=f[0]??"",g=f[1]??"";return/_x3\.png$/i.test(h)?d:`${h.replace(/\.[^/.]+$/,"")}_x3.png${g}`}return(d,f)=>(p(),y("div",NUe,[c("div",BUe,[c("h2",VUe,b(a(s)("segmentationMasterCategory.title")),1),c("p",HUe,b(a(s)("segmentationMasterCategory.subtitle")),1),a(r).isLoading?(p(),y("div",qUe,[...f[0]||(f[0]=[c("div",{class:"h-8 w-8 animate-spin rounded-full border-2 border-grey-80 border-t-emerald-primary"},null,-1)])])):(p(),y("div",jUe,[(p(!0),y(j,null,le(a(r).categories,h=>(p(),y("button",{key:h.id,type:"button",class:"group flex flex-col rounded-[12px] bg-grey-90 p-4 text-left transition-colors duration-200 xl:hover:bg-grey-80",onClick:g=>l(h)},[c("p",zUe,b(h.title),1),c("div",WUe,[h.iconUrl?(p(),y("img",{key:0,src:u(h.iconUrl),alt:h.title,class:"h-[80px] w-[80px] object-contain"},null,8,GUe)):E("",!0)])],8,UUe))),128))]))])]))}}),KUe=Object.assign(YUe,{__name:"SegmentationMasterCategoryPanel"}),QUe={xmlns:"http://www.w3.org/2000/svg",width:"190",height:"48",fill:"none"};function XUe(e,t){return p(),y("svg",QUe,[...t[0]||(t[0]=[ls('<path stroke="#9CCA7F" stroke-width="6" d="M17.58 29.76c-4.456-1.716-24.804-16.295-7.303-24.295"></path><circle cx="150.776" cy="7.965" r="5.5" stroke="#fff" stroke-opacity=".32" stroke-width="3"></circle><path stroke="#F5C658" stroke-width="6" d="M180.307 39.263c4.741-6.503 4.344-14.918-1.517-22.22"></path><path stroke="#FA7A6E" stroke-width="3" d="M39.777 41.465c2-6.5 6-10 12-12.5"></path><path stroke="#fff" stroke-opacity=".32" stroke-width="3" d="m139.125 45.084 8.964-7.526M45.776.965l7.527 8.964"></path>',5)])])}const ZUe={render:XUe},JUe={xmlns:"http://www.w3.org/2000/svg",width:"52",height:"51",fill:"none"};function eze(e,t){return p(),y("svg",JUe,[...t[0]||(t[0]=[c("path",{fill:"#fff",d:"M19.178 3.579C21.422 1.608 22.543.623 23.807.248a6 6 0 0 1 3.412 0c1.263.375 2.385 1.36 4.629 3.33l1.13.993c.748.658 1.122.986 1.539 1.246q.556.346 1.173.565c.463.164.953.251 1.934.427l1.48.264c2.94.526 4.41.788 5.49 1.543a6 6 0 0 1 2.127 2.667c.495 1.222.424 2.713.283 5.696l-.072 1.502c-.047.995-.07 1.493-.014 1.98q.075.65.29 1.27c.16.463.397.901.872 1.777l.716 1.323c1.422 2.626 2.133 3.94 2.217 5.254a6 6 0 0 1-.76 3.326c-.646 1.149-1.856 2.023-4.277 3.772l-1.219.881c-.807.584-1.21.875-1.556 1.223q-.462.465-.812 1.019c-.263.414-.458.873-.847 1.79l-.587 1.384c-1.167 2.75-1.75 4.124-2.726 5.01a6 6 0 0 1-3.073 1.48c-1.301.21-2.74-.19-5.616-.993l-1.45-.403c-.959-.268-1.438-.402-1.926-.455a6 6 0 0 0-1.303 0c-.487.053-.967.187-1.927.455l-1.448.403c-2.877.802-4.315 1.203-5.616.993a6 6 0 0 1-3.074-1.48c-.976-.886-1.559-2.26-2.726-5.01l-.587-1.384c-.39-.917-.584-1.376-.846-1.79a6 6 0 0 0-.812-1.019c-.346-.348-.75-.64-1.557-1.223l-1.219-.88C2.63 35.433 1.418 34.56.772 33.41a6 6 0 0 1-.76-3.326c.085-1.315.796-2.628 2.218-5.254l.716-1.323c.474-.876.711-1.313.872-1.777q.214-.62.29-1.27c.056-.487.032-.985-.015-1.98l-.071-1.502c-.142-2.983-.213-4.474.282-5.696A6 6 0 0 1 6.43 8.616c1.08-.755 2.55-1.017 5.49-1.543l1.48-.264c.982-.176 1.472-.263 1.934-.427q.617-.219 1.174-.565c.416-.26.79-.588 1.539-1.246z"},null,-1)])])}const tze={render:eze},sze={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function nze(e,t){return p(),y("svg",sze,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M12 13.5a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M12 2a6 6 0 0 1 3 .804 1 1 0 0 1-1 1.732A4 4 0 0 0 8 8v1.003Q8.375 9 8.8 9h6.4c.824 0 1.502-.001 2.052.044.562.046 1.08.144 1.564.392a4 4 0 0 1 1.749 1.748c.247.485.345 1.002.391 1.564.045.55.044 1.228.044 2.052v1.4c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.749c-.485.247-1.002.345-1.564.391-.55.045-1.228.044-2.052.044H8.8c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C2.999 17.702 3 17.024 3 16.2v-1.4c0-.824-.001-1.502.044-2.052.046-.562.144-1.08.392-1.564a4 4 0 0 1 1.748-1.748c.262-.134.533-.224.816-.286V8a6 6 0 0 1 6-6m-3.2 9c-.857 0-1.439 0-1.889.037-.438.036-.663.101-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.82C5 13.361 5 13.942 5 14.8v1.4c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C7.361 20 7.942 20 8.8 20h6.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.031.038-1.888v-1.4c0-.857 0-1.439-.037-1.889-.036-.438-.101-.663-.18-.82a2 2 0 0 0-.875-.873c-.156-.08-.38-.145-.82-.18C16.639 11 16.058 11 15.2 11z","clip-rule":"evenodd"},null,-1)])])}const rze={render:nze},ize={class:"relative overflow-hidden rounded-[24px] bg-purple-50 text-center p-4"}
77,oze={class:"relative mx-auto h-[56px] w-[190px] max-w-full mt-4","aria-hidden":"true"},aze={class:"absolute left-1/2 top-6 grid h-[51px] w-[52px] -translate-x-1/2 -translate-y-1/2 place-items-center"},lze={key:0,class:"text-16-bold text-white mt-4"},cze={key:1,class:"mt-1 text-13 text-white"},uze=G({__name:"OpportunityBanner",props:{block:{}},emits:["close"],setup(e){return(t,s)=>(p(),y("section",ize,[c("button",{type:"button",class:"absolute right-0 top-4 z-20 transition-opacity auth:hover:opacity-80","aria-label":"ÐакÑÑÑÑ",onClick:s[0]||(s[0]=n=>t.$emit("close"))},[T(a(s7),{class:"h-10 w-10","aria-hidden":"true"})]),c("div",oze,[T(a(ZUe),{class:"absolute left-0 top-0 h-12 w-[190px]"}),c("div",aze,[T(a(tze),{class:"absolute inset-0 h-full w-full"}),T(a(rze),{class:"active-residents-banner__unlock relative z-10 h-6 w-6"})])]),e.block.title?(p(),y("h2",lze,b(e.block.title),1)):E("",!0),e.block.description?(p(),y("p",cze,b(e.block.description),1)):E("",!0)]))}}),dze=Object.assign(Gs(uze,[["__scopeId","data-v-4017ff5e"]]),{__name:"OpportunityBanner"}),fze={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function pze(e,t){return p(),y("svg",fze,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M46.452 16.7a4 4 0 0 1 3.098 0l.21.095.184.098c.893.504 1.357 1.277 1.55 1.613.24.416.477.94.684 1.388l1.228 2.665 2.916.345c.49.058 1.062.123 1.531.222.405.085 1.377.31 2.163 1.12a4 4 0 0 1 1.087 3.347c-.159 1.118-.814 1.87-1.091 2.177-.322.356-.747.745-1.109 1.08l-2.155 1.992.573 2.88c.096.483.211 1.047.262 1.524.044.411.131 1.404-.398 2.402a4 4 0 0 1-2.846 2.069c-1.113.194-2.03-.197-2.407-.365-.438-.196-.94-.48-1.37-.72l-2.561-1.435-2.562 1.435c-.43.24-.93.524-1.369.72-.377.168-1.294.559-2.407.365a4 4 0 0 1-2.847-2.069c-.528-.998-.44-1.99-.397-2.402.05-.477.166-1.041.262-1.524l.572-2.88-2.154-1.992c-.362-.335-.787-.724-1.109-1.08-.277-.307-.933-1.06-1.092-2.177a4 4 0 0 1 1.088-3.347c.786-.81 1.758-1.035 2.162-1.12.47-.1 1.043-.164 1.532-.222l2.915-.345 1.23-2.665c.205-.447.443-.972.683-1.388.206-.358.719-1.214 1.733-1.711zm1.988 2.79a1 1 0 0 0-.878 0c-.32.156-.552.657-1.014 1.66l-1.558 3.376c-.137.297-.205.446-.308.56l-.074.072a1 1 0 0 1-.255.166l-.112.04c-.12.034-.272.052-.516.081l-3.692.439-.724.089c-.628.085-.983.17-1.168.361a1 1 0 0 0-.272.836c.05.352.455.727 1.266 1.476l2.73 2.526c.24.222.36.333.437.467.067.118.11.25.125.385.017.154-.015.314-.078.634l-.725 3.648-.139.716c-.113.624-.143.988-.018 1.223a1 1 0 0 0 .712.517c.262.046.6-.094 1.158-.395l.637-.353 3.246-1.817c.284-.16.427-.239.578-.27.133-.028.272-.028.406 0 .15.031.294.11.578.27l3.245 1.817c.904.505 1.384.774 1.729.755l.067-.007a1 1 0 0 0 .652-.42l.06-.097c.167-.314.058-.856-.157-1.94l-.725-3.647c-.063-.32-.095-.48-.078-.634.015-.135.057-.267.125-.385.038-.067.088-.128.157-.2l.28-.267 2.73-2.526c.81-.749 1.216-1.124 1.266-1.476a1 1 0 0 0-.272-.836c-.185-.192-.54-.276-1.169-.361l-.723-.09-3.693-.438c-.324-.038-.487-.057-.628-.12a1 1 0 0 1-.328-.24 1 1 0 0 1-.141-.21l-.167-.349-1.558-3.377c-.462-1.002-.694-1.503-1.014-1.66","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M71.6 4.5c1.054 0 1.95-.002 2.694.07.776.076 1.496.24 2.193.628 1.037.58 1.979 1.648 2.422 2.75.45 1.118.4 2.24.246 3.552H83.6c1.925 0 3.449-.046 4.82.764.555.328 1.056.801 1.45 1.287s.756 1.073.963 1.684c.506 1.495.196 2.789-.145 4.413-1.396 6.665-4.553 15.255-9.023 22.216-4.098 6.382-9.583 11.816-16.151 12.55-1.852 3.301-3.852 6.262-5.98 8.663-1.272 1.436-2.619 2.703-4.033 3.725V76.5h.5c1.843 0 3.3 0 4.48.08 1.191.081 2.207.25 3.156.643a9.5 9.5 0 0 1 5.141 5.141c.393.948.561 1.965.643 3.156.057.84.073 1.82.078 2.98h2.502a1.5 1.5 0 0 1 0 3H24a1.5 1.5 0 0 1 0-3h2.502c.005-1.16.02-2.14.078-2.98.081-1.191.25-2.207.643-3.156a9.5 9.5 0 0 1 5.141-5.141c.948-.393 1.965-.562 3.156-.643 1.179-.08 2.637-.08 4.48-.08h.5v-9.698c-1.414-1.022-2.761-2.29-4.033-3.725-2.128-2.4-4.13-5.361-5.982-8.663-6.567-.735-12.051-6.169-16.15-12.55-4.47-6.96-7.626-15.551-9.023-22.216-.34-1.624-.65-2.918-.144-4.413.207-.61.568-1.199.963-1.684.394-.486.895-.96 1.45-1.287 1.371-.81 2.895-.764 4.82-.764h4.445c-.154-1.312-.204-2.434.246-3.553.443-1.101 1.385-2.17 2.422-2.749.697-.389 1.416-.552 2.193-.628.744-.072 1.64-.07 2.693-.07zM40 79.5c-1.883 0-3.222 0-4.275.072-1.039.071-1.69.207-2.211.423a6.5 6.5 0 0 0-3.518 3.518c-.216.521-.352 1.172-.423 2.212-.05.749-.066 1.643-.07 2.775h36.996c-.004-1.132-.02-2.026-.07-2.775-.071-1.04-.207-1.69-.423-2.212a6.5 6.5 0 0 0-3.518-3.518c-.522-.216-1.173-.352-2.212-.423-1.052-.072-2.39-.072-4.275-.072zm12.5-10.97c-1.443.623-2.945.97-4.5.97-1.553 0-3.055-.347-4.5-.97v7.97h9zM24.402 7.5c-1.11 0-1.838.002-2.404.057-.533.051-.808.142-1.02.26-.439.245-.914.785-1.101 1.25-.211.526-.186 1.042.077 3.107 1.24 9.72 4.938 23.482 10.121 34.784 2.593 5.653 5.52 10.61 8.639 14.13 1.322 1.492 2.644 2.686 3.954 3.57q.163.08.3.195C44.67 65.941 46.354 66.5 48 66.5s3.33-.56 5.033-1.647a1.5 1.5 0 0 1 .3-.196c1.31-.883 2.632-2.076 3.955-3.57 3.118-3.518 6.046-8.476 8.639-14.129 5.183-11.302 8.881-25.064 10.12-34.784.264-2.065.289-2.581.078-3.107-.187-.465-.663-1.005-1.1-1.25-.213-.118-.489-.209-1.021-.26-.566-.055-1.294-.057-2.404-.057zm-12 7c-2.229 0-2.783.046-3.294.347a2.7 2.7 0 0 0-.647.595 2.7 2.7 0 0 0-.45.756c-.195.574-.144 1.007.239 2.834 1.332 6.358 4.365 14.598 8.612 21.211 3.44 5.357 7.47 9.334 11.805 10.72q-.675-1.353-1.318-2.755c-4.976-10.85-8.61-23.87-10.099-33.708zm66.352 0c-1.49 9.838-5.123 22.858-10.099 33.708q-.644 1.401-1.32 2.755c4.336-1.386 8.366-5.363 11.807-10.72 4.247-6.613 7.28-14.853 8.612-21.21.383-1.828.433-2.26.24-2.835a2.7 2.7 0 0 0-.451-.756 2.7 2.7 0 0 0-.648-.595c-.51-.301-1.064-.347-3.294-.347z","clip-rule":"evenodd"},null,-1)])])}const lC={render:pze},hze={class:"flex min-h-full flex-col bg-grey-90"}
77,mze={key:1,class:"m-2 rounded-[24px] bg-white p-4"},gze={class:"flex items-start gap-4"},yze={class:"min-w-0 flex-1"},_ze={key:0,class:"text-16-bold text-black"},vze={key:1,class:"mt-1 text-13 text-grey-40"},bze=["src"],xze={class:"flex flex-col gap-2"},kze={key:1,class:"rounded-[24px] bg-white px-6 py-10 text-center"},wze={class:"text-24-bold text-black"},Cze={class:"mt-2 text-16 text-grey-40"},$ze={key:2,class:"rounded-[24px] bg-white p-4"},Sze={class:"flex flex-col items-center px-4 pb-0 pt-8 text-center"},Aze={key:0,class:"mt-5 text-24-bold text-black"},Ize={key:1,class:"mt-2 max-w-[360px] text-16 text-grey-40"},Tze={key:0,class:"mt-6 rounded-[24px] bg-purple-90 px-4 py-4"},Pze={class:"text-16-bold text-black"},Dze={class:"mt-3 flex flex-col gap-2"},Eze={class:"grid h-3 w-3 shrink-0 place-items-center rounded-full bg-purple-50","aria-hidden":"true"},Lze={class:"min-w-0"},Rze={class:"flex items-start gap-4"},Mze=["src"],Oze={class:"min-w-0 flex-1"},Fze={class:"flex min-w-0 items-center gap-2"},Nze={class:"truncate text-16 text-black"},Bze={class:"mt-1 truncate text-13 text-grey-40"},Vze=["aria-label","onClick"],Hze={key:0,class:"absolute right-0.5 top-0.5 h-3 w-3 rounded-full border-2 border-white bg-red-50","aria-hidden":"true"},qze={key:0,class:"mt-4 flex flex-wrap gap-2"},jze={key:0,class:"h-8 w-8 animate-spin rounded-full border-2 border-grey-80 border-t-paleLime-primary","aria-hidden":"true"},Uze=G({__name:"ActiveResidentsPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=$g(),{sessionStore:r,userInfoStore:i}=Mn(),{t:o}=be(),l=A(()=>i.residence?.premisesId??null),u=A(()=>n.screen?.initGroupUsers??[]),d=A(()=>u.value.length>0),f=A(()=>n.screen?.ratingInfo??null),h=A(()=>n.screen?.ratingOpportunityBanner??null),g=A(()=>{const S=f.value?.iconUrl??"";return S?O1(S):""}),m=A(()=>({title:n.screen?.notAllowedByRatingBlock.title??"",description:n.screen?.notAllowedByRatingBlock.description??"",opportunities:n.screen?.notAllowedByRatingBlock.opportunities??[]})),_=X(null);let v=null;function k(){if(!r.isAuthorized){n.clear();return}n.loadScreen(l.value)}function x(){n.loadMore(l.value)}function C(){const S=h.value?.bannerName??"";n.closeRatingOpportunityBanner(l.value,S)}function w(S){!S.userId||!S.canSendMessage||s("go",{to:"house-conversation-chat",query:{user_id:S.userId}})}function $(S){const I=[...S.markers];return S.invitedResidentsCount>0&&I.push({text:o("house.activeResidents.list.invitedResidents",{count:S.invitedResidentsCount,noun:hu(S.invitedResidentsCount,{one:o("house.activeResidents.list.nouns.neighbor.one"),few:o("house.activeResidents.list.nouns.neighbor.few"),many:o("house.activeResidents.list.nouns.neighbor.many")})}),textColor:"",backgroundColor:""}),I}return Se([()=>r.isAuthorized,l],()=>{k()},{immediate:!0}),je(()=>{v=new IntersectionObserver(S=>{S.some(I=>I.isIntersecting)&&x()}),_.value&&v.observe(_.value)}),Se(_,(S,I)=>{v&&(I&&v.unobserve(I),S&&v.observe(S))}),Tt(()=>{v?.disconnect()}),(S,I)=>{const P=dze,L=lC,D=pa,R=f7,F=Du;return p(),y("div",hze,[a(h)?(p(),K(P,{key:0,class:"m-2",block:a(h),onClose:C},null,8,["block"])):E("",!0),a(d)&&a(f)?(p(),y("section",mze,[c("div",gze,[c("div",yze,[a(f).title?(p(),y("h2",_ze,b(a(f).title),1)):E("",!0),a(f).description?(p(),y("p",vze,b(a(f).description),1)):E("",!0)]),a(g)?(p(),y("img",{key:0,src:a(g),alt:"",class:"h-11 w-11 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,bze)):E("",!0)])])):E("",!0),c("section",xze,[a(n).isLoading?(p(),y(j,{key:0},le(6,N=>c("article",{key:`active-resident-skeleton-${N}`,class:"min-h-[132px] rounded-[24px] bg-white p-4 animate-pulse"},[...I[0]||(I[0]=[ls('<div class="flex items-start gap-4"><div class="h-11 w-11 shrink-0 rounded-full bg-grey-80"></div><div class="min-w-0 flex-1"><div class="h-5 w-32 rounded bg-grey-80"></div><div class="mt-2 h-4 w-20 rounded bg-grey-90"></div></div></div><div class="mt-4 flex flex-wrap gap-2"><div class="h-8 w-36 rounded-full bg-grey-90"></div><div class="h-8 w-44 rounded-full bg-grey-90"></div><div class="h-8 w-32 rounded-full bg-grey-90"></div></div>',2)])])),64)):a(n).error&&!a(n).screen?(p(),y("section",kze,[c("h2",wze,b(a(o)("house.activeResidents.list.loadError")),1),c("p",Cze,b(a(o)("house.activeResidents.list.tryLater")),1)])):a(u).length===0?(p(),y("section",$ze,[c("div",Sze,[T(L,{class:"h-24 w-24 shrink-0","aria-hidden":"true"}),a(m).title?(p(),y("h2",Aze,b(a(m).title),1)):E("",!0),a(m).description?(p(),y("p",Ize,b(a(m).description),1)):E("",!0)]),a(m).opportunities.length?(p(),y("div",Tze,[c("h3",Pze,b(a(o)("house.activeResidents.info.tasksT
77itle")),1),c("ul",Dze,[(p(!0),y(j,null,le(a(m).opportunities,N=>(p(),y("li",{key:N,class:"flex items-center gap-2 text-left text-13 text-black"},[c("span",Eze,[T(D,{class:"h-2 w-2"})]),c("span",Lze,b(N),1)]))),128))])])):E("",!0)])):(p(),y(j,{key:3},[(p(!0),y(j,null,le(a(u),N=>(p(),y("article",{key:N.userId||`${N.name}-${N.addressesText}`,class:"rounded-[24px] bg-white p-4"},[c("div",Rze,[c("img",{src:N.avatarUrl||"/images/avatar_placeholder.png",alt:"",class:"h-11 w-11 shrink-0 rounded-full object-cover","aria-hidden":"true",draggable:"false"},null,8,Mze),c("div",Oze,[c("div",Fze,[c("h2",Nze,b(N.name),1),N.isConfirmed?(p(),K(R,{key:0,class:"h-6 w-6 shrink-0","aria-hidden":"true"})):E("",!0)]),c("p",Bze,b(N.addressesText),1)]),N.canSendMessage?(p(),y("button",{key:0,type:"button",class:"relative flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-grey-90","aria-label":a(o)("house.activeResidents.list.chatButton"),onClick:St(z=>w(N),["prevent"])},[T(F,{class:"h-6 w-6","aria-hidden":"true"}),N.hasNewMessage?(p(),y("span",Hze)):E("",!0)],8,Vze)):E("",!0)]),$(N).length?(p(),y("div",qze,[(p(!0),y(j,null,le($(N),z=>(p(),y("span",{key:`${N.userId}-${z.text}`,class:"rounded-full bg-grey-90 px-3 py-2 text-13 text-black",style:kt({color:z.textColor||void 0,backgroundColor:z.backgroundColor||void 0})},b(z.text),5))),128))])):E("",!0)]))),128)),c("div",{ref_key:"loadMoreTarget",ref:_,class:"flex min-h-12 items-center justify-center"},[a(n).isLoadingMore?(p(),y("div",jze)):E("",!0)],512)],64))])])}}}),zze=Object.assign(Uze,{__name:"ActiveResidentsPanel"}),Wze={class:"scrollbar-4-grey80 flex min-h-full flex-col justify-between bg-white"},Gze={class:"px-6"},Yze={class:"rounded-[24px] bg-white"},Kze={class:"flex flex-col items-center text-center"},Qze={class:"h-[120px] w-[120px]"},Xze={key:0,class:"h-full w-full animate-pulse rounded-[24px] bg-grey-80"},Zze=["src"],Jze={class:"mt-6 w-full"},eWe={key:0,class:"mx-auto h-8 w-56 max-w-full animate-pulse rounded bg-grey-80"},tWe={key:1,class:"text-24-bold text-black"},sWe={class:"mt-2 w-full"},nWe={key:0,class:"mx-auto h-[72px] w-full max-w-[360px] animate-pulse rounded bg-grey-90"},rWe={key:1,class:"mx-auto max-w-[432px] text-16 text-grey-40"},iWe={key:0,class:"mt-6 rounded-[24px] bg-purple-90 p-4"},oWe={key:0,class:"h-6 w-40 animate-pulse rounded bg-grey-80"},aWe={key:1,class:"text-16-bold text-black"},lWe={class:"mt-3 flex flex-col gap-2"},cWe={key:0,class:"h-3 w-3 shrink-0 rounded-full bg-grey-80","aria-hidden":"true"},uWe={key:2,class:"h-4 flex-1 animate-pulse rounded bg-grey-80"},dWe={key:3,class:"min-w-0"},fWe={key:1,class:"mt-6 rounded-[24px] bg-grey-90 p-4 text-center"},pWe={class:"text-16-bold text-black"},hWe={class:"mt-2 text-13 text-grey-40"},mWe={class:"px-6 pb-6 pt-4"},gWe=G({__name:"ActiveResidentsInfoPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=$g(),i=Oe(),o=A(()=>i.residence?.premisesId??null),l=A(()=>({imageUrl:"",title:n("house.activeResidents.info.skeletonTitle"),description:n("house.activeResidents.info.skeletonDescription"),tasksList:[n("house.activeResidents.info.skeletonTaskInvite"),n("house.activeResidents.info.skeletonTaskSurvey"),n("house.activeResidents.info.skeletonTaskLikes")]})),u=A(()=>r.isInfoOverlayLoading),d=A(()=>!!(r.infoOverlayError&&!r.infoOverlay)),f=A(()=>r.infoOverlay??l.value),h=A(()=>O1(f.value.imageUrl)),g=A(()=>u.value?l.value.tasksList:f.value.tasksList);return Se(o,m=>{if(!m){r.clearInfoOverlay();return}r.loadInfoOverlay(m)},{immediate:!0}),Tt(()=>{r.clearInfoOverlay()}),(m,_)=>{const v=lC,k=W0,x=Ae("PrimaryButton");return p(),y("div",Wze,[c("div",Gze,[c("section",Yze,[c("div",Kze,[c("div",Qze,[a(u)?(p(),y("div",Xze)):a(h)?(p(),y("img",{key:1,src:a(h),alt:"",class:"h-full w-full object-contain","aria-hidden":"true",draggable:"false"},null,8,Zze)):(p(),K(v,{key:2,class:"h-full w-full","aria-hidden":"true"}))]),c("div",Jze,[a(u)?(p(),y("div",eWe)):a(f).title?(p(),y("h2",tWe,b(a(f).title),1)):E("",!0)]),c("div",sWe,[a(u)?(p(),y("div",nWe)):a(f).description?(p(),y("p",rWe,b(a(f).description),1)):E("",!0)])]),a(u)||a(f).tasksList.length?(p(),y("div",iWe,[a(u)?(p(),y("div",oWe)):(p(),y("h3",aWe,b(a(n)("house.activeResidents.info.tasksT
77itle")),1)),c("ul",lWe,[(p(!0),y(j,null,le(a(g),(C,w)=>(p(),y("li",{key:`${C}-${w}`,class:"flex items-center gap-2 text-left text-13 text-black"},[a(u)?(p(),y("span",cWe)):(p(),K(k,{key:1,class:"shrink-0 text-purple-50","aria-hidden":"true"})),a(u)?(p(),y("span",uWe)):(p(),y("span",dWe,b(C),1))]))),128))])])):E("",!0),a(d)?(p(),y("div",fWe,[c("p",pWe,b(a(n)("house.activeResidents.info.loadError")),1),c("p",hWe,b(a(n)("house.activeResidents.info.tryLater")),1)])):E("",!0)])]),c("div",mWe,[T(x,{label:a(n)("getIt"),onClick:_[0]||(_[0]=C=>s("go","close"))},null,8,["label"])])])}}}),yWe=Object.assign(gWe,{__name:"ActiveResidentsInfoPanel"}),_We=Ls("/images/avatar_placeholder.png"),vWe={class:"min-h-full bg-grey-90 px-0 pb-4 pt-2"},bWe={key:0,class:"flex flex-col gap-2"},xWe={key:1,class:"rounded-[24px] bg-white p-4"},kWe={class:"text-16 text-grey-40"},wWe={class:"mt-1 text-13 text-grey-40"},CWe={key:2,class:"flex flex-col gap-2"},$We={key:0,class:"flex h-[76px] items-center rounded-[24px] bg-white p-4"},SWe={class:"text-16 text-grey-40"},AWe=["onClick"],IWe={class:"h-11 w-11 shrink-0 overflow-hidden rounded-full bg-grey-80"},TWe=["src"],PWe={key:1,src:_We,alt:"",class:"h-full w-full object-cover","aria-hidden":"true",draggable:"false"},DWe={class:"ml-4 min-w-0 flex-1"},EWe={class:"flex min-w-0 items-start gap-4"},LWe={class:"min-w-0 flex-1 truncate text-16 text-black"},RWe={class:"mt-1 shrink-0 text-13 text-grey-40"},MWe={class:"mt-1 flex min-w-0 items-start gap-4"},OWe={key:0,class:"flex h-4 w-4 shrink-0 flex-col items-start rounded-full bg-[#FA7A6E]"},FWe={class:"block h-4 w-4 text-center text-[11px] font-semibold leading-4 text-white"},NWe={key:1,class:"h-[76px] rounded-[24px] bg-white animate-pulse"},BWe=G({__name:"HouseConversationsPanel",emits:["go"],setup(e,{emit:t}){const s=$9(),n=Oe(),{t:r}=be(),i=t,o=A(()=>n.residence?.premisesId??""),l=A(()=>s.screen?.conversations??[]),u=X(null);let d=null;je(()=>{s.loadScreen(o.value),d=new IntersectionObserver(w=>{w.some($=>$.isIntersecting)&&s.loadMore(o.value)}),u.value&&d.observe(u.value)}),Tt(()=>{d?.disconnect()}),Se(o,w=>{s.loadScreen(w)});function f(w){return w.recipient?.avatarUrl.trim()??""}function h(w){const $=w.recipient;return $?.shortName||$?.fullName||""}function g(w){const $=w.lastMessage;if(!$)return"";let S=$.body.trim();return!S&&$.attachments.length>0&&(S=r("house.conversations.file")),m(w)&&S?r("house.conversations.myMessage",{text:S}):S}function m(w){return w.lastMessage?.isMyMessage===!0}function _(w){const $=v(w.lastMessageAt);if(!$)return"";const I=k(new Date),P=k($),L=new Date(I);if(L.setDate(I.getDate()-1),P.getTime()===I.getTime())return new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}).format($);if(P.getTime()===L.getTime())return r("house.conversations.yesterday");const D=new Date(I),R=I.getDay()===0?7:I.getDay();return D.setDate(I.getDate()-R+1),P>=D?r(`house.conversations.weekdays.${$.getDay()===0?7:$.getDay()}`):new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"short"}).format($).replace(".","")}function v(w){const $=new Date(w);return Number.isNaN($.getTime())?null:$}function k(w){return new Date(w.getFullYear(),w.getMonth(),w.getDate())}function x(w){return w>9?"9+":String(w)}function C(w){w.chatConversationId&&i("go",{to:"house-conversation-chat",query:{conversation_id:w.chatConversationId}})}return(w,$)=>(p(),y("div",vWe,[a(s).isLoading&&a(l).length===0?(p(),y("div",bWe,[(p(),y(j,null,le(7,S=>c("div",{key:`house-conversation-skeleton-${S}`,class:"mx-0 h-[76px] rounded-[24px] bg-white animate-pulse"})),64))])):a(s).error?(p(),y("div",xWe,[c("p",kWe,b(a(r)("house.conversations.loadError")),1),c("p",wWe,b(a(r)("house.conversations.tryLater")),1)])):(p(),y("div",CWe,[a(l).length===0?(p(),y("div",$We,[c("p",SWe,b(a(r)("house.conversations.empty")),1)])):E("",!0),(p(!0),y(j,null,le(a(l),S=>(p(),y("button",{key:S.chatConversationId,type:"button",class:"flex w-full items-start rounded-[24px] bg-white p-4 text-left",onClick:St(I=>C(S),["prevent"])},[c("span",IWe,[f(S)?(p(),y("img",{key:0,src:f(S),alt:"",class:"h-full w-full object-cover","aria-hidden":"true",draggable:"false"},null,8,TWe)):(p(),y("img",PWe))]),c("span",DWe,[c("span",EWe,[c("span",LWe,b(h(S)),1),c("span",RWe,b(_(S)),1)]),c("span",MWe,[c("span",{class:oe(["min-w-0 flex-1 truncate text-13",S.unreadCount>0?"text-black":"text-grey-40"])},b(g(S)),3),S.unreadCount>0?(p(),y("span",OWe,[c("span",FWe,b(x(S.unreadCount)),1)])):E("",!0)])])],8,AWe))),128)),a(s).isLoadingMore?(p(),y("div",NWe)):E("",!0),c("div",{ref_key:"loadMoreTarget",ref:u,class:"h-1"},null,512)]))]))}}),VWe=Object.assign(BWe,{__name:"HouseConversationsPanel"}),HWe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function qWe(e,t){return p(),y("svg",HWe,[...t[0]||(t[0]=[c("path",{fill:"#909996",d:"M12.793 11.293a1 1 0 1 1 1.414 1.414l-.793.793.793.793a1 1 0 1 1-1.414 1.414L12 14.914l-.793.793a1 1 0 1 1-1.414-1.414l.793-.793-.793-.793a1 1 0 1 1 1.414-1.414l.793.793z"},null,-1),c("path",{fill:"#909996","fill-rule":"evenodd",d:"M17.293 5.293a1 1 0 1 1 1.414 1.414l-.741.74a8.5 8.5 0 1 1-11.933 0l-.74-.74a1 1 0 1 1 1.414-1.414l.918.918A8.46 8.46 0 0 1 12 5c1.6 0 3.096.442 4.374 1.21zM12 7a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13","clip-rule":"evenodd"},null,-1),c("path",{fill:"#909996",d:"M13.5 2a1 1 0 1 1 0 2h-3a1 1 0 0 1 0-2z"},null,-1)])])}const jWe={render:qWe},UWe="5.12.2",zWe=60,WWe=0,GWe=111,YWe=72,KWe=72,QWe="Calendar / Timer",XWe=0,ZWe=[],JWe=[{ddd:0,ind:1,ty:4,nm:"Vector 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[55.5,17.75,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0}
77,t:17,s:[53,20.25,0],to:[0,0,0],ti:[0,0,0]},{t:34,s:[55.5,17.75,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-.5,.5],[.5,-.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector 2",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Vector 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[16.5,17.75,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:17,s:[19,20.25,0],to:[0,0,0],ti:[0,0,0]},{t:34,s:[16.5,17.75,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[.5,.5],[-.5,-.5]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Ellipse 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[36,39,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:1,k:[{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:0,s:[16,16]},{i:{x:[.667,.667],y:[1,1]},o:{x:[.333,.333],y:[0,0]},t:17,s:[14,14]},{t:34,s:[16,16]}],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0},{ddd:0,ind:4,ty:4,nm:"Vector 147",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.066],y:[1]},o:{x:[.468],y:[0]},t:0,s:[120]},{t:80,s:[480]}],ix:10},p:{a:0,k:[36,39,0],ix:2,l:2},a:{a:0,k:[0,6,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[0,-.5],[0,2]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector 145",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0},{ddd:0,ind:5,ty:4,nm:"Vector 145",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.066],y:[1]},o:{x:[.468],y:[0]},t:0,s:[0]},{t:80,s:[720]}],ix:10},p:{a:0,k:[36,39,0],ix:2,l:2},a:{a:0,k:[0,6,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[0,-2],[0,2]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector 145",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0},{ddd:0,ind:6,ty:4,nm:"Vector 146",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[36,6,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0}
77,t:17,s:[36,3.5,0],to:[0,0,0],ti:[0,0,0]},{t:34,s:[36,6,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[2,0],[-2,0]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"st",c:{a:0,k:[.341176480055,.694117665291,.46274510026,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:2,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[300,300],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Vector 146",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:300,st:0,ct:1,bm:0}],eGe=[],tGe={},sGe={v:UWe,fr:zWe,ip:WWe,op:GWe,w:YWe,h:KWe,nm:QWe,ddd:XWe,assets:ZWe,layers:JWe,markers:eGe,props:tGe},nGe={class:"scrollbar-4-grey80 flex min-h-full flex-col p-6"},rGe={key:0,class:"flex flex-col items-center pt-5"},iGe={key:1,class:"flex flex-1 flex-col items-center justify-center px-4 text-center"},oGe={class:"mt-2 text-13 text-grey-40"},aGe={key:2,class:"flex flex-col pt-2"},lGe={class:"flex flex-col items-center text-center"},cGe={class:"relative h-[160px] w-[160px]"},uGe=["src","alt"],dGe={class:"whitespace-nowrap"},fGe={class:"mt-5 text-24-bold text-black"},pGe={class:"mt-1 text-16 text-grey-40"},hGe={class:"mt-6 flex flex-col gap-2"},mGe={class:"flex min-h-[44px] items-center gap-3 rounded-[8px] bg-grey-90 p-4"},gGe={class:"ml-auto grid h-6 w-6 shrink-0 place-items-center"},yGe={class:"flex min-h-[44px] items-center justify-between gap-3 rounded-[8px] bg-grey-90 p-4"},_Ge={class:"text-16 text-black"},vGe={class:"grid min-h-[24px] min-w-[24px] place-items-center rounded-full bg-black px-2 text-16-bold text-white"},bGe=G({__name:"ExecutorInfoPanel",setup(e){const t=Xc(()=>wt(()=>import("./0V0cf9V1.js"),__vite__mapDeps([41,40]),import.meta.url).then(v=>v.Vue3Lottie)),s=st(),n=k9(),{sessionStore:r,userInfoStore:i}=Mn(),o=A(()=>{const v=s.query.premises_id;return typeof v=="string"?v:null}),l=A(()=>i.residence?.premisesId??o.value),u=A(()=>{const v=s.query.executor_id;return typeof v=="string"?v:null}),d=A(()=>n.info),f=A(()=>(d.value?.executor.averageRating??0)>0),h=A(()=>f.value?d.value.executor.averageRating.toFixed(1):"ÐÐµÑ Ð¾Ñенок"),g=A(()=>n.infoError?.message||"ÐопÑобÑйÑе обновиÑÑ Ð´Ð°Ð½Ð½Ñе позже");function m(){if(!r.isAuthorized){n.clearInfo();return}n.loadInfo(u.value,l.value)}function _(v){const k=v.target;if(!(k instanceof HTMLImageElement))return;const x="/images/avatar_placeholder.png";k.src.endsWith(x)||(k.src=x)}return je(m),Se([u,l,()=>r.isAuthorized],()=>{m()}),(v,k)=>{const x=Mg,C=jWe,w=wu;return p(),y("div",nGe,[a(n).isInfoLoading?(p(),y("div",rGe,[...k[0]||(k[0]=[ls('<div class="h-[160px] w-[160px] animate-pulse rounded-full bg-grey-90"></div><div class="mt-6 h-7 w-40 animate-pulse rounded bg-grey-80"></div><div class="mt-3 h-5 w-44 animate-pulse rounded bg-grey-90"></div><div class="mt-6 flex w-full flex-col gap-2"><div class="h-[44px] animate-pulse rounded-[8px] bg-grey-90"></div><div class="h-[44px] animate-pulse rounded-[8px] bg-grey-90"></div></div>',4)])])):a(n).infoError?(p(),y("div",iGe,[k[1]||(k[1]=c("p",{class:"text-16-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð¸ÑполниÑелÑ",-1)),c("p",oGe,b(g.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors xl:hover:bg-grey-80",onClick:m}," ÐовÑоÑиÑÑ ")])):d.value?(p(),y("section",aGe,[c("div",lGe,[c("div",cGe,[c("img",{src:d.value.executor.avatarUrl||"/images/avatar_placeholder.png",alt:d.value.executor.name,class:"h-full w-full rounded-full object-cover",draggable:"false",onError:_},null,40,uGe),c("div",{class:oe(["absolute bottom-0 left-1/2 flex min-h-[26px] -translate-x-1/2 items-center gap-1 rounded-full bg-white px-3 py-2 text-13",f.value?"text-black":"text-grey-40"])},[T(x,{class:oe(["shrink-0",{"[&>path]:fill-grey-40":!f.value}]),"aria-hidden":"true"},null,8,["class"]),c("span",dGe,b(h.value),1)],2)]),c("h1",fGe,b(d.value.executor.name),1),c("p",pGe,b(d.value.executor.profession),1)]),c("div",hGe,[c("div",mGe,[c("span",{class:oe(["text-16",d.value.executor.onShift?"text-emerald-primary":"text-black"])},b(d.value.executor.onShift?"Ðа Ñмене":"ÐÐµÑ Ð½Ð° Ñмене"),3),c("div",gGe,[T(w,null,{fallback:Xe(()=>[...k[2]||(k[2]=[c("div",{class:"h-6 w-6 shrink-0"},null,-1)])]),default:Xe(()=>[d.value.executor.onShift?(p(),K(a(t),{key:0,class:"h-6 w-6 shrink-0","animation-data":a(sGe),height:24,width:24,loop:!0,"auto-play":!0,"aria-hidden":"true"},null,8,["animation-data"])):(p(),K(C,{key:1,class:"h-6 w-6 shrink-0","aria-hidden":"true"}))]),_:1})])]),c("div",yGe,[c("span",_Ge,b(d.value.activeClaims.title),1),c("span",vGe,b(d.value.activeClaims.value),1)])])])):E("",!0)])}}}),xGe=Object.assign(bGe,{__name:"ExecutorInfoPanel"}),kGe={class:"scrollbar-4-grey80 flex min-h-full flex-col bg-white px-5 pb-6"},wGe={key:0,class:"flex flex-1 flex-col items-center pt-2"},CGe={key:1,class:"flex flex-1 flex-col items-center justify-center text-center"},$Ge={class:"text-16-bold text-black"},SGe={class:"mt-2 text-13 text-grey-40"},AGe={class:"flex flex-col items-center text-center"},IGe={class:"relative z-0 grid h-[164px] w-[164px] place-items-center"},TGe=["src"],PGe={class:"mt-6 text-24-bold text-black"},DGe={key:1,class:"mt-2 text-16 text-black"},EGe={class:"text-16-bold text-black"},LGe={class:"mt-4 flex flex-col gap-2"},RGe={class:"min-w-0"},MGe={class:"mt-6 rounded-[12px] border border-grey-80 p-5"},OGe={class:"flex items-start gap-4"},FGe={class:"min-w-0 flex-1 text-left"},NGe={class:"text-16-bold text-black"},BGe={key:0,class:"mt-1 text-13 text-grey-40"},VGe=["src"],HGe={class:"mt-4 text-13 text-black"},qGe={class:"mt-2 h-1 overflow-hidden rounded-full bg-grey-80"},jGe={key:0,class:"mt-4 flex flex-col gap-2"},UGe=["onClick"],zGe=["src"],WGe={class:"min-w-0 flex-1"},GGe={class:"block text-16 text-black"},YGe=["src"],KGe={key:1,class:"mt-6 text-left"},QGe={class:"text-13 text-grey-40"},XGe={class:"mt-3 flex flex-col gap-3"},ZGe={class:"min-w-0"},JGe=G({__name:"PremisesUserRatingPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Oe(),{openRatingStep:i}=m7(),o=X(null),l=X(null),u=X(!1);let d=0;const f=A(()=>r.residence?.premisesId??""),h=A(()=>
77o.value?.premisesAddress||r.getPremissesNameOrAddress||r.getUserResidence||""),g=A(()=>$(o.value?.imageUrl??"")),m=A(()=>$(o.value?.nextRatingIcon??"")),_=A(()=>[...o.value?.stepsForNewRating??[]].reverse()),v=A(()=>({color:o.value?.marker.textColor||"#FFFFFF",backgroundColor:o.value?.marker.backgroundColor||"#909996"})),k=A(()=>o.value?.opportunitiesBackgroundColor||"#F7FAF9"),x=A(()=>l.value?.message??"");async function C(){if(!f.value){d+=1,o.value=null,l.value={message:n("drawer.premisesUserRating.noHouseSelected")},u.value=!1;return}const I=++d,P=ue();u.value=!0,l.value=null;const L=await P.fetchPremisesUserRating(f.value);I===d&&(L.ok?(o.value=L.data,l.value=null):(o.value=null,l.value=L.error),u.value=!1)}function w(I){i(I,{go:P=>s("go",P)})}function $(I){const P=I.trim();return P?/\.(png|jpe?g|webp|gif|svg)(\?.*)?(#.*)?$/i.test(P)?P:`${P}_x3.png`:""}const S=G({props:{iconUrl:{type:String,default:""}},setup(I){return()=>{const P=$(I.iconUrl);return P?ot("img",{src:P,alt:"",class:"mt-0 h-4 w-4 shrink-0 object-contain","aria-hidden":"true",draggable:"false"}):ot("span",{class:"mt-1 grid h-4 w-4 shrink-0 place-items-center rounded-full bg-grey-40 text-[12px] leading-none text-white","aria-hidden":"true"},"+")}}});return je(()=>{C()}),Se(f,()=>{C()}),(I,P)=>{const L=Rs;return p(),y("div",kGe,[u.value?(p(),y("div",wGe,[...P[0]||(P[0]=[ls('<div class="h-[164px] w-[164px] animate-pulse rounded-[48px] bg-grey-90"></div><div class="mt-8 h-8 w-48 animate-pulse rounded bg-grey-80"></div><div class="mt-4 h-6 w-56 animate-pulse rounded bg-grey-80"></div><div class="mt-8 h-32 w-full animate-pulse rounded-[16px] bg-grey-90"></div><div class="mt-7 h-80 w-full animate-pulse rounded-[16px] bg-grey-90"></div>',5)])])):x.value?(p(),y("div",CGe,[c("p",$Ge,b(a(n)("drawer.premisesUserRating.loadErrorTitle")),1),c("p",SGe,b(x.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors xl:hover:bg-grey-80",onClick:C},b(a(n)("drawer.premisesUserRating.retry")),1)])):o.value?(p(),y(j,{key:2},[c("section",AGe,[c("div",IGe,[g.value?(p(),y("img",{key:0,src:g.value,alt:"",class:"relative z-[1] h-[200px] w-[200px] object-contain","aria-hidden":"true",draggable:"false"},null,8,TGe)):E("",!0)]),o.value.marker.text?(p(),y("span",{key:0,class:"relative z-10 -mt-0 inline-flex min-h-10 items-center rounded-full px-5 text-13-bold",style:kt(v.value)},b(o.value.marker.text),5)):E("",!0),c("h1",PGe,b(o.value.currentRatingTitle),1),h.value?(p(),y("p",DGe,b(h.value),1)):E("",!0)]),o.value.opportunities.length?(p(),y("section",{key:0,class:"mt-6 rounded-[12px] p-4",style:kt({backgroundColor:k.value})},[c("h2",EGe,b(a(n)("drawer.premisesUserRating.opportunities")),1),c("ul",LGe,[(p(!0),y(j,null,le(o.value.opportunities,D=>(p(),y("li",{key:D.title,class:"flex items-center gap-2 text-left text-13 text-black"},[T(a(S),{"icon-url":D.iconUrl},null,8,["icon-url"]),c("span",RGe,b(D.title),1)]))),128))])],4)):E("",!0),c("section",MGe,[c("div",OGe,[c("div",FGe,[c("h2",NGe,b(a(n)("drawer.premisesUserRating.tasksTitle")),1),o.value.nextRatingTitle?(p(),y("p",BGe,b(o.value.currentRatingTitle)+" -> "+b(o.value.nextRatingTitle),1)):E("",!0)]),m.value?(p(),y("img",{key:0,src:m.value,alt:"",class:"h-[44px] w-[44px] shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,VGe)):E("",!0)]),c("p",HGe,b(a(n)("drawer.premisesUserRating.completedPercent",{percent:o.value.processPercentForNewRating})),1),c("div",qGe,[c("div",{class:"h-full rounded-full bg-emerald-primary",style:kt({width:`${o.value.processPercentForNewRating}%`})},null,4)]),_.value.length?(p(),y("ul",jGe,[(p(!0),y(j,null,le(_.value,D=>(p(),y("li",{key:`${D.appStepTitle}-${D.appScreen}`},[c("button",{type:"button",class:"flex w-full items-center gap-3 rounded-[12px] bg-grey-90 p-4 text-left transition-colors xl:hover:bg-grey-80",onClick:R=>w(D)},[$(D.appStepIconUrl)?(p(),y("img",{key:0,src:$(D.appStepIconUrl),alt:"",class:"h-[44px] w-[44px] shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,zGe)):E("",!0),c("span",WGe,[c("span",GGe,b(D.appStepTitle),
771),c("span",{class:oe(["mt-1 block text-13",D.isPassed?"text-emerald-primary":"text-grey-40"])},b(D.processTitle),3)]),$(D.appStepActionIconUrl)?(p(),y("img",{key:1,src:$(D.appStepActionIconUrl),alt:"",class:"h-6 w-6 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,YGe)):(p(),K(L,{key:2,class:"h-6 w-6 shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"}))],8,UGe)]))),128))])):E("",!0),o.value.nextRatingOpportunities.length?(p(),y("div",KGe,[c("p",QGe,b(a(n)("drawer.premisesUserRating.willBeAvailable")),1),c("ul",XGe,[(p(!0),y(j,null,le(o.value.nextRatingOpportunities,D=>(p(),y("li",{key:D.title,class:"flex items-start gap-3 text-16 text-black"},[T(a(S),{"icon-url":D.iconUrl},null,8,["icon-url"]),c("span",ZGe,b(D.title),1)]))),128))])])):E("",!0)])],64)):E("",!0)])}}}),eYe=Object.assign(JGe,{__name:"PremisesUserRatingPanel"}),tYe={class:"scrollbar-4-grey80 flex min-h-full flex-col bg-white px-6 pb-6"},sYe={key:0,class:"flex flex-col gap-3"},nYe={key:1,class:"flex flex-1 flex-col items-center justify-center text-center"},rYe={class:"mt-2 text-13 text-grey-40"},iYe={key:0,class:"flex flex-col gap-2"},oYe={class:"relative z-[1] pr-[96px]"},aYe={class:"mt-5 text-24-bold text-black"},lYe={class:"mt-2 text-16 text-black"},cYe=["src"],uYe={class:"mt-5 border-t border-grey-80 pt-4"},dYe={class:"mt-1 text-13 text-black"},fYe={key:1,class:"mt-4"},pYe={class:"mt-2 flex flex-col gap-2"},hYe=["src"],mYe={class:"min-w-0"},gYe={key:1,class:"mt-7"},yYe={class:"mt-4 flex flex-col gap-2"},_Ye=["onClick"],vYe={class:"text-16 text-black"},bYe={key:0,class:"mt-4 border-t border-grey-80 pt-4"},xYe={class:"text-13 text-grey-40"},kYe=G({__name:"PremisesUserRatingInfoPanel",setup(e){const t=Oe(),s=X(null),n=X(null),r=X(!1),i=X(0);let o=0;const l=A(()=>t.residence?.premisesId??""),u=A(()=>n.value?.message??"");async function d(){if(!l.value){o+=1,s.value=null,n.value={message:"Ðе вÑбÑан дом"},r.value=!1;return}const m=++o,_=ue();r.value=!0,n.value=null;const v=await _.fetchPremisesUserRatingInfo(l.value);m===o&&(v.ok?(s.value=v.data,i.value=v.data.frequentQuestions.length>0?0:-1,n.value=null):(s.value=null,n.value=v.error),r.value=!1)}function f(m){i.value=i.value===m?-1:m}function h(m){return{color:m.marker.textColor||"#FFFFFF",backgroundColor:m.marker.backgroundColor||"#909996"}}function g(m){const _=m.trim();return _?/\.(png|jpe?g|webp|gif|svg)(\?.*)?(#.*)?$/i.test(_)?_:`${_}_x3.png`:""}return je(()=>{d()}),Se(l,()=>{d()}),(m,_)=>{const v=nC,k=rC;return p(),y("div",tYe,[r.value?(p(),y("div",sYe,[(p(),y(j,null,le(4,x=>c("div",{key:`rating-info-skeleton-${x}`,class:"h-[260px] animate-pulse rounded-[12px] bg-grey-90"})),64)),_[0]||(_[0]=c("div",{class:"mt-4 h-8 w-48 animate-pulse rounded bg-grey-80"},null,-1)),_[1]||(_[1]=c("div",{class:"h-20 animate-pulse rounded-[12px] bg-grey-90"},null,-1))])):u.value?(p(),y("div",nYe,[_[2]||(_[2]=c("p",{class:"text-16-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑÑовни ÑейÑинга",-1)),c("p",rYe,b(u.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors xl:hover:bg-grey-80",onClick:d}," ÐовÑоÑиÑÑ ")])):s.value?(p(),y(j,{key:2},[s.value.ratingList.length?(p(),y("section",iYe,[(p(!0),y(j,null,le(s.value.ratingList,x=>(p(),y("article",{key:x.title,class:"relative overflow-hidden rounded-[12px] bg-[#F7FAF9] p-4"},[c("div",oYe,[x.marker.text?(p(),y("span",{key:0,class:"inline-flex min-h-8 items-center rounded-full px-4 text-13-bold",style:kt(h(x))},b(x.marker.text),5)):E("",!0),c("h2",aYe,b(x.title),1),c("p",lYe,b(x.description),1)]),g(x.imageUrl)?(p(),y("img",{key:0,src:g(x.imageUrl),alt:"",class:"absolute right-5 top-5 h-[76px] w-[76px] object-contain","aria-hidden":"true",draggable:"false"},null,8,cYe)):E("",!0),c("div",uYe,[_[3]||(_[3]=c("p",{class:"text-11 text-grey-40"},"ÐаданиÑ",-1)),c("p",dYe,b(x.requirement),1)]),x.opportunities.length?(p(),y("div",fYe,[_[4]||(_[4]=c("p",{class:"text-11 text-grey-40"},"ÐозможноÑÑи",-1)),c("ul",pYe,[(p(!0),y(j,null,le(x.opportunities,C=>(p(),y("li",{key:C.title,class:"flex items-center gap-2 text-13 text-black"},[g(C.iconUrl)?(p(),y("img",{key:0,src:g(C.iconUrl),alt:"",class:"h-4 w-4 shrink-0 object-contain","aria-hidden":"true",draggable:"false"},null,8,hYe)):E("",!0),c("span",mYe,b(C.title),1)]))),128))])])):E("",!0)]))),128))])):E("",!0),s.value.frequentQuestions.length?(p(),y("section",gYe,[_[5]||
77(_[5]=c("h2",{class:"text-24-bold text-black"},"ЧаÑÑÑе вопÑоÑÑ",-1)),c("div",yYe,[(p(!0),y(j,null,le(s.value.frequentQuestions,(x,C)=>(p(),y("article",{key:x.title,class:"rounded-[12px] bg-[#F7FAF9] px-4 py-4"},[c("button",{type:"button",class:"flex w-full items-start justify-between gap-3 text-left",onClick:w=>f(C)},[c("span",vYe,b(x.title),1),i.value===C?(p(),K(v,{key:0,class:"mt-0.5 h-6 w-6 shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})):(p(),K(k,{key:1,class:"mt-0.5 h-6 w-6 shrink-0 [&>path]:fill-emerald-primary","aria-hidden":"true"}))],8,_Ye),i.value===C?(p(),y("div",bYe,[c("p",xYe,b(x.description),1)])):E("",!0)]))),128))])])):E("",!0)],64)):E("",!0)])}}}),wYe=Object.assign(kYe,{__name:"PremisesUserRatingInfoPanel"}),CYe="5.12.2",$Ye=60,SYe=0,AYe=175,IYe=288,TYe=288,PYe="Icon / 24px / Applications",DYe=0,EYe=[],LYe=JSON.parse('[{"ddd":0,"ind":1,"ty":4,"nm":"Right 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":13,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[-4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":63,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":88,"s":[-4]},{"i":{"x":[0.667],"y":[0.795]},"o":{"x":[0.333],"y":[0]},"t":111,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[-0.974]},"t":131,"s":[-1]},{"t":150,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0}
vendor: 29,342 bytes, line 77
77,"t":0,"s":[228,81,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":25,"s":[228,97.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":50,"s":[228,67.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":75,"s":[228,97.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":100,"s":[228,67.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":125,"s":[228,88.5,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[228,81,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,-70.5,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.828],[0.828,0],[0,0],[0,-0.828],[-0.828,0],[0,0]],"o":[[0,-0.828],[0,0],[-0.828,0],[0,0.828],[0,0],[0.828,0]],"v":[[5,13.5],[3.5,12],[-3.5,12],[-5,13.5],[-3.5,15],[3.5,15]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0.828,0],[0,-0.828],[0,0],[0,-3.628],[-0.942,-1.254],[0,0],[0.211,-0.593],[0,0],[0,0],[-0.284,-0.368],[-0.465,0],[0,0],[-0.284,0.368],[0.118,0.45],[0,0],[0.681,0],[0,0],[0,1.688],[3.423,0.695]],"o":[[0,-0.828],[-0.828,0],[0,0],[-3.423,0.695],[0,1.689],[0,0],[-0.639,0],[0,0],[0,0],[-0.118,0.45],[0.284,0.368],[0,0],[0.465,0],[0.284,-0.368],[0,0],[-0.173,-0.659],[0,0],[0.942,-1.253],[0,-3.628],[0,0]],"v":[[1.5,-22],[0,-23.5],[-1.5,-22],[-1.5,-10.351],[-7.5,-3],[-6,1.5],[-10,1.5],[-11.413,2.497],[-11.45,2.618],[-16.45,21.618],[-16.187,22.916],[-15,23.5],[15,23.5],[16.188,22.916],[16.45,21.618],[11.45,2.618],[10,1.5],[6,1.5],[7.5,-3],[1.5,-10.351]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[13.055,20.5],[-13.055,20.5],[-8.844,4.5],[8.844,4.5]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,2.485],[-2.485,0],[0,-2.485],[2.485,0]],"o":[[0,-2.485],[2.485,0],[0,2.485],[-2.485,0]],"v":[[-4.5,-3],[0,-7.5],[4.5,-3],[0,1.5]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.898039221764,0.298039227724,0.298039227724,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Right","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Left","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":13,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[-4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":63,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":88,"s":[-4]},{"i":{"x":[0.667],"y":[0.658]},"o":{"x":[0.333],"y":[0]},"t":111,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.974]},"t":131,"s":[1]},{"t":150,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":0,"s":[60,82.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":25,"s":[60,67.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":50,"s":[60,97.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":75,"s":[60,67.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":100,"s":[60,97.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":125,"s":[60,76.25,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[60,82.5,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,-66,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,2.485],[2.485,0],[0,0],[0,-0.828],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0.828],[0.828,0],[0,0],[0,0],[0,0]],"o":[[0,-2.485],[0,0],[-0.828,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0.828],[0.828,0],[0,0],[0,0],[0.828,0],[0,-0.828],[0,0],[0,0],[0,0],[2.485,0]],"v":[[5.5,-2.5],[1,-7],[-2,-7],[-3.5,-5.5],[-3.5,-1],[-4,-1],[-5.5,0.5],[-4,2],[-3.5,2],[-3.5,3],[-4,3],[-5.5,4.5],[-4,6],[-3.5,6],[-3.5,6.5],[-2,8],[-0.5,6.5],[-0.5,6],[2.5,6],[4,4.5],[2.5,3],[-0.5,3],[-0.5,2],[1,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0.828,0],[0,0],[0,0],[0,0],[0,-0.828]],"o":[[0,0],[0,0],[0,0],[0.828,0],[0,0.828]],"v":[[1,-1],[-0.5,-1],[-0.5,-4],[1,-4],[2.5,-2.5]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0.828,0],[0,-0.828],[0,0],[0,-6.949],[-3.059,-2.475],[0,0],[0.281,-0.281],[0.034,-0.343],[0,0],[0,0],[0,0],[-4.013,0],[0,0],[0,0],[-0.194,3.835],[0,0],[0,0],[0.828,0],[0,0],[0,4.241],[6.75,0.746]],"o":[[0,-0.828],[-0.828,0],[0,0],[-6.75,0.746],[0,4.241],[0,0],[-0.398,0],[-0.246,0.246],[0,0],[0,0],[0,0],[0.201,3.963],[0,0],[0,0],[3.835,-0.194],[0,0],[0,0],[0,-0.828],[0,0],[3.059,-2.475],[0,-6.949],[0,0]],"v":[[1.5,-20.5],[0,-22],[-1.5,-20.5],[-1.5,-12.917],[-13.5,0.5],[-8.484,11],[-12,11],[-13.061,11.439],[-13.492,12.352],[-13.5,12.5],[-13.5,14.5],[-13.49,14.886],[-6,22],[6,22],[6.386,21.99],[13.49,14.886],[13.5,14.5],[13.5,12.5],[12,11],[8.484,11],[13.5,0.5],[1.5,-12.917]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0.12,2.378],[0,0],[0,0],[0,0],[0,0],[2.378,-0.12],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,2.408],[0,0],[0,0],[-2.408,0]],"v":[[-10.494,14.731],[-10.5,14.5],[-10.5,14],[10.5,14],[10.5,14.5],[6.231,18.994],[6,19],[-6,19]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0,5.799],[-5.799,0],[0,-5.799],[5.799,0]],"o":[[0,-5.799],[5.799,0],[0,5.799],[-5.799,0]],"v":[[-10.5,0.5],[0,-10],[10.5,0.5],[0,11]],"c":true},"ix":2},"nm":"Path 5","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.898039221764,0.298039227724,0.298039227724,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Left","np":7,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Union 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":25,"s":[10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":50,"s":[-10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":75,"s":[10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":100,"s":[-10]},{"i":{"x":[0.502],"y":[1]},"o":{"x":[0.477],"y":[0]},"t":125,"s":[4]},{"t":150,"s":[0]}],"ix":10},"p":{"a":0,"k":[144,84.003,0],"ix":2,"l":2},"a":{"a":0,"k":[0,33.625,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,2.239],[2.761,0],[0,-2.761],[-2.028,-0.637],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[0,0.777],[0.756,0.077],[0,0],[0,0],[0,0]],"o":[[0,-2.761],[-2.761,0],[0,2.239],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0.756,-0.077],[0,-0.777],[0,0],[0,0],[0,0],[2.028,-0.637]],"v":[[5,-7.75],[0,-12.75],[-5,-7.75],[-1.5,-2.98],[-1.5,9.75],[-36,9.75],[-37.5,11.25],[-36,12.75],[36,12.75],[36.153,12.743],[37.5,11.25],[36.153,9.758],[36,9.75],[1.5,9.75],[1.5,-2.98]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.898039221764,0.298039227724,0.298039227724,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Union","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Union 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,171.75,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.476,0.379],[2.122,0],[0,0],[0.547,-0.435],[0.001,-0.608],[-1.256,-1.583],[0,0],[0,0],[0,-4.142],[0,0],[0,0],[-0.777,0],[0,0],[0,0],[0,0.777],[0,0],[4.142,0],[0,0],[0,0],[0.001,0.682]],"o":[[-0.547,-0.435],[0,0],[-2.122,0],[-0.476,0.379],[-0.001,0.682],[0,0],[0,0],[-4.142,0],[0,0],[0,0],[0.077,0.756],[0,0],[0,0],[0.756,-0.077],[0,0],[0,-4.142],[0,0],[0,0],[1.256,-1.583],[-0.001,-0.608]],"v":[[6.631,-33.814],[2.9,-34.25],[-2.9,-34.25],[-6.631,-33.814],[-7.385,-32.253],[-5.5,-29.181],[-5.5,23.25],[-10,23.25],[-17.5,30.75],[-17.5,32.75],[-17.492,32.903],[-16,34.25],[16,34.25],[16.153,34.242],[17.5,32.75],[17.5,30.75],[10,23.25],[5.5,23.25],[5.5,-29.181],[7.385,-32.253]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-2.485,0],[0,0],[0,-2.485],[0,0],[0,0]],"o":[[0,-2.485],[0,0],[2.485,0],[0,0],[0,0],[0,0]],"v":[[-14.5,30.75],[-10,26.25],[10,26.25],[14.5,30.75],[14.5,31.25],[-14.5,31.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[2.5,23.25],[-2.5,23.25],[-2.5,18.25],[2.5,18.25]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[-0.454,0.171],[-0.852,1.073],[0,0],[0,0],[0,0],[-0.517,-0.194]],"o":[[0.517,-0.194],[0,0],[0,0],[0,0],[0.852,1.073],[0.454,0.171]],"v":[[0.704,-23.595],[2.5,-25.4],[2.5,15.25],[-2.5,15.25],[-2.5,-25.4],[-0.704,-23.595]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.898039221764,0.298039227724,0.298039227724,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Union","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0}]'),RYe=[],MYe={},OYe={v:CYe,fr:$Ye,ip:SYe,op:AYe,w:IYe,h:TYe,nm:PYe,ddd:DYe,assets:EYe,layers:LYe,markers:RYe,props:MYe},FYe="5.12.2",NYe=60,BYe=0,VYe=175,HYe=288,qYe=288,jYe="Icon / 24px / Applications",UYe=0,zYe=[],WYe=JSON.parse('[{"ddd":0,"ind":1,"ty":4,"nm":"Right 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":13,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[-4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":63,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":88,"s":[-4]},{"i":{"x":[0.667],"y":[0.795]},"o":{"x":[0.333],"y":[0]},"t":111,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[-0.974]},"t":131,"s":[-1]},{"t":150,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":0,"s":[228,81,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":25,"s":[228,97.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":50,"s":[228,67.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":75,"s":[228,97.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":100,"s":[228,67.25,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.479,"y":1},"o":{"x":0.534,"y":0},"t":125,"s":[228,88.5,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[228,81,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,-70.5,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0.828],[0.828,0],[0,0],[0,-0.828],[-0.828,0],[0,0]],"o":[[0,-0.828],[0,0],[-0.828,0],[0,0.828],[0,0],[0.828,0]],"v":[[5,13.5],[3.5,12],[-3.5,12],[-5,13.5],[-3.5,15],[3.5,15]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0.828,0],[0,-0.828],[0,0],[0,-3.628],[-0.942,-1.254],[0,0],[0.211,-0.593],[0,0],[0,0],[-0.284,-0.368],[-0.465,0],[0,0],[-0.284,0.368],[0.118,0.45],[0,0],[0.681,0],[0,0],[0,1.688],[3.423,0.695]],"o":[[0,-0.828],[-0.828,0],[0,0],[-3.423,0.695],[0,1.689],[0,0],[-0.639,0],[0,0],[0,0],[-0.118,0.45],[0.284,0.368],[0,0],[0.465,0],[0.284,-0.368],[0,0],[-0.173,-0.659],[0,0],[0.942,-1.253],[0,-3.628],[0,0]],"v":[[1.5,-22],[0,-23.5],[-1.5,-22],[-1.5,-10.351],[-7.5,-3],[-6,1.5],[-10,1.5],[-11.413,2.497],[-11.45,2.618],[-16.45,21.618],[-16.187,22.916],[-15,23.5],[15,23.5],[16.188,22.916],[16.45,21.618],[11.45,2.618],[10,1.5],[6,1.5],[7.5,-3],[1.5,-10.351]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[13.055,20.5],[-13.055,20.5],[-8.844,4.5],[8.844,4.5]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,2.485],[-2.485,0],[0,-2.485],[2.485,0]],"o":[[0,-2.485],[2.485,0],[0,2.485],[-2.485,0]],"v":[[-4.5,-3],[0,-7.5],[4.5,-3],[0,1.5]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Right","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Left","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":13,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[-4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":63,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":88,"s":[-4]},{"i":{"x":[0.667],"y":[0.658]},"o":{"x":[0.333],"y":[0]},"t":111,"s":[4]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0.974]},"t":131,"s":[1]},{"t":150,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":0,"s":[60,82.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":25,"s":[60,67.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":50,"s":[60,97.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":75,"s":[60,67.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":100,"s":[60,97.5,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.5,"y":1},"o":{"x":0.543,"y":0},"t":125,"s":[60,76.25,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[60,82.5,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,-66,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,2.485],[2.485,0],[0,0],[0,-0.828],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0.828],[0.828,0],[0,0],[0,0],[0,0]],"o":[[0,-2.485],[0,0],[-0.828,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0,0.828],[0.828,0],[0,0],[0,0],[0.828,0],[0,-0.828],[0,0],[0,0],[0,0],[2.485,0]],"v":[[5.5,-2.5],[1,-7],[-2,-7],[-3.5,-5.5],[-3.5,-1],[-4,-1],[-5.5,0.5],[-4,2],[-3.5,2],[-3.5,3],[-4,3],[-5.5,4.5],[-4,6],[-3.5,6],[-3.5,6.5],[-2,8],[-0.5,6.5],[-0.5,6],[2.5,6],[4,4.5],[2.5,3],[-0.5,3],[-0.5,2],[1,2]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0.828,0],[0,0],[0,0],[0,0],[0,-0.828]],"o":[[0,0],[0,0],[0,0],[0.828,0],[0,0.828]],"v":[[1,-1],[-0.5,-1],[-0.5,-4],[1,-4],[2.5,-2.5]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0.828,0],[0,-0.828],[0,0],[0,-6.949],[-3.059,-2.475],[0,0],[0.281,-0.281],[0.034,-0.343],[0,0],[0,0],[0,0],[-4.013,0],[0,0],[0,0],[-0.194,3.835],[0,0],[0,0],[0.828,0],[0,0],[0,4.241],[6.75,0.746]],"o":[[0,-0.828],[-0.828,0],[0,0],[-6.75,0.746],[0,4.241],[0,0],[-0.398,0],[-0.246,0.246],[0,0],[0,0],[0,0],[0.201,3.963],[0,0],[0,0],[3.835,-0.194],[0,0],[0,0],[0,-0.828],[0,0],[3.059,-2.475],[0,-6.949],[0,0]],"v":[[1.5,-20.5],[0,-22],[-1.5,-20.5],[-1.5,-12.917],[-13.5,0.5],[-8.484,11],[-12,11],[-13.061,11.439],[-13.492,12.352],[-13.5,12.5],[-13.5,14.5],[-13.49,14.886],[-6,22],[6,22],[6.386,21.99],[13.49,14.886],[13.5,14.5],[13.5,12.5],[12,11],[8.484,11],[13.5,0.5],[1.5,-12.917]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0.12,2.378],[0,0],[0,0],[0,0],[0,0],[2.378,-0.12],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,2.408],[0,0],[0,0],[-2.408,0]],"v":[[-10.494,14.731],[-10.5,14.5],[-10.5,14],[10.5,14],[10.5,14.5],[6.231,18.994],[6,19],[-6,19]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0,5.799],[-5.799,0],[0,-5.799],[5.799,0]],"o":[[0,-5.799],[5.799,0],[0,5.799],[-5.799,0]],"v":[[-10.5,0.5],[0,-10],[10.5,0.5],[0,11]],"c":true},"ix":2},"nm":"Path 5","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Left","np":7,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Union 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":25,"s":[10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":50,"s":[-10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":75,"s":[10]},{"i":{"x":[0.52],"y":[1]},"o":{"x":[0.497],"y":[0]},"t":100,"s":[-10]},{"i":{"x":[0.502],"y":[1]},"o":{"x":[0.477],"y":[0]},"t":125,"s":[4]},{"t":150,"s":[0]}],"ix":10},"p":{"a":0,"k":[144,84.003,0],"ix":2,"l":2},"a":{"a":0,"k":[0,33.625,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,2.239],[2.761,0],[0,-2.761],[-2.028,-0.637],[0,0],[0,0],[0,-0.828],[-0.828,0],[0,0],[0,0],[0,0.777],[0.756,0.077],[0,0],[0,0],[0,0]],"o":[[0,-2.761],[-2.761,0],[0,2.239],[0,0],[0,0],[-0.828,0],[0,0.828],[0,0],[0,0],[0.756,-0.077],[0,-0.777],[0,0],[0,0],[0,0],[2.028,-0.637]],"v":[[5,-7.75],[0,-12.75],[-5,-7.75],[-1.5,-2.98],[-1.5,9.75],[-36,9.75],[-37.5,11.25],[-36,12.75],[36,12.75],[36.153,12.743],[37.5,11.25],[36.153,9.758],[36,9.75],[1.5,9.75],[1.5,-2.98]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Union","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Union 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[144,171.75,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.476,0.379],[2.122,0],[0,0],[0.547,-0.435],[0.001,-0.608],[-1.256,-1.583],[0,0],[0,0],[0,-4.142],[0,0],[0,0],[-0.777,0],[0,0],[0,0],[0,0.777],[0,0],[4.142,0],[0,0],[0,0],[0.001,0.682]],"o":[[-0.547,-0.435],[0,0],[-2.122,0],[-0.476,0.379],[-0.001,0.682],[0,0],[0,0],[-4.142,0],[0,0],[0,0],[0.077,0.756],[0,0],[0,0],[0.756,-0.077],[0,0],[0,-4.142],[0,0],[0,0],[1.256,-1.583],[-0.001,-0.608]],"v":[[6.631,-33.814],[2.9,-34.25],[-2.9,-34.25],[-6.631,-33.814],[-7.385,-32.253],[-5.5,-29.181],[-5.5,23.25],[-10,23.25],[-17.5,30.75],[-17.5,32.75],[-17.492,32.903],[-16,34.25],[16,34.25],[16.153,34.242],[17.5,32.75],[17.5,30.75],[10,23.25],[5.5,23.25],[5.5,-29.181],[7.385,-32.253]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-2.485,0],[0,0],[0,-2.485],[0,0],[0,0]],"o":[[0,-2.485],[0,0],[2.485,0],[0,0],[0,0],[0,0]],"v":[[-14.5,30.75],[-10,26.25],[10,26.25],[14.5,30.75],[14.5,31.25],[-14.5,31.25]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[2.5,23.25],[-2.5,23.25],[-2.5,18.25],[2.5,18.25]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[-0.454,0.171],[-0.852,1.073],[0,0],[0,0],[0,0],[-0.517,-0.194]],"o":[[0.517,-0.194],[0,0],[0,0],[0,0],[0.852,1.073],[0.454,0.171]],"v":[[0.704,-23.595],[2.5,-25.4],[2.5,15.25],[-2.5,15.25],[-2.5,-25.4],[-0.704,-23.595]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.341176470588,0.694117647059,0.462745098039,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Union","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"ct":1,"bm":0}]'),GYe=[],YYe={},KYe={v:FYe,fr:NYe,ip:BYe,op:VYe,w:HYe,h:qYe,nm:jYe,ddd:UYe,assets:zYe,layers:WYe,markers:GYe,props:YYe},QYe={class:"scrollbar-4-grey80 flex min-h-full flex-col px-6 pb-6"},XYe={key:0,class:"flex flex-col items-center pt-5"},ZYe={class:"mt-8 flex w-full flex-col gap-2"},JYe={key:1,class:"flex flex-1 flex-col items-center justify-center px-4 text-center"},eKe={class:"mt-2 text-13 text-grey-40"},tKe={class:"flex flex-col items-center px-3 pt-2 text-center"},sKe={class:"mt-3 text-title-32 text-black"},nKe={key:0,class:"mt-2 max-w-[380px] text-16 text-black"},rKe={key:0,class:"mt-6 flex flex-col gap-2"},iKe={class:"min-w-0"},oKe={class:"truncate text-13 text-grey-40"},aKe={class:"mt-1 text-16 text-black"},lKe={key:0,class:"shrink-0 rounded-[8px] bg-white px-2 py-1 text-13 text-black"},cKe=G({__name:"HouseDebtorsPanel",setup(e){const t=Xc(()=>wt(()=>import("./0V0cf9V1.js"),__vite__mapDeps([41,40]),import.meta.url).then(d=>d.Vue3Lottie)),s=Oe(),n=b9(),r=A(()=>s.residence?.premisesId??null),i=A(()=>n.screen),o=A(()=>i.value?.isDebtExist?OYe:KYe),l=A(()=>n.error?.message||"ÐопÑобÑйÑе обновиÑÑ Ð´Ð°Ð½Ð½Ñе позже");function u(){n.loadScreen(r.value)}return je(u),Se(r,()=>{u()}),(d,f)=>{const h=wu;return p(),y("div",QYe,[a(n).isLoading?(p(),y("div",XYe,[f[0]||(f[0]=c("div",{class:"h-20 w-20 animate-pulse rounded-[24px] bg-grey-90"},null,-1)),f[1]||(f[1]=c("div",{class:"mt-5 h-8 w-56 max-w-full animate-pulse rounded bg-grey-80"},null,-1)),f[2]||(f[2]=c("div",{class:"mt-3 h-5 w-72 max-w-full animate-pulse rounded bg-grey-90"},null,-1)),c("div",ZYe,[(p(),y(j,null,le(8,g=>c("div",{key:`house-debtors-skeleton-${g}`,class:"h-[66px] animate-pulse rounded-[12px] bg-grey-90"})),64))])])):a(n).error?(p(),y("div",JYe,[f[3]||(f[3]=c("p",{class:"text-16-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð¾Ð»Ð¶Ð½Ð¸ÐºÐ¾Ð²",-1)),c("p",eKe,b(l.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:u}," ÐовÑоÑиÑÑ ")])):i.value?(p(),y(j,{key:2},[c("section",tKe,[T(h,null,{fallback:Xe(()=>[...f[4]||(f[4]=[c("div",{class:"h-24 w-24 shrink-0"},null,-1)])]),default:Xe(()=>[T(a(t),{class:"h-24 w-24 shrink-0","animation-data":o.value,height:96,width:96,loop:!0,"auto-play":!0,"aria-hidden":"true"},null,8,["animation-data"])]),_:1}),c("h1",sKe,b(i.value.debtTitle||"0 â½"),1),i.value.debtDescription?(p(),y("p",nKe,b(i.value.debtDescription),1)):E("",!0)]),i.value.debtors.length?(p(),y("section",rKe,[(p(!0),y(j,null,le(i.value.debtors,g=>(p(),y("article",{key:`${g.title}-${g.debtTitle}-${g.info}`,class:"flex min-h-[66px] items-center justify-between gap-3 rounded-[12px] bg-grey-90 px-3 py-3"},[c("div",iKe,[c("p",oKe,b(g.title),1),c("p",aKe,b(g.debtTitle),1)]),g.info?(p(),y("span",lKe,b(g.info),1)):E("",!0)]))),128))])):E("",!0)],64)):E("",!0)])}}}),uKe=Object.assign(cKe,{__name:"HouseDebtorsPanel"}),dKe={key:1,class:"mt-5 inline-flex max-w-full rounded-[8px] border border-grey-80 px-3 py-1 text-11 text-grey-40"},fKe={class:"truncate"},pKe={key:2,class:"mt-5"},hKe={class:"flex items-center justify-start gap-2"},mKe=["aria-disabled","aria-label","onClick"],gKe={key:0,class:"mt-4 inline-flex rounded-full bg-grey-90 px-4 py-2 text-13 text-black"},yKe={key:3,class:"mt-5 grid grid-cols-2 gap-2"},_Ke=["aria-disabled","onClick"],vKe={class:"min-w-0 truncate"},bKe={key:4,class:"mt-5 flex flex-col gap-2"},xKe=["aria-disabled","onClick"],kKe={class:"min-w-0 truncate"},wKe=G({__name:"PollCard",props:{poll:{},votingVoiceKey:{default:""},readonly:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},clampText:{type:Boolean,default:!0}},emits:["vote","open"],setup(e,{emit:t}){const s=e,n=t,r=A(()=>s.poll.votingType==="grade"),i=A(()=>s.poll.votingType==="boolean"),o=A(()=>s.poll.votingType==="custom"),l=A(()=>s.clampText?"line-clamp-2":""),u=A(()=>{const J=w(s.poll);return J?Date.now()>J.getTime():!1}),d=A(()=>s.readonly||!!s.votingVoiceKey||s.poll.isIVoted||u.value),f=A(()=>u.value?"text-emerald-primary":"text-purple-50"),h=A(()=>{const J=w(s.poll);if(!J)return"ÐкÑивен";if(u.value)return`ÐавеÑÑен ${$(J,!0)}`;const he=S(J);return`ÐкÑивен до ${$(J,!1)}${he?` · ${he}`:""}`}),g=A(()=>i.value?[...s.poll.voiceValues].sort((J,he)=>{const Ee=J.value===!0?0:1,He=he.value===!0?0:1;return Ee-He}):s.poll.voiceValues),m=A(()=>fe()),_=A(()=>{const J=ye(),he=J?.value??null;if(he==null)return"ÐÐµÑ Ð¾Ñенок";const Ee=`СÑеднÑÑ Ð¾Ñенка â ${ne(he)}`,He=J?.voicesCount??0;return He<=0?Ee:`${Ee} · ${ne(He)} ${ve(He)}`}),v=A(()=>s.poll.isIVoted||u.value);function k(){s.clickable&&n("open",s.poll)}function x(J){d.value||n("vote",s.poll,J)}function C(J,he){return`${J}:${he}`}function w(J){if(!J.votingFinishedAt)return null;const he=H0(J.votingFinishedAt);return Number.isNaN(he.getTime())?null:he}function $(J,he){return new Intl.DateTimeFormat("ru-RU",{day:he?"2-digit":"numeric",month:"long",year:he?"numeric":void 0}).formatToParts(J).filter(He=>He.type!=="literal"||He.value.trim()).map(He=>
77He.value.trim()).filter(Boolean).join(" ")}function S(J){const he=Math.floor((J.getTime()-Date.now())/1e3);if(he<=0)return"";const Ee=Math.floor(he/86400),He=Math.floor(he/3600)%24,de=Math.floor(he/60)%60,Me=he%60;if(Ee>0)return`${Ee} д ${He} Ñ`;const De=String(Me).padStart(2,"0");return he>=3600?`${He}:${String(de).padStart(2,"0")}:${De}`:he>=60?`${de}:${De}`:De}function I(J){return J===!0?"Ðа ð":J===!1?"ÐÑоÑив ð":L(J)}function P(J){const he=I(J.value);return v.value?`${he} â ${V(J.id)}`:he}function L(J){return J===null?"":typeof J=="boolean"?J?"Ðа":"ÐÑоÑив":String(J)}function D(J){return s.poll.myVoice===J}function R(J){return s.votingVoiceKey===C(s.poll.surveyId,J)}function F(J){return D(J)?N(J)?"cursor-default bg-red-50 text-white":"cursor-default bg-emerald-primary text-white":d.value?R(J)?"cursor-default bg-grey-80 text-black":"cursor-default bg-grey-90 text-black":"bg-grey-90 text-black auth:hover:bg-grey-80"}function N(J){const he=s.poll.voiceValues.find(Ee=>Ee.id===J);return i.value&&he?.value===!1}function z(J){return d.value?R(J)?"cursor-default bg-grey-90":"cursor-default":"auth:hover:bg-grey-90"}function me(J){const he=te();return he==null?!1:ge(J)<=he}function ge(J){return typeof J.value=="number"?J.value:0}function fe(){return Array.from({length:5},(J,he)=>{const Ee=he+1;return{id:s.poll.voiceValues.find(de=>ge(de)===Ee)?.id??Ee,value:Ee}})}function te(){const J=s.poll.voiceValues.find(he=>he.id===s.poll.myVoice);return typeof J?.value=="number"?J.value:typeof s.poll.myVoice=="number"&&s.poll.myVoice>=1&&s.poll.myVoice<=5?s.poll.myVoice:null}function V(J){const Ee=pe().find(He=>He.id===J)?.count??0;return`${ne(Ee)}`}function pe(){return Array.isArray(s.poll.votingResult)?s.poll.votingResult:[]}function ye(){return!s.poll.votingResult||Array.isArray(s.poll.votingResult)?null:s.poll.votingResult}function ne(J){return new Intl.NumberFormat("ru-RU",{maximumFractionDigits:1}).format(J)}function ve(J){return hu(J,{one:"голоÑ",few:"голоÑа",many:"голоÑов"})}return(J,he)=>{const Ee=vf,He=bf;return p(),y("article",{class:oe(["rounded-[24px] bg-white p-4 sm:p-5",e.clickable?"cursor-pointer transition-shadow auth:hover:shadow-[0_8px_24px_rgba(33,41,38,0.08)]":""]),onClick:k},[c("p",{class:oe(["text-13",a(f)])},b(a(h)),3),c("h2",{class:oe(["mt-3 text-16-bold text-black",a(l)])},b(e.poll.title),3),e.poll.question?(p(),y("p",{key:0,class:oe(["mt-1 text-13 text-black",a(l)])},b(e.poll.question),3)):E("",!0),e.poll.initiatorMarker?(p(),y("span",dKe,[c("span",fKe,b(e.poll.initiatorMarker),1)])):E("",!0),a(r)?(p(),y("div",pKe,[c("div",hKe,[(p(!0),y(j,null,le(a(m),de=>(p(),y("button",{key:de.id,type:"button",class:oe(["rounded-[8px] p-1 transition-colors",z(de.id)]),"aria-disabled":a(d)||void 0,"aria-label":`ÐÑениÑÑ Ð½Ð° ${L(de.value)}`,onClick:St(Me=>x(de.id),["stop","prevent"])},[me(de)?(p(),K(Ee,{key:0,class:"shrink-0","aria-hidden":"true"})):(p(),K(He,{key:1,class:"shrink-0","aria-hidden":"true"}))],10,mKe))),128))]),a(v)?(p(),y("div",gKe,b(a(_)),1)):E("",!0)])):E("",!0),a(i)?(p(),y("div",yKe,[(p(!0),y(j,null,le(a(g),de=>(p(),y("button",{key:de.id,type:"button",class:oe(["flex min-h-12 items-center justify-center rounded-[12px] px-4 py-3 text-center text-13 transition-colors",F(de.id)]),"aria-disabled":a(d)||void 0,onClick:St(Me=>x(de.id),["stop","prevent"])},[c("span",vKe,b(P(de)),1)],10,_Ke))),128))])):a(o)?(p(),y("div",bKe,[(p(!0),y(j,null,le(e.poll.voiceValues,de=>(p(),y("button",{key:de.id,type:"button",class:oe(["flex min-h-12 items-center justify-between gap-3 rounded-[12px] px-4 py-3 text-left text-13 transition-colors",F(de.id)]),"aria-disabled":a(d)||void 0,onClick:St(Me=>x(de.id),["stop","prevent"])},[c("span",kKe,b(L(de.value)),1),a(v)?(p(),y("span",{key:0,class:oe(["shrink-0",D(de.id)?"text-white":"text-black"])},b(V(de.id)),3)):E("",!0)],10,xKe))),128))])):E("",!0)],2)}}}),CKe=Object.assign(wKe,{__name:"PollCard"}),$Ke={class:"scrollbar-4-grey80 flex min-h-full flex-col gap-3 bg-grey-90 px-3 pb-6"},SKe={key:1,class:"flex flex-1 flex-col items-center justify-center rounded-[24px] bg-white px-6 py-10 text-center"},AKe={class:"mt-2 text-13 text-grey-40"},IKe={class:"rounded-[24px] bg-white p-5"},TKe={class:"mt-5 flex flex-col gap-3"},PKe={key:0,class:"flex items-center gap-3 text-16 text-black"},DKe={key:1,class:"flex items-center gap-3 text-16 text-black"},EKe={key:0,class:"rounded-[24px] bg-white p-5"},LKe={class:"mt-5 flex flex-col gap-3"}
77,RKe=["href"],MKe={class:"min-w-0 truncate"},OKe=G({__name:"PollDetailPanel",setup(e){const t=st(),s=Ul(),n=Oe(),{$showSnackbar:r}=Te(),i=A(()=>n.residence?.premisesId??null),o=A(()=>String(t.query.survey_id??"")),l=X(""),u=A(()=>s.details?.survey??null),d=A(()=>u.value?u.value.isIVoted||v(u.value):!0),f=A(()=>{const w=u.value?.createdAt||"",$=w?new Date(w):null;return!$||Number.isNaN($.getTime())?"":`Создан ${C($)}`}),h=A(()=>u.value?u.value.isICanManage?"ÐÑ Ð¸Ð½Ð¸ÑиаÑоÑ":u.value.initiatorMarker:"");function g(){s.loadDetails(i.value,o.value)}async function m(w,$){if(w.isIVoted||v(w))return;const S=k(w.surveyId,$);if(l.value)return;l.value=S;const I=await s.vote(i.value,w.surveyId,$);l.value="",I?.ok||r(I?.error.message??"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð³Ð¾Ð»Ð¾Ñ")}function _(w){return w.startsWith("image/")}function v(w){const $=x(w);return $?Date.now()>$.getTime():!1}function k(w,$){return`${w}:${$}`}function x(w){if(!w.votingFinishedAt)return null;const $=H0(w.votingFinishedAt);return Number.isNaN($.getTime())?null:$}function C(w){return new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",year:"numeric"}).formatToParts(w).filter(S=>S.type!=="literal"||S.value.trim()).map(S=>S.value.trim()).filter(Boolean).join(" ")}return je(g),Se([i,o],()=>{g()}),(w,$)=>{const S=CKe,I=si,P=z0,L=ni,D=ha;return p(),y("div",$Ke,[a(s).isDetailsLoading?(p(),y(j,{key:0},[$[0]||($[0]=ls('<section class="rounded-[24px] bg-white p-5"><div class="h-4 w-36 animate-pulse rounded-full bg-grey-90"></div><div class="mt-4 h-6 w-4/5 animate-pulse rounded-full bg-grey-90"></div><div class="mt-3 h-4 w-full animate-pulse rounded-full bg-grey-90"></div><div class="mt-2 h-4 w-3/4 animate-pulse rounded-full bg-grey-90"></div><div class="mt-5 grid grid-cols-2 gap-2"><div class="h-12 animate-pulse rounded-[12px] bg-grey-90"></div><div class="h-12 animate-pulse rounded-[12px] bg-grey-90"></div></div></section><section class="rounded-[24px] bg-white p-5"><div class="h-6 w-28 animate-pulse rounded-full bg-grey-90"></div><div class="mt-5 h-5 w-48 animate-pulse rounded-full bg-grey-90"></div><div class="mt-4 h-5 w-40 animate-pulse rounded-full bg-grey-90"></div></section>',2))],64)):a(s).detailsError?(p(),y("section",SKe,[$[1]||($[1]=c("p",{class:"text-16-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð¾Ð¿ÑоÑ",-1)),c("p",AKe,b(a(s).detailsError.message||"ÐопÑобÑйÑе обновиÑÑ Ð´Ð°Ð½Ð½Ñе позже"),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:g}," ÐовÑоÑиÑÑ ")])):a(u)?(p(),y(j,{key:2},[T(S,{poll:a(u),readonly:a(d),"voting-voice-key":a(l),"clamp-text":!1,onVote:m},null,8,["poll","readonly","voting-voice-key"]),c("section",IKe,[$[2]||($[2]=c("h2",{class:"text-24-bold text-black"},"ÐеÑали",-1)),c("div",TKe,[a(f)?(p(),y("div",PKe,[T(I,{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),c("span",null,b(a(f)),1)])):E("",!0),a(h)?(p(),y("div",DKe,[T(P,{class:"h-6 w-6 shrink-0","aria-hidden":"true"}),c("span",null,b(a(h)),1)])):E("",!0)])]),a(u).attachments.length?(p(),y("section",EKe,[$[3]||($[3]=c("h2",{class:"text-24-bold text-black"},"ÐложениÑ",-1)),c("div",LKe,[(p(!0),y(j,null,le(a(u).attachments,R=>(p(),y("a",{key:R.id,href:R.url,target:"_blank",rel:"noopener noreferrer",class:"flex min-h-[56px] items-center gap-3 rounded-[12px] bg-grey-90 px-4 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80"},[_(R.mimeType)?(p(),K(L,{key:0,src:R.url,"mime-type":R.mimeType,alt:"",class:"h-6 w-6 shrink-0 rounded-full object-cover","aria-hidden":"true",draggable:"false"},null,8,["src","mime-type"])):(p(),K(D,{key:1,class:"h-6 w-6 shrink-0","aria-hidden":"true"})),c("span",MKe,b(R.originalName),1)],8,RKe))),128))])])):E("",!0)],64)):E("",!0)])}}}),FKe=Object.assign(OKe,{__name:"PollDetailPanel"}),NKe={class:"flex h-full flex-col bg-white"},BKe={class:"flex flex-1 flex-col items-center justify-center px-6 pb-20 text-center"},VKe=G({__name:"PollDeletePanel",emits:["go"],setup(e,{emit:t}){const s=st(),n=Ul(),r=Oe(),{$showSnackbar:i}=Te(),o=t,l=A(()=>r.residence?.premisesId??null),u=A(()=>String(s.query.survey_id??""));async function d(){const h=await n.deletePoll(l.value,u.value);if(h?.ok){o("go",{to:"",replace:!0});return}i(h?.error.message??"Ðе ÑдалоÑÑ ÑдалиÑÑ Ð¾Ð¿ÑоÑ")}function f(){o("go","back")}return(h,g)=>{const m=ya,_=Ae("PrimaryButton");return p(),y("div",NKe,[c("div",BKe,[T(m,{class:"h-24 w-24","aria-hidden":"true"}),g[0]||(g[0]=c("h1",{class:"mt-8 text-24-bold text-black"},"ХоÑиÑе ÑдалиÑÑ Ð¾Ð¿ÑоÑ?",-1)),T(_,{class:"mt-6 w-full",label:"УдалиÑÑ",loading:a(n).isDeleting,onClick:d},null,8,["loading"]),T(_,{class:"mt-4 w-full",variant:"secondary",label:"ÐÑмена",onClick:f})])])}}}),HKe=Object.assign(VKe,{__name:"PollDeletePanel"}),qKe={class:"scrollbar-4-grey80 flex min-h-full flex-col px-6 pb-6"},jKe={key:1,class:"flex flex-1 flex-col items-center justify-center px-4 text-center"},UKe={key:2,class:"flex flex-1 flex-col items-center justify-center rounded-[12px] bg-grey-90 p-6 text-center"},zKe={class:"text-16-bold text-black"},WKe={class:"mt-4 flex flex-col gap-3"},GKe={class:"shrink-0 text-black"},YKe={class:"flex min-w-0 flex-1 items-baseline gap-2 text-right text-grey-40"},KKe={class:"shrink-0"},QKe=G({__name:"WorkingRegimePanel",setup(e){const t=Ne(),s=Oe(),n=x9(),{$showSnackbar:r}=Te(),i=A(()=>s.residence?.premisesId??null),o=A(()=>n.screen?.schedule??[]),l=A(()=>t.isAuthorized&&!n.screen&&!n.error&&(s.isLoading||n.isLoading||!!i.value));async function u(){if(!t.isAuthorized){n.clear();return}const d=await n.loadSchedule(i.value);
77d&&!d.ok&&r(d.error.message??"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð³ÑаÑик")}return je(()=>{u()}),Se([()=>t.isAuthorized,i],()=>{u()}),(d,f)=>(p(),y("div",qKe,[l.value?(p(),y(j,{key:0},le(2,h=>c("section",{key:`working-regime-skeleton-${h}`,class:"mb-2 rounded-[8px] bg-grey-90 px-4 py-5"},[...f[0]||(f[0]=[ls('<div class="h-5 w-24 rounded-full bg-grey-80"></div><div class="mt-4 space-y-3"><div class="h-4 rounded-full bg-grey-80"></div><div class="h-4 rounded-full bg-grey-80"></div><div class="h-4 rounded-full bg-grey-80"></div></div>',2)])])),64)):a(n).error?(p(),y("section",jKe,[f[1]||(f[1]=c("p",{class:"text-16-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð³ÑаÑик",-1)),f[2]||(f[2]=c("p",{class:"mt-2 text-13 text-grey-40"}," ÐопÑобÑйÑе обновиÑÑ Ð´Ð°Ð½Ð½Ñе позже ",-1)),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:u}," ÐовÑоÑиÑÑ ")])):o.value.length===0?(p(),y("div",UKe,[...f[3]||(f[3]=[c("p",{class:"text-16 text-grey-40"}," ÐдеÑÑ Ð¿Ð¾ÑвиÑÑÑ Ð²ÑÐµÐ¼Ñ ÑабоÑÑ ÑпÑавлÑÑÑей компании ",-1)])])):(p(),y(j,{key:3},[f[5]||(f[5]=c("p",{class:"text-24-bold text-black mb-6"},"ÐÑÐµÐ¼Ñ ÑабоÑÑ Ð£Ð",-1)),(p(!0),y(j,null,le(o.value,h=>(p(),y("section",{key:h.title,class:"mb-2 rounded-[8px] bg-grey-90 px-4 py-5"},[c("h2",zKe,b(h.title),1),c("dl",WKe,[(p(!0),y(j,null,le(h.times,g=>(p(),y("div",{key:`${h.title}-${g.title}-${g.description}`,class:"flex items-baseline gap-2 text-13"},[c("dt",GKe,b(g.title),1),c("dd",YKe,[f[4]||(f[4]=c("span",{class:"h-px min-w-0 flex-1 border-b border-dotted border-grey-80"},null,-1)),c("span",KKe,b(g.description),1)])]))),128))])]))),128))],64))]))}}),XKe=Object.assign(QKe,{__name:"WorkingRegimePanel"}),ZKe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function JKe(e,t){return p(),y("svg",ZKe,[...t[0]||(t[0]=[c("path",{fill:"#909996",d:"M2 16.2V15a1 1 0 1 1 2 0v1.2c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C6.361 20 6.942 20 7.8 20h8.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.031.038-1.888V15a1 1 0 1 1 2 0v1.2c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.749c-.485.247-1.002.345-1.564.391-.55.045-1.228.044-2.052.044H7.8c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C1.999 17.702 2 17.024 2 16.2M11 3a1 1 0 1 1 2 0v9.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L11 12.586z"},null,-1)])])}const eQe={render:JKe},tQe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function sQe(e,t){return p(),y("svg",tQe,[...t[0]||(t[0]=[c("path",{fill:"#fff","fill-rule":"evenodd",d:"M5.085 2.317a2.94 2.94 0 0 1 2.65 0c.34.172.645.444.97.763l.52.521c.303.302.568.56.75.84a2.94 2.94 0 0 1 0 3.2c-.182.28-.447.537-.75.839l-.068.068-.025.025.008.015.035.074a13.1 13.1 0 0 0 2.56 3.604 13.1 13.1 0 0 0 3.604 2.56l.073.035.015.007.025-.025.069-.068c.301-.302.56-.567.84-.75a2.94 2.94 0 0 1 3.199 0c.28.183.537.448.84.75l.188.188c.458.459.866.849 1.096 1.303a2.94 2.94 0 0 1 0 2.65c-.23.454-.638.845-1.096 1.303l-.152.153c-.482.481-.841.851-1.334 1.128a4.26 4.26 0 0 1-1.923.5c-.558-.001-.961-.121-1.49-.271a19.4 19.4 0 0 1-8.448-4.97 19.4 19.4 0 0 1-4.97-8.448c-.15-.528-.27-.931-.271-1.49A4.26 4.26 0 0 1 2.5 4.9c.277-.493.647-.852 1.129-1.334l.485-.485c.325-.32.63-.59.971-.763M6.831 4.1a.94.94 0 0 0-.844 0c-.097.05-.222.156-.792.726l-.152.152c-.542.542-.685.697-.799.9A2.3 2.3 0 0 0 4 6.815c0 .24.035.386.195.95a17.4 17.4 0 0 0 4.46 7.58 17.4 17.4 0 0 0 7.58 4.46c.564.16.709.194.95.194.27.001.701-.111.937-.244.203-.114.357-.256.9-.799l.152-.152c.569-.569.676-.694.725-.792a.94.94 0 0 0 0-.844c-.049-.097-.156-.222-.725-.791l-.189-.189c-.373-.374-.455-.447-.515-.486a.94.94 0 0 0-1.02 0c-.06.039-.142.113-.514.486-.09.09-.21.214-.356.318-.48.343-1.13.454-1.696.29-.17-.05-.309-.12-.41-.169a15.1 15.1 0 0 1-4.154-2.948 15.1 15.1 0 0 1-2.948-4.153c-.049-.102-.118-.24-.168-.41a2.01 2.01 0 0 1 .29-1.697c.104-.146.228-.266.318-.355.372-.373.447-.455.486-.515a.94.94 0 0 0 0-1.02c-.04-.06-.112-.14-.486-.515l-.189-.188c-.57-.57-.695-.677-.792-.726","clip-rule":"evenodd"},null,-1)])])}const nQe={render:sQe},rQe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function iQe(e,t){return p(),y("svg",rQe,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M3.465 1.692a1.79 1.79 0 0 1 1.616 0c.273.138.511.385.826.7l.125.126c.207.208.368.364.478.533a1.79 1.79 0 0 1 0 1.95c-.11.17-.27.327-.478.534l-.075.076-.013.015a.18.18 0 0 0-.021.125q-.002 0 .006.015c.007.016.016.037.037.08a8.9 8.9 0 0 0 1.74 2.449 8.9 8.9 0 0 0 2.527 1.776l.016.006a.18.18 0 0 0 .125-.022q.002 0 .015-.012l.076-.075c.207-.208.365-.369.533-.478a1.79 1.79 0 0 1 1.951 0c.168.11.325.27.533.478l.125.124c.315.315.562.553.7.827a1.79
771.79 0 0 1 0 1.616c-.138.273-.385.511-.7.826l-.101.102c-.326.326-.549.553-.854.724a2.7 2.7 0 0 1-1.199.313c-.346-.001-.593-.074-.948-.175a12.8 12.8 0 0 1-5.56-3.27 12.8 12.8 0 0 1-3.27-5.56c-.101-.355-.174-.603-.175-.948a2.7 2.7 0 0 1 .313-1.2c.17-.304.398-.527.724-.853l.102-.102c.315-.315.553-.562.826-.7m1.165.893a.8.8 0 0 0-.714 0c-.095.048-.2.144-.57.514l-.102.102c-.356.357-.47.476-.56.636a1.7 1.7 0 0 0-.184.707c0 .187.03.305.137.677a11.8 11.8 0 0 0 3.015 5.126 11.8 11.8 0 0 0 5.126 3.016c.373.106.491.136.678.137.21 0 .525-.081.707-.184.16-.09.28-.204.636-.56l.101-.102c.37-.37.467-.476.515-.57a.8.8 0 0 0 0-.714c-.048-.095-.145-.2-.515-.57l-.126-.125c-.243-.244-.311-.31-.37-.347a.79.79 0 0 0-.861 0c-.058.038-.128.103-.371.347-.063.063-.132.134-.216.194-.278.199-.66.264-.987.168-.098-.029-.177-.068-.248-.102a9.9 9.9 0 0 1-2.723-1.933 9.9 9.9 0 0 1-1.934-2.723c-.034-.07-.073-.15-.101-.248-.096-.328-.031-.71.168-.987.06-.084.131-.153.194-.216.244-.244.309-.313.347-.371a.79.79 0 0 0 0-.862c-.038-.058-.104-.127-.347-.37L5.2 3.1c-.37-.37-.475-.466-.57-.514","clip-rule":"evenodd"},null,-1)])])}const oQe={render:iQe},aQe=""+new URL("mail_large.B8Za3ugi.png",import.meta.url).href,lQe=Ke("managementCompanyInfo",{state:()=>({screen:null,error:null,isLoading:!1,requestId:0}),actions:{async loadInfo(e){const t=Ne();if(!t.isAuthorized)return this.clear(),null;const s=++this.requestId,n=t.sessionToken,r=ue();this.isLoading=!0,this.screen=null,this.error=null;const i=await r.fetchManagementCompanyInfo(e);return s!==this.requestId||!t.isAuthorized||t.sessionToken!==n?null:(i.ok?(this.screen=i.data,this.error=null):(this.screen=null,this.error=i.error),this.isLoading=!1,i)},clear(){this.requestId+=1,this.screen=null,this.error=null,this.isLoading=!1}}}),cQe=["p","div","span","body","h1","h2","h3","h4","h5","h6","b","strong","br","i","em","u","strike","del","s","a","ol","ul","li"],uQe=new Set(["font-weight","color","background-color","font-style","font-family","font-size","text-decoration","line-height"]),dQe=/^(https?:|mailto:|tel:)/i;let Bb=null;function ym(e,t={}){Bb??=M9(window);const s=Bb.sanitize(e,{ALLOWED_TAGS:cQe,ALLOWED_ATTR:["href","style"],ALLOWED_URI_REGEXP:dQe});return fQe(s,t)}function fQe(e,t){const s=document.createElement("template");return s.innerHTML=e,t.linkPlainContacts&&gQe(s.content),s.content.querySelectorAll("[style]").forEach(n=>{const r=xQe(n.getAttribute("style")??"");if(r){n.setAttribute("style",r);return}n.removeAttribute("style")}),s.content.querySelectorAll("a").forEach(n=>{const r=pQe(n.getAttribute("href")??"");if(!r){n.removeAttribute("href"),n.removeAttribute("target"),n.removeAttribute("rel"),n.removeAttribute("data-news-body-link");return}if(n.setAttribute("href",r),bQe(r)){n.removeAttribute("target"),n.removeAttribute("rel"),n.setAttribute("data-news-body-link","contact");return}if(d0(r)){n.removeAttribute("target"),n.removeAttribute("rel"),n.setAttribute("data-news-body-link","share");return}n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("data-news-body-link","external")}),s.innerHTML}function pQe(e){const t=e.trim();if(!t)return"";if(hQe(t)||mQe(t))return t;try{const s=new URL(t);return["http:","https:"].includes(s.protocol)?s.href:""}catch{return""}}function hQe(e){return/^mailto:[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/iu.test(e)}function mQe(e){return/^tel:(\/\/)?\+?[0-9()\-\s\u00a0]+$/iu.test(e)}function gQe(e){const t=[];cC(e,t),t.forEach(yQe)}function cC(e,t){if(e.nodeType===Node.TEXT_NODE){const s=e;s.parentElement?.closest("a")||t.push(s);return}e.childNodes.forEach(s=>cC(s,t))}function yQe(e){const t=e.nodeValue??"",s=_Qe(t);if(s.length===0)return;const n=document.createDocumentFragment();let r=0;s.forEach(i=>{i.index>r&&n.append(document.createTextNode(t.slice(r,i.index)));const o=document.createElement("a");o.href=i.href,o.textContent=i.text,n.append(o),r=i.index+i.text.length}),r<t.length&&n.append(document.createTextNode(t.slice(r))),e.replaceWith(n)}function _Qe(e){const t=[],s=/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/gi,n=/\+\d[\d\s()\-ââ\u00a0]{8,}\d/g;for(const r of e.matchAll(s)){const i=r[0];t.push({index:r.index??0,text:i,href:`mailto:${i}`})}for(const r of e.matchAll(n)){const i=r[0],o=vQe(i);o&&t.push({index:r.index??0,text:i,href:`tel://${o}`})}return t.sort((r,i)=>r.index-i.index).filter((r,i,o)=>{const l=o[i-1];return!l||l.index+l.text.length<=r.index})}function vQe(e){const t=e.trim().startsWith("+"),s=e.replace(/\D/g,""),n=/[+()\-\s\u00a0ââ]/u.test(e);return!t||s.length<10||!n?"":`+${s}`}function bQe(e){return/^(mailto:|tel:)/i.test(e)}function xQe(e){return e.split(";").map(s=>
77s.trim()).filter(Boolean).map(s=>{const n=s.indexOf(":");if(n<0)return"";const r=s.slice(0,n).trim().toLowerCase(),i=s.slice(n+1).trim();return!uQe.has(r)||!kQe(i)?"":`${r}: ${i}`}).filter(Boolean).join("; ")}function kQe(e){return!/url\s*\(|expression\s*\(|@import|javascript:/iu.test(e)}const wQe={class:"min-h-full bg-grey-90 pb-2"},CQe={key:0,class:"flex flex-col gap-2"},$Qe={key:1,class:"mx-2 flex min-h-[320px] flex-col items-center justify-center rounded-[24px] bg-white p-8 text-center"},SQe={class:"text-24-bold text-black"},AQe={class:"mt-2 text-16 text-grey-40"},IQe={key:2,class:"mx-2 flex min-h-[320px] flex-col items-center justify-center rounded-[24px] bg-white p-8 text-center"},TQe={class:"text-24-bold text-black"},PQe={class:"mt-2 text-16 text-grey-40"},DQe={key:3,class:"flex flex-col gap-2"},EQe={key:0,class:"rounded-[24px] bg-white p-6"},LQe={key:0,class:"text-13 text-grey-40"},RQe={key:1,class:"mt-2 text-24-bold text-black"},MQe={key:0},OQe={class:"text-13 text-grey-40"},FQe={class:"mt-1 text-16 text-black"},NQe=["textContent"],BQe={key:1,class:"rounded-[24px] bg-white p-6"},VQe={class:"text-13 text-grey-40"},HQe={class:"mt-2 text-16 text-black"},qQe={key:2,class:"rounded-[24px] bg-white p-6"},jQe={class:"text-13 text-grey-40"},UQe=["innerHTML"],zQe={key:1,class:"mt-4 flex flex-col gap-4 roun
77ded-[12px] border border-grey-80 p-4"},WQe={class:"flex flex-col gap-2"},GQe={key:0,class:"shrink-0 text-black"},YQe={class:"flex min-w-0 flex-1 items-baseline gap-2 text-right text-black"},KQe={key:0,class:"shrink-0"},QQe={key:3,class:"rounded-[24px] bg-white p-6"},XQe={class:"flex items-center gap-4"},ZQe=["src","alt"],JQe={class:"min-w-0"},eXe={class:"text-16 text-black"},tXe={class:"mt-1 text-13 text-grey-40"},sXe={key:4,class:"rounded-[24px] bg-white p-6"},nXe={class:"flex items-center gap-4 rounded-[12px] bg-grey-90 p-4"},rXe=["href"],iXe={class:"min-w-0 flex-1"},oXe={class:"block truncate text-16 text-black"},aXe={class:"mt-1 block text-13 text-grey-40"},lXe=["aria-label"],cXe={key:5,class:"rounded-[24px] bg-white p-6"},uXe={class:"flex flex-col gap-2"},dXe=["href"],fXe={class:"min-w-0 flex-1"},pXe={class:"block truncate text-16 text-black"},hXe={key:0,class:"mt-1 block text-13 text-grey-40"},mXe={key:6,class:"rounded-[24px] bg-white p-6"},gXe={class:"flex items-center gap-4"},yXe={class:"min-w-0 flex-1"},_Xe={class:"text-13 text-grey-40"},vXe=["href"],bXe=["href","aria-label"],xXe={key:0,class:"mt-4 flex flex-wrap gap-2"},kXe=["src"],wXe={class:"flex items-center gap-4"},CXe={class:"min-w-0 flex-1"},$Xe={key:0,class:"text-13 text-grey-40"},SXe=["href"],AXe=["href","aria-label"],IXe=G({__name:"ManagementCompanyDetailsPanel",setup(e){const t=G({props:{label:{type:String,required:!0},value:{type:String,required:!0}},setup(F){return()=>ot("div",{class:"flex items-baseline justify-between gap-4 text-16"},[ot("dt",{class:"text-grey-40"},F.label),ot("dd",{class:"text-right text-black"},F.value)])}}),s=lQe(),{sessionStore:n,userInfoStore:r}=Mn(),{t:i}=be(),{$showSnackbar:o}=Te(),l=X(new Set),u=X(!1),d=A(()=>r.residence?.premisesId??null),f=A(()=>s.screen?.managementCompany??null),h=A(()=>n.isAuthorized&&!s.screen&&!s.error&&(r.isLoading||s.isLoading||!!d.value)),g=A(()=>!!(f.value?.ogrn||f.value?.ogrnDateFormatted||f.value?.ogrnDate||f.value?.inn)),m=A(()=>!!(f.value?.name||g.value||f.value?.license)),_=A(()=>!!(f.value?.fullName||m.value)),v=A(()=>{const F=f.value;return!F||!(_.value||F.address||F.infoText||F.schedule.length||F.director?.fio||F.email||F.attachments.length||F.phone||F.phoneFormatted||F.emergencyPhones.length)}),k=A(()=>u.value||!f.value?.director?.photoUrl?"/images/house/exec_avatar_placeholder.png":f.value.director.photoUrl);async function x(){if(!n.isAuthorized){s.clear();return}r.isLoaded&&await s.loadInfo(d.value)}function C(){u.value=!0}function w(F){const N=F.ext.trim().toLowerCase().replace(/^\./,"");return N||((F.url.split("?")[0]??"").match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase()??"")}function $(F){if(l.value.has(F.url))return"";const N=w(F);return N==="pdf"?"/images/house/pdf.png":["doc","docx"].includes(N)?"/images/house/doc.png":["png","jpg","jpeg","gif","webp","bmp","svg","heic","heif"].includes(N)?F.url:""}function S(F){l.value=new Set([...l.value,F.url])}function I(F){return[w(F).toUpperCase(),F.sizeText].filter(Boolean).join(" · ")}function P(F){const N=F.split("?")[0]??"";return decodeURIComponent(N.split("/").filter(Boolean).at(-1)??"")}async function L(){f.value?.email&&(await Wl(f.value.email),o(i("drawer.house.managementCompanyInfo.emailCopied"),!1))}function D(F){return`${F}_x3.png`}function R(F){return`tel:${F.replace(/[^+\d]/g,"")}`}return je(()=>{x()}),Se([()=>n.isAuthorized,()=>r.isLoaded,d],()=>{x()}),(F,N)=>{const z=U0,me=ni,ge=eQe,fe=nQe,te=oQe;return p(),y("div",wQe,[h.value?(p(),y("div",CQe,[(p(),y(j,null,le(5,V=>c("section",{key:V,class:"animate-pulse rounded-[24px] bg-white p-6"},[...N[0]||(N[0]=[c("div",{class:"h-4 w-32 rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-3 h-6 w-full rounded-full bg-grey-90"},null,-1),c("div",{class:"mt-2 h-6 w-4/5 rounded-full bg-grey-90"},null,-1)])])),64))])):a(s).error?(p(),y("section",$Qe,[c("h1",SQe,b(a(i)("drawer.house.managementCompanyInfo.loadErrorTitle")),1),c("p",AQe,b(a(i)("drawer.house.managementCompanyInfo.loadErrorDescription")),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors auth:hover:bg-grey-80",onClick:x},b(a(i)("drawer.house.managementCompanyInfo.retry")),1)])):!f.value||v.value?(p(),y("section",IQe,[c("h1",TQe,b(a(i)("drawer.house.managementCompanyInfo.emptyTitle")),1),c("p",PQe,b(a(i)("drawer.house.managementCompanyInfo.emptyDescription")),1)])):(p(),y("div",DQe,[_.value?(p(),y("section",EQe,[f.value.fullName?(p(),y("p",LQe,b(a(i)("drawer.house.managementCompanyInfo.organizationTitle")),1)):E("",!0),f.value.fullName?(p(),y("h1",RQe,b(f.value.fullName),1)):E("",!0),m.value?(p(),y("div",{key:2,class:oe(["rounded-[12px] border border-grey-80 p-4",f.value.fullName?"mt-4":""])},[f.value.name?(p(),y("div",MQe,[c("p",OQe,b(a(i)("drawer.house.managementCompanyInfo.short
77Name")),1),c("p",FQe,b(f.value.name),1)])):E("",!0),g.value?(p(),y("div",{key:1,class:oe(["flex flex-col gap-2 border-grey-80",f.value.name?"mt-4 border-t pt-4":""])},[f.value.ogrn?(p(),K(a(t),{key:0,label:a(i)("drawer.house.managementCompanyInfo.ogrn"),value:f.value.ogrn},null,8,["label","value"])):E("",!0),f.value.ogrnDateFormatted||f.value.ogrnDate?(p(),K(a(t),{key:1,label:a(i)("drawer.house.managementCompanyInfo.registrationDate"),value:f.value.ogrnDateFormatted||f.value.ogrnDate},null,8,["label","value"])):E("",!0),f.value.inn?(p(),K(a(t),{key:2,label:a(i)("drawer.house.managementCompanyInfo.inn"),value:f.value.inn},null,8,["label","value"])):E("",!0)],2)):E("",!0),f.value.license?(p(),y("div",{key:2,class:oe(["text-16 text-black",g.value||f.value.name?"mt-4 border-t border-grey-80 pt-4":""])},[c("p",null,b(a(i)("drawer.house.managementCompanyInfo.license")),1),c("p",{class:"whitespace-pre-line",textContent:b(f.value.license)},null,8,NQe)],2)):E("",!0)],2)):E("",!0)])):E("",!0),f.value.address?(p(),y("section",BQe,[c("h2",VQe,b(a(i)("drawer.house.managementCompanyInfo.address")),1),c("p",HQe,b(f.value.address),1)])):E("",!0),f.value.infoText||f.value.schedule.length?(p(),y("section",qQe,[c("h2",jQe,b(a(i)("drawer.house.managementCompanyInfo.clientManager")),1),f.value.infoText?(p(),y("div",{key:0,class:"info-html mt-2 text-16 text-black",innerHTML:a(ym)(f.value.infoText,{linkPlainContacts:!0})},null,8,UQe)):E("",!0),f.value.schedule.length?(p(),y("div",zQe,[(p(!0),y(j,null,le(f.value.schedule,V=>(p(),y("div",{key:`${V.title}-${V.times.length}`},[c("dl",WQe,[(p(!0),y(j,null,le(V.times,pe=>(p(),y("div",{key:`${pe.title}-${pe.description}`,class:"flex items-baseline gap-2 text-13"},[pe.title?(p(),y("dt",GQe,b(pe.title),1)):E("",!0),c("dd",YQe,[N[1]||(N[1]=c("span",{class:"h-px min-w-0 flex-1 border-b border-dotted border-grey-80"},null,-1)),pe.description?(p(),y("span",KQe,b(pe.description),1)):E("",!0)])]))),128))])]))),128))])):E("",!0)])):E("",!0),f.value.director?.fio?(p(),y("section",QQe,[c("div",XQe,[c("img",{src:k.value,alt:f.value.director.fio,class:"h-11 w-11 shrink-0 rounded-full object-cover",draggable:"false",onError:C},null,40,ZQe),c("div",JQe,[c("p",eXe,b(f.value.director.fio),1),c("p",tXe,b(a(i)("drawer.house.managementCompanyInfo.director")),1)])])])):E("",!0),f.value.email?(p(),y("section",sXe,[c("div",nXe,[c("a",{href:`mailto:${f.value.email}`,class:"flex min-w-0 flex-1 items-center gap-4"},[N[2]||(N[2]=c("img",{src:aQe,alt:"",class:"h-11 w-11 shrink-0 object-contain","aria-hidden":"true"},null,-1)),c("span",iXe,[c("span",oXe,b(f.value.email),1),c("span",aXe,b(a(i)("drawer.house.managementCompanyInfo.email")),1)])],8,rXe),c("button",{type:"button",class:"shrink-0 text-grey-40","aria-label":a(i)("drawer.house.managementCompanyInfo.copyEmail"),onClick:L},[T(z,{"aria-hidden":"true"})],8,lXe)])])):E("",!0),f.value.attachments.length?(p(),y("section",cXe,[c("div",uXe,[(p(!0),y(j,null,le(f.value.attachments,V=>(p(),y("a",{key:V.id||V.url,href:V.url,target:"_blank",rel:"noopener noreferrer",class:"flex min-h-[76px] items-center gap-4 roun
77ded-[12px] bg-grey-90 p-4"},[$(V)?(p(),K(me,{key:0,src:$(V),alt:"",class:"h-11 w-11 shrink-0 rounded-[8px] object-cover","aria-hidden":"true",onError:pe=>S(V)},null,8,["src","onError"])):E("",!0),c("span",fXe,[c("span",pXe,b(V.name||P(V.url)),1),I(V)?(p(),y("span",hXe,b(I(V)),1)):E("",!0)]),T(ge,{class:"shrink-0","aria-hidden":"true"})],8,dXe))),128))])])):E("",!0),f.value.phone||f.value.phoneFormatted?(p(),y("section",mXe,[c("div",gXe,[c("div",yXe,[c("h2",_Xe,b(a(i)("drawer.house.managementCompanyInfo.dispatchService")),1),c("a",{href:R(f.value.phone||f.value.phoneFormatted),class:"mt-2 block text-24-bold text-black"},b(f.value.phoneFormatted||f.value.phone),9,vXe)]),c("a",{href:R(f.value.phone||f.value.phoneFormatted),class:"grid h-14 w-14 shrink-0 place-items-center rounded-full bg-paleLime-primary","aria-label":a(i)("drawer.house.managementCompanyInfo.call")},[T(fe,{"aria-hidden":"true"})],8,bXe)]),f.value.markers.length?(p(),y("div",xXe,[(p(!0),y(j,null,le(f.value.markers,V=>(p(),y("span",{key:`${V.text}-${V.iconUrl}`,class:"flex min-h-10 items-center gap-2 rounded-full px-4 py-3 text-13",style:kt({color:V.textColor||void 0,backgroundColor:V.backgroundColor||void 0})},[V.iconUrl?(p(),y("img",{key:0,src:D(V.iconUrl),alt:"",class:"h-4 w-4","aria-hidden":"true"},null,8,kXe)):E("",!0),Qe(" "+b(V.text),1)],4))),128))])):E("",!0)])):E("",!0),(p(!0),y(j,null,le(f.value.emergencyPhones,V=>(p(),y("section",{key:`${V.description}-${V.phone}`,class:"rounded-[24px] bg-white p-6"},[c("div",wXe,[c("div",CXe,[V.description?(p(),y("h2",$Xe,b(V.description),1)):E("",!0),V.phone||V.phoneFormatted?(p(),y("a",{key:1,href:R(V.phone||V.phoneFormatted),class:"mt-2 block text-16 text-black"},b(V.phoneFormatted||V.phone),9,SXe)):E("",!0)]),V.phone||V.phoneFormatted?(p(),y("a",{key:0,href:R(V.phone||V.phoneFormatted),class:"grid h-12 w-12 shrink-0 place-items-center rounded-full bg-grey-90","aria-label":a(i)("drawer.house.managementCompanyInfo.call")},[T(te,{"aria-hidden":"true"})],8,AXe)):E("",!0)])]))),128))]))])}}}),TXe=Object.assign(Gs(IXe,[["__scopeId","data-v-5e5d4fa0"]]),{__name:"ManagementCompanyDetailsPanel"});function Rlt(e){return{success:e.success??!1,news:Array.isArray(e.news)?e.news.map(_m):[],fixedNews:Array.isArray(e.fixed_news)?e.fixed_news.map(_m):[]}}function _m(e){const t=e??{};return{newsId:t.news_id??"",title:t.title??"",image:t.image??"",datetime:t.datetime??"",imagePosition:t.image_position??"top",description:t.description??"",fixedAt:t.fixed_at??"",imageLink:t.image_link??"",markers:Array.isArray(t.markers)?t.markers.map(PXe):[]}}function PXe(e){const t=e??{};return{text:t.text??"",textColor:t.text_color??"",backgroundColor:t.background_color??"",borderColor:t.border_color??""}}const DXe={class:"p-6"},EXe={class:"overflow-hidden bg-white"},LXe={key:1,class:"px-2 py-10 text-center"},RXe={key:0,class:"relative overflow-hidden"},MXe=["src","alt"],OXe=["innerHTML"],FXe=["innerHTML"],Vb=328/230,NXe=G({__name:"NewsDetailPanel",setup(e){const t=st(),s=Ne(),{openShareOrExternal:n}=Dl(),{$showSnackbar:r}=Te(),i=X(null),o=X(!1),l=X(!1);let u=0;const d=A(()=>{const _=t.query.news_id;return Array.isArray(_)?_[0]:_});async function f(){const _=d.value;if(!_||!s.sessionToken){i.value=null,l.value=!0;return}const v=++u;o.value=!0,l.value=!1;try{const k=await $fetch(`/api/v3/news/${_}`,{query:{btlrsid:s.sessionToken}});if(v!==u)return;i.value=_m(k.news)}catch(k){if(v!==u)return;i.value=null,l.value=!0;const x=k instanceof Error?k.message:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð½Ð¾Ð²Ð¾ÑÑÑ";r(x)}finally{v===u&&(o.value=!1)}}function h(_){const v=new Date(_);if(Number.isNaN(v.getTime()))return"";const k=new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}).format(v),x=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit"}).format(v);return`${k}, ${x}`}function g(_){return _.imagePosition==="bottom"?"object-bottom":_.imagePosition==="center"?"object-center":"object-top"}function m(_){const v=_.target,k=v instanceof Element?v.closest("a[href]"):null;k&&(_.preventDefault(),n(k.href))}return Se(d,()=>{f()},{immediate:!0}),(_,v)=>(p(),y("section",DXe,[c("article",EXe,[a(o)?(p(),y(j,{key:0},[c("div",{class:"w-full animate-pulse bg-grey-90",style:kt({aspectRatio:Vb})},null,4),v[0]||(v[0]=c("div",{class:"mt-5 h-5 w-28 animate-pulse rounded-full bg-grey-90"},null,-1)),v[1]||(v[1]=c("div",{class:"mt-4 h-6 w-4/5 animate-pulse rounded-full bg-grey-90"},null,-1)),v[2]||(v[2]=c("div",{class:"mt-3 h-4 w-full animate-pulse rounded-full bg-grey-90"},null,-1)),v[3]||(v[3]=c("div",{class:"mt-2 h-4 w-2/3 animate-pulse rounded-full bg-grey-90"},null,-1))],64)):a(l)?(p(),y("div",LXe,[...v[4]||(v[4]=[c("h2",{class:"text-24-bold text-black"},"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð½Ð¾Ð²Ð¾ÑÑÑ",-1),c("p",{class:"mt-2 text-16 text-grey-40"}
77," ÐопÑобÑйÑе оÑкÑÑÑÑ ÐµÐµ позже ",-1)])])):a(i)?(p(),y(j,{key:2},[a(i).imageLink?(p(),y("div",RXe,[c("img",{src:a(i).imageLink,alt:a(i).title,class:oe(["w-full object-cover",g(a(i))]),style:kt({aspectRatio:Vb}),draggable:"false"},null,14,MXe)])):E("",!0),c("p",{class:oe(["text-grey-40",a(i).imageLink?"mt-4 text-13":"text-13"])},b(h(a(i).datetime)),3),c("h2",{class:"news-html mt-2 text-16 text-black",onClick:m,innerHTML:a(ym)(a(i).title)},null,8,OXe),a(i).description?(p(),y("div",{key:1,class:"news-html mt-2 whitespace-pre-line text-13 text-grey-40",onClick:m,innerHTML:a(ym)(a(i).description)},null,8,FXe)):E("",!0)],64)):E("",!0)])]))}}),BXe=Object.assign(Gs(NXe,[["__scopeId","data-v-47a9519f"]]),{__name:"NewsDetailPanel"}),VXe={class:"px-6 pb-8"},HXe={class:"flex items-center justify-between"},qXe={class:"text-24-bold text-black"},jXe={class:"flex items-center gap-2"},UXe=["disabled"],zXe={class:"mt-4 grid grid-cols-3 gap-2"},WXe=["disabled","onClick"],GXe={class:"flex-1 text-center"},YXe=G({__name:"NewsMonthPanel",setup(e){const t=st(),s=is(),n=new Date,r=n.getFullYear(),i=n.getMonth(),o=A(()=>typeof t.query.news_month=="string"?t.query.news_month:""),l=Number(o.value.slice(0,4)),u=X(Number.isInteger(l)&&l>0?l:r),d=["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"].map((m,_)=>({label:m,index:_}));function f(m){return u.value>r||u.value===r&&m>i}function h(m){const _=String(m+1).padStart(2,"0");return o.value===`${u.value}-${_}`}function g(m){if(f(m))return;const _=String(m+1).padStart(2,"0"),v={...t.query,news_month:`${u.value}-${_}`};delete v.panel,s.replace({path:t.path,query:v})}return(m,_)=>{const v=Rs;return p(),y("section",VXe,[c("div",HXe,[c("h2",qXe,b(u.value),1),c("div",jXe,[c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full transition xl:hover:bg-grey-90","aria-label":"ÐÑедÑдÑÑий год",onClick:_[0]||(_[0]=k=>u.value-=1)},[T(v,{class:"rotate-180 [&>path]:fill-black","aria-hidden":"true"})]),c("button",{type:"button",class:"flex h-8 w-8 items-center justify-center rounded-full transition disabled:cursor-not-allowed disabled:opacity-30 xl:hover:bg-grey-90","aria-label":"СледÑÑÑий год",disabled:u.value>=a(r),onClick:_[1]||(_[1]=k=>u.value+=1)},[T(v,{class:"[&>path]:fill-black","aria-hidden":"true"})],8,UXe)])]),c("div",zXe,[(p(!0),y(j,null,le(a(d),k=>(p(),y("button",{key:k.index,type:"button",class:oe(["flex h-12 items-start gap-2 rounded-[12px] bg-[#F7FAF9] p-3 text-16 text-black transition disabled:cursor-not-allowed disabled:text-grey-70 xl:hover:bg-grey-80 disabled:xl:hover:bg-[#F7FAF9]",{"bg-paleLime-90 text-emerald-primary":h(k.index)}]),disabled:f(k.index),onClick:x=>g(k.index)},[c("span",GXe,b(k.label),1)],10,WXe))),128))])])}}}),KXe=Object.assign(YXe,{__name:"NewsMonthPanel"}),QXe={class:"flex h-full flex-col justify-center overflow-y-auto"},XXe={class:"flex flex-col items-center p-6"},ZXe={class:"mt-6 text-center text-24-bold text-black"},JXe={class:"mt-2 text-center text-16 text-grey-40"},eZe={class:"flex flex-col gap-2 p-6 pt-0"},tZe=G({__name:"PaymentInfoPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go","card-add")}function i(){n("go","back")}return(o,l)=>{const u=d9,d=Ae("PrimaryButton");return p(),y("div",QXe,[c("div",XXe,[T(u,{"aria-hidden":"true"}),c("h2",ZXe,b(a(s)("drawer.categories.paymentInfoPanel.title")),1),c("p",JXe,b(a(s)("drawer.categories.paymentInfoPanel.description")),1)]),c("div",eZe,[T(d,{label:a(s)("drawer.categories.paymentInfoPanel.addCardButton"),onClick:r},null,8,["label"]),T(d,{variant:"secondary",label:a(s)("drawer.categories.paymentInfoPanel.okButton"),onClick:i},null,8,["label"])])])}}}),sZe=Object.assign(tZe,{__name:"PaymentInfoPanel"}),nZe={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function rZe(e,t){return p(),y("svg",nZe,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M67.38 23.151c.436-.069.926-.105 1.435.008l.218.059c.717.221 1.34.666 1.782 1.264l.178.266c.318.525.42 1.085.465 1.587.043.49.042 1.092.042 1.763v7.803c0 .671.001 1.273-.042 1.764-.044.502-.147 1.062-.465 1.587a3.5 3.5 0 0 1-1.96 1.53c-.586.181-1.155.145-1.652.066-.487-.076-1.07-.225-1.72-.387l-7.393-1.848 2.015 7.52a1.501 1.501 0 0 1-2.008 1.78L54.68 46.47l-2.393 3.046a1.501 1.501 0 0 1-2.629-.538L48 42.791l-1.657 6.188a1.5 1.5 0 0 1-2.63.538L41.32 46.47l-3.594 1.443a1.502 1.502 0 0 1-2.01-1.78l2.015-7.52-7.391 1.848c-.65.162-1.234.31-1.72.387-.498.079-1.067.115-1.653-.066a3.5 3.5 0 0 1-1.96-1.53c-.318-.525-.42-1.086-.465-1.587-.043-.49-.042-1.093-.042
77-1.764v-7.803c0-.67-.001-1.273.042-1.763.044-.502.147-1.062.465-1.587l.178-.266a3.5 3.5 0 0 1 1.782-1.264l.219-.059c.508-.113.998-.077 1.433-.008.487.077 1.07.225 1.72.388l9.6 2.4c.343.085.7.17 1.048.282a3.5 3.5 0 0 1 1.424-1.34c.46-.234.927-.314 1.354-.349.408-.033.9-.032 1.435-.032h5.6c.535 0 1.027-.001 1.435.032.427.035.893.115 1.354.35a3.5 3.5 0 0 1 1.423 1.338c.348-.112.706-.196 1.049-.282l9.6-2.4c.65-.162 1.233-.31 1.72-.387M39.393 44.01l1.855-.745a1.5 1.5 0 0 1 1.74.466l1.235 1.573 1.554-5.804H45.2c-.535 0-1.027 0-1.435-.032-.427-.035-.893-.115-1.354-.35a3.5 3.5 0 0 1-1.373-1.256zm15.569-6.148a3.5 3.5 0 0 1-1.372 1.256c-.46.235-.927.315-1.354.35-.408.033-.9.032-1.435.032h-.576l1.554 5.804 1.236-1.573a1.5 1.5 0 0 1 1.739-.466l1.855.745zm-27.12-11.774a.5.5 0 0 0-.263.205c.017-.032-.022.015-.048.306-.029.328-.03.774-.03 1.5V35.9c0 .726.001 1.172.03 1.5.017.192.04.278.048.305a.5.5 0 0 0 .264.205c.027.002.115.004.308-.026.325-.052.758-.158 1.462-.334l9.6-2.4c.454-.114.718-.18.912-.244.175-.057.195-.083.176-.068a.5.5 0 0 0 .161-.207c-.01.022.01-.003.023-.188.015-.203.016-.475.016-.942V33.5H35a1.5 1.5 0 0 1 0-3h5.5v-.002c0-.468 0-.74-.016-.943-.013-.183-.032-.21-.023-.187a.5.5 0 0 0-.161-.207c.02.014 0-.01-.176-.068-.194-.064-.458-.13-.912-.244l-9.6-2.4c-.704-.176-1.137-.283-1.462-.334a1.5 1.5 0 0 0-.308-.027m40.317 0a1.5 1.5 0 0 0-.308.027c-.325.051-.758.158-1.462.334l-9.6 2.4c-.454.114-.718.18-.912.244-.175.057-.195.082-.176.068a.5.5 0 0 0-.16.207c.008-.022-.011.004-.024.188-.015.203-.016.474-.016.942v.002H61a1.5 1.5 0 0 1 0 3h-5.5v.002c0 .467.001.74.016.942.013.184.032.21.023.188q.054.124.161.207c-.019-.015.001.01.176.068.194.064.458.13.912.243l9.6 2.4c.704.177 1.137.283 1.462.335.193.03.281.028.308.026a.5.5 0 0 0 .264-.205c.008-.027.03-.113.048-.306.029-.327.03-.773.03-1.499v-7.803c0-.725-.001-1.171-.03-1.499-.026-.29-.064-.337-.048-.306a.5.5 0 0 0-.264-.205M45.2 27.5c-.584 0-.933.001-1.191.022-.24.02-.268.05-.236.033a.5.5 0 0 0-.218.218c.016-.032-.013-.005-.032.236-.022.258-.023.607-.023 1.191v5.6c0 .584.001.933.023 1.191.02.24.048.268.032.235.048.094.124.171.218.22-.032-.017-.005.012.236.031.258.021.607.023 1.191.023h5.6c.585 0 .933-.002 1.191-.023.24-.02.268-.049.236-.032a.5.5 0 0 0 .218-.219c-.016.033.013.006.033-.235.02-.258.022-.607.022-1.191v-5.6c0-.584-.001-.933-.022-1.191-.02-.24-.05-.268-.033-.236a.5.5 0 0 0-.218-.218c.032.016.005-.013-.236-.033-.258-.02-.607-.022-1.191-.022z","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M45.343 5.416a9.5 9.5 0 0 1 5.314 0c1.064.31 2.009.857 3.027 1.603 1.003.736 2.162 1.73 3.623 2.982l5.248 4.499H65.2c2.215 0 3.967-.001 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.152c.561 1.102.804 2.31.92 3.737.116 1.409.115 3.16.115 5.376v.223l7.006 6.007c1.583 1.357 2.588 2.203 3.315 3.258a9.5 9.5 0 0 1 1.363 2.962c.327 1.238.316 2.552.316 4.638V77.2c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.736a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H18.8c-2.215 0-3.967 0-5.376-.115-1.427-.116-2.634-.359-3.736-.92a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.116-1.41-.115-3.16-.115-5.376V45.888c0-2.086-.011-3.4.316-4.638a9.5 9.5 0 0 1 1.363-2.962c.727-1.055 1.732-1.9 3.315-3.258l7.006-6.007V28.8c0-2.216 0-3.967.114-5.376.117-1.427.36-2.634.921-3.737a9.5 9.5 0 0 1 4.153-4.152c1.102-.562 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115h2.645l5.248-4.5c1.461-1.251 2.62-2.245 3.624-2.98 1.017-.747 1.963-1.294 3.026-1.604m4.532 51.11a6.5 6.5 0 0 0-3.75 0c-.611.183-1.251.534-2.148 1.22-.912.7-1.996 1.671-3.525 3.043L10.626 87.555q.207.126.423.237c.609.31 1.378.502 2.619.603 1.259.103 2.867.105 5.132.105h58.4c2.265 0 3.873-.002 5.132-.105 1.241-.101 2.01-.293 2.62-.603q.215-.111.421-.237L55.548 60.79c-1.529-1.372-2.613-2.343-3.525-3.042-.897-.687-1.537-1.038-2.148-1.222M7.542 43.23c-.037.61-.042 1.424-.042 2.657V77.2c0 2.265.002 3.873.105 5.132.1 1.241.293 2.01.603 2.619q.13.254.28.492l23.964-21.507L17.236 51.29a1.5 1.5 0 0 1-.362-.3zm71.585 7.755a1.5 1.5 0 0 1-.366.304L63.547 63.936l23.965 21.507q.15-.24.28-.492c.31-.609.502-1.378.604-2.62.102-1.258.104-2.866.104-5.131V45.888c0-1.233-.006-2.046-.043-2.657zM30.8 17.5c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.603 2.62-.103 1.258-.105 2.867-.105 5.132v20.47l15.209 12.64 3.74-3.354c1.494-1.34 2.677-2.404 3.703-3.19 1.041-.797 2.011-1.382 3.108-1.713a9.5 9.5 0 0 1 5.48 0c1.097.33 2.067.916 3.108 1.713 1.026.786 2.21 1.85 3.703 3.19l3.74 3.355L76.5 49.269V28.8
77c0-2.264-.002-3.873-.104-5.131-.102-1.241-.294-2.01-.604-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.604-1.259-.102-2.867-.104-5.132-.104h-3.727l-.012.014-.016-.014h-26.89l-.016.014-.012-.014zM11.446 37.307c-1.704 1.461-2.344 2.025-2.798 2.683l-.11.168 7.962 6.618v-13.8zM79.5 46.775l7.962-6.617q-.053-.085-.11-.168c-.454-.658-1.094-1.222-2.798-2.683L79.5 32.975zM49.817 8.295a6.5 6.5 0 0 0-3.634 0c-.595.174-1.219.502-2.093 1.143-.89.653-1.948 1.56-3.443 2.841l-2.592 2.22h19.89l-2.591-2.22c-1.496-1.282-2.554-2.188-3.444-2.84-.874-.642-1.498-.97-2.093-1.143","clip-rule":"evenodd"},null,-1),c("path",{fill:"#11986C",d:"M76.201 10.26a1.5 1.5 0 0 1 2.049-.55A16.5 16.5 0 0 1 86.5 24a1.5 1.5 0 1 1-3 0 13.5 13.5 0 0 0-6.75-11.692 1.5 1.5 0 0 1-.549-2.048M9.058 16.588a1.5 1.5 0 0 1 1.854-1.03l3.5 1a1.5 1.5 0 0 1-.824 2.884l-3.5-1a1.5 1.5 0 0 1-1.03-1.854M12.063 6.829a1.5 1.5 0 0 1 2.108.233l4 5a1.5 1.5 0 0 1-2.342 1.875l-4-5a1.5 1.5 0 0 1 .233-2.108"},null,-1)])])}const iZe={render:rZe},oZe=Ls("/images/invite_qr.png"),aZe=Ls("/images/invite_leaflet.png"),lZe={class:"scrollbar-4-grey80 flex min-h-full flex-col px-6 pb-6"},cZe={key:0,class:"flex flex-1 flex-col items-center pt-3"},uZe={key:1,class:"flex flex-1 flex-col items-center justify-center text-center"},dZe={class:"text-16-bold text-black"},fZe={class:"mt-2 text-13 text-grey-40"},pZe={key:2,class:"flex flex-1 flex-col items-center text-center"},hZe={class:"mt-6 text-24-bold text-black"},mZe={class:"mt-2 text-16 text-grey-40"},gZe={class:"w-full pt-6"},yZe={class:"text-left mt-8 w-full rounded-[16px] bg-grey-90 p-4"},_Ze={class:"flex flex-col gap-4"},vZe={class:"min-w-0"},bZe={class:"block text-16 text-black"},xZe={class:"mt-1 line-clamp-3 block whitespace-pre-line text-13 text-grey-40"},kZe={class:"mt-8 w-full text-left text-16-bold text-black"},wZe={class:"mt-3 grid w-full grid-cols-2 gap-3"},CZe={class:"block text-16-bold text-black"},$Ze={class:"mt-1 block text-13 text-grey-40"},SZe={class:"mt-auto flex flex-1 items-end justify-center pb-1"},AZe=["alt"],IZe={class:"block text-16-bold text-black"},TZe={class:"mt-1 block text-13 text-grey-40"},PZe={class:"absolute bottom-0 right-0 w-[65%]"},DZe=["alt"],EZe=G({__name:"InvitePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{$showSnackbar:r}=Te(),i=Oe(),o=Hu(),l=A(()=>i.residence?.premisesId??""),u=A(()=>o.error?.message??""),d=A(()=>o.inviteText.trim()||n("drawer.invite.emptyText"));async function f(){if(!l.value){o.requestId+=1,o.inviteMethods=null,o.error={message:n("drawer.invite.noHouseSelected")},o.isLoading=!1;return}await o.load(l.value)}async function h(){if(!o.shareText)return;const g=await Wl(o.shareText);r(n(g?"drawer.invite.linkCopied":"drawer.invite.linkCopyError"),!g)}return je(()=>{if(!i.userInfo){s("go",{to:"login",replace:!0});return}f()}),Se(l,()=>{f()}),(g,m)=>{const _=iZe,v=d7,k=Ae("PrimaryButton"),x=Ae("SmallButton");return p(),y("div",lZe,[a(o).isLoading?(p(),y("div",cZe,[...m[3]||(m[3]=[ls('<div class="h-32 w-32 animate-pulse rounded-[32px] bg-grey-90"></div><div class="mt-8 h-8 w-4/5 animate-pulse rounded bg-grey-80"></div><div class="mt-3 h-5 w-full animate-pulse rounded bg-grey-80"></div><div class="mt-8 h-24 w-full animate-pulse rounded-[16px] bg-grey-90"></div><div class="mt-4 h-16 w-full animate-pulse rounded-[16px] bg-grey-90"></div>',5)])])):u.value?(p(),y("div",uZe,[c("p",dZe,b(a(n)("drawer.invite.loadErrorTitle")),1),c("p",fZe,b(u.value),1),c("button",{type:"button",class:"mt-6 rounded-full bg-grey-90 px-5 py-3 text-16 text-black transition-colors xl:hover:bg-grey-80",onClick:f},b(a(n)("drawer.invite.retry")),1)])):(p(),y("section",pZe,[T(_,{class:"shrink-0","aria-hidden":"true"}),c("h1",hZe,b(a(n)("drawer.invite.title")),1),c("p",mZe,b(a(n)("drawer.invite.description")),1),c("div",gZe,[T(k,{class:"w-full",label:a(n)("drawer.invite.shareButton"),disabled:!a(o).shareText,onClick:h},{icon:Xe(()=>[T(v,{class:"h-6 w-6","aria-hidden":"true"})]),_:1},8,["label","disabled"])]),c("div",yZe,[c("span",_Ze,[c("span",vZe,[c("span",bZe,b(a(n)("drawer.invite.textLabel")),1),c("span",xZe,b(d.value),1)]),T(x,{variant:"white",label:a(n)("drawer.invite.edit"),class:"w-[113px]",onClick:m[0]||(m[0]=C=>s("go","invite-text-edit"))},null,8,["label"])])]),c("p",kZe,b(a(n)("drawer.invite.moreWays")),1
77),c("div",wZe,[c("button",{type:"button",class:"relative flex min-h-[192px] flex-col overflow-hidden rounded-[16px] bg-grey-90 p-3 text-left transition-colors xl:hover:bg-grey-80",onClick:m[1]||(m[1]=C=>s("go","invite-qr-share"))},[c("span",CZe,b(a(n)("drawer.invite.qrTitle")),1),c("span",$Ze,b(a(n)("drawer.invite.qrSubtitle")),1),c("span",SZe,[c("img",{src:oZe,class:"h-auto w-[72%] object-contain",alt:a(n)("drawer.invite.qrAlt")},null,8,AZe)])]),c("button",{type:"button",class:"relative flex min-h-[192px] flex-col overflow-hidden rounded-[16px] bg-grey-90 p-3 text-left transition-colors xl:hover:bg-grey-80",onClick:m[2]||(m[2]=C=>s("go","invite-leaflet-share"))},[c("span",IZe,b(a(n)("drawer.invite.flysheetTitle")),1),c("span",TZe,b(a(n)("drawer.invite.flysheetSubtitle")),1),c("span",PZe,[c("img",{src:aZe,class:"h-auto w-full object-contain",alt:a(n)("drawer.invite.flysheetAlt")},null,8,DZe)])])])]))])}}}),LZe=Object.assign(EZe,{__name:"InvitePanel"}),RZe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function MZe(e,t){return p(),y("svg",RZe,[...t[0]||(t[0]=[c("path",{fill:"#11986C","fill-rule":"evenodd",d:"M13.864 3.47a.75.75 0 0 1 0 1.06L6.53 11.864a.75.75 0 0 1-1.06 0L2.136 8.53a.75.75 0 0 1 1.06-1.06L6 10.273l6.803-6.803a.75.75 0 0 1 1.06 0","clip-rule":"evenodd"},null,-1)])])}const OZe={render:MZe},FZe={class:"scrollbar-4-grey80 flex min-h-full flex-col px-6 pb-6"},NZe={class:"flex flex-1 flex-col"},BZe={class:"text-24-bold text-black"},VZe={class:"mt-3 text-16 text-grey-40"},HZe=["placeholder"],qZe={class:"mt-2 flex items-center gap-1.5"},jZe={class:"flex flex-col gap-3 pt-6"},UZe=G({__name:"InviteTextEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Hu(),i=Oe(),o=X(r.inviteText),l=X(null),u=A(()=>i.residence?.premisesId??""),d=A(()=>o.value.trim().length>=20);function f(){lt(()=>{const m=l.value;m&&(m.style.height="0px",m.style.height=`${m.scrollHeight}px`)})}function h(){r.setInviteText(o.value.trim()),s("go","back")}function g(){o.value=r.defaultInviteText}return je(async()=>{!r.inviteMethods&&u.value&&(await r.load(u.value),o.value=r.inviteText),f()}),Se(o,f),Se(()=>r.inviteText,m=>{o.value=m}),(m,_)=>{const v=OZe,k=M7,x=Ae("PrimaryButton");return p(),y("div",FZe,[c("section",NZe,[c("h1",BZe,b(a(n)("drawer.invite.editTitle")),1),c("p",VZe,b(a(n)("drawer.invite.editDescription")),1),pn(c("textarea",{ref_key:"textareaRef",ref:l,"onUpdate:modelValue":_[0]||(_[0]=C=>o.value=C),rows:"1",class:"mt-8 min-h-[58px] w-full resize-none overflow-hidden rounded-lg border border-grey-80 bg-white px-3 py-4 text-16 text-black outline-none transition-colors duration-200 placeholder:text-grey-40 focus:border-transparent focus:ring-2 focus:ring-paleLime-primary",placeholder:a(n)("drawer.invite.emptyText"),onInput:f},null,40,HZe),[[jr,o.value]]),c("div",qZe,[d.value?(p(),K(v,{key:0,class:"h-4 w-4"})):(p(),K(k,{key:1,class:"h-4 w-4"})),c("span",{class:oe(["text-13",d.value?"text-emerald-primary":"text-yellow-50"])},b(a(n)("drawer.invite.minLengthHint")),3)])]),c("div",jZe,[T(x,{label:a(n)("drawer.invite.saveText"),disabled:!d.value,onClick:h},null,8,["label","disabled"]),T(x,{variant:"secondary",label:a(n)("drawer.invite.saveMoveToOriginalText"),onClick:g},null,8,["label"])])])}}}),zZe=Object.assign(UZe,{__name:"InviteTextEditPanel"}),WZe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function GZe(e,t){return p(),y("svg",WZe,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M2 16.2V15a1 1 0 1 1 2 0v1.2c0 .857 0 1.439.037 1.889.036.438.101.663.18.82a2 2 0 0 0 .875.873c.156.08.38.145.82.18C6.361 20 6.942 20 7.8 20h8.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.031.038-1.888V15a1 1 0 1 1 2 0v1.2c0 .824.001 1.502-.044 2.052-.046.562-.144 1.08-.392 1.564a4 4 0 0 1-1.748 1.749c-.485.247-1.002.345-1.564.391-.55.045-1.228.044-2.052.044H7.8c-.824 0-1.502.001-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C1.999 17.702 2 17.024 2 16.2M11 3a1 1 0 1 1 2 0v9.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L11 12.586z"},null,-1)])])}const uC={render:GZe},YZe={class:"scrollbar-4-grey80 flex min-h-full flex-col px-6 pb-6"},KZe={class:"flex flex-1 flex-col items-center text-center"},QZe=["src","alt"],XZe={class:"mt-8 text-24-bold text-black"},ZZe={class:"mt-2 text-16 text-grey-40"},JZe={class:"pt-6"},eJe=G({__name:"InviteQrSharePanel",setup(e){const{t}=be(),{$showSnackbar:s}=Te(),n=Hu(),r=Oe(),i=A(()=>r.residence?.premisesId??""),o=A(()=>n.qrLink),l=A(()=>o.value||"/images/invite_qr.png");async function u(){if(o.value)try{const f=await(await fetch(o.value)).blob(),h=URL.createObjectURL(f),g=document.createElement("a");g.href=h,g.download="qr-code.png",document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(h)}catch{s(t("drawer.invite.downloadError"),!1)}}return je(()=>{!n.inviteMethods&&i.value&&n.load(i.value)}),(d,f)=>{const h=uC,g=Ae("PrimaryButton");return p(),y("div",YZe,[c("section",KZe,[c("img",{src:l.value,class:"aspect-square w-full max-w-[200px] object-contain mt-[48px]",alt:a(t)("drawer.invite.qrAlt")},null,8,QZe),c("h1",XZe,b(a(t)("drawer.invite.qrShareTitle")),1),c("p",ZZe,b(a(t)("drawer.invite.qrShareDescription")),1)]),c("div",JZe,[T(g,{label:a(t)("drawer.invite.downloadQrButton"),disabled:!o.value,onClick:u},{icon:Xe(()=>[T(h,{class:"[&>path]:fill-white","aria-hidden":"true"})]),_:1},8,["label","disabled"])])])}}}),tJe=Object.assign(eJe,{__name:"InviteQrSharePanel"}),sJe=Ls("/images/leaflet_bg.png"),nJe={class:"scrollbar-4-grey80 flex min-h-full flex-col bg-white px-6 pb-6"},rJe={class:"flex flex-1 flex-col items-center text-center"},iJe=["alt"],oJe={class:"mt-6 text-24-bold text-black"},aJe={class:"mt-3 text-16 text-grey-40"},lJe={class:"pt-6"},cJe=G({__name:"InviteLeafletSharePanel",setup(e){const{t}=be(),s=Hu(),n=Oe(),r=A(()=>n.residence?.premisesId??""),i=A(()=>s.flysheetLink);async function o(){if(!i.value)return;const l=document.createElement("a");l.href=i.value,l.download="leaflet.pdf",l.target="_blank",document.body.appendChild(l),l.click(),document.body.removeChild(l)}return je(()=>{!s.inviteMethods&&r.value&&s.load(r.value)}),(l,u)=>{const d=uC,f=Ae("PrimaryButton");return p(),y("div",nJe,[c("section",rJe,[c("img",{src:sJe,class:"w-full rounded-[16px] object-cover",alt:a(t)("drawer.invite.flysheetAlt")},null,8,iJe),c("h1",oJe,b(a(t)("drawer.invite.flysheetShareTitle")),1),c("p",aJe,b(a(t)("drawer.invite.flysheetShareDescription")),1)]),c("div",lJe,[T(f,{label:a(t)("drawer.invite.downloadFlysheetButton"),disabled:!i.value,onClick:o},{icon:Xe(()=>[T(d,{class:"[&>path]:fill-white","aria-hidden":"true"})]),_:1},8,["label","disabled"])])])}}}),uJe=Object.assign(cJe,{__name:"InviteLeafletSharePanel"}),dJe={class:"flex-1 space-y-6 px-6 pb-6"},fJe={class:"text-24-bold text-black"},pJe={class:"space-y-3"},hJe={class:"text-16 text-black"},mJe={class:"space-y-3"},gJe={class:"text-16 text-black"},yJe={class:"grid grid-cols-2 gap-3"},_Je={class:"space-y-3"},vJe={class:"text-16 text-black"},bJe={class:"grid grid-cols-2 gap-2"},xJe={class:"sticky bottom-0 bg-white p-6"},kJe=G({__name:"HouseAboutInfoEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=Oe(),{$showSnackbar:o}=Te(),l=A(()=>i.residence?.premisesId??null),u=A(()=>r.screen?.info??null),d=X(null),f=X(null),h=X(!1),g=X(!1),m=X(u.value?.name??""),_=X(u.value?.constructionYear?String(u.value.constructionYear):""),v=X(u.value?.entranceCount?String(u.value.entranceCount):""),k=X(u.value?.floorCount?String(u.value.floorCount):""),x=X(""),C=A(()=>x.value||(h.value?"":u.value?.imageUrl??""));function w(P){const L=P.replace(/\D/g,"");return L?Number(L):null}async function $(P){const L=P.target,D=L.files?.[0]??null;if(D){try{f.value=await ma(D)}catch{o(n("imageProcessError")),L.value="";return}h.value=!1,x.value&&URL.revokeObjectURL(x.value),x.value=URL.createObjectURL(f.value)}}function S(){f.value=null,h.value=!0,x.value&&URL.revokeObjectURL(x.value),x.value="",d.value&&(d.value.value="")}async function I(){const P=u.value;if(!(!P||g.value)){g.value=!0;try{const L=await r.saveInfo(l.value,{info:{...P,name:m.value.trim(),constructionYear:w(_.value),entranceCount:w(v.value),floorCount:w(k.value)},imageFile:f.value,removeImage:h.value});if(!L.ok){o(L.error.message??n("aboutHouse.edit.saveError"));return}await r.loadScreen(l.value),s("go",{to:"",replace:!0})}finally{g.value=!1}}}return Tt(()=>{x.value&&URL.revokeObjectURL(x.value)}),(P,L)=>{const D=Ae("LabeledTextField"),R=ni,F=g7,N=pa,z=Ae("PrimaryButton");return p(),y("form",{class:"flex min-h-full flex-col bg-white",onSubmit:St(I,["prevent"])},[c("div",dJe,[c("h1",fJe,b(a(n)("aboutHouse.edit.info.title")),1),c("section",pJe,[c("h2",hJe,b(a(n)("aboutHouse.edit.info.name")),1),T(D,{modelValue:a(m),"onUpdate:modelValue":L[0]||(L[0]=me=>it(m)?m.value=me:null),label:a(n)("aboutHouse.edit.info.namePlaceholder")},null,8,["modelValue","label"])]),c("section",mJe,[c("h2",gJe,b(a(n)("aboutHouse.edit.info.params")),1),T(D,{modelValue:a(_),"onUpdate:modelValue":L[1]||(L[1]=me=>it(_)?_.value=me:null),"input-mode":"numeric",label:a(n)("aboutHouse.edit.info.year")},null,8,["modelValue","label"]),c("div",yJe,[T(D,{modelValue:a(v),"onUpdate:modelValue":L[2]||(L[2]=me=>it(v)?v.value=me:null),"input-mode":"numeric",label:a(n)("aboutHouse.edit.info.entrance")},null,8,["modelValue","label"]),T(D,{modelValue:a(k),"onUpdate:modelValue":L[3]||(L[3]=me=>it(k)?k.value=me:null),"input-mode":"numeric",label:a(n)("aboutHouse.edit.info.floor")},null,8,["modelValue","label"])])]),c("section",_Je,[c("h2",vJe,b(a(n)("aboutHouse.edit.info.photo")),1),c("div",bJe,[a(C)?(p(),y("button",{key:0,t
77ype:"button",class:"relative aspect-[1.4] overflow-hidden rounded-[12px] bg-grey-90",onClick:L[4]||(L[4]=me=>a(d)?.click())},[T(R,{src:a(C),alt:"",class:"h-full w-full object-cover"},null,8,["src"]),c("span",{class:"absolute right-2 top-2 grid h-6 w-6 place-items-center rounded-full bg-black text-white",onClick:St(S,["stop"])},[T(F,{class:"[&>path]:fill-white"})])])):(p(),y("button",{key:1,type:"button",class:"grid aspect-[1.4] place-items-center rounded-[12px] border border-grey-80 bg-white",onClick:L[5]||(L[5]=me=>a(d)?.click())},[T(N)]))]),c("input",{ref_key:"fileInput",ref:d,type:"file",accept:"image/*",class:"hidden",onChange:$},null,544)])]),c("div",xJe,[T(z,{label:a(n)("save"),loading:a(g),onClick:I},null,8,["label","loading"])])],32)}}}),wJe=Object.assign(kJe,{__name:"HouseAboutInfoEditPanel"}),CJe={class:"flex h-full flex-col bg-white px-6 pb-6"},$Je={class:"flex-1"},SJe={class:"min-w-0 flex-1"},AJe={class:"min-w-0 flex-1"},IJe=G({__name:"HouseAboutActionsPanel",emits:["go","close"],setup(e,{emit:t}){const s=st(),{t:n}=be();function r(d,f,h){return{editPanel:d,deletePanel:f,query:h}}const i=t,o=A(()=>{const d=String(s.query.panel??"");if(d==="house-about-group-actions"){const h=String(s.query.group_id??"");return r("house-about-group-edit","house-about-group-delete",{group_id:h})}if(d==="house-about-oss-actions"){const h=String(s.query.oss_file_id??"");return r("house-about-oss-edit","house-about-oss-delete",{oss_file_id:h})}if(d==="house-about-contact-actions"){const h=String(s.query.contact_id??"");return r("house-about-contact-edit","house-about-contact-delete",{contact_id:h})}const f=String(s.query.chat_id??"");return r("house-about-chat-edit","house-about-chat-delete",{chat_id:f})});function l(){i("go",{to:o.value.editPanel,query:o.value.query})}function u(){i("go",{to:o.value.deletePanel,query:o.value.query})}return(d,f)=>{const h=ag,g=Rs,m=jl,_=Ae("PrimaryButton");return p(),y("div",CJe,[c("div",$Je,[c("button",{type:"button",class:"flex min-h-14 w-full items-center gap-4 text-left text-16 text-black",onClick:l},[T(h,{"aria-hidden":"true"}),c("span",SJe,b(a(n)("aboutHouse.edit.actionEdit")),1),T(g,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})]),c("button",{type:"button",class:"flex min-h-14 w-full items-center gap-4 text-left text-16 text-black",onClick:u},[T(m,{"aria-hidden":"true",class:"[&>path]:fill-black"}),c("span",AJe,b(a(n)("delete")),1),T(g,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])]),T(_,{class:"w-full",variant:"secondary",label:a(n)("close"),onClick:f[0]||(f[0]=v=>i("close"))},null,8,["label"])])}}}),Dd=Object.assign(IJe,{__name:"HouseAboutActionsPanel"}),TJe={class:"flex h-full flex-col bg-white"},PJe={class:"flex flex-1 flex-col items-center justify-center px-6 pb-20 text-center"},DJe={class:"mt-8 text-24-bold text-black"},EJe=G({__name:"HouseAboutDeletePanel",emits:["go"],setup(e,{emit:t}){const s=st(),n=Rn(),{t:r}=be(),{userInfoStore:i}=Mn(),{$showSnackbar:o}=Te(),l=t,u=X(!1),d=A(()=>i.residence?.premisesId??null),f=A(()=>{const g=String(s.query.panel??"");return g==="house-about-group-delete"?()=>n.deleteGroup(d.value,String(s.query.group_id??"")):g==="house-about-oss-delete"?()=>n.deleteOssFile(d.value,String(s.query.oss_file_id??"")):g==="house-about-contact-delete"?()=>n.deleteContact(d.value,String(s.query.contact_id??"")):()=>n.deleteChat(d.value,String(s.query.chat_id??""))});async function h(){if(u.value)return;u.value=!0;const g=await f.value();if(u.value=!1,!g.ok){o(g.error?.message??r("aboutHouse.edit.deleteError"));return}await n.loadScreen(d.value),l("go",{to:"",replace:!0})}return(g,m)=>{const _=ya,v=Ae("PrimaryButton");return p(),y("div",TJe,[c("div",PJe,[T(_,{"aria-hidden":"true"}),c("h1",DJe,b(a(r)("aboutHouse.edit.actionDeleteTitle")),1),T(v,{class:"mt-6 w-full",label:a(r)("delete"),loading:a(u),onClick:h},null,8,["label","loading"]),T(v,{class:"mt-4 w-full",variant:"secondary",label:a(r)("cancel"),onClick:m[0]||(m[0]=k=>l("go","back"))},null,8,["label"])])])}}}),Ed=Object.assign(EJe,{__name:"HouseAboutDeletePanel"}),LJe={class:"flex-1 space-y-6 px-6 pb-6"},RJe={class:"text-24-bold text-black"},MJe={class:"space-y-3"},OJe={class:"text-16 text-black"},FJe=["src","alt"],NJe={class:"min-w-0 flex-1 truncate text-16 text-black"},BJe={class:"space-y-3"},VJe={class:"text-16 text-black"},HJe={class:"mt-1 text-13 text-grey-40"},qJe={class:"space-y-3"},jJe={class:"text-16 text-black"},UJe={class:"space-y-3"},zJe={class:"text-16 text-black"},WJe={class:"sticky bottom-0 bg-white p-6"},GJe=G({__name:"HouseAboutChatEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Rn(),o=Oe(),{$showSnackbar:l}=Te(),u=A(()=>o.residence?.premisesId??null),d=A(()=>String(n.query.chat_id??"")),f=A(()=>i.screen?.chats.find($=>$.premisesChatId===d.value)??null),h=X(!1);
77i.initChatDraft(d.value,f.value);const g=A({get:()=>i.chatDraft.messenger,set:$=>i.updateChatDraft({messenger:$})}),m=A({get:()=>i.chatDraft.link,set:$=>i.updateChatDraft({link:$})}),_=A({get:()=>i.chatDraft.name,set:$=>i.updateChatDraft({name:$})}),v=A({get:()=>i.chatDraft.description,set:$=>i.updateChatDraft({description:$})}),k=[{value:"telegram",title:"Telegram",image:"/images/house/about/telegram.png"},{value:"whatsapp",title:"WhatsApp",image:"/images/house/about/whats_app.png"},{value:"max",title:"MAX",image:"/images/house/about/max.png"},{value:"vk",title:"VK",image:"/images/house/about/vk.png"}],x=A(()=>k.find($=>$.value===g.value)??k[0]),C=A(()=>!!(m.value.trim()&&_.value.trim()));async function w(){if(h.value||!C.value)return;h.value=!0;const $=await i.saveAboutHouseChat(u.value,d.value,{messenger:g.value,link:m.value.trim(),name:_.value.trim(),description:v.value.trim()});if(h.value=!1,!$.ok){l($.error.message??r("aboutHouse.edit.saveError"));return}i.clearChatDraft(),await i.loadScreen(u.value),s("go",{to:"",replace:!0})}return($,S)=>{const I=Rs,P=Ae("LabeledTextField"),L=ti,D=Ae("PrimaryButton");return p(),y("form",{class:"relative flex min-h-full flex-col bg-white",onSubmit:St(w,["prevent"])},[c("div",LJe,[c("h1",RJe,b(a(r)("aboutHouse.edit.chat.title")),1),c("section",MJe,[c("h2",OJe,b(a(r)("aboutHouse.edit.chat.type")),1),c("button",{type:"button",class:"flex h-[56px] w-full items-center gap-3 rounded-lg border border-grey-80 bg-white px-4 text-left outline-none transition-colors hover:border-grey-40",onClick:S[0]||(S[0]=R=>s("go",{to:"house-about-messenger",query:{chat_id:a(d)}}))},[a(x).image?(p(),y("img",{key:0,src:a(x).image,alt:a(x).title,class:"h-5 w-5 shrink-0 object-contain"},null,8,FJe)):E("",!0),c("span",NJe,b(a(x).title),1),T(I,{class:"shrink-0 text-grey-40","aria-hidden":"true"})])]),c("section",BJe,[c("div",null,[c("h2",VJe,b(a(r)("aboutHouse.edit.chat.link")),1),c("p",HJe,b(a(r)("aboutHouse.edit.chat.linkDescr")),1)]),T(P,{modelValue:a(m),"onUpdate:modelValue":S[1]||(S[1]=R=>it(m)?m.value=R:null),label:a(r)("aboutHouse.edit.chat.linkPlaceholder")},null,8,["modelValue","label"])]),c("section",qJe,[c("h2",jJe,b(a(r)("aboutHouse.edit.chat.name")),1),T(P,{modelValue:a(_),"onUpdate:modelValue":S[2]||(S[2]=R=>it(_)?_.value=R:null),label:a(r)("aboutHouse.edit.chat.namePlaceholder")},null,8,["modelValue","label"])]),c("section",UJe,[c("h2",zJe,b(a(r)("aboutHouse.edit.description")),1),T(L,{modelValue:a(v),"onUpdate:modelValue":S[3]||(S[3]=R=>it(v)?v.value=R:null),multiline:!0,"placeholder-text":a(r)("aboutHouse.edit.chat.descriptionPlaceholder")},null,8,["modelValue","placeholder-text"])])]),c("div",WJe,[T(D,{label:a(r)("save"),loading:a(h),disabled:!a(C),onClick:w},null,8,["label","loading","disabled"])])],32)}}}),YJe=Object.assign(GJe,{__name:"HouseAboutChatEditPanel"}),KJe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function QJe(e,t){return p(),y("svg",KJe,[...t[0]||(t[0]=[c("path",{fill:"#11986C",d:"M20.293 5.293a1 1 0 1 1 1.414 1.414l-12 12a1 1 0 0 1-1.422-.008l-6-6.137a1 1 0 1 1 1.43-1.398l5.293 5.413z"},null,-1)])])}const Fg={render:QJe},XJe={class:"flex h-full min-h-0 flex-col overflow-hidden rounded-t-2xl bg-white px-6 pb-6 pt-6"},ZJe={class:"mb-6 flex items-center justify-between gap-6"},JJe={class:"text-24-bold text-black"},eet={class:"min-h-0 flex-1 overflow-y-auto"},tet=["onClick"],set=["src","alt"],net={class:"min-w-0 flex-1 truncate text-16 text-black"},ret={class:"shrink-0 pt-4"},iet=G({__name:"HouseAboutMessengerPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=[{value:"telegram",title:"Telegram",image:"/images/house/about/telegram.png"},{value:"whatsapp",title:"WhatsApp",image:"/images/house/about/whats_app.png"},{value:"max",title:"MAX",image:"/images/house/about/max.png"},{value:"vk",title:"VK",image:"/images/house/about/vk.png"}];function o(l){r.updateChatDraft({messenger:l}),s("go","back")}return(l,u)=>{const d=Fg,f=Ae("PrimaryButton");return p(),y("div",XJe,[c("div",ZJe,[c("h2",JJe,b(a(n)("aboutHouse.edit.chat.messengerPanelTitle")),1)]),c("div",eet,[(p(),y(j,null,le(i,h=>c("button",{key:h.value,type:"button",class:"flex min-h-14 w-full items-center gap-3 text-left",onClick:g=>o(h.value)},[c("img",{src:h.image,alt:h.title,class:"h-5 w-5 shrink-0 object-contain"},null,8,set),c("span",net,b(h.title),1),a(r).chatDraft.messenger===h.value?(p(),K(d,{key:0,class:"shrink-0","aria-hidden":"true"})):E("",!0)],8,tet)),64))]),c("div",ret,[T(f,{class:"w-full",variant:"secondary",label:a(n)("close"),onClick:u[0]||(u[0]=h=>s("go","back"))},null,8,["label"])])])}}}),oet=Object.assign(iet,{__name:"HouseAboutMessengerPanel"}),aet={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function cet(e,t){return p(),y("svg",aet,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M20 12a8 8 0 1 0-16 0 8 8 0 0 0 16 0m-9 4v-4a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0m1.009-9a1 1 0 1 1 0 2H12a1 1 0 1 1 0-2zM22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"},null,-1)])])}const uet={render:cet},det={class:"flex-1 space-y-6 px-6 pb-6"},fet={class:"text-24-bold text-black"},pet={class:"space-y-3"},het={class:"text-16 text-black"},met={class:"mt-1 text-13 text-grey-40"},get={class:"min-w-0 flex-1"},yet={class:"sticky bottom-0 p-6"},_et=G({__name:"HouseAboutCleaningEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=Oe(),{$showSnackbar:o}=Te(),l=A(()=>i.residence?.premisesId??null),u=X(r.screen?.cleaningSchedule??""),d=X(!1);function f(){s("go","house-about-cleaning-example")}async function h(){if(!d.value){d.value=!0;try{const g=await r.saveCleaning(l.value,u.value.trim());if(!g.ok){o(g.error.message??n("aboutHouse.edit.saveError"));return}await r.loadScreen(l.value),s("go",{to:"",replace:!0})}finally{d.value=!1}}}return(g,m)=>{const _=ti,v=uet,k=Rs,x=Ae("PrimaryButton");return p(),y("form",{class:"flex min-h-full flex-col",onSubmit:St(h,["prevent"])},[c("div",det,[c("h1",fet,b(a(n)("aboutHouse.edit.cleaning.title")),1),c("section",pet,[c("div",null,[c("h2",het,b(a(n)("aboutHouse.edit.cleaning.schedule")),1),c("p",met,b(a(n)("aboutHouse.edit.cleaning.scheduleDescr")),1)]),T(_,{modelValue:a(u),"onUpdate:modelValue":m[0]||(m[0]=C=>it(u)?u.value=C:null),multiline:!0,"placeholder-text":a(n)("aboutHouse.edit.cleaning.placeholder")},null,8,["modelValue","placeholder-text"])]),c("button",{type:"button",class:"flex w-full items-center gap-3 rounded-[12px] bg-grey-90 p-4 text-left text-16 text-black",onClick:f},[T(v),c("span",get,b(a(n)("aboutHouse.edit.cleaning.example")),1),T(k,{class:"[&>path]:fill-grey-40"})])]),c("div",yet,[T(x,{label:a(n)("save"),loading:a(d),onClick:h},null,8,["label","loading"])])],32)}}}),vet=Object.assign(_et,{__name:"HouseAboutCleaningEditPanel"}),bet={class:"flex h-full flex-col px-6 pb-6"},xet={class:"flex-1"},ket={class:"text-24-bold text-black"},wet={class:"mt-2 text-16 text-grey-40"},Cet={key:0,class:"mt-6 rounded-[12px] border border-grey-80 p-4"},$et={key:1,class:"mt-6 rounded-[12px] border border-grey-80 p-4"},Aet={class:"whitespace-pre-line text-13 text-black"},Iet={class:"shrink-0 pt-4"},Tet=G({__name:"HouseAboutCleaningExamplePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=Oe(),{$showSnackbar:o}=Te(),l=A(()=>i.residence?.premisesId??null),u=X(!1),d=X(""),f=A(()=>d.value||n("aboutHouse.edit.cleaning.exampleEmpty"));je(h);async function h(){u.value=!0;const g=await r.loadCleaningExample(l.value);if(u.value=!1,g.ok){d.value=g.data;return}o(g.error.message??n("aboutHouse.edit.loadError"))}return(g,m)=>{const _=Ae("PrimaryButton");return p(),y("div",bet,[c("div",xet,[c("h1",ket,b(a(n)("aboutHouse.edit.cleaning.example")),1),c("p",wet,b(a(n)("aboutHouse.edit.cleaning.exampleTitle")),1),a(u)?(p(),y("div",Cet,[...m[1]||(m[1]=[ls('<div class="h-4 w-32 animate-pulse rounded bg-grey-90"></div><div class="mt-3 h-4 w-full animate-pulse rounded bg-grey-90"></div><div class="mt-2 h-4 w-4/5 animate-pulse rounded bg-grey-90"></div><div class="mt-6 h-4 w-24 animate-pulse rounded bg-grey-90"></div><div class="mt-3 h-4 w-3/4 animate-pulse rounded bg-grey-90"></div>
77',5)])])):(p(),y("div",$et,[c("p",Aet,b(a(f)),1)]))]),c("div",Iet,[T(_,{class:"w-full",label:a(n)("aboutHouse.edit.cleaning.exampleOk"),onClick:m[0]||(m[0]=v=>s("go","back"))},null,8,["label"])])])}}}),Pet=Object.assign(Tet,{__name:"HouseAboutCleaningExamplePanel"}),Det={class:"flex-1 space-y-6 px-6 pb-6"},Eet={class:"text-24-bold text-black"},Let={class:"space-y-3"},Ret={class:"text-16 text-black"},Met={class:"min-w-0 flex-1 truncate text-16 text-black"},Oet={class:"space-y-3"},Fet={class:"text-16 text-black"},Net={class:"sticky bottom-0 bg-white p-6"},Bet=G({__name:"HouseAboutGroupEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Rn(),o=Oe(),{$showSnackbar:l}=Te(),u=A(()=>o.residence?.premisesId??null),d=A(()=>String(n.query.group_id??"")),f=X(!1),h=X(!1),g=[{value:"chairman",title:r("aboutHouse.edit.group.chairman")},{value:"init_group_man",title:r("aboutHouse.edit.group.member")},{value:"entrance_senior",title:r("aboutHouse.edit.group.mainInEntrance")}];i.initGroupDraft(d.value,null);const m=A({get:()=>i.groupDraft.role,set:$=>i.updateGroupDraft({role:$})}),_=A({get:()=>i.groupDraft.firstName,set:$=>i.updateGroupDraft({firstName:$})}),v=A({get:()=>i.groupDraft.lastName,set:$=>i.updateGroupDraft({lastName:$})}),k=A({get:()=>i.groupDraft.entrance,set:$=>i.updateGroupDraft({entrance:$})}),x=A(()=>g.find($=>$.value===m.value)?.title??r("aboutHouse.edit.group.chairman"));async function C(){if(!d.value)return;f.value=!0;const $=await i.loadGroupDetails(u.value,d.value);if(f.value=!1,!$.ok){l($.error.message??r("aboutHouse.edit.loadError"));return}i.initGroupDraft(d.value,$.data)}async function w(){if(h.value||f.value)return;h.value=!0;const $=await i.saveGroup(u.value,d.value,{premisesInfoInitGroupId:d.value,role:m.value,firstName:_.value.trim(),lastName:v.value.trim(),entrance:k.value.trim()});if(h.value=!1,!$.ok){l($.error.message??r("aboutHouse.edit.saveError"));return}i.clearGroupDraft(),await i.loadScreen(u.value),s("go",{to:"",replace:!0})}return je(C),($,S)=>{const I=Rs,P=Ae("LabeledTextField"),L=Ae("PrimaryButton");return p(),y("form",{class:"flex min-h-full flex-col bg-white",onSubmit:St(w,["prevent"])},[c("div",Det,[c("h1",Eet,b(a(r)("aboutHouse.edit.group.title")),1),c("section",Let,[c("h2",Ret,b(a(r)("aboutHouse.edit.group.role")),1),c("button",{type:"button",class:"flex h-[56px] w-full items-center gap-3 rounded-lg border border-grey-80 bg-white px-4 text-left outline-none transition-colors hover:border-paleLime-primary",onClick:S[0]||(S[0]=D=>s("go",{to:"house-about-group-role",query:{group_id:a(d)}}))},[c("span",Met,b(a(x)),1),T(I,{class:"shrink-0 text-grey-40","aria-hidden":"true"})]),a(m)==="entrance_senior"?(p(),K(P,{key:0,modelValue:a(k),"onUpdate:modelValue":S[1]||(S[1]=D=>it(k)?k.value=D:null),label:a(r)("aboutHouse.edit.group.entrance")},null,8,["modelValue","label"])):E("",!0)]),c("section",Oet,[c("h2",Fet,b(a(r)("aboutHouse.edit.group.personal")),1),T(P,{modelValue:a(v),"onUpdate:modelValue":S[2]||(S[2]=D=>it(v)?v.value=D:null),label:a(r)("aboutHouse.edit.group.lastName")},null,8,["modelValue","label"]),T(P,{modelValue:a(_),"onUpdate:modelValue":S[3]||(S[3]=D=>it(_)?_.value=D:null),label:a(r)("aboutHouse.edit.group.firstName")},null,8,["modelValue","label"])])]),c("div",Net,[T(L,{type:"submit",label:a(r)("save"),loading:a(h),disabled:a(f)},null,8,["label","loading","disabled"])])],32)}}}),Vet=Object.assign(Bet,{__name:"HouseAboutGroupEditPanel"}),Het={class:"flex h-full min-h-0 flex-col overflow-hidden rounded-t-2xl p-6"},qet={class:"mb-6 flex items-center justify-between gap-6"},jet={class:"text-24-bold text-black"},Uet={class:"min-h-0 flex-1 overflow-y-auto"},zet=["onClick"],Wet={class:"min-w-0 flex-1 truncate text-16 text-black"},Get={class:"shrink-0 pt-4"},Yet=G({__name:"HouseAboutGroupRolePanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=[{value:"chairman",title:n("aboutHouse.edit.group.chairman")},{value:"init_group_man",title:n("aboutHouse.edit.group.member")},{value:"entrance_senior",title:n("aboutHouse.edit.group.mainInEntrance")}];function o(l){r.setGroupRole(l),s("go","back")}return(l,u)=>{const d=Fg,f=Ae("PrimaryButton");return p(),y("div",Het,[c("div",qet,[c("h2",jet,b(a(n)("aboutHouse.edit.group.rolePanelTitle")),1)]),c("div",Uet,[(p(),y(j,null,le(i,h=>c("button",{key:h.value,type:"button",class:"flex min-h-14 w-full items-center gap-3 text-left",onClick:g=>o(h.value)},[c("span",Wet,b(h.title),1),a(r).groupDraft.role===h.value?(p(),K(d,{key:0,class:"shrink-0","aria-hidden":"true"})):E("",!0)],8,zet)),64))]),c("div",Get,[T(f,{class:"w-full",variant:"secondary",label:a(n)("close"),onClick:u[0]||(u[0]=h=>s("go","back"))},null,8,["label"])])])}}}),Ket=Object.assign(Yet,{__name:"HouseAboutGroupRolePanel"}),Qet={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Xet(e,t){return p(),y("svg",Qet,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M11.34 3.73c2.438-2.306 6.37-2.306 8.808 0 2.47 2.337 2.47 6.15 0 8.486l-9.027 8.54c-1.754 1.66-4.576 1.659-6.33 0a4.19 4.19 0 0 1 0-6.141l8.672-8.205a2.824 2.824 0 0 1 3.853 0 2.595 2.595 0 0 1 0 3.796l-7.61 7.2a1.001 1.001 0 0 1-1.376-1.452l7.611-7.2a.596.596 0 0 0 0-.891.824.824 0 0 0-1.103 0l-8.673 8.205c-.95.9-.951 2.335 0 3.235.983.93 2.598.93 3.581 0l9.027-8.54c1.636-1.547 1.636-4.033 0-5.58-1.667-1.577-4.392-1.577-6.06 0l-9.025 8.54a1.001 1.001 0 0 1-1.375-1.453z"},null,-1)])])}const Zet={render:Xet},Jet={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function ett(e,t){return p(),y("svg",Jet,[...t[0]||(t[0]=[c("path",{fill:"#909996",d:"M3 2a1 1 0 0 1 1 1v3.002A10 10 0 0 1 15.215 2.53a10.003 10.003 0 0 1 3.62 16.768 10 10 0 0 1-16.494-4.71 1 1 0 0 1 1.931-.518 8 8 0 0 0 8.251 5.912A8 8 0 1 0 5.073 8H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1"},null,-1)])])}const ttt={render:ett},stt={class:"flex-1 space-y-6 px-6 pb-6"},ntt={class:"text-24-bold text-black"},rtt={class:"space-y-3"},itt={class:"text-16 text-black"},ott={class:"relative min-w-0 flex-1 self-stretch"},att={key:0,class:"block truncate pt-6 text-16 text-black"},ltt={class:"space-y-3"},ctt={class:"text-16 text-black"},utt={class:"mt-1 text-13 text-grey-40"},dtt=["src"],ftt={class:"min-w-0 flex-1 truncate"},ptt={class:"space-y-3"},htt={class:"text-16 text-black"},mtt={class:"mt-1 text-13 text-grey-40"},gtt=["src"],ytt={class:"min-w-0 flex-1 truncate"},_tt={class:"sticky bottom-0 p-6"},vtt=G({__name:"HouseAboutOssEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Rn(),o=Oe(),{$showSnackbar:l}=Te(),u=A(()=>o.residence?.premisesId??null),d=A(()=>String(n.query.oss_file_id??"")),f=X(null),h=X(null),g=fn(new Map),m=X(""),_=X(""),v=X(!1),k=X(!1),x=A(()=>!!(i.ossDraft.startAt&&i.ossDraft.finishedAt&&(i.ossDraft.agendaFile||m.value))),C=A(()=>{const N=w(i.ossDraft.startAt),z=w(i.ossDraft.finishedAt);return N&&z?`${N} - ${z}`:N||z||""});function w(N){if(!N)return"";const z=new Date(`${N}T00:00:00`);return Number.isNaN(z.getTime())?"":new Intl.DateTimeFormat("ru-RU").format(z)}function $(){s("go","house-about-oss-period")}async function S(){if(!d.value)return;v.value=!0;const N=await i.loadOssFile(u.value,d.value);if(v.value=!1,!N.ok){l(N.error.message??r("aboutHouse.edit.loadError"));return}i.initOssDraft(d.value,N.data),m.value=N.data.agendaFile?.originalName??"",_.value=N.data.protocolFile?.originalName??""}async function I(N){const z=N.target,me=z.files?.[0]??null;i.updateOssDraft({agendaFile:await D(me,z)})}async function P(N){const z=N.target,me=z.files?.[0]??null;i.updateOssDraft({protocolFile:await D(me,z)})}function L(N){return M1(N)}async function D(N,z){if(z.value="",!N||!M1(N))return N;try{return await ma(N)}catch{return l(r("imageProcessError")),null}}function R(N){const z=g.value.get(N);if(z)return z;const me=URL.createObjectURL(N);return g.value.set(N,me),me}async function F(){if(!(k.value||v.value||!x.value)){k.value=!0;try{const N=await i.saveOssFile(u.value,d.value,{startAt:i.ossDraft.startAt,finishedAt:i.ossDraft.finishedAt,agendaFile:i.ossDraft.agendaFile,protocolFile:i.ossDraft.protocolFile});if(!N.ok){l(N.error.message??r("aboutHouse.edit.saveError"));return}await i.loadScreen(u.value),i.clearOssDraft(),s("go",{to:"",replace:!0})}finally{k.value=!1}}}return je(S),Tt(()=>{g.value.forEach(N=>URL.revokeObjectURL(N)),g.value.clear()}),(N,z)=>{const me=si,ge=Zet,fe=Ae("PrimaryButton"),te=ha,V=ttt;return p(),y("form",{class:"flex min-h-full flex-col",onSubmit:St(F,["prevent"])},[c("div",stt,[c("h1",ntt,b(a(r)("aboutHouse.edit.oss.title")),1),c("section",rtt,[c("h2",itt,b(a(r)("aboutHouse.edit.oss.period")),1),c("button",{type:"button",class:"box-border flex h-14 w-full items-center gap-3 rounded-[12px] border border-grey-80 px-3 text-left transition-colors auth:hover:bg-grey-90",onClick:$},[c("div",ott,[c("span",{class:oe(["absolute left-0 right-0 transition-all duration-200 ease-out text-grey-40",a(C)?"top-2 text-11":"top-1/2 -translate-y-1/2 text-16"])},b(a(r)("aboutHouse.edit.oss.periodPlaceholder")),3),a(C)?(p(),y("span",att,b(a(C)),1)):E("",!0)]),T(me,{class:"shrink-0 text-grey-40","aria-hidden":"true"})])]),c("section",ltt,[c("div",null,[c("h2",ctt,b(a(r)("aboutHouse.edit.oss.agenda")),1),c("p",utt,b(a(r)("aboutHouse.edit.oss.agendaDescr")),1)]),!a(i).ossDraft.agendaFile&&!a(m)?(p(),K(fe,{key:0,label:a(r)("aboutHouse.edit.oss.attach"),variant:"secondary",onClick:z[0]||(z[0]=pe=>a(f)?.click())},{icon:Xe(()=>[T(ge,{"aria-hidden":"true"})]),_:1},8,["label"])):(p(),y("button",{key:1,type:"button",class:"flex w-full items-center gap-4 roun
77ded-[16px] bg-grey-90 p-4 text-left text-20 text-black transition-colors auth:hover:bg-grey-80",onClick:z[1]||(z[1]=pe=>a(f)?.click())},[a(i).ossDraft.agendaFile&&L(a(i).ossDraft.agendaFile)?(p(),y("img",{key:0,src:R(a(i).ossDraft.agendaFile),alt:"",class:"h-6 w-6 shrink-0 rounded-[8px] object-cover"},null,8,dtt)):(p(),K(te,{key:1,class:"shrink-0","aria-hidden":"true"})),c("span",ftt,b(a(i).ossDraft.agendaFile?.name||a(m)),1),T(V,{class:"shrink-0","aria-hidden":"true"})])),c("input",{ref_key:"agendaInput",ref:f,type:"file",class:"hidden",onChange:I},null,544)]),c("section",ptt,[c("div",null,[c("h2",htt,b(a(r)("aboutHouse.edit.oss.protocol")),1),c("p",mtt,b(a(r)("aboutHouse.edit.oss.protocolDescr")),1)]),!a(i).ossDraft.protocolFile&&!a(_)?(p(),K(fe,{key:0,label:a(r)("aboutHouse.edit.oss.attach"),variant:"secondary",onClick:z[2]||(z[2]=pe=>a(h)?.click())},{icon:Xe(()=>[T(ge,{"aria-hidden":"true"})]),_:1},8,["label"])):(p(),y("button",{key:1,type:"button",class:"flex h-[88px] w-full items-center gap-4 rounded-[16px] bg-grey-90 px-6 text-left text-20 text-black transition-colors auth:hover:bg-grey-80",onClick:z[3]||(z[3]=pe=>a(h)?.click())},[a(i).ossDraft.protocolFile&&L(a(i).ossDraft.protocolFile)?(p(),y("img",{key:0,src:R(a(i).ossDraft.protocolFile),alt:"",class:"h-6 w-6 shrink-0 rounded-[8px] object-cover"},null,8,gtt)):(p(),K(te,{key:1,class:"shrink-0","aria-hidden":"true"})),c("span",ytt,b(a(i).ossDraft.protocolFile?.name||a(_)),1),T(V,{class:"shrink-0","aria-hidden":"true"})])),c("input",{ref_key:"protocolInput",ref:h,type:"file",class:"hidden",onChange:P},null,544)])]),c("div",_tt,[T(fe,{label:a(r)("save"),loading:a(k),disabled:!a(x)||a(v),onClick:F},null,8,["label","loading","disabled"])])],32)}}}),btt=Object.assign(vtt,{__name:"HouseAboutOssEditPanel"}),xtt={class:"flex h-full flex-col"},ktt={class:"flex-1 overflow-y-auto px-6 pb-6"},wtt={class:"text-24-bold text-black"},Ctt={class:"mt-2 text-16 text-grey-40"},$tt={class:"mt-6 overflow-hidden"},Stt={class:"space-y-3 px-6 pb-6 pt-4"},Att=G({__name:"HouseAboutOssPeriodPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),r=Rn(),i=X({start:l(r.ossDraft.startAt),end:l(r.ossDraft.finishedAt)}),o=A(()=>!!(i.value.start&&i.value.end));function l(h){if(!h)return null;const g=new Date(`${h}T00:00:00`);return Number.isNaN(g.getTime())?null:g}function u(h){const g=h.getFullYear(),m=String(h.getMonth()+1).padStart(2,"0"),_=String(h.getDate()).padStart(2,"0");return`${g}-${m}-${_}`}function d(){!i.value.start||!i.value.end||(r.updateOssDraft({startAt:u(i.value.start),finishedAt:u(i.value.end)}),s("go",{to:"house-about-oss-edit",replace:!0}))}function f(){i.value={start:null,end:null},r.updateOssDraft({startAt:"",finishedAt:""}),s("go",{to:"house-about-oss-edit",replace:!0})}return(h,g)=>{const m=Ae("VDatePicker"),_=Ae("PrimaryButton");return p(),y("div",xtt,[c("div",ktt,[c("h1",wtt,b(a(n)("aboutHouse.edit.oss.periodPanelTitle")),1),c("p",Ctt,b(a(n)("aboutHouse.edit.oss.periodPanelDescr")),1),c("div",$tt,[T(m,{modelValue:a(i),"onUpdate:modelValue":g[0]||(g[0]=v=>it(i)?i.value=v:null),modelModifiers:{range:!0},borderless:"",expanded:"",color:"green"},null,8,["modelValue"])])]),c("div",Stt,[T(_,{label:a(n)("aboutHouse.edit.oss.selectPeriod"),disabled:!a(o),onClick:d},null,8,["label","disabled"]),T(_,{variant:"secondary",label:a(n)("reset"),onClick:f},null,8,["label"])])])}}}),Itt=Object.assign(Att,{__name:"HouseAboutOssPeriodPanel"}),Ttt={class:"flex-1 space-y-6 px-6 pb-6"},Ptt={class:"text-24-bold text-black"},Dtt={class:"space-y-3"},Ett={class:"text-16 text-black"},Ltt={class:"space-y-3"},Rtt={class:"text-16 text-black"},Mtt={class:"sticky bottom-0 bg-white p-6"},Ott=G({__name:"HouseAboutContactEditPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),i=Rn(),o=Oe(),{$showSnackbar:l}=Te(),u=zl(),d=A(()=>o.residence?.premisesId??null),f=A(()=>String(n.query.contact_id??"")),h=A(()=>i.screen?.contacts.find(w=>w.premisesContactId===f.value)??null),g=X(!1),m=X(h.value?.name??""),_=X(C(h.value?.phone??"")),v=A(()=>_.value.replace(/\D+/g,"")),k=A(()=>!!(m.value.trim()&&v.value.length===11&&v.value.startsWith("7")));async function x(){if(g.value||!k.value)return;g.value=!0;const w=await i.saveContact(d.value,f.value,{name:m.value.trim(),phone:v.value});if(g.value=!1,!w.ok){l(w.error.message??r("aboutHouse.edit.saveError"));return}await i.loadScreen(d.value),s("go",{to:"",replace:!0})}function C(w){const $=w.replace(/\D+/g,"").slice(0,11);return u("",$,$.length,$.length).text}return(w,$)=>{const S=Ae("LabeledTextField"),I=Ae("PrimaryButton");return p(),y("form",{class:"flex min-h-full flex-col bg-white",onSubmit:St(x,["prevent"])},[c("div",Ttt,[c("h1",Ptt,b(a(r)("aboutHouse.edit.contact.title")),1),c("section",Dtt,[c("h2",Ett,b(a(r)("aboutHouse.edit.contact.name")),1),T(S,{modelValue:a(m),"onUpdate:modelValue":$[0]||($[0]=P=>it(m)?m.value=P:null),label:a(r)("aboutHouse.edit.contact.namePlaceholder")},null,8,["modelValue","label"])]),c("section",Ltt,[c("h2",Rtt,b(a(r)("aboutHouse.edit.contact.phone")),1),T(S,{modelValue:a(_),"onUpdate:modelValue":$[1]||($[1]=P=>it(_)?_.value=P:null),type:"tel","input-mode":"tel",autocomplete:"tel",label:a(r)("loginPhone.placeholder"),formatter:a(u),"digits-only-on-paste":!0},null,8,["modelValue","label","formatter"])])]),c("div",Mtt,[T(I,{label:a(r)("save"),loading:a(g),disabled:!a(k),onClick:x},null,8,["label","loading","disabled"])])],32)}}}),Ftt=Object.assign(Ott,{__name:"HouseAboutContactEditPanel"}),Ntt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Btt(e,t){return p(),y("svg",Ntt,[...t[0]||(t[0]=[c("path",{fill:"#F9F9F9","fill-rule":"evenodd",d:"M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0","clip-rule":"evenodd"},null,-1)])])}const Vtt={render:Btt},Htt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function qtt(e,t){return p(),y("svg",Htt,[...t[0]||(t[0]=[c("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12.261 4.568a1 1 0 0 0-.522 0c-.147.04-.314.146-1.09.75l-5.8 4.51c-.498.388-.59.471-.653.556a1 1 0 0 0-.159.325c-.028.1-.037.225-.037.856V17.8c0 .576 0 .949.024 1.232.022.272.06.372.085.422a1 1 0 0 0 .437.437c.05.025.15.063.422.085.283.023.655.024 1.232.024h.6c.577 0 .949 0 1.232-.024.272-.022.373-.06.422-.085a1 1 0 0 0 .437-.437c.025-.05.063-.15.085-.422C9 18.75 9 18.377 9 17.8V16a3 3 0 1 1 6 0v1.8c0 .576 0 .949.024 1.232.022.272.06.372.085.422a1 1 0 0 0 .437.437c.05.025.15.063.422.085.283.023.655.024 1.232.024h.6c.576 0 .949 0 1.232-.024.272-.022.372-.06.422-.085a1 1 0 0 0 .437-.437c.025-.05.063-.15.085-.422C20 18.75 20 18.377 20 17.8v-6.235c0-.631-.009-.755-.037-.856a1 1 0 0 0-.159-.325c-.062-.085-.155-.168-.653-.556l-5.8-4.51c-.776-.604-.943-.71-1.09-.75m-1.045-1.93a3 3 0 0 1 1.568 0c.588.16 1.094.554 1.671 1.004l.123.097 5.8 4.51.078.061c.377.292.709.55.956.884.217.294.379.624.477.975.112.4.112.82.111 1.298v6.372c0 .527 0 .981-.03 1.356-.033.395-.104.789-.297 1.167a3 3 0 0 1-1.311 1.311c-.378.193-.772.264-1.167.296-.375.031-.83.031-1.356.031h-.678c-.527 0-.982 0-1.356-.03-.395-.033-.789-.104-1.167-.297a3 3 0 0 1-1.311-1.311c-.193-.378-.264-.772-.296-1.167C13 18.82 13 18.365 13 17.838V16a1 1 0 1 0-2 0v1.838c0 .528 0 .982-.03 1.357-.033.395-.104.789-.297 1.167a3 3 0 0 1-1.311 1.311c-.378.193-.772.264-1.167.296C7.82 22 7.365 22 6.839 22H6.16c-.527 0-.981 0-1.356-.03-.395-.033-.789-.104-1.167-.297a3 3 0 0 1-1.311-1.311c-.193-.378-.264-.772-.296-1.167C2 18.82 2 18.365 2 17.838v-6.371c0-.477-.001-.897.111-1.298a3 3 0 0 1 .477-.975c.247-.334.58-.592.956-.884l.077-.06 5.8-4.511.124-.097c.577-.45 1.083-.845 1.67-1.004","clip-rule":"evenodd"},null,-1)])])}const jtt={render:qtt},Utt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function ztt(e,t){return p(),y("svg",Utt,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M12 2c.866 0 1.494-.008 2.035.137a4 4 0 0 1 2.828 2.828c.083.308.113.645.126 1.038.48.003.9.011 1.263.04.562.047 1.08.145 1.564.392a4 4 0 0 1 1.749 1.748c.247.486.345 1.003.391 1.565.045.55.044 1.228.044 2.052v4.4c0 .823.001 1.501-.044 2.052-.046.562-.144 1.079-.392 1.564a4 4 0 0 1-1.748 1.748c-.485.248-1.002.346-1.564.392-.55.045-1.228.044-2.052.044H7.8c-.824 0-1.502 0-2.052-.044-.562-.046-1.08-.144-1.564-.392a4 4 0 0 1-1.748-1.748c-.248-.485-.346-1.002-.392-1.564C1.999 17.702 2 17.023 2
7716.2v-4.4c0-.824-.001-1.502.044-2.052.046-.562.144-1.08.392-1.565a4 4 0 0 1 1.748-1.748c.485-.247 1.002-.345 1.564-.391.363-.03.782-.038 1.262-.041.013-.393.044-.73.127-1.038a4 4 0 0 1 2.828-2.828C10.505 1.992 11.135 2 12 2M7.8 8c-.857 0-1.439 0-1.889.037-.438.036-.663.1-.82.18a2 2 0 0 0-.873.875c-.08.156-.145.38-.18.819C4 10.361 4 10.943 4 11.8v4.4c0 .856 0 1.439.037 1.889.036.438.101.663.18.819a2 2 0 0 0 .875.874c.156.08.38.145.82.18C6.361 20 6.942 20 7.8 20h8.4c.857 0 1.439 0 1.889-.037.438-.036.663-.101.82-.18a2 2 0 0 0 .873-.875c.08-.156.145-.38.18-.82.038-.45.038-1.032.038-1.888v-4.4c0-.857 0-1.439-.037-1.889-.036-.438-.101-.663-.18-.82a2 2 0 0 0-.875-.873c-.156-.08-.38-.145-.82-.181a12 12 0 0 0-.791-.032L16.2 8zM12 4c-.994 0-1.295.009-1.518.068a2 2 0 0 0-1.414 1.414c-.031.119-.048.26-.057.518h5.978a2.3 2.3 0 0 0-.057-.518 2 2 0 0 0-1.414-1.414C13.295 4.008 12.994 4 12 4","clip-rule":"evenodd"},null,-1)])])}const Wtt={render:ztt},Gtt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Ytt(e,t){return p(),y("svg",Gtt,[...t[0]||(t[0]=[c("path",{fill:"#F5C658",d:"M11.44 2.62c.356-.159.765-.159 1.12 0 .259.117.437.33.58.54.146.215.304.504.494.847l1.464 2.653c.206.373.267.474.342.55a.9.9 0 0 0 .27.189c.1.046.22.07.647.142l3.046.503c.409.068.75.123 1.01.19.254.067.525.164.724.375.273.289.404.684.352 1.079-.037.29-.203.527-.37.726-.173.204-.418.444-.71.731l-2.103 2.068c-.315.31-.4.398-.452.493a.9.9 0 0 0-.104.308c-.014.105-.001.225.064.656l.433 2.881c.06.392.109.721.123.982.015.255.003.538-.138.789a1.35 1.35 0 0 1-.911.659c-.28.056-.552-.015-.795-.104-.249-.09-.554-.234-.92-.406l-2.838-1.334c-.385-.18-.495-.229-.603-.248a1 1 0 0 0-.33 0c-.107.02-.218.068-.602.248l-2.84 1.334c-.364.172-.67.316-.918.407-.244.088-.516.159-.795.103a1.35 1.35 0 0 1-.911-.66c-.141-.25-.153-.533-.139-.788.015-.26.064-.59.123-.982l.434-2.88c.065-.433.077-.552.063-.657a.9.9 0 0 0-.103-.308c-.053-.095-.138-.183-.452-.493l-2.103-2.068c-.292-.287-.537-.527-.71-.731-.168-.199-.333-.437-.371-.726-.051-.395.08-.79.353-1.08.199-.21.47-.307.723-.373.26-.068.602-.123 1.01-.19l3.047-.504c.426-.071.547-.096.647-.142a.9.9 0 0 0 .27-.189c.075-.076.136-.177.342-.55l1.463-2.653c.19-.343.35-.632.495-.846.143-.211.321-.424.58-.54"},null,-1)])])}const Ktt={render:Ytt},Qtt={class:"flex h-full flex-col"},Xtt={class:"flex flex-1 flex-col overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},Ztt={class:"text-24-bold text-black"},Jtt={key:0,class:"mt-6 space-y-4"},est={key:1,class:"mt-6 text-11 text-grey-40"},tst={key:2,class:"mt-4 whitespace-pre-line text-16 text-black"},sst={class:"mt-6 space-y-2"},nst={key:0,class:"flex items-start gap-3 rounded-[12px] bg-grey-90 p-4"},rst={class:"min-w-0 flex-1"},ist={class:"text-13 text-grey-40"},ost={key:0,class:"mt-1 text-16 text-black"},ast={class:"flex"},lst=["disabled"],cst=["src","alt"],ust={class:"ml-3 min-w-0 flex-1"},dst={class:"truncate text-16 text-black"},fst={class:"mt-1 truncate text-13 text-grey-40"},pst=["aria-label"],hst={key:1,class:"ml-3 shrink-0 rounded-full bg-white px-2 py-1 text-13 text-grey-40"},mst={key:2,class:"flex items-center gap-3 rounded-[12px] bg-grey-90 p-4"},gst={class:"min-w-0 flex-1"},yst={class:"mt-1 truncate text-13 text-grey-40"},_st={class:"mt-1 text-16 text-black"},vst={class:"flex"},bst={key:3,class:"mt-6 flex flex-col gap-4"},xst={class:"min-w-0 flex-1"},kst={class:"text-16 text-black"},wst={class:"mt-1 text-13 text-grey-40"},Cst={class:"min-w-0 flex-1"},$st={class:"text-16 text-black"},Sst={class:"mt-1 text-13 text-grey-40"},Ast={key:2,class:"rounded-[16px] bg-grey-90 p-4"},Ist={class:"text-16 text-black"},Tst={key:4,class:"mt-auto pt-6 text-center"},Pst={class:"text-16 text-black"},Dst={class:"mt-2 flex justify-center gap-0.5"},Est={key:2,class:"mt-10 text-center text-16 text-grey-40"},Lst={key:0,class:"space-y-2 p-6"},Rst=G({__name:"MaintenanceAndRepairDetailPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{userInfoStore:i}=Mn(),o=So(),l=A(()=>o.detail),u=A(()=>l.value?.scheduledWorkTitle||r("maintenanceAndRepair.detail")),d=A(()=>(l.value?.claimExecutor?.rating??0)>0),f=A(()=>(l.value?.claimExecutor?.rating??0).toFixed(1)),h=A(()=>l.value?.claimResultComment.trim()??""),g=A(()=>h.value.length>0),m=A(()=>l.value?.allAttachmentImage.length??0),_=A(()=>l.value?.allAttachmentDocuments.length??0),v=A(()=>m.value>0||_.value>0),k=A(()=>`${m.value} ${hu(m.value,{one:"ÑоÑо",few:"ÑоÑо",many:"ÑоÑо"})} и ${_.value} ${hu(_.value,{one:"Ñайл",few:"Ñайла",many:"Ñайлов"})}`),x=A(()=>!!(l.value?.isShowProgressSteps&&l.value.claimId)),C=A(()=>!!(x.value||v.value||g.value)),w=X(null),$=X(!1),S=X(!1),I=A(()=>{if(!$.value)return{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:"2"}});let P=null;je(()=>{o.loadDetail(i.residence?.premisesId??null,typeof n.query.maintenance_and_repair_id=="string"?n.query.maintenance_and_repair_id:"",typeof n.query.claim_id=="string"?n.query.claim_id:null)});function L(te){const V=te.target;if(!(V instanceof HTMLImageElement))return;const pe="/images/avatar_placeholder.png";V.src.endsWith(pe)||(V.src=pe)}function D(){const te=l.value?.claimExecutor?.id;te&&s("go",{to:"executor-info",query:{executor_id:te,maintenance_and_repair_id:typeof n.query.maintenance_and_repair_id=="string"?n.query.maintenance_and_repair_id:void 0,claim_id:l.value?.claimId||void 0,premises_id:typeof n.query.premises_id=="string"?n.query.premises_id:void 0}})}function R(te){const V=new Date(te);return Number.isNaN(V.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(V)}function F(){s("go",{to:"maintenance-and-repair-progress",query:{claim_id:l.value?.claimId??""}})}function N(){s("go",{to:"maintenance-and-repair-result",query:{maintenance_and_repair_id:typeof n.query.maintenance_and_repair_id=="string"?n.query.maintenance_and_repair_id:void 0,claim_id:l.value?.claimId||void 0}})}function z(){s("go",{to:"maintenance-and-repair-vote",query:{claim_id:l.value?.claimId??""}})}function me(){const te=w.value;if(!te||!g.value){S.value=!1;return}const V=te.style,pe=V.display,ye=V.overflow,ne=V.webkitBoxOrient,ve=V.webkitLineClamp;V.display="-webkit-box",V.overflow="hidden",V.webkitBoxOrient="vertical",V.webkitLineClamp="2",S.value=te.scrollHeight>te.clientHeight+1,V.display=pe,V.overflow=ye,V.webkitBoxOrient=ne,V.webkitLineClamp=ve}function ge(){P?.disconnect(),P=null,!(!w.value||typeof ResizeObserver>"u")&&(P=new ResizeObserver(()=>{me()}),P.observe(w.value))}function fe(){$.value=!$.value}return Se(h,async()=>{$.value=!1,await lt(),ge(),me()},{immediate:!0,flush:"post"}),Tt(()=>{P?.disconnect()}),(te,V)=>{const pe=Vtt,ye=Y0,ne=jtt,ve=Mg,J=Wtt,he=Rs,Ee=J0,He=Ktt;return p(),y("section",Qtt,[c("div",Xtt,[c("h1",Ztt,b(a(u)),1),a(o).isDetailLoa
77ding?(p(),y("div",Jtt,[(p(),y(j,null,le(4,de=>c("div",{key:de,class:"h-16 rounded-[12px] bg-grey-90"})),64))])):a(l)?(p(),y(j,{key:1},[a(l).claimStatus?.text?(p(),y("div",{key:0,class:oe(["mt-6 flex items-center justify-center gap-3 rounded-[12px] px-4 py-3 text-16-bold",a(l).claimStatus.isDone?"bg-paleLime-90 text-emerald-primary":"bg-purple-90 text-purple-50"])},[a(l).claimStatus.isDone?(p(),K(pe,{key:0})):(p(),K(ye,{key:1})),Qe(" "+b(a(l).claimStatus.text),1)],2)):E("",!0),a(l).claimId&&a(l).claimCreatedAt?(p(),y("p",est,b(R(a(l).claimCreatedAt)),1)):E("",!0),a(l).scheduledWorkDescription?(p(),y("p",tst,b(a(l).scheduledWorkDescription),1)):E("",!0),c("div",sst,[a(l).scheduledWorkAddress||a(l).scheduledWorkPlace?(p(),y("div",nst,[c("div",rst,[c("p",ist,b(a(l).scheduledWorkAddress),1),a(l).scheduledWorkPlace?(p(),y("p",ost,b(a(l).scheduledWorkPlace),1)):E("",!0)]),c("div",ast,[T(ne)])])):E("",!0),a(l).claimExecutorShortName||a(l).claimExecutor?.name?(p(),y("button",{key:1,type:"button",class:oe(["flex min-h-[56px] w-full items-center rounded-[12px] bg-grey-90 px-4 py-3 text-left transition-colors auth:hover:bg-grey-80",{"cursor-default auth:hover:bg-grey-90":!a(l).claimExecutor?.id}]),disabled:!a(l).claimExecutor?.id,onClick:D},[c("img",{src:a(l).claimExecutor?.imageUrl||"/images/avatar_placeholder.png",alt:a(l).claimExecutor?.name||a(l).claimExecutorShortName,class:"h-[44px] w-[44px] shrink-0 rounded-full object-cover",draggable:"false",onError:L},null,40,cst),c("div",ust,[c("h2",dst,b(a(l).claimExecutor?.name||a(l).claimExecutorShortName),1),c("p",fst,b(a(l).claimExecutor?.profession||a(r)("maintenanceAndRepair.executor")),1)]),a(d)?(p(),y("div",{key:0,class:"ml-3 flex shrink-0 items-center gap-1 rounded-full bg-white px-2 py-1 text-13","aria-label":a(r)("maintenanceAndRepair.executorRating",{rating:a(f)})},[T(ve,{class:"shrink-0","aria-hidden":"true"}),c("span",null,b(a(f)),1)],8,pst)):a(l).claimExecutor?.id?(p(),y("div",hst,b(a(r)("maintenanceAndRepair.noRating")),1)):E("",!0)],10,lst)):E("",!0),a(l).scheduledWorkUkName?(p(),y("div",mst,[c("div",gst,[c("p",yst,b(a(r)("maintenanceAndRepair.managementCompany")),1),c("p",_st,b(a(l).scheduledWorkUkName),1)]),c("div",vst,[T(J)])])):E("",!0)]),a(C)?(p(),y("div",bst,[a(x)?(p(),y("button",{key:0,type:"button",class:"flex w-full items-start gap-3 rounded-[12px] bg-grey-90 p-4 text-left transition-colors auth:hover:bg-grey-80",onClick:F},[c("div",xst,[c("div",kst,b(a(r)("maintenanceAndRepair.progress")),1),c("div",wst,b(a(r)("maintenanceAndRepair.progressDescription")),1)]),T(he,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])):E("",!0),a(v)?(p(),y("button",{key:1,type:"button",class:"flex w-full items-center gap-3 rounded-[12px] bg-grey-90 px-4 py-3 text-left transition-colors auth:hover:bg-grey-80",onClick:N},[c("div",Cst,[c("div",$st,b(a(r)("drawerClaimInfo.materials")),1),c("div",Sst,b(a(k)),1)]),T(he,{class:"shrink-0 [&>path]:fill-grey-40","aria-hidden":"true"})])):E("",!0),a(g)?(p(),y("div",Ast,[c("div",Ist,b(a(r)("drawerClaimResult.title")),1),c("div",{ref_key:"resultCommentTextRef",ref:w,class:"mt-4 whitespace-pre-line break-words text-13 text-grey-40",style:kt(a(I))},b(a(h)),5),a(S)?(p(),y("button",{key:0,type:"button",class:"mt-2 inline-flex items-center gap-1 text-13 text-paleLime-primary",onClick:fe},[c("span",null,b(a($)?a(r)("drawerClaimInfo.hide"):a(r)("drawerClaimInfo.showFull")),1),T(Ee,{class:oe(["h-4 w-4 shrink-0 transition-transform duration-200",{"rotate-180":a($)}])},null,8,["class"])])):E("",!0)])):E("",!0)])):E("",!0),a(l).isVisibleStarsValue&&a(l).starsValue?(p(),y("div",Tst,[c("p",Pst,b(a(r)("maintenanceAndRepair.yourRating")),1),c("div",Dst,[(p(),y(j,null,le(5,de=>T(He,{key:de,class:oe(["h-6 w-6",de<=a(l).starsValue?"[&>path]:fill-yellow-50":"[&>path]:fill-grey-40"])},null,8,["class"])),64))])])):E("",!0)],64)):(p(),y("p",Est,b(a(r)("maintenanceAndRepair.detailEmpty")),1))]),a(l)?.isVisibleStarsDialog&&a(l).claimId?(p(),y("div",Lst,[T(a(vt),{class:"w-full",label:a(r)("maintenanceAndRepair.vote"),onClick:z},null,8,["label"])])):E("",!0)])}}}),Mst=Object.assign(Rst,{__name:"MaintenanceAndRepairDetailPanel"}),Ost={class:"flex h-full flex-col px-6 pb-6"},Fst={class:"text-24-bold text-black"},Nst={key:0,class:"mt-6 space-y-4"},Bst={key:1,class:"flex flex-1 items-center justify-center text-center text-16 text-grey-40"},Vst={key:2,class:"mt-6 flex-1 overflow-y-auto scrollbar-4-grey80"},Hst={class:"mt-1 flex h-6 w-6 shrink-0 items-center justify-center"},qst={class:"min-w-0 flex-1"},jst={class:"text-16 text-black"},Ust={class:"mt-2 text-13 text-grey-40"},zst=G({__name:"MaintenanceAndRepairProgressPanel",setup(e){const t=st(),{t:s}=be(),{userInfoStore:n}=Mn(),r=So(),i=A(()=>r.progress?.steps??[]),o=A(()=>r.progress?.status==="completed"?"bg-emerald-primary":r.progress?.status==="canceled"?"bg-red-50":"bg-purple-50");je(()=>{r.loadProgress(n.residence?.premisesId??null,typeof t.query.claim_id=="string"?t.query.claim_id:"")});function l(u){const d=new Date(u);return Number.isNaN(d.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(d)}return(u,d)=>(p(),y("section",Ost,[c("h1",Fst,b(a(s)("maintenanceAndRepair.progress")),1),a(r).isProgressLoading?(p(),y("div",Nst,[(p(),y(j,null,le(5,f=>c("div",{key:f,class:"h-16 rounded-[12px] bg-grey-90"})),64))])):a(i).length?(p(),y("div",Vst,[(p(!0),y(j,null,le(a(i),f=>(p(),y("div",{key:`${f.title}-${f.date}`,class:"flex items-start gap-4 pb-5"},[c("div",Hst,[c("span",{class:oe(["h-3 w-3 rounded-full",f.isFinal?a(o):"bg-purple-50"])}
77,null,2)]),c("div",qst,[c("p",jst,b(f.title),1),c("p",Ust,b(l(f.date)),1)])]))),128))])):(p(),y("div",Bst,b(a(s)("maintenanceAndRepair.emptyProgress")),1))]))}}),Wst=Object.assign(zst,{__name:"MaintenanceAndRepairProgressPanel"}),Gst={class:"flex h-full flex-col"},Yst={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},Kst={class:"text-24-bold text-black"},Qst={key:0,class:"mt-6 grid grid-cols-2 gap-1 rounded-[12px] bg-grey-80 p-1"},Xst=["aria-pressed","onClick"],Zst={key:1,class:"mt-4"},Jst={class:"text-11 text-black"},ent={key:2,class:"mt-4"},tnt={class:"text-11 text-black"},snt={key:3,class:"mt-10 text-center text-16 text-grey-40"},nnt=G({__name:"MaintenanceAndRepairResultPanel",setup(e){const t=G({props:{files:{type:Array,required:!0}},setup(m){const _=Ne();function v(x){if(!_.sessionToken||!x.url)return x.url;const C=new URL(x.url,window.location.origin);return C.searchParams.set("btlrsid",_.sessionToken),C.toString()}function k(x){const C=v(x);C&&window.open(C,"_blank","noopener,noreferrer")}return()=>ot("div",{class:m.files.some(x=>x.isImage)?"space-y-4":"space-y-2"},m.files.map(x=>x.isImage?ot("button",{type:"button",class:"block aspect-[267/162] w-full overflow-hidden rounded-[8px] bg-grey-90",onClick:()=>k(x)},[ot("img",{src:v(x),alt:x.name,class:"h-full w-full object-cover"})]):ot("button",{type:"button",class:"flex min-h-9 w-full items-center gap-3 rounded-[8px] bg-grey-90 px-3 py-2 text-left text-black",onClick:()=>k(x)},[ot(ha),ot("span",{class:"min-w-0 truncate text-11"},x.name)])))}}),{t:s}=be(),n=So(),r=X("photos"),i=A(()=>[{label:s("maintenanceAndRepair.photos"),value:"photos"},{label:s("maintenanceAndRepair.files"),value:"files"}]),o=A(()=>n.detail),l=A(()=>(o.value?.allAttachmentImage.length??0)>0),u=A(()=>(o.value?.allAttachmentDocuments.length??0)>0),d=A(()=>r.value==="photos"?o.value?.allAttachmentImage??[]:o.value?.allAttachmentDocuments??[]),f=A(()=>d.value.filter(m=>m.isBefore)),h=A(()=>d.value.filter(m=>!m.isBefore)),g=A(()=>r.value==="files"?s("maintenanceAndRepair.beforeFiles"):s("maintenanceAndRepair.beforePhoto"));return Pl(()=>{!l.value&&u.value&&(r.value="files")}),(m,_)=>(p(),y("section",Gst,[c("div",Yst,[c("h1",Kst,b(a(s)("maintenanceAndRepair.result")),1),a(l)&&a(u)?(p(),y("div",Qst,[(p(!0),y(j,null,le(a(i),v=>(p(),y("button",{key:v.value,type:"button",class:oe(["h-12 flex-1 rounded-[8px] px-3 text-center text-16 text-black transition-colors",a(r)===v.value?"bg-white":""]),"aria-pressed":a(r)===v.value,onClick:k=>r.value=v.value},b(v.label),11,Xst))),128))])):E("",!0),a(f).length?(p(),y("div",Zst,[c("p",Jst,b(a(g)),1),T(a(t),{class:"mt-4",files:a(f)},null,8,["files"])])):E("",!0),a(h).length?(p(),y("div",ent,[c("p",tnt,b(a(s)("maintenanceAndRepair.afterResult")),1),T(a(t),{class:"mt-4",files:a(h)},null,8,["files"])])):E("",!0),!a(f).length&&!a(h).length?(p(),y("div",snt,b(a(s)("maintenanceAndRepair.emptyResult")),1)):E("",!0)])]))}}),rnt=Object.assign(nnt,{__name:"MaintenanceAndRepairResultPanel"}),int={class:"flex h-full flex-col"},ont={class:"flex-1 px-6 pb-6"},ant={class:"text-24-bold text-center text-black"},lnt={class:"mt-8 flex justify-center gap-2"},cnt=["onClick"],unt={class:"p-6"},dnt=G({__name:"MaintenanceAndRepairVotePanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{$showSnackbar:i}=Te(),{userInfoStore:o}=Mn(),l=So(),u=X(0),d=X("");async function f(){const h=await l.sendFeedback(o.residence?.premisesId??null,typeof n.query.claim_id=="string"?n.query.claim_id:l.detail?.claimId,u.value,d.value);if(h){if(!h.ok){i(h.error.message??r("maintenanceAndRepair.voteError"));return}s("go","back")}}return(h,g)=>{const m=vf,_=bf;return p(),y("section",int,[c("div",ont,[c("h1",ant,b(a(r)("maintenanceAndRepair.voteTitle")),1),c("div",lnt,[(p(),y(j,null,le(5,v=>c("button",{key:v,type:"button",class:"p-1",onClick:k=>u.value=v},[v<=a(u)?(p(),K(m,{key:0})):(p(),K(_,{key:1}))],8,cnt)),64))]),T(ti,{"model-value":a(d),multiline:!0,"input-type":"text",class:"mt-8","placeholder-text":a(r)("maintenanceAndRepair.comment"),"onUpdate:modelValue":g[0]||(g[0]=v=>d.value=v)},null,8,["model-value","placeholder-text"])]),c("div",unt,[T(a(vt),{class:"w-full",label:a(r)("send"),loading:a(l).isFeedbackSending,disabled:a(u)<=0,onClick:f},null,8,["label","loading","disabled"])])])}}}),fnt=Object.assign(dnt,{__name:"MaintenanceAndRepairVotePanel"}),pnt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function hnt(e,t){return p(),y("svg",pnt,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M4 8.5c1.21 0 2.219.859 2.45 2H14a.5.5 0 0 1 0 1H6.45A2.501 2.501 0 1 1 4 8.5m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M12 2.5a2.5 2.5 0 1 1-2.45 3H2a.5.5 0 0 1 0-1h7.55c.231-1.141 1.24-2 2.45-2m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3","clip-rule":"evenodd"},null,-1)])])}const mnt={render:hnt},gnt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function ynt(e,t){return p(),y("svg",gnt,[...t[0]||(t[0]=[c("path",{fill:"#212926","fill-rule":"evenodd",d:"M8 1.5c.459 0 .828 0 1.128.02.304.021.574.065.829.17a2.5 2.5 0 0 1 1.353 1.353c.105.255.149.525.17.83q.016.272.017.63.368.003.657.026c.365.03.685.093.98.243a2.5 2.5 0 0 1 1.093 1.093c.151.296.214.616.244.98.029.36.029.803.029 1.355v2.6c0 .552 0 .996-.03 1.354-.03.365-.092.685-.243.98a2.5 2.5 0 0 1-1.092 1.093c-.296.151-.616.214-.98.244-.36.029-.803.029-1.355.029H5.2c-.552 0-.996 0-1.354-.03-.365-.03-.685-.092-.98-.243a2.5 2.5 0 0 1-1.094-1.092c-.15-.296-.213-.616-.243-.98-.029-.36-.029-.803-.029-1.355V8.2c0-.552 0-.996.03-1.354.03-.365.092-.685.242-.98.24-.471.623-.854 1.093-1.094.296-.15.616-.213.98-.243a10 10 0 0 1 .657-.026q.001-.359.019-.63c.02-.305.064-.575.17-.83A2.5 2.5 0 0 1 6.042 1.69c.255-.105.525-.149.83-.17C7.171 1.5 7.54 1.5 8 1.5m-2.8 4c-.568 0-.965 0-1.273.025-.302.025-.476.071-.608.138a1.5 1.5 0 0 0-.656.656c-.067.132-.113.306-.138.608C2.5 7.235 2.5 7.632 2.5 8.2v2.6c0 .568 0 .965.025 1.273.025.302.071.476.138.608.144.282.374.512.656.656.132.067.306.113.608.138.308.025.705.025 1.273.025h5.6c.568 0 .965 0 1.273-.025.302-.025.476-.071.608-.138.282-.144.512-.374.656-.656.067-.132.113-.306.138-.608.025-.308.025-.705.025-1.273V8.2c0-.568 0-.965-.025-1.273-.025-.302-.071-.476-.138-.608a1.5 1.5 0 0 0-.656-.656c-.132-.067-.306-.113-.608-.138-.308-.025-.705-.025-1.273-.025zm2.8-3c-.473 0-.803 0-1.06.018-.254.017-.402.05-.514.096a1.5 1.5 0 0 0-.812.812c-.046.112-.08.26-.096.513-.011.156-.014.338-.016.561h4.996a10 10 0 0 0-.016-.56c-.017-.254-.05-.402-.096-.514a1.5 1.5 0 0 0-.812-.812c-.112-.046-.26-.08-.513-.096C8.803 2.5 8.473 2.5 8 2.5","clip-rule":"evenodd"},null,-1)])])}const _nt={render:ynt},vnt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"};function bnt(e,t){return p(),y("svg",vnt,[...t[0]||(t[0]=[c("path",{fill:"#212926",d:"M8 10.5c2.522 0 4.759 1.454 6.364 3.157a.5.5 0 0 1-.728.686c-1.51-1.6-3.5-2.843-5.636-2.843s-4.127 1.242-5.636 2.843a.5.5 0 0 1-.728-.686C3.24 11.954 5.478 10.5 8 10.5"},null,-1),c("path",{fill:"#212926","fill-rule":"evenodd",d:"M8 1.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7m0 1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5","clip-rule":"evenodd"},null,-1)])])}const xnt={render:bnt},knt={class:"rounded-[12px] bg-grey-90 p-4"},wnt={class:"text-16-bold text-black"},Cnt={class:"mt-4 flex flex-wrap items-center gap-2"},$nt={key:0,class:"inline-flex items-center gap-2 rounded-full bg-white px-3 py-2 text-13 text-black"},Snt={key:1,class:"inline-flex items-center gap-2 rounded-full bg-white px-3 py-2 text-13 text-black"},Ant=G({__name:"HomeResidentScheduledWorkCard",props:{work:{},clampDescription:{type:Boolean,default:!0}},setup(e){const t=e,s=A(()=>t.clampDescription?"line-clamp-1":""),n=A(()=>t.work.claimStatus?.isDone?"bg-paleLime-90 text-emerald-primary":"bg-purple-90 text-purple-50");return(r,i)=>{const o=_nt,l=xnt,u=Fg,d=Y0;return p(),y("article",knt,[c("p",wnt,b(e.work.scheduledWorkTitle),1),e.work.scheduledWorkDescription?(p(),y("p",{key:0,class:oe(["mt-1 text-13 text-grey-40",a(s)])},b(e.work.scheduledWorkDescription),3)):E("",!0),c("div",Cnt,[e.work.scheduledWorkUkName?(p(),y("span",$nt,[T(o,{class:"shrink-0","aria-hidden":"true"}),Qe(" "+b(e.work.scheduledWorkUkName),1)])):E("",!0),e.work.claimExecutorShortName?(p(),y("span",Snt,[T(l,{class:"shrink-0","aria-hidden":"true"}),Qe(" "+b(e.work.claimExecutorShortName),1)])):E("",!0)]),e.work.claimStatus?.text?(p(),y("div",{key:1,class:oe(["mt-2 inline-flex items-center gap-2 rounded-full px-3 py-2 text-13",a(n)])},[e.work.claimStatus.isDone?(p(),K(u,{key:0,class:"shrink-0","aria-hidden":"true"})):(p(),K(d,{key:1,class:"shrink-0","aria-hidden":"true"})),Qe(" "+b(e.work.claimStatus.text),1)],2)):E("",!0)])}}}),Int=Object.assign(Ant,{__name:"HomeResidentScheduledWorkCard"}),Tnt={class:"flex h-full flex-col"},Pnt={class:"px-6"},Dnt={class:"text-24-bold text-black"},Ent={class:"mt-4 flex flex-wrap gap-2"},Lnt={class:"truncate"},Rnt={key:0,class:"space-y-3"},Mnt={key:1,class:"flex h-full min-h-[260px] flex-col items-center justify-center px-4 text-center"},Ont={class:"mt-3 whitespace-pre-line text-16 text-black"},Fnt={key:2,class:"space-y-3"},Nnt={key:0,class:"h-12 rounded-[12px] bg-grey-90"},Bnt=G({__name:"MaintenanceAndRepairHistoryPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{userInfoStore:r}=Mn(),i=So(),o=X(null),l=A(()=>i.historySelectedCategoryTitle||n("maintenanceAndRepair.allCategories")),u=A(()=>!!i.historySelectedCategory),d=A(()=>u.value?n("maintenanceAndRepair.emptyFiltered"):n("maintenanceAndRepair.historyEmpty")),f=A(()=>i.historyDateRange?`${v(i.historyDateRange.from)} - ${v(i.historyDateRange.to)}`:n("maintenanceAndRepair.selectPeriod"));je(()=>{i.loadHistory(r.residence?.premisesId??null)});function h(){s("go",{to:"maintenance-and-repair-category-filter",query:{maintenance_and_repair_filter_target:"history"}})}function g(){s("go","maintenance-and-repair-period-filter")}function m(){const k=o.value;!k||i.isHistoryMoreLoading||i.historyHasReachedMax||k.scrollTop+k.clientHeight>k.scrollHeight-250&&i.loadHistory(r.residence?.premisesId??null,{append:!0})}function _(k){s("go",{to:"maintenance-and-repair-detail",query:{maintenance_and_repair_id:k.scheduledWorkForCreateClaimsId,claim_id:k.claimId}})}function v(k){const x=new Date(k);return Number.isNaN(x.getTime())?"":new Intl.DateTimeFormat("ru-RU",{day:"2-digit",month:"2-digit",year:"2-digit"}).format(x)}return(k,x)=>{const C=mnt,w=si,$=Y9,S=gg,I=Int;return p(),y("section",Tnt,[c("div",Pnt,[c("h1",Dnt,b(a(n)("maintenanceAndRepair.history")),1),c("div",Ent,[c("button",{type:"button",class:"inline-flex h-9 max-w-[180px] items-center gap-2 rounded-full bg-grey-90 px-4 text-13 text-black",onClick:h},[T(C,{class:""}),c("span",Lnt,b(a(l)),1)]),c("button",{type:"button",class:"inline-flex h-9 items-center gap-2 rounded-full bg-grey-90 px-4 text-13 text-black",onClick:g}
77,[T(w),c("span",null,b(a(f)),1)])])]),c("div",{ref_key:"scrollEl",ref:o,class:"mt-4 flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80",onScroll:m},[a(i).isHistoryLoading?(p(),y("div",Rnt,[(p(),y(j,null,le(5,P=>c("div",{key:P,class:"h-32 rounded-[12px] bg-grey-90"})),64))])):a(i).history.length===0?(p(),y("div",Mnt,[a(u)?(p(),K($,{key:0,class:"[&_path]:fill-grey-70","aria-hidden":"true"})):(p(),K(S,{key:1,"aria-hidden":"true"})),c("p",Ont,b(a(d)),1)])):(p(),y("div",Fnt,[(p(!0),y(j,null,le(a(i).history,P=>(p(),K(I,{key:`${P.scheduledWorkForCreateClaimsId}-${P.claimId}`,work:P,class:"cursor-pointer",onClick:L=>_(P)},null,8,["work","onClick"]))),128)),a(i).isHistoryMoreLoading?(p(),y("div",Nnt)):E("",!0)]))],544)])}}}),Vnt=Object.assign(Bnt,{__name:"MaintenanceAndRepairHistoryPanel"}),Hnt={class:"flex h-full flex-col"},qnt={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80"},jnt={class:"text-24-bold text-black"},Unt={key:0,class:"mt-6 space-y-3"},znt={key:1,class:"mt-6"},Wnt=["onClick"],Gnt={class:"p-6"},Ynt=G({__name:"MaintenanceAndRepairCategoryFilterPanel",emits:["go"],setup(e,{emit:t}){const s=t,n=st(),{t:r}=be(),{userInfoStore:i}=Mn(),o=So(),l=X(""),u=A(()=>n.query.maintenance_and_repair_filter_target==="history"?"history":"list");je(async()=>{l.value=u.value==="history"?o.historySelectedCategory?.id??"":o.selectedCategory?.id??"",await o.loadCategories(i.residence?.premisesId??null)});function d(){const f=o.categories.find(h=>h.id===l.value)??null;if(u.value==="history"){o.setHistorySelectedCategory(f),o.loadHistory(i.residence?.premisesId??null),s("go",{to:"maintenance-and-repair-history",replace:!0,query:{maintenance_and_repair_filter_target:void 0}});return}o.setSelectedCategory(f),o.loadList(i.residence?.premisesId??null),s("go",{to:"",replace:!0,query:{maintenance_and_repair_filter_target:void 0}})}return(f,h)=>{const g=qu,m=ju;return p(),y("section",Hnt,[c("div",qnt,[c("h1",jnt,b(a(r)("maintenanceAndRepair.selectCategory")),1),a(o).isCategoriesLoading?(p(),y("div",Unt,[(p(),y(j,null,le(8,_=>c("div",{key:_,class:"h-10 rounded-[12px] bg-grey-90"})),64))])):(p(),y("div",znt,[c("button",{type:"button",class:"flex w-full items-center gap-3 py-4 text-left text-16 text-black",onClick:h[0]||(h[0]=_=>l.value="")},[a(l)===""?(p(),K(g,{key:0})):(p(),K(m,{key:1})),c("span",null,b(a(r)("maintenanceAndRepair.allCategories")),1)]),(p(!0),y(j,null,le(a(o).categories,_=>(p(),y("button",{key:_.id,type:"button",class:"flex w-full items-center gap-3 py-4 text-left text-16 text-black",onClick:v=>l.value=_.id},[a(l)===_.id?(p(),K(g,{key:0})):(p(),K(m,{key:1})),c("span",null,b(_.title),1)],8,Wnt))),128))]))]),c("div",Gnt,[T(a(vt),{class:"w-full",label:a(r)("maintenanceAndRepair.select"),onClick:d},null,8,["label"])])])}}}),Knt=Object.assign(Ynt,{__name:"MaintenanceAndRepairCategoryFilterPanel"}),Qnt={class:"flex h-full flex-col"},Xnt={class:"flex-1 overflow-y-auto px-6 pb-6"},Znt={class:"text-24-bold text-black"},Jnt={class:"mt-6 overflow-hidden"},ert={class:"space-y-3 px-6 pb-6 pt-4"},trt=G({__name:"MaintenanceAndRepairPeriodFilterPanel",emits:["go"],setup(e,{emit:t}){const s=t,{t:n}=be(),{userInfoStore:r}=Mn(),i=So(),o=X({start:u(i.historyDateRange?.from??""),end:u(i.historyDateRange?.to??"")}),l=A(()=>!!(o.value.start&&o.value.end));function u(g){if(!g)return null;const m=new Date(g);return Number.isNaN(m.getTime())?null:m}function d(g,m=!1){const _=g.getFullYear(),v=String(g.getMonth()+1).padStart(2,"0"),k=String(g.getDate()).padStart(2,"0");return`${_}-${v}-${k}T${m?"23:59:59.999":"00:00:00.000"}`}function f(){!o.value.start||!o.value.end||(i.setHistoryDateRange({from:d(o.value.start),to:d(o.value.end,!0)}),i.loadHistory(r.residence?.premisesId??null),s("go",{to:"maintenance-and-repair-history",replace:!0}))}function h(){o.value={start:null,end:null},i.setHistoryDateRange(null),i.loadHistory(r.residence?.premisesId??null),s("go",{to:"maintenance-and-repair-history",replace:!0})}return(g,m)=>{const _=Ae("VDatePicker"),v=Ae("PrimaryButton");return p(),y("div",Qnt,[c("div",Xnt,[c("h1",Znt,b(a(n)("maintenanceAndRepair.selectPeriod")),1),c("div",Jnt,[T(_,{modelValue:a(o),"onUpdate:modelValue":m[0]||(m[0]=k=>it(o)?o.value=k:null),modelModifiers:{range:!0},borderless:"",expanded:"",color:"green"},null,8,["modelValue"])])]),c("div",ert,[T(v,{label:a(n)("maintenanceAndRepair.select"),disabled:!a(l),onClick:f},null,8,["label","disabled"]),T(v,{variant:"secondary",label:a(n)("reset"),onClick:h},null,8,["label"])])])}}}),srt=Object.assign(trt,{__name:"MaintenanceAndRepairPeriodFilterPanel"}),nrt={class:"flex h-full flex-col justify-center overflow-y-auto"},rrt={class:"flex flex-col items-center px-6 py-8"},irt={class:"mt-6 text-center text-24-bold text-black"},ort={class:"mt-2 max-w-[300px] text-center text-16 text-grey-40"},art={class:"p-6 pt-0"},lrt=G({__name:"MaintenanceAndRepairInfoPanel",emits:["go"],setup(e,{emit:t}){const{t:s}=be(),n=t;function r(){n("go","back")}return(i,o)=>{const l=gg,u=Ae("PrimaryButton");return p(),y("div",nrt,[c("div",rrt,[T(l,{class:"[&_path]:fill-emerald-primary","aria-hidden":"true"}),c("h2",irt,b(a(s)("drawer.house.maintenanceAndRepairInfoPanel.title")),1),c("p",ort,b(a(s)("drawer.house.maintenanceAndRepairInfoPanel.description")),1)]),c("div",art,[T(u,{label:a(s)("drawer.house.maintenanceAndRepairInfoPanel.okButton"),onClick:r},null,8,["label"])])])}}}),crt=Object.assign(lrt,{__name:"MaintenanceAndRepairInfoPanel"}),urt={key:0,class:"fixed inset-0 z-[110]"}
77,drt=["aria-label","title"],frt={class:"flex-1 min-w-0 flex justify-center"},prt={key:0,class:"w-full max-w-full text-center"},hrt={class:"block truncate text-16 text-black"},mrt={key:0,class:"block truncate text-13 text-grey-40"},grt={class:"mr-0 inline-flex align-[-1px]"},yrt={class:"inline-flex shrink-0 items-center justify-center"},_rt={key:2,class:"block truncate text-13 text-grey-40"},vrt={class:"ml-auto flex items-center gap-2"},brt=["aria-label"],xrt=["aria-label"],krt={key:0,class:"absolute right-4 top-2 h-2 w-2 rounded-full bg-red-50"},wrt=G({__name:"AppDrawer",setup(e){const{t}=be(),s=st(),n=is(),r=Ne(),i=A(()=>!!s.query.panel),o=A(()=>s.query.panel||""),l=X(!1),u=X(!1),d=X(null),f=X(null);let h=null;const g={login:ywe,"login-code":Pwe,"registration-personal":Owe,"registration-address-list":Ywe,"registration-address":n7e,"registration-success":i3e,captcha:p7e,claims:E7e,"claims-address":G7e,"create-claim":y9e,"create-claim-success":A9e,"claim-create-chat":ySe,"resident-organization-details":S5e,"claim-chat":W9,"claim-cancel":G9,"claim-arbitration":K9,"claim-additional-works":a9,"claim-additional-works-help":l9,"claim-attachments":RAe,"claim-info":Q9,"claim-list":KTe,"claim-progress":X9,"claim-rate":Z9,"claim-rate-done":J9,"claim-result":eC,"claim-bill":IDe,"claim-bill-detail":WDe,"claim-bill-detail-type":sEe,"claim-bill-detail-month":lEe,"claim-history":VEe,notifications:uLe,"card-list":TLe,"card-delete":NLe,"card-add":sC,"card-add-secure":mm,"profile-personal":bOe,"profile-personal-edit":YMe,"profile-personal-email-success":HMe,"profile-help":VOe,"profile-about":JOe,"profile-confirm":RMe,"profile-address-list":gRe,"address-select":PRe,"address-organization":jRe,"profile-address-edit":ZRe,"profile-address-residence":aMe,"address-residence-success":H0e,"profile-address-premises":xMe,"profile-address-confirm":SMe,"bc-request":cFe,"bc-request-success":yFe,"company-request":SFe,"company-request-type":MFe,"company-request-success":jFe,"mobile-continue":_Ne,"all-categories":ENe,"all-categories-search":XNe,"service-category-detail":$Be,"water-delivery":rVe,"water-delivery-tariffs":gVe,"water-delivery-confirm":YVe,"water-delivery-receipt":dHe,"water-delivery-subscription":mqe,"food-delivery":i8e,"food-cart":O8e,"food-cart-clear":j8e,"food-cart-comment":Q8e,"food-order":jxe,"food-order-payment":nke,"food-order-comment":uke,"food-order-card-add":kke,"food-order-card-secure":mm,"food-order-payment-success":Pke,"food-order-payment-error":Fke,"gku-meter":Zqe,"gku-payment":Eje,"gku-meter-history":o_e,"gku-account-edit":d_e,"gku-payment-charge":S_e,"gku-payment-history-item":Q_e,segmentation:Wje,"segmentation-manage":kUe,"segmentation-master":FUe,"segmentation-master-category":KUe,"active-residents":zze,"active-residents-info":yWe,"house-conversations":VWe,"house-conversation-chat":Q4e,"executor-info":xGe,"premises-user-rating":eYe,"premises-user-rating-info":wYe,"premises-user-rating-new-level":N1e,"house-debtors":uKe,"employee-add":Tce,"employee-invite-created":eue,"employee-list":Due,"employee-revoke":que,"poll-detail":FKe,"poll-delete":HKe,"premises-survey-create":Dle,"premises-survey-locked":Ule,"polls-info":ece,"premises-survey-date":Fle,"premises-money-fee-detail":Mde,"premises-money-fee-create":yce,"premises-money-fee-edit":Gde,"premises-money-fee-date":ede,"premises-money-fee-pay":Z1e,"premises-money-fee-payers":d0e,"premises-money-fee-finish":s1e,"premises-money-fee-locked":z1e,"premises-balance-info":x0e,"working-regime":XKe,"management-company-details":TXe,"news-detail":BXe,"news-month":KXe,"payment-info":sZe,invite:LZe,"invite-text-edit":zZe,"invite-qr-share":tJe,"invite-leaflet-share":uJe,"house-about-info-edit":wJe,"house-about-chat-actions":Dd,"house-about-chat-delete":Ed,"house-about-chat-edit":YJe,"house-about-messenger":oet,"house-about-cleaning-edit":vet,"house-about-cleaning-example":Pet,"house-about-group-actions":Dd,"house-about-group-delete":Ed,"house-about-group-edit":Vet,"house-about-group-role":Ket,"house-about-oss-actions":Dd,"house-about-oss-delete":Ed,"house-about-oss-edit":btt,"house-about-oss-period":Itt,"house-about-contact-actions":Dd,"house-about-contact-delete":Ed,"house-about-contact-edit":Ftt,"house-about-locked":I0e,"maintenance-and-repair-detail":Mst,"maintenance-and-repair-progress":Wst,"maintenance-and-repair-result":rnt,"maintenance-and-repair-vote":fnt,"maintenance-and-repair-history":Vnt,"maintenance-and-repair-category-filter":Knt,"maintenance-and-repair-period-filter":srt,"maintenance-and-repair-info":crt,"ai-helper":_6e,"incident-list":M3e,"incident-info":Q3e,"incident-result":_ve,"discu
77ssion-create-type":efe,"discussion-create":epe,"discussion-date":lpe,"discussion-time":hpe,"discussion-contact":Cpe,"discussion-detail":b2e,"discussion-actions":I2e,"discussion-delete":O2e,"discussion-rejection":Lge,"discussion-comments":U2e,"discussion-category-filter":ige,"discussion-contact-methods":pge,"discussion-max-contact":Cge,"home-debt-add":Vge,"home-debt-pay":dye,"home-debt-info":wye,"home-debt-peny":Pye},m=X([]),_=new Set(["invite","invite-text-edit","invite-qr-share","invite-leaflet-share"]),v=new Set(["poll-detail","poll-delete"]),k=new Set(["premises-money-fee-detail","premises-money-fee-create","premises-money-fee-edit","premises-money-fee-date","premises-money-fee-pay","premises-money-fee-payers","premises-money-fee-finish","premises-money-fee-locked"]),x=new Set(["house-about-info-edit","house-about-chat-actions","house-about-chat-delete","house-about-chat-edit","house-about-messenger","house-about-cleaning-edit","house-about-cleaning-example","house-about-group-actions","house-about-group-delete","house-about-group-edit","house-about-group-role","house-about-oss-actions","house-about-oss-delete","house-about-oss-edit","house-about-oss-period","house-about-contact-actions","house-about-contact-delete","house-about-contact-edit","house-about-locked"]),C=new Set(["maintenance-and-repair-detail","maintenance-and-repair-progress","maintenance-and-repair-result","maintenance-and-repair-vote","maintenance-and-repair-history","maintenance-and-repair-category-filter","maintenance-and-repair-period-filter","maintenance-and-repair-info"]),w=new Set(["incident-list","incident-info","incident-result"]),$=new Set(["discussion-create-type","discussion-create","discussion-date","discussion-time","discussion-contact","discussion-detail","discussion-actions","discussion-delete","discussion-rejection","discussion-comments","discussion-category-filter","discussion-contact-methods","discussion-max-contact"]),S=new Set(["discussion-detail","discussion-comments","discussion-contact-methods","discussion-max-contact","discussion-rejection"]),I=new Set(["food-delivery","food-cart","food-cart-clear","food-cart-comment","food-order","food-order-payment","food-order-comment","food-order-card-add","food-order-card-secure","food-order-payment-success","food-order-payment-error"]),P=new Set(["home-debt-add","home-debt-pay","home-debt-info","home-debt-peny"]),L=new Set(["gku-meter","gku-payment","gku-meter-history","gku-account-edit","gku-payment-charge","gku-payment-history-item"]),D=new Set(["claim-info","claim-additional-works","claim-additional-works-help","claim-attachments","claim-result","claim-arbitration","claim-cancel","claim-chat"]),R=A(()=>S.has(o.value)),F=A(()=>R.value||o.value==="house-conversation-chat"||o.value==="ai-helper"||o.value==="service-category-detail"||o.value==="resident-organization-details"),N=A(()=>r.isAuthorized?"auth:p-6":"xl:p-6"),z=A(()=>o.value==="house-conversation-chat"?r.isAuthorized?"auth:w-[480px] auth:rounded-[24px]":"xl:w-[480px] xl:rounded-[24px]":r.isAuthorized?"auth:w-[480px] auth:rounded-[16px]":"xl:w-[480px] xl:rounded-[16px]"),me=A(()=>u.value?r.isAuthorized?"translate-x-0 auth:translate-x-0":"translate-x-0 xl:translate-x-0":r.isAuthorized?"translate-x-full auth:translate-x-[calc(100%+1.5rem)]":"translate-x-full xl:translate-x-[calc(100%+1.5rem)]"),ge=A(()=>r.isAuthorized?"auth:hover:bg-grey-80":"xl:hover:bg-grey-80"),fe=l7(),te=F0(),V=N0(),pe=$l(),ye=uu(),ne=B0(),ve=f9(),J=Al(),he=Nke(),Ee=p9(),He=Bke(),de=h9(),Me=ri(),De=af(),ze=of(),Ue=rf(),ut=lf(),H=uf(),Y=cf(),W=df(),_e=fu(),ae=Ln(),M=m9(),q=pu(),re=g9(),ce=hf(),ie=vg(),$e=_9(),se=bg(),xe=rg(),Ve=Wke(),Ze=ba(),Je=xg(),dt=wg(),ft=kg(),It=Cg(),Wt=F1(),ss=du(),Ps=y9(),Ms=zke(),Gt=kr(),Le=Nu(),ee=mf(),Pe=v9(),Ge=Hu(),_t=b9(),qt=lg(),Ht=Ni(),ps=ug(),ws=Fu(),gs=Ul(),xs=x9(),Zt=k9(),Ns=So(),en=ef(),tn=Rn(),Os=Cn(),On=Bu(),wr=C9(),Fn=sg(),Bi=$g(),ke=$9(),Fe=r9(),ct=Vu(),at=S9(),Mt=Oe(),ys=X(o.value==="claim-info");function Bs(){return s.path.replace(/\/+$/,"")||"/"}function Nn(){if(Bs()!=="/"||!r.isAuthorized)return;const Q=Mt.residence?.residentId??null,Ie=!!(wr.screen&&wr.residentId===Q);
77wr.loadScreen(Q,{clearBeforeLoad:!Ie})}function Bn(){Nn()}function hn(){const Q=Bs();if(Q==="/"){Nn();return}Q==="/house"&&r.isAuthorized&&Mt.isLoaded&&Fn.loadScreen(Mt.residence?.premisesId??null)}function Vi(){r.isAuthorized&&(On.load(),Bn())}function Ao(Q){const Ie=new Date(Q);return!Q||Number.isNaN(Ie.getTime())?Q:Ie.toLocaleDateString("ru-RU",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).replace(" в ",", ")}const Vn=A(()=>{if(o.value==="employee-list")return{title:t("drawer.employees.title"),descr:""};if(o.value==="employee-invite-created")return{title:t("drawer.employeeInviteCreated.title"),descr:""};if(o.value==="food-order")return{title:t("drawer.foodOrder.orderNumber",{number:ct.order?.number??""}),descr:Ao(ct.order?.createdAt??"")};if(o.value==="food-cart")return{title:t("drawer.foodCart.title"),descr:""};if(o.value==="ai-helper")return{title:t("home.resident.aiHelpers.details.panelTitle"),descr:""};if(o.value==="water-delivery-tariffs")return{title:t("drawer.categories.waterDelivery.tariffsTitle"),descr:""};if(o.value==="water-delivery-confirm")return{title:t("drawer.categories.waterDelivery.confirmHeaderTitle"),descr:""};if(o.value==="water-delivery-receipt")return{title:t("drawer.categories.waterDelivery.receiptTitle"),descr:""};if(o.value==="water-delivery-subscription"){const Q=at.subscription?.tariff;return{title:Q?[Q.title,Q.amountText].filter(Boolean).join(" · "):t("drawer.categories.waterDelivery.subscriptionHeaderFallback"),descr:at.subscription?.statusText??""}}if(o.value==="claim-create-chat")return{title:t("drawerClaimCreateChat.aiHelperTitle"),descr:t("drawerClaimCreateChat.aiHelperDescr")};if(o.value==="claim-additional-works")return{title:t("drawerClaimAdditionalWorks.title"),descr:""};if(o.value==="claim-additional-works-help")return{title:t("drawerClaimAdditionalWorks.helpTitle"),descr:""};if(o.value==="claim-chat"){const Q=fu();return{title:t("drawerClaimChat.title"),descr:Q.title}}if(o.value==="premises-user-rating")return{title:"ÐÐ°Ñ ÑейÑинг",descr:""};if(o.value==="premises-user-rating-new-level")return{title:"ÐÐ°Ñ ÑейÑинг",descr:""};if(o.value==="premises-user-rating-info")return{title:"УÑовни и возможноÑÑи",descr:""};if(o.value==="active-residents"){const Q=Bi.screen?.total??0;return{title:Q>0?`${Q} ${hu(Q,{one:t("house.activeResidents.list.nouns.activeNeighbor.one"),few:t("house.activeResidents.list.nouns.activeNeighbor.few"),many:t("house.activeResidents.list.nouns.activeNeighbor.many")})}`:t("house.activeResidents.list.titleFallback"),descr:""}}return o.value==="house-conversations"?{title:t("house.conversations.title"),descr:""}:o.value==="house-conversation-chat"?{title:t("house.conversationChat.title"),descr:""}:o.value==="gku-meter-history"?{title:t("drawer.gku.meter.historyTitle"),descr:""}:o.value==="gku-account-edit"?{title:"",descr:""}:o.value==="gku-payment-charge"?{title:t("drawer.gku.payment.chargeTitle"),descr:""}:o.value==="gku-payment-history-item"?{title:t("drawer.gku.payment.paymentTitle"),descr:""}:o.value==="news-month"?{title:"ÐÑбеÑиÑе меÑÑÑ",descr:""}:o.value==="invite"?{title:"ÐÑиглаÑиÑÑ ÑоÑедей",descr:""}:o.value==="poll-detail"?{title:"ÐпÑоÑ",descr:""}:o.value==="poll-delete"?{title:"",descr:""}:o.value==="discussion-detail"?{title:t("drawer.discussions.detail.headerTitle"),descr:""}:o.value==="discussion-actions"||o.value==="discussion-delete"||o.value==="discussion-rejection"||o.value==="discussion-contact-methods"||o.value==="discussion-max-contact"?{title:"",descr:""}:o.value==="house-about-info-edit"?{title:"",descr:""}:o.value==="house-about-chat-edit"?{title:"",descr:""}:o.value==="house-about-messenger"?{title:"",descr:""}:o.value==="house-about-chat-actions"||o.value==="house-about-chat-delete"||o.value==="house-about-group-actions"||o.value==="house-about-group-delete"||o.value==="house-about-oss-actions"||o.value==="house-about-oss-delete"||o.value==="house-about-contact-actions"||o.value==="house-about-contact-delete"?{title:"",descr:""}:o.value==="house-about-cleaning-edit"?{title:"",descr:""}:o.value==="house-about-group-edit"?{title:"",descr:""}:o.value==="house-about-oss-edit"||o.value==="house-about-oss-period"?{title:"",descr:""}:o.value==="house-about-contact-edit"?{title:"",descr:""}:o.value==="premises-survey-create"?{title:"",descr:""}:o.value==="premises-survey-locked"?{title:"",descr:""}:o.value==="polls-info"?{title:"",descr:""}:o.value==="premises-survey-date"?{title:"",descr:""}:o.value==="premises-money-fee-detail"?{title:"",descr:""}:o.value==="premises-money-fee-create"?{title:"",descr:""}:o.value==="premises-money-fee-edit"?{title:"",descr:""}:o.value==="premises-money-fee-date"?{title:"",descr:""}:o.value==="premises-money-fee-pay"?{title:"",descr:""}:o.value==="premises-money-fee-payers"?{title:"",descr:""}:o.value==="premises-money-fee-finish"?{title:"",descr:""}:null}),Dt=A(()=>String(s.query.survey_id??"")),sn=A(()=>{const Q=gs.details?.survey;return Q?Q.isICanManage:!!gs.screen?.surveys.some(Ie=>Ie.surveyId===Dt.value&&Ie.isICanManage)}),ii=A(()=>
77o.value==="food-order"&&ct.order?.claim.messagesAllowed?"food-order-chat":o.value==="food-cart"?"clear-cart":o.value==="poll-detail"&&sn.value?"delete":"close"),nr=A(()=>o.value==="discussion-detail"&&!!Os.detail?.isMine),sc=A(()=>o.value==="registration-success"||o.value==="address-residence-success"?!1:o.value==="service-category-detail"||o.value==="water-delivery"||o.value==="water-delivery-tariffs"||o.value==="water-delivery-confirm"||o.value==="water-delivery-receipt"||o.value==="water-delivery-subscription"||o.value==="food-order"||v.has(o.value)||k.has(o.value)||L.has(o.value)&&o.value!=="gku-meter"&&o.value!=="gku-payment"?!0:m.value.length>1);Se(i,(Q,Ie)=>{!Q&&Ie&&(hn(),fe.$reset(),te.$reset(),V.$reset(),pe.$reset(),ye.$reset(),ve.$reset(),J.resetFlow(),he.$reset(),Ee.resetState(),He.$reset(),s.path!=="/claims"&&de.$reset(),Me.$reset(),De.$reset(),ze.$reset(),Ue.$reset(),ut.$reset(),H.$reset(),Y.$reset(),W.$reset(),_e.stopPolling(),_e.$reset(),ae.$reset(),M.$reset(),q.$reset(),re.$reset(),ce.$reset(),ie.$reset(),$e.$reset(),se.$reset(),Ve.$reset(),Ze.$reset(),Je.$reset(),dt.$reset(),ft.$reset(),It.$reset(),Wt.$reset(),ss.$reset(),Ps.$reset(),Ms.$reset(),Gt.$reset(),Le.$reset(),ee.$reset(),Pe.clear(),Ge.$reset(),_t.$reset(),Ht.clearMoneyFeePanels(),ps.clear(),ws.clear(),gs.clearDetails(),Zt.clearInfo(),Ns.clearDetail(),Ns.clearProgress(),en.clearAll(),Os.clearDetail(),Os.resetCreateDraft(),ke.clear(),Fe.clear())}),Se(o,(Q,Ie)=>{const We=ys.value&&D.has(Ie)&&!D.has(Q);if(Q==="claim-info"&&(ys.value=!0),We&&(Vi(),ys.value=!1),!We&&Ie==="claim-chat"&&!Q&&Bn(),Q==="close"){rr();return}if(Q==="address-organization"&&(m.value=[Q]),Ie==="login-code"&&Q!=="login-code"&&te.$reset(),Ie==="captcha"&&Q!=="captcha"&&V.$reset(),Ie==="create-claim-success"&&Q==="claims"){const Be=un(s.query);delete Be.panel,n.replace({path:s.path,query:Be});return}Ie==="create-claim"&&Q!=="create-claim"&&Q!=="claims-address"&&Q!=="create-claim-success"&&Q!=="card-add"&&Q!=="card-add-secure"&&(J.resetFlow(),he.$reset(),Ee.resetState(),He.$reset()),Ie==="create-claim-success"&&Q!=="create-claim-success"&&(J.resetFlow(),he.$reset(),Ee.resetState(),He.$reset()),Ie==="claims"&&Q!=="claims"&&Q!=="create-claim"&&Q!=="create-claim-success"&&J.resetFlow(),Ie==="claim-list"&&Q!=="claim-list"&&de.$reset(),Ie==="claim-info"&&Q!=="claim-info"&&Q!=="claim-additional-works"&&Q!=="claim-additional-works-help"&&Q!=="claim-attachments"&&Q!=="claim-result"&&Q!=="claim-arbitration"&&Q!=="claim-cancel"&&Me.$reset(),Ie==="claim-attachments"&&Q!=="claim-attachments"&&Q!=="claim-info"&&Me.$reset(),Ie==="claim-cancel"&&Q!=="claim-cancel"&&De.$reset(),Ie==="claim-arbitration"&&Q!=="claim-arbitration"&&ze.$reset(),Ie==="claim-progress"&&Q!=="claim-progress"&&ut.$reset(),Ie==="claim-rate"&&Q!=="claim-rate"&&H.$reset(),Ie==="claim-rate-done"&&Q!=="claim-rate-done"&&Y.$reset(),Ie==="claim-result"&&Q!=="claim-result"&&W.$reset(),Ie==="claim-chat"&&Q!=="claim-chat"&&(_e.stopPolling(),_e.$reset()),Ie==="claim-history"&&Q!=="claim-history"&&M.$reset(),Ie==="claim-bill"&&Q!=="claim-bill"&&Q!=="claim-bill-detail"&&Q!=="claim-bill-detail-type"&&Q!=="claim-bill-detail-month"&&q.$reset(),Ie==="claim-bill-detail"&&Q!=="claim-bill-detail"&&re.$reset(),Ie==="claim-bill-detail-type"&&Q!=="claim-bill-detail-type"&&ce.$reset(),Ie==="claim-bill-detail-month"&&Q!=="claim-bill-detail-month"&&ie.$reset(),Ie==="notifications"&&Q!=="notifications"&&$e.$reset(),Ie==="card-add"&&Q!=="card-add-secure"&&(Gt.$reset(),Le.$reset(),Ms.$reset()),Ie==="card-add-secure"&&Q!=="card-add"&&(Gt.$reset(),Le.$reset(),Ms.$reset()),Ie==="profile-address-list"&&Q!=="profile-address-list"&&se.$reset(),Ie==="address-select"&&Q!=="address-select"&&Ve.$reset(),Ie==="registration-success"&&Q!=="registration-success"&&ne.$reset(),Ie==="address-organization"&&Q!=="address-organization"&&Ze.$reset(),Ie==="profile-address-edit"&&Q!=="profile-address-edit"&&Je.$reset(),Ie==="profile-address-premises"&&Q!=="profile-address-premises"&&ft.$reset(),Ie==="profile-address-residence"&&Q!=="profile-address-residence"&&dt.$reset(),Ie==="address-residence-success"&&Q!=="address-residence-success"&&xe.$reset(),Ie==="profile-address-confirm"&&Q!=="profile-address-confirm"&&It.$reset(),Ie==="profile-confirm"&&Q!=="profile-confirm"&&Wt.$reset(),Ie==="profile-personal-edit"&&Q!=="profile-personal-edit"&&ss.$reset(),Ie==="profile-personal"&&Q!=="profile-personal"&&Ps.$reset(),Ie==="company-request"&&Q!=="company-request"&&Q!=="company-request-type"&&ee.$reset(),Ie==="bc-request"&&Q!=="bc-request"&&ee.$reset(),Ie==="company-request-type"&&Q!=="company-request"&&ee.$reset(),Ie==="segmentation-master-category"&&Q!=="segmentation-master-category"&&Pe.clear(),_.has(Ie)&&!_.has(Q)&&Ge.$reset(),Ie==="house-debtors"&&Q!=="house-debtors"&&_t.$reset(),Ie&&P.has(Ie)&&!P.has(
77Q)&&qt.clearPayInfo(),Ie&&L.has(Ie)&&!L.has(Q)&&(ps.clear(),ws.clear()),Ie==="poll-detail"&&Q!=="poll-detail"&&Q!=="poll-delete"&&gs.clearDetails(),Ie==="poll-delete"&&Q!=="poll-detail"&&Q!=="poll-delete"&&gs.clearDetails(),(Ie==="premises-survey-create"||Ie==="premises-survey-date")&&Q!=="premises-survey-create"&&Q!=="premises-survey-date"&&gs.resetCreateDraft(),k.has(Ie)&&!k.has(Q)&&Ht.clearMoneyFeePanels(),Ie==="premises-money-fee-detail"&&Q!=="premises-money-fee-edit"&&Q!=="premises-money-fee-pay"&&Q!=="premises-money-fee-payers"&&Q!=="premises-money-fee-finish"&&Ht.clearDetails(),(Ie==="premises-money-fee-create"||Ie==="premises-money-fee-date")&&Q!=="premises-money-fee-create"&&Q!=="premises-money-fee-date"&&Ht.resetCreateDraft(),Ie==="premises-money-fee-payers"&&Q!=="premises-money-fee-payers"&&Ht.clearPayers(),Ie==="working-regime"&&Q!=="working-regime"&&xs.$reset(),Ie==="executor-info"&&Q!=="executor-info"&&Zt.clearInfo(),Ie==="house-conversations"&&Q!=="house-conversations"&&ke.clear(),Ie==="house-conversation-chat"&&Q!=="house-conversation-chat"&&Fe.clear(),C.has(Ie)&&!C.has(Q)&&(Ns.clearDetail(),Ns.clearProgress(),Ie==="maintenance-and-repair-history"&&Ns.clearHistory()),Ie&&w.has(Ie)&&!w.has(Q)&&en.clearAll(),(Ie==="discussion-detail"||Ie==="discussion-comments"||Ie==="discussion-contact-methods"||Ie==="discussion-max-contact"||Ie==="discussion-rejection")&&Q!=="discussion-detail"&&Q!=="discussion-comments"&&Q!=="discussion-contact-methods"&&Q!=="discussion-max-contact"&&Q!=="discussion-rejection"&&Q!=="discussion-actions"&&Q!=="discussion-delete"&&Os.clearDetail(),(Ie==="discussion-create"||Ie==="discussion-date"||Ie==="discussion-time"||Ie==="discussion-contact")&&Q!=="discussion-create"&&Q!=="discussion-date"&&Q!=="discussion-time"&&Q!=="discussion-contact"&&Os.resetCreateDraft(),Ie&&x.has(Ie)&&!x.has(Q)&&(tn.clearChatDraft(),tn.clearGroupDraft(),tn.clearOssDraft())}),Se(i,Q=>{Q?m.value=[o.value]:m.value=[]},{immediate:!0});const ka=A(()=>g[o.value]??null),wa=e2();qm(()=>{const Ie=`${wa.origin.replace(/^http:/,"https:")}${s.path}`;return i.value?{link:[{rel:"canonical",href:Ie}],meta:[{name:"robots",content:"noindex, noarchive"}]}:{link:[{rel:"canonical",href:Ie}]}});function oi(Q){if(Q==="back")return Cr();const Ie=typeof Q=="string"?{to:Q}:Q,We=Ie.to;if(We==="back")return Cr();if(We==="close")return rr();We==="login"&&(fe.setSegmentationChoice(Ie.segmentationChoice??null),fe.setClaimTitle(Ie.claimTitle??null)),We==="water-delivery-subscription"&&o.value.startsWith("water-delivery")?m.value=[We]:(We==="food-delivery"||We==="food-order")&&I.has(o.value)?m.value=[We]:We==="create-claim-success"||We==="claim-rate-done"?m.value=[We]:We.startsWith("water-delivery")&&m.value.includes(We)?m.value=m.value.slice(0,m.value.indexOf(We)+1):Ie.replace?m.value.length?m.value[m.value.length-1]=We:m.value=[We]:m.value[m.value.length-1]!==We&&m.value.push(We);const Be=un(s.query);if(We!=="card-delete"&&delete Be.cardId,We!=="service-category-detail"&&We!=="claim-create-chat"&&delete Be.serviceCategoryId,We!=="resident-organization-details"&&delete Be.org_details_from,We!=="water-delivery-tariffs"&&delete Be.tariffs_done,!We.startsWith("water-delivery")&&We!=="resident-organization-details"&&delete Be.water_tariff_id,We!=="claim-create-chat"&&(delete Be.claimId,delete Be.claimTitle,delete Be.category_title,delete Be.claim_category_id,delete Be.category_id,delete Be.work_type_id),We!=="news-detail"&&delete Be.news_id,v.has(We)||delete Be.survey_id,k.has(We)||delete Be.money_fee_id,C.has(We)||(delete Be.maintenance_and_repair_id,delete Be.maintenance_and_repair_filter_target),w.has(We)||delete Be.incident_claim_id,$.has(We)||(delete Be.post_id,delete Be.discussion_type,delete Be.discussion_date_target,delete Be.discussion_time_target,delete Be.discussion_contact_type,delete Be.max_link),P.has(We)||delete Be.debt_type,L.has(We)||(delete Be.gku_account,delete Be.gku_account_type,delete Be.gku_meter_device_id,delete Be.gku_charge_id,delete Be.gku_payment_index),I.has(We)||(delete Be.food_restaurant_id,delete Be.resident_id,We!=="claim-chat"&&delete Be.food_order_id,delete Be.open_payment),We!=="profile-personal-edit"&&delete Be.edit,We!=="maintenance-and-repair-detail"&&We!=="maintenance-and-repair-progress"&&We!=="maintenance-and-repair-result"&&We!=="maintenance-and-repair-vote"&&delete Be.claim_id,x.has(We)||(delete Be.chat_id,delete Be.group_id,delete Be.oss_file_id,delete Be.contact_id),We!=="house-conversation-chat"&&(delete Be.conversation_id,delete Be.user_id),We!=="claim-info"&&We!=="claim-additional-works"&&We!=="claim-additional-works-help"&&We!=="claim-attachments"&&We!=="claim-chat"&&We!=="claim-cancel"&&!I.has(We)&&delete Be.premises_id,We!=="claim-additional-works"&&delete Be.list_id,Ie.query)for(const[qe,U]of Object.entries(Ie.query))U==null?Be[qe]=void 0:Be[qe]=U;We?Be.panel=We:delete Be.panel;const ir={path:s.path,query:Be};return Ie.replace?n.replace(ir):n.push(ir)}async function Cr(){if(m.value.length>1){const Ie=m.value.pop(),We=m.value[m.value.length-1],Be=un(s.query);if(We?Be.panel=We:delete Be.panel,Ie==="claim-info"&&We!=="claim-attachments"&&delete Be.id,Ie==="claim-info"&&We!=="claim-attachments"&&delete Be.premises_id,Ie==="claim-additional-works"&&delete Be.list_id,Ie==="claim-create-chat"&&(delete Be.claimId,delete Be.claimTitle,delete Be.category_title,delete Be.claim_category_id,delete Be.category_id,delete Be.work_type_id
77),Ie==="service-category-detail"&&delete Be.serviceCategoryId,Ie==="resident-organization-details"&&delete Be.org_details_from,Ie==="water-delivery-tariffs"&&delete Be.tariffs_done,Ie==="food-delivery"&&(delete Be.premises_id,delete Be.resident_id,delete Be.food_restaurant_id),Ie==="ai-helper"&&We!=="ai-helper"&&delete Be.ai_helper_id,Ie==="card-delete"&&delete Be.cardId,Ie==="news-detail"&&delete Be.news_id,Ie==="house-conversation-chat"&&(delete Be.conversation_id,delete Be.user_id),Ie&&$.has(Ie)&&(!We||!$.has(We))&&(delete Be.post_id,delete Be.discussion_type,delete Be.discussion_date_target,delete Be.discussion_time_target,delete Be.discussion_contact_type,delete Be.max_link),Ie&&C.has(Ie)&&(!We||!C.has(We))&&(delete Be.maintenance_and_repair_id,delete Be.claim_id,delete Be.maintenance_and_repair_filter_target),Ie&&w.has(Ie)&&(!We||!w.has(We))&&delete Be.incident_claim_id,Ie&&v.has(Ie)&&(!We||!v.has(We))&&delete Be.survey_id,Ie&&k.has(Ie)&&(!We||!k.has(We))&&delete Be.money_fee_id,Ie&&x.has(Ie)&&(!We||!x.has(We))&&(delete Be.chat_id,delete Be.group_id,delete Be.oss_file_id,delete Be.contact_id),Ie&&P.has(Ie)&&(!We||!P.has(We))&&delete Be.debt_type,Ie&&L.has(Ie)&&(!We||!L.has(We))&&(delete Be.gku_account,delete Be.gku_account_type,delete Be.gku_meter_device_id,delete Be.gku_charge_id,delete Be.gku_payment_index),Ie==="claim-cancel"&&We==="claim-info"){const qe=Me.selectedClaimId,U=Me.selectedPremisesId||Oe().residence?.premisesId||null;qe&&(Be.id=qe),U&&(Be.premises_id=U)}if(Ie==="claim-additional-works"&&We==="claim-info"){const qe=Me.selectedClaimId,U=Me.selectedPremisesId||Oe().residence?.premisesId||null;qe&&(Be.id=qe),U&&(Be.premises_id=U)}return await n.replace({path:s.path,query:Be})}const Q=un(s.query);return delete Q.panel,delete Q.categoryGroup,delete Q.serviceCategoryId,delete Q.id,delete Q.premises_id,delete Q.resident_id,delete Q.food_restaurant_id,delete Q.food_order_id,delete Q.open_payment,delete Q.list_id,delete Q.claimId,delete Q.claimTitle,delete Q.category_title,delete Q.claim_category_id,delete Q.category_id,delete Q.work_type_id,delete Q.ai_helper_id,delete Q.cardId,delete Q.news_id,delete Q.post_id,delete Q.discussion_type,delete Q.discussion_date_target,delete Q.discussion_time_target,delete Q.discussion_contact_type,delete Q.survey_id,delete Q.money_fee_id,delete Q.maintenance_and_repair_id,delete Q.claim_id,delete Q.maintenance_and_repair_filter_target,delete Q.incident_claim_id,delete Q.chat_id,delete Q.conversation_id,delete Q.user_id,delete Q.group_id,delete Q.oss_file_id,delete Q.contact_id,delete Q.debt_type,delete Q.gku_account,delete Q.gku_account_type,delete Q.gku_meter_device_id,delete Q.gku_charge_id,delete Q.gku_payment_index,delete Q.org_details_from,delete Q.water_tariff_id,delete Q.tariffs_done,n.replace({path:s.path,query:Q})}function rr(){const Q={...s.query};delete Q.panel,delete Q.categoryGroup,delete Q.serviceCategoryId,delete Q.id,delete Q.premises_id,delete Q.resident_id,delete Q.food_restaurant_id,delete Q.food_order_id,delete Q.open_payment,delete Q.list_id,delete Q.claimId,delete Q.claimTitle,delete Q.category_title,delete Q.claim_category_id,delete Q.category_id,delete Q.work_type_id,delete Q.ai_helper_id,delete Q.cardId,delete Q.news_id,delete Q.post_id,delete Q.discussion_type,delete Q.discussion_date_target,delete Q.discussion_time_target,delete Q.discussion_contact_type,delete Q.survey_id,delete Q.money_fee_id,delete Q.maintenance_and_repair_id,delete Q.claim_id,delete Q.maintenance_and_repair_filter_target,delete Q.incident_claim_id,delete Q.chat_id,delete Q.conversation_id,delete Q.user_id,delete Q.group_id,delete Q.oss_file_id,delete Q.contact_id,delete Q.debt_type,delete Q.gku_account,delete Q.gku_account_type,delete Q.gku_meter_device_id,delete Q.gku_charge_id,delete Q.gku_payment_index,delete Q.org_details_from,delete Q.water_tariff_id,delete Q.tariffs_done,n.push({path:s.path,query:Q})}function Hi(){oi("poll-delete")}function $r(){oi("food-cart-clear")}function ai(){const Q=ct.order?.claim;Q?.id&&oi({to:"claim-chat",query:{id:Q.id,premises_id:typeof s.query.premises_id=="string"?s.query.premises_id:void 0}})}function $n(){f.value?.openHeaderMore?.()}function Ca(Q){return Q.pointerType==="mouse"?Q.button===0:!0}function qi(){d.value=null}function $a(Q){Ca(Q)&&(d.value=Q.pointerId)}function Sa(Q){if(d.value!==Q.pointerId)return;if(!(Q.target===Q.currentTarget)||!Ca(Q)){qi();return}qi(),rr()}function nc(Q){d.value===Q.pointerId&&qi()}function Aa(Q){d.value===Q.pointerId&&qi()}return Se(i,Q=>{h&&(clearTimeout(h),h=null),Q?(l.value=!0,u.value=!1,typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>{u.value=!0}):u.value=!0):(u.value=!1,h=setTimeout(()=>{l.value=!1,h=null},420)),xn("app-drawer",!!Q)},{immediate:!0}),je(()=>xn("app-drawer",i.value)),Tt(()=>{h&&(clearTimeout(h),h=null),xn("app-drawer",!1)}),(Q,Ie)=>{const We=Z2,Be=r7,ir=J2,qe=i7,U=o7,we=jl,Ye=Du,nt=a7;return l.value?(p(),y("div",urt,[c("div",{class:oe(["absolute inset-0 overlay",{"overlay--on":u.value}])},null,2),c("div",{class:oe(["absolute inset-0 flex justify-end max-w-full outline-none",N.value]),onPointerdown:St($a,["self"]),onPointerup:Sa,onPointerleave:nc,onPointercancel:Aa},[c("div",{class:oe(["h-full w-screen overflow-hidden bg-white shadow-xl transition-transform duration-400 ease-out transform-gpu flex flex-col overscroll-contain",[z.value,me.value]]),role:"dialog","aria-modal":"true"},[o.value!=="active-residents-info"?(p(),y("div",{key:0,class:oe(["sticky top-0 z-10 flex items-center gap-3 px-6 pt-6",o.value==="employee-list"?"pb-4":"pb-6"])},[nr.value?(p(),y("button",{key:1,type:"button",class:oe(["flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 transition-colors",ge.value]),"aria-label":a(t)("drawer.discussions.detail.more"),title:a(t)("drawer.discussions.detail.more"),onClick:$n},[T(Be,{"aria-hidden":"true"})],10,drt)):(p(),K(We,{key:0,class:oe(["gap-2",{invisible:!sc.value}
77]),"aria-label":"Ðазад",onClick:Ie[0]||(Ie[0]=$t=>Cr())},null,8,["class"])),c("div",frt,[Vn.value?(p(),y("div",prt,[c("span",hrt,b(Vn.value.title),1),o.value==="claim-create-chat"?(p(),y("span",mrt,[c("span",grt,[T(ir)]),Qe(" "+b(Vn.value.descr),1)])):o.value==="water-delivery-subscription"?(p(),y("span",{key:1,class:oe(["flex items-center justify-center gap-1 truncate text-13",a(at).subscription?.status==="blocked"?"text-red-50":a(at).subscription?.status==="paused"?"text-yellow-50":"text-emerald-primary"])},[c("span",yrt,[a(at).subscription?.status==="paused"?(p(),K(qe,{key:0,class:"[&>path]:fill-yellow-50"})):a(at).subscription?.status==="blocked"?(p(),K(qe,{key:1,class:"[&>path]:fill-red-50"})):(p(),K(U,{key:2,class:"[&>path]:fill-emerald-primary"}))]),Qe(" "+b(Vn.value.descr),1)],2)):Vn.value.descr?(p(),y("span",_rt,b(Vn.value.descr),1)):E("",!0)])):E("",!0)]),c("div",vrt,[ii.value==="delete"?(p(),y("button",{key:0,type:"button",class:oe(["flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 transition-colors",ge.value]),"aria-label":"УдалиÑÑ Ð¾Ð¿ÑоÑ",onClick:Hi},[T(we,{class:"h-6 w-6","aria-hidden":"true"})],2)):ii.value==="clear-cart"?(p(),y("button",{key:1,type:"button",class:oe(["flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 transition-colors",ge.value]),"aria-label":a(t)("drawer.foodCart.clear"),onClick:$r},[T(we,{"aria-hidden":"true"})],10,brt)):ii.value==="food-order-chat"?(p(),y("button",{key:2,type:"button",class:oe(["relative flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 transition-colors",ge.value]),"aria-label":a(t)("drawer.foodOrder.openChat"),onClick:ai},[T(Ye,{"aria-hidden":"true"}),a(ct).order?.claim.hasUnreadMessages?(p(),y("span",krt)):E("",!0)],10,xrt)):o.value!=="service-category-detail"?(p(),K(nt,{key:3,onClick:rr})):E("",!0)])],2)):E("",!0),c("div",{class:oe(["flex-1 min-h-0",F.value?"overflow-hidden":"overflow-y-auto"])},[ka.value?(p(),K(Jn(ka.value),{key:o.value,ref_key:"currentPanelRef",ref:f,onGo:oi,onClose:rr},null,32)):E("",!0)],2)],2)],34)])):E("",!0)}}}),Crt=Object.assign(Gs(wrt,[["__scopeId","data-v-298d0006"]]),{__name:"AppDrawer"}),$rt={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Srt(e,t){return p(),y("svg",$rt,[...t[0]||(t[0]=[ls('<path fill="#11986C" d="M22 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM36 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM50 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3zM64 52.5a1.5 1.5 0 0 1 0 3h-6a1.5 1.5 0 0 1 0-3z"></path><path fill="#11986C" fill-rule="evenodd" d="M29.6 24.5c1.095 0 2.007-.001 2.75.06.76.062 1.473.196 2.147.54a5.5 5.5 0 0 1 2.403 2.403c.344.674.478 1.388.54 2.147.061.743.06 1.655.06 2.75v3.2c0 1.095.001 2.007-.06 2.75-.062.76-.196 1.473-.54 2.147a5.5 5.5 0 0 1-2.403 2.403c-.674.344-1.388.478-2.147.54-.743.061-1.655.06-2.75.06h-7.2c-1.095 0-2.007.001-2.75-.06-.76-.062-1.473-.196-2.147-.54a5.5 5.5 0 0 1-2.403-2.403c-.344-.674-.478-1.388-.54-2.147-.061-.743-.06-1.655-.06-2.75v-3.2c0-1.095-.001-2.007.06-2.75.062-.76.196-1.473.54-2.147a5.5 5.5 0 0 1 2.403-2.403c.674-.344 1.388-.478 2.147-.54.743-.061 1.655-.06 2.75-.06zm-7.2 3c-1.144 0-1.914.002-2.505.05-.574.047-.849.13-1.03.223a2.5 2.5 0 0 0-1.092 1.092c-.093.181-.176.456-.223 1.03-.049.591-.05 1.36-.05 2.505v3.2c0 1.145.002 1.914.05 2.505.047.574.13.849.223 1.03a2.5 2.5 0 0 0 1.092 1.093c.181.092.456.175 1.03.222.591.048 1.36.05 2.505.05h7.2c1.144 0 1.914-.002 2.505-.05.574-.047.849-.13 1.03-.223a2.5 2.5 0 0 0 1.093-1.092c.092-.181.175-.456.222-1.03.048-.591.05-1.36.05-2.505v-3.2c0-1.144-.002-1.914-.05-2.505-.047-.574-.13-.849-.223-1.03a2.5 2.5 0 0 0-1.092-1.092c-.181-.093-.456-.176-1.03-.223-.591-.049-1.36-.05-2.505-.05z" clip-rule="evenodd"></path><path fill="#11986C" d="M59.705 26.018a1.5 1.5 0 0 1 2.121 0 11.29 11.29 0 0 1 0 15.964 1.5 1.5 0 0 1-2.12-2.12 8.29 8.29 0 0 0 1.796-9.034 8.3 8.3 0 0 0-1.797-2.69 1.5 1.5 0 0 1 0-2.12"></path><path fill="#11986C" d="M55.44 30.439a1.5 1.5 0 0 1 2.12 0 5.04 5.04 0 0 1 0 7.123 1.5 1.5 0 0 1-2.12-2.122 2.04 2.04 0 0 0 0-2.88 1.5 1.5 0 0 1 0-2.122M80.94 12.94a1.5 1.5 0 1 1 2.12 2.12L80.122 18l2.94 2.94a1.5 1.5 0 1 1-2.122 2.12L78 20.122l-2.94 2.94a1.5 1.5 0 1 1-2.12-2.122L75.879 18l-2.94-2.94a1.5 1.5 0 1 1 2.122-2.12L78 15.879z"></path><path fill="#11986C" fill-rule="evenodd" d="M78 4.5c7.456 0 13.5 6.044 13.5 13.5S85.456 31.5 78 31.5q-1.283-.002-2.5-.232v2.329l4.63 1.24 1.522.411c1.442.391 2.643.735 3.642 1.092 1.348.482 2.453 1.028 3.372 1.856a9.5 9.5 0 0 1 2.935 5.086c.257 1.21.179 2.439-.078 3.847a37 37 0 0 1-.52 2.328 2 2 0 0 1-.036.19q-.023.084
77-.055.163c-.197.771-.421 1.615-.67 2.542l-5.798 21.636c-.573 2.14-1.026 3.833-1.502 5.164-.481 1.348-1.028 2.451-1.856 3.37a9.5 9.5 0 0 1-5.084 2.937c-1.21.257-2.44.178-3.849-.078-1.39-.254-3.083-.707-5.222-1.28L25.976 73.126c-2.14-.573-3.832-1.026-5.163-1.502-1.348-.482-2.452-1.029-3.372-1.856a9.5 9.5 0 0 1-2.736-4.311 29 29 0 0 1-1.281-.071c-1.427-.117-2.634-.36-3.736-.921a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.087-1.057-.108-2.306-.113-3.8L4.5 51.2V28.8c0-2.215 0-3.967.114-5.376.117-1.427.36-2.634.921-3.736a9.5 9.5 0 0 1 4.153-4.153c1.102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115h46.159c1.542-5.759 6.796-10 13.041-10m-2.697 52.856c-.139 1.095-.382 2.06-.838 2.956a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-1.409.116-3.16.115-5.376.115H18.8l-.873-.002c.365.77.881 1.464 1.521 2.04.508.457 1.202.842 2.374 1.26 1.19.426 2.742.844 4.93 1.43l40.955 10.974c2.188.586 3.742 1.001 4.984 1.228 1.225.223 2.018.236 2.687.094a6.5 6.5 0 0 0 3.478-2.008c.458-.508.843-1.2 1.262-2.373.425-1.19.843-2.743 1.429-4.931l3.546-13.234zM18.8 17.5c-2.265 0-3.873.002-5.132.105-1.241.1-2.01.293-2.62.603a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.604 2.62-.102 1.259-.104 2.867-.104 5.132v22.4l.002 1.58c.005 1.467.025 2.608.102 3.552.102 1.241.294 2.01.604 2.62a6.5 6.5 0 0 0 2.84 2.84c.61.31 1.379.502 2.62.603 1.259.103 2.867.105 5.132.105h42.4c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V30.331c-4.714-2.106-8-6.834-8-12.331q.001-.25.01-.5zm56.7 33.7c0 1.152 0 2.18-.017 3.098L85.87 57.08l1.476-5.506q.178-.665.334-1.256L75.5 47.056zm0-7.25 12.906 3.458q.096-.43.166-.816c.224-1.225.237-2.018.095-2.687a6.5 6.5 0 0 0-2.009-3.48c-.508-.456-1.201-.84-2.374-1.26-.892-.319-1.989-.634-3.404-1.018l-1.525-.412-3.855-1.033zM78 7.5c-5.799 0-10.5 4.701-10.5 10.5S72.201 28.5 78 28.5 88.5 23.799 88.5 18 83.799 7.5 78 7.5" clip-rule="evenodd"></path>',5)])])}const Art={render:Srt},Irt={xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",fill:"none"};function Trt(e,t){return p(),y("svg",Irt,[...t[0]||(t[0]=[ls('<path fill="#11986C" d="M81.94 73.94a1.5 1.5 0 1 1 2.12 2.12l-6 6a1.5 1.5 0 0 1-2.12 0l-3-3a1.5 1.5 0 1 1 2.12-2.12L77 78.879z"></path><path fill="#11986C" fill-rule="evenodd" d="M78 64.5c7.456 0 13.5 6.044 13.5 13.5S85.456 91.5 78 91.5H18c-7.456 0-13.5-6.044-13.5-13.5S10.544 64.5 18 64.5zm-60 3c-5.799 0-10.5 4.701-10.5 10.5S12.201 88.5 18 88.5h51.516A13.47 13.47 0 0 1 64.5 78c0-4.241 1.957-8.025 5.016-10.5zm60 0c-5.799 0-10.5 4.701-10.5 10.5S72.201 88.5 78 88.5 88.5 83.799 88.5 78 83.799 67.5 78 67.5" clip-rule="evenodd"></path><path fill="#11986C" d="M52 40.5a1.5 1.5 0 0 1 0 3H40a1.5 1.5 0 0 1 0-3zM60 34.5a1.5 1.5 0 0 1 0 3H40a1.5 1.5 0 0 1 0-3z"></path><path fill="#11986C" fill-rule="evenodd" d="M59 12.5c1.13 0 2.243.285 3.227.831a6.4 6.4 0 0 1 2.388 2.296c.578.96.885 2.055.885 3.173 0 2.113-1.161 4.868-4.642 7.67-.217.175-.627.54-1.188.696a2.6 2.6 0 0 1-1.34 0c-.56-.156-.971-.521-1.188-.696-3.48-2.802-4.642-5.557-4.642-7.67 0-1.118.307-2.213.885-3.173a6.4 6.4 0 0 1 2.388-2.296A6.66 6.66 0 0 1 59 12.5m0 3c-.626 0-1.237.159-1.773.455a3.4 3.4 0 0 0-1.272 1.218c-.3.499-.455 1.06-.455 1.627 0 .95.525 2.91 3.5 5.313 2.975-2.403 3.5-4.362 3.5-5.313 0-.567-.155-1.128-.455-1.627s-.738-.921-1.273-1.218A3.66 3.66 0 0 0 59 15.5" clip-rule="evenodd"></path><path fill="#11986C" fill-rule="evenodd" d="M59.2 4.5c2.215 0 3.967 0 5.376.114 1.427.117 2.634.36 3.737.921a9.5 9.5 0 0 1 4.152 4.153c.561 1.102.804 2.31.92 3.736.116 1.409.115 3.16.115 5.376v18.4c0 2.215 0 3.967-.114 5.376-.117 1.427-.36 2.634-.921 3.736a9.5 9.5 0 0 1-4.153 4.153c-1.102.561-2.31.804-3.736.92-.562.047-1.178.073-1.857.09l-20.58 5.514c-2.139.574-3.83 1.028-5.221 1.282-1.408.256-2.638.334-3.848.077a9.5 9.5 0 0 1-5.086-2.936c-.827-.92-1.374-2.023-1.856-3.371-.476-1.331-.929-3.023-1.502-5.163l-4.762-17.773c-.573-2.14-1.027-3.832-1.281-5.223-.257-1.408-.334-2.637-.077-3.847a9.5 9.5 0 0 1 2.935-5.086c.92-.827 2.024-1.374 3.372-1.856 1.33-.476 3.023-.929 5.163-1.502l.958-.257c.143-.58.336-1.125.601-1.646a9.5 9.5 0 0 1 4.153-4.153c1.
77102-.561 2.31-.804 3.736-.92 1.409-.116 3.16-.115 5.376-.115zM30.548 14.544c-2.08.558-3.574.962-4.726 1.374-1.172.42-1.866.803-2.374 1.26a6.5 6.5 0 0 0-2.009 3.48c-.142.669-.128 1.46.095 2.686.227 1.242.642 2.797 1.228 4.984l4.762 17.774c.586 2.187 1.004 3.74 1.43 4.93.418 1.172.803 1.865 1.26 2.373a6.5 6.5 0 0 0 3.48 2.01c.668.141 1.46.128 2.686-.096 1.242-.226 2.796-.641 4.983-1.227l9.673-2.592H44.8c-2.215 0-3.967 0-5.376-.114-1.427-.117-2.634-.36-3.736-.921a9.5 9.5 0 0 1-4.153-4.153c-.561-1.102-.804-2.31-.92-3.736-.116-1.409-.115-3.16-.115-5.376V18.8c0-1.663 0-3.065.048-4.256M44.8 7.5c-2.265 0-3.873.002-5.132.104-1.241.102-2.01.294-2.62.604a6.5 6.5 0 0 0-2.84 2.84c-.31.61-.502 1.379-.603 2.62-.103 1.259-.105 2.867-.105 5.132v18.4c0 2.265.002 3.873.105 5.132.1 1.241.293 2.01.603 2.62a6.5 6.5 0 0 0 2.84 2.84c.61.31 1.379.502 2.62.603 1.259.103 2.867.105 5.132.105h14.4c2.265 0 3.873-.002 5.132-.105 1.241-.1 2.01-.293 2.62-.603a6.5 6.5 0 0 0 2.84-2.84c.31-.61.502-1.379.603-2.62.103-1.259.105-2.867.105-5.132V18.8c0-2.265-.002-3.873-.105-5.132-.1-1.241-.293-2.01-.603-2.62a6.5 6.5 0 0 0-2.84-2.84c-.61-.31-1.379-.502-2.62-.604-1.259-.102-2.867-.104-5.132-.104z" clip-rule="evenodd"></path>',5)])])}const Prt={render:Trt},Drt={class:"flex h-full flex-col"},Ert={class:"flex items-center gap-3 px-6 pt-6 pb-4"},Lrt={class:"flex items-center justify-between gap-4 px-6 pt-6 pb-4"},Rrt={class:"flex-1 overflow-y-auto px-6 pb-6 scrollbar-4-grey80 gutter-stable"},Mrt={key:0,class:"mt-6 space-y-6 animate-pulse"},Ort={key:1,class:"mt-8 space-y-4"},Frt={class:"text-16 text-black"},Nrt={class:"mt-2 flex flex-col items-center text-center"},Brt={class:"mt-6 text-24-bold text-black"},Vrt={class:"mt-2 text-16 text-black"},Hrt={key:0,class:"mt-8"},qrt={class:"flex items-center justify-center space-x-1"},jrt=["onClick"],Urt={class:"flex items-start justify-between gap-4 text-grey-40"},zrt={class:"min-w-0 flex-1"},Wrt={class:"text-13 text-grey-40"},Grt={class:"mt-1 text-16 text-black"},Yrt={key:0,class:"mt-4 inline-flex items-center gap-2 rounded-full bg-white px-3 py-2"},Krt={class:"text-13 text-black"},Qrt={key:1,class:"mt-4 flex flex-wrap items-center gap-2"},Xrt=["src"],Zrt={class:"leading-none"},Jrt={key:1,class:"absolute right-1 top-1 h-2 w-2 rounded-full bg-red-50"},eit={key:0,class:"border-t border-grey-90 p-6"},tit={key:0,class:"mb-4 text-center text-16 text-grey-40"},sit={key:1,class:"space-y-3"},nit={key:3,class:"space-y-3"},rit={key:0,class:"flex items-center justify-center gap-2 text-13 text-grey-40"},iit=G({__name:"ClaimsOverlayPanel",setup(e){const{t}=be(),{$showSnackbar:s}=Te(),n=ec(),r=ff(),i=kr(),o=A(()=>r.decisionValue?t("drawerClaimRate.titleSuccesss"):t("drawerClaimRate.titleUnsuccess")),l=A(()=>r.decisionValue?t("drawerClaimRate.descrSuccess"):t("drawerClaimRate.descrUnsuccess")),u=A(()=>r.isDecisionStep?o.value:r.isPay?t("claimsOverlay.payTitle"):t("claimsOverlay.acceptTitle")),d=A(()=>r.isDecisionStep?l.value:r.isPay?t("claimsOverlay.paySubtitle"):t("claimsOverlay.acceptSubtitle")),f=A(()=>!r.isDecisionStep&&r.isPay&&r.claim!=null&&r.claim.price>0),h=A(()=>r.decisionValue?t("drawerClaimRate.commentSuccess"):t("drawerClaimRate.commentUnsuccess"));Se(()=>[n.currentItem?.claimId??"",n.currentItem?.premisesId??"",n.currentMode??"",n.isOpen],async([w,$,S,I])=>{if(!I||!w||!$||!S){r.resetState();return}await r.open({claimId:w,premisesId:$,isPay:S==="pay"})},{immediate:!0}),Se(()=>i.claimRetryPending,async w=>{!w||!r.isPay||(i.consumeClaimRetryPending(),r.backFromCardFlow(),await _())});function g(){i.consumeClaimRetryPending(),i.isFromClaims=!0,r.goToCardAdd()}async function m(){const w=r.decisionValue?await r.acceptWork():await r.declineWork();if(!w.ok){if(w.error.code==88){n.completeCurrent();return}s(w.error.message??t("claimsOverlay.actionError"));return}n.completeCurrent()}async function _(){const w=await r.pay();if(w.ok){n.completeCurrent();return}if(w.error.code===1){g();return}s(w.error.message??t("claimsOverlay.actionError"))}function v(w){const $=typeof w=="string"?w:w.to;if($==="card-add-secure"){r.goToCardAddSecure();return}$==="back"&&r.backFromCardFlow()}function k(){if(r.isCardAddSecureStep){r.goToCardAdd();return}r.backFromCardFlow()}function x(){r.openClaimInfo()}function C(w){return{color:w.textColor||"#111111",backgroundColor:w.backgroundColor||"transparent"}}return(w,$)=>{const S=Art,I=Prt,P=vf,L=bf,D=Rs,R=yg;return p(),y("div",Drt,[a(r).isCardAddStep||a(r).isCardAddSecureStep?(p(),y(j,{key:0}
77,[c("div",Ert,[T(Z2,{class:"gap-2","aria-label":"Ðазад",onClick:k})]),a(r).isCardAddStep?(p(),K(sC,{key:0,onGo:v})):(p(),K(mm,{key:1,onGo:v}))],64)):(p(),y(j,{key:1},[c("div",Lrt,[$[3]||($[3]=c("div",{class:"min-w-0 flex-1"},null,-1)),c("button",{type:"button",class:"shrink-0 text-16 text-black transition-colors xl:hover:text-black",onClick:$[0]||($[0]=(...F)=>a(n).deferCurrent&&a(n).deferCurrent(...F))},b(a(t)("claimsOverlay.remindLater")),1)]),c("div",Rrt,[a(r).isLoading?(p(),y("div",Mrt,[...$[4]||($[4]=[ls('<div class="mx-auto h-20 w-20 rounded-full bg-grey-90"></div><div class="mx-auto h-8 w-48 rounded bg-grey-90"></div><div class="mx-auto h-5 w-72 rounded bg-grey-90"></div><div class="rounded-[12px] bg-grey-90 p-4 space-y-4"><div class="h-4 w-32 rounded bg-grey-80"></div><div class="h-6 w-48 rounded bg-grey-80"></div><div class="h-10 w-28 rounded-full bg-white"></div></div>',4)])])):a(r).error?(p(),y("div",Ort,[c("p",Frt,b(a(r).error.message??a(t)("claimsOverlay.loadError")),1),T(a(vt),{label:a(t)("claimsOverlay.retry"),onClick:a(r).loadClaim},null,8,["label","onClick"])])):(p(),y(j,{key:2},[c("div",Nrt,[c("div",{class:oe(["flex items-center justify-center rounded-full",a(r).isPay?"bg-purple-90":"bg-paleLime-90"])},[a(r).isPay?(p(),K(S,{key:0})):(p(),K(I,{key:1}))],2),c("h1",Brt,b(u.value),1),c("p",Vrt,b(d.value),1)]),a(r).isDecisionStep?(p(),y("div",Hrt,[c("div",qrt,[(p(),y(j,null,le(5,F=>c("button",{key:F,type:"button",class:"cursor-pointer",onClick:N=>a(r).setRating(F)},[F<=a(r).rating?(p(),K(P,{key:0})):(p(),K(L,{key:1}))],8,jrt)),64))]),T(ti,{"model-value":a(r).commentValue,multiline:!0,class:"mt-6","placeholder-text":h.value,"onUpdate:modelValue":a(r).updateCommentValue},null,8,["model-value","placeholder-text","onUpdate:modelValue"])])):(p(),y("button",{key:1,type:"button",class:"mt-8 w-full rounded-[12px] bg-grey-90 p-4 text-left",onClick:x},[c("div",Urt,[c("div",zrt,[c("p",Wrt,b(a(t)("claimsOverlay.requestNumber",{number:a(r).claim?.title||a(r).claim?.number||"â"})),1),c("p",Grt,b(a(r).claim?.workTypeName||a(t)("claimsOverlay.emptyTitle")),1)]),T(D,{class:"mt-1 h-5 w-5 shrink-0"})]),(a(r).claim?.amount??"").trim().length>0?(p(),y("div",Yrt,[T(R,{class:"h-4 w-4 text-grey-40"}),c("span",Krt,b(a(r).claim?.amount),1)])):E("",!0),a(r).claim?.additionalMarkers?.length?(p(),y("div",Qrt,[(p(!0),y(j,null,le(a(r).claim?.additionalMarkers,F=>(p(),y("span",{key:`${a(r).claim?.id}-${F.text}`,class:"relative inline-flex items-center gap-2 rounded-full px-3 py-1 pr-6 text-13 whitespace-nowrap",style:kt(C(F))},[F.iconUrl?(p(),y("img",{key:0,src:`${F.iconUrl}_x3.png`,alt:"",class:"h-[16px] w-[16px]"},null,8,Xrt)):E("",!0),c("span",Zrt,b(F.text),1),F.needIndicator?(p(),y("span",Jrt)):E("",!0)],4))),128))])):E("",!0)]))],64))]),!a(r).isLoading&&!a(r).error?(p(),y("div",eit,[f.value?(p(),y("p",tit,b(a(t)("claimsOverlay.acceptSubtitle")),1)):E("",!0),a(r).isDecisionStep?(p(),y("div",sit,[T(a(vt),{class:"w-full",label:a(t)("send"),loading:a(r).isActionLoading,disabled:a(r).isDecisionSubmitDisabled,onClick:m},null,8,["label","loading","disabled"]),T(a(vt),{class:"w-full",variant:"secondary",label:a(t)("claimsOverlay.back"),disabled:a(r).isActionLoading,onClick:a(r).goToSummary},null,8,["label","disabled","onClick"])])):a(r).isPay?(p(),K(a(vt),{key:2,class:"w-full",label:a(t)("pay"),loading:a(r).isActionLoading,onClick:_},null,8,["label","loading"])):(p(),y("div",nit,[a(r).showAutoChargeHint?(p(),y("div",rit,[T(R,{class:"h-4 w-4"}),c("span",null,b(a(t)("drawerClaimInfo.paymentAutoCharge")),1)])):E("",!0),T(a(vt),{class:"w-full",label:a(t)("drawerClaimInfo.acceptYes"),onClick:$[1]||($[1]=F=>a(r).startDecision(!0))},null,8,["label"]),T(a(vt),{class:"w-full",variant:"secondary",label:a(t)("drawerClaimInfo.acceptNo"),onClick:$[2]||($[2]=F=>a(r).startDecision(!1))},null,8,["label"])]))])):E("",!0)],64))])}}}),oit=Object.assign(iit,{__name:"ClaimsOverlayPanel"}),ait={key:0,class:"fixed inset-0 z-[116]"},lit={class:"absolute inset-0 flex justify-end max-w-full outline-none xl:p-6"},cit={class:"sticky top-0 z-10 flex items-center gap-3 pt-6 pr-6 pb-6 pl-6"},uit={class:"flex-1 min-w-0 flex justify-center"},dit={key:0,class:"w-full max-w-full text-center"},fit={class:"block truncate text-16 text-black"},pit={key:0,class:"block truncate text-13 text-grey-40"},hit={class:"flex-1 overflow-y-auto"},mit=G({__name:"AppClaimsOverlay",setup(e){const{t}
77=be(),s=ec(),n=ff(),r=fu(),i=ri(),o=X(!1),l=X(!1);let u=null;const d={"claim-info":Q9,"claim-chat":W9,"claim-cancel":G9,"claim-arbitration":K9,"claim-additional-works":a9,"claim-additional-works-help":l9,"claim-progress":X9,"claim-rate":Z9,"claim-rate-done":J9,"claim-result":eC},f=A(()=>{const v=n.currentClaimPanel;return v?d[v]:null}),h=A(()=>n.currentClaimPanel==="claim-chat"?{title:t("drawerClaimChat.title"),descr:r.title}:n.currentClaimPanel==="claim-additional-works"?{title:t("drawerClaimAdditionalWorks.title"),descr:""}:n.currentClaimPanel==="claim-additional-works-help"?{title:t("drawerClaimAdditionalWorks.helpTitle"),descr:""}:(n.currentClaimPanel!=="claim-info",null));Se(()=>s.isOpen,v=>{if(u&&(clearTimeout(u),u=null),v){o.value=!0,l.value=!1,typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>{l.value=!0}):l.value=!0;return}l.value=!1,u=setTimeout(()=>{o.value=!1,u=null},400)},{immediate:!0}),Se(()=>[s.isOpen,s.currentItem?.claimId??"",s.currentItem?.premisesId??"",s.currentMode??""],([v,k,x,C],w)=>{const[$,S,I,P]=w??[!1,"","",""];if(!v){n.resetState();return}$&&(k!==S||x!==I||C!==P)&&n.resetState()},{immediate:!0}),Se(()=>o.value,v=>xn("app-claims-overlay",v),{immediate:!0}),je(()=>xn("app-claims-overlay",o.value)),Tt(()=>{u&&clearTimeout(u),xn("app-claims-overlay",!1)});function g(v){return Array.isArray(v)?typeof v[0]=="string"?v[0]:"":typeof v=="string"?v:""}function m(v){if(v==="back"){n.backClaimPanel();return}const k=typeof v=="string"?v:v.to;if(k==="back"){n.backClaimPanel();return}const x=typeof v=="string"?void 0:v;if(k==="close"){_();return}if(k==="claim-info"){const C=g(x?.query?.id)||i.selectedClaimId||n.claimId,w=g(x?.query?.premises_id)||i.selectedPremisesId||n.premisesId;n.openClaimInfo({claimId:C,premisesId:w,replace:x?.replace});return}if(k==="claim-chat"){const C=i.selectedClaimId||i.claim?.id||n.claimId,w=g(x?.query?.premises_id)||i.selectedPremisesId||n.premisesId;r.setClaimContext(C,w||null),n.openClaimPanel("claim-chat",{replace:x?.replace});return}if(k==="claim-cancel"){n.openClaimPanel("claim-cancel",{replace:x?.replace});return}if(k==="claim-arbitration"){n.openClaimPanel("claim-arbitration",{replace:x?.replace});return}if(k==="claim-additional-works"){n.openClaimPanel("claim-additional-works",{replace:x?.replace});return}if(k==="claim-additional-works-help"){n.openClaimPanel("claim-additional-works-help",{replace:x?.replace});return}if(k==="claim-progress"){n.openClaimPanel("claim-progress",{replace:x?.replace});return}if(k==="claim-result"){n.openClaimPanel("claim-result",{replace:x?.replace});return}if(k==="claim-rate"){n.openClaimPanel("claim-rate",{replace:x?.replace});return}k==="claim-rate-done"&&n.openClaimPanel("claim-rate-done",{replace:!0})}function _(){n.resetState(),s.deferCurrent()}return(v,k)=>{const x=oit;return o.value?(p(),y("div",ait,[c("div",{class:oe(["absolute inset-0 overlay",{"overlay--on":l.value}])},null,2),c("div",lit,[c("div",{class:oe(["h-full w-screen bg-white shadow-xl transition-transform duration-400 ease-out transform-gpu flex flex-col overscroll-contain xl:w-[480px] xl:rounded-[16px]",l.value?"translate-x-0 xl:translate-x-0":"translate-x-full xl:translate-x-[calc(100%+1.5rem)]"]),role:"dialog","aria-modal":"true"},[a(n).hasClaimPanels?(p(),y(j,{key:0},[c("div",cit,[T(Z2,{class:"gap-2","aria-label":"Ðазад",onClick:a(n).backClaimPanel},null,8,["onClick"]),c("div",uit,[h.value?(p(),y("div",dit,[c("span",fit,b(h.value.title),1),h.value.descr?(p(),y("span",pit,b(h.value.descr),1)):E("",!0)])):E("",!0)]),T(a7,{onClose:_})]),c("div",hit,[f.value?(p(),K(Jn(f.value),{key:0,onGo:m},null,32)):E("",!0)])],64)):(p(),K(x,{key:1}))],2)])])):E("",!0)}}}),git=Object.assign(Gs(mit,[["__scopeId","data-v-7c0e77b1"]]),{__name:"AppClaimsOverlay"}),Oo="onboarding",Ki="welcome",Hb="closed",yit={class:"z-10 grid min-h-14 grid-cols-[56px_minmax(0,1fr)_56px] items-center gap-3 xl:hidden"},_it=["aria-label"],vit={class:"flex h-6 w-6 items-center justify-center"},bit={class:"min-w-0 px-1 text-center text-16 text-black"},xit=["aria-label"],kit={class:"relative z-10 hidden items-start justify-between gap-2 xl:absolute xl:left-[48px] xl:right-[20px] xl:top-[36px] xl:flex"},wit={class:"flex h-[24px] w-[24px] items-center justify-center"},Cit={class:"text-16"},$it=["aria-label"],Sit=G({__name:"OnboardingPanelHeader",props:{title:{}},emits:["back","close"],setup(e,{emit:t}){const s=t,{t:n}=be();return(r,i)=>{const o=n7,l=eg;return p(),y(j,null,[c("div",yit,[c("button",{type:"button",class:"flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 text-black transition-colors duration-200","aria-label":a(n)("onboarding.back"),onClick:i[0]||(i[0]=u=>s("back"))}
77,[c("span",vit,[T(o)])],8,_it),c("div",bit,b(e.title),1),c("button",{type:"button",class:"flex h-[48px] w-[72px] items-center justify-center rounded-full bg-grey-90 transition-colors duration-200","aria-label":a(n)("exit"),onClick:i[1]||(i[1]=u=>s("close"))},[T(l,{class:"h-6 w-6"})],8,xit)]),c("div",kit,[c("button",{type:"button",class:"inline-flex items-center gap-2 text-left text-black transition-opacity duration-200 xl:hover:opacity-72",onClick:i[2]||(i[2]=u=>s("back"))},[c("span",wit,[T(o)]),c("span",Cit,b(e.title),1)]),c("button",{type:"button",class:"group flex h-12 w-12 items-center justify-center rounded-full bg-grey-90 transition-colors xl:hover:bg-black","aria-label":a(n)("exit"),onClick:i[3]||(i[3]=u=>s("close"))},[T(l,{class:"h-6 w-6 transition-colors xl:group-hover:[&>path]:fill-white"})],8,$it)])],64)}}}),Ng=Object.assign(Sit,{__name:"OnboardingPanelHeader"}),Ait={class:"flex min-h-0 flex-1 flex-col"},Iit={class:"flex min-h-0 flex-1 flex-col xl:hidden"},Tit={class:"min-h-0 flex-1 overflow-y-auto overscroll-contain",style:{"-webkit-overflow-scrolling":"touch"}},Pit={class:"flex min-h-full flex-col"},Dit={class:"relative w-full"},Eit=["src","alt"],Lit={class:"text-title-32 text-black"},Rit={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"},Mit={key:0,class:"mt-2 text-11 text-yellow-50"},Oit={class:"sticky bottom-0 z-10 mt-auto shrink-0 bg-white pb-[env(safe-area-inset-bottom)] pt-4"},Fit={class:"flex justify-center gap-2"},Nit=["aria-label","onClick"],Bit={class:"mt-6"},Vit={class:"hidden min-h-0 flex-1 xl:grid xl:min-h-[400px] xl:grid-cols-[minmax(0,1fr)_480px]"},Hit={class:"flex min-h-0 flex-col pl-[32px] pt-[104px]"},qit={class:"text-title-44 text-black"},jit={class:"mt-2 text-16 text-grey-40 whitespace-pre-line"},Uit={key:0,class:"mt-2 text-11 text-yellow-50"},zit={class:"mt-6"},Wit={class:"mt-auto flex items-center gap-2 pb-[32px] pl-0.5"},Git={class:"flex flex-wrap gap-2"},Yit=["aria-label","onClick"],Kit={class:"relative h-full w-full"},Qit=["src","alt"],Xit=G({__name:"OnboardingRoleSlider",props:{slides:{},backLabel:{},nextLabel:{},completeLabel:{},completeVariant:{default:"normal"},visualClass:{default:"from-[#F6FAF7] via-[#F9FBFA] to-[#EEF6F1]"},imageClass:{default:"w-full h-full"}},emits:["complete"],setup(e,{emit:t}){const s={app:"https://redirect.appmetrica.yandex.com/serve/101534691546390826?utm_source=sait&utm_medium=onbording-zhitel&utm_campaign=3shag",appDone:"https://redirect.appmetrica.yandex.com/serve/101534691546390826?utm_source=sait&utm_medium=onbording-zhitel&utm_campaign=4shag",signup:"https://redirect.appmetrica.yandex.com/serve/101534691546390826?utm_source=sait&utm_medium=onbording-dlya_uk&utm_campaign=3shag"},n=/\[(app|appDone|signup)\]([\s\S]*?)\[\/\1\]/g,r={title:"",description:"",imageSrc:"",imageAlt:""},i=e,o=t,l=X(0),u=A(()=>i.slides[l.value]??i.slides[0]??r),d=A(()=>g(u.value.description)),f=A(()=>l.value===0),h=A(()=>l.value>=i.slides.length-1);function g(k){const x=Array.from(k.matchAll(n));if(x.length===0)return[{text:k}];const C=[];let w=0;for(const $ of x){const S=$.index??0,I=$[0],P=$[1],L=$[2]??"";S>w&&C.push({text:k.slice(w,S)}),C.push({text:L,href:s[P],className:"text-emerald-primary"}),w=S+I.length}return w<k.length&&C.push({text:k.slice(w)}),C}function m(k){l.value=k}function _(){f.value||(l.value-=1)}function v(){if(h.value){o("complete");return}l.value+=1}return Se(()=>i.slides,()=>{l.value=0},{deep:!0}),(k,x)=>{const C=Ae("PrimaryButton");return p(),y("div",Ait,[c("div",Iit,[c("div",Tit,[c("div",Pit,[c("div",{class:oe(["relative shrink-0 overflow-hidden rounded-[12px]",u.value.visualClass||e.visualClass])},[x[2]||(x[2]=c("div",{class:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_18%_18%,rgba(255,255,255,0.82),transparent_32%),radial-gradient(circle_at_82%_20%,rgba(255,255,255,0.72),transparent_28%),radial-gradient(circle_at_50%_78%,rgba(255,255,255,0.48),transparent_38%)]"},null,-1)),c("div",Dit,[T(Un,{name:"content-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("img",{key:`mobile-image-${l.value}`,src:u.value.imageSrc,alt:u.value.imageAlt,class:"block h-auto w-full rounded-[12px] object-contain object-center",draggable:"false"},null,8,Eit))]),_:1})])],2),T(Un,{name:"content-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("div",{key:`mobile-content-${l.value}`,class:"pb-6 pt-5"}
77,[c("h2",Lit,b(u.value.title),1),c("p",Rit,[(p(!0),y(j,null,le(d.value,(w,$)=>(p(),K(Jn(w.href?"a":"span"),{key:`mobile-description-${l.value}-${$}`,href:w.href,target:w.href?"_blank":void 0,rel:w.href?"noopener noreferrer":void 0,class:oe(w.className)},{default:Xe(()=>[Qe(b(w.text),1)]),_:2},1032,["href","target","rel","class"]))),128))]),u.value.warning?(p(),y("p",Mit,b(u.value.warning),1)):E("",!0)]))]),_:1})])]),c("div",Oit,[c("div",Fit,[(p(!0),y(j,null,le(e.slides,(w,$)=>(p(),y("button",{key:`mobile-dot-${w.title}`,type:"button",class:oe(["h-2 w-2 rounded-full transition-colors duration-200",$===l.value?"bg-emerald-primary":"bg-grey-80"]),"aria-label":w.title,onClick:S=>m($)},null,10,Nit))),128))]),c("div",Bit,[T(Un,{name:"actions-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("div",{key:`mobile-actions-${f.value?"primary-only":"with-back"}`,class:"flex flex-col gap-2"},[T(C,{label:h.value?e.completeLabel:e.nextLabel,variant:h.value?e.completeVariant:"normal",onClick:v},null,8,["label","variant"]),f.value?E("",!0):(p(),K(C,{key:0,label:e.backLabel,variant:"secondary",onClick:_},null,8,["label"])),u.value.action?(p(),K(C,{key:1,label:u.value.action,variant:"secondary",onClick:x[0]||(x[0]=w=>o("complete"))},null,8,["label"])):E("",!0)]))]),_:1})])])]),c("div",Vit,[c("div",Hit,[T(Un,{name:"content-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("div",{key:`content-${l.value}`,class:"max-w-[420px]"},[c("h2",qit,b(u.value.title),1),c("p",jit,[(p(!0),y(j,null,le(d.value,(w,$)=>(p(),K(Jn(w.href?"a":"span"),{key:`description-${l.value}-${$}`,href:w.href,target:w.href?"_blank":void 0,rel:w.href?"noopener noreferrer":void 0,class:oe(w.className)},{default:Xe(()=>[Qe(b(w.text),1)]),_:2},1032,["href","target","rel","class"]))),128))]),u.value.warning?(p(),y("p",Uit,b(u.value.warning),
771)):E("",!0)]))]),_:1}),c("div",zit,[T(Un,{name:"actions-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("div",{key:f.value?"primary-only":"with-back",class:"flex flex-wrap gap-3"},[f.value?E("",!0):(p(),K(C,{key:0,label:e.backLabel,variant:"secondary",class:"w-auto min-w-[112px]","full-width":!1,onClick:_},null,8,["label"])),T(C,{label:h.value?e.completeLabel:e.nextLabel,variant:h.value?e.completeVariant:"normal",class:"w-auto min-w-[112px]","full-width":!1,onClick:v},null,8,["label","variant"]),u.value.action?(p(),K(C,{key:1,label:u.value.action,variant:"secondary",class:"w-auto min-w-[112px]","full-width":!1,onClick:x[1]||(x[1]=w=>o("complete"))},null,8,["label"])):E("",!0)]))]),_:1})]),c("div",Wit,[c("div",Git,[(p(!0),y(j,null,le(e.slides,(w,$)=>(p(),y("button",{key:w.title,type:"button",class:oe(["h-2 w-2 rounded-full transition-colors duration-200",$===l.value?"bg-emerald-primary":"bg-grey-80 xl:hover:bg-grey-40"]),"aria-label":w.title,onClick:S=>m($)},null,10,Yit))),128))])])]),c("div",{class:oe(["relative min-h-[280px] overflow-hidden rounded-[12px] xl:h-[400px] xl:min-h-[400px]",u.value.visualClass||e.visualClass])},[x[3]||(x[3]=c("div",{class:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_18%_18%,rgba(255,255,255,0.82),transparent_32%),radial-gradient(circle_at_82%_20%,rgba(255,255,255,0.72),transparent_28%),radial-gradient(circle_at_50%_78%,rgba(255,255,255,0.48),transparent_38%)]"},null,-1)),c("div",Kit,[T(Un,{name:"content-fade",mode:"out-in"},{default:Xe(()=>[(p(),y("img",{key:`image-${l.value}`,src:u.value.imageSrc,alt:u.value.imageAlt,class:oe(["absolute inset-0 block h-full w-full object-cover object-center",u.value.imageClass||e.imageClass]),draggable:"false"},null,10,Qit))]),_:1})])],2)])])}}}),Bg=Object.assign(Gs(Xit,[["__scopeId","data-v-25ba3828"]]),{__name:"OnboardingRoleSlider"}),Zit={class:"relative flex h-full min-h-full flex-col overflow-hidden p-4 xl:p-8"},Jit=G({__name:"OnboardingCompanyPanel",emits:["go","close"],setup(e,{emit:t}){const{t:s}=be();function n(){Ne().hideSectionSwitcher(),r("go",{path:"/company"})}const r=t,i=A(()=>[{title:s("onboarding.roles.company.slides.send.title"),description:s("onboarding.roles.company.slides.send.decsr"),imageSrc:"/images/onboarding/company/1.jpg",imageAlt:s("onboarding.roles.company.slides.send.title")},{title:s("onboarding.roles.company.slides.reg.title"),description:s("onboarding.roles.company.slides.reg.decsr"),imageSrc:"/images/onboarding/company/2.jpg",imageAlt:s("onboarding.roles.company.slides.reg.title")},{title:s("onboarding.roles.company.slides.connect.title"),description:s("onboarding.roles.company.slides.connect.decsr"),imageSrc:"/images/onboarding/company/3.jpg",imageAlt:s("onboarding.roles.company.slides.connect.title")},{title:s("onboarding.roles.company.slides.done.title"),description:s("onboarding.roles.company.slides.done.decsr"),imageSrc:"/images/onboarding/company/4.jpg",imageAlt:s("onboarding.roles.company.slides.done.title")}]);return(o,l)=>{const u=Ng,d=Bg;return p(),y("div",Zit,[T(u,{title:a(s)("onboarding.roles.company.slides.title"),onBack:l[0]||(l[0]=f=>r("go","back")),onClose:l[1]||(l[1]=f=>r("close"))},null,8,["title"]),T(d,{class:"mt-6 xl:mt-0",slides:i.value,"back-label":a(s)("onboarding.back"),"next-label":a(s)("next"),"complete-label":a(s)("onboarding.roles.company.slides.action"),"visual-class":"from-[#F7FBF7] via-[#F2F8F5] to-[#E4F2EA]",onComplete:n},null,8,["slides","back-label","next-label","complete-label"])])}}}),eot=Object.assign(Jit,{__name:"OnboardingCompanyPanel"}),tot={class:"relative flex h-full min-h-full flex-col overflow-hidden p-4"},sot=G({__name:"OnboardingMasterPanel",emits:["go","close"],setup(e,{emit:t}){const{t:s}=be();function n(){Ne().hideSectionSwitcher(),r("go",{path:"/master"})}const r=t,i=A(()=>[{title:s("onboarding.roles.master.slides.reg.title"),description:s("onboarding.roles.master.slides.reg.decsr"),imageSrc:"/images/onboarding/master/1.jpg",imageAlt:s("onboarding.roles.master.slides.reg.title")},{title:s("onboarding.roles.master.slides.select.title"),description:s("onboarding.roles.master.slides.select.decsr"),imageSrc:"/images/onboarding/master/2.jpg",imageAlt:s("onboarding.roles.master.slides.select.title")},{title:s("onboarding.roles.master.slides.done.title"),description:s("onboarding.roles.master.slides.done.decsr"),imageSrc:"/images/onboarding/master/3.jpg",imageAlt:s("onboarding.roles.master.slides.done.title")},{title:s("onboarding.roles.master.slides.pay.title"),description:s("onboarding.roles.master.slides.pay.decsr"),imageSrc:"/images/onboarding/master/4.jpg",imageAlt:s("onboarding.roles.master.slides.pay.title")}]);return(o,l)=>{const u=Ng,d=Bg;return p(),y("div",tot,[T(u,{title:a(s)("onboarding.roles.master.slides.title"),onBack:l[0]||(l[0]=f=>r("go","back")),onClose:l[1]||(l[1]=f=>r("close"))},null,8,["title"]),T(d,{class:"mt-6 xl:mt-0",slides:i.value,"back-label":a(s)("onboarding.back"),"next-label":a(s)("next"),"complete-label":a(s)("onboarding.roles.master.slides.action"),"visual-class":"from-[#FFF8E8] via-[#FFF5DE] to-[#FFF0C8]",onComplete:n},null,8,["slides","back-label","next-label","complete-label"])])}}}),not=Object.assign(sot,{__name:"OnboardingMasterPanel"}),rot={class:"relative flex h-full min-h-full flex-col overflow-hidden p-4"},iot=G({__name:"OnboardingResidentPanel",emits:["go","close"],setup(e,{emit:t}){const{t:s}=be();function n(){Ne().hideSectionSwitcher(),r("close")}const r=t,i=A(()=>[{title:s("onboarding.roles.resident.slides.1.title"),description:s("onboarding.roles.resident.slides.1.decsr"),imageSrc:"/images/onboarding/marketplace/1.jpg",imageAlt:s("onboarding.roles.resident.slides.1.title")},{title:s("onboarding.roles.resident.slides.2.title"),description:s("onboarding.roles.resident.slides.2.decsr"),imageSrc:"/images/onboarding/marketplace/2.jpg",imageAlt:s("onboarding.roles.resident.slides.2.title"),visualClass:"from-[#F7FBF5] via-[#F3F8F1] to-[#E6F2E8]"},{title:s("onboarding.roles.resident.slides.3.title"),description:s("onboarding.roles.resident.slides.3.decsr"),imageSrc:"/images/onboarding/marketplace/3.jpg",imageAlt:s("onboarding.roles.resident.slides.3.title")},{title:s("onboarding.roles.resident.slides.4.title"),description:s("onboarding.roles.resident.slides.4.decsr"),imageSrc:"/images/onboarding/marketplace/4.jpg",imageAlt:s("onboarding.roles.resident.slides.4.title")},{title:s("onboarding.roles.resident.slides.6.title"),description:s("onboarding.roles.resident.slides.6.decsr"),imageSrc:"/images/onboarding/marketplace/6.jpg",imageAlt:s("onboarding.roles.resident.slides.6.title"),warning:s("onboarding.roles.resident.slides.6.warning")}]);return(o,l)=>{const u=Ng,d=Bg;return p(),y("div",rot,[T(u,{title:a(s)("onboarding.roles.resident.slides.title"),onBack:l[0]||(l[0]=f=>r("go","back")),onClose:l[1]||(l[1]=f=>r("close"))},null,8,["title"]),T(d,{class:"mt-6 xl:mt-0",slides:i.value,"back-label":a(s)("onboarding.back"),"next-label":a(s)("next"),"complete-label":a(s)("onboarding.roles.resident.slides.action"),onComplete:n},null,8,["slides","back-label","next-label","complete-label"])])}}}),oot=Object.assign(iot,{__name:"OnboardingResidentPanel"}),aot={xmlns:"http://www.w3.org/2000/svg",width:"131",height:"24",fill:"none"};function lot(e,t){return p(),y("svg",aot,[...t[0]||(t[0]=[ls('<path fill="#212926" fill-rule="evenodd" d="M47.93 11.25q-1.256-.509-3.018-.508h-4.856V8.618h9.295V5.271H35.796V18.73h9.871q1.536 0 2.625-.451 1.092-.45 1.66-1.288.57-.835.569-1.982 0-1.347-.67-2.3-.669-.955-1.923-1.46m-1.874 4.115c-.151.227-.37.397-.66.518a2.6 2.6 0 0 1-1.01.178H40.04v-2.97h4.33q.866 0 1.39.415t.523 1.108q0 .413-.226.751M51.86 18.73l5.865-13.458h5.015l5.756 13.458h-4.401l-.975-2.387h-5.918l-.922 2.387zM60.18 8.24l-2.147 5.413h4.294l-2.11-5.413z" clip-rule="evenodd"></path><path fill="#212926" d="M72.726 8.616h-4.658V5.272H81.62v3.344h-4.637V18.73h-4.257zM105.123 13.185h7.325v-2.613h-7.325V8.259h8.046V5.272h-12.162V18.73h12.343v-2.99h-8.227z"></path><path fill="#212926" fill-rule="evenodd" d="M128.455 5.826q1.244.556 1.894 1.617.65 1.062.651 2.528 0 1.447-.659 2.472t-1.895 1.57-2.97.545h-4.78v4.172h-4.242V5.272h9.076q1.68-.001 2.925.554m-2.843 5.798q.568-.224.839-.657t.268
77-1.034q0-.94-.622-1.438t-1.777-.498h-3.626v3.853h3.609q.74 0 1.309-.226" clip-rule="evenodd"></path><path fill="#212926" d="M84.957 8.645V5.272h13.026V18.73h-4.26V8.412h-4.506V9.58c0 6.824-1.043 9.15-6.387 9.15h-.709v-1.795h1.032V15.14H82.12v-1.797h1.637s1.096.083 1.145-1.828c.037-.785.054-1.73.054-2.869"></path><path fill="#11986C" d="M20.896 11.885c1.25 1.17 3.275 1.17 4.525 0L26.9 10.5c.726-.679 1.243-1.358 1.559-2.032s.41-1.316.303-1.922q-.167-.91-.95-1.64c-.53-.497-1.137-.78-1.813-.847q-1.019-.102-2.032.486l-.01-.01-.012-.011q.626-.947.518-1.902c-.073-.632-.372-1.202-.906-1.693Q22.772.2 21.802.041q-.97-.156-2.06.282-1.082.44-2.172 1.458l-1.48 1.384c-1.25 1.17-1.25 3.062 0 4.227l1.58 1.478-3.263 3.057-3.27-3.057 1.581-1.478c1.25-1.17 1.25-3.062 0-4.227l-1.48-1.384Q10.148.76 9.066.323q-1.08-.438-2.06-.282C6.36.146 5.774.438 5.25.93q-.795.745-.906 1.693-.109.955.518 1.902l-.023.02q-1.011-.587-2.031-.485t-1.812.846q-.784.73-.952 1.64-.167.912.304 1.923c.31.674.833 1.353 1.56 2.032l1.48 1.385c1.249 1.17 3.275 1.17 4.524 0l1.582-1.479 3.27 3.057-5.274 4.931-2.527-2.361-1.215 1.134.686.642-1.215 1.134 1.84 1.724-2.527-2.362-1.216 1.134 2.527 2.362-.709.663L4.772 24l9.624-8.996L24.019 24l1.638-1.536-.71-.663 2.528-2.362-1.216-1.134-2.51 2.351 1.84-1.724-1.215-1.133.686-.643-1.215-1.133-2.527 2.36-5.274-4.926 3.27-3.056zm-14.21-9.29c.202-.192.45-.307.731-.36.281-.047.58-.01.895.12q.464.19.912.607l1.7 1.588a.99.99 0 0 1 0 1.468l-1.42 1.327-2.47-2.315q-.665-.625-.765-1.29c-.068-.439.073-.825.416-1.144m-.243 7.602a1.16 1.16 0 0 1-1.57 0l-1.7-1.588a2.8 2.8 0 0 1-.647-.851 1.35 1.35 0 0 1-.123-.836c.05-.267.18-.491.382-.685.344-.324.754-.449 1.227-.392.473.063.934.298 1.379.716l2.47 2.31zm18.359-4.346q.71-.094 1.226.392c.203.193.332.417.383.684q.077.398-.124.836a2.8 2.8 0 0 1-.647.851l-1.7 1.589a1.16 1.16 0 0 1-1.57 0l-1.418-1.327 2.47-2.31q.669-.628 1.38-.715M17.896 4.55l1.7-1.588q.447-.417.911-.606.465-.19.895-.12c.282.046.53.167.732.36q.516.486.416 1.144-.099.665-.765 1.29l-2.47 2.31-1.419-1.327a.986.986 0 0 1 0-1.463"></path>',5)])])}const cot={render:lot},uot={class:"flex h-full flex-col p-4 xl:p-[48px]"},dot={class:"flex items-start justify-between"},fot={class:"min-w-0 flex-1"},pot=["aria-label"],hot={class:"mt-6 text-title-32 text-black xl:text-title-44"},mot={class:"mt-3 text-16 text-grey-40"},got={class:"mt-8 grid gap-3 xl:grid-cols-3 xl:gap-3"},yot=["onClick"],_ot={class:"mt-auto pt-[120px]"},vot=["src","alt"],bot=G({__name:"OnboardingWelcomePanel",emits:["go","close"],setup(e,{emit:t}){const{t:s}=be(),n=t,r=[{panel:"resident",iconSrc:"/images/onboarding/greetings/owner.png",titleKey:"onboarding.roles.resident.title",descrKey:"onboarding.roles.resident.short",cardClass:"bg-grey-90 text-black",titleClass:"text-black",descrClass:"text-grey-40",buttonClass:"bg-paleLime-primary text-white"},{panel:"company",iconSrc:"/images/onboarding/greetings/company.png",titleKey:"onboarding.roles.company.title",descrKey:"onboarding.roles.company.short",cardClass:"bg-grey-90 text-black",titleClass:"text-black",descrClass:"text-grey-40",buttonClass:"bg-paleLime-primary text-white"},{panel:"master",iconSrc:"/images/onboarding/greetings/master.png",titleKey:"onboarding.roles.master.title",descrKey:"onboarding.roles.master.short",cardClass:"bg-grey-90 text-black",titleClass:"text-black",descrClass:"text-grey-40",buttonClass:"bg-paleLime-primary text-white"}];function i(){n("close")}return(o,l)=>{const u=cot;return p(),y("div",uot,[c("div",dot,[c("div",fot,[T(u,{class:"h-[28px] w-auto"})]),c("button",{type:"button",class:"text-16 text-grey-40 transition-colors duration-200 xl:hover:text-black","aria-label":a(s)("onboarding.skip"),onClick:l[0]||(l[0]=d=>i())},b(a(s)("onboarding.skip")),9,pot)]),c("h1",hot,b(a(s)("onboarding.title")),1),c("p",mot,b(a(s)("onboarding.description")),1),c("div",got,[(p(),y(j,null,le(r,d=>c("button",{key:d.panel,type:"button",class:oe(["group relative flex min-h-[212px] flex-col rounded-[12px] bg-grey-90 px-5 py-5 text-left duration-200 xl:hover:bg-emerald-primary",d.cardClass]),onClick:f=>n("go",d.panel)},[c("p",{class:oe(["text-16-bold xl:group-hover:text-white",d.titleClass])},b(a(s)(d.titleKey)),3),c("p",{class:oe(["mt-2 text-13 xl:group-hover:text-white",d.descrClass])},b(a(s)(d.descrKey)),3),c("div",_ot,[c("span",{class:oe(["inline-flex items-center rounded-full px-4 py-2",d.buttonClass])},b(a(s)("onboarding.chooseRole")),3)]),c("img",{src:d.iconSrc,alt:a(s)(d.titleKey),class:"absolute bottom-0 right-0 h-[120px] w-[120px]"},null,8,vot)],10,yot)),64))])])}}}),qb=Object.assign(bot,{__name:"OnboardingWelcomePanel"}),xot={key:0,class:"fixed inset-0 z-[115]"},kot={class:"min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-4-grey80 gutter-stable xl:[scrollbar-gutter:auto]",style:{"-webkit-overflow-scrolling":"touch"}},wot={class:"flex h-full min-h-full flex-col"},Cot=G({__name:"AppOnboarding",setup(e){const t=st(),s=is(),n=Ne(),r={[Ki]:qb,resident:oot,master:not,company:eot},i={resident:"/",master:"/master",company:"/company"},o=A(()=>{if(!n.shouldShowOnboarding)return!1;const I=t.query[Oo];return I!==Hb}),l=A(()=>{const I=t.query[Oo];return!I||I===Hb?Ki:I}),u=A(()=>r[l.value]||qb),d=X(!1),f=X(!1),h=X(null),g=X([]);Se(o,I=>{if(!I){g.value=[];return}g.value=l.value===Ki?[Ki]:[Ki,l.value]},{immediate:!0});function m(I){if(I==="back")return _();
77const P=typeof I=="string"?{to:I}:I;if(P.path){n.markOnboardingSeen();const F={...un(t.query),...P.query};return F[Oo]=void 0,s.push({path:P.path,query:F})}const L=P.to;if(!L)return v();P.replace?g.value.length?g.value[g.value.length-1]=L:g.value=[L]:g.value[g.value.length-1]!==L&&g.value.push(L);const D={...un(t.query),[Oo]:L},R={path:t.path,query:D};return P.replace?s.replace(R):s.push(R)}function _(){if(g.value.length>1){g.value.pop();const I=g.value[g.value.length-1],P=un(t.query);return I?P[Oo]=I:P[Oo]=void 0,s.replace({path:t.path,query:P})}return v()}function v(){n.markOnboardingSeen();const I=i[l.value],P=un(t.query);return P[Oo]=void 0,I&&t.path!==I?s.replace({path:I}):s.replace({path:t.path,query:P})}function k(I){return I.pointerType==="mouse"?I.button===0:!0}function x(){h.value=null}function C(I){k(I)&&(h.value=I.pointerId)}function w(I){}function $(I){h.value===I.pointerId&&x()}function S(I){h.value===I.pointerId&&x()}return Se(o,I=>{I?(d.value=!0,f.value=!1,typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>{f.value=!0}):f.value=!0):(f.value=!1,setTimeout(()=>{d.value=!1},420)),xn("app-onboarding",I)},{immediate:!0}),Se(l,I=>{if(!o.value)return;if(I===Ki){g.value=[Ki];return}if(g.value[g.value.length-1]===I)return;const P=g.value.indexOf(I);if(P>=0){g.value=g.value.slice(0,P+1);return}g.value=[Ki,I]}),je(()=>xn("app-onboarding",o.value)),Tt(()=>xn("app-onboarding",!1)),(I,P)=>d.value?(p(),y("div",xot,[c("div",{class:oe(["absolute inset-0 overlay",{"overlay--on":f.value}])},null,2),c("div",{class:"absolute inset-0 flex items-stretch justify-center max-w-full outline-none xl:items-center xl:p-6",onPointerdown:St(C,["self"]),onPointerup:w,onPointerleave:$,onPointercancel:S},[c("div",{class:oe(["flex h-full max-h-full w-screen transform-gpu flex-col overflow-hidden overscroll-contain bg-white transition-all duration-400 ease-out xl:h-auto xl:max-h-[calc(100vh-48px)] xl:w-[min(100%,960px)] xl:rounded-[32px] xl:shadow-[0_32px_80px_rgba(17,41,38,0.18)]",f.value?"translate-y-0 opacity-100":"translate-y-4 opacity-0 xl:translate-y-8"]),role:"dialog","aria-modal":"true"},[c("div",kot,[c("div",wot,[(p(),K(Jn(u.value),{key:l.value,onGo:m,onClose:v},null,32))])])],2)],32)])):E("",!0)}}),$ot=Object.assign(Gs(Cot,[["__scopeId","data-v-9d4806ee"]]),{__name:"AppOnboarding"}),Sot={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"};function Aot(e,t){return p(),y("svg",Sot,[...t[0]||(t[0]=[c("path",{fill:"#F9F9F9","fill-opacity":".24",d:"M18 12a6 6 0 1 0-12 .002A6 6 0 0 0 18 12m4 0a10 10 0 0 1-6.173 9.24A10.002 10.002 0 0 1 8.173 2.76 10 10 0 0 1 22 12"},null,-1),c("path",{fill:"#F9F9F9",d:"M18 12a6 6 0 0 0-6-6 2 2 0 1 1 0-4 10 10 0 0 1 10 10 2 2 0 1 1-4 0"},null,-1)])])}const Iot={render:Aot},Tot=Ls("/images/agreements.png"),dC=Ke("agreements",{state:()=>({isOpen:!1,isLoading:!1,isSubmitting:!1,agreements:[],error:null}),actions:{open(){this.isOpen||(this.isOpen=!0,this.load())},close(){this.isOpen=!1,this.isLoading=!1,this.isSubmitting=!1,this.agreements=[],this.error=null},async load(){this.isLoading=!0,this.error=null;const e=await ue().fetchUnacceptedAgreements();if(e.ok){this.agreements=e.data.agreements,this.isLoading=!1,this.agreements.length===0&&this.close();return}this.error=e.error,this.isLoading=!1},async accept(){this.isSubmitting=!0,this.error=null;const e=await ue().acceptUnacceptedAgreements(this.agreements);return this.isSubmitting=!1,e.ok?(this.close(),e):(this.error=e.error,e)}}}),Pot=Object.freeze(Object.defineProperty({__proto__:null,useAgreementsStore:dC},Symbol.toStringTag,{value:"Module"})),Dot={key:0,class:"fixed inset-0 z-[116]"},Eot={class:"absolute inset-0 flex items-stretch justify-center max-w-full outline-none auth:items-center auth:p-6"},Lot={class:"min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-4-grey80 gutter-stable xl:[scrollbar-gutter:auto]",style:{"-webkit-overflow-scrolling":"touch"}},Rot={class:"mx-auto flex min-h-full w-full max-w-[424px] flex-col gap-6 p-6"},Mot={class:"flex h-[200px] shrink-0 items-start justify-center"},Oot=["alt"],Fot={class:"flex min-h-0 flex-1 flex-col gap-6"},Not={class:"flex shrink-0 flex-col gap-2"},Bot={class:"text-center text-24-bold text-black"},Vot={class:"text-center text-16 text-grey-40"},Hot={class:"min-h-0 flex-1 overflow-y-auto overscroll-contain"},qot={key:0,class:"space-y-2"},jot={key:1},Uot={class:"text-center text-16 text-black"},zot={key:2,class:"space-y-2"},Wot={class:"min-w-0 flex-1 text-13 text-black"},Got={class:"min-w-0 flex-1 text-13 text-black"},Yot=["disabled","aria-busy"],Kot={key:0,class:"absolute inset-0 flex items-center justify-center"},Lp="app-agreements",Qot=G({__name:"AppAgreements",setup(e){const{t}=be(),s=st(),n=is(),r=Te(),i=dC(),o=r.$showSnackbar,l=X(!1),u=X(!1),d=X(!1),f=X(!1),h=A(()=>i.agreements.includes("terms")),g=A(()=>i.agreements.includes("privacy")||i.agreements.includes("consent")),m=A(()=>i.agreements.length===0?!1:(!h.value||d.value)&&(!g.value||f.value));Se(()=>i.isOpen,v=>{v?(l.value=!0,u.value=!1,typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>{u.value=!0}):u.value=!0):(u.value=!1,setTimeout(()=>{l.value=!1},420)),xn(Lp,v)},{immediate:!0}),Se(()=>i.agreements,()=>{d.value=!1,f.value=!1});async function _(){const v=await i.accept();if(!v.ok){o?.(v.error.message??t("agreements.submitError"),!0);return}if(s.path!=="/"){await n.push("/");return}window.location.reload()}return je(()=>xn(Lp,i.isOpen)),Tt(()=>xn(Lp,!1)),(v,k)=>{const x=Ae("PrimaryButton"),C=_a,w=va,$=Iot;return l.value?(p(),y("div",Dot,[c("div",{class:oe(["absolute inset-0 overlay",{"overlay--on":u.value}])},null,2),c("div",Eot,[c("div",{class:oe(["flex h-full max-h-full w-screen transform-gpu flex-col overflow-hidden overscroll-contain bg-white transition-all duration-400 ease-out auth:h-[608px] auth:max-h-[calc(100vh-48px)] auth:w-[424px] auth:rounded-[24px] auth:shadow-[0_32px_80px_rgba(17,41,38,0.18)]",u.value?"translate-y-0 opacity-100":"translate-y-4 opacity-0 auth:translate-y-8"]),role:"dialog","aria-modal":"true"},[c("div",Lot,[c("div",Rot,[c("div",Mot,[c("img",{src:Tot,alt:a(t)("agreements.imageAlt"),class:"h-[200px] w-[200px] object-contain"},null,8,Oot)]),c("div",Fot,[c("div",Not,[c("h1",Bot,b(a(t)("agreements.title")),1),c("p",Vot,b(a(t)("agreements.description")),1)]),c("div",Hot,[a(i).isLoading?(p(),y("div",qot,[...k[5]||(k[5]=[c("div",{class:"h-16 w-full animate-pulse rounded-[12px] bg-grey-90"},null,-1),c("div",{class:"h-20 w-full animate-pulse rounded-[12px] bg-grey-90"},null,-1)])])):a(i).error?(p(),y("div",jot,[c("p",Uot,b(a(t)("agreements.loadError")),1),T(x,{class:"mt-6",variant:"secondary",label:a(t)("agreements.retry"),loading:a(i).isLoading,onClick:a(i).load},null,8,["label","loading","onClick"])])):(p(),y("div",zot,[h.value?(p(),y("button",{key:0,t
77ype:"button",class:"flex min-h-[64px] w-full items-start gap-3 rounded-[12px] bg-grey-90 p-4 text-left",onClick:k[1]||(k[1]=S=>d.value=!d.value)},[d.value?(p(),K(C,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(w,{key:1,class:"h-6 w-6 shrink-0"})),c("span",Wot,[Qe(b(a(t)("agreements.userAgreementConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/terms-of-use",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:k[0]||(k[0]=St(()=>{},["stop"]))},b(a(t)("agreements.userAgreementLink")),1),k[6]||(k[6]=c("br",null,null,-1)),Qe(" "+b(a(t)("agreements.userAgreementConsentPart2")),1)])])):E("",!0),g.value?(p(),y("button",{key:1,type:"button",class:"flex min-h-[80px] w-full items-start gap-3 rounded-[12px] bg-grey-90 p-4 text-left",onClick:k[4]||(k[4]=S=>f.value=!f.value)},[f.value?(p(),K(C,{key:0,class:"h-6 w-6 shrink-0"})):(p(),K(w,{key:1,class:"h-6 w-6 shrink-0"})),c("span",Got,[Qe(b(a(t)("agreements.personalDataConsentPart1"))+" ",1),c("a",{href:"https://butler.social/docs/consent-to-pd",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:k[2]||(k[2]=St(()=>{},["stop"]))},b(a(t)("agreements.personalDataConsentLink")),1),k[7]||(k[7]=c("br",null,null,-1)),Qe(" "+b(a(t)("agreements.personalDataConsentPart2"))+" ",1),c("a",{href:"https://butler.social/docs/privacy-policy",target:"_blank",rel:"noopener noreferrer",class:"text-emerald-primary",onClick:k[3]||(k[3]=St(()=>{},["stop"]))},b(a(t)("agreements.personalDataPolicyLink")),1)])])):E("",!0)]))]),!a(i).isLoading&&!a(i).error?(p(),y("button",{key:0,type:"button",class:oe(["relative flex h-12 w-full shrink-0 items-center justify-center rounded-[12px] px-6 py-3 text-16-bold transition-colors duration-150",m.value?["bg-paleLime-primary text-white auth:hover:bg-paleLime-40",a(i).isSubmitting?"cursor-not-allowed":"cursor-pointer"]:"cursor-not-allowed bg-grey-90 text-grey-70"]),disabled:!m.value||a(i).isSubmitting,"aria-busy":a(i).isSubmitting?"true":"false",onClick:_},[c("span",{class:oe(a(i).isSubmitting?"opacity-0":"")},b(a(t)("agreements.accept")),3),a(i).isSubmitting?(p(),y("span",Kot,[T($,{class:"h-6 w-6 animate-spin"})])):E("",!0)],10,Yot)):E("",!0)])])])],2)])])):E("",!0)}}}),Xot=Object.assign(Gs(Qot,[["__scopeId","data-v-98b87c4b"]]),{__name:"AppAgreements"}),Zot={key:0,class:"fixed inset-0 z-[135] flex h-[100dvh] w-screen flex-col overflow-hidden overscroll-contain bg-white px-5 pt-[26px] auth:hidden","aria-labelledby":"app-mobile-continue-title"},Jot=G({__name:"AppMobileContinue",setup(e){const t=Ne(),s=X(!1),n=A(()=>t.isAuthorized&&s.value);let r=null;function i(){s.value=r?.matches??!1}return je(()=>{r=window.matchMedia("(max-width: 959px)"),i(),r.addEventListener("change",i)}),Se(n,o=>{xn("app-mobile-continue",o)},{immediate:!0}),Tt(()=>{r?.removeEventListener("change",i),xn("app-mobile-continue",!1)}),(o,l)=>{const u=oC;return a(t).isAuthorized?(p(),y("section",Zot,[T(u,{"title-id":"app-mobile-continue-title"})])):E("",!0)}}}),eat=Object.assign(Jot,{__name:"AppMobileContinue"}),tat={key:0,class:"fixed inset-x-0 bottom-0 z-[130] px-4 pb-4"},sat={class:"mx-auto flex w-full max-w-[920px] flex-col gap-4 roun
77ded-[16px] border border-grey-80 bg-white p-4 shadow-[0_8px_24px_rgba(0,0,0,0.12)] md:flex-row md:items-end md:justify-between"},nat={class:"min-w-0"},rat={class:"text-16-bold text-black"},iat={class:"mt-1 text-13 text-grey-40"},oat={class:"flex w-full gap-2 md:w-auto"},aat=G({__name:"CookieConsentBanner",setup(e){const{t}=be(),s=X(!1);je(()=>{s.value=e7()===null});const n=qoe(()=>{s.value=!0});Tt(()=>{n()});function r(){T4("granted"),s.value=!1}function i(){T4("denied"),s.value=!1}function o(){window.open("https://butler.social/docs/privacy-policy","_blank")}return(l,u)=>{const d=Ae("PrimaryButton");return s.value?(p(),y("div",tat,[c("div",sat,[c("div",nat,[c("p",rat,b(a(t)("cookie.bannerTitle")),1),c("p",iat,[Qe(b(a(t)("cookie.bannerText"))+" ",1),c("button",{type:"button",class:"text-emerald-primary",onClick:o},b(a(t)("cookie.policyLink")),1)])]),c("div",oat,[T(d,{class:"w-1/2 md:w-[220px]",variant:"secondary",label:a(t)("cookie.reject"),onClick:i},null,8,["label"]),T(d,{class:"w-1/2 md:w-[220px]",label:a(t)("cookie.accept"),onClick:r},null,8,["label"])])])])):E("",!0)}}}),lat=Object.assign(aat,{__name:"CookieConsentBanner"}),cat={class:"min-h-screen flex flex-col"},uat={key:0,class:"fixed left-1/2 top-6 z-[120] -translate-x-1/2 pointer-events-none"},dat={class:"flex min-h-14 w-[328px] items-start gap-3 rounded-xl bg-[#212926] p-4"},fat={class:"min-w-0 flex-1 break-words text-left font-inter-tight text-base font-normal leading-6 text-white [font-feature-settings:'pnum'_on,'lnum'_on]"},pat=2e4,hat=G({__name:"app",setup(e){const s=Te().$snackbar,n=st(),r=is(),i=Ne(),o=Jl(),l=Bu(),u=Oe(),d=ba(),f=ec();let h=null;qm(()=>({bodyAttrs:{class:i.isAuthorized?"is-authorized-layout":""},script:[{type:"text/javascript",innerHTML:"window._ab_id_=172485"},{src:"https://cdn.botfaqtor.ru/one.js"}]}));function g(){h!==null&&(window.clearInterval(h),h=null)}function m(){o.loadBadges(),l.load()}function _(){if(typeof window>"u"||!i.isAuthorized){g();return}g(),h=window.setInterval(()=>{m()},pat)}je(()=>{i.initDeviceId(),v(!0),_(),f.start()}),Se(()=>i.isAuthorized,(k,x)=>{if(k&&!x){v(),_(),f.start();return}k||(g(),o.clearNotificationsBadge(),l.clear(),f.stop(),x&&v())}),Se(()=>[i.isAuthorized,u.residence?.premisesId,u.residence?.residentId],([k,x,C])=>{if(!k||!x||!C){l.clear();return}l.load()},{immediate:!0}),Tt(()=>{g(),f.stop()});async function v(k=!1){await o.loadInfo(),!(!k||!i.isAuthorized||!d.openIfNeeded(u.residence))&&n.query.panel!=="address-organization"&&await r.replace({path:n.path,query:{...n.query,panel:"address-organization"}})}return(k,x)=>{const C=Qoe,w=Joe,$=nae,S=iae,I=yae,P=Crt,L=git,D=$ot,R=Xot,F=eat,N=lat;return p(),y("div",cat,[a(s)?.visible?(p(),y("div",uat,[c("div",dat,[a(s)?.isError?(p(),K(w,{key:1,class:"flex-shrink-0"})):(p(),K(C,{key:0,class:"flex-shrink-0"})),c("span",fat,b(a(s)?.text),1),a(s)?.action?(p(),y("button",{key:2,type:"button",class:"pointer-events-auto self-center shrink-0 py-1 font-inter-tight text-13-bold text-grey-40 [font-feature-settings:'pnum'_on,'lnum'_on]",onClick:x[0]||(x[0]=z=>a(s).action.onClick())},b(a(s).action.label),1)):E("",!0)])])):E("",!0),T($,{color:"#11986C"}),T(S),a(i).shouldShowSectionSwitcher?(p(),K(I,{key:1})):E("",!0),T(P),T(L),T(D),T(R),T(F),T(N)])}}}),mat={__name:"nuxt-error-page",props:{error:Object},setup(e){const s=e.error,n=Number(s.statusCode||500),r=n===404,i=s.statusMessage??(r?"Page Not Found":"Internal Server Error"),o=s.message||s.toString(),l=void 0,f=r?Xc(()=>wt(()=>import("./nyBEN3y6.js"),__vite__mapDeps([42,6,43]),import.meta.url)):Xc(()=>wt(()=>import("./CzkXCiF8.js"),__vite__mapDeps([44,45]),import.meta.url));return(h,g)=>(p(),K(a(f),Ja(Jc({status:a(n),statusText:a(i),statusCode:a(n),statusMessage:a(i),description:a(o),stack:a(l)})),null,16))}},gat={key:0},jb={__name:"nuxt-root",setup(e){const t=()=>null,s=Te(),n=s.deferHydration();if(s.isHydrating){const f=s.hooks.hookOnce("app:error",n),h=is().beforeEach(()=>{f(),h()})}const r=!1;ks(r0,st()),s.hooks.callHookWith(f=>f.map(h=>h()),"vue:setup",[]);const i=i0(),o=!1,l=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function u(f,h,g){const m=s.vueApp.config.errorHandler;if(m&&!m.__nuxt_default)try{m(f,h,g)}
77catch(_){console.error("[nuxt] Error in `app.config.errorHandler`",_)}}O5((f,h,g)=>{if(s.hooks.callHook("vue:error",f,h,g)?.catch(m=>console.error("[nuxt] Error in `vue:error` hook",m)),l.test(navigator.userAgent))return s.hooks.callHook("app:error",f),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,f),!1;if(F6(f)&&(f.fatal||f.unhandled))return s.runWithContext(()=>No(f)),u(f,h,g),!1});const d=!1;return(f,h)=>(p(),K(n6,{onResolve:a(n)},{default:Xe(()=>[a(o)?(p(),y("div",gat)):a(i)?(p(),K(a(mat),{key:1,error:a(i)},null,8,["error"])):a(d)?(p(),K(a(t),{key:2,context:a(d)},null,8,["context"])):a(r)?(p(),K(Jn(a(r)),{key:3})):(p(),K(a(hat),{key:4}))]),_:1},8,["onResolve"]))}};let Ub;{let e;Ub=async function(){if(e)return e;const s=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),n=s?YS(jb):GS(jb),r=iI({vueApp:n});async function i(o){await r.callHook("app:error",o),r.payload.error||=lo(o)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook("app:suspense:resolve",()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!s&&Ry.id&&r.hook("app:suspense:resolve",()=>{document.getElementById(Ry.id)?.remove()});try{await lI(r,Goe)}catch(o){i(o)}try{await r.hooks.callHook("app:created",n),await r.hooks.callHook("app:beforeMount",n),n.mount(sI),await r.hooks.callHook("app:mounted",n),await lt()}catch(o){i(o)}return n},e=Ub().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{is as $,Te as A,X as B,je as C,Ae as D,j as E,Re as F,K as G,St as H,E as I,A as J,_a as K,va as L,zl as M,rwe as N,Z2 as O,I9 as P,Se as Q,Bt as R,q0 as S,wo as T,bwe as U,Ls as V,le as W,oe as X,Iot as Y,ho as Z,Gs as _,c as a,Ul as a$,Zm as a0,z0 as a1,f7 as a2,kt as a3,Rs as a4,Jn as a5,du as a6,ma as a7,O1 as a8,lt as a9,wu as aA,J0 as aB,er as aC,Plt as aD,eg as aE,n7 as aF,_We as aG,Lu as aH,sg as aI,iae as aJ,Rn as aK,si as aL,dze as aM,r7 as aN,ha as aO,$g as aP,lC as aQ,Ni as aR,Wr as aS,k9 as aT,Mg as aU,So as aV,$lt as aW,Qr as aX,Int as aY,Rlt as aZ,ym as a_,ni as aa,hu as ab,Dl as ac,Mn as ad,WFe as ae,Tt as af,Un as ag,mf as ah,aa as ai,Fg as aj,vNe as ak,Al as al,wi as am,h9 as an,C9 as ao,tC as ap,DEe as aq,Ln as ar,iC as as,Cn as at,mnt as au,pa as av,Y9 as aw,U0e as ax,v3e as ay,klt as az,T as b,CKe as b0,H0 as b1,xqe as b2,uC as b3,x9 as b4,ts as b5,fn as b6,ks as b7,j0 as b8,ot as b9,vo as bA,Bu as bB,Jl as bC,q9e as bD,u$ as bE,Tlt as bF,f0 as bG,Q_ as bH,Slt as bI,Fm as bJ,vI as bK,_I as bL,hO as bM,Ko as bN,Mi as bO,Zp as bP,eh as bQ,tu as bR,wlt as bS,Clt as bT,Pl as bU,Dlt as ba,xlt as bb,Ws as bc,G0 as bd,J2 as be,Sl as bf,un as bg,G9e as bh,FBe as bi,i7 as bj,o7 as bk,Xl as bl,m7 as bm,lg as bn,Ya as bo,U0 as bp,Nq as bq,lMe as br,ibe as bs,K0 as bt,Du as bu,sm as bv,B7 as bw,Hpe as bx,b7 as by,x7 as bz,y as c,Qe as d,G as e,be as f,st as g,wn as h,a as i,cot as j,uu as k,N0 as l,F0 as m,mu as n,p as o,l7 as p,Ne as q,ls as r,kn as s,b as t,qm as u,Ke as v,Xe as w,ue as x,Oe as y,cM as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.