import{m as a,p as e}from"./page_layout.js?v=1763625242172";import{k as s,P as o,r as l,R as n,S as r,U as t,a4 as u,V as v,X as d,aj as i}from"./vue.js?v=1763625242172";import{df as m}from"./naive.js?v=1763625242172";const p={class:"calc-verify-box"},c={class:"mx-12px"},x={class:"w-80px ml-12px"},f=e(s({__name:"CalcVerify",setup(e,{expose:s}){const{t:f}=o(),_=l(0),h=l(0),C=l(null);return _.value=Math.round(9*Math.random()+1),h.value=Math.round(9*Math.random()+1),s({validate:()=>new Promise(((e,s)=>{C.value!==_.value+h.value&&(a.error(f("Component.Confirm.index_5")),s()),e(!0)}))}),(a,e)=>{const s=m;return n(),r("div",p,[t("div",null,u(a.$t("Component.Confirm.index_4")),1),t("div",c,u(v(_))+" + "+u(v(h)),1),e[1]||(e[1]=t("div",null,"=",-1)),t("div",x,[d(s,{value:v(C),"onUpdate:value":e[0]||(e[0]=a=>i(C)?C.value=a:null),"show-button":!1,placeholder:""},null,8,["value"])])])}}}),[["__scopeId","data-v-366c5492"]]);export{f as C};
