import{A as e,Ct as t,D as n,c as r,h as i,l as a,m as o,r as s,u as c}from"./runtime-core.esm-bundler-DJThmTxA.js";import{t as l}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as u,t as d}from"./KsInlineMessage-Cl9GruP-.js";var f=[`aria-busy`],p={key:5,role:`alert`,class:`ks-state-error`},m={key:0},h={key:8},g=l(i({__name:`QueryStateBoundary`,props:{loading:{type:Boolean},processing:{type:Boolean},dirty:{type:Boolean},error:{},empty:{type:Boolean},partial:{type:Boolean},staleAt:{},warning:{},unauthorized:{type:Boolean},forbidden:{type:Boolean},conflict:{type:Boolean},expired:{type:Boolean},readonly:{type:Boolean},correlationId:{}},emits:[`retry`],setup(i,{emit:l}){let g=i,_=l;return(l,v)=>(n(),c(`section`,{"aria-busy":g.loading||g.processing},[g.loading?(n(),r(d,{key:0,severity:`info`,message:`불러오는 중입니다.`})):g.unauthorized?(n(),r(d,{key:1,severity:`warning`,title:`로그인 필요`,message:`로그인 후 다시 시도하세요.`})):g.forbidden?(n(),r(d,{key:2,severity:`danger`,title:`권한 없음`,message:`이 작업을 수행할 권한이 없습니다.`})):g.conflict?(n(),r(d,{key:3,severity:`warning`,title:`변경 충돌`,message:`다른 사용자가 먼저 변경했습니다. 최신 버전을 확인하세요.`})):g.expired?(n(),r(d,{key:4,severity:`warning`,title:`유효기간 만료`,message:`만료된 증거 또는 제안은 실행·공개할 수 없습니다.`})):g.error?(n(),c(`div`,p,[o(d,{severity:`danger`,title:`요청 실패`,message:g.error.message},null,8,[`message`]),o(u,{label:`같은 요청 다시 시도`,severity:`secondary`,onClick:v[0]||=e=>_(`retry`)}),i.correlationId?(n(),c(`small`,m,`Correlation: `+t(i.correlationId),1)):a(``,!0)])):g.empty?(n(),r(d,{key:6,severity:`info`,message:`표시할 데이터가 없습니다.`})):(n(),c(s,{key:7},[g.partial?(n(),r(d,{key:0,severity:`warning`,message:`일부 데이터만 표시하고 있습니다. 완전성 경고를 확인하세요.`})):a(``,!0),g.warning?(n(),r(d,{key:1,severity:`warning`,message:g.warning},null,8,[`message`])):a(``,!0),g.readonly?(n(),r(d,{key:2,severity:`info`,message:`읽기 전용 상태입니다.`})):a(``,!0),g.dirty?(n(),r(d,{key:3,severity:`warning`,message:`저장되지 않은 변경사항이 있습니다.`})):a(``,!0),g.processing?(n(),r(d,{key:4,severity:`info`,message:`처리 중입니다. 중복 제출하지 마세요.`})):a(``,!0),e(l.$slots,`default`,{},void 0,!0)],64)),g.staleAt?(n(),c(`small`,h,`데이터 기준시각: `+t(g.staleAt),1)):a(``,!0)],8,f))}}),[[`__scopeId`,`data-v-fe977b8f`]]);export{g as t};