"use strict";const e=require("../../adapter-vue.js"),t=require("../../../../common/vendor.js"),{computed:n}=e.vue,o={components:{FormBranch:()=>"./form-branch.js",FormInput:()=>"./form-input.js"},props:{payload:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:t})=>({content:n((()=>{var t;return(null==(t=e.payload)?void 0:t.content)||{type:0,header:"",items:[]}})),handleContentListItemClick:e=>{t("sendMessage",{text:e.content})},handleFormSaveInputSubmit:e=>{t("sendMessage",{text:e})}})};if(!Array){(t.resolveComponent("FormBranch")+t.resolveComponent("FormInput"))()}const r=t._export_sfc(o,[["render",function(e,n,o,r,s,a){return t.e({a:1===r.content.type},1===r.content.type?{b:t.o$1(r.handleContentListItemClick),c:t.p({title:r.content.header,list:r.content.items})}:{d:t.o$1(r.handleFormSaveInputSubmit),e:t.p({title:r.content.header})})}]]);wx.createComponent(r);
