1import{aR as V,g5 as C,cC as E,cD as U,a_ as u,bm as _,aU as S,cn as w,c9 as k,ca as c,aV as y,b2 as A,b3 as v,b1 as a,bg as s,br as B,cE as O,bs as N,cx as T,bR as $,b6 as I}from"./c-index-C7aDQtMU.js";import{h as F,i as H,D as M,e as P}from"./c-el-form-item-lGG0C5Mp.js";import{E as D}from"./c-index-CWiIv3MT.js";/* empty css */import{s as R,S as j}from"./c-StandardAddOrEditMixin-CDcvF4R-.js";import{U as J}from"./c-UserSelectAndCreate-mw1i7Qx1.js";import"./c-index-CQD-eyPW.js";import"./c-debounce-C9zzGgaU.js";import"./e-front-BYMFT9Ax.js";import"./c-FormGroupWrapper-Dr4gI0jh.js";import"./c-HelperTool-Rf0okt4A.js";import"./c-index-BVAx5QAs.js";/* empty css */import"./c-el-select-v2-D6a1IT9B.js";import"./c-el-virtual-list-B1kIuwhn.js";import"./c-UserFormCreateOrUpdate-D3Zec1wk.js";const L=V({components:{...R,ElCollapse:H,ElCollapseItem:F,ElSelect:U,ElOption:E,ElDatePicker:D,UserSelectAndCreate:J},props:{...C},setup(o,{emit:e}){const f="admin/sign",b="ModeratorSignList",m=u(!1),p=u([]),t=u({fio:"",position:"",email:"",user_id:null,expired_at:M.now().plus({year:1}).toJSDate()});_(()=>t.value.user_id,r=>{const n=p.value.find(d=>d.id===r);n&&(t.value.fio=[n.first_name,n.last_name].filter(d=>d).join(" "),t.value.email=n.email)});const i=async()=>{m.value=!0;try{const{data:r}=await w.get("admin/user-v2");p.value=r}catch{}m.value=!1};return S(()=>{i()}),{editableData:t,users:p,loadingUsers:m,...j({props:o,editableData:t,apiUrl:f,goToComponentWhenItemCreate:b,emit:e})}}}),W={class:"form-group"},q={class:"form-group"},z={class:"form-group"},G={class:"form-group"},K={class:"form-group"},Q={class:"form-group"},X={class:"form-group"};function Y(o,e,f,b,m,p){const t=c("UserSelectAndCreate"),i=O,r=D,n=c("FormErrors"),d=T,g=P;return y(),A(g,{class:"card-header"},{default:v(()=>[a("div",W,[e[6]||(e[6]=a("label",null,"ÐолÑзоваÑелÑ:",-1)),a("div",null,[s(t,{modelValue:o.editableData.user_id,"onUpdate:modelValue":e[0]||(e[0]=l=>o.editableData.user_id=l),class:"w-full",onAddNewUser:e[1]||(e[1]=l=>o.editableData.user_id=l.id)},null,8,["modelValue"])])]),B(a("div",null,[a("div",q,[e[7]||(e[7]=a("label",null,"ФÐÐ:",-1)),s(i,{class:"form-control",modelValue:o.editableData.fio,"onUpdate:modelValue":e[2]||(e[2]=l=>o.editableData.fio=l),placeholder:"ФÐÐ"},null,8,["modelValue"])]),a("div",z,[e[8]||(e[8]=a("label",null,"ÐолжноÑÑÑ:",-1)),s(i,{class:"form-control",modelValue:o.editableData.position,"onUpdate:modelValue":e[3]||(e[3]=l=>o.editableData.position=l),placeholder:"ÐолжноÑÑÑ"},null,8,["modelValue"])]),a("div",G,[e[9]||(e[9]=a("label",null,"Email:",-1)),s(i,{class:"form-control",modelValue:o.editableData.email,"onUpdate:modelValue":e[4]||(e[4]=l=>o.editableData.email=l),placeholder:"email"},null,8,["modelValue"])]),a("div",K,[e[10]||(e[10]=a("label",null,"ÐаÑа иÑÑеÑÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñи:",-1)),s(r,{modelValue:o.editableData.expired_at,"onUpdate:modelValue":e[5]||(e[5]=l=>o.editableData.expired_at=l),type:"date",placeholder:"ÐÑбеÑиÑе денÑ"},null,8,["modelValue"])])],512),[[N,o.editableData.user_id]]),a("div",Q,[s(n,{"model-value":o.errors},null,8,["model-value"])]),a("div",X,[s(d,{loading:o.saving,onClick:o.saveHandler,type:"primary"},{default:v(()=>[$(I(o.cpSaveButtonTitle)+" запиÑÑ",1)]),_:1},8,["loading","onClick"])])]),_:1})}const fe=k(L,[["render",Y]]);export{fe as default};
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.