import{d as _,r as w,G as S,b as u,c as f,w as s,f as l,d2 as m,ez as b,e as x,b0 as K,eA as T,u as t,bu as p,c4 as C,c5 as y}from"./registerWidgets.d6e66474.js";import{R as E}from"./SmartConsole.85b38544.js";import{a as F,A as d}from"./Title.dd14f24f.js";import{F as I}from"./Form.fafe4307.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="c3cf5740-4fb0-4513-9329-dc4c06c44615",r._sentryDebugIdIdentifier="sentry-dbid-c3cf5740-4fb0-4513-9329-dc4c06c44615")}catch{}})();const A="forms_workspace_id_path_key",B="This path is already being used by another form or dash on your workspace",V=_({__name:"FormSettings",props:{form:{}},setup(r){const e=w(r.form),v=[{label:"General",props:[{label:"Form name",valueKey:"title"}]},{label:"Welcome Screen",props:[{label:"Title",valueKey:"welcomeTitle"},{label:"Subtitle",valueKey:"startMessage"},{label:"Start button text",valueKey:"startButtonText"}]},{label:"Ending Screen",props:[{label:"Title",valueKey:"endMessage"},{label:"Restart button text",valueKey:"restartButtonText"}]},{label:"Alert Messages",props:[{label:"Error message",valueKey:"errorMessage"}]}],h=S({pathError:null,sectionsShown:[!0,!1,!1]}),g=i=>{i.detail.includes(A)&&(h.pathError=B)};return addEventListener("hasura-error",g),(i,o)=>(u(),f(t(I),{layout:"vertical"},{default:s(()=>[l(E,{runtime:e.value},null,8,["runtime"]),(u(),m(p,null,b(v,a=>x("div",{key:a.label},[l(t(F),{level:3},{default:s(()=>[K(T(a.label),1)]),_:2},1024),(u(!0),m(p,null,b(a.props,n=>(u(),f(t(d),{key:n.label,label:n.label},{default:s(()=>[l(t(C),{type:"text",value:e.value[n.valueKey],onChange:k=>e.value[n.valueKey]=k.target.value},null,8,["value","onChange"])]),_:2},1032,["label"]))),128))])),64)),l(t(d),{label:"Start smart form automatically"},{default:s(()=>[l(t(y),{checked:e.value.autoStart,"onUpdate:checked":o[0]||(o[0]=a=>e.value.autoStart=a)},null,8,["checked"])]),_:1}),l(t(d),{label:"Allow the user to restart the smart form after it is over"},{default:s(()=>[l(t(y),{checked:e.value.allowRestart,"onUpdate:checked":o[1]||(o[1]=a=>e.value.allowRestart=a)},null,8,["checked"])]),_:1})]),_:1}))}});export{V as _};
//# sourceMappingURL=FormSettings.vue_vue_type_script_setup_true_lang.98511f6b.js.map
