import{A as e,D as t,Dt as n,E as r,Et as i,G as a,H as o,Q as s,S as c,T as l,Tt as u,U as d,W as f,b as p,et as m,it as h,j as g,lt as _,ot as v,p as y,st as b,v as x,w as S,x as C,y as w}from"./vue-router-bPs2Bq2h.js";import{B as T,G as E,J as D,K as O,M as ee,N as k,X as A,Y as j,Z as M,i as N,n as te,o as ne,r as P,t as re,z as ie}from"./light-BDe84dgP.js";import{D as F,l as ae,t as oe}from"./Card-CWgj08oh.js";import{a as I,i as se,l as ce,n as le,o as L,r as ue}from"./resolve-slot-Cp3m6n7Y.js";import{o as de}from"./light-WRuBODwl.js";import{t as fe}from"./Modal-ByxdRq9o.js";import{a as pe,o as me,r as he,t as R}from"./Button-qfcOTQ-R.js";import{t as z}from"./call-ChHlm4-m.js";import{n as ge,t as _e}from"./Upload-B3Z6mDpi.js";import{t as ve}from"./Add-DIWmYlsC.js";import{t as B}from"./Input-7yiJv_cJ.js";import{t as ye}from"./Remove-DcWi6Jc0.js";import{t as be}from"./Tag-D6nXKwwy.js";import{t as V}from"./Space-DcHYQyey.js";import{t as H}from"./text-BWkFjBjn.js";import{C as xe,F as Se,H as U,V as Ce,a as we,d as Te,et as W,j as Ee,x as De}from"./index-CfgT-ZeN.js";import{n as Oe,o as ke,r as Ae}from"./HeaderMenu-DOd51pLB.js";import{n as G,r as K,t as je}from"./application-Cn6gcvZk.js";var Me=t({name:`ArrowDown`,render(){return e(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},e(`g`,{"fill-rule":`nonzero`},e(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ne=t({name:`ArrowUp`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},e(`g`,{fill:`none`},e(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Pe=O(`input-group`,` display: inline-flex; width: 100%; flex-wrap: nowrap; vertical-align: bottom; `,[E(`>`,[O(`input`,[E(`&:not(:last-child)`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),E(`&:not(:first-child)`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; margin-left: -1px!important; `)]),O(`button`,[E(`&:not(:last-child)`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `,[D(`state-border, border`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)]),E(`&:not(:first-child)`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `,[D(`state-border, border`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `)])]),E(`*`,[E(`&:not(:last-child)`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `,[E(`>`,[O(`input`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),O(`base-selection`,[O(`base-selection-label`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),O(`base-selection-tags`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),D(`box-shadow, border, state-border`,` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)])])]),E(`&:not(:first-child)`,` margin-left: -1px!important; border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `,[E(`>`,[O(`input`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),O(`base-selection`,[O(`base-selection-label`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),O(`base-selection-tags`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),D(`box-shadow, border, state-border`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `)])])])])])]),q=t({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=k(e);return N(`-input-group`,Pe,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:t}=this;return e(`div`,{class:`${t}-input-group`},this.$slots)}}),J=`0!important`,Fe=`-1px!important`;function Y(e){return j(`${e}-type`,[E(`& +`,[O(`button`,{},[j(`${e}-type`,[D(`border`,{borderLeftWidth:J}),D(`state-border`,{left:Fe})])])])])}function X(e){return j(`${e}-type`,[E(`& +`,[O(`button`,[j(`${e}-type`,[D(`border`,{borderTopWidth:J}),D(`state-border`,{top:Fe})])])])])}var Ie=O(`button-group`,` flex-wrap: nowrap; display: inline-flex; position: relative; `,[A(`vertical`,{flexDirection:`row`},[A(`rtl`,[O(`button`,[E(`&:first-child:not(:last-child)`,` margin-right: ${J}; border-top-right-radius: ${J}; border-bottom-right-radius: ${J}; `),E(`&:last-child:not(:first-child)`,` margin-left: ${J}; border-top-left-radius: ${J}; border-bottom-left-radius: ${J}; `),E(`&:not(:first-child):not(:last-child)`,` margin-left: ${J}; margin-right: ${J}; border-radius: ${J}; `),Y(`default`),j(`ghost`,[Y(`primary`),Y(`info`),Y(`success`),Y(`warning`),Y(`error`)])])])]),j(`vertical`,{flexDirection:`column`},[O(`button`,[E(`&:first-child:not(:last-child)`,` margin-bottom: ${J}; margin-left: ${J}; margin-right: ${J}; border-bottom-left-radius: ${J}; border-bottom-right-radius: ${J}; `),E(`&:last-child:not(:first-child)`,` margin-top: ${J}; margin-left: ${J}; margin-right: ${J}; border-top-left-radius: ${J}; border-top-right-radius: ${J}; `),E(`&:not(:first-child):not(:last-child)`,` margin: ${J}; border-radius: ${J}; `),X(`default`),j(`ghost`,[X(`primary`),X(`info`),X(`success`),X(`warning`),X(`error`)])])])]),Le=t({name:`ButtonGroup`,props:{size:String,vertical:Boolean},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=k(e);return N(`-button-group`,Ie,t),d(he,e),{rtlEnabled:ne(`ButtonGroup`,n,t),mergedClsPrefix:t}},render(){let{mergedClsPrefix:t}=this;return e(`div`,{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:`group`},this.$slots)}});function Re(){return Te}var ze=te({name:`DynamicInput`,common:re,peers:{Input:xe,Button:De},self:Re}),Be=ie(`n-dynamic-input`),Ve=t({name:`DynamicInputInputPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:``},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){let{mergedThemeRef:e,placeholderRef:t}=g(Be);return{mergedTheme:e,placeholder:t}},render(){let{mergedTheme:t,placeholder:n,value:r,clsPrefix:i,onUpdateValue:a,disabled:o}=this;return e(`div`,{class:`${i}-dynamic-input-preset-input`},e(B,{theme:t.peers.Input,"theme-overrides":t.peerOverrides.Input,value:r,placeholder:n,onUpdateValue:a,disabled:o}))}}),He=t({name:`DynamicInputPairPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:``,value:``})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){let{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=g(Be);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(t){e.onUpdateValue({key:t,value:e.value.value})},handleValueInput(t){e.onUpdateValue({key:e.value.key,value:t})}}},render(){let{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,value:i,clsPrefix:a,disabled:o}=this;return e(`div`,{class:`${a}-dynamic-input-preset-pair`},e(B,{theme:t.peers.Input,"theme-overrides":t.peerOverrides.Input,value:i.key,class:`${a}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleKeyInput,disabled:o}),e(B,{theme:t.peers.Input,"theme-overrides":t.peerOverrides.Input,value:i.value,class:`${a}-dynamic-input-pair-input`,placeholder:r,onUpdateValue:this.handleValueInput,disabled:o}))}}),Ue=O(`dynamic-input`,{width:`100%`},[O(`dynamic-input-item`,` margin-bottom: 10px; display: flex; flex-wrap: nowrap; `,[O(`dynamic-input-preset-input`,{flex:1,alignItems:`center`}),O(`dynamic-input-preset-pair`,` flex: 1; display: flex; align-items: center; `,[O(`dynamic-input-pair-input`,[E(`&:first-child`,{"margin-right":`12px`})])]),D(`action`,` align-self: flex-start; display: flex; justify-content: flex-end; flex-shrink: 0; flex-grow: 0; margin: var(--action-margin); `,[j(`icon`,{cursor:`pointer`})]),E(`&:last-child`,{marginBottom:0})]),O(`form-item`,` padding-top: 0 !important; margin-right: 0 !important; `,[O(`form-item-blank`,{paddingTop:`0 !important`})])]),Z=new WeakMap,Q=t({name:`DynamicInput`,props:Object.assign(Object.assign({},P.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:`input`},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:``},valuePlaceholder:{type:String,default:``},placeholder:{type:String,default:``},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),setup(e,{slots:t}){let{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,inlineThemeDisabled:a}=k(),o=g(pe,null),s=h(e.defaultValue),c=F(b(e,`value`),s),l=P(`DynamicInput`,`-dynamic-input`,Ue,ze,e,r),u=x(()=>{let{value:t}=c;if(Array.isArray(t)){let{max:n}=e;return n!==void 0&&t.length>=n}return!1}),f=x(()=>{let{value:t}=c;return Array.isArray(t)?t.length<=e.min:!0}),p=x(()=>n?.value?.DynamicInput?.buttonSize);function _(t){let{onInput:n,"onUpdate:value":r,onUpdateValue:i}=e;n&&z(n,t),r&&z(r,t),i&&z(i,t),s.value=t}function y(e,t){if(typeof e!=`object`||!e)return t;let n=m(e)?v(e):e,r=Z.get(n);return r===void 0&&Z.set(n,r=de()),r}function S(e,t){let{value:n}=c,r=Array.from(n??[]),i=r[e];if(r[e]=t,i&&t&&typeof i==`object`&&typeof t==`object`){let e=m(i)?v(i):i,n=m(t)?v(t):t,r=Z.get(e);r!==void 0&&Z.set(n,r)}_(r)}function C(){w(-1)}function w(n){let{value:r}=c,{onCreate:i}=e,a=Array.from(r??[]);if(i)a.splice(n+1,0,i(n+1)),_(a);else if(t.default)a.splice(n+1,0,null),_(a);else switch(e.preset){case`input`:a.splice(n+1,0,``),_(a);break;case`pair`:a.splice(n+1,0,{key:``,value:``}),_(a);break}}function T(t){let{value:n}=c;if(!Array.isArray(n))return;let{min:r}=e;if(n.length<=r)return;let{onRemove:i}=e;i&&i(t);let a=Array.from(n);a.splice(t,1),_(a)}function E(e,t,n){if(t<0||n<0||t>=e.length||n>=e.length||t===n)return;let r=e[t];e[t]=e[n],e[n]=r}function D(e,t){let{value:n}=c;if(!Array.isArray(n))return;let r=Array.from(n);e===`up`&&E(r,t,t-1),e===`down`&&E(r,t,t+1),_(r)}d(Be,{mergedThemeRef:l,keyPlaceholderRef:b(e,`keyPlaceholder`),valuePlaceholderRef:b(e,`valuePlaceholder`),placeholderRef:b(e,`placeholder`)});let O=ne(`DynamicInput`,i,r),A=x(()=>{let{self:{actionMargin:e,actionMarginRtl:t}}=l.value;return{"--action-margin":e,"--action-margin-rtl":t}}),j=a?ee(`dynamic-input`,void 0,A,e):void 0;return{locale:ae(`DynamicInput`).localeRef,rtlEnabled:O,buttonSize:p,mergedClsPrefix:r,NFormItem:o,uncontrolledValue:s,mergedValue:c,insertionDisabled:u,removeDisabled:f,handleCreateClick:C,ensureKey:y,handleValueChange:S,remove:T,move:D,createItem:w,mergedTheme:l,cssVars:a?void 0:A,themeClass:j?.themeClass,onRender:j?.onRender}},render(){let{$slots:t,itemClass:n,buttonSize:r,mergedClsPrefix:i,mergedValue:a,locale:o,mergedTheme:s,keyField:c,itemStyle:l,preset:u,showSortButton:d,NFormItem:f,ensureKey:p,handleValueChange:m,remove:h,createItem:g,move:_,onRender:v,disabled:y}=this;return v?.(),e(`div`,{class:[`${i}-dynamic-input`,this.rtlEnabled&&`${i}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(a)||a.length===0?e(R,Object.assign({block:!0,ghost:!0,dashed:!0,size:r},this.createButtonProps,{disabled:this.insertionDisabled||y,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>ue(t[`create-button-default`],()=>[o.create]),icon:()=>ue(t[`create-button-icon`],()=>[e(U,{clsPrefix:i},{default:()=>e(ve,null)})])}):a.map((o,v)=>e(`div`,{key:c?o[c]:p(o,v),"data-key":c?o[c]:p(o,v),class:[`${i}-dynamic-input-item`,n],style:l},se(t.default,{value:a[v],index:v},()=>[u===`input`?e(Ve,{disabled:y,clsPrefix:i,value:a[v],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):u===`pair`?e(He,{disabled:y,clsPrefix:i,value:a[v],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):null]),se(t.action,{value:a[v],index:v,create:g,remove:h,move:_},()=>[e(`div`,{class:`${i}-dynamic-input-item__action`},e(Le,{size:r},{default:()=>[e(R,{disabled:this.removeDisabled||y,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,circle:!0,onClick:()=>{h(v)}},{icon:()=>e(U,{clsPrefix:i},{default:()=>e(ye,null)})}),e(R,{disabled:this.insertionDisabled||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{g(v)}},{icon:()=>e(U,{clsPrefix:i},{default:()=>e(ve,null)})}),d?e(R,{disabled:v===0||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{_(`up`,v)}},{icon:()=>e(U,{clsPrefix:i},{default:()=>e(Ne,null)})}):null,d?e(R,{disabled:v===a.length-1||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{_(`down`,v)}},{icon:()=>e(U,{clsPrefix:i},{default:()=>e(Me,null)})}):null]}))]))))}});function We(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},we),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${T(t,{alpha:.2})}`})}var Ge={name:`Switch`,common:re,self:We},Ke=O(`switch`,` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; user-select: none; -webkit-user-select: none; display: inline-flex; outline: none; justify-content: center; align-items: center; `,[D(`children-placeholder`,` height: var(--n-rail-height); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; visibility: hidden; `),D(`rail-placeholder`,` display: flex; flex-wrap: none; `),D(`button-placeholder`,` width: calc(1.75 * var(--n-rail-height)); height: var(--n-rail-height); `),O(`base-loading`,` position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); font-size: calc(var(--n-button-width) - 4px); color: var(--n-loading-color); transition: color .3s var(--n-bezier); `,[Se({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),D(`checked, unchecked`,` transition: color .3s var(--n-bezier); color: var(--n-text-color); box-sizing: border-box; position: absolute; white-space: nowrap; top: 0; bottom: 0; display: flex; align-items: center; line-height: 1; `),D(`checked`,` right: 0; padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); `),D(`unchecked`,` left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); `),E(`&:focus`,[D(`rail`,` box-shadow: var(--n-box-shadow-focus); `)]),j(`round`,[D(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[D(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),A(`disabled`,[A(`icon`,[j(`rubber-band`,[j(`pressed`,[D(`rail`,[D(`button`,`max-width: var(--n-button-width-pressed);`)])]),D(`rail`,[E(`&:active`,[D(`button`,`max-width: var(--n-button-width-pressed);`)])]),j(`active`,[j(`pressed`,[D(`rail`,[D(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),D(`rail`,[E(`&:active`,[D(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),j(`active`,[D(`rail`,[D(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),D(`rail`,` overflow: hidden; height: var(--n-rail-height); min-width: var(--n-rail-width); border-radius: var(--n-rail-border-radius); cursor: pointer; position: relative; transition: opacity .3s var(--n-bezier), background .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-rail-color); `,[D(`button-icon`,` color: var(--n-icon-color); transition: color .3s var(--n-bezier); font-size: calc(var(--n-button-height) - 4px); position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; justify-content: center; align-items: center; line-height: 1; `,[Se()]),D(`button`,` align-items: center; top: var(--n-offset); left: var(--n-offset); height: var(--n-button-height); width: var(--n-button-width-pressed); max-width: var(--n-button-width); border-radius: var(--n-button-border-radius); background-color: var(--n-button-color); box-shadow: var(--n-button-box-shadow); box-sizing: border-box; cursor: inherit; content: ""; position: absolute; transition: background-color .3s var(--n-bezier), left .3s var(--n-bezier), opacity .3s var(--n-bezier), max-width .3s var(--n-bezier), box-shadow .3s var(--n-bezier); `)]),j(`active`,[D(`rail`,`background-color: var(--n-rail-color-active);`)]),j(`loading`,[D(`rail`,` cursor: wait; `)]),j(`disabled`,[D(`rail`,` cursor: not-allowed; opacity: .5; `)])]),qe=Object.assign(Object.assign({},P.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),Je,Ye=t({name:`Switch`,props:qe,slots:Object,setup(e){Je===void 0&&(Je=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=k(e),i=P(`Switch`,`-switch`,Ke,Ge,e,t),a=me(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:r?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:o,mergedDisabledRef:s}=a,c=h(e.defaultValue),l=F(b(e,`value`),c),u=x(()=>l.value===e.checkedValue),d=h(!1),f=h(!1),p=x(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function m(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=a;n&&z(n,t),i&&z(i,t),r&&z(r,t),c.value=t,o(),s()}function g(){let{nTriggerFormFocus:e}=a;e()}function _(){let{nTriggerFormBlur:e}=a;e()}function v(){e.loading||s.value||(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue))}function y(){f.value=!0,g()}function S(){f.value=!1,_(),d.value=!1}function C(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue),d.value=!1)}function w(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let T=x(()=>{let{value:e}=o,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:a,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[M(`buttonHeight`,e)]:f,[M(`buttonWidth`,e)]:p,[M(`buttonWidthPressed`,e)]:m,[M(`railHeight`,e)]:h,[M(`railWidth`,e)]:g,[M(`railBorderRadius`,e)]:_,[M(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=i.value,b,x,S;return Je?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=ce((L(h)-L(f))/2),x=ce(Math.max(L(h),L(f))),S=L(h)>L(f)?g:ce(L(g)+L(f)-L(h))),{"--n-bezier":y,"--n-button-border-radius":v,"--n-button-box-shadow":a,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":x,"--n-offset":b,"--n-opacity-disabled":t,"--n-rail-border-radius":_,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":h,"--n-rail-width":g,"--n-width":S,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),E=n?ee(`switch`,x(()=>o.value[0]),T,e):void 0;return{handleClick:v,handleBlur:S,handleFocus:y,handleKeyup:C,handleKeydown:w,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:T,themeClass:E?.themeClass,onRender:E?.onRender}},render(){let{mergedClsPrefix:t,mergedDisabled:n,checked:r,mergedRailStyle:i,onRender:a,$slots:o}=this;a?.();let{checked:s,unchecked:c,icon:l,"checked-icon":u,"unchecked-icon":d}=o,f=!(le(l)&&le(u)&&le(d));return e(`div`,{role:`switch`,"aria-checked":r,class:[`${t}-switch`,this.themeClass,f&&`${t}-switch--icon`,r&&`${t}-switch--active`,n&&`${t}-switch--disabled`,this.round&&`${t}-switch--round`,this.loading&&`${t}-switch--loading`,this.pressed&&`${t}-switch--pressed`,this.rubberBand&&`${t}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e(`div`,{class:`${t}-switch__rail`,"aria-hidden":`true`,style:i},I(s,n=>I(c,r=>n||r?e(`div`,{"aria-hidden":!0,class:`${t}-switch__children-placeholder`},e(`div`,{class:`${t}-switch__rail-placeholder`},e(`div`,{class:`${t}-switch__button-placeholder`}),n),e(`div`,{class:`${t}-switch__rail-placeholder`},e(`div`,{class:`${t}-switch__button-placeholder`}),r)):null)),e(`div`,{class:`${t}-switch__button`},I(l,n=>I(u,r=>I(d,i=>e(Ce,null,{default:()=>this.loading?e(Ee,Object.assign({key:`loading`,clsPrefix:t,strokeWidth:20},this.spinProps)):this.checked&&(r||n)?e(`div`,{class:`${t}-switch__button-icon`,key:r?`checked-icon`:`icon`},r||n):!this.checked&&(i||n)?e(`div`,{class:`${t}-switch__button-icon`,key:i?`unchecked-icon`:`icon`},i||n):null})))),I(s,n=>n&&e(`div`,{key:`checked`,class:`${t}-switch__checked`},n)),I(c,n=>n&&e(`div`,{key:`unchecked`,class:`${t}-switch__unchecked`},n)))))}}),Xe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},Ze=t({name:`CloseOutlined`,render:function(e,t){return o(),c(`svg`,Xe,t[0]||=[w(`path`,{d:`M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z`,fill:`currentColor`},null,-1)])}}),Qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},$e=t({name:`LockOutlined`,render:function(e,t){return o(),c(`svg`,Qe,t[0]||=[w(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2z`,fill:`currentColor`},null,-1)])}}),et={class:`main`},tt={class:`message-cloud`},$=Oe(t({__name:`MessagePaper`,setup(e){return(e,t)=>(o(),c(`div`,et,[t[0]||=w(`div`,{class:`message-cloud-3`},null,-1),t[1]||=w(`div`,{class:`message-cloud-2`},null,-1),w(`div`,tt,[a(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]),nt={key:0},rt={class:`intro-text font`},it={key:0,class:`intro-audio-block`},at=[`src`],ot={class:`message-content`},st={key:0},ct={key:1,class:`intro-empty`},lt={key:2,class:`intro-audio-block`},ut=[`src`],dt={key:2,class:`place-block`},ft={class:`intro-edit-audio`},pt=[`src`],mt={class:`slot-block`},ht=Oe(t({__name:`IntroBlock`,props:{introduction:{type:Object,required:!0},mode:{type:String,required:!0}},emits:[`update:mode`],setup(e,{emit:t}){let i=e,u=t,d=e=>{u(`update:mode`,e)},f=x(()=>!!i.introduction?.text),m=x(()=>!!i.introduction?.audio),h=x(()=>{let e=i.introduction?.audio;if(e)return/^https?:\/\//i.test(e)?e:`${ke()}/api/files/${encodeURIComponent(e)}`}),g=()=>{i.introduction&&(i.introduction.audio=``,i.introduction.fileList=void 0)};return(t,u)=>(o(),c(y,null,[e.mode==`show`?(o(),c(`div`,nt,[r($,null,{default:s(()=>[u[4]||=w(`div`,{class:`font`},`Вступление`,-1),u[5]||=w(`hr`,{class:`intro-hr`},null,-1),w(`div`,rt,n(e.introduction.text),1),m.value?(o(),c(`div`,it,[w(`audio`,{src:h.value,controls:``,preload:`none`,class:`intro-audio`},null,8,at)])):C(``,!0)]),_:1})])):C(``,!0),e.mode==`show-editor`?(o(),c(`div`,{key:1,class:`place-block-hover show-editor-block`,onClick:u[0]||=e=>d(`edit`)},[u[6]||=w(`div`,{class:`message-header`},`Вступление`,-1),u[7]||=w(`hr`,{class:`hr`},null,-1),w(`div`,ot,[f.value?(o(),c(`span`,st,n(e.introduction.text),1)):(o(),c(`span`,ct,`Введение не задано — нажмите, чтобы добавить`)),m.value?(o(),c(`div`,lt,[w(`audio`,{src:h.value,controls:``,preload:`none`,class:`intro-audio`},null,8,ut)])):C(``,!0)])])):C(``,!0),e.mode==`edit`?(o(),c(`div`,dt,[r(_(V),{vertical:``},{default:s(()=>[u[11]||=w(`p`,{class:`settings-header`},`Текст вступления`,-1),r(_(B),{value:i.introduction.text,"onUpdate:value":u[1]||=e=>i.introduction.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Дорогие сыщики! В этом деле вам предстоит...`},null,8,[`value`]),u[12]||=w(`p`,{class:`settings-header`},`Аудио вступления`,-1),w(`div`,ft,[r(_(V),{vertical:``},{default:s(()=>[m.value?(o(),c(`audio`,{key:0,src:h.value,controls:``,preload:`none`,class:`intro-audio`},null,8,pt)):(o(),p(_(H),{key:1,depth:`3`},{default:s(()=>[...u[8]||=[l(`Аудио не задано`,-1)]]),_:1})),r(_(R),{onClick:u[2]||=e=>g(),disabled:!m.value},{default:s(()=>[...u[9]||=[l(`Убрать аудио`,-1)]]),_:1},8,[`disabled`])]),_:1}),r(_(_e),{"directory-dnd":``,max:1,"file-list":i.introduction.fileList,"onUpdate:fileList":u[3]||=e=>i.introduction.fileList=e},{default:s(()=>[r(_(ge),null,{default:s(()=>[r(_(H),{style:{"font-size":`16px`}},{default:s(()=>[...u[10]||=[l(` Щелкните или перетащите аудиофайл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),w(`div`,mt,[a(t.$slots,`default`,{},void 0,!0)])]),_:3})])):C(``,!0)],64))}}),[[`__scopeId`,`data-v-21997d9b`]]),gt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_t=t({name:`Key24Regular`,render:function(e,t){return o(),c(`svg`,gt,t[0]||=[w(`g`,{fill:`none`},[w(`path`,{d:`M18.25 7a1.25 1.25 0 1 1-2.5 0a1.25 1.25 0 0 1 2.5 0zM15.5 2.05A6.554 6.554 0 0 0 8.95 8.6c0 .387.05.76.11 1.104a.275.275 0 0 1-.07.244l-6.235 6.236a2.75 2.75 0 0 0-.806 1.944V20.3c0 .966.784 1.75 1.75 1.75h2.5a1.75 1.75 0 0 0 1.75-1.75v-1.25H9.7c.69 0 1.25-.56 1.25-1.25v-1.75h1.75a1.25 1.25 0 0 0 1.25-1.204c.496.128 1.02.204 1.55.204a6.554 6.554 0 0 0 6.55-6.55c0-3.631-2.953-6.45-6.55-6.45zM10.45 8.6a5.054 5.054 0 0 1 5.05-5.05c2.802 0 5.05 2.181 5.05 4.95a5.054 5.054 0 0 1-5.05 5.05c-.68 0-1.38-.171-2.005-.44a.75.75 0 0 0-1.046.69v.75H10.7c-.69 0-1.25.56-1.25 1.25v1.75H7.7c-.69 0-1.25.56-1.25 1.25v1.5a.25.25 0 0 1-.25.25H3.7a.25.25 0 0 1-.25-.25v-2.172c0-.331.132-.65.366-.884l6.236-6.235a1.774 1.774 0 0 0 .486-1.564a4.917 4.917 0 0 1-.088-.845z`,fill:`currentColor`})],-1)])}}),vt={key:1,class:`place-block`},yt={class:`message-header`},bt={class:`message-content`},xt={key:0},St=[`src`],Ct={class:`door-button-label`},wt={key:0,class:`hr`},Tt={class:`application-name`},Et=[`onClick`],Dt=[`src`],Ot=[`src`],kt=[`href`],At={class:`gray-block`},jt={key:0},Mt={key:3},Nt={class:`message-show-header font`},Pt={key:0,class:`mcp-label`,title:`Ход сделан через MCP`},Ft={class:`message-show-content font`},It={key:0},Lt=[`src`],Rt=[`src`],zt={key:2,class:`show-applications-block`},Bt=[`onClick`],Vt=[`src`],Ht={key:0,class:`show-hr`},Ut=[`onClick`],Wt={class:`button-dialog-text`},Gt={key:1,class:`show-hr`},Kt=[`href`],qt={class:`application-label`},Jt=[`src`],Yt={key:4},Xt={class:`message-header font`},Zt={key:0,class:`mcp-label`,title:`Ход сделан через MCP`},Qt={key:5,class:`place-block`},$t=[`src`],en={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},tn={key:0,class:`application-edit-file`},nn=[`src`],rn=[`src`],an=[`href`],on={style:{display:`flex`,"flex-direction":`column`}},sn={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},cn={class:`door-add-block`},ln={class:`door-field`},un={style:{"align-items":`center`,display:`flex`,width:`100%`}},dn={style:{"align-items":`center`,display:`flex`,width:`100%`}},fn={class:`slot-block`},pn={key:0,class:`view-application-image-block`},mn=[`src`,`alt`],hn=[`src`],gn=[`src`],_n={key:3,class:`view-application-image-block`},vn=[`src`,`alt`],yn=Oe(t({__name:`PlaceBlock`,props:{newPlaceCode:{type:String},newPlaceName:{type:String},newPlaceText:{type:String},place:{type:Object},mode:{type:String,required:!0},mcp:{type:Boolean,default:!1},addAction:{type:Function}},emits:[`update:newPlaceCode`,`update:newPlaceName`,`update:newPlaceText`,`update:mode`,`navigate`],setup(e,{emit:t}){let d=e,p=t,m=e=>{p(`update:newPlaceCode`,e)},g=e=>{p(`update:newPlaceName`,e)},v=e=>{p(`update:newPlaceText`,e)},b=e=>{p(`update:mode`,e)};function T(){return{name:void 0,image:void 0,file_type:void 0}}function E(){return{code:void 0,name:void 0,keys:void 0}}function D(){return{name:void 0}}function O(e){return e}function ee(e){e.image=void 0,e.file_type=void 0,e.fileList=void 0}let k=h(null),A=h(null),j=h(!1),M=x(()=>A.value?A.value.url:G(k.value||void 0)==`image`?K(k.value?.image):``);function N(e){k.value=e,A.value=null,j.value=!0}function te(e,t){A.value={title:e,url:t},k.value=null,j.value=!0}function ne(){j.value=!1,k.value=null,A.value=null}function P(e){let t=e||``;if(t.length==0)return{before:``,after:``};let n=Math.min(t.length,Math.max(120,Math.floor(t.length*.45))),r=-1,i=1/0;for(let e=0;eP(d.place?.text).before),ie=x(()=>P(d.place?.text).after),F=x(()=>d.place?.image?null:(d.place?.applications||[]).find(e=>G(e)==`image`&&e.image)||null),ae=x(()=>(d.place?.applications||[]).filter(e=>e===F.value?!1:G(e)==`image`&&e.image)),I=x(()=>(d.place?.applications||[]).filter(e=>e===F.value?!1:!(G(e)==`image`&&e.image)));return(t,h)=>(o(),c(y,null,[e.mode==`mini-add`?(o(),c(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:h[0]||=e=>b(`add`)},[...h[21]||=[w(`p`,{class:`place-image-plus`},`+`,-1)]])):C(``,!0),e.mode==`add`?(o(),c(`div`,vt,[r(_(V),{vertical:``},{default:s(()=>[r(_(q),null,{default:s(()=>[r(_(B),{style:{width:`20%`},value:e.newPlaceCode,"onUpdate:value":m,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),r(_(B),{style:{width:`80%`},value:e.newPlaceName,"onUpdate:value":g,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),r(_(B),{value:e.newPlaceText,"onUpdate:value":v,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),a(t.$slots,`default`,{},void 0,!0)]),_:3})])):C(``,!0),e.mode==`show-editor`?(o(),c(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:h[4]||=e=>b(`edit`)},[w(`div`,yt,n(d.place?.code)+`: `+n(d.place?.name),1),h[22]||=w(`hr`,{class:`hr`},null,-1),w(`div`,bt,[d.place?.image?(o(),c(`div`,xt,[w(`div`,{class:`message-image-border`,onClick:h[1]||=W(e=>te(d.place?.name||``,d.place?.image||``),[`stop`])},[w(`img`,{src:d.place?.image,class:`message-image`},null,8,St)])])):C(``,!0),w(`span`,null,n(d.place?.text),1)]),(o(!0),c(y,null,f(d.place?.doors,e=>(o(),c(`div`,{key:e.code,class:`door-block`},[r(_(R),{class:`door-button`,onClick:W(t=>p(`navigate`,e.code),[`stop`])},{default:s(()=>[w(`span`,Ct,n(e.name||e.code||`Перейти к точке`),1)]),_:2},1032,[`onClick`]),(o(!0),c(y,null,f(e.keys,e=>(o(),c(`span`,{key:e.name,class:`key-block`},[r(_(Ae),{class:`lock-icon`},{default:s(()=>[r(_($e))]),_:1}),l(` `+n(e.name),1)]))),128))]))),128)),d.place?.applications?.length?(o(),c(`hr`,wt)):C(``,!0),(o(!0),c(y,null,f(d.place?.applications,e=>(o(),c(`div`,{class:`message-footer application-block`,key:e.name},[w(`div`,Tt,`Приложение: `+n(e.name),1),_(G)(e)==`image`&&e.image?(o(),c(`div`,{key:0,class:`application-image-border`,onClick:W(t=>N(e),[`stop`])},[w(`img`,{src:_(K)(e.image),class:`application-image`},null,8,Dt)],8,Et)):_(G)(e)==`audio`&&e.image?(o(),c(`audio`,{key:1,src:_(K)(e.image),controls:``,preload:`none`,class:`application-audio`,onClick:h[2]||=W(()=>{},[`stop`])},null,8,Ot)):_(G)(e)==`pdf`&&e.image?(o(),c(`a`,{key:2,href:_(K)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`,onClick:h[3]||=W(()=>{},[`stop`])},` PDF `,8,kt)):C(``,!0)]))),128)),w(`p`,At,[d.place?.hidden?(o(),c(`span`,jt,` Скрытая точка `)):C(``,!0),(o(!0),c(y,null,f(d.place?.keys,e=>(o(),c(`span`,{key:e.name,class:`key-block`},[r(_(Ae),{class:`lock-icon`},{default:s(()=>[r(_(_t))]),_:1}),l(` `+n(e.name),1)]))),128))])])):C(``,!0),e.mode==`show`?(o(),c(`div`,Mt,[r($,null,{default:s(()=>[w(`div`,Nt,[e.mcp?(o(),c(`span`,Pt,`MCP`)):C(``,!0),l(` `+n(e.place?.code)+`: `+n(e.place?.name)+` `,1),w(`span`,{class:`collapse-icon collapse-icon-up`,onClick:h[5]||=e=>b(`show-collapse`)})]),h[23]||=w(`hr`,{class:`show-hr`},null,-1),w(`div`,Ft,[e.place?.image?.length?(o(),c(`div`,It,[w(`div`,{class:`message-image-border`,onClick:h[6]||=t=>te(e.place?.name||``,e.place?.image||``)},[w(`img`,{src:e.place?.image,class:`message-image`},null,8,Lt)])])):F.value?(o(),c(`div`,{key:1,class:`message-image-border`,onClick:h[7]||=e=>N(F.value)},[w(`img`,{src:_(K)(F.value.image),class:`message-image`},null,8,Rt)])):C(``,!0),w(`span`,null,n(re.value),1),ae.value.length?(o(),c(`div`,zt,[(o(!0),c(y,null,f(ae.value,e=>(o(),c(`div`,{class:`show-application`,key:e.name},[w(`div`,{class:`application-image-block`,onClick:t=>N(e)},[w(`img`,{src:_(K)(e.image),class:`application-image`},null,8,Vt)],8,Bt)]))),128))])):C(``,!0),w(`span`,null,n(ie.value),1)]),d.place?.doors?.length?(o(),c(`hr`,Ht)):C(``,!0),(o(!0),c(y,null,f(d.place?.doors,t=>(o(),c(`div`,{key:t.code,class:`button-dialog font`,onClick:n=>e.addAction(t.code)},[w(`div`,Wt,n(t.code)+` `+n(t.name),1)],8,Ut))),128)),I.value.length?(o(),c(`hr`,Gt)):C(``,!0),(o(!0),c(y,null,f(I.value,e=>(o(),c(`div`,{class:`message-show-footer font`,key:e.name},[_(G)(e)==`pdf`&&e.image?(o(),c(`a`,{key:0,href:_(K)(e.image),target:`_blank`,rel:`noopener`,class:`pdf-application-name`},` Приложение: `+n(e.name),9,Kt)):(o(),c(y,{key:1},[w(`div`,qt,`Приложение: `+n(e.name),1),_(G)(e)==`audio`&&e.image?(o(),c(`audio`,{key:0,src:_(K)(e.image),controls:``,preload:`none`,class:`application-audio`},null,8,Jt)):C(``,!0)],64))]))),128))]),_:1})])):C(``,!0),e.mode==`show-collapse`?(o(),c(`div`,Yt,[r($,null,{default:s(()=>[w(`div`,Xt,[e.mcp?(o(),c(`span`,Zt,`MCP`)):C(``,!0),l(` `+n(e.place?.code)+`: `+n(e.place?.name)+` `,1),w(`span`,{class:`collapse-icon`,onClick:h[8]||=e=>b(`show`)})])]),_:1})])):C(``,!0),e.mode==`edit`?(o(),c(`div`,Qt,[r(_(V),{vertical:``},{default:s(()=>[r(_(q),null,{default:s(()=>[r(_(B),{style:{width:`20%`},value:d.place.code,"onUpdate:value":h[9]||=e=>d.place.code=e,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),r(_(B),{style:{width:`80%`},value:d.place.name,"onUpdate:value":h[10]||=e=>d.place.name=e,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),r(_(B),{value:d.place.text,"onUpdate:value":h[11]||=e=>d.place.text=e,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),h[37]||=w(`p`,{class:`settings-header`},`Картинка`,-1),w(`div`,null,[r(_(V),null,{default:s(()=>[r(_(V),{vertical:``},{default:s(()=>[w(`img`,{src:d.place.image,class:`message-edit-image`},null,8,$t),r(_(R),{onClick:h[12]||=e=>(d.place.image=``,d.place.fileList=void 0)},{default:s(()=>[...h[24]||=[l(`Убрать картинку`,-1)]]),_:1})]),_:1}),r(_(V),{vertical:``},{default:s(()=>[r(_(B),{value:d.place.image,"onUpdate:value":h[13]||=e=>d.place.image=e,type:`text`,placeholder:`Не задано`,disabled:``},null,8,[`value`]),r(_(_e),{"directory-dnd":``,max:1,"file-list":d.place.fileList,"onUpdate:fileList":h[14]||=e=>d.place.fileList=e},{default:s(()=>[r(_(ge),null,{default:s(()=>[r(_(H),{style:{"font-size":`16px`}},{default:s(()=>[...h[25]||=[l(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1})]),h[38]||=w(`p`,{class:`settings-header`},`Видимость точки`,-1),r(_(Ye),{value:d.place.hidden,"onUpdate:value":h[15]||=e=>d.place.hidden=e},{checked:s(()=>[...h[26]||=[l(` Скрытая точка `,-1)]]),unchecked:s(()=>[...h[27]||=[l(` Обычная точка `,-1)]]),_:1},8,[`value`]),h[39]||=l(` Улики `,-1),r(_(Q),{value:d.place.applications,"onUpdate:value":h[16]||=e=>d.place.applications=e,"on-create":T},{"create-button-default":s(()=>[...h[28]||=[l(` Добавить улику `,-1)]]),default:s(({value:e})=>[w(`div`,en,[r(_(B),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`]),e.image?(o(),c(`div`,tn,[r(_(V),{align:`center`,justify:`space-between`},{default:s(()=>[r(_(H),{depth:`3`},{default:s(()=>[l(n(_(je)(e.image))+` `,1),r(_(be),{size:`small`,bordered:!1},{default:s(()=>[l(n(_(G)(e)||`файл`),1)]),_:2},1024)]),_:2},1024),r(_(R),{size:`small`,quaternary:``,onClick:t=>ee(O(e))},{default:s(()=>[...h[29]||=[l(` Убрать файл `,-1)]]),_:1},8,[`onClick`])]),_:2},1024),_(G)(e)==`image`?(o(),c(`img`,{key:0,src:_(K)(e.image),class:`application-edit-image`},null,8,nn)):_(G)(e)==`audio`?(o(),c(`audio`,{key:1,src:_(K)(e.image),controls:``,preload:`none`,class:`application-edit-audio`},null,8,rn)):_(G)(e)==`pdf`?(o(),c(`a`,{key:2,href:_(K)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`},` PDF `,8,an)):C(``,!0)])):C(``,!0),r(_(_e),{max:1,"file-list":O(e).fileList,"onUpdate:fileList":t=>O(e).fileList=t,accept:`image/*,application/pdf,audio/*`},{default:s(()=>[r(_(R),{size:`small`},{default:s(()=>[...h[30]||=[l(`Загрузить файл улики`,-1)]]),_:1})]),_:1},8,[`file-list`,`onUpdate:fileList`])])]),_:1},8,[`value`]),h[40]||=l(` Действия `,-1),r(_(Q),{value:d.place.doors,"onUpdate:value":h[17]||=e=>d.place.doors=e,"on-create":E},{"create-button-default":s(()=>[...h[31]||=[l(` Добавить действие `,-1)]]),action:s(({index:e,create:t,remove:n})=>[w(`div`,on,[r(_(R),{onClick:()=>t(e),class:`plus-minus-buttons`},{default:s(()=>[...h[32]||=[l(`+`,-1)]]),_:1},8,[`onClick`]),r(_(R),{onClick:()=>n(e),class:`plus-minus-buttons`},{default:s(()=>[...h[33]||=[l(`-`,-1)]]),_:1},8,[`onClick`])])]),default:s(({value:e})=>[w(`div`,sn,[w(`div`,cn,[r(_(q),null,{default:s(()=>[r(_(B),{style:{width:`30%`},value:e.code,"onUpdate:value":t=>e.code=t,type:`text`,placeholder:`Код`},null,8,[`value`,`onUpdate:value`]),r(_(B),{style:{width:`70%`},value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])]),_:2},1024),h[35]||=w(`p`,{class:`need-keys-text`},`Требуемые ключи`,-1),w(`div`,ln,[r(_(Q),{value:e.keys,"onUpdate:value":t=>e.keys=t,"on-create":D},{"create-button-default":s(()=>[...h[34]||=[l(` Добавить ключ `,-1)]]),default:s(({value:e})=>[w(`div`,un,[r(_(B),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`onUpdate:value`])])])])]),_:1},8,[`value`]),h[41]||=l(` Получаемые ключи `,-1),r(_(Q),{value:d.place.keys,"onUpdate:value":h[18]||=e=>d.place.keys=e,"on-create":D},{"create-button-default":s(()=>[...h[36]||=[l(` Добавить ключ `,-1)]]),default:s(({value:e})=>[w(`div`,dn,[r(_(B),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),w(`div`,fn,[a(t.$slots,`default`,{},void 0,!0)])]),_:3})])):C(``,!0),r(_(fe),{show:j.value,"onUpdate:show":h[20]||=e=>j.value=e,"mask-closable":!0},{default:s(()=>[r(_(oe),{class:u({"photo-paper":M.value}),"theme-overrides":M.value?{titleTextColor:`black`,actionColor:`transparent`,paddingMedium:`14px`,borderRadius:`10px`}:void 0,style:i({maxWidth:`min(94vw, 1200px)`,width:M.value?`max-content`:`min(94vw, 1200px)`}),bordered:!1,role:`dialog`,"aria-modal":`true`,"header-style":M.value?{paddingBottom:`10px`}:void 0,"content-style":{padding:M.value?`0 14px`:`14px`}},S({header:s(()=>[w(`span`,{class:u({"photo-paper-title":M.value})},n(k.value?.name||A.value?.title),3)]),"header-extra":s(()=>[r(_(R),{quaternary:``,circle:``,"theme-overrides":M.value?{textColor:`black`,textColorHover:`#63e2b7`}:void 0,"aria-label":`Закрыть`,onClick:h[19]||=e=>ne()},{default:s(()=>[r(_(Ae),{size:`20`},{default:s(()=>[r(_(Ze))]),_:1})]),_:1},8,[`theme-overrides`])]),default:s(()=>[k.value&&_(G)(k.value)==`image`?(o(),c(`div`,pn,[w(`img`,{src:_(K)(k.value.image),alt:k.value.name||`Фото улики`,class:`view-application-image`},null,8,mn)])):k.value&&_(G)(k.value)==`pdf`?(o(),c(`iframe`,{key:1,src:_(K)(k.value.image),class:`view-application-pdf`},null,8,hn)):k.value&&_(G)(k.value)==`audio`?(o(),c(`audio`,{key:2,src:_(K)(k.value.image),controls:``,autoplay:``,class:`view-application-audio`},null,8,gn)):A.value?(o(),c(`div`,_n,[w(`img`,{src:A.value.url,alt:A.value.title||`Фото точки`,class:`view-application-image`},null,8,vn)])):C(``,!0)]),_:2},[M.value?{name:`action`,fn:s(()=>[r(_(R),{class:`photo-paper-action`,tag:`a`,href:M.value,target:`_blank`,rel:`noopener noreferrer`,bordered:!1,"theme-overrides":{textColor:`#bfa07d`,textColorHover:`#63e2b7`}},{default:s(()=>[...h[42]||=[l(` Открыть в новой вкладке `,-1)]]),_:1},8,[`href`])]),key:`0`}:void 0]),1032,[`class`,`theme-overrides`,`style`,`header-style`,`content-style`])]),_:1},8,[`show`])],64))}}),[[`__scopeId`,`data-v-876b589d`]]);export{q as i,ht as n,$ as r,yn as t};