import{aB as V,a8 as b,a7 as w,M as C,f as $,w as T,aU as _,j as U,q as B,aq as d,_ as m,aA as D,b as x}from"./app-QjDgb7aF.js";import{M as c}from"./radio-Co0R5AcD.js";import{b as u,E as l,j as f,p as k,q as r,k as t,i as n,J as a,D as S,f as I}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const O=u({components:{MkButton:C,MkInput:w,MkSwitch:b,MkTextarea:V,MkRadio:c},data(){return{text:"",flag:!0,radio:"iceshrimp",mfm:`Hello world! This is an @example mention. BTW, you are @${this.$i?this.$i.username:"guest"}.
Also, here is ${d} and [example link](${d}). for more details, see https://iceshrimp.dev.
As you know #misskey is open-source software.`}},methods:{async openDialog(){B({type:"warning",title:"Oh my Calc",text:"Lorem ipsum dolor sit amet, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."})},async openForm(){U("Example form",{foo:{type:"boolean",default:!0,label:"This is a boolean property"},bar:{type:"number",default:300,label:"This is a number property"},baz:{type:"string",default:"iceshrimp makes you happy.",label:"This is a string property"}})},async openDrive(){_()},async selectUser(){T()},async openMenu(o){$([{type:"label",text:"Fruits"},{text:"Create some apples",action:()=>{}},{text:"Read some oranges",action:()=>{}},{text:"Update some melons",action:()=>{}},null,{text:"Delete some bananas",danger:!0,action:()=>{}}],o.currentTarget??o.target)}}}),q={class:"_card"},F={class:"_content"},R={style:{margin:"32px 0"}},h={class:"_content",style:{"pointer-events":"none"}},j={class:"_content"};function A(o,e,y,z,H,J){const M=l("MkInput"),g=l("MkSwitch"),p=l("MkRadio"),i=l("MkButton"),v=l("Mfm");return f(),k("div",q,[r("div",F,[t(M,{modelValue:o.text,"onUpdate:modelValue":e[0]||(e[0]=s=>o.text=s)},{label:n(()=>[...e[5]||(e[5]=[a("Text",-1)])]),_:1},8,["modelValue"]),t(g,{modelValue:o.flag,"onUpdate:modelValue":e[1]||(e[1]=s=>o.flag=s)},{default:n(()=>[r("span",null,"Switch is now "+S(o.flag?"on":"off"),1)]),_:1},8,["modelValue"]),r("div",R,[t(p,{modelValue:o.radio,"onUpdate:modelValue":e[2]||(e[2]=s=>o.radio=s),value:"misskey"},{default:n(()=>[...e[6]||(e[6]=[a("Iceshrimp",-1)])]),_:1},8,["modelValue"]),t(p,{modelValue:o.radio,"onUpdate:modelValue":e[3]||(e[3]=s=>o.radio=s),value:"mastodon"},{default:n(()=>[...e[7]||(e[7]=[a("Mastodon",-1)])]),_:1},8,["modelValue"]),t(p,{modelValue:o.radio,"onUpdate:modelValue":e[4]||(e[4]=s=>o.radio=s),value:"pleroma"},{default:n(()=>[...e[8]||(e[8]=[a("Pleroma",-1)])]),_:1},8,["modelValue"])]),t(i,{inline:""},{default:n(()=>[...e[9]||(e[9]=[a("This is",-1)])]),_:1}),t(i,{inline:"",primary:""},{default:n(()=>[...e[10]||(e[10]=[a("the button",-1)])]),_:1})]),r("div",h,[t(v,{text:o.mfm},null,8,["text"])]),r("div",j,[t(i,{inline:"",primary:"",onClick:o.openMenu},{default:n(()=>[...e[11]||(e[11]=[a("Open menu",-1)])]),_:1},8,["onClick"]),t(i,{inline:"",primary:"",onClick:o.openDialog},{default:n(()=>[...e[12]||(e[12]=[a("Open dialog",-1)])]),_:1},8,["onClick"]),t(i,{inline:"",primary:"",onClick:o.openForm},{default:n(()=>[...e[13]||(e[13]=[a("Open form",-1)])]),_:1},8,["onClick"]),t(i,{inline:"",primary:"",onClick:o.openDrive},{default:n(()=>[...e[14]||(e[14]=[a("Open drive",-1)])]),_:1},8,["onClick"])])])}const E=m(O,[["render",A]]),N={class:"graojtoi"},P=u({__name:"preview",setup(o){return D(I(()=>({title:x.ts.preview,icon:"ph-eye ph-bold ph-lg"}))),(e,y)=>(f(),k("div",N,[t(E)]))}}),X=m(P,[["__scopeId","data-v-f513750f"]]);export{X as default};
//# sourceMappingURL=preview-BRjm3JuD.js.map
