contentrain 0.1.0 → 0.1.3

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 (59) hide show
  1. package/README.md +10 -3
  2. package/dist/index.mjs +2 -1
  3. package/dist/serve-ui/assets/{AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js → AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js} +1 -1
  4. package/dist/serve-ui/assets/{AppLayout-CJFq2ApF.js → AppLayout-DVU3pVVx.js} +1 -1
  5. package/dist/serve-ui/assets/{BranchDetailPage-DzSu3JlE.js → BranchDetailPage-0mjYT8hQ.js} +1 -1
  6. package/dist/serve-ui/assets/{BranchesPage-ZSG-l44J.js → BranchesPage-CD87MWWL.js} +1 -1
  7. package/dist/serve-ui/assets/{CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C4oejwcu.js → CollapsibleTrigger.vue_vue_type_script_setup_true_lang-J5CJUyNC.js} +1 -1
  8. package/dist/serve-ui/assets/{Collection-zzx9pNd2.js → Collection-Ba6qM261.js} +1 -1
  9. package/dist/serve-ui/assets/ConfigProvider-RwBwhpvF.js +1 -0
  10. package/dist/serve-ui/assets/ContentListPage-BOo6tllk.js +109 -0
  11. package/dist/serve-ui/assets/ContentListPage-tCu3OQw5.css +1 -0
  12. package/dist/serve-ui/assets/{ContentPage-4sQsAlY2.js → ContentPage-s5AH95JG.js} +1 -1
  13. package/dist/serve-ui/assets/{DashboardPage-CZDlnvAE.js → DashboardPage-RZb06SoC.js} +1 -1
  14. package/dist/serve-ui/assets/{DialogTitle.vue_vue_type_script_setup_true_lang-CBu_dmA6.js → DialogTitle.vue_vue_type_script_setup_true_lang-CmziXzbX.js} +1 -1
  15. package/dist/serve-ui/assets/{Input.vue_vue_type_script_setup_true_lang-otPltlZG.js → Input.vue_vue_type_script_setup_true_lang-BM6hi7u6.js} +1 -1
  16. package/dist/serve-ui/assets/{ModelDetailPage-BMquKCtH.js → ModelDetailPage-BKq0bvlh.js} +1 -1
  17. package/dist/serve-ui/assets/{ModelsPage-C_K-aWXf.js → ModelsPage-B6o55zfN.js} +1 -1
  18. package/dist/serve-ui/assets/{NormalizePage-CHkT6yLV.js → NormalizePage-BNbCNf4k.js} +1 -1
  19. package/dist/serve-ui/assets/{PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js → PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js} +1 -1
  20. package/dist/serve-ui/assets/{Presence-cbB6AqkQ.js → Presence-DnRF6qHR.js} +1 -1
  21. package/dist/serve-ui/assets/{Separator.vue_vue_type_script_setup_true_lang-fePFl24S.js → Separator.vue_vue_type_script_setup_true_lang-KWrsPkDE.js} +1 -1
  22. package/dist/serve-ui/assets/{StudioHint.vue_vue_type_script_setup_true_lang-B45TG2r1.js → StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js} +1 -1
  23. package/dist/serve-ui/assets/{TrustBadge.vue_vue_type_script_setup_true_lang-CgoQGS6k.js → TrustBadge.vue_vue_type_script_setup_true_lang-CPVK2uFu.js} +1 -1
  24. package/dist/serve-ui/assets/{ValidatePage-BW8DO6WC.js → ValidatePage-Dk5IdJ1E.js} +1 -1
  25. package/dist/serve-ui/assets/{arrow-down-DqOfGL7C.js → arrow-down-Cil3QmGC.js} +1 -1
  26. package/dist/serve-ui/assets/{arrow-left-BRvgeveW.js → arrow-left-BgRAFAbm.js} +1 -1
  27. package/dist/serve-ui/assets/{book-marked-D8StxRZP.js → book-marked-D_7zWMoS.js} +1 -1
  28. package/dist/serve-ui/assets/{book-open-BrGAe3tk.js → book-open-BMIAduGI.js} +1 -1
  29. package/dist/serve-ui/assets/{box-7olVZr5D.js → box-DTosQIFW.js} +1 -1
  30. package/dist/serve-ui/assets/{chevron-down-B9YdCtsj.js → chevron-down-BU7Oh9xS.js} +1 -1
  31. package/dist/serve-ui/assets/{chevron-right-DFKsmZVd.js → chevron-right-BrS8cLgS.js} +1 -1
  32. package/dist/serve-ui/assets/{content-BQE3NEm5.js → content-9wt2LBkC.js} +1 -1
  33. package/dist/serve-ui/assets/{database-BGEFn4Oq.js → database-wAPnOXAq.js} +1 -1
  34. package/dist/serve-ui/assets/{file-code-BGiS4dun.js → file-code-DbO-oPNK.js} +1 -1
  35. package/dist/serve-ui/assets/{file-text-BDHXQ95W.js → file-text-B83xaNeI.js} +1 -1
  36. package/dist/serve-ui/assets/{git-branch-DdE7bk9-.js → git-branch-D_wEQy04.js} +1 -1
  37. package/dist/serve-ui/assets/{git-merge-iStuJS69.js → git-merge-CK4R9if8.js} +1 -1
  38. package/dist/serve-ui/assets/{hash-B-ibLpM1.js → hash-DOFJZrkk.js} +1 -1
  39. package/dist/serve-ui/assets/{index-CoUshYEB.js → index-BL1I-H3q.js} +2 -2
  40. package/dist/serve-ui/assets/index-CG5NtNtt.css +1 -0
  41. package/dist/serve-ui/assets/{index-WHgvdYOs.js → index-cUml-HE9.js} +1 -1
  42. package/dist/serve-ui/assets/{languages-BTcd2Rl1.js → languages-CXKcy1-I.js} +1 -1
  43. package/dist/serve-ui/assets/{plus-D8Nd3YnG.js → plus-yXR6ZCCF.js} +1 -1
  44. package/dist/serve-ui/assets/{project-B1qSm0Fz.js → project-Cr3_1TVE.js} +1 -1
  45. package/dist/serve-ui/assets/{scan-search-DGPL_VJu.js → scan-search-DHnQpSxc.js} +1 -1
  46. package/dist/serve-ui/assets/{settings-DL-0RaxD.js → settings-DQbK7D0N.js} +1 -1
  47. package/dist/serve-ui/assets/{shield-check-CUL7KkSA.js → shield-check-WNk6I8NY.js} +1 -1
  48. package/dist/serve-ui/assets/{trash-2-83QhL6-T.js → trash-2-B7ngAUqJ.js} +1 -1
  49. package/dist/serve-ui/assets/useDirection-JtiaofuP.js +1 -0
  50. package/dist/serve-ui/assets/{useId-C0uR6mdj.js → useId-Bc2_q_4f.js} +1 -1
  51. package/dist/serve-ui/assets/{useNonce-DTGvzOJz.js → useNonce-BJjEh3mR.js} +1 -1
  52. package/dist/serve-ui/assets/{useWatch-COpVIQvm.js → useWatch-CEXwnJFx.js} +1 -1
  53. package/dist/serve-ui/index.html +2 -2
  54. package/package.json +12 -8
  55. package/dist/serve-ui/assets/ConfigProvider-BGjDLViI.js +0 -1
  56. package/dist/serve-ui/assets/ContentListPage-DTFaQB8N.js +0 -51
  57. package/dist/serve-ui/assets/ContentListPage-vXxAeSg8.css +0 -1
  58. package/dist/serve-ui/assets/index-C-RjMzFm.css +0 -1
  59. package/dist/serve-ui/assets/useDirection-Cd3C7VdT.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as O}from"./model-empty-state-B6AM4bil.js";import{c as $,a as oe,w as re,i as ae,p as d,j as c,u as e,q as o,L as P,B as l,s as m,F as h,b,e as y,g as u,x as k,C as ne,h as g,r as H,E as W,o as n,y as f,z as x,A as S}from"./index-CoUshYEB.js";import{u as le}from"./project-B1qSm0Fz.js";import{u as ie}from"./content-BQE3NEm5.js";import{d as de,u as ce}from"./useWatch-COpVIQvm.js";import{_ as ue}from"./PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js";import{A as w,_ as me}from"./StudioHint.vue_vue_type_script_setup_true_lang-B45TG2r1.js";import{_ as be,a as pe}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js";import{_ as j}from"./index-WHgvdYOs.js";import{_ as ge,C as fe}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CgoQGS6k.js";import{S as q}from"./settings-DL-0RaxD.js";import{G as K}from"./git-branch-DdE7bk9-.js";import{B as J}from"./book-marked-D8StxRZP.js";import{B as F}from"./box-7olVZr5D.js";import{B as xe}from"./book-open-BrGAe3tk.js";import{F as he}from"./file-code-BGiS4dun.js";import{L as ve,T as _e}from"./trash-2-83QhL6-T.js";import{G as ye}from"./git-merge-iStuJS69.js";import{F as Q}from"./file-text-BDHXQ95W.js";import{L as ke}from"./languages-BTcd2Rl1.js";import"./useId-C0uR6mdj.js";import"./Presence-cbB6AqkQ.js";import"./shield-check-CUL7KkSA.js";/**
1
+ import{_ as O}from"./model-empty-state-B6AM4bil.js";import{c as $,a as oe,w as re,i as ae,p as d,j as c,u as e,q as o,L as P,B as l,s as m,F as h,b,e as y,g as u,x as k,C as ne,h as g,r as H,E as W,o as n,y as f,z as x,A as S}from"./index-BL1I-H3q.js";import{u as le}from"./project-Cr3_1TVE.js";import{u as ie}from"./content-9wt2LBkC.js";import{d as de,u as ce}from"./useWatch-CEXwnJFx.js";import{_ as ue}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{A as w,_ as me}from"./StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js";import{_ as be,a as pe}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js";import{_ as j}from"./index-cUml-HE9.js";import{_ as ge,C as fe}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CPVK2uFu.js";import{S as q}from"./settings-DQbK7D0N.js";import{G as K}from"./git-branch-D_wEQy04.js";import{B as J}from"./book-marked-D_7zWMoS.js";import{B as F}from"./box-DTosQIFW.js";import{B as xe}from"./book-open-BMIAduGI.js";import{F as he}from"./file-code-DbO-oPNK.js";import{L as ve,T as _e}from"./trash-2-B7ngAUqJ.js";import{G as ye}from"./git-merge-CK4R9if8.js";import{F as Q}from"./file-text-B83xaNeI.js";import{L as ke}from"./languages-CXKcy1-I.js";import"./useId-Bc2_q_4f.js";import"./Presence-DnRF6qHR.js";import"./shield-check-WNk6I8NY.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{b as x,c as L,a as V,u as re}from"./useId-C0uR6mdj.js";import{h as Y,r as w,w as X,K 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,a1 as ie,i as de,j as q,g as J,I as Q,J as Z,z as M,X as ce,q as fe,p as pe,y as ve}from"./index-CoUshYEB.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-cbB6AqkQ.js";import{P as T,r as K}from"./useWatch-COpVIQvm.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-CgoQGS6k.js";import{i as we}from"./ConfigProvider-BGjDLViI.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-Bc2_q_4f.js";import{h as Y,r as w,w as X,K 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,a1 as ie,i as de,j as q,g as J,I as Q,J as Z,z as M,X as ce,q as fe,p as pe,y as ve}from"./index-BL1I-H3q.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-DnRF6qHR.js";import{P as T,r as K}from"./useWatch-CEXwnJFx.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-CPVK2uFu.js";import{i as we}from"./ConfigProvider-RwBwhpvF.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,4 +1,4 @@
1
- import{c as Q,w as D,h as O,S as F,r as H,U as A,G as N,k as q,V as G,i as X,u as J,K as $,a as Y,N as Z,O as ee,p as te,y as ne,z as ae,W as oe,o as se}from"./index-CoUshYEB.js";import{i as ie,t as re,a as K,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-COpVIQvm.js";/**
1
+ import{c as Q,w as D,h as O,S as F,r as H,U as A,G as N,k as q,V as G,i as X,u as J,K as $,a as Y,N as Z,O as ee,p as te,y as ne,z as ae,W as oe,o as se}from"./index-BL1I-H3q.js";import{i as ie,t as re,a as K,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-CEXwnJFx.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-CoUshYEB.js";import{u as ie}from"./content-BQE3NEm5.js";import{_ as de,a as Q,E as ce}from"./PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js";import{_ as ue,C as me,a as I}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js";import{_ as b}from"./index-WHgvdYOs.js";import{_ as pe}from"./Separator.vue_vue_type_script_setup_true_lang-fePFl24S.js";import{c as xe,t as G}from"./useFormatters-DgWFpsAv.js";import{d as fe}from"./useWatch-COpVIQvm.js";import{B as ge}from"./book-open-BrGAe3tk.js";import{F as ye}from"./file-code-BGiS4dun.js";import{F as A}from"./file-text-BDHXQ95W.js";import{B as he}from"./box-7olVZr5D.js";import{H as P}from"./hash-B-ibLpM1.js";import{D as ve}from"./database-BGEFn4Oq.js";import{C as be}from"./chevron-down-B9YdCtsj.js";import{C as _e}from"./chevron-right-DFKsmZVd.js";import{A as ke}from"./arrow-left-BRvgeveW.js";import{L as we}from"./languages-BTcd2Rl1.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-BL1I-H3q.js";import{u as ie}from"./content-9wt2LBkC.js";import{_ as de,a as Q,E as ce}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{_ as ue,C as me,a as I}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js";import{_ as b}from"./index-cUml-HE9.js";import{_ as pe}from"./Separator.vue_vue_type_script_setup_true_lang-KWrsPkDE.js";import{c as xe,t as G}from"./useFormatters-DgWFpsAv.js";import{d as fe}from"./useWatch-CEXwnJFx.js";import{B as ge}from"./book-open-BMIAduGI.js";import{F as ye}from"./file-code-DbO-oPNK.js";import{F as A}from"./file-text-B83xaNeI.js";import{B as he}from"./box-DTosQIFW.js";import{H as P}from"./hash-DOFJZrkk.js";import{D as ve}from"./database-wAPnOXAq.js";import{C as be}from"./chevron-down-BU7Oh9xS.js";import{C as _e}from"./chevron-right-BrS8cLgS.js";import{A as ke}from"./arrow-left-BgRAFAbm.js";import{L as we}from"./languages-CXKcy1-I.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-CoUshYEB.js";import{u as R}from"./project-B1qSm0Fz.js";import{_ as U}from"./PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js";import{_ as X}from"./StudioHint.vue_vue_type_script_setup_true_lang-B45TG2r1.js";import{_ as O,a as y}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js";import{_ as $}from"./index-WHgvdYOs.js";import{S as B,_ as G}from"./Input.vue_vue_type_script_setup_true_lang-otPltlZG.js";import{d as J}from"./useWatch-COpVIQvm.js";import{B as K}from"./book-open-BrGAe3tk.js";import{F as W}from"./file-code-BGiS4dun.js";import{F as Y}from"./file-text-BDHXQ95W.js";import{B as Z}from"./box-7olVZr5D.js";import{H}from"./hash-B-ibLpM1.js";import{L as P}from"./languages-BTcd2Rl1.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},Ge=I({__name:"ModelsPage",setup(Fe){const o=J("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(G),{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{Ge 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-BL1I-H3q.js";import{u as R}from"./project-Cr3_1TVE.js";import{_ as U}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{_ as X}from"./StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js";import{_ as O,a as y}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js";import{_ as $}from"./index-cUml-HE9.js";import{S as B,_ as G}from"./Input.vue_vue_type_script_setup_true_lang-BM6hi7u6.js";import{d as J}from"./useWatch-CEXwnJFx.js";import{B as K}from"./book-open-BMIAduGI.js";import{F as W}from"./file-code-DbO-oPNK.js";import{F as Y}from"./file-text-B83xaNeI.js";import{B as Z}from"./box-DTosQIFW.js";import{H}from"./hash-DOFJZrkk.js";import{L as P}from"./languages-CXKcy1-I.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},Ge=I({__name:"ModelsPage",setup(Fe){const o=J("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(G),{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{Ge as default};
@@ -1,4 +1,4 @@
1
- import{c as Z,a as T,o as l,p as m,y as E,u as e,z as N,f as I,F as S,x as L,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 C,w as ce,X as de,L as F,r as P,i as ue,E as B,a8 as J}from"./index-CoUshYEB.js";import{j as me,d as fe,u as pe}from"./useWatch-COpVIQvm.js";import{u as xe}from"./content-BQE3NEm5.js";import{_ as _e,S as ge,a as G}from"./PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js";import{A as ee,_ as he}from"./StudioHint.vue_vue_type_script_setup_true_lang-B45TG2r1.js";import{_ as H,a as j}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js";import{_ as w}from"./index-WHgvdYOs.js";import{b as te,c as se,_ as A,d as ne,a as q}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C4oejwcu.js";import{_ as W}from"./Separator.vue_vue_type_script_setup_true_lang-fePFl24S.js";import{C as ae}from"./chevron-down-B9YdCtsj.js";import{B as ve}from"./book-marked-D8StxRZP.js";import{B as ye}from"./book-open-BrGAe3tk.js";import{F as X}from"./file-code-BGiS4dun.js";import{L as ze,T as Q}from"./trash-2-83QhL6-T.js";import{A as Y}from"./arrow-down-DqOfGL7C.js";import{D as be}from"./database-BGEFn4Oq.js";import{M as ke,P as we}from"./plus-D8Nd3YnG.js";import{G as K}from"./git-merge-iStuJS69.js";import"./useId-C0uR6mdj.js";import"./Presence-cbB6AqkQ.js";/**
1
+ import{c as Z,a as T,o as l,p as m,y as E,u as e,z as N,f as I,F as S,x as L,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 C,w as ce,X as de,L as F,r as P,i as ue,E as B,a8 as J}from"./index-BL1I-H3q.js";import{j as me,d as fe,u as pe}from"./useWatch-CEXwnJFx.js";import{u as xe}from"./content-9wt2LBkC.js";import{_ as _e,S as ge,a as G}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{A as ee,_ as he}from"./StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js";import{_ as H,a as j}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js";import{_ as w}from"./index-cUml-HE9.js";import{b as te,c as se,_ as A,d as ne,a as q}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-J5CJUyNC.js";import{_ as W}from"./Separator.vue_vue_type_script_setup_true_lang-KWrsPkDE.js";import{C as ae}from"./chevron-down-BU7Oh9xS.js";import{B as ve}from"./book-marked-D_7zWMoS.js";import{B as ye}from"./book-open-BMIAduGI.js";import{F as X}from"./file-code-DbO-oPNK.js";import{L as ze,T as Q}from"./trash-2-B7ngAUqJ.js";import{A as Y}from"./arrow-down-Cil3QmGC.js";import{D as be}from"./database-wAPnOXAq.js";import{M as ke,P as we}from"./plus-yXR6ZCCF.js";import{G as K}from"./git-merge-CK4R9if8.js";import"./useId-Bc2_q_4f.js";import"./Presence-DnRF6qHR.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{P as m,k as b,d as f,u as x}from"./useWatch-COpVIQvm.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-CoUshYEB.js";/**
1
+ import{P as m,k as b,d as f,u as x}from"./useWatch-CEXwnJFx.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-BL1I-H3q.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{Z as B,a0 as V,a5 as W,U as D,G as p,ad as z,w as g,k as G,ae as J,a3 as q,a4 as H,M as Y,af as F,S as T,W as N,a1 as R,u as k,h as A,t as _,r as O,i as Z,K,ag as Q,ah as X,l as ee,a as te,_ as ne}from"./index-CoUshYEB.js";import{l as re}from"./useWatch-COpVIQvm.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=>(V(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 N(e)?R(new Proxy({},{get(t,n,r){return k(Reflect.get(e.value,n,r))},set(t,n,r){return N(e.value[n])&&!N(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 je(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 $e(e,t=1e4){return z((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 Ie(e,t=200,n={}){return se(le(t,n),e)}function Ne(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:W(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 j=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:[j].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&&Z(()=>{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=j,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=j,...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 $=c=>a?typeof a=="function"?a(c):ge(c):c,S=()=>ie(e[t])?$(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=$(h),K(()=>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());Q(()=>{n.value!==r()&&X(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)??j,{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 K(),y){const I=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&&I!==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 I=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=I)})}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{Z as B,a0 as V,a5 as W,U as D,G as p,ad as z,w as g,k as G,ae as J,a3 as q,a4 as H,M as Y,af as F,S as T,W as N,a1 as R,u as k,h as A,t as _,r as O,i as Z,K,ag as Q,ah as X,l as ee,a as te,_ as ne}from"./index-BL1I-H3q.js";import{l as re}from"./useWatch-CEXwnJFx.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=>(V(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 N(e)?R(new Proxy({},{get(t,n,r){return k(Reflect.get(e.value,n,r))},set(t,n,r){return N(e.value[n])&&!N(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 je(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 $e(e,t=1e4){return z((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 Ie(e,t=200,n={}){return se(le(t,n),e)}function Ne(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:W(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 j=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:[j].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&&Z(()=>{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=j,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=j,...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 $=c=>a?typeof a=="function"?a(c):ge(c):c,S=()=>ie(e[t])?$(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=$(h),K(()=>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());Q(()=>{n.value!==r()&&X(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)??j,{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 K(),y){const I=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&&I!==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 I=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=I)})}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,Ie as b,Se as c,be as d,P as e,Le as f,je 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,$e as r,Ue as s,Ne as t,Fe as u,_e as w};
@@ -1 +1 @@
1
- import{P as h,r as m}from"./useWatch-COpVIQvm.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,I as y,J as B,z as S}from"./index-CoUshYEB.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-CEXwnJFx.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,I as y,J as B,z as S}from"./index-BL1I-H3q.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-C7aWxNSw.js";import{d as l}from"./useWatch-COpVIQvm.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-CoUshYEB.js";/**
1
+ import{a as n}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{d as l}from"./useWatch-CEXwnJFx.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-BL1I-H3q.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-C0uR6mdj.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-cbB6AqkQ.js";import{c as bt,k as le,r as B,i as Ue,h as _,G as ve,K as Fe,a as S,o as T,b as R,e as D,f as k,u as y,n as Ge,a1 as Ut,T as Gt,g as Me,a2 as xt,p as ae,m as Q,w as xe,a3 as Jt,a4 as Qt,a5 as de,U as Zt,j as G,a6 as en,I as Te,J as De,t as tn,s as nn,B as _e,H as on,A as He,a7 as rn,z as We,y as it,q as st,Y as sn,Q as an}from"./index-CoUshYEB.js";import{P as ge,r as ln}from"./useWatch-COpVIQvm.js";import{S as un}from"./shield-check-CUL7KkSA.js";/**
1
+ import{u as Ft,a as Ye,b as Mt}from"./useId-Bc2_q_4f.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-DnRF6qHR.js";import{c as bt,k as le,r as B,i as Ue,h as _,G as ve,K as Fe,a as S,o as T,b as R,e as D,f as k,u as y,n as Ge,a1 as Ut,T as Gt,g as Me,a2 as xt,p as ae,m as Q,w as xe,a3 as Jt,a4 as Qt,a5 as de,U as Zt,j as G,a6 as en,I as Te,J as De,t as tn,s as nn,B as _e,H as on,A as He,a7 as rn,z as We,y as it,q as st,Y as sn,Q as an}from"./index-BL1I-H3q.js";import{P as ge,r as ln}from"./useWatch-CEXwnJFx.js";import{S as un}from"./shield-check-WNk6I8NY.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 S,a as ce,i as ue,p as u,j as t,e as n,u as e,q as a,L as J,g as f,s as m,B as l,F as k,y as g,z as w,x as L,h as y,r as h,E as ve,o,Q as T,Y as A,b as _,A as U,C as me}from"./index-CoUshYEB.js";import{d as fe,u as _e}from"./useWatch-COpVIQvm.js";import{u as xe}from"./content-BQE3NEm5.js";import{_ as pe,a as C}from"./PageHeader.vue_vue_type_script_setup_true_lang-C7aWxNSw.js";import{_ as ye}from"./StudioHint.vue_vue_type_script_setup_true_lang-B45TG2r1.js";import{_ as K,a as D}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-Dy-5bpEY.js";import{_ as b}from"./index-WHgvdYOs.js";import{_ as ge}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CgoQGS6k.js";import{_ as z,a as M,b as X,c as ee,d as te}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-C4oejwcu.js";import{_ as se}from"./Separator.vue_vue_type_script_setup_true_lang-fePFl24S.js";import{S as he}from"./shield-check-CUL7KkSA.js";import{D as ae}from"./database-BGEFn4Oq.js";import{C as le}from"./chevron-down-B9YdCtsj.js";import"./useId-C0uR6mdj.js";import"./Presence-cbB6AqkQ.js";/**
1
+ import{c as S,a as ce,i as ue,p as u,j as t,e as n,u as e,q as a,L as J,g as f,s as m,B as l,F as k,y as g,z as w,x as L,h as y,r as h,E as ve,o,Q as T,Y as A,b as _,A as U,C as me}from"./index-BL1I-H3q.js";import{d as fe,u as _e}from"./useWatch-CEXwnJFx.js";import{u as xe}from"./content-9wt2LBkC.js";import{_ as pe,a as C}from"./PageHeader.vue_vue_type_script_setup_true_lang-C8ntGi1-.js";import{_ as ye}from"./StudioHint.vue_vue_type_script_setup_true_lang-C0ksRF07.js";import{_ as K,a as D}from"./AgentPromptGroup.vue_vue_type_script_setup_true_lang-BMp7LstJ.js";import{_ as b}from"./index-cUml-HE9.js";import{_ as ge}from"./TrustBadge.vue_vue_type_script_setup_true_lang-CPVK2uFu.js";import{_ as z,a as M,b as X,c as ee,d as te}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-J5CJUyNC.js";import{_ as se}from"./Separator.vue_vue_type_script_setup_true_lang-KWrsPkDE.js";import{S as he}from"./shield-check-WNk6I8NY.js";import{D as ae}from"./database-wAPnOXAq.js";import{C as le}from"./chevron-down-BU7Oh9xS.js";import"./useId-Bc2_q_4f.js";import"./Presence-DnRF6qHR.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-CoUshYEB.js";/**
1
+ import{c as o}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as e}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as a}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as a}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as a}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as o}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as o}from"./index-BL1I-H3q.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-CoUshYEB.js";import{j as L}from"./useWatch-COpVIQvm.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-BL1I-H3q.js";import{j as L}from"./useWatch-CEXwnJFx.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-CoUshYEB.js";/**
1
+ import{c as e}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as a}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as e}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c}from"./index-BL1I-H3q.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-CoUshYEB.js";/**
1
+ import{c as y}from"./index-BL1I-H3q.js";/**
2
2
  * @license lucide-vue-next v0.474.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.