1import{a as S}from"./button.esm-BK7iqm90.js";import{o as g,q as V,s as e,y as s,z as h,H as p,u as l,a3 as m,t as n,F as k,r as w,i as x,j as y}from"./basedirective.esm-CYb1S43y.js";import{u as b}from"./app-1WRKSqOY.js";import{u as B}from"./toast-hFCD-2h2.js";import{_ as N}from"./DataEdit-m612dKp0.js";import"./basecomponent.esm-CyGjr3Z_.js";import"./ripple.esm-yaZzTaAT.js";import"./focustrap.esm-CkH9FytO.js";import"./event-Cfjadyby.js";import"./inputtext.esm-BcsU69e6.js";import"./billingLocations-DpsX8QQk.js";import"./event_option-WW7x27fd.js";import"./image.esm-aGN4Y6dT.js";import"./index.esm-CscM2XuP.js";import"./index.esm-Dn59VVcT.js";import"./portal.esm-CKFFSOar.js";import"./radiobutton.esm-CgWO1No4.js";import"./fileupload.esm-QC0wXrX-.js";import"./index.esm-oxxU6X2g.js";import"./message.esm-CJ-D0Bw6.js";import"./index.esm-qvXCBId7.js";import"./index.esm-N8BbRSeH.js";import"./progressbar.esm-CTqON6K4.js";import"./password.esm-DPiJK_BX.js";import"./virtualscroller.esm-C9fv91PN.js";import"./textarea.esm-CU2JJkbK.js";import"./inputswitch.esm-C-JLG1_K.js";import"./multiselect.esm-DNO_MAGo.js";import"./checkbox.esm-B-zMQAjU.js";import"./index.esm-BfvsYZs1.js";import"./DataEdit.vue_vue_type_style_index_0_lang-CfJCuS3B.js";import"./dropdown.esm-BbPDl0hZ.js";import"./CustomColorPicker.vue_vue_type_style_index_1_lang-bFG6ZBBC.js";import"./DatePicker-PK-Cwr04.js";import"./calendar.esm-SFlc5rfV.js";import"./index.esm-BI4cQwoD.js";import"./index-Dt-aGkZH.js";import"./inputnumber.esm-B_W5SzOU.js";import"./index.esm-9kB3NUMS.js";import"./UploadFile-CK4T3io7.js";import"./quill-DM_-9dA8.js";import"./avatar.esm-Cw1KtjV1.js";import"./utils-B_owWT48.js";import"./dialog.esm-CHuiygQO.js";import"./CustomEditor-UaTgsduE.js";import"./accordiontab.esm-pKG2eLYG.js";import"./CustomEditor.vue_vue_type_style_index_0_scoped_90b192aa_lang-y0nbFSkg.js";import"./webform-b0hCK7-n.js";import"./CustomColorPicker-C2sgraqb.js";import"./selectbutton.esm-BJQjOUCW.js";const U={class:"grid"},C={class:"col-12 md:col-6"},No={__name:"UserShow",props:{userId:Number|String},setup(u){const a=B(),c=u,i=b(),o=w({});g(async()=>{o.value=await i.show(c.userId)});async function d(){try{let t=await i.store(o.value);o.value.id=t.id,a.success()}catch(t){console.log(t),a.danger({detail:t.response.data.message})}}return(t,r)=>{const f=x("router-link"),_=S;return y(),V(k,null,[e("h3",null,[s(f,{class:"no-underline text-black-alpha-90 hover:underline",to:"/users"},{default:h(()=>[r[1]||(r[1]=e("i",{class:"pi pi-arrow-left"},null,-1)),p(" "+l(m(n)("user.USERS")),1)]),_:1}),p(" / "+l(o.value.name),1)]),e("div",U,[e("div",C,[s(N,{fields:m(i).fields,modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=v=>o.value=v)},null,8,["fields","modelValue"]),s(_,{label:m(n)("user.SAVE"),onClick:d},null,8,["label"])])])],64)}}};export{No 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.