1import{r as e,G as a,H as l,b as o,d as t}from"./element-plus.80abf16b.js";import{c1 as n,bM as s,c2 as r,c7 as u,c8 as m,bP as c,bW as d,ca as i,cg as p,ce as v,co as f}from"./commonmodules.b9c1dd40.js";import"./lodash-es.480d1bd8.js";import"./axios.1263d4b1.js";const b={name:""},g={class:"dialog-footer"},h=n({__name:"FlagSetting",props:{componentData:null,save:{type:Function}},setup(n,{expose:h}){const _=n,V=s(JSON.parse(null==_?void 0:_.componentData)),y=s(!1),D=s(),S=()=>{D.value&&D.value.validate((e=>{e&&(_.save(V.value),k())}))},j={name:[{validator:(e,a,l)=>a?/^[A-Za-z0-9]+$/.test(a)?a.length>50?l(new Error("Please enter within 50 characters.")):l():l(new Error("Please enter only alphanumeric or numeric values.")):l(),trigger:"blur"}]},k=()=>{var e;null==(e=D.value)||e.clearValidate(),y.value=!1};return h({toggleDialog:async()=>{y.value=!y.value,y.value&&(null==_?void 0:_.componentData)&&(V.value={...b,...JSON.parse(_.componentData)})}}),(n,s)=>{const b=e,h=a,_=l,w=o,x=t;return r(),u(x,{modelValue:c(y),"onUpdate:modelValue":s[2]||(s[2]=e=>d(y)?y.value=e:null),title:"Anchor Properties",width:"480px",class:"camps-setting-dialog","close-on-click-modal":!1,onClose:k},{footer:m((()=>[i("span",g,[p(w,{onClick:k},{default:m((()=>[v("Cancel")])),_:1}),p(w,{type:"primary",onClick:S},{default:m((()=>[v("Save")])),_:1})])])),default:m((()=>[p(_,{model:c(V),rules:j,ref_key:"formRef",ref:D,"label-position":"top",onSubmit:s[1]||(s[1]=f((()=>{}),["prevent"]))},{default:m((()=>[p(h,{label:"Anchor name",prop:"name"},{default:m((()=>[p(b,{modelValue:c(V).name,"onUpdate:modelValue":s[0]||(s[0]=e=>c(V).name=e)},null,8,["modelValue"])])),_:1})])),_:1}
1,8,["model"])])),_:1},8,["modelValue"])}}});export{h 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.