contentrain 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +4 -0
  2. package/dist/{activity-DP5wjWLV.mjs → activity-3JA0eECa.mjs} +2 -2
  3. package/dist/{branches-D_LPptfM.mjs → branches-g2vq3Ka-.mjs} +2 -2
  4. package/dist/{cdn-build-BuacuDbL.mjs → cdn-build-BT87QXnP.mjs} +2 -2
  5. package/dist/{cdn-init-CGl8-QCR.mjs → cdn-init-DU_kUt56.mjs} +2 -2
  6. package/dist/{connect-CKx-SfQ7.mjs → connect-BgrS9le_.mjs} +2 -2
  7. package/dist/index.mjs +10 -9
  8. package/dist/{login-yLBoeLVM.mjs → login-BBrpSIn2.mjs} +2 -2
  9. package/dist/{logout-DBm34b7e.mjs → logout-6UriBhYh.mjs} +1 -1
  10. package/dist/{merge-pPg9upjo.mjs → merge-CfnE33IP.mjs} +7 -1
  11. package/dist/reconcile-B69abfnm.mjs +154 -0
  12. package/dist/{resolve-context-DPdtEC0i.mjs → resolve-context-CczlaT6o.mjs} +1 -1
  13. package/dist/{serve-BbJlmK0r.mjs → serve-KyrZZLh4.mjs} +2 -2
  14. package/dist/serve-ui/assets/{AgentPromptGroup.vue_vue_type_script_setup_true_lang-DGijfAoG.js → AgentPromptGroup.vue_vue_type_script_setup_true_lang-aUmPXZcx.js} +1 -1
  15. package/dist/serve-ui/assets/{AppLayout-Cu18nQFJ.js → AppLayout-DDDJN8hd.js} +1 -1
  16. package/dist/serve-ui/assets/BranchDetailPage-DSCFVd50.js +17 -0
  17. package/dist/serve-ui/assets/{BranchesPage-hxZVqEWG.js → BranchesPage-BVmuLtHJ.js} +1 -1
  18. package/dist/serve-ui/assets/{CardContent.vue_vue_type_script_setup_true_lang-Wep4RMkj.js → CardContent.vue_vue_type_script_setup_true_lang-wzodQHah.js} +1 -1
  19. package/dist/serve-ui/assets/{CollapsibleTrigger.vue_vue_type_script_setup_true_lang-ClPT-9J4.js → CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C1wEA-d3.js} +1 -1
  20. package/dist/serve-ui/assets/{Collection-CvRfhUB7.js → Collection-Dyohp6vl.js} +1 -1
  21. package/dist/serve-ui/assets/ConfigProvider-Drzuc2zO.js +1 -0
  22. package/dist/serve-ui/assets/{ContentListPage-KrCopmD6.js → ContentListPage-DLul5bLF.js} +1 -1
  23. package/dist/serve-ui/assets/{ContentPage-RYWcjK9c.js → ContentPage-C88ixXsn.js} +1 -1
  24. package/dist/serve-ui/assets/{DashboardPage-B_M6WKld.js → DashboardPage-912g0zec.js} +1 -1
  25. package/dist/serve-ui/assets/{DialogTitle.vue_vue_type_script_setup_true_lang-VT8-tcWV.js → DialogTitle.vue_vue_type_script_setup_true_lang-De8dcLW1.js} +1 -1
  26. package/dist/serve-ui/assets/{DoctorPage-DMnd50Qe.js → DoctorPage-8KnO4Jfu.js} +1 -1
  27. package/dist/serve-ui/assets/{FormatReferencePage-8Y_dGr6K.js → FormatReferencePage-Br_KVDzu.js} +1 -1
  28. package/dist/serve-ui/assets/{Input.vue_vue_type_script_setup_true_lang-DTg5x_1H.js → Input.vue_vue_type_script_setup_true_lang-BKEszmi1.js} +1 -1
  29. package/dist/serve-ui/assets/{ModelDetailPage-3-G2J9oZ.js → ModelDetailPage-Dv1zkw9M.js} +1 -1
  30. package/dist/serve-ui/assets/{ModelsPage-7bZuwfxB.js → ModelsPage-oF-MdIjs.js} +1 -1
  31. package/dist/serve-ui/assets/NormalizePage-Dd5GQiVd.js +11 -0
  32. package/dist/serve-ui/assets/{PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js → PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js} +1 -1
  33. package/dist/serve-ui/assets/{Presence-CfATKqRO.js → Presence-CwTW6JV8.js} +1 -1
  34. package/dist/serve-ui/assets/{Separator.vue_vue_type_script_setup_true_lang-D-ZdYJPm.js → Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js} +1 -1
  35. package/dist/serve-ui/assets/{StudioHint.vue_vue_type_script_setup_true_lang-C_9M35tB.js → StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js} +1 -1
  36. package/dist/serve-ui/assets/{TrustBadge.vue_vue_type_script_setup_true_lang-CNzxpJIB.js → TrustBadge.vue_vue_type_script_setup_true_lang-CKSr5l6Z.js} +1 -1
  37. package/dist/serve-ui/assets/{ValidatePage-Ci8Njrjy.js → ValidatePage-CfGlf3r6.js} +1 -1
  38. package/dist/serve-ui/assets/{arrow-down-DuuSrZrX.js → arrow-down-k7y8IG0A.js} +1 -1
  39. package/dist/serve-ui/assets/{arrow-left-Dxkqq18_.js → arrow-left-Db-cyAsD.js} +1 -1
  40. package/dist/serve-ui/assets/{book-marked-BJCFfYPg.js → book-marked-Do-N1OrO.js} +1 -1
  41. package/dist/serve-ui/assets/{book-open-BrhESfqB.js → book-open-C5gyxyGy.js} +1 -1
  42. package/dist/serve-ui/assets/{box-DnDvmOFz.js → box-BP-1CTkM.js} +1 -1
  43. package/dist/serve-ui/assets/{chevron-down-DxPRdtQ2.js → chevron-down-DYr0P7tu.js} +1 -1
  44. package/dist/serve-ui/assets/{chevron-right-4fFpOcQY.js → chevron-right-DyOhl-vS.js} +1 -1
  45. package/dist/serve-ui/assets/{circle-alert-DHoba5Yl.js → circle-alert-CK5y4MwL.js} +1 -1
  46. package/dist/serve-ui/assets/{content-CUJS4qD7.js → content-CpU25d4T.js} +1 -1
  47. package/dist/serve-ui/assets/{database-DXeLd4fP.js → database-Yx3eEqcB.js} +1 -1
  48. package/dist/serve-ui/assets/{file-code-DAeYB6-U.js → file-code-BUzIo-9Q.js} +1 -1
  49. package/dist/serve-ui/assets/{file-text-CNkcFAch.js → file-text-Cb1CMf3W.js} +1 -1
  50. package/dist/serve-ui/assets/{git-branch-C8WJyunb.js → git-branch-BIn35AbU.js} +1 -1
  51. package/dist/serve-ui/assets/{git-merge-zRH3kO3U.js → git-merge-Kep8fChm.js} +1 -1
  52. package/dist/serve-ui/assets/{hash-CXM2KyoG.js → hash-CgFntI-_.js} +1 -1
  53. package/dist/serve-ui/assets/{index-ChZMsiq8.js → index-DRccbFO1.js} +2 -2
  54. package/dist/serve-ui/assets/{languages-DJeX1WoO.js → languages-CZzFhI1_.js} +1 -1
  55. package/dist/serve-ui/assets/{plus-BKiDA6K4.js → plus-DZbd3Qbv.js} +1 -1
  56. package/dist/serve-ui/assets/{project-CoRDn0ek.js → project-Qe0nJIFZ.js} +1 -1
  57. package/dist/serve-ui/assets/{scan-search-D5bwEyY7.js → scan-search-DgPppelD.js} +1 -1
  58. package/dist/serve-ui/assets/{settings-BmVCntIC.js → settings-BzrU1Pv6.js} +1 -1
  59. package/dist/serve-ui/assets/{shield-check-CiRjJIVW.js → shield-check-COBaQC43.js} +1 -1
  60. package/dist/serve-ui/assets/{stethoscope-B8Z0pam_.js → stethoscope-CF0BFg7y.js} +1 -1
  61. package/dist/serve-ui/assets/{trash-2-B_0ZPRjy.js → trash-2-CO6c5OwW.js} +1 -1
  62. package/dist/serve-ui/assets/useDirection-CfSipebM.js +1 -0
  63. package/dist/serve-ui/assets/{useId-D0eDf3m4.js → useId-D77Djrst.js} +1 -1
  64. package/dist/serve-ui/assets/{useNonce-CiRlnwG8.js → useNonce-B9x5H0aQ.js} +1 -1
  65. package/dist/serve-ui/assets/{useWatch-BEMqYN2q.js → useWatch-jK8PaHZV.js} +1 -1
  66. package/dist/serve-ui/index.html +1 -1
  67. package/dist/{server-Dsv_Afjl.mjs → server-BD2qBZB1.mjs} +15 -6
  68. package/dist/{status-BAQ8GFyN.mjs → status-BRo3eFxi.mjs} +2 -2
  69. package/dist/{status-DhhEDuTh.mjs → status-RzPLgczw.mjs} +14 -15
  70. package/dist/studio-CbILv2hl.mjs +24 -0
  71. package/dist/{submissions-JTtZXvcf.mjs → submissions-BDEURUE9.mjs} +2 -2
  72. package/dist/{usage-CC7Chuf6.mjs → usage-0MVnFzfq.mjs} +2 -2
  73. package/dist/{webhooks-C-D4zHq8.mjs → webhooks-CjQ03K_4.mjs} +2 -2
  74. package/dist/{whoami-D0ZYvnWU.mjs → whoami-JXOEA4vl.mjs} +1 -1
  75. package/package.json +4 -4
  76. package/dist/serve-ui/assets/BranchDetailPage-B5Zb4CWG.js +0 -17
  77. package/dist/serve-ui/assets/ConfigProvider-DPWUDqGh.js +0 -1
  78. package/dist/serve-ui/assets/NormalizePage-D1ACHOOk.js +0 -11
  79. package/dist/serve-ui/assets/useDirection-BO2bsovR.js +0 -1
  80. package/dist/studio-aKJw68fB.mjs +0 -24
  81. /package/dist/{client-CJsHr9Db.mjs → client-CaL6uO8q.mjs} +0 -0
  82. /package/dist/{demo-DP9ceYhe.mjs → demo-C8bRXPnQ.mjs} +0 -0
  83. /package/dist/{oauth-server-BSgPLV_2.mjs → oauth-server--RbeH3Ex.mjs} +0 -0
  84. /package/dist/{scaffold-irxW-vdX.mjs → scaffold-DfAeDGjo.mjs} +0 -0
  85. /package/dist/{setup-seyBYKIP.mjs → setup-B0fn4CI0.mjs} +0 -0
  86. /package/dist/{skills-X_wFbJXX.mjs → skills-DKI702Oz.mjs} +0 -0
  87. /package/dist/{validate-CBPJDGH4.mjs → validate-D3IhiwXy.mjs} +0 -0
@@ -1 +1 @@
1
- import{b as x,c as L,a as V,u as re}from"./useId-D0eDf3m4.js";import{h as Y,r as w,w as X,M as G,l as le,a as h,t as ue,f as g,u as r,o as m,b as y,e as v,m as C,k as U,a2 as ie,i as de,j as q,g as J,J as Q,K as Z,z as M,X as ce,q as fe,p as pe,y as ve}from"./index-ChZMsiq8.js";import{t as me,h as ye,i as ee,j as W,k as ge,e as _e,f as he,c as be,u as B,l as Ee,P as te}from"./Presence-CfATKqRO.js";import{P as T,r as K}from"./useWatch-BEMqYN2q.js";import{g as D}from"./getActiveElement-FUKBWQwh.js";import{g as Oe,D as Ce,T as De}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CNzxpJIB.js";import{i as we}from"./ConfigProvider-DPWUDqGh.js";const Be=ye(()=>{const e=w(new Map),o=w(),t=Y(()=>{for(const p of e.value.values())if(p)return!0;return!1}),s=we({scrollBody:w(!0)});let a=null;const f=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=o.value??"",W&&(a==null||a()),o.value=void 0};return X(t,(p,i)=>{var n;if(!ee)return;if(!p){i&&f();return}o.value===void 0&&(o.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},l=(n=s.scrollBody)!=null&&n.value?typeof s.scrollBody.value=="object"?Oe({padding:s.scrollBody.value.padding===!0?u:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?u:s.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof l.padding=="number"?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin=="number"?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),W&&(a=ge(document,"touchmove",c=>Ae(c),{passive:!1})),G(()=>{t.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Fe(e){const o=Math.random().toString(36).substring(2,7),t=Be();t.value.set(o,e??!1);const s=Y({get:()=>t.value.get(o)??!1,set:a=>t.value.set(o,a)});return me(()=>{t.value.delete(o)}),s}function oe(e){const o=window.getComputedStyle(e);if(o.overflowX==="scroll"||o.overflowY==="scroll"||o.overflowX==="auto"&&e.clientWidth<e.scrollWidth||o.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(t instanceof Element)||t.tagName==="BODY"?!1:oe(t)}}function Ae(e){const o=e||window.event,t=o.target;return t instanceof Element&&oe(t)?!1:o.touches.length>1?!0:(o.preventDefault&&o.cancelable&&o.preventDefault(),!1)}var Pe=function(e){if(typeof document>"u")return null;var o=Array.isArray(e)?e[0]:e;return o.ownerDocument.body},S=new WeakMap,k=new WeakMap,I={},$=0,se=function(e){return e&&(e.host||se(e.parentNode))},Se=function(e,o){return o.map(function(t){if(e.contains(t))return t;var s=se(t);return s&&e.contains(s)?s:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},qe=function(e,o,t,s){var a=Se(o,Array.isArray(e)?e:[e]);I[t]||(I[t]=new WeakMap);var f=I[t],p=[],i=new Set,u=new Set(a),d=function(n){!n||i.has(n)||(i.add(n),d(n.parentNode))};a.forEach(d);var l=function(n){!n||u.has(n)||Array.prototype.forEach.call(n.children,function(c){if(i.has(c))l(c);else try{var _=c.getAttribute(s),b=_!==null&&_!=="false",E=(S.get(c)||0)+1,O=(f.get(c)||0)+1;S.set(c,E),f.set(c,O),p.push(c),E===1&&b&&k.set(c,!0),O===1&&c.setAttribute(t,"true"),b||c.setAttribute(s,"true")}catch(F){console.error("aria-hidden: cannot operate on ",c,F)}})};return l(o),i.clear(),$++,function(){p.forEach(function(n){var c=S.get(n)-1,_=f.get(n)-1;S.set(n,c),f.set(n,_),c||(k.has(n)||n.removeAttribute(s),k.delete(n)),_||n.removeAttribute(t)}),$--,$||(S=new WeakMap,S=new WeakMap,k=new WeakMap,I={})}},ke=function(e,o,t){t===void 0&&(t="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=Pe(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),qe(s,a,t,"aria-hidden")):function(){return null}};function Ie(e){let o;X(()=>_e(e),t=>{let s=!1;try{s=!!(t!=null&&t.closest("[popover]:not(:popover-open)"))}catch{}t&&!s?o=ke(t):o&&o()}),le(()=>{o&&o()})}const[P,Me]=be("DialogRoot");var Te=h({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:o}){const t=e,a=he(t,"open",o,{defaultValue:t.defaultOpen,passive:t.open===void 0}),f=w(),p=w(),{modal:i}=ue(t);return Me({open:a,modal:i,openModal:()=>{a.value=!0},onOpenChange:u=>{a.value=u},onOpenToggle:()=>{a.value=!a.value},contentId:"",titleId:"",descriptionId:"",triggerElement:f,contentElement:p}),(u,d)=>g(u.$slots,"default",{open:r(a),close:()=>a.value=!1})}}),$e=Te,Re=h({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const o=e;B();const t=P();return(s,a)=>(m(),y(r(T),C(o,{type:s.as==="button"?"button":void 0,onClick:a[0]||(a[0]=f=>r(t).onOpenChange(!1))}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["type"]))}}),Ne=Re;const Le=Ee(()=>w([]));function Ke(){const e=Le();return{add(o){const t=e.value[0];o!==t&&(t==null||t.pause()),e.value=j(e.value,o),e.value.unshift(o)},remove(o){var t;e.value=j(e.value,o),(t=e.value[0])==null||t.resume()}}}function j(e,o){const t=[...e],s=t.indexOf(o);return s!==-1&&t.splice(s,1),t}const R="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0};function xe(e,{select:o=!1}={}){const t=D();for(const s of e)if(A(s,{select:o}),D()!==t)return!0}function Ue(e){const o=ae(e),t=H(o,e),s=H(o.reverse(),e);return[t,s]}function ae(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function H(e,o){for(const t of e)if(!We(t,{upTo:o}))return t}function We(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function je(e){return e instanceof HTMLInputElement&&"select"in e}function A(e,{select:o=!1}={}){if(e&&e.focus){const t=D();e.focus({preventScroll:!0}),e!==t&&je(e)&&o&&e.select()}}var ze=h({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:o}){const t=e,s=o,{currentRef:a,currentElement:f}=B(),p=w(null),i=Ke(),u=ie({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});U(l=>{if(!ee)return;const n=f.value;if(!t.trapped)return;function c(O){if(u.paused||!n)return;const F=O.target;n.contains(F)?p.value=F:A(p.value,{select:!0})}function _(O){if(u.paused||!n)return;const F=O.relatedTarget;F!==null&&(n.contains(F)||A(p.value,{select:!0}))}function b(O){n.contains(p.value)||A(n)}document.addEventListener("focusin",c),document.addEventListener("focusout",_);const E=new MutationObserver(b);n&&E.observe(n,{childList:!0,subtree:!0}),l(()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",_),E.disconnect()})}),U(async l=>{const n=f.value;if(await G(),!n)return;i.add(u);const c=D();if(!n.contains(c)){const b=new CustomEvent(R,z);n.addEventListener(R,E=>s("mountAutoFocus",E)),n.dispatchEvent(b),b.defaultPrevented||(xe(ae(n),{select:!0}),D()===c&&A(n))}l(()=>{n.removeEventListener(R,O=>s("mountAutoFocus",O));const b=new CustomEvent(N,z),E=O=>{s("unmountAutoFocus",O)};n.addEventListener(N,E),n.dispatchEvent(b),setTimeout(()=>{b.defaultPrevented||A(c??document.body,{select:!0}),n.removeEventListener(N,E),i.remove(u)},0)})});function d(l){if(!t.loop&&!t.trapped||u.paused)return;const n=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,c=D();if(n&&c){const _=l.currentTarget,[b,E]=Ue(_);b&&E?!l.shiftKey&&c===E?(l.preventDefault(),t.loop&&A(b,{select:!0})):l.shiftKey&&c===b&&(l.preventDefault(),t.loop&&A(E,{select:!0})):c===_&&l.preventDefault()}}return(l,n)=>(m(),y(r(T),{ref_key:"currentRef",ref:a,tabindex:"-1","as-child":l.asChild,as:l.as,onKeydown:d},{default:v(()=>[g(l.$slots,"default")]),_:3},8,["as-child","as"]))}}),He=ze;function Ve(e){return e?"open":"closed"}function gt(e){const o=D();for(const t of e)if(t===o||(t.focus(),D()!==o))return}var Ye=h({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),{forwardRef:f,currentElement:p}=B();return a.titleId||(a.titleId=x(void 0,"reka-dialog-title")),a.descriptionId||(a.descriptionId=x(void 0,"reka-dialog-description")),de(()=>{a.contentElement=p,D()!==document.body&&(a.triggerElement.value=D())}),(i,u)=>(m(),y(r(He),{"as-child":"",loop:"",trapped:t.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>s("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>s("closeAutoFocus",d))},{default:v(()=>[q(r(Ce),C({id:r(a).contentId,ref:r(f),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":r(a).descriptionId,"aria-labelledby":r(a).titleId,"data-state":r(Ve)(r(a).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=d=>r(a).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=d=>s("escapeKeyDown",d)),onFocusOutside:u[2]||(u[2]=d=>s("focusOutside",d)),onInteractOutside:u[3]||(u[3]=d=>s("interactOutside",d)),onPointerDownOutside:u[4]||(u[4]=d=>s("pointerDownOutside",d))}),{default:v(()=>[g(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),ne=Ye,Xe=h({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),f=L(s),{forwardRef:p,currentElement:i}=B();return Ie(i),(u,d)=>(m(),y(ne,C({...t,...r(f)},{ref:r(p),"trap-focus":r(a).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=l=>{var n;l.defaultPrevented||(l.preventDefault(),(n=r(a).triggerElement.value)==null||n.focus())}),onPointerDownOutside:d[1]||(d[1]=l=>{const n=l.detail.originalEvent,c=n.button===0&&n.ctrlKey===!0;(n.button===2||c)&&l.preventDefault()}),onFocusOutside:d[2]||(d[2]=l=>{l.preventDefault()})}),{default:v(()=>[g(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),Ge=Xe,Je=h({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,a=L(o);B();const f=P(),p=w(!1),i=w(!1);return(u,d)=>(m(),y(ne,C({...t,...r(a)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=l=>{var n;l.defaultPrevented||(p.value||(n=r(f).triggerElement.value)==null||n.focus(),l.preventDefault()),p.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=l=>{var _;l.defaultPrevented||(p.value=!0,l.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const n=l.target;((_=r(f).triggerElement.value)==null?void 0:_.contains(n))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.value&&l.preventDefault()})}),{default:v(()=>[g(u.$slots,"default")]),_:3},16))}}),Qe=Je,Ze=h({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),f=L(s),{forwardRef:p}=B();return(i,u)=>(m(),y(r(te),{present:i.forceMount||r(a).open.value},{default:v(()=>[r(a).modal.value?(m(),y(Ge,C({key:0,ref:r(p)},{...t,...r(f),...i.$attrs}),{default:v(()=>[g(i.$slots,"default")]),_:3},16)):(m(),y(Qe,C({key:1,ref:r(p)},{...t,...r(f),...i.$attrs}),{default:v(()=>[g(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),et=Ze,tt=h({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const o=P();return Fe(!0),B(),(t,s)=>(m(),y(r(T),{as:t.as,"as-child":t.asChild,"data-state":r(o).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:v(()=>[g(t.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),ot=tt,st=h({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const o=P(),{forwardRef:t}=B();return(s,a)=>{var f;return(f=r(o))!=null&&f.modal.value?(m(),y(r(te),{key:0,present:s.forceMount||r(o).open.value},{default:v(()=>[q(ot,C(s.$attrs,{ref:r(t),as:s.as,"as-child":s.asChild}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):J("v-if",!0)}}}),at=st,nt=h({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const o=e;return(t,s)=>(m(),y(r(De),Q(Z(o)),{default:v(()=>[g(t.$slots,"default")]),_:3},16))}}),rt=nt,lt=h({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const o=e,t=P();return B(),(s,a)=>(m(),y(r(T),C(o,{id:r(t).titleId}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["id"]))}}),ut=lt;const _t=h({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:o}){const a=V(e,o);return(f,p)=>(m(),y(r($e),C({"data-slot":"dialog"},r(a)),{default:v(i=>[g(f.$slots,"default",Q(Z(i)))]),_:3},16))}}),it=h({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e,t=K(o,"class");return(s,a)=>(m(),y(r(at),C({"data-slot":"dialog-overlay"},r(t),{class:r(M)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",o.class)}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["class"]))}}),ht=h({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=K(t,"class"),f=V(a,s);return(p,i)=>(m(),y(r(rt),null,{default:v(()=>[q(it),q(r(et),C({"data-slot":"dialog-content"},{...p.$attrs,...r(f)},{class:r(M)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class)}),{default:v(()=>[g(p.$slots,"default"),e.showCloseButton?(m(),y(r(Ne),{key:0,"data-slot":"dialog-close",class:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},{default:v(()=>[q(r(ce)),i[0]||(i[0]=fe("span",{class:"sr-only"},"Close",-1))]),_:1})):J("",!0)]),_:3},16,["class"])]),_:3}))}}),bt=h({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e;return(t,s)=>(m(),pe("div",{"data-slot":"dialog-header",class:ve(r(M)("flex flex-col gap-2 text-center sm:text-left",o.class))},[g(t.$slots,"default")],2))}}),Et=h({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e,t=K(o,"class"),s=re(t);return(a,f)=>(m(),y(r(ut),C({"data-slot":"dialog-title"},r(s),{class:r(M)("text-lg leading-none font-semibold",o.class)}),{default:v(()=>[g(a.$slots,"default")]),_:3},16,["class"]))}});export{Ne as D,He as F,_t as _,Ie as a,ht as b,bt as c,Et as d,gt as f,P as i,Fe as u};
1
+ import{b as x,c as L,a as V,u as re}from"./useId-D77Djrst.js";import{h as Y,r as w,w as X,M as G,l as le,a as h,t as ue,f as g,u as r,o as m,b as y,e as v,m as C,k as U,a2 as ie,i as de,j as q,g as J,J as Q,K as Z,z as M,X as ce,q as fe,p as pe,y as ve}from"./index-DRccbFO1.js";import{t as me,h as ye,i as ee,j as W,k as ge,e as _e,f as he,c as be,u as B,l as Ee,P as te}from"./Presence-CwTW6JV8.js";import{P as T,r as K}from"./useWatch-jK8PaHZV.js";import{g as D}from"./getActiveElement-FUKBWQwh.js";import{g as Oe,D as Ce,T as De}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CKSr5l6Z.js";import{i as we}from"./ConfigProvider-Drzuc2zO.js";const Be=ye(()=>{const e=w(new Map),o=w(),t=Y(()=>{for(const p of e.value.values())if(p)return!0;return!1}),s=we({scrollBody:w(!0)});let a=null;const f=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=o.value??"",W&&(a==null||a()),o.value=void 0};return X(t,(p,i)=>{var n;if(!ee)return;if(!p){i&&f();return}o.value===void 0&&(o.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},l=(n=s.scrollBody)!=null&&n.value?typeof s.scrollBody.value=="object"?Oe({padding:s.scrollBody.value.padding===!0?u:s.scrollBody.value.padding,margin:s.scrollBody.value.margin===!0?u:s.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof l.padding=="number"?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin=="number"?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),W&&(a=ge(document,"touchmove",c=>Ae(c),{passive:!1})),G(()=>{t.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Fe(e){const o=Math.random().toString(36).substring(2,7),t=Be();t.value.set(o,e??!1);const s=Y({get:()=>t.value.get(o)??!1,set:a=>t.value.set(o,a)});return me(()=>{t.value.delete(o)}),s}function oe(e){const o=window.getComputedStyle(e);if(o.overflowX==="scroll"||o.overflowY==="scroll"||o.overflowX==="auto"&&e.clientWidth<e.scrollWidth||o.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(t instanceof Element)||t.tagName==="BODY"?!1:oe(t)}}function Ae(e){const o=e||window.event,t=o.target;return t instanceof Element&&oe(t)?!1:o.touches.length>1?!0:(o.preventDefault&&o.cancelable&&o.preventDefault(),!1)}var Pe=function(e){if(typeof document>"u")return null;var o=Array.isArray(e)?e[0]:e;return o.ownerDocument.body},S=new WeakMap,k=new WeakMap,I={},$=0,se=function(e){return e&&(e.host||se(e.parentNode))},Se=function(e,o){return o.map(function(t){if(e.contains(t))return t;var s=se(t);return s&&e.contains(s)?s:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},qe=function(e,o,t,s){var a=Se(o,Array.isArray(e)?e:[e]);I[t]||(I[t]=new WeakMap);var f=I[t],p=[],i=new Set,u=new Set(a),d=function(n){!n||i.has(n)||(i.add(n),d(n.parentNode))};a.forEach(d);var l=function(n){!n||u.has(n)||Array.prototype.forEach.call(n.children,function(c){if(i.has(c))l(c);else try{var _=c.getAttribute(s),b=_!==null&&_!=="false",E=(S.get(c)||0)+1,O=(f.get(c)||0)+1;S.set(c,E),f.set(c,O),p.push(c),E===1&&b&&k.set(c,!0),O===1&&c.setAttribute(t,"true"),b||c.setAttribute(s,"true")}catch(F){console.error("aria-hidden: cannot operate on ",c,F)}})};return l(o),i.clear(),$++,function(){p.forEach(function(n){var c=S.get(n)-1,_=f.get(n)-1;S.set(n,c),f.set(n,_),c||(k.has(n)||n.removeAttribute(s),k.delete(n)),_||n.removeAttribute(t)}),$--,$||(S=new WeakMap,S=new WeakMap,k=new WeakMap,I={})}},ke=function(e,o,t){t===void 0&&(t="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),a=Pe(e);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live], script"))),qe(s,a,t,"aria-hidden")):function(){return null}};function Ie(e){let o;X(()=>_e(e),t=>{let s=!1;try{s=!!(t!=null&&t.closest("[popover]:not(:popover-open)"))}catch{}t&&!s?o=ke(t):o&&o()}),le(()=>{o&&o()})}const[P,Me]=be("DialogRoot");var Te=h({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:o}){const t=e,a=he(t,"open",o,{defaultValue:t.defaultOpen,passive:t.open===void 0}),f=w(),p=w(),{modal:i}=ue(t);return Me({open:a,modal:i,openModal:()=>{a.value=!0},onOpenChange:u=>{a.value=u},onOpenToggle:()=>{a.value=!a.value},contentId:"",titleId:"",descriptionId:"",triggerElement:f,contentElement:p}),(u,d)=>g(u.$slots,"default",{open:r(a),close:()=>a.value=!1})}}),$e=Te,Re=h({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const o=e;B();const t=P();return(s,a)=>(m(),y(r(T),C(o,{type:s.as==="button"?"button":void 0,onClick:a[0]||(a[0]=f=>r(t).onOpenChange(!1))}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["type"]))}}),Ne=Re;const Le=Ee(()=>w([]));function Ke(){const e=Le();return{add(o){const t=e.value[0];o!==t&&(t==null||t.pause()),e.value=j(e.value,o),e.value.unshift(o)},remove(o){var t;e.value=j(e.value,o),(t=e.value[0])==null||t.resume()}}}function j(e,o){const t=[...e],s=t.indexOf(o);return s!==-1&&t.splice(s,1),t}const R="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0};function xe(e,{select:o=!1}={}){const t=D();for(const s of e)if(A(s,{select:o}),D()!==t)return!0}function Ue(e){const o=ae(e),t=H(o,e),s=H(o.reverse(),e);return[t,s]}function ae(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function H(e,o){for(const t of e)if(!We(t,{upTo:o}))return t}function We(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function je(e){return e instanceof HTMLInputElement&&"select"in e}function A(e,{select:o=!1}={}){if(e&&e.focus){const t=D();e.focus({preventScroll:!0}),e!==t&&je(e)&&o&&e.select()}}var ze=h({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:o}){const t=e,s=o,{currentRef:a,currentElement:f}=B(),p=w(null),i=Ke(),u=ie({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});U(l=>{if(!ee)return;const n=f.value;if(!t.trapped)return;function c(O){if(u.paused||!n)return;const F=O.target;n.contains(F)?p.value=F:A(p.value,{select:!0})}function _(O){if(u.paused||!n)return;const F=O.relatedTarget;F!==null&&(n.contains(F)||A(p.value,{select:!0}))}function b(O){n.contains(p.value)||A(n)}document.addEventListener("focusin",c),document.addEventListener("focusout",_);const E=new MutationObserver(b);n&&E.observe(n,{childList:!0,subtree:!0}),l(()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",_),E.disconnect()})}),U(async l=>{const n=f.value;if(await G(),!n)return;i.add(u);const c=D();if(!n.contains(c)){const b=new CustomEvent(R,z);n.addEventListener(R,E=>s("mountAutoFocus",E)),n.dispatchEvent(b),b.defaultPrevented||(xe(ae(n),{select:!0}),D()===c&&A(n))}l(()=>{n.removeEventListener(R,O=>s("mountAutoFocus",O));const b=new CustomEvent(N,z),E=O=>{s("unmountAutoFocus",O)};n.addEventListener(N,E),n.dispatchEvent(b),setTimeout(()=>{b.defaultPrevented||A(c??document.body,{select:!0}),n.removeEventListener(N,E),i.remove(u)},0)})});function d(l){if(!t.loop&&!t.trapped||u.paused)return;const n=l.key==="Tab"&&!l.altKey&&!l.ctrlKey&&!l.metaKey,c=D();if(n&&c){const _=l.currentTarget,[b,E]=Ue(_);b&&E?!l.shiftKey&&c===E?(l.preventDefault(),t.loop&&A(b,{select:!0})):l.shiftKey&&c===b&&(l.preventDefault(),t.loop&&A(E,{select:!0})):c===_&&l.preventDefault()}}return(l,n)=>(m(),y(r(T),{ref_key:"currentRef",ref:a,tabindex:"-1","as-child":l.asChild,as:l.as,onKeydown:d},{default:v(()=>[g(l.$slots,"default")]),_:3},8,["as-child","as"]))}}),He=ze;function Ve(e){return e?"open":"closed"}function gt(e){const o=D();for(const t of e)if(t===o||(t.focus(),D()!==o))return}var Ye=h({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),{forwardRef:f,currentElement:p}=B();return a.titleId||(a.titleId=x(void 0,"reka-dialog-title")),a.descriptionId||(a.descriptionId=x(void 0,"reka-dialog-description")),de(()=>{a.contentElement=p,D()!==document.body&&(a.triggerElement.value=D())}),(i,u)=>(m(),y(r(He),{"as-child":"",loop:"",trapped:t.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>s("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>s("closeAutoFocus",d))},{default:v(()=>[q(r(Ce),C({id:r(a).contentId,ref:r(f),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":r(a).descriptionId,"aria-labelledby":r(a).titleId,"data-state":r(Ve)(r(a).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=d=>r(a).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=d=>s("escapeKeyDown",d)),onFocusOutside:u[2]||(u[2]=d=>s("focusOutside",d)),onInteractOutside:u[3]||(u[3]=d=>s("interactOutside",d)),onPointerDownOutside:u[4]||(u[4]=d=>s("pointerDownOutside",d))}),{default:v(()=>[g(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),ne=Ye,Xe=h({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),f=L(s),{forwardRef:p,currentElement:i}=B();return Ie(i),(u,d)=>(m(),y(ne,C({...t,...r(f)},{ref:r(p),"trap-focus":r(a).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=l=>{var n;l.defaultPrevented||(l.preventDefault(),(n=r(a).triggerElement.value)==null||n.focus())}),onPointerDownOutside:d[1]||(d[1]=l=>{const n=l.detail.originalEvent,c=n.button===0&&n.ctrlKey===!0;(n.button===2||c)&&l.preventDefault()}),onFocusOutside:d[2]||(d[2]=l=>{l.preventDefault()})}),{default:v(()=>[g(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),Ge=Xe,Je=h({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,a=L(o);B();const f=P(),p=w(!1),i=w(!1);return(u,d)=>(m(),y(ne,C({...t,...r(a)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=l=>{var n;l.defaultPrevented||(p.value||(n=r(f).triggerElement.value)==null||n.focus(),l.preventDefault()),p.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=l=>{var _;l.defaultPrevented||(p.value=!0,l.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const n=l.target;((_=r(f).triggerElement.value)==null?void 0:_.contains(n))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.value&&l.preventDefault()})}),{default:v(()=>[g(u.$slots,"default")]),_:3},16))}}),Qe=Je,Ze=h({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=P(),f=L(s),{forwardRef:p}=B();return(i,u)=>(m(),y(r(te),{present:i.forceMount||r(a).open.value},{default:v(()=>[r(a).modal.value?(m(),y(Ge,C({key:0,ref:r(p)},{...t,...r(f),...i.$attrs}),{default:v(()=>[g(i.$slots,"default")]),_:3},16)):(m(),y(Qe,C({key:1,ref:r(p)},{...t,...r(f),...i.$attrs}),{default:v(()=>[g(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),et=Ze,tt=h({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const o=P();return Fe(!0),B(),(t,s)=>(m(),y(r(T),{as:t.as,"as-child":t.asChild,"data-state":r(o).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:v(()=>[g(t.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),ot=tt,st=h({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const o=P(),{forwardRef:t}=B();return(s,a)=>{var f;return(f=r(o))!=null&&f.modal.value?(m(),y(r(te),{key:0,present:s.forceMount||r(o).open.value},{default:v(()=>[q(ot,C(s.$attrs,{ref:r(t),as:s.as,"as-child":s.asChild}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):J("v-if",!0)}}}),at=st,nt=h({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const o=e;return(t,s)=>(m(),y(r(De),Q(Z(o)),{default:v(()=>[g(t.$slots,"default")]),_:3},16))}}),rt=nt,lt=h({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const o=e,t=P();return B(),(s,a)=>(m(),y(r(T),C(o,{id:r(t).titleId}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["id"]))}}),ut=lt;const _t=h({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:o}){const a=V(e,o);return(f,p)=>(m(),y(r($e),C({"data-slot":"dialog"},r(a)),{default:v(i=>[g(f.$slots,"default",Q(Z(i)))]),_:3},16))}}),it=h({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e,t=K(o,"class");return(s,a)=>(m(),y(r(at),C({"data-slot":"dialog-overlay"},r(t),{class:r(M)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",o.class)}),{default:v(()=>[g(s.$slots,"default")]),_:3},16,["class"]))}}),ht=h({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:o}){const t=e,s=o,a=K(t,"class"),f=V(a,s);return(p,i)=>(m(),y(r(rt),null,{default:v(()=>[q(it),q(r(et),C({"data-slot":"dialog-content"},{...p.$attrs,...r(f)},{class:r(M)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class)}),{default:v(()=>[g(p.$slots,"default"),e.showCloseButton?(m(),y(r(Ne),{key:0,"data-slot":"dialog-close",class:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},{default:v(()=>[q(r(ce)),i[0]||(i[0]=fe("span",{class:"sr-only"},"Close",-1))]),_:1})):J("",!0)]),_:3},16,["class"])]),_:3}))}}),bt=h({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e;return(t,s)=>(m(),pe("div",{"data-slot":"dialog-header",class:ve(r(M)("flex flex-col gap-2 text-center sm:text-left",o.class))},[g(t.$slots,"default")],2))}}),Et=h({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const o=e,t=K(o,"class"),s=re(t);return(a,f)=>(m(),y(r(ut),C({"data-slot":"dialog-title"},r(s),{class:r(M)("text-lg leading-none font-semibold",o.class)}),{default:v(()=>[g(a.$slots,"default")]),_:3},16,["class"]))}});export{Ne as D,He as F,_t as _,Ie as a,ht as b,bt as c,Et as d,gt as f,P as i,Fe as u};
@@ -1 +1 @@
1
- import{d as J,_ as x}from"./useWatch-BEMqYN2q.js";import{_ as Q,a as P}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{_ as R}from"./StudioHint.vue_vue_type_script_setup_true_lang-C_9M35tB.js";import{_ as m,c as S,a as A,b as I}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-ClPT-9J4.js";import{a as X,i as Y,p as u,j as a,e as o,u as e,q as t,L as T,g as c,b as _,B as s,r as w,h as y,o as n,s as f,a9 as q,S as z,Z as ee,F as $,x as j,A as te,y as C,z as se}from"./index-ChZMsiq8.js";import{_ as k}from"./CardContent.vue_vue_type_script_setup_true_lang-Wep4RMkj.js";import{_ as N}from"./Separator.vue_vue_type_script_setup_true_lang-D-ZdYJPm.js";import{u as ae}from"./project-CoRDn0ek.js";import{S as E}from"./stethoscope-B8Z0pam_.js";import{C as M}from"./circle-alert-DHoba5Yl.js";import{C as U}from"./chevron-down-DxPRdtQ2.js";import"./useId-D0eDf3m4.js";import"./Presence-CfATKqRO.js";const le={class:"px-6 py-6 space-y-6"},oe={class:"text-sm"},ne={class:"font-medium"},ie={class:"text-muted-foreground text-xs"},re={key:0,class:"flex justify-center py-12"},de={key:1,class:"grid grid-cols-2 gap-3 lg:grid-cols-4"},ue={class:"flex size-10 items-center justify-center rounded-lg bg-status-success/10"},ce={class:"text-2xl font-bold tabular-nums"},me={class:"text-xs text-muted-foreground"},_e={class:"flex size-10 items-center justify-center rounded-lg bg-status-error/10"},fe={class:"text-2xl font-bold tabular-nums"},ve={class:"text-xs text-muted-foreground"},pe={class:"flex size-10 items-center justify-center rounded-lg bg-status-warning/10"},xe={class:"text-2xl font-bold tabular-nums"},ge={class:"text-xs text-muted-foreground"},ye={class:"flex size-10 items-center justify-center rounded-lg bg-muted"},he={class:"text-xs"},be={key:0,class:"font-medium"},we={key:1,class:"font-medium text-status-error"},ze={key:2,class:"text-muted-foreground"},ke={class:"px-4 py-3 border-b border-border flex items-center gap-2"},$e={class:"font-medium text-sm"},je={class:"divide-y divide-border"},Ce={class:"flex-1 min-w-0"},Ke={class:"flex items-center gap-2 flex-wrap"},Ve={class:"font-medium text-sm"},Le={class:"mt-1.5 text-sm text-muted-foreground wrap-break-word"},Be={class:"flex items-center gap-3"},De={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Se={class:"font-medium text-sm"},Ae={class:"divide-y divide-border"},Ie={class:"text-muted-foreground shrink-0"},Ne={class:"truncate"},Ue={key:0,class:"p-3 text-xs text-muted-foreground italic"},Fe={class:"flex items-center gap-3"},Oe={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Pe={class:"font-medium text-sm"},Te={class:"divide-y divide-border"},qe={class:"flex items-center gap-2 font-mono"},Ee={class:"text-muted-foreground"},Me={class:"truncate italic"},We={class:"pl-4 text-muted-foreground mt-1"},Ze={key:0,class:"p-3 text-xs text-muted-foreground italic"},Ge={class:"flex items-center gap-3"},He={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Je={class:"font-medium text-sm"},Qe={class:"divide-y divide-border"},Re={class:"text-muted-foreground shrink-0"},Xe={class:"truncate"},Ye={class:"text-muted-foreground ml-auto"},et={key:0,class:"p-3 text-xs text-muted-foreground italic"},tt={key:6,class:"flex flex-col items-center py-16 text-center"},st={class:"flex size-20 items-center justify-center rounded-full bg-muted mb-4"},at={class:"text-xl font-semibold"},lt={class:"mt-2 text-sm text-muted-foreground max-w-sm"},yt=X({__name:"DoctorPage",setup(ot){const F=ae(),i=J("serve-ui-texts").locale("en").get(),g=w(!1),h=w(!1),K=w(!0),V=w(!0),L=w(!0),b=y(()=>F.doctor),B=y(()=>{var r;return((r=b.value)==null?void 0:r.checks)??[]}),v=y(()=>{var r;return(r=b.value)==null?void 0:r.summary}),d=y(()=>{var r;return(r=b.value)==null?void 0:r.usage}),W=y(()=>{var r;return(((r=v.value)==null?void 0:r.failed)??0)>0}),Z=y(()=>{var r;return(((r=v.value)==null?void 0:r.warnings)??0)>0});async function O(){g.value=!0;try{await F.fetchDoctor({usage:h.value})}finally{g.value=!1}}function G(r){return r.pass?q:r.severity==="warning"?z:M}function H(r){return r.pass?"text-status-success":r.severity==="warning"?"text-status-warning":"text-status-error"}return Y(()=>{O()}),(r,p)=>(n(),u("div",null,[a(Q,{title:e(i)["doctor.title"],description:e(i)["doctor.subtitle"]},{actions:o(()=>[a(e(P),{disabled:g.value,size:"sm",onClick:O},{default:o(()=>[g.value?(n(),_(e(T),{key:0,class:"mr-1 size-4 animate-spin"})):(n(),_(e(E),{key:1,class:"mr-1 size-4"})),f(" "+s(e(i)["dashboard.run"]),1)]),_:1},8,["disabled"])]),_:1},8,["title","description"]),t("div",le,[a(e(m),null,{default:o(()=>[a(e(k),{class:"flex items-center justify-between gap-4 p-4"},{default:o(()=>[t("div",oe,[t("div",ne,s(e(i)["doctor.usage-toggle-label"]),1),t("div",ie,s(e(i)["doctor.usage-toggle-description"]),1)]),a(e(P),{variant:h.value?"default":"outline",size:"sm",onClick:p[0]||(p[0]=l=>h.value=!h.value)},{default:o(()=>[f(s(h.value?e(i)["common.on"]:e(i)["common.off"]),1)]),_:1},8,["variant"])]),_:1})]),_:1}),g.value&&!b.value?(n(),u("div",re,[a(e(T),{class:"size-6 animate-spin text-primary"})])):c("",!0),v.value?(n(),u("div",de,[a(e(m),{class:"border-status-success/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",ue,[a(e(q),{class:"size-5 text-status-success"})]),t("div",null,[t("div",ce,s(v.value.passed),1),t("div",me,s(v.value.total)+" "+s(e(i)["dashboard.total"]),1)])]),_:1})]),_:1}),a(e(m),{class:"border-status-error/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",_e,[a(e(M),{class:"size-5 text-status-error"})]),t("div",null,[t("div",fe,s(v.value.failed),1),t("div",ve,s(e(i)["validate.errors"]),1)])]),_:1})]),_:1}),a(e(m),{class:"border-status-warning/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",pe,[a(e(z),{class:"size-5 text-status-warning"})]),t("div",null,[t("div",xe,s(v.value.warnings),1),t("div",ge,s(e(i)["trust-badge.warnings"]),1)])]),_:1})]),_:1}),a(e(m),null,{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",ye,[a(e(ee),{class:"size-5 text-muted-foreground"})]),t("div",he,[W.value?(n(),u("div",we,s(v.value.failed)+" "+s(e(i)["doctor.summary-failed-suffix"]),1)):(n(),u("div",be,s(e(i)["validate.all-checks-passed"]),1)),Z.value?(n(),u("div",ze,s(e(i)["doctor.summary-review-below"]),1)):c("",!0)])]),_:1})]),_:1})])):c("",!0),B.value.length>0?(n(),_(e(m),{key:2},{default:o(()=>[t("div",ke,[t("span",$e,s(e(i)["doctor.checks-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(B.value.length),1)]),_:1})]),t("div",je,[(n(!0),u($,null,j(B.value,(l,D)=>(n(),u("div",{key:`${l.name}-${D}`,class:"flex items-start gap-3 p-4"},[(n(),_(te(G(l)),{class:C(e(se)("mt-0.5 size-4 shrink-0",H(l)))},null,8,["class"])),t("div",Ce,[t("div",Ke,[t("span",Ve,s(l.name),1),!l.pass&&l.severity==="warning"?(n(),_(e(x),{key:0,variant:"outline",class:"text-[10px] uppercase border-status-warning/50 text-status-warning"},{default:o(()=>[f(s(e(i)["doctor.warning-label"]),1)]),_:1})):c("",!0),!l.pass&&(l.severity==="error"||!l.severity)?(n(),_(e(x),{key:1,variant:"destructive",class:"text-[10px] uppercase"},{default:o(()=>[f(s(e(i)["doctor.error-label"]),1)]),_:1})):c("",!0)]),t("p",Le,s(l.detail),1)])]))),128))])]),_:1})):c("",!0),d.value&&d.value.unusedKeys.length>0?(n(),_(e(S),{key:3,open:K.value,"onUpdate:open":p[1]||(p[1]=l=>K.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Be,[t("div",De,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Se,s(e(i)["doctor.unused-keys-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.unusedKeys.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",K.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Ae,[(n(!0),u($,null,j(d.value.unusedKeys.slice(0,50),l=>(n(),u("div",{key:`${l.model}-${l.key}-${l.locale}`,class:"flex items-center gap-3 p-3 text-xs font-mono"},[t("span",Ie,s(l.model),1),t("span",Ne,s(l.key),1),a(e(x),{variant:"outline",class:"text-[10px] ml-auto"},{default:o(()=>[f(s(l.locale),1)]),_:2},1024)]))),128)),d.value.unusedKeys.length>50?(n(),u("div",Ue," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.unusedKeys.length-50)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),d.value&&d.value.duplicateValues.length>0?(n(),_(e(S),{key:4,open:V.value,"onUpdate:open":p[2]||(p[2]=l=>V.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Fe,[t("div",Oe,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Pe,s(e(i)["doctor.duplicate-values-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.duplicateValues.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",V.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Te,[(n(!0),u($,null,j(d.value.duplicateValues.slice(0,20),(l,D)=>(n(),u("div",{key:`${l.model}-${l.locale}-${D}`,class:"p-3 text-xs"},[t("div",qe,[t("span",Ee,s(l.model)+"/"+s(l.locale),1),t("span",Me,'"'+s(l.value)+'"',1)]),t("div",We,"→ "+s(l.keys.join(", ")),1)]))),128)),d.value.duplicateValues.length>20?(n(),u("div",Ze," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.duplicateValues.length-20)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),d.value&&d.value.missingLocaleKeys.length>0?(n(),_(e(S),{key:5,open:L.value,"onUpdate:open":p[3]||(p[3]=l=>L.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Ge,[t("div",He,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Je,s(e(i)["doctor.missing-locale-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.missingLocaleKeys.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",L.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Qe,[(n(!0),u($,null,j(d.value.missingLocaleKeys.slice(0,50),l=>(n(),u("div",{key:`${l.model}-${l.key}-${l.missingIn}`,class:"flex items-center gap-3 p-3 text-xs font-mono"},[t("span",Re,s(l.model),1),t("span",Xe,s(l.key),1),t("span",Ye,s(e(i)["doctor.missing-in"])+" "+s(l.missingIn),1)]))),128)),d.value.missingLocaleKeys.length>50?(n(),u("div",et," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.missingLocaleKeys.length-50)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),!g.value&&!b.value?(n(),u("div",tt,[t("div",st,[a(e(E),{class:"size-10 text-muted-foreground"})]),t("h2",at,s(e(i)["doctor.empty-title"]),1),t("p",lt,s(e(i)["doctor.empty-cta"]),1)])):c("",!0),a(R,{message:e(i)["validate.validation-results-update-automatically"],class:"mt-4"},null,8,["message"])])]))}});export{yt as default};
1
+ import{d as J,_ as x}from"./useWatch-jK8PaHZV.js";import{_ as Q,a as P}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{_ as R}from"./StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js";import{_ as m,c as S,a as A,b as I}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C1wEA-d3.js";import{a as X,i as Y,p as u,j as a,e as o,u as e,q as t,L as T,g as c,b as _,B as s,r as w,h as y,o as n,s as f,a9 as q,S as z,Z as ee,F as $,x as j,A as te,y as C,z as se}from"./index-DRccbFO1.js";import{_ as k}from"./CardContent.vue_vue_type_script_setup_true_lang-wzodQHah.js";import{_ as N}from"./Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js";import{u as ae}from"./project-Qe0nJIFZ.js";import{S as E}from"./stethoscope-CF0BFg7y.js";import{C as M}from"./circle-alert-CK5y4MwL.js";import{C as U}from"./chevron-down-DYr0P7tu.js";import"./useId-D77Djrst.js";import"./Presence-CwTW6JV8.js";const le={class:"px-6 py-6 space-y-6"},oe={class:"text-sm"},ne={class:"font-medium"},ie={class:"text-muted-foreground text-xs"},re={key:0,class:"flex justify-center py-12"},de={key:1,class:"grid grid-cols-2 gap-3 lg:grid-cols-4"},ue={class:"flex size-10 items-center justify-center rounded-lg bg-status-success/10"},ce={class:"text-2xl font-bold tabular-nums"},me={class:"text-xs text-muted-foreground"},_e={class:"flex size-10 items-center justify-center rounded-lg bg-status-error/10"},fe={class:"text-2xl font-bold tabular-nums"},ve={class:"text-xs text-muted-foreground"},pe={class:"flex size-10 items-center justify-center rounded-lg bg-status-warning/10"},xe={class:"text-2xl font-bold tabular-nums"},ge={class:"text-xs text-muted-foreground"},ye={class:"flex size-10 items-center justify-center rounded-lg bg-muted"},he={class:"text-xs"},be={key:0,class:"font-medium"},we={key:1,class:"font-medium text-status-error"},ze={key:2,class:"text-muted-foreground"},ke={class:"px-4 py-3 border-b border-border flex items-center gap-2"},$e={class:"font-medium text-sm"},je={class:"divide-y divide-border"},Ce={class:"flex-1 min-w-0"},Ke={class:"flex items-center gap-2 flex-wrap"},Ve={class:"font-medium text-sm"},Le={class:"mt-1.5 text-sm text-muted-foreground wrap-break-word"},Be={class:"flex items-center gap-3"},De={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Se={class:"font-medium text-sm"},Ae={class:"divide-y divide-border"},Ie={class:"text-muted-foreground shrink-0"},Ne={class:"truncate"},Ue={key:0,class:"p-3 text-xs text-muted-foreground italic"},Fe={class:"flex items-center gap-3"},Oe={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Pe={class:"font-medium text-sm"},Te={class:"divide-y divide-border"},qe={class:"flex items-center gap-2 font-mono"},Ee={class:"text-muted-foreground"},Me={class:"truncate italic"},We={class:"pl-4 text-muted-foreground mt-1"},Ze={key:0,class:"p-3 text-xs text-muted-foreground italic"},Ge={class:"flex items-center gap-3"},He={class:"flex size-8 items-center justify-center rounded-md bg-status-warning/10"},Je={class:"font-medium text-sm"},Qe={class:"divide-y divide-border"},Re={class:"text-muted-foreground shrink-0"},Xe={class:"truncate"},Ye={class:"text-muted-foreground ml-auto"},et={key:0,class:"p-3 text-xs text-muted-foreground italic"},tt={key:6,class:"flex flex-col items-center py-16 text-center"},st={class:"flex size-20 items-center justify-center rounded-full bg-muted mb-4"},at={class:"text-xl font-semibold"},lt={class:"mt-2 text-sm text-muted-foreground max-w-sm"},yt=X({__name:"DoctorPage",setup(ot){const F=ae(),i=J("serve-ui-texts").locale("en").get(),g=w(!1),h=w(!1),K=w(!0),V=w(!0),L=w(!0),b=y(()=>F.doctor),B=y(()=>{var r;return((r=b.value)==null?void 0:r.checks)??[]}),v=y(()=>{var r;return(r=b.value)==null?void 0:r.summary}),d=y(()=>{var r;return(r=b.value)==null?void 0:r.usage}),W=y(()=>{var r;return(((r=v.value)==null?void 0:r.failed)??0)>0}),Z=y(()=>{var r;return(((r=v.value)==null?void 0:r.warnings)??0)>0});async function O(){g.value=!0;try{await F.fetchDoctor({usage:h.value})}finally{g.value=!1}}function G(r){return r.pass?q:r.severity==="warning"?z:M}function H(r){return r.pass?"text-status-success":r.severity==="warning"?"text-status-warning":"text-status-error"}return Y(()=>{O()}),(r,p)=>(n(),u("div",null,[a(Q,{title:e(i)["doctor.title"],description:e(i)["doctor.subtitle"]},{actions:o(()=>[a(e(P),{disabled:g.value,size:"sm",onClick:O},{default:o(()=>[g.value?(n(),_(e(T),{key:0,class:"mr-1 size-4 animate-spin"})):(n(),_(e(E),{key:1,class:"mr-1 size-4"})),f(" "+s(e(i)["dashboard.run"]),1)]),_:1},8,["disabled"])]),_:1},8,["title","description"]),t("div",le,[a(e(m),null,{default:o(()=>[a(e(k),{class:"flex items-center justify-between gap-4 p-4"},{default:o(()=>[t("div",oe,[t("div",ne,s(e(i)["doctor.usage-toggle-label"]),1),t("div",ie,s(e(i)["doctor.usage-toggle-description"]),1)]),a(e(P),{variant:h.value?"default":"outline",size:"sm",onClick:p[0]||(p[0]=l=>h.value=!h.value)},{default:o(()=>[f(s(h.value?e(i)["common.on"]:e(i)["common.off"]),1)]),_:1},8,["variant"])]),_:1})]),_:1}),g.value&&!b.value?(n(),u("div",re,[a(e(T),{class:"size-6 animate-spin text-primary"})])):c("",!0),v.value?(n(),u("div",de,[a(e(m),{class:"border-status-success/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",ue,[a(e(q),{class:"size-5 text-status-success"})]),t("div",null,[t("div",ce,s(v.value.passed),1),t("div",me,s(v.value.total)+" "+s(e(i)["dashboard.total"]),1)])]),_:1})]),_:1}),a(e(m),{class:"border-status-error/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",_e,[a(e(M),{class:"size-5 text-status-error"})]),t("div",null,[t("div",fe,s(v.value.failed),1),t("div",ve,s(e(i)["validate.errors"]),1)])]),_:1})]),_:1}),a(e(m),{class:"border-status-warning/20"},{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",pe,[a(e(z),{class:"size-5 text-status-warning"})]),t("div",null,[t("div",xe,s(v.value.warnings),1),t("div",ge,s(e(i)["trust-badge.warnings"]),1)])]),_:1})]),_:1}),a(e(m),null,{default:o(()=>[a(e(k),{class:"flex items-center gap-3 p-4"},{default:o(()=>[t("div",ye,[a(e(ee),{class:"size-5 text-muted-foreground"})]),t("div",he,[W.value?(n(),u("div",we,s(v.value.failed)+" "+s(e(i)["doctor.summary-failed-suffix"]),1)):(n(),u("div",be,s(e(i)["validate.all-checks-passed"]),1)),Z.value?(n(),u("div",ze,s(e(i)["doctor.summary-review-below"]),1)):c("",!0)])]),_:1})]),_:1})])):c("",!0),B.value.length>0?(n(),_(e(m),{key:2},{default:o(()=>[t("div",ke,[t("span",$e,s(e(i)["doctor.checks-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(B.value.length),1)]),_:1})]),t("div",je,[(n(!0),u($,null,j(B.value,(l,D)=>(n(),u("div",{key:`${l.name}-${D}`,class:"flex items-start gap-3 p-4"},[(n(),_(te(G(l)),{class:C(e(se)("mt-0.5 size-4 shrink-0",H(l)))},null,8,["class"])),t("div",Ce,[t("div",Ke,[t("span",Ve,s(l.name),1),!l.pass&&l.severity==="warning"?(n(),_(e(x),{key:0,variant:"outline",class:"text-[10px] uppercase border-status-warning/50 text-status-warning"},{default:o(()=>[f(s(e(i)["doctor.warning-label"]),1)]),_:1})):c("",!0),!l.pass&&(l.severity==="error"||!l.severity)?(n(),_(e(x),{key:1,variant:"destructive",class:"text-[10px] uppercase"},{default:o(()=>[f(s(e(i)["doctor.error-label"]),1)]),_:1})):c("",!0)]),t("p",Le,s(l.detail),1)])]))),128))])]),_:1})):c("",!0),d.value&&d.value.unusedKeys.length>0?(n(),_(e(S),{key:3,open:K.value,"onUpdate:open":p[1]||(p[1]=l=>K.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Be,[t("div",De,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Se,s(e(i)["doctor.unused-keys-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.unusedKeys.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",K.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Ae,[(n(!0),u($,null,j(d.value.unusedKeys.slice(0,50),l=>(n(),u("div",{key:`${l.model}-${l.key}-${l.locale}`,class:"flex items-center gap-3 p-3 text-xs font-mono"},[t("span",Ie,s(l.model),1),t("span",Ne,s(l.key),1),a(e(x),{variant:"outline",class:"text-[10px] ml-auto"},{default:o(()=>[f(s(l.locale),1)]),_:2},1024)]))),128)),d.value.unusedKeys.length>50?(n(),u("div",Ue," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.unusedKeys.length-50)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),d.value&&d.value.duplicateValues.length>0?(n(),_(e(S),{key:4,open:V.value,"onUpdate:open":p[2]||(p[2]=l=>V.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Fe,[t("div",Oe,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Pe,s(e(i)["doctor.duplicate-values-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.duplicateValues.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",V.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Te,[(n(!0),u($,null,j(d.value.duplicateValues.slice(0,20),(l,D)=>(n(),u("div",{key:`${l.model}-${l.locale}-${D}`,class:"p-3 text-xs"},[t("div",qe,[t("span",Ee,s(l.model)+"/"+s(l.locale),1),t("span",Me,'"'+s(l.value)+'"',1)]),t("div",We,"→ "+s(l.keys.join(", ")),1)]))),128)),d.value.duplicateValues.length>20?(n(),u("div",Ze," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.duplicateValues.length-20)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),d.value&&d.value.missingLocaleKeys.length>0?(n(),_(e(S),{key:5,open:L.value,"onUpdate:open":p[3]||(p[3]=l=>L.value=l)},{default:o(()=>[a(e(m),null,{default:o(()=>[a(e(A),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:o(()=>[t("div",Ge,[t("div",He,[a(e(z),{class:"size-4 text-status-warning"})]),t("span",Je,s(e(i)["doctor.missing-locale-title"]),1),a(e(x),{variant:"secondary",class:"text-[10px]"},{default:o(()=>[f(s(d.value.missingLocaleKeys.length),1)]),_:1})]),a(e(U),{class:C(["size-4 text-muted-foreground transition-transform",L.value&&"rotate-180"])},null,8,["class"])]),_:1}),a(e(I),null,{default:o(()=>[a(e(N)),t("div",Qe,[(n(!0),u($,null,j(d.value.missingLocaleKeys.slice(0,50),l=>(n(),u("div",{key:`${l.model}-${l.key}-${l.missingIn}`,class:"flex items-center gap-3 p-3 text-xs font-mono"},[t("span",Re,s(l.model),1),t("span",Xe,s(l.key),1),t("span",Ye,s(e(i)["doctor.missing-in"])+" "+s(l.missingIn),1)]))),128)),d.value.missingLocaleKeys.length>50?(n(),u("div",et," … "+s(e(i)["doctor.and-more"])+" ("+s(d.value.missingLocaleKeys.length-50)+") ",1)):c("",!0)])]),_:1})]),_:1})]),_:1},8,["open"])):c("",!0),!g.value&&!b.value?(n(),u("div",tt,[t("div",st,[a(e(E),{class:"size-10 text-muted-foreground"})]),t("h2",at,s(e(i)["doctor.empty-title"]),1),t("p",lt,s(e(i)["doctor.empty-cta"]),1)])):c("",!0),a(R,{message:e(i)["validate.validation-results-update-automatically"],class:"mt-4"},null,8,["message"])])]))}});export{yt as default};
@@ -1 +1 @@
1
- import{d as j,_ as C}from"./useWatch-BEMqYN2q.js";import{_ as $}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{_ as z}from"./StudioHint.vue_vue_type_script_setup_true_lang-C_9M35tB.js";import{_ as h,a as F,b as B,c as N}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-ClPT-9J4.js";import{_ as R}from"./Separator.vue_vue_type_script_setup_true_lang-D-ZdYJPm.js";import{u as V}from"./project-CoRDn0ek.js";import{a as L,i as O,p as o,j as a,u as t,q as i,L as S,s as f,B as n,b as p,e as c,F as v,x as b,h as D,o as r,Z as E,g as P}from"./index-ChZMsiq8.js";import{F as q}from"./file-code-DAeYB6-U.js";import{C as I}from"./chevron-down-DxPRdtQ2.js";import"./useId-D0eDf3m4.js";import"./Presence-CfATKqRO.js";const J={class:"px-6 py-6 space-y-4"},M={key:0,class:"flex items-center justify-center py-12 gap-2 text-sm text-muted-foreground"},T={class:"flex items-center gap-3"},U={class:"flex size-8 items-center justify-center rounded-md bg-primary/10"},Z={class:"font-medium text-sm"},A={class:"p-4 text-sm"},G={key:0,class:"text-muted-foreground whitespace-pre-wrap"},H={key:1,class:"divide-y divide-border/50"},Q={class:"text-xs font-mono text-muted-foreground mb-1"},W={class:"bg-muted rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap wrap-break-word"},X={key:2,class:"text-muted-foreground"},me=L({__name:"FormatReferencePage",setup(Y){const u=V(),l=j("serve-ui-texts").locale("en").get();function k(e){return e.replace(/_/g," ").replace(/(^|\s)\w/g,m=>m.toUpperCase())}const _=D(()=>{const e=u.formatReference;return!e||typeof e!="object"?[]:Object.entries(e).map(([m,s])=>({key:m,label:k(m),value:s}))});function x(e){return e==null?"—":typeof e=="string"?e:JSON.stringify(e,null,2)}function d(e){return typeof e=="object"&&e!==null}function g(e){return d(e)?Object.entries(e):[]}return O(()=>{u.formatReference||u.fetchFormatReference()}),(e,m)=>(r(),o("div",null,[a($,{title:t(l)["format.title"],description:t(l)["format.subtitle"]},null,8,["title","description"]),i("div",J,[t(u).formatReference?_.value.length===0?(r(),p(t(h),{key:1,class:"p-6 flex items-center gap-3 text-sm text-muted-foreground"},{default:c(()=>[a(t(E),{class:"size-4 shrink-0"}),f(" "+n(t(l)["format.empty"]),1)]),_:1})):(r(!0),o(v,{key:2},b(_.value,s=>(r(),p(t(N),{key:s.key,"default-open":!0},{default:c(()=>[a(t(h),null,{default:c(()=>[a(t(F),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:c(()=>[i("div",T,[i("div",U,[a(t(q),{class:"size-4 text-primary"})]),i("span",Z,n(s.label),1),d(s.value)?(r(),p(t(C),{key:0,variant:"secondary",class:"text-[10px]"},{default:c(()=>[f(n(g(s.value).length),1)]),_:2},1024)):P("",!0)]),a(t(I),{class:"size-4 text-muted-foreground transition-transform"})]),_:2},1024),a(t(B),null,{default:c(()=>[a(t(R)),i("div",A,[typeof s.value=="string"?(r(),o("p",G,n(s.value),1)):d(s.value)?(r(),o("div",H,[(r(!0),o(v,null,b(g(s.value),([y,w])=>(r(),o("div",{key:y,class:"py-2 first:pt-0 last:pb-0"},[i("div",Q,n(y),1),i("pre",W,n(x(w)),1)]))),128))])):(r(),o("span",X,n(x(s.value)),1))])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)):(r(),o("div",M,[a(t(S),{class:"size-4 animate-spin"}),f(" "+n(t(l)["format.loading"]),1)])),a(z,{message:t(l)["validate.validation-results-update-automatically"],class:"mt-4"},null,8,["message"])])]))}});export{me as default};
1
+ import{d as j,_ as C}from"./useWatch-jK8PaHZV.js";import{_ as $}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{_ as z}from"./StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js";import{_ as h,a as F,b as B,c as N}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C1wEA-d3.js";import{_ as R}from"./Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js";import{u as V}from"./project-Qe0nJIFZ.js";import{a as L,i as O,p as o,j as a,u as t,q as i,L as S,s as f,B as n,b as p,e as c,F as v,x as b,h as D,o as r,Z as E,g as P}from"./index-DRccbFO1.js";import{F as q}from"./file-code-BUzIo-9Q.js";import{C as I}from"./chevron-down-DYr0P7tu.js";import"./useId-D77Djrst.js";import"./Presence-CwTW6JV8.js";const J={class:"px-6 py-6 space-y-4"},M={key:0,class:"flex items-center justify-center py-12 gap-2 text-sm text-muted-foreground"},T={class:"flex items-center gap-3"},U={class:"flex size-8 items-center justify-center rounded-md bg-primary/10"},Z={class:"font-medium text-sm"},A={class:"p-4 text-sm"},G={key:0,class:"text-muted-foreground whitespace-pre-wrap"},H={key:1,class:"divide-y divide-border/50"},Q={class:"text-xs font-mono text-muted-foreground mb-1"},W={class:"bg-muted rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap wrap-break-word"},X={key:2,class:"text-muted-foreground"},me=L({__name:"FormatReferencePage",setup(Y){const u=V(),l=j("serve-ui-texts").locale("en").get();function k(e){return e.replace(/_/g," ").replace(/(^|\s)\w/g,m=>m.toUpperCase())}const _=D(()=>{const e=u.formatReference;return!e||typeof e!="object"?[]:Object.entries(e).map(([m,s])=>({key:m,label:k(m),value:s}))});function x(e){return e==null?"—":typeof e=="string"?e:JSON.stringify(e,null,2)}function d(e){return typeof e=="object"&&e!==null}function g(e){return d(e)?Object.entries(e):[]}return O(()=>{u.formatReference||u.fetchFormatReference()}),(e,m)=>(r(),o("div",null,[a($,{title:t(l)["format.title"],description:t(l)["format.subtitle"]},null,8,["title","description"]),i("div",J,[t(u).formatReference?_.value.length===0?(r(),p(t(h),{key:1,class:"p-6 flex items-center gap-3 text-sm text-muted-foreground"},{default:c(()=>[a(t(E),{class:"size-4 shrink-0"}),f(" "+n(t(l)["format.empty"]),1)]),_:1})):(r(!0),o(v,{key:2},b(_.value,s=>(r(),p(t(N),{key:s.key,"default-open":!0},{default:c(()=>[a(t(h),null,{default:c(()=>[a(t(F),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:c(()=>[i("div",T,[i("div",U,[a(t(q),{class:"size-4 text-primary"})]),i("span",Z,n(s.label),1),d(s.value)?(r(),p(t(C),{key:0,variant:"secondary",class:"text-[10px]"},{default:c(()=>[f(n(g(s.value).length),1)]),_:2},1024)):P("",!0)]),a(t(I),{class:"size-4 text-muted-foreground transition-transform"})]),_:2},1024),a(t(B),null,{default:c(()=>[a(t(R)),i("div",A,[typeof s.value=="string"?(r(),o("p",G,n(s.value),1)):d(s.value)?(r(),o("div",H,[(r(!0),o(v,null,b(g(s.value),([y,w])=>(r(),o("div",{key:y,class:"py-2 first:pt-0 last:pb-0"},[i("div",Q,n(y),1),i("pre",W,n(x(w)),1)]))),128))])):(r(),o("span",X,n(x(s.value)),1))])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)):(r(),o("div",M,[a(t(S),{class:"size-4 animate-spin"}),f(" "+n(t(l)["format.loading"]),1)])),a(z,{message:t(l)["validate.validation-results-update-automatically"],class:"mt-4"},null,8,["message"])])]))}});export{me as default};
@@ -1,4 +1,4 @@
1
- import{c as Q,w as D,h as O,U as F,r as H,V as A,H as k,k as q,W as Y,i as G,u as J,M as P,a as X,O as Z,P as ee,p as te,y as ne,z as ae,Y as oe,o as se}from"./index-ChZMsiq8.js";import{i as ie,t as re,a as $,b as le,w as ue,c as ce,e as de,f as fe,g as me,h as L,p as B}from"./useWatch-BEMqYN2q.js";/**
1
+ import{c as Q,w as D,h as O,U as F,r as H,V as A,H as k,k as q,W as Y,i as G,u as J,M as P,a as X,O as Z,P as ee,p as te,y as ne,z as ae,Y as oe,o as se}from"./index-DRccbFO1.js";import{i as ie,t as re,a as $,b as le,w as ue,c as ce,e as de,f as fe,g as me,h as L,p as B}from"./useWatch-jK8PaHZV.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as x,a as oe,i as ae,w as ne,p as r,j as i,e as m,q as e,u as t,F as v,y as C,z as M,b as y,A as j,B as s,g as p,x as q,s as c,h as g,r as J,o,C as re,v as le}from"./index-ChZMsiq8.js";import{u as ie}from"./content-CUJS4qD7.js";import{_ as de,a as Q,E as ce}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{_ as ue,C as me,a as I}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-DGijfAoG.js";import{d as pe,_ as b}from"./useWatch-BEMqYN2q.js";import{_ as xe}from"./Separator.vue_vue_type_script_setup_true_lang-D-ZdYJPm.js";import{c as fe,t as G}from"./useFormatters-DgWFpsAv.js";import{B as ge}from"./book-open-BrhESfqB.js";import{F as ye}from"./file-code-DAeYB6-U.js";import{F as A}from"./file-text-CNkcFAch.js";import{B as he}from"./box-DnDvmOFz.js";import{H as P}from"./hash-CXM2KyoG.js";import{D as ve}from"./database-DXeLd4fP.js";import{C as be}from"./chevron-down-DxPRdtQ2.js";import{C as _e}from"./chevron-right-4fFpOcQY.js";import{A as ke}from"./arrow-left-Dxkqq18_.js";import{L as we}from"./languages-DJeX1WoO.js";/**
1
+ import{c as x,a as oe,i as ae,w as ne,p as r,j as i,e as m,q as e,u as t,F as v,y as C,z as M,b as y,A as j,B as s,g as p,x as q,s as c,h as g,r as J,o,C as re,v as le}from"./index-DRccbFO1.js";import{u as ie}from"./content-CpU25d4T.js";import{_ as de,a as Q,E as ce}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{_ as ue,C as me,a as I}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-aUmPXZcx.js";import{d as pe,_ as b}from"./useWatch-jK8PaHZV.js";import{_ as xe}from"./Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js";import{c as fe,t as G}from"./useFormatters-DgWFpsAv.js";import{B as ge}from"./book-open-C5gyxyGy.js";import{F as ye}from"./file-code-BUzIo-9Q.js";import{F as A}from"./file-text-Cb1CMf3W.js";import{B as he}from"./box-BP-1CTkM.js";import{H as P}from"./hash-CgFntI-_.js";import{D as ve}from"./database-Yx3eEqcB.js";import{C as be}from"./chevron-down-DYr0P7tu.js";import{C as _e}from"./chevron-right-DyOhl-vS.js";import{A as ke}from"./arrow-left-Db-cyAsD.js";import{L as we}from"./languages-CZzFhI1_.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{_ as E}from"./model-empty-state-B6AM4bil.js";import{a as I,p as a,j as i,e as f,u as e,q as t,X as M,g as u,B as s,s as p,F as g,x as w,r as D,h as k,o as l,y as x,z as _,b as N,A as q,C as Q}from"./index-ChZMsiq8.js";import{u as R}from"./project-CoRDn0ek.js";import{_ as U}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{_ as X}from"./StudioHint.vue_vue_type_script_setup_true_lang-C_9M35tB.js";import{_ as O,a as y}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-DGijfAoG.js";import{d as G,_ as $}from"./useWatch-BEMqYN2q.js";import{S as B,_ as J}from"./Input.vue_vue_type_script_setup_true_lang-DTg5x_1H.js";import{B as K}from"./book-open-BrhESfqB.js";import{F as W}from"./file-code-DAeYB6-U.js";import{F as Y}from"./file-text-CNkcFAch.js";import{B as Z}from"./box-DnDvmOFz.js";import{H}from"./hash-CXM2KyoG.js";import{L as P}from"./languages-DJeX1WoO.js";const ee={class:"hidden sm:inline"},te={class:"px-6 py-6 space-y-6"},se={key:0,class:"flex items-center gap-2"},oe={class:"relative flex-1"},re={key:1,class:"flex items-center justify-center py-20"},ne={key:2,class:"flex flex-col items-center py-16 text-center"},le={class:"text-lg font-semibold text-foreground"},ae={class:"mt-2 max-w-sm text-sm text-muted-foreground"},ie={key:3,class:"flex flex-col items-center py-16 text-center"},de={class:"text-lg font-semibold text-foreground"},me={class:"mt-2 text-sm text-muted-foreground"},ce={class:"font-medium"},ue={key:0,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3"},pe=["onClick"],fe={class:"min-w-0 flex-1"},ge={class:"flex items-center gap-2"},xe={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},_e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},ve={class:"inline-flex items-center gap-1 text-sky-600"},he={class:"mb-3 flex items-center gap-2"},ye={class:"text-sm font-medium text-muted-foreground"},be={class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3 mb-6"},ke=["onClick"],Ce={class:"min-w-0 flex-1"},ze={class:"flex items-center gap-2"},we={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},$e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},Be={class:"inline-flex items-center gap-1 text-sky-600"},je={class:"flex items-center gap-4 text-xs text-muted-foreground"},Le={key:0,class:"size-0.5 rounded-full bg-muted-foreground/40"},Ve={key:1},Xe=I({__name:"ModelsPage",setup(Fe){const o=G("serve-ui-texts").locale("en").get(),C=R(),j=Q(),m=D(""),b=D(!1),v=k(()=>{var d;return((d=C.status)==null?void 0:d.models)??[]}),h=k(()=>{const d=m.value.toLowerCase().trim();return d?v.value.filter(r=>r.id.toLowerCase().includes(d)||r.domain.toLowerCase().includes(d)||r.kind.toLowerCase().includes(d)):v.value}),L=k(()=>{const d={};for(const r of h.value){const n=r.domain||"default";d[n]||(d[n]=[]),d[n].push(r)}return d}),T=k(()=>Object.keys(L.value).length>1),V={collection:Z,singleton:Y,document:W,dictionary:K},F={collection:"bg-primary/10 text-primary",singleton:"bg-sky-500/10 text-sky-600",document:"bg-emerald-500/10 text-emerald-600",dictionary:"bg-amber-500/10 text-amber-600"},S={collection:"bg-primary/10 text-primary border-primary/20",singleton:"bg-sky-500/10 text-sky-600 border-sky-500/20",document:"bg-emerald-500/10 text-emerald-600 border-emerald-500/20",dictionary:"bg-amber-500/10 text-amber-600 border-amber-500/20"};function A(){m.value="",b.value=!1}return(d,r)=>(l(),a("div",null,[i(U,{title:e(o)["models.models"],description:e(o)["models.content-model-definitions"]},{actions:f(()=>[v.value.length>0?(l(),a("button",{key:0,class:"flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",onClick:r[0]||(r[0]=n=>b.value=!b.value)},[i(e(B),{class:"size-3.5"}),t("span",ee,s(e(o)["models.search"]),1)])):u("",!0)]),_:1},8,["title","description"]),t("div",te,[b.value?(l(),a("div",se,[t("div",oe,[i(e(B),{class:"absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),i(e(J),{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=n=>m.value=n),placeholder:e(o)["models.search-models-by-name"],class:"pl-9 pr-9",autofocus:""},null,8,["modelValue","placeholder"]),m.value?(l(),a("button",{key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",onClick:r[2]||(r[2]=n=>m.value="")},[i(e(M),{class:"size-3.5"})])):u("",!0)]),t("button",{class:"shrink-0 rounded-md px-2.5 py-2 text-xs text-muted-foreground hover:bg-accent",onClick:A},s(e(o)["models.close"]),1)])):u("",!0),e(C).loading&&!e(C).status?(l(),a("div",re,[...r[4]||(r[4]=[t("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):v.value.length===0?(l(),a("div",ne,[r[5]||(r[5]=t("img",{src:E,alt:"",class:"empty-illustration mb-6"},null,-1)),t("h2",le,s(e(o)["models.no-models-yet"]),1),t("p",ae,s(e(o)["models.create-content-models-using"]),1),i(O,{title:e(o)["models.ask-your-agent"],class:"mt-6 w-full max-w-md"},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-blog-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.create-a-faq-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.scaffold-my-project-with"]},null,8,["prompt"])]),_:1},8,["title"])])):h.value.length===0&&m.value?(l(),a("div",ie,[i(e(B),{class:"mb-4 size-10 text-muted-foreground/40"}),t("h2",de,s(e(o)["models.no-models-found"]),1),t("p",me,[p(s(e(o)["models.no-models-match"]),1),t("span",ce,s(m.value),1),p(s(e(o)["models.try-a-different-search"]),1)]),t("button",{class:"mt-4 text-sm font-medium text-primary hover:underline",onClick:r[3]||(r[3]=n=>m.value="")},s(e(o)["models.clear-search"]),1)])):(l(),a(g,{key:4},[T.value?(l(!0),a(g,{key:1},w(L.value,(n,z)=>(l(),a("section",{key:z},[t("div",he,[t("h2",ye,s(z),1),i(e($),{variant:"secondary",class:"text-[10px]"},{default:f(()=>[p(s(n.length),1)]),_:2},1024)]),t("div",be,[(l(!0),a(g,null,w(n,c=>(l(),a("button",{key:c.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:Se=>e(j).push(`/models/${c.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[c.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[c.kind]??e(H)),{class:"size-5"}))],2),t("div",Ce,[t("div",ze,[t("span",we,s(c.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[c.kind]??""))},{default:f(()=>[p(s(c.kind),1)]),_:2},1032,["class"])]),t("div",$e,[t("span",null,s(c.fields)+" "+s(e(o)["models.fields"]),1),c.i18n?(l(),a(g,{key:0},[r[8]||(r[8]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",Be,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,ke))),128))])]))),128)):(l(),a("div",ue,[(l(!0),a(g,null,w(h.value,n=>(l(),a("button",{key:n.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:z=>e(j).push(`/models/${n.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[n.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[n.kind]??e(H)),{class:"size-5"}))],2),t("div",fe,[t("div",ge,[t("span",xe,s(n.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[n.kind]??""))},{default:f(()=>[p(s(n.kind),1)]),_:2},1032,["class"])]),t("div",_e,[t("span",null,s(n.fields)+" "+s(e(o)["models.fields"]),1),r[7]||(r[7]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",null,s(n.domain),1),n.i18n?(l(),a(g,{key:0},[r[6]||(r[6]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",ve,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,pe))),128))])),t("div",je,[t("span",null,s(h.value.length)+" "+s(e(o)["models.model"])+s(h.value.length===1?"":"s"),1),m.value?(l(),a("span",Le)):u("",!0),m.value?(l(),a("span",Ve,s(e(o)["models.filtered-from"])+" "+s(v.value.length)+" "+s(e(o)["models.total"]),1)):u("",!0)])],64)),i(O,{title:e(o)["models.ask-your-agent"]},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-new-content"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.add-a-testimonials-collection"]},null,8,["prompt"])]),_:1},8,["title"]),i(X,{message:e(o)["models.create-and-manage-models"],class:"mt-4"},null,8,["message"])])]))}});export{Xe as default};
1
+ import{_ as E}from"./model-empty-state-B6AM4bil.js";import{a as I,p as a,j as i,e as f,u as e,q as t,X as M,g as u,B as s,s as p,F as g,x as w,r as D,h as k,o as l,y as x,z as _,b as N,A as q,C as Q}from"./index-DRccbFO1.js";import{u as R}from"./project-Qe0nJIFZ.js";import{_ as U}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{_ as X}from"./StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js";import{_ as O,a as y}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-aUmPXZcx.js";import{d as G,_ as $}from"./useWatch-jK8PaHZV.js";import{S as B,_ as J}from"./Input.vue_vue_type_script_setup_true_lang-BKEszmi1.js";import{B as K}from"./book-open-C5gyxyGy.js";import{F as W}from"./file-code-BUzIo-9Q.js";import{F as Y}from"./file-text-Cb1CMf3W.js";import{B as Z}from"./box-BP-1CTkM.js";import{H}from"./hash-CgFntI-_.js";import{L as P}from"./languages-CZzFhI1_.js";const ee={class:"hidden sm:inline"},te={class:"px-6 py-6 space-y-6"},se={key:0,class:"flex items-center gap-2"},oe={class:"relative flex-1"},re={key:1,class:"flex items-center justify-center py-20"},ne={key:2,class:"flex flex-col items-center py-16 text-center"},le={class:"text-lg font-semibold text-foreground"},ae={class:"mt-2 max-w-sm text-sm text-muted-foreground"},ie={key:3,class:"flex flex-col items-center py-16 text-center"},de={class:"text-lg font-semibold text-foreground"},me={class:"mt-2 text-sm text-muted-foreground"},ce={class:"font-medium"},ue={key:0,class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3"},pe=["onClick"],fe={class:"min-w-0 flex-1"},ge={class:"flex items-center gap-2"},xe={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},_e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},ve={class:"inline-flex items-center gap-1 text-sky-600"},he={class:"mb-3 flex items-center gap-2"},ye={class:"text-sm font-medium text-muted-foreground"},be={class:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3 mb-6"},ke=["onClick"],Ce={class:"min-w-0 flex-1"},ze={class:"flex items-center gap-2"},we={class:"font-medium text-foreground group-hover:text-primary transition-colors truncate"},$e={class:"mt-1.5 flex items-center gap-3 text-xs text-muted-foreground"},Be={class:"inline-flex items-center gap-1 text-sky-600"},je={class:"flex items-center gap-4 text-xs text-muted-foreground"},Le={key:0,class:"size-0.5 rounded-full bg-muted-foreground/40"},Ve={key:1},Xe=I({__name:"ModelsPage",setup(Fe){const o=G("serve-ui-texts").locale("en").get(),C=R(),j=Q(),m=D(""),b=D(!1),v=k(()=>{var d;return((d=C.status)==null?void 0:d.models)??[]}),h=k(()=>{const d=m.value.toLowerCase().trim();return d?v.value.filter(r=>r.id.toLowerCase().includes(d)||r.domain.toLowerCase().includes(d)||r.kind.toLowerCase().includes(d)):v.value}),L=k(()=>{const d={};for(const r of h.value){const n=r.domain||"default";d[n]||(d[n]=[]),d[n].push(r)}return d}),T=k(()=>Object.keys(L.value).length>1),V={collection:Z,singleton:Y,document:W,dictionary:K},F={collection:"bg-primary/10 text-primary",singleton:"bg-sky-500/10 text-sky-600",document:"bg-emerald-500/10 text-emerald-600",dictionary:"bg-amber-500/10 text-amber-600"},S={collection:"bg-primary/10 text-primary border-primary/20",singleton:"bg-sky-500/10 text-sky-600 border-sky-500/20",document:"bg-emerald-500/10 text-emerald-600 border-emerald-500/20",dictionary:"bg-amber-500/10 text-amber-600 border-amber-500/20"};function A(){m.value="",b.value=!1}return(d,r)=>(l(),a("div",null,[i(U,{title:e(o)["models.models"],description:e(o)["models.content-model-definitions"]},{actions:f(()=>[v.value.length>0?(l(),a("button",{key:0,class:"flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",onClick:r[0]||(r[0]=n=>b.value=!b.value)},[i(e(B),{class:"size-3.5"}),t("span",ee,s(e(o)["models.search"]),1)])):u("",!0)]),_:1},8,["title","description"]),t("div",te,[b.value?(l(),a("div",se,[t("div",oe,[i(e(B),{class:"absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),i(e(J),{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=n=>m.value=n),placeholder:e(o)["models.search-models-by-name"],class:"pl-9 pr-9",autofocus:""},null,8,["modelValue","placeholder"]),m.value?(l(),a("button",{key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",onClick:r[2]||(r[2]=n=>m.value="")},[i(e(M),{class:"size-3.5"})])):u("",!0)]),t("button",{class:"shrink-0 rounded-md px-2.5 py-2 text-xs text-muted-foreground hover:bg-accent",onClick:A},s(e(o)["models.close"]),1)])):u("",!0),e(C).loading&&!e(C).status?(l(),a("div",re,[...r[4]||(r[4]=[t("div",{class:"size-6 animate-spin rounded-full border-2 border-primary border-t-transparent"},null,-1)])])):v.value.length===0?(l(),a("div",ne,[r[5]||(r[5]=t("img",{src:E,alt:"",class:"empty-illustration mb-6"},null,-1)),t("h2",le,s(e(o)["models.no-models-yet"]),1),t("p",ae,s(e(o)["models.create-content-models-using"]),1),i(O,{title:e(o)["models.ask-your-agent"],class:"mt-6 w-full max-w-md"},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-blog-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.create-a-faq-model"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.scaffold-my-project-with"]},null,8,["prompt"])]),_:1},8,["title"])])):h.value.length===0&&m.value?(l(),a("div",ie,[i(e(B),{class:"mb-4 size-10 text-muted-foreground/40"}),t("h2",de,s(e(o)["models.no-models-found"]),1),t("p",me,[p(s(e(o)["models.no-models-match"]),1),t("span",ce,s(m.value),1),p(s(e(o)["models.try-a-different-search"]),1)]),t("button",{class:"mt-4 text-sm font-medium text-primary hover:underline",onClick:r[3]||(r[3]=n=>m.value="")},s(e(o)["models.clear-search"]),1)])):(l(),a(g,{key:4},[T.value?(l(!0),a(g,{key:1},w(L.value,(n,z)=>(l(),a("section",{key:z},[t("div",he,[t("h2",ye,s(z),1),i(e($),{variant:"secondary",class:"text-[10px]"},{default:f(()=>[p(s(n.length),1)]),_:2},1024)]),t("div",be,[(l(!0),a(g,null,w(n,c=>(l(),a("button",{key:c.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:Se=>e(j).push(`/models/${c.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[c.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[c.kind]??e(H)),{class:"size-5"}))],2),t("div",Ce,[t("div",ze,[t("span",we,s(c.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[c.kind]??""))},{default:f(()=>[p(s(c.kind),1)]),_:2},1032,["class"])]),t("div",$e,[t("span",null,s(c.fields)+" "+s(e(o)["models.fields"]),1),c.i18n?(l(),a(g,{key:0},[r[8]||(r[8]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",Be,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,ke))),128))])]))),128)):(l(),a("div",ue,[(l(!0),a(g,null,w(h.value,n=>(l(),a("button",{key:n.id,class:x(e(_)("group flex items-start gap-4 rounded-xl border bg-card p-4 text-left transition-all hover:shadow-sm","border-border hover:border-primary/30")),onClick:z=>e(j).push(`/models/${n.id}`)},[t("div",{class:x(e(_)("flex size-10 shrink-0 items-center justify-center rounded-lg",F[n.kind]??"bg-muted text-muted-foreground"))},[(l(),N(q(V[n.kind]??e(H)),{class:"size-5"}))],2),t("div",fe,[t("div",ge,[t("span",xe,s(n.id),1),i(e($),{variant:"outline",class:x(e(_)("shrink-0 text-[10px] font-medium",S[n.kind]??""))},{default:f(()=>[p(s(n.kind),1)]),_:2},1032,["class"])]),t("div",_e,[t("span",null,s(n.fields)+" "+s(e(o)["models.fields"]),1),r[7]||(r[7]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",null,s(n.domain),1),n.i18n?(l(),a(g,{key:0},[r[6]||(r[6]=t("span",{class:"size-0.5 rounded-full bg-muted-foreground/40"},null,-1)),t("span",ve,[i(e(P),{class:"size-3"}),p(" "+s(e(o)["models.i18n"]),1)])],64)):u("",!0)])])],10,pe))),128))])),t("div",je,[t("span",null,s(h.value.length)+" "+s(e(o)["models.model"])+s(h.value.length===1?"":"s"),1),m.value?(l(),a("span",Le)):u("",!0),m.value?(l(),a("span",Ve,s(e(o)["models.filtered-from"])+" "+s(v.value.length)+" "+s(e(o)["models.total"]),1)):u("",!0)])],64)),i(O,{title:e(o)["models.ask-your-agent"]},{default:f(()=>[i(y,{prompt:e(o)["models.create-a-new-content"]},null,8,["prompt"]),i(y,{prompt:e(o)["models.add-a-testimonials-collection"]},null,8,["prompt"])]),_:1},8,["title"]),i(X,{message:e(o)["models.create-and-manage-models"],class:"mt-4"},null,8,["message"])])]))}});export{Xe as default};
@@ -0,0 +1,11 @@
1
+ import{c as Z,a as D,o as l,p as m,y as N,u as e,z as L,f as I,F as M,x as T,h as U,b as h,e as r,j as s,q as t,A as ie,B as n,s as u,g as B,w as ce,X as de,L as E,r as P,i as ue,G as j,a9 as J}from"./index-DRccbFO1.js";import{_ as w,j as me,d as fe,u as pe}from"./useWatch-jK8PaHZV.js";import{u as xe}from"./content-CpU25d4T.js";import{_ as _e,S as ge,a as O}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{A as ee,_ as he}from"./StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js";import{_ as H,a as C}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-aUmPXZcx.js";import{a as te,b as se,_ as F,c as ne}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C1wEA-d3.js";import{_ as W}from"./Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js";import{C as ae}from"./chevron-down-DYr0P7tu.js";import{B as ve}from"./book-marked-Do-N1OrO.js";import{B as ye}from"./book-open-C5gyxyGy.js";import{F as X}from"./file-code-BUzIo-9Q.js";import{L as ze,T as Q}from"./trash-2-CO6c5OwW.js";import{_ as V}from"./CardContent.vue_vue_type_script_setup_true_lang-wzodQHah.js";import{A as Y}from"./arrow-down-k7y8IG0A.js";import{D as be}from"./database-Yx3eEqcB.js";import{M as ke,P as we}from"./plus-DZbd3Qbv.js";import{G as K}from"./git-merge-Kep8fChm.js";import"./useId-D77Djrst.js";import"./Presence-CwTW6JV8.js";/**
2
+ * @license lucide-vue-next v0.474.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const $e=Z("CodeIcon",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
7
+ * @license lucide-vue-next v0.474.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const oe=Z("MapPinIcon",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),le=D({__name:"CardHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(g){const o=g;return(a,z)=>(l(),m("div",{"data-slot":"card-header",class:N(e(L)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",o.class))},[I(a.$slots,"default")],2))}}),re=D({__name:"CardTitle",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(g){const o=g;return(a,z)=>(l(),m("h3",{"data-slot":"card-title",class:N(e(L)("leading-none font-semibold",o.class))},[I(a.$slots,"default")],2))}}),Pe="/select-data-type.svg",je={class:"space-y-4"},Ce={class:"flex items-center gap-3"},Be={class:"font-medium text-sm font-mono"},Re={class:"divide-y divide-border"},Se=["onClick"],Me={class:"flex-1 min-w-0"},Ae={class:"text-sm font-medium text-foreground truncate"},Fe={class:"flex items-center gap-2 mt-1 flex-wrap"},Ne={class:"font-mono text-xs text-muted-foreground"},Ee={class:"font-mono text-xs text-primary"},Le=D({__name:"ExtractionReviewPanel",props:{models:{},extractions:{},selectedModels:{}},emits:["select-extraction"],setup(g,{emit:o}){const a=g,z=o,v={collection:{icon:ze,color:"text-blue-500",bg:"bg-blue-500/10"},singleton:{icon:X,color:"text-teal-500",bg:"bg-teal-500/10"},document:{icon:ye,color:"text-green-500",bg:"bg-green-500/10"},dictionary:{icon:ve,color:"text-amber-500",bg:"bg-amber-500/10"}};function x(f){return v[f]??v.collection}const b=U(()=>{const f=new Map;for(const i of a.extractions)f.has(i.model)||f.set(i.model,[]),f.get(i.model).push(i);return[...f.entries()].toSorted((i,_)=>_[1].length-i[1].length)});function p(f){return a.models.find(i=>i.id===f)}function $(f){return a.selectedModels.has(f)}return(f,i)=>(l(),m("div",je,[(l(!0),m(M,null,T(b.value,([_,R])=>(l(),h(e(ne),{key:_,"default-open":b.value.length<=5},{default:r(()=>[s(e(F),{class:N(e(L)(!$(_)&&"opacity-50"))},{default:r(()=>[s(e(te),{class:"flex w-full items-center justify-between p-4 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:r(()=>{var y,A,q,G;return[t("div",Ce,[t("div",{class:N(e(L)("flex size-8 items-center justify-center rounded-md",x(((y=p(_))==null?void 0:y.kind)??"collection").bg))},[(l(),h(ie(x(((A=p(_))==null?void 0:A.kind)??"collection").icon),{class:N(e(L)("size-4",x(((q=p(_))==null?void 0:q.kind)??"collection").color))},null,8,["class"]))],2),t("span",Be,n(_),1),s(e(w),{variant:"secondary",class:"text-[10px]"},{default:r(()=>[u(n(R.length)+" strings",1)]),_:2},1024),(G=p(_))!=null&&G.domain?(l(),h(e(w),{key:0,variant:"outline",class:"text-[10px]"},{default:r(()=>{var c;return[u(n((c=p(_))==null?void 0:c.domain),1)]}),_:2},1024)):B("",!0)]),s(e(ae),{class:"size-4 text-muted-foreground transition-transform"})]}),_:2},1024),s(e(se),null,{default:r(()=>[s(e(W)),t("div",Re,[(l(!0),m(M,null,T(R,(y,A)=>(l(),m("button",{key:A,class:"flex w-full items-start gap-3 p-4 text-left hover:bg-muted/30 transition-colors",onClick:q=>z("select-extraction",y)},[s(e(oe),{class:"mt-0.5 size-4 shrink-0 text-muted-foreground"}),t("div",Me,[t("p",Ae,'"'+n(y.value)+'"',1),t("div",Fe,[t("span",Ne,n(y.file),1),s(e(w),{variant:"outline",class:"text-[10px]"},{default:r(()=>[u("L"+n(y.line),1)]),_:2},1024),s(e(ee),{class:"size-3 text-muted-foreground"}),t("span",Ee,n(y.model)+"."+n(y.field),1),y.locale?(l(),h(e(w),{key:0,variant:"secondary",class:"text-[10px]"},{default:r(()=>[u(n(y.locale),1)]),_:2},1024)):B("",!0)])])],8,Se))),128))])]),_:2},1024)]),_:2},1032,["class"])]),_:2},1032,["default-open"]))),128))]))}}),Te={class:"flex items-center justify-between"},De={class:"flex items-center gap-2 mb-2"},qe={class:"flex size-6 items-center justify-center rounded bg-blue-500/10"},Ve={class:"font-mono text-xs text-muted-foreground"},Ge={key:0,class:"flex items-center justify-center py-4"},Oe={key:1,class:"rounded-md border bg-muted/30 overflow-hidden font-mono text-xs"},He={class:"w-8 shrink-0 text-right text-muted-foreground/50 select-none"},Ke={class:"flex justify-center"},Ue={class:"flex items-center gap-2 mb-2"},We={class:"flex size-6 items-center justify-center rounded bg-emerald-500/10"},Xe={class:"rounded-md border bg-muted/30 p-3"},Je={class:"flex items-center gap-2 flex-wrap"},Qe={class:"font-mono text-xs text-primary"},Ye={class:"text-xs text-foreground"},Ze={class:"flex justify-center"},Ie={class:"flex items-center gap-2 mb-2"},et={class:"flex size-6 items-center justify-center rounded bg-violet-500/10"},tt={class:"rounded-md border overflow-hidden font-mono text-xs"},st={class:"flex gap-3 px-3 py-1.5 bg-red-500/5 text-red-600 dark:text-red-400 line-through"},nt={class:"flex gap-3 px-3 py-1.5 bg-green-500/5 text-green-600 dark:text-green-400"},at=D({__name:"SourceTracePanel",props:{extraction:{},patches:{}},emits:["close"],setup(g,{emit:o}){const a=g,z=o,v=me(),x=P([]),b=P(0),p=P(!1);function $(){return a.extraction?a.patches.find(f=>f.file===a.extraction.file&&f.line===a.extraction.line):null}return ce(()=>a.extraction,async f=>{if(!f){x.value=[];return}p.value=!0;try{const i=await v.get(`/normalize/file-context?file=${encodeURIComponent(f.file)}&line=${f.line}&range=4`);x.value=i.lines,b.value=i.highlight}catch{x.value=[]}finally{p.value=!1}},{immediate:!0}),(f,i)=>g.extraction?(l(),h(e(F),{key:0,class:"border-primary/20"},{default:r(()=>[s(e(le),{class:"pb-3"},{default:r(()=>[t("div",Te,[s(e(re),{class:"text-sm"},{default:r(()=>[...i[1]||(i[1]=[u("Source Trace",-1)])]),_:1}),t("button",{class:"rounded-md p-1 hover:bg-muted transition-colors",onClick:i[0]||(i[0]=_=>z("close"))},[s(e(de),{class:"size-4 text-muted-foreground"})])])]),_:1}),s(e(V),{class:"space-y-4"},{default:r(()=>[t("div",null,[t("div",De,[t("div",qe,[s(e(X),{class:"size-3.5 text-blue-500"})]),i[2]||(i[2]=t("span",{class:"text-xs font-medium text-foreground"},"Source File",-1)),t("span",Ve,n(g.extraction.file)+":"+n(g.extraction.line),1)]),p.value?(l(),m("div",Ge,[s(e(E),{class:"size-4 animate-spin text-muted-foreground"})])):x.value.length>0?(l(),m("div",Oe,[(l(!0),m(M,null,T(x.value,_=>(l(),m("div",{key:_.num,class:N(e(L)("flex gap-3 px-3 py-0.5",_.num===b.value&&"bg-primary/10 border-l-2 border-primary"))},[t("span",He,n(_.num),1),t("span",{class:N(["whitespace-pre overflow-x-auto",_.num===b.value&&"text-foreground font-medium"])},n(_.content),3)],2))),128))])):B("",!0)]),t("div",Ke,[s(e(Y),{class:"size-5 text-muted-foreground"})]),t("div",null,[t("div",Ue,[t("div",We,[s(e(be),{class:"size-3.5 text-emerald-500"})]),i[3]||(i[3]=t("span",{class:"text-xs font-medium text-foreground"},"Content Entry",-1))]),t("div",Xe,[t("div",Je,[s(e(w),{variant:"secondary",class:"font-mono text-[10px]"},{default:r(()=>[u(n(g.extraction.model),1)]),_:1}),s(e(ee),{class:"size-3 text-muted-foreground"}),t("span",Qe,n(g.extraction.field),1),i[4]||(i[4]=t("span",{class:"text-xs text-muted-foreground"},"=",-1)),t("span",Ye,'"'+n(g.extraction.value)+'"',1),g.extraction.locale?(l(),h(e(w),{key:0,variant:"outline",class:"text-[10px]"},{default:r(()=>[u(n(g.extraction.locale),1)]),_:1})):B("",!0)])])]),$()?(l(),m(M,{key:0},[t("div",Ze,[s(e(Y),{class:"size-5 text-muted-foreground"})]),t("div",null,[t("div",Ie,[t("div",et,[s(e($e),{class:"size-3.5 text-violet-500"})]),i[5]||(i[5]=t("span",{class:"text-xs font-medium text-foreground"},"Reuse Patch",-1))]),t("div",tt,[t("div",st,[i[6]||(i[6]=t("span",{class:"w-6 shrink-0 text-right select-none"},"-",-1)),t("span",null,n($().old_value),1)]),t("div",nt,[i[7]||(i[7]=t("span",{class:"w-6 shrink-0 text-right select-none"},"+",-1)),t("span",null,n($().new_expression),1)])])])],64)):B("",!0)]),_:1})]),_:1})):B("",!0)}}),ot={class:"space-y-3"},lt={class:"flex items-center gap-2"},rt={class:"font-mono text-xs text-foreground"},it={class:"divide-y divide-border"},ct={class:"flex items-center gap-2 mb-2"},dt={class:"rounded-md border overflow-hidden font-mono text-xs"},ut={class:"flex items-start gap-2 px-3 py-1.5 bg-red-500/5"},mt={class:"text-red-600 dark:text-red-400 line-through whitespace-pre-wrap break-all"},ft={class:"flex items-start gap-2 px-3 py-1.5 bg-green-500/5"},pt={class:"text-green-600 dark:text-green-400 whitespace-pre-wrap break-all"},xt=D({__name:"PatchPreviewPanel",props:{patches:{}},setup(g){const o=g,a=U(()=>{const z=new Map;for(const v of o.patches)z.has(v.file)||z.set(v.file,[]),z.get(v.file).push(v);return[...z.entries()].toSorted((v,x)=>x[1].length-v[1].length)});return(z,v)=>(l(),m("div",ot,[(l(!0),m(M,null,T(a.value,([x,b])=>(l(),h(e(ne),{key:x,"default-open":a.value.length<=5},{default:r(()=>[s(e(F),null,{default:r(()=>[s(e(te),{class:"flex w-full items-center justify-between p-3 hover:bg-muted/50 transition-colors rounded-t-lg"},{default:r(()=>[t("div",lt,[s(e(X),{class:"size-4 text-muted-foreground"}),t("span",rt,n(x),1),s(e(w),{variant:"secondary",class:"text-[10px]"},{default:r(()=>[u(n(b.length),1)]),_:2},1024)]),s(e(ae),{class:"size-4 text-muted-foreground transition-transform"})]),_:2},1024),s(e(se),null,{default:r(()=>[s(e(W)),t("div",it,[(l(!0),m(M,null,T(b,(p,$)=>(l(),m("div",{key:$,class:"p-3"},[t("div",ct,[s(e(w),{variant:"outline",class:"text-[10px]"},{default:r(()=>[u("L"+n(p.line),1)]),_:2},1024)]),t("div",dt,[t("div",ut,[s(e(ke),{class:"mt-0.5 size-3 shrink-0 text-red-500"}),t("span",mt,n(p.old_value),1)]),t("div",ft,[s(e(we),{class:"mt-0.5 size-3 shrink-0 text-green-500"}),t("span",pt,n(p.new_expression),1)])])]))),128))])]),_:2},1024)]),_:2},1024)]),_:2},1032,["default-open"]))),128))]))}}),_t={class:"px-6 py-6"},gt={key:0,class:"flex justify-center py-12"},ht={key:1,class:"space-y-8"},vt={class:"flex flex-col items-center py-12 text-center"},yt={class:"text-xl font-semibold"},zt={class:"mt-2 max-w-md text-sm text-muted-foreground"},bt={class:"mx-auto max-w-2xl"},kt={class:"space-y-4"},wt={class:"flex items-start gap-4"},$t={class:"text-sm font-medium"},Pt={class:"text-xs text-muted-foreground mt-0.5"},jt={class:"flex items-start gap-4"},Ct={class:"text-sm font-medium"},Bt={class:"text-xs text-muted-foreground mt-0.5"},Rt={class:"flex items-start gap-4"},St={class:"text-sm font-medium"},Mt={class:"text-xs text-muted-foreground mt-0.5"},At={class:"flex items-start gap-4"},Ft={class:"text-sm font-medium"},Nt={class:"text-xs text-muted-foreground mt-0.5"},Et={key:2,class:"space-y-6"},Lt={class:"text-sm font-semibold"},Tt={class:"text-xs text-muted-foreground mt-0.5"},Dt={class:"flex items-center gap-2"},qt={class:"max-w-md"},Vt={class:"text-foreground tabular-nums"},Gt={class:"text-foreground tabular-nums"},Ot={class:"text-foreground tabular-nums"},Ht={class:"text-foreground tabular-nums"},Kt={class:"text-foreground tabular-nums"},Ut={class:"grid grid-cols-1 lg:grid-cols-2 gap-4"},Wt={class:"text-sm font-semibold text-foreground mb-3"},Xt={class:"text-sm font-semibold text-foreground mb-3"},Jt={key:1,class:"flex flex-col items-center justify-center rounded-xl border border-dashed border-border py-12 text-center"},Qt={class:"text-xs text-muted-foreground"},Yt={key:1},Zt={class:"text-sm font-semibold text-foreground mb-3"},It={key:3,class:"space-y-6"},es={class:"flex flex-col items-center py-6 text-center"},ts={class:"flex size-14 items-center justify-center rounded-full bg-status-info/10 mb-4"},ss={class:"text-lg font-semibold"},ns={class:"mt-1 text-sm text-muted-foreground"},as={class:"space-y-3 max-w-2xl mx-auto"},os={class:"font-mono text-xs text-foreground flex-1 truncate"},ls={class:"max-w-2xl mx-auto"},rs={key:4,class:"space-y-8"},is={class:"flex flex-col items-center py-12 text-center"},cs={class:"flex size-16 items-center justify-center rounded-full bg-status-success/10 mb-4"},ds={class:"max-w-2xl mx-auto space-y-4"},Ss=D({__name:"NormalizePage",setup(g){const o=xe(),a=fe("serve-ui-texts").locale("en").get(),z=U(()=>{var c,d;return o.normalizePlan?"plan":(d=(c=o.normalizeResults)==null?void 0:c.pendingBranches)!=null&&d.length?"branches":A.value?"done":"empty"}),v=P(null),x=P(new Set),b=P(!1),p=P(!1),$=P(!1);function f(c){v.value=c}async function i(){b.value=!0;try{const c=x.value.size?[...x.value]:void 0;await o.approvePlan(c),j.success("Plan approved — extraction branch created. Review and merge below.",{duration:6e3}),await Promise.all([o.fetchNormalizePlan(),o.fetchNormalizeResults()])}catch(c){j.error(c instanceof Error?c.message:"Failed to approve plan")}finally{b.value=!1}}async function _(){p.value=!0;try{await o.rejectPlan(),o.normalizePlan=null,j.success("Plan rejected")}catch(c){j.error(c instanceof Error?c.message:"Failed to reject plan")}finally{p.value=!1}}const R=P(null),y=P(null),A=P(!1);async function q(c){var d,k;R.value=c;try{const S=await o.approveBranch(c);await o.fetchNormalizeResults(),j.success("Branch merged — tell your agent to continue with Phase 2",{duration:6e3}),S.base_advance==="blocked_diverged"&&S.warning&&j.warning(S.warning,{duration:1e4}),(k=(d=o.normalizeResults)==null?void 0:d.pendingBranches)!=null&&k.length||(A.value=!0)}catch(S){j.error(S instanceof Error?S.message:"Failed to merge branch")}finally{R.value=null}}async function G(c){y.value=c;try{await o.rejectBranch(c),await o.fetchNormalizeResults(),j.success("Branch deleted successfully")}catch(d){j.error(d instanceof Error?d.message:"Failed to delete branch")}finally{y.value=null}}return pe(c=>{c.type==="normalize:plan-updated"&&o.fetchNormalizePlan(),(c.type==="branch:created"||c.type==="branch:merged")&&o.fetchNormalizeResults()}),ue(async()=>{$.value=!0;try{if(await Promise.all([o.fetchNormalizePlan(),o.fetchNormalizeResults()]),o.normalizePlan)for(const c of o.normalizePlan.models)x.value.add(c.id)}catch(c){j.error(c instanceof Error?c.message:"Failed to load normalize data")}finally{$.value=!1}}),(c,d)=>(l(),m("div",null,[s(_e,{title:e(a)["normalize.normalize"],description:e(a)["normalize.content-extraction-and-i18n"]},null,8,["title","description"]),t("div",_t,[$.value?(l(),m("div",gt,[s(e(E),{class:"size-5 animate-spin text-muted-foreground"})])):z.value==="empty"?(l(),m("div",ht,[t("div",vt,[d[1]||(d[1]=t("img",{src:Pe,alt:"",class:"empty-illustration mb-6"},null,-1)),t("h2",yt,n(e(a)["normalize.extract-hardcoded-strings"]),1),t("p",zt,n(e(a)["normalize.normalize-scans-your-source"]),1)]),t("div",bt,[s(H,{title:e(a)["normalize.ask-your-ai-agent"]},{default:r(()=>[s(C,{prompt:e(a)["normalize.normalize-my-vue-project"]},null,8,["prompt"]),s(C,{prompt:e(a)["normalize.scan-srcpages-for-content"]},null,8,["prompt"]),s(C,{prompt:e(a)["normalize.extract-hero-section-text"]},null,8,["prompt"]),s(C,{prompt:e(a)["normalize.make-my-landing-page"]},null,8,["prompt"])]),_:1},8,["title"])]),s(e(F),{class:"mx-auto max-w-2xl"},{default:r(()=>[s(e(le),{class:"pb-3"},{default:r(()=>[s(e(re),{class:"text-sm font-medium flex items-center gap-2"},{default:r(()=>[s(e(ge),{class:"size-4 text-primary"}),u(" "+n(e(a)["normalize.how-it-works"]),1)]),_:1})]),_:1}),s(e(W)),s(e(V),{class:"pt-4"},{default:r(()=>[t("div",kt,[t("div",wt,[s(e(w),{variant:"secondary",class:"mt-0.5 shrink-0 size-7 flex items-center justify-center rounded-full font-mono text-xs"},{default:r(()=>[...d[2]||(d[2]=[u("1",-1)])]),_:1}),t("div",null,[t("p",$t,n(e(a)["normalize.prompt-your-ai-agent"]),1),t("p",Pt,n(e(a)["normalize.copy-a-prompt-above"]),1)])]),t("div",jt,[s(e(w),{variant:"secondary",class:"mt-0.5 shrink-0 size-7 flex items-center justify-center rounded-full font-mono text-xs"},{default:r(()=>[...d[3]||(d[3]=[u("2",-1)])]),_:1}),t("div",null,[t("p",Ct,n(e(a)["normalize.review-the-plan-here"]),1),t("p",Bt,n(e(a)["normalize.the-agent-sends-the"]),1)])]),t("div",Rt,[s(e(w),{variant:"secondary",class:"mt-0.5 shrink-0 size-7 flex items-center justify-center rounded-full font-mono text-xs"},{default:r(()=>[...d[4]||(d[4]=[u("3",-1)])]),_:1}),t("div",null,[t("p",St,n(e(a)["normalize.approve-or-request-changes"]),1),t("p",Mt,n(e(a)["normalize.approve-to-write-extractions"]),1)])]),t("div",At,[s(e(w),{variant:"secondary",class:"mt-0.5 shrink-0 size-7 flex items-center justify-center rounded-full font-mono text-xs"},{default:r(()=>[...d[5]||(d[5]=[u("4",-1)])]),_:1}),t("div",null,[t("p",Ft,n(e(a)["normalize.merge-and-continue"]),1),t("p",Nt,n(e(a)["normalize.merge-review-branches-into"]),1)])])])]),_:1})]),_:1})])):z.value==="plan"&&e(o).normalizePlan?(l(),m("div",Et,[s(e(F),null,{default:r(()=>[s(e(V),{class:"flex items-center justify-between p-4"},{default:r(()=>[t("div",null,[t("h3",Lt,n(e(a)["normalize.normalize-plan"]),1),t("p",Tt,[u(n(e(o).normalizePlan.extractions.length)+" "+n(e(a)["normalize.extractions-across"])+" "+n(e(o).normalizePlan.models.length)+" "+n(e(a)["normalize.models"])+" ",1),e(o).normalizePlan.patches.length?(l(),m(M,{key:0},[u(" · "+n(e(o).normalizePlan.patches.length)+" "+n(e(a)["normalize.patches"]),1)],64)):B("",!0)])]),t("div",Dt,[s(e(O),{variant:"outline",disabled:p.value||b.value,onClick:_},{default:r(()=>[p.value?(l(),h(e(E),{key:0,class:"size-4 animate-spin"})):(l(),h(e(Q),{key:1})),u(" "+n(p.value?"Rejecting...":"Reject"),1)]),_:1},8,["disabled"]),s(e(O),{disabled:b.value||p.value,onClick:i},{default:r(()=>[b.value?(l(),h(e(E),{key:0,class:"size-4 animate-spin"})):(l(),h(e(J),{key:1})),u(" "+n(b.value?"Applying...":"Approve & Apply"),1)]),_:1},8,["disabled"])])]),_:1})]),_:1}),t("div",qt,[s(H,{title:e(a)["normalize.request-changes-from-your"]},{default:r(()=>[s(C,{prompt:e(a)["normalize.adjust-the-normalize-plan"]},null,8,["prompt"]),s(C,{prompt:e(a)["normalize.remove-navigation-labels-from"]},null,8,["prompt"])]),_:1},8,["title"])]),e(o).normalizePlan.scan_stats?(l(),h(e(F),{key:0,class:"bg-muted/30"},{default:r(()=>[s(e(V),{class:"flex items-center gap-6 p-4 text-xs text-muted-foreground"},{default:r(()=>[t("span",null,[t("strong",Vt,n(e(o).normalizePlan.scan_stats.files_scanned),1),u(" "+n(e(a)["normalize.files-scanned"]),1)]),t("span",null,[t("strong",Gt,n(e(o).normalizePlan.scan_stats.raw_strings),1),u(" "+n(e(a)["normalize.strings-found"]),1)]),t("span",null,[t("strong",Ot,n(e(o).normalizePlan.scan_stats.candidates_sent),1),u(" "+n(e(a)["normalize.candidates"]),1)]),t("span",null,[t("strong",Ht,n(e(o).normalizePlan.scan_stats.extracted),1),u(" "+n(e(a)["normalize.extracted"]),1)]),t("span",null,[t("strong",Kt,n(e(o).normalizePlan.scan_stats.skipped),1),u(" "+n(e(a)["normalize.skipped"]),1)])]),_:1})]),_:1})):B("",!0),t("div",Ut,[t("div",null,[t("h3",Wt,n(e(a)["normalize.extractions"]),1),s(Le,{models:e(o).normalizePlan.models,extractions:e(o).normalizePlan.extractions,"selected-models":x.value,onSelectExtraction:f},null,8,["models","extractions","selected-models"])]),t("div",null,[t("h3",Xt,n(e(a)["normalize.source-trace"]),1),v.value?(l(),h(at,{key:0,extraction:v.value,patches:e(o).normalizePlan.patches,onClose:d[0]||(d[0]=k=>v.value=null)},null,8,["extraction","patches"])):(l(),m("div",Jt,[s(e(oe),{class:"size-6 text-muted-foreground/40 mb-2"}),t("p",Qt,n(e(a)["normalize.click-an-extraction-to"]),1)]))])]),e(o).normalizePlan.patches.length>0?(l(),m("div",Yt,[t("h3",Zt,n(e(a)["normalize.source-patches"]),1),s(xt,{patches:e(o).normalizePlan.patches},null,8,["patches"])])):B("",!0)])):z.value==="branches"&&e(o).normalizeResults?(l(),m("div",It,[t("div",es,[t("div",ts,[s(e(K),{class:"size-7 text-status-info"})]),t("h2",ss,n(e(a)["normalize.pending-normalize-branches"]),1),t("p",ns,n(e(a)["normalize.review-and-merge-normalize"]),1)]),t("div",as,[(l(!0),m(M,null,T(e(o).normalizeResults.pendingBranches,k=>(l(),h(e(F),{key:k.name,class:"overflow-hidden"},{default:r(()=>[s(e(V),{class:"flex items-center gap-3 p-4"},{default:r(()=>[s(e(K),{class:"size-4 text-status-info shrink-0"}),t("span",os,n(k.name),1),s(e(O),{variant:"outline",size:"sm",disabled:y.value===k.name||R.value===k.name,onClick:S=>G(k.name)},{default:r(()=>[y.value===k.name?(l(),h(e(E),{key:0,class:"size-4 animate-spin"})):(l(),h(e(Q),{key:1})),u(" "+n(e(a)["normalize.delete"]),1)]),_:2},1032,["disabled","onClick"]),s(e(O),{size:"sm",disabled:R.value===k.name||y.value===k.name,onClick:S=>q(k.name)},{default:r(()=>[R.value===k.name?(l(),h(e(E),{key:0,class:"size-4 animate-spin"})):(l(),h(e(K),{key:1})),u(" "+n(e(a)["normalize.merge"]),1)]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1024))),128))]),t("div",ls,[s(H,{title:e(a)["normalize.whats-next-ask-your"]},{default:r(()=>[s(C,{prompt:e(a)["normalize.continue-to-phase-2"]},null,8,["prompt"]),s(C,{prompt:e(a)["normalize.start-reuse-for-the"]},null,8,["prompt"])]),_:1},8,["title"])])])):z.value==="done"?(l(),m("div",rs,[t("div",is,[t("div",cs,[s(e(J),{class:"size-8 text-status-success"})]),d[6]||(d[6]=t("h2",{class:"text-xl font-semibold"},"Phase 1 complete",-1)),d[7]||(d[7]=t("p",{class:"mt-2 max-w-md text-sm text-muted-foreground"}," Content strings have been extracted into models and merged. Tell your AI agent to continue with Phase 2 — patching source files with content references. ",-1))]),t("div",ds,[s(H,{title:"Tell your agent"},{default:r(()=>[s(C,{prompt:"Continue to Phase 2 — patch serve-ui source files with content references",label:"recommended"}),s(C,{prompt:"Start reuse for all extracted content models in serve-ui domain"})]),_:1})])])):B("",!0),s(he,{message:e(a)["normalize.track-normalize-history-and"],class:"mt-6"},null,8,["message"])])]))}});export{Ss as default};
@@ -1,4 +1,4 @@
1
- import{P as m,l as b,d as f,u as x}from"./useWatch-BEMqYN2q.js";import{c as u,a as h,b as y,e as v,y as g,u as t,z as k,o,f as p,p as c,q as a,B as r,g as z,s as l,j as n}from"./index-ChZMsiq8.js";/**
1
+ import{P as m,l as b,d as f,u as x}from"./useWatch-jK8PaHZV.js";import{c as u,a as h,b as y,e as v,y as g,u as t,z as k,o,f as p,p as c,q as a,B as r,g as z,s as l,j as n}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,3 +1,3 @@
1
- import{_ as B,a1 as K,a6 as z,V as D,H as p,ae as W,w as g,k as G,af as J,a4 as q,a5 as H,N as Y,ag as F,U as T,Y as I,a2 as R,u as k,h as A,t as _,r as O,i as Q,M as V,ah as X,ai as Z,l as ee,a as te,$ as ne}from"./index-ChZMsiq8.js";import{k as re}from"./useWatch-BEMqYN2q.js";function Se(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[a=>{const u=B(r,a);if(u||u===null)return u;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(K(r,a),a)]}function Pe(e,t){var n;const r=D();return G(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),J(r)}function x(e,t){return q()?(H(e,t),!0):!1}function Te(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const a=()=>t(i);return x(a),{off:a}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(a=>a(...i))),clear:()=>{e.clear()}}}function xe(e){let t=!1,n;const r=F(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const M=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ie=e=>typeof e<"u",oe=Object.prototype.toString,ae=e=>oe.call(e)==="[object Object]",L=()=>{},Me=ue();function ue(){var e,t,n;return M&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function se(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function le(e,t={}){let n,r,o=L;const i=f=>{clearTimeout(f),o(),o=L};let a;return f=>{const d=p(e),s=p(t.maxWait);return n&&i(n),d<=0||s!==void 0&&s<=0?(r&&(i(r),r=void 0),Promise.resolve(f())):new Promise((l,v)=>{o=t.rejectOnCancel?v:l,a=f,s&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,l(a())},s)),n=setTimeout(()=>{r&&i(r),r=void 0,l(f())},d)})}}function U(e){return Array.isArray(e)?e:[e]}function ce(e){return T()}function Ce(e){if(!M)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...i)=>(t+=1,r||(r=F(!0),n=r.run(()=>e(...i))),x(o),n))}function fe(e){return I(e)?R(new Proxy({},{get(t,n,r){return k(Reflect.get(e.value,n,r))},set(t,n,r){return I(e.value[n])&&!I(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):R(e)}function de(e){return fe(A(e))}function $e(e,...t){const n=t.flat(),r=n[0];return de(()=>Object.fromEntries(typeof r=="function"?Object.entries(_(e)).filter(([o,i])=>!r(p(i),o)):Object.entries(_(e)).filter(o=>!n.includes(o[0]))))}function je(e,t=1e4){return W((n,r)=>{let o=p(e),i;const a=()=>setTimeout(()=>{o=p(e),r()},p(t));return x(()=>{clearTimeout(i)}),{get(){return n(),o},set(u){o=u,r(),clearTimeout(i),i=a()}}})}function Ne(e,t=200,n={}){return se(le(t,n),e)}function Ie(e,t){ce()&&Y(e,t)}function Ue(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=D(!1);let a;function u(){a&&(clearTimeout(a),a=void 0)}function f(){i.value=!1,u()}function d(...s){o&&e(),u(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...s)},p(t))}return r&&(i.value=!0,M&&d()),x(f),{isPending:z(i),start:d,stop:f}}function me(e,t,n){return g(e,t,{...n,immediate:!0})}function _e(e,t,n){return g(e,t,{...n,once:!0})}const $=M?window:void 0;function P(e){var t;const n=p(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ve(...e){const t=(r,o,i,a)=>(r.addEventListener(o,i,a),()=>r.removeEventListener(o,i,a)),n=A(()=>{const r=U(p(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return me(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>P(i)))!==null&&r!==void 0?r:[$].filter(i=>i!=null),U(p(n.value?e[1]:e[0])),U(k(n.value?e[2]:e[1])),p(n.value?e[3]:e[2])]},([r,o,i,a],u,f)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=ae(a)?{...a}:a,s=r.flatMap(l=>o.flatMap(v=>i.map(w=>t(l,v,w,d))));f(()=>{s.forEach(l=>l())})},{flush:"post"})}function pe(){const e=D(!1),t=T();return t&&Q(()=>{e.value=!0},t),e}function ye(e){const t=pe();return A(()=>(t.value,!!e()))}function he(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function De(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=$,eventName:i="keydown",passive:a=!1,dedupe:u=!1}=r,f=he(t);return ve(o,i,s=>{s.repeat&&p(u)||f(s)&&n(s)},a)}function ge(e){return JSON.parse(JSON.stringify(e))}function Re(e,t,n={}){const{window:r=$,...o}=n;let i;const a=ye(()=>r&&"ResizeObserver"in r),u=()=>{i&&(i.disconnect(),i=void 0)},f=g(A(()=>{const s=p(e);return Array.isArray(s)?s.map(l=>P(l)):[P(s)]}),s=>{if(u(),a.value&&r){i=new ResizeObserver(t);for(const l of s)l&&i.observe(l,o)}},{immediate:!0,flush:"post"}),d=()=>{u(),f()};return x(d),{isSupported:a,stop:d}}function Le(e,t,n,r={}){var o,i;const{clone:a=!1,passive:u=!1,eventName:f,deep:d=!1,defaultValue:s,shouldEmit:l}=r,v=T(),w=n||(v==null?void 0:v.emit)||(v==null||(o=v.$emit)===null||o===void 0?void 0:o.bind(v))||(v==null||(i=v.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(v==null?void 0:v.proxy));let E=f;t||(t="modelValue"),E=E||`update:${t.toString()}`;const j=c=>a?typeof a=="function"?a(c):ge(c):c,S=()=>ie(e[t])?j(e[t]):s,m=c=>{l?l(c)&&w(E,c):w(E,c)};if(u){const c=O(S());let y=!1;return g(()=>e[t],h=>{y||(y=!0,c.value=j(h),V(()=>y=!1))}),g(c,h=>{!y&&(h!==e[t]||d)&&m(h)},{deep:d}),c}else return A({get(){return S()},set(c){m(c)}})}function Fe(){const e=T(),t=O(),n=A(()=>r());X(()=>{n.value!==r()&&Z(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:P(t)}const o=Object.assign({},e.exposed),i={};for(const u in e.props)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>e.props[u]});if(Object.keys(o).length>0)for(const u in o)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>o[u]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(u){if(t.value=u,!!u&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>u instanceof Element?u:u.$el}),!(u instanceof Element)&&!Object.prototype.hasOwnProperty.call(u,"$el"))){const f=u.$.exposed,d=Object.assign({},i);for(const s in f)Object.defineProperty(d,s,{enumerable:!0,configurable:!0,get:()=>f[s]});e.exposed=d}}return{forwardRef:a,currentRef:t,currentElement:n}}function be(e,t){const n=O(e);function r(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=r(i)}}}function Oe(e,t){var S;const n=O({}),r=O("none"),o=O(e),i=e.value?"mounted":"unmounted";let a;const u=((S=t.value)==null?void 0:S.ownerDocument.defaultView)??$,{state:f,dispatch:d}=be(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),s=m=>{var c;if(M){const y=new CustomEvent(m,{bubbles:!1,cancelable:!1});(c=t.value)==null||c.dispatchEvent(y)}};g(e,async(m,c)=>{var h;const y=c!==m;if(await V(),y){const N=r.value,b=C(t.value);m?(d("MOUNT"),s("enter"),b==="none"&&s("after-enter")):b==="none"||b==="undefined"||((h=n.value)==null?void 0:h.display)==="none"?(d("UNMOUNT"),s("leave"),s("after-leave")):c&&N!==b?(d("ANIMATION_OUT"),s("leave")):(d("UNMOUNT"),s("after-leave"))}},{immediate:!0});const l=m=>{const c=C(t.value),y=c.includes(CSS.escape(m.animationName)),h=f.value==="mounted"?"enter":"leave";if(m.target===t.value&&y&&(s(`after-${h}`),d("ANIMATION_END"),!o.value)){const N=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=u==null?void 0:u.setTimeout(()=>{var b;((b=t.value)==null?void 0:b.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=N)})}m.target===t.value&&c==="none"&&d("ANIMATION_END")},v=m=>{m.target===t.value&&(r.value=C(t.value))},w=g(t,(m,c)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",v),m.addEventListener("animationcancel",l),m.addEventListener("animationend",l)):(d("ANIMATION_END"),a!==void 0&&(u==null||u.clearTimeout(a)),c==null||c.removeEventListener("animationstart",v),c==null||c.removeEventListener("animationcancel",l),c==null||c.removeEventListener("animationend",l))},{immediate:!0}),E=g(f,()=>{const m=C(t.value);r.value=f.value==="mounted"?m:"none"});return ee(()=>{w(),E()}),{isPresent:A(()=>["mounted","unmountSuspended"].includes(f.value))}}function C(e){return e&&getComputedStyle(e).animationName||"none"}var ke=te({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var d;const{present:r,forceMount:o}=_(e),i=O(),{isPresent:a}=Oe(r,i);n({present:a});let u=t.default({present:a.value});u=re(u||[]);const f=T();if(u&&(u==null?void 0:u.length)>1){const s=(d=f==null?void 0:f.parent)!=null&&d.type.name?`<${f.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${s}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(l=>` - ${l}`).join(`
1
+ import{_ as B,a1 as K,a6 as z,V as D,H as p,ae as W,w as g,k as G,af as J,a4 as q,a5 as H,N as Y,ag as F,U as T,Y as I,a2 as R,u as k,h as A,t as _,r as O,i as Q,M as V,ah as X,ai as Z,l as ee,a as te,$ as ne}from"./index-DRccbFO1.js";import{k as re}from"./useWatch-jK8PaHZV.js";function Se(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[a=>{const u=B(r,a);if(u||u===null)return u;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(K(r,a),a)]}function Pe(e,t){var n;const r=D();return G(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!==null&&n!==void 0?n:"sync"}),J(r)}function x(e,t){return q()?(H(e,t),!0):!1}function Te(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const a=()=>t(i);return x(a),{off:a}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(a=>a(...i))),clear:()=>{e.clear()}}}function xe(e){let t=!1,n;const r=F(!0);return((...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n))}const M=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ie=e=>typeof e<"u",oe=Object.prototype.toString,ae=e=>oe.call(e)==="[object Object]",L=()=>{},Me=ue();function ue(){var e,t,n;return M&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function se(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function le(e,t={}){let n,r,o=L;const i=f=>{clearTimeout(f),o(),o=L};let a;return f=>{const d=p(e),s=p(t.maxWait);return n&&i(n),d<=0||s!==void 0&&s<=0?(r&&(i(r),r=void 0),Promise.resolve(f())):new Promise((l,v)=>{o=t.rejectOnCancel?v:l,a=f,s&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,l(a())},s)),n=setTimeout(()=>{r&&i(r),r=void 0,l(f())},d)})}}function U(e){return Array.isArray(e)?e:[e]}function ce(e){return T()}function Ce(e){if(!M)return e;let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...i)=>(t+=1,r||(r=F(!0),n=r.run(()=>e(...i))),x(o),n))}function fe(e){return I(e)?R(new Proxy({},{get(t,n,r){return k(Reflect.get(e.value,n,r))},set(t,n,r){return I(e.value[n])&&!I(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):R(e)}function de(e){return fe(A(e))}function $e(e,...t){const n=t.flat(),r=n[0];return de(()=>Object.fromEntries(typeof r=="function"?Object.entries(_(e)).filter(([o,i])=>!r(p(i),o)):Object.entries(_(e)).filter(o=>!n.includes(o[0]))))}function je(e,t=1e4){return W((n,r)=>{let o=p(e),i;const a=()=>setTimeout(()=>{o=p(e),r()},p(t));return x(()=>{clearTimeout(i)}),{get(){return n(),o},set(u){o=u,r(),clearTimeout(i),i=a()}}})}function Ne(e,t=200,n={}){return se(le(t,n),e)}function Ie(e,t){ce()&&Y(e,t)}function Ue(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=D(!1);let a;function u(){a&&(clearTimeout(a),a=void 0)}function f(){i.value=!1,u()}function d(...s){o&&e(),u(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...s)},p(t))}return r&&(i.value=!0,M&&d()),x(f),{isPending:z(i),start:d,stop:f}}function me(e,t,n){return g(e,t,{...n,immediate:!0})}function _e(e,t,n){return g(e,t,{...n,once:!0})}const $=M?window:void 0;function P(e){var t;const n=p(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function ve(...e){const t=(r,o,i,a)=>(r.addEventListener(o,i,a),()=>r.removeEventListener(o,i,a)),n=A(()=>{const r=U(p(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return me(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>P(i)))!==null&&r!==void 0?r:[$].filter(i=>i!=null),U(p(n.value?e[1]:e[0])),U(k(n.value?e[2]:e[1])),p(n.value?e[3]:e[2])]},([r,o,i,a],u,f)=>{if(!(r!=null&&r.length)||!(o!=null&&o.length)||!(i!=null&&i.length))return;const d=ae(a)?{...a}:a,s=r.flatMap(l=>o.flatMap(v=>i.map(w=>t(l,v,w,d))));f(()=>{s.forEach(l=>l())})},{flush:"post"})}function pe(){const e=D(!1),t=T();return t&&Q(()=>{e.value=!0},t),e}function ye(e){const t=pe();return A(()=>(t.value,!!e()))}function he(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function De(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=$,eventName:i="keydown",passive:a=!1,dedupe:u=!1}=r,f=he(t);return ve(o,i,s=>{s.repeat&&p(u)||f(s)&&n(s)},a)}function ge(e){return JSON.parse(JSON.stringify(e))}function Re(e,t,n={}){const{window:r=$,...o}=n;let i;const a=ye(()=>r&&"ResizeObserver"in r),u=()=>{i&&(i.disconnect(),i=void 0)},f=g(A(()=>{const s=p(e);return Array.isArray(s)?s.map(l=>P(l)):[P(s)]}),s=>{if(u(),a.value&&r){i=new ResizeObserver(t);for(const l of s)l&&i.observe(l,o)}},{immediate:!0,flush:"post"}),d=()=>{u(),f()};return x(d),{isSupported:a,stop:d}}function Le(e,t,n,r={}){var o,i;const{clone:a=!1,passive:u=!1,eventName:f,deep:d=!1,defaultValue:s,shouldEmit:l}=r,v=T(),w=n||(v==null?void 0:v.emit)||(v==null||(o=v.$emit)===null||o===void 0?void 0:o.bind(v))||(v==null||(i=v.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(v==null?void 0:v.proxy));let E=f;t||(t="modelValue"),E=E||`update:${t.toString()}`;const j=c=>a?typeof a=="function"?a(c):ge(c):c,S=()=>ie(e[t])?j(e[t]):s,m=c=>{l?l(c)&&w(E,c):w(E,c)};if(u){const c=O(S());let y=!1;return g(()=>e[t],h=>{y||(y=!0,c.value=j(h),V(()=>y=!1))}),g(c,h=>{!y&&(h!==e[t]||d)&&m(h)},{deep:d}),c}else return A({get(){return S()},set(c){m(c)}})}function Fe(){const e=T(),t=O(),n=A(()=>r());X(()=>{n.value!==r()&&Z(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:P(t)}const o=Object.assign({},e.exposed),i={};for(const u in e.props)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>e.props[u]});if(Object.keys(o).length>0)for(const u in o)Object.defineProperty(i,u,{enumerable:!0,configurable:!0,get:()=>o[u]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function a(u){if(t.value=u,!!u&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>u instanceof Element?u:u.$el}),!(u instanceof Element)&&!Object.prototype.hasOwnProperty.call(u,"$el"))){const f=u.$.exposed,d=Object.assign({},i);for(const s in f)Object.defineProperty(d,s,{enumerable:!0,configurable:!0,get:()=>f[s]});e.exposed=d}}return{forwardRef:a,currentRef:t,currentElement:n}}function be(e,t){const n=O(e);function r(i){return t[n.value][i]??n.value}return{state:n,dispatch:i=>{n.value=r(i)}}}function Oe(e,t){var S;const n=O({}),r=O("none"),o=O(e),i=e.value?"mounted":"unmounted";let a;const u=((S=t.value)==null?void 0:S.ownerDocument.defaultView)??$,{state:f,dispatch:d}=be(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),s=m=>{var c;if(M){const y=new CustomEvent(m,{bubbles:!1,cancelable:!1});(c=t.value)==null||c.dispatchEvent(y)}};g(e,async(m,c)=>{var h;const y=c!==m;if(await V(),y){const N=r.value,b=C(t.value);m?(d("MOUNT"),s("enter"),b==="none"&&s("after-enter")):b==="none"||b==="undefined"||((h=n.value)==null?void 0:h.display)==="none"?(d("UNMOUNT"),s("leave"),s("after-leave")):c&&N!==b?(d("ANIMATION_OUT"),s("leave")):(d("UNMOUNT"),s("after-leave"))}},{immediate:!0});const l=m=>{const c=C(t.value),y=c.includes(CSS.escape(m.animationName)),h=f.value==="mounted"?"enter":"leave";if(m.target===t.value&&y&&(s(`after-${h}`),d("ANIMATION_END"),!o.value)){const N=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=u==null?void 0:u.setTimeout(()=>{var b;((b=t.value)==null?void 0:b.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=N)})}m.target===t.value&&c==="none"&&d("ANIMATION_END")},v=m=>{m.target===t.value&&(r.value=C(t.value))},w=g(t,(m,c)=>{m?(n.value=getComputedStyle(m),m.addEventListener("animationstart",v),m.addEventListener("animationcancel",l),m.addEventListener("animationend",l)):(d("ANIMATION_END"),a!==void 0&&(u==null||u.clearTimeout(a)),c==null||c.removeEventListener("animationstart",v),c==null||c.removeEventListener("animationcancel",l),c==null||c.removeEventListener("animationend",l))},{immediate:!0}),E=g(f,()=>{const m=C(t.value);r.value=f.value==="mounted"?m:"none"});return ee(()=>{w(),E()}),{isPresent:A(()=>["mounted","unmountSuspended"].includes(f.value))}}function C(e){return e&&getComputedStyle(e).animationName||"none"}var ke=te({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var d;const{present:r,forceMount:o}=_(e),i=O(),{isPresent:a}=Oe(r,i);n({present:a});let u=t.default({present:a.value});u=re(u||[]);const f=T();if(u&&(u==null?void 0:u.length)>1){const s=(d=f==null?void 0:f.parent)!=null&&d.type.name?`<${f.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${s}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(l=>` - ${l}`).join(`
2
2
  `)].join(`
3
3
  `))}return()=>o.value||r.value||a.value?ne(t.default({present:a.value})[0],{ref:s=>{const l=P(s);return typeof(l==null?void 0:l.hasAttribute)>"u"||(l!=null&&l.hasAttribute("data-reka-popper-content-wrapper")?i.value=l.firstElementChild:i.value=l),l}}):null}});export{ke as P,Re as a,Ne as b,Se as c,be as d,P as e,Le as f,$e as g,Ce as h,M as i,Me as j,ve as k,xe as l,x as m,Te as n,De as o,pe as p,Pe as q,je as r,Ue as s,Ie as t,Fe as u,_e as w};
@@ -1 +1 @@
1
- import{P as h,r as m}from"./useWatch-BEMqYN2q.js";import{a as l,o as u,b as p,e as d,f as c,m as _,u as o,h as s,J as y,K as B,z as S}from"./index-ChZMsiq8.js";var g=l({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,t=["horizontal","vertical"];function n(r){return t.includes(r)}const i=s(()=>n(e.orientation)?e.orientation:"horizontal"),f=s(()=>i.value==="vertical"?e.orientation:void 0),v=s(()=>e.decorative?{role:"none"}:{"aria-orientation":f.value,role:"separator"});return(r,P)=>(u(),p(o(h),_({as:r.as,"as-child":r.asChild,"data-orientation":i.value},v.value),{default:d(()=>[c(r.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),z=g,q=l({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return(t,n)=>(u(),p(z,y(B(e)),{default:d(()=>[c(t.$slots,"default")]),_:3},16))}}),O=q;const k=l({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,t=m(e,"class");return(n,i)=>(u(),p(o(O),_({"data-slot":"separator"},o(t),{class:o(S)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e.class)}),null,16,["class"]))}});export{k as _};
1
+ import{P as h,r as m}from"./useWatch-jK8PaHZV.js";import{a as l,o as u,b as p,e as d,f as c,m as _,u as o,h as s,J as y,K as B,z as S}from"./index-DRccbFO1.js";var g=l({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a,t=["horizontal","vertical"];function n(r){return t.includes(r)}const i=s(()=>n(e.orientation)?e.orientation:"horizontal"),f=s(()=>i.value==="vertical"?e.orientation:void 0),v=s(()=>e.decorative?{role:"none"}:{"aria-orientation":f.value,role:"separator"});return(r,P)=>(u(),p(o(h),_({as:r.as,"as-child":r.asChild,"data-orientation":i.value},v.value),{default:d(()=>[c(r.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),z=g,q=l({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const e=a;return(t,n)=>(u(),p(z,y(B(e)),{default:d(()=>[c(t.$slots,"default")]),_:3},16))}}),O=q;const k=l({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a,t=m(e,"class");return(n,i)=>(u(),p(o(O),_({"data-slot":"separator"},o(t),{class:o(S)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e.class)}),null,16,["class"]))}});export{k as _};
@@ -1,4 +1,4 @@
1
- import{a as n}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{d as l}from"./useWatch-BEMqYN2q.js";import{c,a as d,p,q as t,B as o,j as r,u as s,e as m,o as u,s as f}from"./index-ChZMsiq8.js";/**
1
+ import{a as n}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{d as l}from"./useWatch-jK8PaHZV.js";import{c,a as d,p,q as t,B as o,j as r,u as s,e as m,o as u,s as f}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{u as Ft,a as Ye,b as Mt}from"./useId-D0eDf3m4.js";import{r as Ht,m as Wt,n as zt,e as It,i as mt,u as j,o as Vt,p as jt,c as Ae,q as Kt,s as wt,f as Xt,k as rt,P as Yt}from"./Presence-CfATKqRO.js";import{c as bt,k as le,r as B,i as Ue,h as _,H as ve,M as Fe,a as S,o as T,b as R,e as D,f as k,u as y,n as Ge,a2 as Ut,T as Gt,g as Me,a3 as xt,p as ae,m as J,w as xe,a4 as Zt,a5 as Jt,a6 as de,V as Qt,j as G,a7 as en,J as Te,K as De,t as tn,s as nn,B as _e,I as on,A as He,a8 as rn,z as We,y as it,q as st,Z as sn,S as an}from"./index-ChZMsiq8.js";import{P as ge,r as ln}from"./useWatch-BEMqYN2q.js";import{S as un}from"./shield-check-CiRjJIVW.js";/**
1
+ import{u as Ft,a as Ye,b as Mt}from"./useId-D77Djrst.js";import{r as Ht,m as Wt,n as zt,e as It,i as mt,u as j,o as Vt,p as jt,c as Ae,q as Kt,s as wt,f as Xt,k as rt,P as Yt}from"./Presence-CwTW6JV8.js";import{c as bt,k as le,r as B,i as Ue,h as _,H as ve,M as Fe,a as S,o as T,b as R,e as D,f as k,u as y,n as Ge,a2 as Ut,T as Gt,g as Me,a3 as xt,p as ae,m as J,w as xe,a4 as Zt,a5 as Jt,a6 as de,V as Qt,j as G,a7 as en,J as Te,K as De,t as tn,s as nn,B as _e,I as on,A as He,a8 as rn,z as We,y as it,q as st,Z as sn,S as an}from"./index-DRccbFO1.js";import{P as ge,r as ln}from"./useWatch-jK8PaHZV.js";import{S as un}from"./shield-check-COBaQC43.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as G,a as ue,i as ve,p as u,j as t,e as n,u as e,q as a,L as X,g as f,s as m,B as l,F as k,y as g,z as w,x as q,h as y,r as h,G as me,o as r,S as U,Z as B,b as _,A as E,C as fe}from"./index-ChZMsiq8.js";import{d as _e,u as pe,_ as b}from"./useWatch-BEMqYN2q.js";import{u as xe}from"./content-CUJS4qD7.js";import{_ as ge,a as C}from"./PageHeader.vue_vue_type_script_setup_true_lang-f_qa-M1s.js";import{_ as ye}from"./StudioHint.vue_vue_type_script_setup_true_lang-C_9M35tB.js";import{_ as Y,a as D}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-DGijfAoG.js";import{_ as he}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CNzxpJIB.js";import{_ as z,a as ee,b as te,c as se}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-ClPT-9J4.js";import{_ as M}from"./CardContent.vue_vue_type_script_setup_true_lang-Wep4RMkj.js";import{_ as ae}from"./Separator.vue_vue_type_script_setup_true_lang-D-ZdYJPm.js";import{S as be}from"./shield-check-CiRjJIVW.js";import{C as O}from"./circle-alert-DHoba5Yl.js";import{D as le}from"./database-DXeLd4fP.js";import{C as ne}from"./chevron-down-DxPRdtQ2.js";import"./useId-D0eDf3m4.js";import"./Presence-CfATKqRO.js";/**
1
+ import{c as G,a as ue,i as ve,p as u,j as t,e as n,u as e,q as a,L as X,g as f,s as m,B as l,F as k,y as g,z as w,x as q,h as y,r as h,G as me,o as r,S as U,Z as B,b as _,A as E,C as fe}from"./index-DRccbFO1.js";import{d as _e,u as pe,_ as b}from"./useWatch-jK8PaHZV.js";import{u as xe}from"./content-CpU25d4T.js";import{_ as ge,a as C}from"./PageHeader.vue_vue_type_script_setup_true_lang-B4RP_f6D.js";import{_ as ye}from"./StudioHint.vue_vue_type_script_setup_true_lang-njj2MiMe.js";import{_ as Y,a as D}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-aUmPXZcx.js";import{_ as he}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CKSr5l6Z.js";import{_ as z,a as ee,b as te,c as se}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C1wEA-d3.js";import{_ as M}from"./CardContent.vue_vue_type_script_setup_true_lang-wzodQHah.js";import{_ as ae}from"./Separator.vue_vue_type_script_setup_true_lang-Cfw9azsF.js";import{S as be}from"./shield-check-COBaQC43.js";import{C as O}from"./circle-alert-CK5y4MwL.js";import{D as le}from"./database-Yx3eEqcB.js";import{C as ne}from"./chevron-down-DYr0P7tu.js";import"./useId-D77Djrst.js";import"./Presence-CwTW6JV8.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as o}from"./index-ChZMsiq8.js";/**
1
+ import{c as o}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-ChZMsiq8.js";/**
1
+ import{c as e}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-ChZMsiq8.js";/**
1
+ import{c as a}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-ChZMsiq8.js";/**
1
+ import{c as a}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-ChZMsiq8.js";/**
1
+ import{c as a}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as o}from"./index-ChZMsiq8.js";/**
1
+ import{c as o}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as o}from"./index-ChZMsiq8.js";/**
1
+ import{c as o}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-ChZMsiq8.js";/**
1
+ import{c as e}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{d as C,r as n}from"./index-ChZMsiq8.js";import{j as L}from"./useWatch-BEMqYN2q.js";const V=C("content",()=>{const e=L(),o=n(null),u=n(null),c=n(null),f=n([]),v=n(null),a=n(!1),i=n(null);async function d(t,l,h,p){a.value=!0;try{const r=new URLSearchParams;l&&r.set("locale",l),h!==void 0&&r.set("limit",String(h)),p!==void 0&&r.set("offset",String(p));const m=r.toString();o.value=await e.get(`/content/${t}${m?`?${m}`:""}`)}finally{a.value=!1}}async function g(t){a.value=!0;try{u.value=await e.get(`/describe/${t}`)}finally{a.value=!1}}async function b(t){a.value=!0;try{c.value=await e.get(`/validate${t?`?model=${t}`:""}`)}finally{a.value=!1}}async function w(){a.value=!0;try{c.value=await e.get("/validate?fix=true")}finally{a.value=!1}}async function z(){a.value=!0;try{const t=await e.get("/branches");f.value=t.branches}finally{a.value=!1}}async function $(t){a.value=!0;try{v.value=await e.get(`/branches/diff?name=${encodeURIComponent(t)}`)}finally{a.value=!1}}const y=n([]);async function S(t=50){a.value=!0;try{const l=await e.get(`/history?limit=${t}`);y.value=l.entries}finally{a.value=!1}}async function j(t){return e.post("/branches/approve",{branch:t})}async function P(t){return e.post("/branches/reject",{branch:t})}const s=n(null);async function B(){try{const t=await e.get("/normalize/plan");s.value=t.plan}catch{s.value=null}}async function D(){try{i.value=await e.get("/normalize/results")}catch{i.value=null}}async function R(t){return e.post("/normalize/plan/approve",t?{models:t}:{})}async function x(){return e.post("/normalize/plan/reject",{})}return{contentList:o,modelDescription:u,validation:c,branches:f,branchDiff:v,history:y,normalizePlan:s,loading:a,normalizeResults:i,fetchContent:d,fetchModelDescription:g,fetchValidation:b,fetchValidationWithFix:w,fetchBranches:z,fetchBranchDiff:$,fetchHistory:S,approveBranch:j,rejectBranch:P,fetchNormalizePlan:B,fetchNormalizeResults:D,approvePlan:R,rejectPlan:x}});export{V as u};
1
+ import{d as C,r as n}from"./index-DRccbFO1.js";import{j as L}from"./useWatch-jK8PaHZV.js";const V=C("content",()=>{const e=L(),o=n(null),u=n(null),c=n(null),f=n([]),v=n(null),a=n(!1),i=n(null);async function d(t,l,h,p){a.value=!0;try{const r=new URLSearchParams;l&&r.set("locale",l),h!==void 0&&r.set("limit",String(h)),p!==void 0&&r.set("offset",String(p));const m=r.toString();o.value=await e.get(`/content/${t}${m?`?${m}`:""}`)}finally{a.value=!1}}async function g(t){a.value=!0;try{u.value=await e.get(`/describe/${t}`)}finally{a.value=!1}}async function b(t){a.value=!0;try{c.value=await e.get(`/validate${t?`?model=${t}`:""}`)}finally{a.value=!1}}async function w(){a.value=!0;try{c.value=await e.get("/validate?fix=true")}finally{a.value=!1}}async function z(){a.value=!0;try{const t=await e.get("/branches");f.value=t.branches}finally{a.value=!1}}async function $(t){a.value=!0;try{v.value=await e.get(`/branches/diff?name=${encodeURIComponent(t)}`)}finally{a.value=!1}}const y=n([]);async function S(t=50){a.value=!0;try{const l=await e.get(`/history?limit=${t}`);y.value=l.entries}finally{a.value=!1}}async function j(t){return e.post("/branches/approve",{branch:t})}async function P(t){return e.post("/branches/reject",{branch:t})}const s=n(null);async function B(){try{const t=await e.get("/normalize/plan");s.value=t.plan}catch{s.value=null}}async function D(){try{i.value=await e.get("/normalize/results")}catch{i.value=null}}async function R(t){return e.post("/normalize/plan/approve",t?{models:t}:{})}async function x(){return e.post("/normalize/plan/reject",{})}return{contentList:o,modelDescription:u,validation:c,branches:f,branchDiff:v,history:y,normalizePlan:s,loading:a,normalizeResults:i,fetchContent:d,fetchModelDescription:g,fetchValidation:b,fetchValidationWithFix:w,fetchBranches:z,fetchBranchDiff:$,fetchHistory:S,approveBranch:j,rejectBranch:P,fetchNormalizePlan:B,fetchNormalizeResults:D,approvePlan:R,rejectPlan:x}});export{V as u};
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-ChZMsiq8.js";/**
1
+ import{c as e}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as a}from"./index-ChZMsiq8.js";/**
1
+ import{c as a}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as e}from"./index-ChZMsiq8.js";/**
1
+ import{c as e}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-ChZMsiq8.js";/**
1
+ import{c}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c}from"./index-ChZMsiq8.js";/**
1
+ import{c}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{c as y}from"./index-ChZMsiq8.js";/**
1
+ import{c as y}from"./index-DRccbFO1.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.