PageSourceSearch

https://app.helpspace.com/build/assets/_edit.modal-DGv6IUht.js

js helpspace.com collected 2026-10-09 23:15:55 UTC 2,586 bytes, 1 lines download raw bytes

1import{f as g,n as v,e as _,T as b}from"./coupon-B-rA1fk2.js";import{M as y}from"./modal-form-layout-CGrw4uhu.js";import{f as u}from"./app-DiJ3gBzv.js";import{a as w}from"./bootstrap-CY0Ip2mn.js";import{v as V,R as o,D as F,F as S,Y as d,z as f,C as r,U as k,B as n,$ as C,N}from"./translation-D__16jkl.js";import"./vue-directives-CnKVJup6.js";const T={components:{FvlForm:b,FvlInput:_,FvlSubmit:v,FvlTagSelect:g,ModalFormLayout:y},data(){return{form:!1,selected:[],channelOptions:[]}},computed:{params(){return this.$store.getters.formModal.params}},mounted(){this.updateFormData(this.params),w.get("/selectable/channels").then(e=>{this.channelOptions=e.data.data})},methods:{changed(){},updateFormData(e){this.form=JSON.parse(JSON.stringify(e)),this.form.users=u(this.form.users,"id"),this.form.channels=u(this.form.channels||[],"id")},success(){this.$bus.emit("current.table.reload"),this.$store.commit("hideFormModal")}}};function D(e,l,M,O,a,t){const i=o("fvl-input"),m=o("fvl-tag-select"),p=o("fvl-submit"),c=o("fvl-form"),h=o("modal-form-layout");return F((f(),d(h,{title:e.$trans.get("Edit Team")},{default:r(()=>[a.form&&t.params?(f(),d(c,{key:0,data:a.form,url:"/teams/"+t.params.id,autocomplete:"off",class:"flex flex-wrap w-full",method:"patch",onSuccess:t.success},{default:r(()=>[n(i,{label:e.$trans.get("Name"),placeholder:e.$trans.get("Type team name"),modelValue:a.form.name,"onUpdate:modelValue":l[0]||(l[0]=s=>a.form.name=s),class:"w-full",name:"name",required:"",type:"text"},null,8,["label","placeholder","modelValue"]),n(m,{"allow-new":!1,label:e.$trans.get("Members"),"lazy-load":!1,placeholder:e.$trans.get("Select ..."),"search-keys":["name"],"search-remote":!0,modelValue:a.form.users,"onUpdate:modelValue":l[1]||(l[1]=s=>a.form.users=s),class:"w-full","field-class":"",name:"users","option-key":"id","option-value":"name","options-url":"/selectable/users","response-data-path":"data",onChanged:t.changed},null,8,["label","placeholder","modelValue","onChanged"]),n(m,{"allow-new":!1,label:e.$trans.get("Channels"),"lazy-load":!1,placeholder:e.$trans.get("Select ..."),"search-keys":["name","address"],options:a.channelOptions,modelValue:a.form.channels,"onUpdate:modelValue":l[2]||(l[2]=s=>a.form.channels=s),class:"w-full",name:"channels","option-key":"id","option-value":"name"},null,8,["label","placeholder","options","modelValue"]),n(p,null,{default:r(()=>[C(N(e.$trans.get("Save")),1)],void 0,!0),_:1})],void 0,!0),_:1},8,["data","url","onSuccess"])):k("",!0)],void 0,!0),_:1},8,["title"])),[[S,a.form]])}const x=V(T,[["render",D]]);export{x 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.