1import{r as a,P as M,b as n,h as e,e as l,f as t,i as v,t as o,k as b,A as V,g as f,B,z as C,D as I,l as k,T as y}from"../app-0.5.6.js";import{c as N}from"./camera-B1gsgm9y.js";import{t as r}from"./global-nglKSoR3.js";import{c}from"./error-kqOC86ip.js";import"./index-CMW59wn3.js";import"./user-DJPGqo8-.js";import"./_commonjsHelpers-CE1G-McA.js";const E={key:0,class:"exception-notice-block"},S={key:1,class:"exception-notice-block"},T={for:"exception-message"},D=["disabled"],q={key:0,class:"success-msg msg"},P={key:0,class:"error-msg msg"},H={__name:"ExceptionNoticeBlock",props:["postId"],setup(h){let i=a(""),u=a(!1),m=a(!1),_=a(r.exception_message_required_text),p=a(!1),x=a(!1);M(()=>{u.value&&(c.currentCamera.is_exception=1)});async function w(){const d=i.value;if(m.value=!1,p.value=!0,!d){m.value=!0,p.value=!1;return}await N.sendExceptionMessage(h.postId,d,!1)?(u.value=!0,x.value=!0):c.error?.message&&(_.value=c.error.message,m.value=!0),p.value=!1}return(d,s)=>!e(x)&&parseInt(e(c).currentCamera?.is_exception)?(l(),n("div",E,[t("h3",null,[s[1]||(s[1]=t("span",{class:"icon"},"â ï¸",-1)),v(" "+o(e(r).exception_block_we_know),1)])])):(l(),n("div",S,[t("h3",null,[s[2]||(s[2]=t("span",{class:"icon"},"â ï¸",-1)),v(" "+o(e(r).notify_text),1)]),t("form",{id:"exception-form",onSubmit:I(w,["prevent"])},[t("label",T,o(e(r).exception_text),1),V(t("textarea",{id:"exception-message","onUpdate:modelValue":s[0]||(s[0]=g=>C(i)?i.value=g:i=g),required:""},null,512),[[B,e(i)]]),e(u)?f("",!0):(l(),n("button",{key:0,class:"wvs-btn",type:"submit",disabled:e(p)||parseInt(e(c).currentCamera?.is_exception)},o(e(r).submit),9,D))],32),b(y,{name:"fade"},{default:k(()=>[e(u)?(l(),n("div",q,o(e(r).thank_you_for_exception_message),1)):f("",!0)]),_:1}),b(y,{name:"fade"},{default:k(()=>[e(m)?(l(),n("div",P,o(e(_)),1)):f("",!0)]),_:1})]))}};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.