Files
evening_detective_frontend/dist/assets/PlaceBlock-CvR0R9SF.js
T
2026-09-05 15:32:16 +07:00

207 lines
36 KiB
JavaScript

import{$ as e,A as t,E as n,Et as r,H as i,S as a,T as o,U as s,V as c,W as l,Z as u,at as d,ct as f,k as p,ot as m,p as h,rt as g,v as _,w as v,x as y,y as b}from"./vue-router-CyfP71JJ.js";import{B as x,G as S,J as C,K as w,M as T,N as E,X as D,Y as O,Z as k,i as A,n as j,o as ee,r as M,t as N,z as te}from"./light-CPiNeYrP.js";import{s as P,t as F,w as I}from"./Input-BFIkEsdy.js";import{a as L,i as ne,l as R,n as z,o as B,r as re}from"./resolve-slot-tPBGpQg9.js";import{a as ie,t as ae}from"./light-CeesScux.js";import{t as oe}from"./Modal-CPPHP_78.js";import{i as se,n as V,o as ce,s as le}from"./use-message-B0zAVl4L.js";import{t as H}from"./call-ChHlm4-m.js";import{n as ue,t as de}from"./Upload-CRWZTay7.js";import{t as fe}from"./Card-91_TRWx7.js";import{t as pe}from"./Add-7_W3iwiV.js";import{i as me,n as U,r as W,t as he}from"./application-DOgJF347.js";import{t as ge}from"./Tag-D35CAJEi.js";import{t as G}from"./Space-BiNyLcpQ.js";import{t as _e}from"./text-B4lGUhzi.js";import{A as ve,B as ye,P as be,V as K,a as xe,et as q,u as Se,x as Ce}from"./index-qsnunEPU.js";import{n as we,r as Te}from"./HeaderMenu-BCz0PYuC.js";import{n as Ee}from"./IntroBlock-DrygEfN2.js";var De=n({name:`ArrowDown`,render(){return p(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},p(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},p(`g`,{"fill-rule":`nonzero`},p(`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`}))))}}),Oe=n({name:`ArrowUp`,render(){return p(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},p(`g`,{fill:`none`},p(`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`})))}}),ke=w(`input-group`,`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
vertical-align: bottom;
`,[S(`>`,[w(`input`,[S(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),S(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
margin-left: -1px!important;
`)]),w(`button`,[S(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[C(`state-border, border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)]),S(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[C(`state-border, border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])]),S(`*`,[S(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[S(`>`,[w(`input`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),w(`base-selection`,[w(`base-selection-label`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),w(`base-selection-tags`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),C(`box-shadow, border, state-border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)])])]),S(`&:not(:first-child)`,`
margin-left: -1px!important;
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[S(`>`,[w(`input`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),w(`base-selection`,[w(`base-selection-label`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),w(`base-selection-tags`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),C(`box-shadow, border, state-border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])])])])])]),J=n({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=E(e);return A(`-input-group`,ke,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return p(`div`,{class:`${e}-input-group`},this.$slots)}}),Y=`0!important`,Ae=`-1px!important`;function X(e){return O(`${e}-type`,[S(`& +`,[w(`button`,{},[O(`${e}-type`,[C(`border`,{borderLeftWidth:Y}),C(`state-border`,{left:Ae})])])])])}function Z(e){return O(`${e}-type`,[S(`& +`,[w(`button`,[O(`${e}-type`,[C(`border`,{borderTopWidth:Y}),C(`state-border`,{top:Ae})])])])])}var je=w(`button-group`,`
flex-wrap: nowrap;
display: inline-flex;
position: relative;
`,[D(`vertical`,{flexDirection:`row`},[D(`rtl`,[w(`button`,[S(`&:first-child:not(:last-child)`,`
margin-right: ${Y};
border-top-right-radius: ${Y};
border-bottom-right-radius: ${Y};
`),S(`&:last-child:not(:first-child)`,`
margin-left: ${Y};
border-top-left-radius: ${Y};
border-bottom-left-radius: ${Y};
`),S(`&:not(:first-child):not(:last-child)`,`
margin-left: ${Y};
margin-right: ${Y};
border-radius: ${Y};
`),X(`default`),O(`ghost`,[X(`primary`),X(`info`),X(`success`),X(`warning`),X(`error`)])])])]),O(`vertical`,{flexDirection:`column`},[w(`button`,[S(`&:first-child:not(:last-child)`,`
margin-bottom: ${Y};
margin-left: ${Y};
margin-right: ${Y};
border-bottom-left-radius: ${Y};
border-bottom-right-radius: ${Y};
`),S(`&:last-child:not(:first-child)`,`
margin-top: ${Y};
margin-left: ${Y};
margin-right: ${Y};
border-top-left-radius: ${Y};
border-top-right-radius: ${Y};
`),S(`&:not(:first-child):not(:last-child)`,`
margin: ${Y};
border-radius: ${Y};
`),Z(`default`),O(`ghost`,[Z(`primary`),Z(`info`),Z(`success`),Z(`warning`),Z(`error`)])])])]),Me=n({name:`ButtonGroup`,props:{size:String,vertical:Boolean},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=E(e);return A(`-button-group`,je,t),i(se,e),{rtlEnabled:ee(`ButtonGroup`,n,t),mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return p(`div`,{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:`group`},this.$slots)}});function Ne(){return Se}var Pe=j({name:`DynamicInput`,common:N,peers:{Input:ae,Button:Ce},self:Ne}),Fe=te(`n-dynamic-input`),Ie=n({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:n}=t(Fe);return{mergedTheme:e,placeholder:n}},render(){let{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:i,disabled:a}=this;return p(`div`,{class:`${r}-dynamic-input-preset-input`},p(F,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:i,disabled:a}))}}),Le=n({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:n,keyPlaceholderRef:r,valuePlaceholderRef:i}=t(Fe);return{mergedTheme:n,keyPlaceholder:r,valuePlaceholder:i,handleKeyInput(t){e.onUpdateValue({key:t,value:e.value.value})},handleValueInput(t){e.onUpdateValue({key:e.value.key,value:t})}}},render(){let{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:i,disabled:a}=this;return p(`div`,{class:`${i}-dynamic-input-preset-pair`},p(F,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${i}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:a}),p(F,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${i}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:a}))}}),Re=w(`dynamic-input`,{width:`100%`},[w(`dynamic-input-item`,`
margin-bottom: 10px;
display: flex;
flex-wrap: nowrap;
`,[w(`dynamic-input-preset-input`,{flex:1,alignItems:`center`}),w(`dynamic-input-preset-pair`,`
flex: 1;
display: flex;
align-items: center;
`,[w(`dynamic-input-pair-input`,[S(`&:first-child`,{"margin-right":`12px`})])]),C(`action`,`
align-self: flex-start;
display: flex;
justify-content: flex-end;
flex-shrink: 0;
flex-grow: 0;
margin: var(--action-margin);
`,[O(`icon`,{cursor:`pointer`})]),S(`&:last-child`,{marginBottom:0})]),w(`form-item`,`
padding-top: 0 !important;
margin-right: 0 !important;
`,[w(`form-item-blank`,{paddingTop:`0 !important`})])]),Q=new WeakMap,$=n({name:`DynamicInput`,props:Object.assign(Object.assign({},M.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(n,{slots:r}){let{mergedComponentPropsRef:a,mergedClsPrefixRef:o,mergedRtlRef:s,inlineThemeDisabled:c}=E(),l=t(ce,null),u=g(n.defaultValue),f=I(m(n,`value`),u),p=M(`DynamicInput`,`-dynamic-input`,Re,Pe,n,o),h=_(()=>{let{value:e}=f;if(Array.isArray(e)){let{max:t}=n;return t!==void 0&&e.length>=t}return!1}),v=_(()=>{let{value:e}=f;return Array.isArray(e)?e.length<=n.min:!0}),y=_(()=>a?.value?.DynamicInput?.buttonSize);function b(e){let{onInput:t,"onUpdate:value":r,onUpdateValue:i}=n;t&&H(t,e),r&&H(r,e),i&&H(i,e),u.value=e}function x(t,n){if(typeof t!=`object`||!t)return n;let r=e(t)?d(t):t,i=Q.get(r);return i===void 0&&Q.set(r,i=ie()),i}function S(t,n){let{value:r}=f,i=Array.from(r??[]),a=i[t];if(i[t]=n,a&&n&&typeof a==`object`&&typeof n==`object`){let t=e(a)?d(a):a,r=e(n)?d(n):n,i=Q.get(t);i!==void 0&&Q.set(r,i)}b(i)}function C(){w(-1)}function w(e){let{value:t}=f,{onCreate:i}=n,a=Array.from(t??[]);if(i)a.splice(e+1,0,i(e+1)),b(a);else if(r.default)a.splice(e+1,0,null),b(a);else switch(n.preset){case`input`:a.splice(e+1,0,``),b(a);break;case`pair`:a.splice(e+1,0,{key:``,value:``}),b(a);break}}function D(e){let{value:t}=f;if(!Array.isArray(t))return;let{min:r}=n;if(t.length<=r)return;let{onRemove:i}=n;i&&i(e);let a=Array.from(t);a.splice(e,1),b(a)}function O(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 k(e,t){let{value:n}=f;if(!Array.isArray(n))return;let r=Array.from(n);e===`up`&&O(r,t,t-1),e===`down`&&O(r,t,t+1),b(r)}i(Fe,{mergedThemeRef:p,keyPlaceholderRef:m(n,`keyPlaceholder`),valuePlaceholderRef:m(n,`valuePlaceholder`),placeholderRef:m(n,`placeholder`)});let A=ee(`DynamicInput`,s,o),j=_(()=>{let{self:{actionMargin:e,actionMarginRtl:t}}=p.value;return{"--action-margin":e,"--action-margin-rtl":t}}),N=c?T(`dynamic-input`,void 0,j,n):void 0;return{locale:P(`DynamicInput`).localeRef,rtlEnabled:A,buttonSize:y,mergedClsPrefix:o,NFormItem:l,uncontrolledValue:u,mergedValue:f,insertionDisabled:h,removeDisabled:v,handleCreateClick:C,ensureKey:x,handleValueChange:S,remove:D,move:k,createItem:w,mergedTheme:p,cssVars:c?void 0:j,themeClass:N?.themeClass,onRender:N?.onRender}},render(){let{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:i,locale:a,mergedTheme:o,keyField:s,itemStyle:c,preset:l,showSortButton:u,NFormItem:d,ensureKey:f,handleValueChange:m,remove:h,createItem:g,move:_,onRender:v,disabled:y}=this;return v?.(),p(`div`,{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(i)||i.length===0?p(V,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||y,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>re(e[`create-button-default`],()=>[a.create]),icon:()=>re(e[`create-button-icon`],()=>[p(K,{clsPrefix:r},{default:()=>p(pe,null)})])}):i.map((a,v)=>p(`div`,{key:s?a[s]:f(a,v),"data-key":s?a[s]:f(a,v),class:[`${r}-dynamic-input-item`,t],style:c},ne(e.default,{value:i[v],index:v},()=>[l===`input`?p(Ie,{disabled:y,clsPrefix:r,value:i[v],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):l===`pair`?p(Le,{disabled:y,clsPrefix:r,value:i[v],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):null]),ne(e.action,{value:i[v],index:v,create:g,remove:h,move:_},()=>[p(`div`,{class:`${r}-dynamic-input-item__action`},p(Me,{size:n},{default:()=>[p(V,{disabled:this.removeDisabled||y,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,circle:!0,onClick:()=>{h(v)}},{icon:()=>p(K,{clsPrefix:r},{default:()=>p(me,null)})}),p(V,{disabled:this.insertionDisabled||y,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{g(v)}},{icon:()=>p(K,{clsPrefix:r},{default:()=>p(pe,null)})}),u?p(V,{disabled:v===0||y,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{_(`up`,v)}},{icon:()=>p(K,{clsPrefix:r},{default:()=>p(Oe,null)})}):null,u?p(V,{disabled:v===i.length-1||y,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{_(`down`,v)}},{icon:()=>p(K,{clsPrefix:r},{default:()=>p(De,null)})}):null]}))]))))}});function ze(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},xe),{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 ${x(t,{alpha:.2})}`})}var Be={name:`Switch`,common:N,self:ze},Ve=w(`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;
`,[C(`children-placeholder`,`
height: var(--n-rail-height);
display: flex;
flex-direction: column;
overflow: hidden;
pointer-events: none;
visibility: hidden;
`),C(`rail-placeholder`,`
display: flex;
flex-wrap: none;
`),C(`button-placeholder`,`
width: calc(1.75 * var(--n-rail-height));
height: var(--n-rail-height);
`),w(`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);
`,[be({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),C(`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;
`),C(`checked`,`
right: 0;
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),C(`unchecked`,`
left: 0;
justify-content: flex-end;
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),S(`&:focus`,[C(`rail`,`
box-shadow: var(--n-box-shadow-focus);
`)]),O(`round`,[C(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[C(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),D(`disabled`,[D(`icon`,[O(`rubber-band`,[O(`pressed`,[C(`rail`,[C(`button`,`max-width: var(--n-button-width-pressed);`)])]),C(`rail`,[S(`&:active`,[C(`button`,`max-width: var(--n-button-width-pressed);`)])]),O(`active`,[O(`pressed`,[C(`rail`,[C(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),C(`rail`,[S(`&:active`,[C(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),O(`active`,[C(`rail`,[C(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),C(`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);
`,[C(`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;
`,[be()]),C(`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);
`)]),O(`active`,[C(`rail`,`background-color: var(--n-rail-color-active);`)]),O(`loading`,[C(`rail`,`
cursor: wait;
`)]),O(`disabled`,[C(`rail`,`
cursor: not-allowed;
opacity: .5;
`)])]),He=Object.assign(Object.assign({},M.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]}),Ue,We=n({name:`Switch`,props:He,slots:Object,setup(e){Ue===void 0&&(Ue=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=E(e),i=M(`Switch`,`-switch`,Ve,Be,e,t),a=le(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=g(e.defaultValue),l=I(m(e,`value`),c),u=_(()=>l.value===e.checkedValue),d=g(!1),f=g(!1),p=_(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function h(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=a;n&&H(n,t),i&&H(i,t),r&&H(r,t),c.value=t,o(),s()}function v(){let{nTriggerFormFocus:e}=a;e()}function y(){let{nTriggerFormBlur:e}=a;e()}function b(){e.loading||s.value||(l.value===e.checkedValue?h(e.uncheckedValue):h(e.checkedValue))}function x(){f.value=!0,v()}function S(){f.value=!1,y(),d.value=!1}function C(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?h(e.uncheckedValue):h(e.checkedValue),d.value=!1)}function w(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let D=_(()=>{let{value:e}=o,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:a,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[k(`buttonHeight`,e)]:f,[k(`buttonWidth`,e)]:p,[k(`buttonWidthPressed`,e)]:m,[k(`railHeight`,e)]:h,[k(`railWidth`,e)]:g,[k(`railBorderRadius`,e)]:_,[k(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=i.value,b,x,S;return Ue?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=R((B(h)-B(f))/2),x=R(Math.max(B(h),B(f))),S=B(h)>B(f)?g:R(B(g)+B(f)-B(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}}),O=n?T(`switch`,_(()=>o.value[0]),D,e):void 0;return{handleClick:b,handleBlur:S,handleFocus:x,handleKeyup:C,handleKeydown:w,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:D,themeClass:O?.themeClass,onRender:O?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:o,unchecked:s,icon:c,"checked-icon":l,"unchecked-icon":u}=a,d=!(z(c)&&z(l)&&z(u));return p(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-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},p(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},L(o,t=>L(s,n=>t||n?p(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},p(`div`,{class:`${e}-switch__rail-placeholder`},p(`div`,{class:`${e}-switch__button-placeholder`}),t),p(`div`,{class:`${e}-switch__rail-placeholder`},p(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),p(`div`,{class:`${e}-switch__button`},L(c,t=>L(l,n=>L(u,r=>p(ye,null,{default:()=>this.loading?p(ve,Object.assign({key:`loading`,clsPrefix:e,strokeWidth:20},this.spinProps)):this.checked&&(n||t)?p(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?p(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),L(o,t=>t&&p(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),L(s,t=>t&&p(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),Ge={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},Ke=n({name:`LockOutlined`,render:function(e,t){return c(),a(`svg`,Ge,t[0]||=[b(`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)])}}),qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},Je=n({name:`Key24Regular`,render:function(e,t){return c(),a(`svg`,qe,t[0]||=[b(`g`,{fill:`none`},[b(`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)])}}),Ye={key:1,class:`place-block`},Xe={class:`message-header`},Ze={class:`message-content`},Qe={key:0},$e=[`src`],et={key:0,class:`hr`},tt={class:`application-name`},nt=[`onClick`],rt=[`src`],it=[`src`],at=[`href`],ot={class:`gray-block`},st={key:0},ct={key:3},lt={class:`message-show-header font`},ut={class:`message-show-content font`},dt={key:0},ft=[`src`],pt=[`src`],mt={key:2,class:`show-applications-block`},ht=[`onClick`],gt=[`src`],_t={key:0,class:`show-hr`},vt=[`onClick`],yt={class:`button-dialog-text`},bt={key:1,class:`show-hr`},xt=[`href`],St={class:`application-label`},Ct=[`src`],wt={key:4},Tt={class:`message-header font`},Et={key:5,class:`place-block`},Dt=[`src`],Ot={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},kt={key:0,class:`application-edit-file`},At=[`src`],jt=[`src`],Mt=[`href`],Nt={style:{display:`flex`,"flex-direction":`column`}},Pt={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},Ft={class:`door-add-block`},It={class:`door-field`},Lt={style:{"align-items":`center`,display:`flex`,width:`100%`}},Rt={style:{"align-items":`center`,display:`flex`,width:`100%`}},zt={class:`slot-block`},Bt={key:0,class:`view-application-image-block`},Vt=[`src`],Ht=[`src`],Ut=[`src`],Wt={key:3,class:`view-application-image-block`},Gt=[`src`],Kt=we(n({__name:`PlaceBlock`,props:{newPlaceCode:{type:String},newPlaceName:{type:String},newPlaceText:{type:String},place:{type:Object},mode:{type:String,required:!0},addAction:{type:Function}},emits:[`update:newPlaceCode`,`update:newPlaceName`,`update:newPlaceText`,`update:mode`],setup(e,{emit:t}){let n=e,i=t,d=e=>{i(`update:newPlaceCode`,e)},p=e=>{i(`update:newPlaceName`,e)},m=e=>{i(`update:newPlaceText`,e)},x=e=>{i(`update:mode`,e)};function S(){return{name:void 0,image:void 0,file_type:void 0}}function C(){return{code:void 0,name:void 0,keys:void 0}}function w(){return{name:void 0}}function T(e){return e}function E(e){e.image=void 0,e.file_type=void 0,e.fileList=void 0}let D=g(null),O=g(null),k=g(!1);function A(e){D.value=e,O.value=null,k.value=!0}function j(e,t){O.value={title:e,url:t},D.value=null,k.value=!0}function ee(){k.value=!1,D.value=null,O.value=null}function M(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;e<t.length;e++){let a=t[e];if(a!=`
`&&a!=` `)continue;let o=Math.abs(t.length-e-n);o<i&&(i=o,r=e)}return r<0?{before:t,after:``}:{before:t.slice(0,r),after:t.slice(r)}}let N=_(()=>M(n.place?.text).before),te=_(()=>M(n.place?.text).after),P=_(()=>n.place?.image?null:(n.place?.applications||[]).find(e=>U(e)==`image`&&e.image)||null),I=_(()=>(n.place?.applications||[]).filter(e=>e===P.value?!1:U(e)==`image`&&e.image)),L=_(()=>(n.place?.applications||[]).filter(e=>e===P.value?!1:!(U(e)==`image`&&e.image)));return(t,i)=>(c(),a(h,null,[e.mode==`mini-add`?(c(),a(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:i[0]||=e=>x(`add`)},[...i[21]||=[b(`p`,{class:`place-image-plus`},`+`,-1)]])):y(``,!0),e.mode==`add`?(c(),a(`div`,Ye,[o(f(G),{vertical:``},{default:u(()=>[o(f(J),null,{default:u(()=>[o(f(F),{style:{width:`20%`},value:e.newPlaceCode,"onUpdate:value":d,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),o(f(F),{style:{width:`80%`},value:e.newPlaceName,"onUpdate:value":p,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),o(f(F),{value:e.newPlaceText,"onUpdate:value":m,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),l(t.$slots,`default`,{},void 0,!0)]),_:3})])):y(``,!0),e.mode==`show-editor`?(c(),a(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:i[4]||=e=>x(`edit`)},[b(`div`,Xe,r(n.place?.code)+`: `+r(n.place?.name),1),i[22]||=b(`hr`,{class:`hr`},null,-1),b(`div`,Ze,[n.place?.image?(c(),a(`div`,Qe,[b(`div`,{class:`message-image-border`,onClick:i[1]||=q(e=>j(n.place?.name||``,n.place?.image||``),[`stop`])},[b(`img`,{src:n.place?.image,class:`message-image`},null,8,$e)])])):y(``,!0),v(` `+r(n.place?.text),1)]),(c(!0),a(h,null,s(n.place?.doors,e=>(c(),a(`div`,{key:e.code,class:`door-block`},[v(r(e.name)+` `,1),(c(!0),a(h,null,s(e.keys,e=>(c(),a(`span`,{key:e.name,class:`key-block`},[o(f(Te),{class:`lock-icon`},{default:u(()=>[o(f(Ke))]),_:1}),v(` `+r(e.name),1)]))),128))]))),128)),n.place?.applications?.length?(c(),a(`hr`,et)):y(``,!0),(c(!0),a(h,null,s(n.place?.applications,e=>(c(),a(`div`,{class:`message-footer application-block`,key:e.name},[b(`div`,tt,`Приложение: `+r(e.name),1),f(U)(e)==`image`&&e.image?(c(),a(`div`,{key:0,class:`application-image-border`,onClick:q(t=>A(e),[`stop`])},[b(`img`,{src:f(W)(e.image),class:`application-image`},null,8,rt)],8,nt)):f(U)(e)==`audio`&&e.image?(c(),a(`audio`,{key:1,src:f(W)(e.image),controls:``,preload:`none`,class:`application-audio`,onClick:i[2]||=q(()=>{},[`stop`])},null,8,it)):f(U)(e)==`pdf`&&e.image?(c(),a(`a`,{key:2,href:f(W)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`,onClick:i[3]||=q(()=>{},[`stop`])},` PDF `,8,at)):y(``,!0)]))),128)),b(`p`,ot,[n.place?.hidden?(c(),a(`span`,st,` Скрытая точка `)):y(``,!0),(c(!0),a(h,null,s(n.place?.keys,e=>(c(),a(`span`,{key:e.name,class:`key-block`},[o(f(Te),{class:`lock-icon`},{default:u(()=>[o(f(Je))]),_:1}),v(` `+r(e.name),1)]))),128))])])):y(``,!0),e.mode==`show`?(c(),a(`div`,ct,[o(Ee,null,{default:u(()=>[b(`div`,lt,[v(r(e.place?.code)+`: `+r(e.place?.name)+` `,1),b(`span`,{class:`collapse-icon collapse-icon-up`,onClick:i[5]||=e=>x(`show-collapse`)})]),i[23]||=b(`hr`,{class:`show-hr`},null,-1),b(`div`,ut,[e.place?.image?.length?(c(),a(`div`,dt,[b(`div`,{class:`message-image-border`,onClick:i[6]||=t=>j(e.place?.name||``,e.place?.image||``)},[b(`img`,{src:e.place?.image,class:`message-image`},null,8,ft)])])):P.value?(c(),a(`div`,{key:1,class:`message-image-border`,onClick:i[7]||=e=>A(P.value)},[b(`img`,{src:f(W)(P.value.image),class:`message-image`},null,8,pt)])):y(``,!0),v(` `+r(N.value)+` `,1),I.value.length?(c(),a(`div`,mt,[(c(!0),a(h,null,s(I.value,e=>(c(),a(`div`,{class:`show-application`,key:e.name},[b(`div`,{class:`application-image-block`,onClick:t=>A(e)},[b(`img`,{src:f(W)(e.image),class:`application-image`},null,8,gt)],8,ht)]))),128))])):y(``,!0),v(` `+r(te.value),1)]),n.place?.doors?.length?(c(),a(`hr`,_t)):y(``,!0),(c(!0),a(h,null,s(n.place?.doors,t=>(c(),a(`div`,{key:t.code,class:`button-dialog font`,onClick:n=>e.addAction(t.code)},[b(`div`,yt,r(t.code)+` `+r(t.name),1)],8,vt))),128)),L.value.length?(c(),a(`hr`,bt)):y(``,!0),(c(!0),a(h,null,s(L.value,e=>(c(),a(`div`,{class:`message-show-footer font`,key:e.name},[f(U)(e)==`pdf`&&e.image?(c(),a(`a`,{key:0,href:f(W)(e.image),target:`_blank`,rel:`noopener`,class:`pdf-application-name`},` Приложение: `+r(e.name),9,xt)):(c(),a(h,{key:1},[b(`div`,St,`Приложение: `+r(e.name),1),f(U)(e)==`audio`&&e.image?(c(),a(`audio`,{key:0,src:f(W)(e.image),controls:``,preload:`none`,class:`application-audio`},null,8,Ct)):y(``,!0)],64))]))),128))]),_:1})])):y(``,!0),e.mode==`show-collapse`?(c(),a(`div`,wt,[o(Ee,null,{default:u(()=>[b(`div`,Tt,[v(r(e.place?.code)+`: `+r(e.place?.name)+` `,1),b(`span`,{class:`collapse-icon`,onClick:i[8]||=e=>x(`show`)})])]),_:1})])):y(``,!0),e.mode==`edit`?(c(),a(`div`,Et,[o(f(G),{vertical:``},{default:u(()=>[o(f(J),null,{default:u(()=>[o(f(F),{style:{width:`20%`},value:n.place.code,"onUpdate:value":i[9]||=e=>n.place.code=e,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),o(f(F),{style:{width:`80%`},value:n.place.name,"onUpdate:value":i[10]||=e=>n.place.name=e,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),o(f(F),{value:n.place.text,"onUpdate:value":i[11]||=e=>n.place.text=e,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),i[37]||=b(`p`,{class:`settings-header`},`Картинка`,-1),b(`div`,null,[o(f(G),null,{default:u(()=>[o(f(G),{vertical:``},{default:u(()=>[b(`img`,{src:n.place.image,class:`message-edit-image`},null,8,Dt),o(f(V),{onClick:i[12]||=e=>(n.place.image=``,n.place.fileList=void 0)},{default:u(()=>[...i[24]||=[v(`Убрать картинку`,-1)]]),_:1})]),_:1}),o(f(G),{vertical:``},{default:u(()=>[o(f(F),{value:n.place.image,"onUpdate:value":i[13]||=e=>n.place.image=e,type:`text`,placeholder:`Не задано`,disabled:``},null,8,[`value`]),o(f(de),{"directory-dnd":``,max:1,"file-list":n.place.fileList,"onUpdate:fileList":i[14]||=e=>n.place.fileList=e},{default:u(()=>[o(f(ue),null,{default:u(()=>[o(f(_e),{style:{"font-size":`16px`}},{default:u(()=>[...i[25]||=[v(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1})]),i[38]||=b(`p`,{class:`settings-header`},`Видимость точки`,-1),o(f(We),{value:n.place.hidden,"onUpdate:value":i[15]||=e=>n.place.hidden=e},{checked:u(()=>[...i[26]||=[v(` Скрытая точка `,-1)]]),unchecked:u(()=>[...i[27]||=[v(` Обычная точка `,-1)]]),_:1},8,[`value`]),i[39]||=v(` Улики `,-1),o(f($),{value:n.place.applications,"onUpdate:value":i[16]||=e=>n.place.applications=e,"on-create":S},{"create-button-default":u(()=>[...i[28]||=[v(` Добавить улику `,-1)]]),default:u(({value:e})=>[b(`div`,Ot,[o(f(F),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`]),e.image?(c(),a(`div`,kt,[o(f(G),{align:`center`,justify:`space-between`},{default:u(()=>[o(f(_e),{depth:`3`},{default:u(()=>[v(r(f(he)(e.image))+` `,1),o(f(ge),{size:`small`,bordered:!1},{default:u(()=>[v(r(f(U)(e)||`файл`),1)]),_:2},1024)]),_:2},1024),o(f(V),{size:`small`,quaternary:``,onClick:t=>E(T(e))},{default:u(()=>[...i[29]||=[v(` Убрать файл `,-1)]]),_:1},8,[`onClick`])]),_:2},1024),f(U)(e)==`image`?(c(),a(`img`,{key:0,src:f(W)(e.image),class:`application-edit-image`},null,8,At)):f(U)(e)==`audio`?(c(),a(`audio`,{key:1,src:f(W)(e.image),controls:``,preload:`none`,class:`application-edit-audio`},null,8,jt)):f(U)(e)==`pdf`?(c(),a(`a`,{key:2,href:f(W)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`},` PDF `,8,Mt)):y(``,!0)])):y(``,!0),o(f(de),{max:1,"file-list":T(e).fileList,"onUpdate:fileList":t=>T(e).fileList=t,accept:`image/*,application/pdf,audio/*`},{default:u(()=>[o(f(V),{size:`small`},{default:u(()=>[...i[30]||=[v(`Загрузить файл улики`,-1)]]),_:1})]),_:1},8,[`file-list`,`onUpdate:fileList`])])]),_:1},8,[`value`]),i[40]||=v(` Действия `,-1),o(f($),{value:n.place.doors,"onUpdate:value":i[17]||=e=>n.place.doors=e,"on-create":C},{"create-button-default":u(()=>[...i[31]||=[v(` Добавить действие `,-1)]]),action:u(({index:e,create:t,remove:n})=>[b(`div`,Nt,[o(f(V),{onClick:()=>t(e),class:`plus-minus-buttons`},{default:u(()=>[...i[32]||=[v(`+`,-1)]]),_:1},8,[`onClick`]),o(f(V),{onClick:()=>n(e),class:`plus-minus-buttons`},{default:u(()=>[...i[33]||=[v(`-`,-1)]]),_:1},8,[`onClick`])])]),default:u(({value:e})=>[b(`div`,Pt,[b(`div`,Ft,[o(f(J),null,{default:u(()=>[o(f(F),{style:{width:`30%`},value:e.code,"onUpdate:value":t=>e.code=t,type:`text`,placeholder:`Код`},null,8,[`value`,`onUpdate:value`]),o(f(F),{style:{width:`70%`},value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])]),_:2},1024),i[35]||=b(`p`,{class:`need-keys-text`},`Требуемые ключи`,-1),b(`div`,It,[o(f($),{value:e.keys,"onUpdate:value":t=>e.keys=t,"on-create":w},{"create-button-default":u(()=>[...i[34]||=[v(` Добавить ключ `,-1)]]),default:u(({value:e})=>[b(`div`,Lt,[o(f(F),{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`]),i[41]||=v(` Получаемые ключи `,-1),o(f($),{value:n.place.keys,"onUpdate:value":i[18]||=e=>n.place.keys=e,"on-create":w},{"create-button-default":u(()=>[...i[36]||=[v(` Добавить ключ `,-1)]]),default:u(({value:e})=>[b(`div`,Rt,[o(f(F),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),b(`div`,zt,[l(t.$slots,`default`,{},void 0,!0)])]),_:3})])):y(``,!0),o(f(oe),{show:k.value,"onUpdate:show":i[20]||=e=>k.value=e,"mask-closable":!0},{default:u(()=>[o(f(fe),{style:{width:`min(94vw, 1200px)`},bordered:!1,role:`dialog`,"aria-modal":`true`,"content-style":{padding:`14px`}},{header:u(()=>[v(r(D.value?.name||O.value?.title),1)]),"header-extra":u(()=>[o(f(V),{quaternary:``,circle:``,onClick:i[19]||=e=>ee()},{default:u(()=>[...i[42]||=[v(` x `,-1)]]),_:1})]),default:u(()=>[D.value&&f(U)(D.value)==`image`?(c(),a(`div`,Bt,[b(`img`,{src:f(W)(D.value.image),class:`view-application-image`},null,8,Vt)])):D.value&&f(U)(D.value)==`pdf`?(c(),a(`iframe`,{key:1,src:f(W)(D.value.image),class:`view-application-pdf`},null,8,Ht)):D.value&&f(U)(D.value)==`audio`?(c(),a(`audio`,{key:2,src:f(W)(D.value.image),controls:``,autoplay:``,class:`view-application-audio`},null,8,Ut)):O.value?(c(),a(`div`,Wt,[b(`img`,{src:O.value.url,class:`view-application-image`},null,8,Gt)])):y(``,!0)]),_:1})]),_:1},8,[`show`])],64))}}),[[`__scopeId`,`data-v-9a0a2d9f`]]);export{J as n,Kt as t};