PageSourceSearch

https://tatiage.com/_nuxt/Dq5rIeqs.js

js tatiage.com collected 2026-10-04 21:06:36 UTC 2,041 bytes, 1 lines download raw bytes

1import{_ as b}from"./BvqGpNaL.js";import{a as k}from"./B7_MSa3u.js";import{d as q,u as N,a as C,r as n,E as $,G as B,N as D,i as O,k as z,o as l,c as m,e as I,f as s,g as e,h as a,x as P,O as S,P as V,_ as H,X as M}from"./DaMACcIi.js";import{_ as R}from"./BfRs5923.js";import"./Snx3Xzp7.js";import"./zpnEDeKB.js";const T={key:0,class:"fixed flex items-center top-0 h-full w-full bg-white opacity-50 z-20 align-middle"},U={class:"my-[20px] lg:w-[1150px] w-[95%] mx-auto"},E={key:0},Q={key:1},G={class:"bg-white my-3 py-3 border-b"},L={class:"flex flex-col gap-[10px]"},Z=q({__name:"answer",setup(X){const _=N(),u=C().params.id,f=n({}),o=n(null),c=n(null),t=n(""),p=n(!0),d=n(!1);$({title:"回答",meta:[]}),B({robots:"noindex, nofollow"}),D(async()=>{const i=await $fetch("/api/getQuestion",{method:"POST",body:{id:u}});f.value=i,c.value=i.ownerID,o.value=i.ownerUser||null,p.value=!1});async function g(){d.value=!0,t.value,await $fetch("/api/answer",{method:"POST",body:{questionId:u,content:t.value},headers:M()}),d.value=!1,await _.push("/qa/"+u)}return(i,r)=>{const w=b,x=k,v=H,y=R;return l(),O(y,null,{default:z(()=>[e(d)?(l(),m("div",T,[a(w,{height:50,class:""})])):I("",!0),s("div",U,[s("div",null,[e(p)?(l(),m("div",E,[a(w,{height:50})])):(l(),m("div",Q,[s("div",G,[a(x,{question:e(f),"content-preview":!1,"answer-preview":!1,"image-preview":!0,anonymize:e(o)?.anonymize,"owner-id":e(c)?e(c):void 0,"owner-icon-url":e(o)?.imageUrl,"owner-name":e(o)?.lastName||e(o)?.firstName?e(o)?.lastName+e(o)?.firstName:"名無し"},null,8,["question","anonymize","owner-id","owner-icon-url","owner-name"])]),P(s("textarea",{"onUpdate:modelValue":r[0]||(r[0]=h=>S(t)?t.value=h:null),class:"border rounded-md border-gray-200 w-full h-52 p-1",placeholder:"5文字以上入力してください"},null,512),[[V,e(t),void 0,{trim:!0}]]),s("div",L,[a(v,{text:"回答",orange:!0,disabled:e(t).length<5,onClick:g},null,8,["disabled"]),a(v,{text:"キャンセル",white:!0,onClick:r[1]||(r[1]=h=>e(_).go(-1))})])]))])])]),_:1})}}});
1export{Z 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.