@autocode-cli/autocode 0.36.0 → 0.38.1

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 (117) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CouFgKW5.js → -DEWfUYv.js} +1 -1
  3. package/.output/public/_nuxt/{BMQOAvhP.js → 2boNwi9_.js} +1 -1
  4. package/.output/public/_nuxt/{BPxDXB13.js → AkOEraF8.js} +1 -1
  5. package/.output/public/_nuxt/{DRMwpGCv.js → B-VWZquG.js} +1 -1
  6. package/.output/public/_nuxt/{7sR_btEk.js → B8IBFC6T.js} +1 -1
  7. package/.output/public/_nuxt/{CKjR6Oik.js → B8Xf8MgC.js} +1 -1
  8. package/.output/public/_nuxt/{DxNPZ1bU.js → BE3foYyN.js} +1 -1
  9. package/.output/public/_nuxt/{C9P-GWig.js → BHlJJSYC.js} +1 -1
  10. package/.output/public/_nuxt/{Co4zaoac.js → BJYkvAaS.js} +1 -1
  11. package/.output/public/_nuxt/{BQPgjGfs.js → BJjQ3yAn.js} +1 -1
  12. package/.output/public/_nuxt/{BRNVrR0Q.js → BK7XP8e6.js} +1 -1
  13. package/.output/public/_nuxt/{D45sR6CZ.js → BKGmjLSc.js} +1 -1
  14. package/.output/public/_nuxt/{DQwsIvTZ.js → BOlhM3xb.js} +1 -1
  15. package/.output/public/_nuxt/{48RFRq_I.js → BQDdlBEq.js} +1 -1
  16. package/.output/public/_nuxt/{CXfoqgHV.js → BR3-ptv5.js} +1 -1
  17. package/.output/public/_nuxt/BRH5q8nN.js +1 -0
  18. package/.output/public/_nuxt/{ChtvGXKc.js → BS4dJyOO.js} +1 -1
  19. package/.output/public/_nuxt/{CercIbuG.js → BYGFND6L.js} +1 -1
  20. package/.output/public/_nuxt/{DpYdB9MN.js → BcPXljcj.js} +1 -1
  21. package/.output/public/_nuxt/{DDNH3Fq2.js → BcoI-YOI.js} +1 -1
  22. package/.output/public/_nuxt/{DkJTip7e.js → Bdk3yVyS.js} +1 -1
  23. package/.output/public/_nuxt/{NIeoUmDE.js → BlV64rQV.js} +1 -1
  24. package/.output/public/_nuxt/{BStRXLlp.js → BpRdnvfJ.js} +1 -1
  25. package/.output/public/_nuxt/{Wm7exVxY.js → C1bpPepg.js} +1 -1
  26. package/.output/public/_nuxt/{CaT6Gmvd.js → C1oPz7MO.js} +1 -1
  27. package/.output/public/_nuxt/{00BWY9Ij.js → C8OPhRYB.js} +1 -1
  28. package/.output/public/_nuxt/{t7k_e5FQ.js → C8yVYDPb.js} +1 -1
  29. package/.output/public/_nuxt/CG2NonkS.js +1 -0
  30. package/.output/public/_nuxt/{B3JaNZxX.js → CH2hw3Xi.js} +1 -1
  31. package/.output/public/_nuxt/{BZ5eH4oZ.js → CIA-RxRA.js} +1 -1
  32. package/.output/public/_nuxt/{C0Gbbife.js → CJvMkYTY.js} +1 -1
  33. package/.output/public/_nuxt/CNOvs2qj.js +1 -0
  34. package/.output/public/_nuxt/{nSLZfjDc.js → CRsWdsU-.js} +3 -3
  35. package/.output/public/_nuxt/{BAOdxXv4.js → CTqAOy_C.js} +1 -1
  36. package/.output/public/_nuxt/{CnBvzpvA.js → Cb7wEgIm.js} +1 -1
  37. package/.output/public/_nuxt/{CFQXrjRh.js → CenZ_oU4.js} +1 -1
  38. package/.output/public/_nuxt/{CeKi_uUO.js → ClGsRO4L.js} +1 -1
  39. package/.output/public/_nuxt/{ivFMXWZI.js → CqPsTVMx.js} +1 -1
  40. package/.output/public/_nuxt/{CkQJAsUV.js → Cx5FqDdc.js} +1 -1
  41. package/.output/public/_nuxt/{_hRtkQ2r.js → D-TP4IfX.js} +1 -1
  42. package/.output/public/_nuxt/{ge5HoFHn.js → D1Q9L7QE.js} +3 -3
  43. package/.output/public/_nuxt/{DAGJ7zg9.js → D7FSwrD_.js} +1 -1
  44. package/.output/public/_nuxt/{CGNl3nJG.js → DEgvru_U.js} +1 -1
  45. package/.output/public/_nuxt/{6gOFoOBv.js → DGqUQ3kF.js} +1 -1
  46. package/.output/public/_nuxt/{CgTGeNUg.js → DGsDmUyW.js} +1 -1
  47. package/.output/public/_nuxt/{CCEPkO9Q.js → DWPIRlMD.js} +1 -1
  48. package/.output/public/_nuxt/{Dob4oaN0.js → Dcy-p3Z6.js} +1 -1
  49. package/.output/public/_nuxt/DdlskHvY.js +1 -0
  50. package/.output/public/_nuxt/{B0yQK1au.js → DnGW0m4Y.js} +1 -1
  51. package/.output/public/_nuxt/{CTLXeCVr.js → Dni4zvfP.js} +1 -1
  52. package/.output/public/_nuxt/{uL1fX62J.js → Do_bcNCY.js} +1 -1
  53. package/.output/public/_nuxt/{DYqWq1Vn.js → Dp5e-aom.js} +1 -1
  54. package/.output/public/_nuxt/{BTUypKON.js → Dp8a_bbp.js} +1 -1
  55. package/.output/public/_nuxt/{BQMX0Vtg.js → DswkzKY7.js} +1 -1
  56. package/.output/public/_nuxt/{CZAptABr.js → DwzmElrD.js} +1 -1
  57. package/.output/public/_nuxt/{I5zwxUB4.js → DxWHIfkW.js} +1 -1
  58. package/.output/public/_nuxt/{DAlNcmKB.js → DzALV0JB.js} +1 -1
  59. package/.output/public/_nuxt/{CpoLuEmz.js → EiEi2wiH.js} +1 -1
  60. package/.output/public/_nuxt/{BGJFtQgK.js → IWVv-BBf.js} +1 -1
  61. package/.output/public/_nuxt/{C9Q_XE2y.js → OpmtRlfX.js} +1 -1
  62. package/.output/public/_nuxt/{BAAiS_qy.js → RhTS06Sf.js} +1 -1
  63. package/.output/public/_nuxt/{CFJDHFu0.js → TfSMshAC.js} +1 -1
  64. package/.output/public/_nuxt/builds/latest.json +1 -1
  65. package/.output/public/_nuxt/builds/meta/b5a96400-b290-45af-84b6-99ea0c93f0ef.json +1 -0
  66. package/.output/public/_nuxt/{BrtBSWOq.js → cFgYOPT2.js} +1 -1
  67. package/.output/public/_nuxt/{Amqf1SBE.js → fpPxFzzn.js} +1 -1
  68. package/.output/public/_nuxt/index.B4qqY6WX.css +1 -0
  69. package/.output/public/_nuxt/{BRR7H4VZ.js → kW_0tHNx.js} +1 -1
  70. package/.output/public/_nuxt/{Cpxhv8Qg.js → rY9HrSkB.js} +1 -1
  71. package/.output/public/_nuxt/{BcjH67ba.js → tQz6yja3.js} +1 -1
  72. package/.output/public/_nuxt/{NVsyChWu.js → uYf0EMki.js} +1 -1
  73. package/.output/public/api/_openapi.json +1 -1
  74. package/.output/public/docs/api/index.html +1 -272
  75. package/.output/public/docs/cli/index.html +1 -24
  76. package/.output/public/index.html +1 -1
  77. package/.output/server/chunks/_/en.mjs +11 -22
  78. package/.output/server/chunks/_/en.mjs.map +1 -1
  79. package/.output/server/chunks/_/fr.mjs +11 -22
  80. package/.output/server/chunks/_/fr.mjs.map +1 -1
  81. package/.output/server/chunks/build/LandingAutonomy-styles.Dvel3Juy.mjs +8 -0
  82. package/.output/server/chunks/build/LandingAutonomy-styles.Dvel3Juy.mjs.map +1 -0
  83. package/.output/server/chunks/build/LandingDocs-styles.FyNL7DNS.mjs +8 -0
  84. package/.output/server/chunks/build/LandingDocs-styles.FyNL7DNS.mjs.map +1 -0
  85. package/.output/server/chunks/build/LandingPipeline-styles.C8JPQYOV.mjs +8 -0
  86. package/.output/server/chunks/build/LandingPipeline-styles.C8JPQYOV.mjs.map +1 -0
  87. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  88. package/.output/server/chunks/build/{en-BhagfGAQ.mjs → en-nHmCjmd_.mjs} +12 -23
  89. package/.output/server/chunks/build/{en-BhagfGAQ.mjs.map → en-nHmCjmd_.mjs.map} +1 -1
  90. package/.output/server/chunks/build/{fr-12bubW4G.mjs → fr-7FZEU85C.mjs} +12 -23
  91. package/.output/server/chunks/build/{fr-12bubW4G.mjs.map → fr-7FZEU85C.mjs.map} +1 -1
  92. package/.output/server/chunks/build/{index-tBZcd_Xi.mjs → index-DYwGkPcJ.mjs} +63 -142
  93. package/.output/server/chunks/build/index-DYwGkPcJ.mjs.map +1 -0
  94. package/.output/server/chunks/build/server.mjs +5 -5
  95. package/.output/server/chunks/build/styles.mjs +16 -16
  96. package/.output/server/chunks/nitro/nitro.mjs +424 -456
  97. package/.output/server/package.json +1 -1
  98. package/bin/autocode +12 -0
  99. package/package.json +1 -1
  100. package/.output/public/_i18n/Ld0h1Adq/en/messages.json +0 -1
  101. package/.output/public/_i18n/Ld0h1Adq/fr/messages.json +0 -1
  102. package/.output/public/_nuxt/Dfr112Jw.js +0 -1
  103. package/.output/public/_nuxt/SK7I1OsC.js +0 -1
  104. package/.output/public/_nuxt/builds/meta/eddd3f97-dfcd-4aa3-a8e7-9f432f427e6d.json +0 -1
  105. package/.output/public/_nuxt/cIYz9vRR.js +0 -1
  106. package/.output/public/_nuxt/index.B-MCQhP8.css +0 -1
  107. package/.output/public/_nuxt/kdqZYFE6.js +0 -1
  108. package/.output/public/_payload.json +0 -1
  109. package/.output/public/docs/api/_payload.json +0 -1
  110. package/.output/public/docs/cli/_payload.json +0 -1
  111. package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs +0 -8
  112. package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs.map +0 -1
  113. package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs +0 -8
  114. package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs.map +0 -1
  115. package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs +0 -8
  116. package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs.map +0 -1
  117. package/.output/server/chunks/build/index-tBZcd_Xi.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as Di}from"./Amqf1SBE.js";import{d as Vr,m as Et,r as Xn,n as va,c as le,b as ae,s as $n,e as G,D as Zo,E as Ea,h as U,I as Ut,t as re,j as ya,k as qe,w as ot,_ as Ur,N as wn,L as It,M as Me,O as rr,P as Mi,Q as Sa,R as _o,S as jt,T as ba,U as qo,V as Ta,W as wt,X as es,Y as go,Z as Ia,$ as Oa,a0 as Na,a1 as Ca,a2 as Aa,a3 as jr,a4 as xa,a5 as Pa,a6 as Ra,f as je,x as ts,H as Da,y as Ma,o as La,a7 as $a,u as wa,v as Fa,G as Va,F as Ua,q as ja,g as vo}from"./nSLZfjDc.js";import{g as Br,a as Ba}from"./92s3wAHG.js";import{i as ir,a as Eo,b as yo,u as Xa}from"./DxNPZ1bU.js";import{u as ns}from"./C9Q_XE2y.js";import{u as Ha}from"./BrtBSWOq.js";const Ga={key:0,class:"icon-lock"},Ka={key:1,class:"handle-icon"},Wa={class:"column-info"},Ya={key:1,class:"column-name"},ka={class:"column-slug"},Ja={class:"column-actions"},za=["title"],Qa=Vr({__name:"PipelineColumn",props:{column:{},pipelineName:{default:""},editable:{type:Boolean,default:!0},isDragging:{type:Boolean,default:!1},showPrompt:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},locked:{type:Boolean,default:!1}},emits:["nameChange","nameBlur","remove"],setup(e){const t=e,n=Et(()=>{const i=`/column/${t.column.slug}/prompt`,s=new URLSearchParams;return t.pipelineName&&s.set("pipeline",t.pipelineName),s.set("name",t.column.name),`${i}?${s.toString()}`}),o=Xn(t.column.name);return va(()=>t.column.name,i=>{o.value=i}),(i,s)=>{const r=Di;return ae(),le("div",{class:$n(["pipeline-column",{dragging:e.isDragging,locked:e.locked}])},[G("div",{class:$n(["column-drag-handle",{disabled:e.locked}])},[e.locked?(ae(),le("span",Ga)):(ae(),le("span",Ka))],2),G("div",Wa,[e.editable?Zo((ae(),le("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=a=>Ut(o)?o.value=a:null),class:"column-name-input",onInput:s[1]||(s[1]=a=>i.$emit("nameChange",U(o))),onBlur:s[2]||(s[2]=a=>i.$emit("nameBlur"))},null,544)),[[Ea,U(o)]]):(ae(),le("span",Ya,re(e.column.name),1)),G("span",ka,re(e.column.slug),1)]),G("div",Ja,[e.showPrompt?(ae(),ya(r,{key:0,to:U(n),class:"btn-icon",title:i.$t("column.viewPrompt")},{default:ot(()=>[...s[4]||(s[4]=[G("span",{class:"icon-eye"},null,-1)])]),_:1},8,["to","title"])):qe("",!0),e.showRemove&&!e.locked?(ae(),le("button",{key:1,class:"btn-icon btn-danger",title:i.$t("form.delete"),onClick:s[3]||(s[3]=a=>i.$emit("remove",e.column))},[...s[5]||(s[5]=[G("span",{class:"icon-remove"},null,-1)])],8,za)):qe("",!0)])],2)}}}),Za=Object.assign(Ur(Qa,[["__scopeId","data-v-b7d3d1e3"]]),{__name:"PipelineColumn"});var hr={exports:{}},li={exports:{}},ci={};const un=Symbol(""),cn=Symbol(""),Xr=Symbol(""),Hn=Symbol(""),Li=Symbol(""),Xt=Symbol(""),$i=Symbol(""),wi=Symbol(""),Hr=Symbol(""),Gr=Symbol(""),En=Symbol(""),Kr=Symbol(""),Fi=Symbol(""),Wr=Symbol(""),Yr=Symbol(""),kr=Symbol(""),Jr=Symbol(""),zr=Symbol(""),Qr=Symbol(""),Vi=Symbol(""),Ui=Symbol(""),Jn=Symbol(""),Gn=Symbol(""),Zr=Symbol(""),_r=Symbol(""),dn=Symbol(""),yn=Symbol(""),qr=Symbol(""),Nr=Symbol(""),rs=Symbol(""),Cr=Symbol(""),Kn=Symbol(""),is=Symbol(""),os=Symbol(""),ei=Symbol(""),ss=Symbol(""),as=Symbol(""),ti=Symbol(""),ji=Symbol(""),Zt={[un]:"Fragment",[cn]:"Teleport",[Xr]:"Suspense",[Hn]:"KeepAlive",[Li]:"BaseTransition",[Xt]:"openBlock",[$i]:"createBlock",[wi]:"createElementBlock",[Hr]:"createVNode",[Gr]:"createElementVNode",[En]:"createCommentVNode",[Kr]:"createTextVNode",[Fi]:"createStaticVNode",[Wr]:"resolveComponent",[Yr]:"resolveDynamicComponent",[kr]:"resolveDirective",[Jr]:"resolveFilter",[zr]:"withDirectives",[Qr]:"renderList",[Vi]:"renderSlot",[Ui]:"createSlots",[Jn]:"toDisplayString",[Gn]:"mergeProps",[Zr]:"normalizeClass",[_r]:"normalizeStyle",[dn]:"normalizeProps",[yn]:"guardReactiveProps",[qr]:"toHandlers",[Nr]:"camelize",[rs]:"capitalize",[Cr]:"toHandlerKey",[Kn]:"setBlockTracking",[is]:"pushScopeId",[os]:"popScopeId",[ei]:"withCtx",[ss]:"unref",[as]:"isRef",[ti]:"withMemo",[ji]:"isMemoSame"};function ls(e){Object.getOwnPropertySymbols(e).forEach(t=>{Zt[t]=e[t]})}const _a={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},qa={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},el={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},tl={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Le={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function cs(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Le}}function hn(e,t,n,o,i,s,r,a=!1,l=!1,c=!1,u=Le){return e&&(a?(e.helper(Xt),e.helper(en(e.inSSR,c))):e.helper(qt(e.inSSR,c)),r&&e.helper(zr)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:s,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function Bt(e,t=Le){return{type:17,loc:t,elements:e}}function st(e,t=Le){return{type:15,loc:t,properties:e}}function Ae(e,t){return{type:16,loc:Le,key:Me(e)?Q(e,!0):e,value:t}}function Q(e,t=!1,n=Le,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function nl(e,t){return{type:5,loc:t,content:Me(e)?Q(e,!1,t):e}}function lt(e,t=Le){return{type:8,loc:t,children:e}}function Re(e,t=[],n=Le){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,o=!1,i=Le){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Ar(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Le}}function fs(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Le}}function us(e){return{type:21,body:e,loc:Le}}function rl(e){return{type:22,elements:e,loc:Le}}function il(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Le}}function ol(e,t){return{type:24,left:e,right:t,loc:Le}}function sl(e){return{type:25,expressions:e,loc:Le}}function al(e){return{type:26,returns:e,loc:Le}}function qt(e,t){return e||t?Hr:Gr}function en(e,t){return e||t?$i:wi}function ni(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(qt(o,e.isComponent)),t(Xt),t(en(o,e.isComponent)))}const So=new Uint8Array([123,123]),bo=new Uint8Array([125,125]);function To(e){return e>=97&&e<=122||e>=65&&e<=90}function it(e){return e===32||e===10||e===9||e===12||e===13}function Dt(e){return e===47||e===62||it(e)}function xr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Be={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ll{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=So,this.delimiterClose=bo,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=So,this.delimiterClose=bo}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let s=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}s=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){s=r;break}return s>=0&&(n=s+2,o=t-this.newlines[s]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Dt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||it(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Be.TitleEnd||this.currentSequence===Be.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Be.Cdata[this.sequenceIndex]?++this.sequenceIndex===Be.Cdata.length&&(this.state=28,this.currentSequence=Be.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):To(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Dt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Dt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(xr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){it(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=To(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||it(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):it(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):it(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Dt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Dt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Dt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Dt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Dt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):it(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):it(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){it(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Be.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Be.ScriptEnd[3]?this.startSpecial(Be.ScriptEnd,4):t===Be.StyleEnd[3]?this.startSpecial(Be.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Be.TitleEnd[3]?this.startSpecial(Be.TitleEnd,4):t===Be.TextareaEnd[3]?this.startSpecial(Be.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const cl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},fl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function bi(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function zt(e,t){const n=bi("MODE",t),o=bi(e,t);return n===3?o===!0:o!==!1}function pn(e,t,n,...o){return zt(e,t)}function ul(e,t,n,...o){if(bi(e,t)==="suppress-warning")return;const{message:s,link:r}=fl[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...o):s}${r?`
1
+ import{_ as Di}from"./fpPxFzzn.js";import{d as Vr,m as Et,r as Xn,n as va,c as le,b as ae,s as $n,e as G,D as Zo,E as Ea,h as U,I as Ut,t as re,j as ya,k as qe,w as ot,_ as Ur,N as wn,L as It,M as Me,O as rr,P as Mi,Q as Sa,R as _o,S as jt,T as ba,U as qo,V as Ta,W as wt,X as es,Y as go,Z as Ia,$ as Oa,a0 as Na,a1 as Ca,a2 as Aa,a3 as jr,a4 as xa,a5 as Pa,a6 as Ra,f as je,x as ts,H as Da,y as Ma,o as La,a7 as $a,u as wa,v as Fa,G as Va,F as Ua,q as ja,g as vo}from"./CRsWdsU-.js";import{g as Br,a as Ba}from"./92s3wAHG.js";import{i as ir,a as Eo,b as yo,u as Xa}from"./BE3foYyN.js";import{u as ns}from"./OpmtRlfX.js";import{u as Ha}from"./cFgYOPT2.js";const Ga={key:0,class:"icon-lock"},Ka={key:1,class:"handle-icon"},Wa={class:"column-info"},Ya={key:1,class:"column-name"},ka={class:"column-slug"},Ja={class:"column-actions"},za=["title"],Qa=Vr({__name:"PipelineColumn",props:{column:{},pipelineName:{default:""},editable:{type:Boolean,default:!0},isDragging:{type:Boolean,default:!1},showPrompt:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!0},locked:{type:Boolean,default:!1}},emits:["nameChange","nameBlur","remove"],setup(e){const t=e,n=Et(()=>{const i=`/column/${t.column.slug}/prompt`,s=new URLSearchParams;return t.pipelineName&&s.set("pipeline",t.pipelineName),s.set("name",t.column.name),`${i}?${s.toString()}`}),o=Xn(t.column.name);return va(()=>t.column.name,i=>{o.value=i}),(i,s)=>{const r=Di;return ae(),le("div",{class:$n(["pipeline-column",{dragging:e.isDragging,locked:e.locked}])},[G("div",{class:$n(["column-drag-handle",{disabled:e.locked}])},[e.locked?(ae(),le("span",Ga)):(ae(),le("span",Ka))],2),G("div",Wa,[e.editable?Zo((ae(),le("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=a=>Ut(o)?o.value=a:null),class:"column-name-input",onInput:s[1]||(s[1]=a=>i.$emit("nameChange",U(o))),onBlur:s[2]||(s[2]=a=>i.$emit("nameBlur"))},null,544)),[[Ea,U(o)]]):(ae(),le("span",Ya,re(e.column.name),1)),G("span",ka,re(e.column.slug),1)]),G("div",Ja,[e.showPrompt?(ae(),ya(r,{key:0,to:U(n),class:"btn-icon",title:i.$t("column.viewPrompt")},{default:ot(()=>[...s[4]||(s[4]=[G("span",{class:"icon-eye"},null,-1)])]),_:1},8,["to","title"])):qe("",!0),e.showRemove&&!e.locked?(ae(),le("button",{key:1,class:"btn-icon btn-danger",title:i.$t("form.delete"),onClick:s[3]||(s[3]=a=>i.$emit("remove",e.column))},[...s[5]||(s[5]=[G("span",{class:"icon-remove"},null,-1)])],8,za)):qe("",!0)])],2)}}}),Za=Object.assign(Ur(Qa,[["__scopeId","data-v-b7d3d1e3"]]),{__name:"PipelineColumn"});var hr={exports:{}},li={exports:{}},ci={};const un=Symbol(""),cn=Symbol(""),Xr=Symbol(""),Hn=Symbol(""),Li=Symbol(""),Xt=Symbol(""),$i=Symbol(""),wi=Symbol(""),Hr=Symbol(""),Gr=Symbol(""),En=Symbol(""),Kr=Symbol(""),Fi=Symbol(""),Wr=Symbol(""),Yr=Symbol(""),kr=Symbol(""),Jr=Symbol(""),zr=Symbol(""),Qr=Symbol(""),Vi=Symbol(""),Ui=Symbol(""),Jn=Symbol(""),Gn=Symbol(""),Zr=Symbol(""),_r=Symbol(""),dn=Symbol(""),yn=Symbol(""),qr=Symbol(""),Nr=Symbol(""),rs=Symbol(""),Cr=Symbol(""),Kn=Symbol(""),is=Symbol(""),os=Symbol(""),ei=Symbol(""),ss=Symbol(""),as=Symbol(""),ti=Symbol(""),ji=Symbol(""),Zt={[un]:"Fragment",[cn]:"Teleport",[Xr]:"Suspense",[Hn]:"KeepAlive",[Li]:"BaseTransition",[Xt]:"openBlock",[$i]:"createBlock",[wi]:"createElementBlock",[Hr]:"createVNode",[Gr]:"createElementVNode",[En]:"createCommentVNode",[Kr]:"createTextVNode",[Fi]:"createStaticVNode",[Wr]:"resolveComponent",[Yr]:"resolveDynamicComponent",[kr]:"resolveDirective",[Jr]:"resolveFilter",[zr]:"withDirectives",[Qr]:"renderList",[Vi]:"renderSlot",[Ui]:"createSlots",[Jn]:"toDisplayString",[Gn]:"mergeProps",[Zr]:"normalizeClass",[_r]:"normalizeStyle",[dn]:"normalizeProps",[yn]:"guardReactiveProps",[qr]:"toHandlers",[Nr]:"camelize",[rs]:"capitalize",[Cr]:"toHandlerKey",[Kn]:"setBlockTracking",[is]:"pushScopeId",[os]:"popScopeId",[ei]:"withCtx",[ss]:"unref",[as]:"isRef",[ti]:"withMemo",[ji]:"isMemoSame"};function ls(e){Object.getOwnPropertySymbols(e).forEach(t=>{Zt[t]=e[t]})}const _a={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},qa={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},el={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},tl={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Le={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function cs(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Le}}function hn(e,t,n,o,i,s,r,a=!1,l=!1,c=!1,u=Le){return e&&(a?(e.helper(Xt),e.helper(en(e.inSSR,c))):e.helper(qt(e.inSSR,c)),r&&e.helper(zr)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:s,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function Bt(e,t=Le){return{type:17,loc:t,elements:e}}function st(e,t=Le){return{type:15,loc:t,properties:e}}function Ae(e,t){return{type:16,loc:Le,key:Me(e)?Q(e,!0):e,value:t}}function Q(e,t=!1,n=Le,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function nl(e,t){return{type:5,loc:t,content:Me(e)?Q(e,!1,t):e}}function lt(e,t=Le){return{type:8,loc:t,children:e}}function Re(e,t=[],n=Le){return{type:14,loc:n,callee:e,arguments:t}}function _t(e,t=void 0,n=!1,o=!1,i=Le){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Ar(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:Le}}function fs(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:Le}}function us(e){return{type:21,body:e,loc:Le}}function rl(e){return{type:22,elements:e,loc:Le}}function il(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Le}}function ol(e,t){return{type:24,left:e,right:t,loc:Le}}function sl(e){return{type:25,expressions:e,loc:Le}}function al(e){return{type:26,returns:e,loc:Le}}function qt(e,t){return e||t?Hr:Gr}function en(e,t){return e||t?$i:wi}function ni(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(qt(o,e.isComponent)),t(Xt),t(en(o,e.isComponent)))}const So=new Uint8Array([123,123]),bo=new Uint8Array([125,125]);function To(e){return e>=97&&e<=122||e>=65&&e<=90}function it(e){return e===32||e===10||e===9||e===12||e===13}function Dt(e){return e===47||e===62||it(e)}function xr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Be={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ll{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=So,this.delimiterClose=bo,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=So,this.delimiterClose=bo}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let s=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}s=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){s=r;break}return s>=0&&(n=s+2,o=t-this.newlines[s]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Dt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||it(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Be.TitleEnd||this.currentSequence===Be.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Be.Cdata[this.sequenceIndex]?++this.sequenceIndex===Be.Cdata.length&&(this.state=28,this.currentSequence=Be.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):To(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Dt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Dt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(xr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){it(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=To(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||it(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):it(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):it(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Dt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Dt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Dt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Dt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Dt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):it(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):it(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){it(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Be.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Be.ScriptEnd[3]?this.startSpecial(Be.ScriptEnd,4):t===Be.StyleEnd[3]?this.startSpecial(Be.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Be.TitleEnd[3]?this.startSpecial(Be.TitleEnd,4):t===Be.TextareaEnd[3]?this.startSpecial(Be.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Be.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const cl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},fl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function bi(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function zt(e,t){const n=bi("MODE",t),o=bi(e,t);return n===3?o===!0:o!==!1}function pn(e,t,n,...o){return zt(e,t)}function ul(e,t,n,...o){if(bi(e,t)==="suppress-warning")return;const{message:s,link:r}=fl[e],a=`(deprecation ${e}) ${typeof s=="function"?s(...o):s}${r?`
2
2
  Details: ${r}`:""}`,l=new SyntaxError(a);l.code=e,n&&(l.loc=n),t.onWarn(l)}function Bi(e){throw e}function ds(e){}function de(e,t,n,o){const i=`https://vuejs.org/error-reference/#compiler-${e}`,s=new SyntaxError(String(i));return s.code=e,s.loc=t,s}const dl={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},hl={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
3
3
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function pl(e,t,n=!1,o=[],i=Object.create(null)){}function ml(e,t,n){return!1}function gl(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function vl(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function El(e,t){for(const n of e.params)for(const o of vt(n))t(o)}function hs(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const i of o.declarations)for(const s of vt(i.id))t(s)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else yl(o)?Sl(o,!0,t):o.type==="SwitchStatement"&&bl(o,!0,t)}function yl(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function Sl(e,t,n){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const i of o.declarations)for(const s of vt(i.id))n(s)}function bl(e,t,n){for(const o of e.cases){for(const i of o.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const s of i.declarations)for(const r of vt(s.id))n(r);hs(o,n)}}function vt(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?vt(o.argument,t):vt(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&vt(o,t)});break;case"RestElement":vt(e.argument,t);break;case"AssignmentPattern":vt(e.left,t);break}return t}const Tl=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),ps=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,Il=(e,t)=>ps(t)&&t.key===e,ms=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function gs(e){return ms.includes(e.type)?gs(e.expression):e}const Je=e=>e.type===4&&e.isStatic;function Xi(e){switch(e){case"Teleport":case"teleport":return cn;case"Suspense":case"suspense":return Xr;case"KeepAlive":case"keep-alive":return Hn;case"BaseTransition":case"base-transition":return Li}}const Ol=/^$|^\d|[^\$\w\xA0-\uFFFF]/,zn=e=>!Ol.test(e),Hi=/[A-Za-z_$\xA0-\uFFFF]/,Nl=/[\.\?\w$\xA0-\uFFFF]/,Cl=/\s+[.[]\s*|\s*[.[]\s+/g,vs=e=>e.type===4?e.content:e.loc.source,Es=e=>{const t=vs(e).trim().replace(Cl,a=>a.trim());let n=0,o=[],i=0,s=0,r=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,s++;else if(!(a===0?Hi:Nl).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")s++;else if(l===")"){if(a===t.length-1)return!1;--s||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!i&&!s},Al=wn,Gi=Es,xl=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,ys=e=>xl.test(vs(e)),Pl=wn,Ss=ys;function Rl(e,t,n=t.length){return bs({offset:e.offset,line:e.line,column:e.column},t,n)}function bs(e,t,n=t.length){let o=0,i=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(o++,i=s);return e.offset+=n,e.line+=o,e.column=i===-1?e.column+n:n-i,e}function Dl(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function ke(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(n||i.exp)&&(Me(t)?i.name===t:t.test(i.name)))return i}}function Qn(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const s=e.props[i];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||o))return s}else if(s.name==="bind"&&(s.exp||o)&&Ft(s.arg,t))return s}}function Ft(e,t){return!!(e&&Je(e)&&e.content===t)}function Ts(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function pr(e){return e.type===5||e.type===2}function Ti(e){return e.type===7&&e.name==="pre"}function Ki(e){return e.type===7&&e.name==="slot"}function mn(e){return e.type===1&&e.tagType===3}function Wn(e){return e.type===1&&e.tagType===2}const Ml=new Set([dn,yn]);function Is(e,t=[]){if(e&&!Me(e)&&e.type===14){const n=e.callee;if(!Me(n)&&Ml.has(n))return Is(e.arguments[0],t.concat(e))}return[e,t]}function Yn(e,t,n){let o,i=e.type===13?e.props:e.arguments[2],s=[],r;if(i&&!Me(i)&&i.type===14){const a=Is(i);i=a[0],s=a[1],r=s[s.length-1]}if(i==null||Me(i))o=st([t]);else if(i.type===14){const a=i.arguments[0];!Me(a)&&a.type===15?Io(t,a)||a.properties.unshift(t):i.callee===qr?o=Re(n.helper(Gn),[st([t]),i]):i.arguments.unshift(st([t])),!o&&(o=i)}else i.type===15?(Io(t,i)||i.properties.unshift(t),o=i):(o=Re(n.helper(Gn),[st([t]),i]),r&&r.callee===yn&&(r=s[s.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Io(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function gn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function ht(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(ht(o.arg,t)||ht(o.exp,t)))return!0}return e.children.some(n=>ht(n,t));case 11:return ht(e.source,t)?!0:e.children.some(n=>ht(n,t));case 9:return e.branches.some(n=>ht(n,t));case 10:return ht(e.condition,t)?!0:e.children.some(n=>ht(n,t));case 4:return!e.isStatic&&zn(e.content)&&!!t[e.content];case 8:return e.children.some(n=>qo(n)&&ht(n,t));case 5:case 12:return ht(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Os(e){return e.type===14&&e.callee===ti?e.arguments[1].returns:e}const Ns=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Wi(e){for(let t=0;t<e.length;t++)if(!it(e.charCodeAt(t)))return!1;return!0}function ri(e){return e.type===2&&Wi(e.content)||e.type===12&&ri(e.content)}function Yi(e){return e.type===3||ri(e)}const Cs={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:rr,isPreTag:rr,isIgnoreNewlineTag:rr,isCustomElement:rr,onError:Bi,onWarn:ds,comments:!1,prefixIdentifiers:!1};let se=Cs,kn=null,Ot="",He=null,ee=null,_e="",Tt=-1,Yt=-1,ki=0,Mt=!1,Ii=null;const me=[],Oe=new ll(me,{onerr:bt,ontext(e,t){or(Ue(e,t),e,t)},ontextentity(e,t,n){or(e,t,n)},oninterpolation(e,t){if(Mt)return or(Ue(e,t),e,t);let n=e+Oe.delimiterOpen.length,o=t-Oe.delimiterClose.length;for(;it(Ot.charCodeAt(n));)n++;for(;it(Ot.charCodeAt(o-1));)o--;let i=Ue(n,o);i.includes("&")&&(i=se.decodeEntities(i,!1)),Oi({type:5,content:gr(i,!1,Ce(n,o)),loc:Ce(e,t)})},onopentagname(e,t){const n=Ue(e,t);He={type:1,tag:n,ns:se.getNamespace(n,me[0],se.ns),tagType:0,props:[],children:[],loc:Ce(e-1,t),codegenNode:void 0}},onopentagend(e){No(e)},onclosetag(e,t){const n=Ue(e,t);if(!se.isVoidTag(n)){let o=!1;for(let i=0;i<me.length;i++)if(me[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&bt(24,me[0].loc.start.offset);for(let r=0;r<=i;r++){const a=me.shift();mr(a,t,r<i)}break}o||bt(23,As(e,60))}},onselfclosingtag(e){const t=He.tag;He.isSelfClosing=!0,No(e),me[0]&&me[0].tag===t&&mr(me.shift(),e)},onattribname(e,t){ee={type:6,name:Ue(e,t),nameLoc:Ce(e,t),value:void 0,loc:Ce(e)}},ondirname(e,t){const n=Ue(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Mt&&o===""&&bt(26,e),Mt||o==="")ee={type:6,name:n,nameLoc:Ce(e,t),value:void 0,loc:Ce(e)};else if(ee={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[Q("prop")]:[],loc:Ce(e)},o==="pre"){Mt=Oe.inVPre=!0,Ii=He;const i=He.props;for(let s=0;s<i.length;s++)i[s].type===7&&(i[s]=Hl(i[s]))}},ondirarg(e,t){if(e===t)return;const n=Ue(e,t);if(Mt&&!Ti(ee))ee.name+=n,Jt(ee.nameLoc,t);else{const o=n[0]!=="[";ee.arg=gr(o?n:n.slice(1,-1),o,Ce(e,t),o?3:0)}},ondirmodifier(e,t){const n=Ue(e,t);if(Mt&&!Ti(ee))ee.name+="."+n,Jt(ee.nameLoc,t);else if(ee.name==="slot"){const o=ee.arg;o&&(o.content+="."+n,Jt(o.loc,t))}else{const o=Q(n,!0,Ce(e,t));ee.modifiers.push(o)}},onattribdata(e,t){_e+=Ue(e,t),Tt<0&&(Tt=e),Yt=t},onattribentity(e,t,n){_e+=e,Tt<0&&(Tt=t),Yt=n},onattribnameend(e){const t=ee.loc.start.offset,n=Ue(t,e);ee.type===7&&(ee.rawName=n),He.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&bt(2,t)},onattribend(e,t){if(He&&ee){if(Jt(ee.loc,t),e!==0)if(_e.includes("&")&&(_e=se.decodeEntities(_e,!0)),ee.type===6)ee.name==="class"&&(_e=Ps(_e).trim()),e===1&&!_e&&bt(13,t),ee.value={type:2,content:_e,loc:e===1?Ce(Tt,Yt):Ce(Tt-1,Yt+1)},Oe.inSFCRoot&&He.tag==="template"&&ee.name==="lang"&&_e&&_e!=="html"&&Oe.enterRCDATA(xr("</template"),0);else{let n=0;ee.exp=gr(_e,!1,Ce(Tt,Yt),0,n),ee.name==="for"&&(ee.forParseResult=$l(ee.exp));let o=-1;ee.name==="bind"&&(o=ee.modifiers.findIndex(i=>i.content==="sync"))>-1&&pn("COMPILER_V_BIND_SYNC",se,ee.loc,ee.arg.loc.source)&&(ee.name="model",ee.modifiers.splice(o,1))}(ee.type!==7||ee.name!=="pre")&&He.props.push(ee)}_e="",Tt=Yt=-1},oncomment(e,t){se.comments&&Oi({type:3,content:Ue(e,t),loc:Ce(e-4,t+3)})},onend(){const e=Ot.length;for(let t=0;t<me.length;t++)mr(me[t],e-1),bt(24,me[t].loc.start.offset)},oncdata(e,t){me[0].ns!==0?or(Ue(e,t),e,t):bt(1,e-9)},onprocessinginstruction(e){(me[0]?me[0].ns:se.ns)===0&&bt(21,e-1)}}),Oo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ll=/^\(|\)$/g;function $l(e){const t=e.loc,n=e.content,o=n.match(Ns);if(!o)return;const[,i,s]=o,r=(f,d,h=!1)=>{const p=t.start.offset+d,m=p+f.length;return gr(f,!1,Ce(p,m),0,h?1:0)},a={source:r(s.trim(),n.indexOf(s,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Ll,"").trim();const c=i.indexOf(l),u=l.match(Oo);if(u){l=l.replace(Oo,"").trim();const f=u[1].trim();let d;if(f&&(d=n.indexOf(f,c+l.length),a.key=r(f,d,!0)),u[2]){const h=u[2].trim();h&&(a.index=r(h,n.indexOf(h,a.key?d+f.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function Ue(e,t){return Ot.slice(e,t)}function No(e){Oe.inSFCRoot&&(He.innerLoc=Ce(e+1,e+1)),Oi(He);const{tag:t,ns:n}=He;n===0&&se.isPreTag(t)&&ki++,se.isVoidTag(t)?mr(He,e):(me.unshift(He),(n===1||n===2)&&(Oe.inXML=!0)),He=null}function or(e,t,n){{const s=me[0]&&me[0].tag;s!=="script"&&s!=="style"&&e.includes("&")&&(e=se.decodeEntities(e,!1))}const o=me[0]||kn,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,Jt(i.loc,n)):o.children.push({type:2,content:e,loc:Ce(t,n)})}function mr(e,t,n=!1){n?Jt(e.loc,As(t,60)):Jt(e.loc,wl(t,62)+1),Oe.inSFCRoot&&(e.children.length?e.innerLoc.end=It({},e.children[e.children.length-1].loc.end):e.innerLoc.end=It({},e.innerLoc.start),e.innerLoc.source=Ue(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:s}=e;if(Mt||(o==="slot"?e.tagType=2:Co(e)?e.tagType=3:Vl(e)&&(e.tagType=1)),Oe.inRCDATA||(e.children=xs(s)),i===0&&se.isIgnoreNewlineTag(o)){const r=s[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&se.isPreTag(o)&&ki--,Ii===e&&(Mt=Oe.inVPre=!1,Ii=null),Oe.inXML&&(me[0]?me[0].ns:se.ns)===0&&(Oe.inXML=!1);{const r=e.props;if(!Oe.inSFCRoot&&zt("COMPILER_NATIVE_TEMPLATE",se)&&e.tag==="template"&&!Co(e)){const l=me[0]||kn,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&pn("COMPILER_INLINE_TEMPLATE",se,a.loc)&&e.children.length&&(a.value={type:2,content:Ue(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function wl(e,t){let n=e;for(;Ot.charCodeAt(n)!==t&&n<Ot.length-1;)n++;return n}function As(e,t){let n=e;for(;Ot.charCodeAt(n)!==t&&n>=0;)n--;return n}const Fl=new Set(["if","else","else-if","for","slot"]);function Co({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Fl.has(t[n].name))return!0}return!1}function Vl({tag:e,props:t}){if(se.isCustomElement(e))return!1;if(e==="component"||Ul(e.charCodeAt(0))||Xi(e)||se.isBuiltInComponent&&se.isBuiltInComponent(e)||se.isNativeTag&&!se.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(pn("COMPILER_IS_ON_ELEMENT",se,o.loc))return!0}}else if(o.name==="bind"&&Ft(o.arg,"is")&&pn("COMPILER_IS_ON_ELEMENT",se,o.loc))return!0}return!1}function Ul(e){return e>64&&e<91}const jl=/\r\n/g;function xs(e){const t=se.whitespace!=="preserve";let n=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i.type===2)if(ki)i.content=i.content.replace(jl,`
4
4
  `);else if(Wi(i.content)){const s=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!s||!r||t&&(s===3&&(r===3||r===1)||s===1&&(r===3||r===1&&Bl(i.content)))?(n=!0,e[o]=null):i.content=" "}else t&&(i.content=Ps(i.content))}return n?e.filter(Boolean):e}function Bl(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Ps(e){let t="",n=!1;for(let o=0;o<e.length;o++)it(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Oi(e){(me[0]||kn).children.push(e)}function Ce(e,t){return{start:Oe.getPos(e),end:t==null?t:Oe.getPos(t),source:t==null?t:Ue(e,t)}}function Xl(e){return Ce(e.start.offset,e.end.offset)}function Jt(e,t){e.end=Oe.getPos(t),e.source=Ue(e.start.offset,t)}function Hl(e){const t={type:6,name:e.rawName,nameLoc:Ce(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function gr(e,t=!1,n,o=0,i=0){return Q(e,t,n,o)}function bt(e,t,n){se.onError(de(e,Ce(t,t)))}function Gl(){Oe.reset(),He=null,ee=null,_e="",Tt=-1,Yt=-1,me.length=0}function Ji(e,t){if(Gl(),Ot=e,se=It({},Cs),t){let i;for(i in t)t[i]!=null&&(se[i]=t[i])}Oe.mode=se.parseMode==="html"?1:se.parseMode==="sfc"?2:0,Oe.inXML=se.ns===1||se.ns===2;const n=t&&t.delimiters;n&&(Oe.delimiterOpen=xr(n[0]),Oe.delimiterClose=xr(n[1]));const o=kn=cs([],e);return Oe.parse(Ot),o.loc=Ce(0,e.length),o.children=xs(o.children),kn=null,o}function Kl(e,t){vr(e,void 0,t,!!Rs(e))}function Rs(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!Wn(t[0])?t[0]:null}function vr(e,t,n,o=!1,i=!1){const{children:s}=e,r=[];for(let u=0;u<s.length;u++){const f=s[u];if(f.type===1&&f.tagType===0){const d=o?0:et(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,r.push(f);continue}}else{const h=f.codegenNode;if(h.type===13){const p=h.patchFlag;if((p===void 0||p===512||p===1)&&Ms(f,n)>=2){const m=Ls(f);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(f.type===12&&(o?0:et(f,n))>=2){f.codegenNode.type===14&&f.codegenNode.arguments.length>0&&f.codegenNode.arguments.push("-1"),r.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,vr(f,e,n,!1,i),d&&n.scopes.vSlot--}else if(f.type===11)vr(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)vr(f.branches[d],e,n,f.branches[d].children.length===1,i)}let a=!1;if(r.length===s.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&wt(e.codegenNode.children))e.codegenNode.children=l(Bt(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!wt(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=c(e.codegenNode,"default");u&&(u.returns=l(Bt(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!wt(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=ke(e,"slot",!0),f=u&&u.arg&&c(t.codegenNode,u.arg);f&&(f.returns=l(Bt(f.returns)),a=!0)}}if(!a)for(const u of r)u.codegenNode=n.cache(u.codegenNode);function l(u){const f=n.cache(u);return f.needArraySpread=!0,f}function c(u,f){if(u.children&&!wt(u.children)&&u.children.type===15){const d=u.children.properties.find(h=>h.key===f||h.key.content===f);return d&&d.value}}r.length&&n.transformHoist&&n.transformHoist(s,n,e)}function et(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const a=Ms(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let l=0;l<e.children.length;l++){const c=et(e.children[l],t);if(c===0)return n.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const u=et(c.exp,t);if(u===0)return n.set(e,0),0;u<r&&(r=u)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Xt),t.removeHelper(en(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(qt(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return et(e.content,t);case 4:return e.constType;case 8:let s=3;for(let r=0;r<e.children.length;r++){const a=e.children[r];if(Me(a)||Mi(a))continue;const l=et(a,t);if(l===0)return 0;l<s&&(s=l)}return s;case 20:return 2;default:return 0}}const Wl=new Set([Zr,_r,dn,yn]);function Ds(e,t){if(e.type===14&&!Me(e.callee)&&Wl.has(e.callee)){const n=e.arguments[0];if(n.type===4)return et(n,t);if(n.type===14)return Ds(n,t)}return 0}function Ms(e,t){let n=3;const o=Ls(e);if(o&&o.type===15){const{properties:i}=o;for(let s=0;s<i.length;s++){const{key:r,value:a}=i[s],l=et(r,t);if(l===0)return l;l<n&&(n=l);let c;if(a.type===4?c=et(a,t):a.type===14?c=Ds(a,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Ls(e){const t=e.codegenNode;if(t.type===13)return t.props}function $s(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:r=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=wn,isCustomElement:u=wn,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:p=!1,inSSR:m=!1,ssrCssVars:g="",bindingMetadata:v=ba,inline:E=!1,isTS:I=!1,onError:y=Bi,onWarn:N=ds,compatConfig:O}){const $=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={filename:t,selfName:$&&_o(jt($[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:s,nodeTransforms:r,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:f,scopeId:d,slotted:h,ssr:p,inSSR:m,ssrCssVars:g,bindingMetadata:v,inline:E,isTS:I,onError:y,onWarn:N,compatConfig:O,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(S){const R=P.helpers.get(S)||0;return P.helpers.set(S,R+1),S},removeHelper(S){const R=P.helpers.get(S);if(R){const M=R-1;M?P.helpers.set(S,M):P.helpers.delete(S)}},helperString(S){return`_${Zt[P.helper(S)]}`},replaceNode(S){P.parent.children[P.childIndex]=P.currentNode=S},removeNode(S){const R=P.parent.children,M=S?R.indexOf(S):P.currentNode?P.childIndex:-1;!S||S===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>M&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice(M,1)},onNodeRemoved:wn,addIdentifiers(S){},removeIdentifiers(S){},hoist(S){Me(S)&&(S=Q(S)),P.hoists.push(S);const R=Q(`_hoisted_${P.hoists.length}`,!1,S.loc,2);return R.hoisted=S,R},cache(S,R=!1,M=!1){const D=fs(P.cached.length,S,R,M);return P.cached.push(D),D}};return P.filters=new Set,P}function ws(e,t){const n=$s(e,t);Zn(e,n),t.hoistStatic&&Kl(e,n),t.ssr||Yl(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Yl(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=Rs(e);if(i&&i.codegenNode){const s=i.codegenNode;s.type===13&&ni(s,t),e.codegenNode=s}else e.codegenNode=o[0]}else if(o.length>1){let i=64;e.codegenNode=hn(t,n(un),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function kl(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Me(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,Zn(i,t))}}function Zn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let s=0;s<n.length;s++){const r=n[s](e,t);if(r&&(wt(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(En);break;case 5:t.ssr||t.helper(Jn);break;case 9:for(let s=0;s<e.branches.length;s++)Zn(e.branches[s],t);break;case 10:case 11:case 1:case 0:kl(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function zi(e,t){const n=Me(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:s}=o;if(o.tagType===3&&s.some(Ki))return;const r=[];for(let a=0;a<s.length;a++){const l=s[a];if(l.type===7&&n(l.name)){s.splice(a,1),a--;const c=t(o,l,i);c&&r.push(c)}}return r}}}const ii="/*@__PURE__*/",Fs=e=>`${Zt[e]}: _${Zt[e]}`;function Jl(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:s=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:s,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Zt[m]}`},push(m,g=-2,v){h.code+=m},indent(){p(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(m){h.push(`
@@ -1 +1 @@
1
- import{m as h,r as o}from"./nSLZfjDc.js";const v={BACKLOG:"backlog",DONE:"done"};function S(u){const t=u.replace(/^\d+_/,"");return t===v.BACKLOG||t===v.DONE}function L(u){return u.replace(/^\d+_/,"")===v.BACKLOG}function $(u){return u.replace(/^\d+_/,"")===v.DONE}const c=o(""),e=o(null),f=o(!1),p=o(!1),d=o(!1),w=()=>{const u=async l=>{if(l){p.value=!0;try{const n=await $fetch(`/api/pipelines/${l}`);e.value=n,f.value=!1}finally{p.value=!1}}},t=async()=>{if(!(!e.value||!c.value)){d.value=!0;try{return await $fetch(`/api/pipelines/${c.value}`,{method:"PUT",body:{version:e.value.version,description:e.value.description,definition:e.value.definition,action:e.value.action,finish:e.value.finish}}),f.value=!1,!0}finally{d.value=!1}}},s=()=>{f.value=!0},g=l=>l.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),m=h(()=>e.value?[...e.value.definition,...e.value.action,...e.value.finish]:[]),y=h(()=>e.value?e.value.definition.length>0&&e.value.action.length>0&&e.value.finish.length>0:!1),P=(l,n)=>{if(!e.value||!n.trim())return!1;const i=g(n);return m.value.map(r=>r.slug.replace(/^\d+_/,"")).includes(i)?!1:(e.value[l].push({name:n,slug:i}),s(),!0)},_=(l,n)=>{if(!e.value||S(n.slug))return!1;const i=e.value[l].findIndex(a=>a.slug===n.slug);return i>-1?(e.value[l].splice(i,1),s(),!0):!1},C=l=>{if(!e.value)return{inPipeline:!1};const n=l.replace(/^\d+_/,"");for(const i of["definition","action","finish"]){const a=e.value[i].find(r=>r.slug.replace(/^\d+_/,"")===n);if(a)return{inPipeline:!0,segment:i,column:a}}return{inPipeline:!1}};return{selectedPipeline:c,pipelineConfig:e,isDirty:f,loading:p,saving:d,loadPipeline:u,savePipeline:t,markDirty:s,generateSlug:g,allColumns:m,isValid:y,addColumn:P,removeColumn:_,isColumnInPipeline:C,addColumnBySlug:(l,n,i)=>{if(!e.value)return!1;const a=l.replace(/^\d+_/,"");return C(a).inPipeline?!1:(e.value[i].push({name:n,slug:a}),s(),!0)},removeColumnBySlug:l=>{if(!e.value)return!1;const n=l.replace(/^\d+_/,"");if(S(n))return!1;for(const i of["definition","action","finish"]){const a=e.value[i].findIndex(r=>r.slug.replace(/^\d+_/,"")===n);if(a>-1)return e.value[i].splice(a,1),s(),!0}return!1},loadActivePipeline:async()=>{if(!e.value)try{const n=(await $fetch("/api/pipelines")).find(i=>i.active);n&&(c.value=n.name,await u(n.name))}catch{}}}};export{L as a,$ as b,S as i,w as u};
1
+ import{m as h,r as o}from"./CRsWdsU-.js";const v={BACKLOG:"backlog",DONE:"done"};function S(u){const t=u.replace(/^\d+_/,"");return t===v.BACKLOG||t===v.DONE}function L(u){return u.replace(/^\d+_/,"")===v.BACKLOG}function $(u){return u.replace(/^\d+_/,"")===v.DONE}const c=o(""),e=o(null),f=o(!1),p=o(!1),d=o(!1),w=()=>{const u=async l=>{if(l){p.value=!0;try{const n=await $fetch(`/api/pipelines/${l}`);e.value=n,f.value=!1}finally{p.value=!1}}},t=async()=>{if(!(!e.value||!c.value)){d.value=!0;try{return await $fetch(`/api/pipelines/${c.value}`,{method:"PUT",body:{version:e.value.version,description:e.value.description,definition:e.value.definition,action:e.value.action,finish:e.value.finish}}),f.value=!1,!0}finally{d.value=!1}}},s=()=>{f.value=!0},g=l=>l.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),m=h(()=>e.value?[...e.value.definition,...e.value.action,...e.value.finish]:[]),y=h(()=>e.value?e.value.definition.length>0&&e.value.action.length>0&&e.value.finish.length>0:!1),P=(l,n)=>{if(!e.value||!n.trim())return!1;const i=g(n);return m.value.map(r=>r.slug.replace(/^\d+_/,"")).includes(i)?!1:(e.value[l].push({name:n,slug:i}),s(),!0)},_=(l,n)=>{if(!e.value||S(n.slug))return!1;const i=e.value[l].findIndex(a=>a.slug===n.slug);return i>-1?(e.value[l].splice(i,1),s(),!0):!1},C=l=>{if(!e.value)return{inPipeline:!1};const n=l.replace(/^\d+_/,"");for(const i of["definition","action","finish"]){const a=e.value[i].find(r=>r.slug.replace(/^\d+_/,"")===n);if(a)return{inPipeline:!0,segment:i,column:a}}return{inPipeline:!1}};return{selectedPipeline:c,pipelineConfig:e,isDirty:f,loading:p,saving:d,loadPipeline:u,savePipeline:t,markDirty:s,generateSlug:g,allColumns:m,isValid:y,addColumn:P,removeColumn:_,isColumnInPipeline:C,addColumnBySlug:(l,n,i)=>{if(!e.value)return!1;const a=l.replace(/^\d+_/,"");return C(a).inPipeline?!1:(e.value[i].push({name:n,slug:a}),s(),!0)},removeColumnBySlug:l=>{if(!e.value)return!1;const n=l.replace(/^\d+_/,"");if(S(n))return!1;for(const i of["definition","action","finish"]){const a=e.value[i].findIndex(r=>r.slug.replace(/^\d+_/,"")===n);if(a>-1)return e.value[i].splice(a,1),s(),!0}return!1},loadActivePipeline:async()=>{if(!e.value)try{const n=(await $fetch("/api/pipelines")).find(i=>i.active);n&&(c.value=n.name,await u(n.name))}catch{}}}};export{L as a,$ as b,S as i,w as u};
@@ -1 +1 @@
1
- import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./nSLZfjDc.js";const b={class:"lang-switcher"},k=["title","onClick"],r="autocode-lang",w=d({__name:"LangSwitcher",setup(C){const{locale:a,locales:_,setLocale:u}=p(),i=c(()=>_.value),m=c(()=>a.value),o=async e=>{await u(e),localStorage.setItem(r,e),document.documentElement.lang=e};return g(()=>{const e=localStorage.getItem(r);e&&e!==a.value&&o(e),document.documentElement.lang=a.value}),(e,E)=>(s(),n("div",b,[(s(!0),n(v,null,h(l(i),t=>(s(),n("button",{key:t.code,class:L(["lang-btn",{active:l(m)===t.code}]),title:t.name,onClick:x=>o(t.code)},f(t.code.toUpperCase()),11,k))),128))]))}}),y=Object.assign(S(w,[["__scopeId","data-v-2d84a2aa"]]),{__name:"LangSwitcher"});export{y as _};
1
+ import{d,u as p,m as c,o as g,c as n,b as s,F as v,q as h,s as L,h as l,t as f,_ as S}from"./CRsWdsU-.js";const b={class:"lang-switcher"},k=["title","onClick"],r="autocode-lang",w=d({__name:"LangSwitcher",setup(C){const{locale:a,locales:_,setLocale:u}=p(),i=c(()=>_.value),m=c(()=>a.value),o=async e=>{await u(e),localStorage.setItem(r,e),document.documentElement.lang=e};return g(()=>{const e=localStorage.getItem(r);e&&e!==a.value&&o(e),document.documentElement.lang=a.value}),(e,E)=>(s(),n("div",b,[(s(!0),n(v,null,h(l(i),t=>(s(),n("button",{key:t.code,class:L(["lang-btn",{active:l(m)===t.code}]),title:t.name,onClick:x=>o(t.code)},f(t.code.toUpperCase()),11,k))),128))]))}}),y=Object.assign(S(w,[["__scopeId","data-v-2d84a2aa"]]),{__name:"LangSwitcher"});export{y as _};
@@ -1 +1 @@
1
- import{N as C,M as _,bt as R,r as v,L as E}from"./ge5HoFHn.js";import{c as s,b as t,al as N,d as k,r as x,e as D,f as i,k as b,h as n,A as w,w as h,j as B,F as $,aF as I,m as S,aJ as z,s as F,p as A,t as L}from"./nSLZfjDc.js";import{m as V}from"./BQPgjGfs.js";import{w as O}from"./BAAiS_qy.js";const j={},q={class:"gap-1/2 flex flex-col px-3 pb-[75px]"};function J(r,u){return t(),s("ul",q,[N(r.$slots,"default")])}const X=C(j,[["render",J]]),K={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},T=k({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(r,{emit:u}){const c=u,o=x({action:"None",name:""}),p=_(),{copyToClipboard:g}=R();function f(a){o.value={action:a,name:r.variable.name},p.show()}function d(){p.hide(),o.value={action:"None",name:""}}function y(a){c("delete",a),d()}return(a,e)=>(t(),s($,null,[D("div",K,[a.isCopyable?(t(),s("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:e[0]||(e[0]=l=>n(g)(a.variable.name))},[i(n(v),{class:"h-3 w-3",icon:"Clipboard"})])):b("",!0),a.isRenameable?(t(),s("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:e[1]||(e[1]=l=>c("rename",a.variable.uid))},[i(n(v),{class:"h-3 w-3",icon:"Edit"})])):b("",!0),!a.variable.isDefault&&a.isDeletable?(t(),s("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:e[2]||(e[2]=w(l=>f("Delete"),["prevent"]))},[i(n(v),{class:"h-3.5 w-3.5",icon:"Close"})])):b("",!0)]),i(n(E),{size:"sm",state:n(p),title:`${o.value.action} ${o.value.name}`},{default:h(()=>[o.value.action==="Delete"?(t(),B(O,{key:0,variableName:o.value.name,warningMessage:a.warningMessage,onClose:d,onDelete:e[3]||(e[3]=l=>y(a.variable.uid))},null,8,["variableName","warningMessage"])):b("",!0)]),_:1},8,["state","title"])],64))}}),G={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},H=k({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(r,{emit:u}){const c=u,o=I(),p=e=>{e.metaKey?window.open(o.resolve(r.to).href,"_blank"):o.push(r.to)},g=e=>{c("delete",e)},f=e=>{c("colorModal",e)},d=e=>{c("rename",e)},y=x(null),a=S(()=>({ceiling:.5,floor:.5}));return(e,l)=>{const M=z("router-link");return t(),s("li",null,[i(n(V),{id:e.variable.uid,ref_key:"draggableRef",ref:y,ceiling:a.value.ceiling,floor:a.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.collectionId?[e.collectionId]:[],onOnDragEnd:l[2]||(l[2]=(...m)=>e.$emit("onDragEnd",...m))},{default:h(()=>[i(M,{class:F(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[e.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:e.to,onClick:l[1]||(l[1]=w(m=>p(m),["prevent"]))},{default:h(()=>[e.variable.color?(t(),s("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:l[0]||(l[0]=m=>f(e.variable.uid))},[D("div",{class:"h-2.5 w-2.5 rounded-xl",style:A({backgroundColor:e.variable.color})},null,4)])):b("",!0),e.variable.icon?(t(),B(n(v),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:e.variable.icon},null,8,["icon"])):b("",!0),D("span",G,L(e.variable.name),1),i(T,{isCopyable:!!e.isCopyable,isDeletable:!!e.isDeletable,isRenameable:!!e.isRenameable,variable:{...e.variable,isDefault:e.variable.isDefault??!1},warningMessage:e.warningMessage,onDelete:g,onRename:d},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])]),_:1},8,["class","to"])]),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),Y=C(H,[["__scopeId","data-v-0b6c70e4"]]);export{X as _,Y as p};
1
+ import{N as C,M as _,bt as R,r as v,L as E}from"./D1Q9L7QE.js";import{c as s,b as t,al as N,d as k,r as x,e as D,f as i,k as b,h as n,A as w,w as h,j as B,F as $,aF as I,m as S,aJ as z,s as F,p as A,t as L}from"./CRsWdsU-.js";import{m as V}from"./BJjQ3yAn.js";import{w as O}from"./RhTS06Sf.js";const j={},q={class:"gap-1/2 flex flex-col px-3 pb-[75px]"};function J(r,u){return t(),s("ul",q,[N(r.$slots,"default")])}const X=C(j,[["render",J]]),K={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},T=k({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(r,{emit:u}){const c=u,o=x({action:"None",name:""}),p=_(),{copyToClipboard:g}=R();function f(a){o.value={action:a,name:r.variable.name},p.show()}function d(){p.hide(),o.value={action:"None",name:""}}function y(a){c("delete",a),d()}return(a,e)=>(t(),s($,null,[D("div",K,[a.isCopyable?(t(),s("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:e[0]||(e[0]=l=>n(g)(a.variable.name))},[i(n(v),{class:"h-3 w-3",icon:"Clipboard"})])):b("",!0),a.isRenameable?(t(),s("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:e[1]||(e[1]=l=>c("rename",a.variable.uid))},[i(n(v),{class:"h-3 w-3",icon:"Edit"})])):b("",!0),!a.variable.isDefault&&a.isDeletable?(t(),s("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:e[2]||(e[2]=w(l=>f("Delete"),["prevent"]))},[i(n(v),{class:"h-3.5 w-3.5",icon:"Close"})])):b("",!0)]),i(n(E),{size:"sm",state:n(p),title:`${o.value.action} ${o.value.name}`},{default:h(()=>[o.value.action==="Delete"?(t(),B(O,{key:0,variableName:o.value.name,warningMessage:a.warningMessage,onClose:d,onDelete:e[3]||(e[3]=l=>y(a.variable.uid))},null,8,["variableName","warningMessage"])):b("",!0)]),_:1},8,["state","title"])],64))}}),G={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},H=k({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(r,{emit:u}){const c=u,o=I(),p=e=>{e.metaKey?window.open(o.resolve(r.to).href,"_blank"):o.push(r.to)},g=e=>{c("delete",e)},f=e=>{c("colorModal",e)},d=e=>{c("rename",e)},y=x(null),a=S(()=>({ceiling:.5,floor:.5}));return(e,l)=>{const M=z("router-link");return t(),s("li",null,[i(n(V),{id:e.variable.uid,ref_key:"draggableRef",ref:y,ceiling:a.value.ceiling,floor:a.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.collectionId?[e.collectionId]:[],onOnDragEnd:l[2]||(l[2]=(...m)=>e.$emit("onDragEnd",...m))},{default:h(()=>[i(M,{class:F(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[e.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:e.to,onClick:l[1]||(l[1]=w(m=>p(m),["prevent"]))},{default:h(()=>[e.variable.color?(t(),s("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:l[0]||(l[0]=m=>f(e.variable.uid))},[D("div",{class:"h-2.5 w-2.5 rounded-xl",style:A({backgroundColor:e.variable.color})},null,4)])):b("",!0),e.variable.icon?(t(),B(n(v),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:e.variable.icon},null,8,["icon"])):b("",!0),D("span",G,L(e.variable.name),1),i(T,{isCopyable:!!e.isCopyable,isDeletable:!!e.isDeletable,isRenameable:!!e.isRenameable,variable:{...e.variable,isDefault:e.variable.isDefault??!1},warningMessage:e.warningMessage,onDelete:g,onRename:d},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])]),_:1},8,["class","to"])]),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),Y=C(H,[["__scopeId","data-v-0b6c70e4"]]);export{X as _,Y as p};
@@ -1 +1 @@
1
- import{r as b,d as _,m as c,c as Y,b as y,al as B,A as v,s as S,h as m}from"./nSLZfjDc.js";const r=b(null),l=b(null),w=(a,f)=>{let o=!1;return(...s)=>{o||(a(...s),o=!0,setTimeout(()=>o=!1,f))}},A=["draggable"],C=_({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(a,{expose:f,emit:o}){const s=o,n=c(()=>a.parentIds.at(-1)??null),D=e=>{!e.dataTransfer||!(e.target instanceof HTMLElement)||!a.isDraggable||(e.target.classList.add("dragging"),e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",r.value={id:a.id,parentId:n.value},s("onDragStart",{id:a.id,parentId:n.value}))},I=e=>typeof a.isDroppable=="function"?a.isDroppable(r.value,{id:a.id,parentId:n.value,offset:e}):a.isDroppable,u=w(e=>{if(!r.value||r.value.id===a.id||a.parentIds.includes(r.value?.id??""))return;const t=l.value?.offset,d=e.target.offsetHeight,g=a.floor*d,p=a.ceiling*d;let i=3;e.offsetY<=0&&t&&t!==3?i=t:e.offsetY<=g?i=0:e.offsetY>=p?i=1:e.offsetY>g&&e.offsetY<p&&(i=2),I(i)&&(l.value={id:a.id,parentId:n.value,offset:i})},25),h=["above","below","asChild"],E=c(()=>{let e="sidebar-indent-nested";return a.id===l.value?.id&&(e+=` dragover-${h[l.value.offset]}`),e}),T=()=>{if(!l.value||!r.value)return;const e={...r.value},t={...l.value};r.value=null,l.value=null,document.querySelectorAll("div.dragging").forEach(d=>d.classList.remove("dragging")),e.id!==t.id&&s("onDragEnd",e,t)};return f({draggingItem:r,hoveredItem:l}),(e,t)=>(y(),Y("div",{class:S(E.value),draggable:e.isDraggable,onDragend:T,onDragover:t[0]||(t[0]=v((...d)=>m(u)&&m(u)(...d),["prevent","stop"])),onDragstart:v(D,["stop"])},[B(e.$slots,"default",{},void 0,!0)],42,A))}}),H=(a,f)=>{const o=a.__vccOpts||a;for(const[s,n]of f)o[s]=n;return o},k=H(C,[["__scopeId","data-v-a89d6a6e"]]);export{k as m};
1
+ import{r as b,d as _,m as c,c as Y,b as y,al as B,A as v,s as S,h as m}from"./CRsWdsU-.js";const r=b(null),l=b(null),w=(a,f)=>{let o=!1;return(...s)=>{o||(a(...s),o=!0,setTimeout(()=>o=!1,f))}},A=["draggable"],C=_({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(a,{expose:f,emit:o}){const s=o,n=c(()=>a.parentIds.at(-1)??null),D=e=>{!e.dataTransfer||!(e.target instanceof HTMLElement)||!a.isDraggable||(e.target.classList.add("dragging"),e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",r.value={id:a.id,parentId:n.value},s("onDragStart",{id:a.id,parentId:n.value}))},I=e=>typeof a.isDroppable=="function"?a.isDroppable(r.value,{id:a.id,parentId:n.value,offset:e}):a.isDroppable,u=w(e=>{if(!r.value||r.value.id===a.id||a.parentIds.includes(r.value?.id??""))return;const t=l.value?.offset,d=e.target.offsetHeight,g=a.floor*d,p=a.ceiling*d;let i=3;e.offsetY<=0&&t&&t!==3?i=t:e.offsetY<=g?i=0:e.offsetY>=p?i=1:e.offsetY>g&&e.offsetY<p&&(i=2),I(i)&&(l.value={id:a.id,parentId:n.value,offset:i})},25),h=["above","below","asChild"],E=c(()=>{let e="sidebar-indent-nested";return a.id===l.value?.id&&(e+=` dragover-${h[l.value.offset]}`),e}),T=()=>{if(!l.value||!r.value)return;const e={...r.value},t={...l.value};r.value=null,l.value=null,document.querySelectorAll("div.dragging").forEach(d=>d.classList.remove("dragging")),e.id!==t.id&&s("onDragEnd",e,t)};return f({draggingItem:r,hoveredItem:l}),(e,t)=>(y(),Y("div",{class:S(E.value),draggable:e.isDraggable,onDragend:T,onDragover:t[0]||(t[0]=v((...d)=>m(u)&&m(u)(...d),["prevent","stop"])),onDragstart:v(D,["stop"])},[B(e.$slots,"default",{},void 0,!0)],42,A))}}),H=(a,f)=>{const o=a.__vccOpts||a;for(const[s,n]of f)o[s]=n;return o},k=H(C,[["__scopeId","data-v-a89d6a6e"]]);export{k as m};
@@ -1 +1 @@
1
- import{_ as x}from"./t7k_e5FQ.js";import{_ as C}from"./Amqf1SBE.js";import{d as T,H as F,x as h,m as I,v as L,c as a,f as v,e as n,h as e,k as V,t,F as D,q as H,w as B,b as i,s as S,g as X,_ as A}from"./nSLZfjDc.js";import{u as y}from"./C9Q_XE2y.js";const E={class:"terminal-page"},R={class:"card"},q={class:"section-header"},z={class:"session-badge"},J={key:0,class:"column-badge"},O={key:0,class:"loading"},W={key:1,class:"error-message"},Y={key:2,class:"empty"},j={key:3,class:"terminal-content"},G={class:"log-time"},K={class:"log-level"},M={class:"log-message"},P={class:"actions"},Q=T({__name:"terminal",async setup(U){let o,c;const p=F(),l=p.params.id,u=p.params.sessionId,{data:r}=([o,c]=h(()=>y(`/api/issues/${l}`,"$WXwXsy2rDm")),o=await o,c(),o),f=I(()=>{if(!r.value)return null;const s={id:r.value.key,title:r.value.title,column:r.value.column_slug};return r.value.priority&&(s.priority=r.value.priority),s}),{data:d,status:$,error:g}=([o,c]=h(()=>y(`/api/issues/${l}/history/${u}/log`,"$7VJyO-YXL0")),o=await o,c(),o),k=s=>{const m=new Date(s);return isNaN(m.getTime())?s:m.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",second:"2-digit"})};return L({title:`Terminal ${u} - ${l} - AutoCode`}),(s,m)=>{const w=x,b=C;return i(),a("div",E,[v(w,{issue:e(f),"active-tab":"history"},null,8,["issue"]),n("div",R,[n("div",q,[n("h2",null,t(s.$t("history.viewTerminal")),1),n("span",z,t(e(u)),1),e(d)?.column?(i(),a("span",J,t(e(d).column),1)):V("",!0)]),e($)==="pending"?(i(),a("div",O,t(s.$t("app.loading")),1)):e(g)?(i(),a("div",W,t(e(g).message),1)):e(d)?.logs?.length?(i(),a("div",j,[(i(!0),a(D,null,H(e(d).logs,(_,N)=>(i(),a("div",{key:N,class:S(["log-entry",`log-${_.level}`])},[n("span",G,t(k(_.timestamp)),1),n("span",K,t(_.level),1),n("span",M,t(_.message),1)],2))),128))])):(i(),a("div",Y,t(s.$t("terminal.noLogs")),1))]),n("div",P,[v(b,{to:`/issue/${e(l)}/history`,class:"btn-secondary"},{default:B(()=>[X(t(s.$t("nav.back")),1)]),_:1},8,["to"])])])}}}),os=A(Q,[["__scopeId","data-v-608b488c"]]);export{os as default};
1
+ import{_ as x}from"./C8yVYDPb.js";import{_ as C}from"./fpPxFzzn.js";import{d as T,H as F,x as h,m as I,v as L,c as a,f as v,e as n,h as e,k as V,t,F as D,q as H,w as B,b as i,s as S,g as X,_ as A}from"./CRsWdsU-.js";import{u as y}from"./OpmtRlfX.js";const E={class:"terminal-page"},R={class:"card"},q={class:"section-header"},z={class:"session-badge"},J={key:0,class:"column-badge"},O={key:0,class:"loading"},W={key:1,class:"error-message"},Y={key:2,class:"empty"},j={key:3,class:"terminal-content"},G={class:"log-time"},K={class:"log-level"},M={class:"log-message"},P={class:"actions"},Q=T({__name:"terminal",async setup(U){let o,c;const p=F(),l=p.params.id,u=p.params.sessionId,{data:r}=([o,c]=h(()=>y(`/api/issues/${l}`,"$WXwXsy2rDm")),o=await o,c(),o),f=I(()=>{if(!r.value)return null;const s={id:r.value.key,title:r.value.title,column:r.value.column_slug};return r.value.priority&&(s.priority=r.value.priority),s}),{data:d,status:$,error:g}=([o,c]=h(()=>y(`/api/issues/${l}/history/${u}/log`,"$7VJyO-YXL0")),o=await o,c(),o),k=s=>{const m=new Date(s);return isNaN(m.getTime())?s:m.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",second:"2-digit"})};return L({title:`Terminal ${u} - ${l} - AutoCode`}),(s,m)=>{const w=x,b=C;return i(),a("div",E,[v(w,{issue:e(f),"active-tab":"history"},null,8,["issue"]),n("div",R,[n("div",q,[n("h2",null,t(s.$t("history.viewTerminal")),1),n("span",z,t(e(u)),1),e(d)?.column?(i(),a("span",J,t(e(d).column),1)):V("",!0)]),e($)==="pending"?(i(),a("div",O,t(s.$t("app.loading")),1)):e(g)?(i(),a("div",W,t(e(g).message),1)):e(d)?.logs?.length?(i(),a("div",j,[(i(!0),a(D,null,H(e(d).logs,(_,N)=>(i(),a("div",{key:N,class:S(["log-entry",`log-${_.level}`])},[n("span",G,t(k(_.timestamp)),1),n("span",K,t(_.level),1),n("span",M,t(_.message),1)],2))),128))])):(i(),a("div",Y,t(s.$t("terminal.noLogs")),1))]),n("div",P,[v(b,{to:`/issue/${e(l)}/history`,class:"btn-secondary"},{default:B(()=>[X(t(s.$t("nav.back")),1)]),_:1},8,["to"])])])}}}),os=A(Q,[["__scopeId","data-v-608b488c"]]);export{os as default};
@@ -1 +1 @@
1
- import{d as w,r as g,D as B,at as C,h as e,c as p,b as n,al as l,k as m,e as i,t as L,s as k,F as N,p as I,j as x,w as z}from"./nSLZfjDc.js";import{m as D,g as F,b as E,ba as X,N as j,T as R}from"./ge5HoFHn.js";import{E as V}from"./C0Gbbife.js";const W={key:0,class:"xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"},q={class:"m-0 text-sm font-medium whitespace-nowrap"},M={class:"bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5"},O=w({__name:"Sidebar",props:{title:{}},setup(b){const{isSidebarOpen:u}=D(),{sidebarWidth:s,setSidebarWidth:r}=F(),{layout:o}=E(),d=g(!1),v=g(null),{breakpoints:c}=X(),S=t=>{t.preventDefault();const f=t.clientX,_=Number.parseInt(getComputedStyle(v.value).width||s.value,10),h=$=>{d.value=!0,document.body.classList.add("dragging");let a=_+$.clientX-f;a>420&&(a=420+(a-420)*.2),a<240&&(a=240),r(`${a}px`)},y=()=>{d.value=!1,document.body.classList.remove("dragging"),document.documentElement.removeEventListener("mousemove",h,!1),document.documentElement.removeEventListener("mouseup",y,!1),Number.parseInt(s.value,10)>420?r("360px"):Number.parseInt(s.value,10)<240&&r("240px")};document.documentElement.addEventListener("mousemove",h,!1),document.documentElement.addEventListener("mouseup",y,!1)};return(t,f)=>B((n(),p("aside",{ref_key:"sidebarRef",ref:v,class:k(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0",{dragging:d.value}]),style:I({width:e(c).lg?e(s):"100%"})},[l(t.$slots,"header",{},void 0,!0),e(o)!=="modal"&&t.title?(n(),p("div",W,[i("h2",q,L(t.title),1),e(c).lg?m("",!0):l(t.$slots,"button",{key:0},void 0,!0)])):m("",!0),i("div",{class:k(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]",{"sidebar-mask":e(o)!=="modal"}])},[l(t.$slots,"content",{},void 0,!0)],2),e(c).lg?(n(),p(N,{key:1},[i("div",M,[l(t.$slots,"button",{},void 0,!0)]),i("div",{class:"resizer",onMousedown:S},null,32)],64)):m("",!0)],6)),[[C,e(u)]])}}),H=j(O,[["__scopeId","data-v-dcff7b49"]]),J=w({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(b){const u=b,{layout:s}=E(),r=()=>{u.click()};return(o,d)=>(n(),x(e(R),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",variant:"outlined",onClick:r},{default:z(()=>[l(o.$slots,"title"),o.hotkey&&e(s)==="desktop"?(n(),x(e(V),{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",hotkey:o.hotkey},null,8,["hotkey"])):m("",!0)]),_:3}))}});export{J as g,H as m};
1
+ import{d as w,r as g,D as B,at as C,h as e,c as p,b as n,al as l,k as m,e as i,t as L,s as k,F as N,p as I,j as x,w as z}from"./CRsWdsU-.js";import{m as D,g as F,b as E,ba as X,N as j,T as R}from"./D1Q9L7QE.js";import{E as V}from"./CJvMkYTY.js";const W={key:0,class:"xl:min-h-header flex min-h-12 items-center justify-between px-3 py-1.5 text-sm md:px-[18px] md:py-2.5"},q={class:"m-0 text-sm font-medium whitespace-nowrap"},M={class:"bg-b-1 sticky bottom-0 z-10 w-[inherit] pt-0 has-[.empty-sidebar-item]:border-t md:px-2.5 md:pb-2.5"},O=w({__name:"Sidebar",props:{title:{}},setup(b){const{isSidebarOpen:u}=D(),{sidebarWidth:s,setSidebarWidth:r}=F(),{layout:o}=E(),d=g(!1),v=g(null),{breakpoints:c}=X(),S=t=>{t.preventDefault();const f=t.clientX,_=Number.parseInt(getComputedStyle(v.value).width||s.value,10),h=$=>{d.value=!0,document.body.classList.add("dragging");let a=_+$.clientX-f;a>420&&(a=420+(a-420)*.2),a<240&&(a=240),r(`${a}px`)},y=()=>{d.value=!1,document.body.classList.remove("dragging"),document.documentElement.removeEventListener("mousemove",h,!1),document.documentElement.removeEventListener("mouseup",y,!1),Number.parseInt(s.value,10)>420?r("360px"):Number.parseInt(s.value,10)<240&&r("240px")};document.documentElement.addEventListener("mousemove",h,!1),document.documentElement.addEventListener("mouseup",y,!1)};return(t,f)=>B((n(),p("aside",{ref_key:"sidebarRef",ref:v,class:k(["sidebar bg-b-1 relative flex min-w-full flex-1 flex-col overflow-hidden leading-3 md:min-w-fit md:flex-none md:border-r md:border-b-0",{dragging:d.value}]),style:I({width:e(c).lg?e(s):"100%"})},[l(t.$slots,"header",{},void 0,!0),e(o)!=="modal"&&t.title?(n(),p("div",W,[i("h2",q,L(t.title),1),e(c).lg?m("",!0):l(t.$slots,"button",{key:0},void 0,!0)])):m("",!0),i("div",{class:k(["custom-scroll sidebar-height w-[inherit] pb-0 md:pb-[37px]",{"sidebar-mask":e(o)!=="modal"}])},[l(t.$slots,"content",{},void 0,!0)],2),e(c).lg?(n(),p(N,{key:1},[i("div",M,[l(t.$slots,"button",{},void 0,!0)]),i("div",{class:"resizer",onMousedown:S},null,32)],64)):m("",!0)],6)),[[C,e(u)]])}}),H=j(O,[["__scopeId","data-v-dcff7b49"]]),J=w({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(b){const u=b,{layout:s}=E(),r=()=>{u.click()};return(o,d)=>(n(),x(e(R),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",variant:"outlined",onClick:r},{default:z(()=>[l(o.$slots,"title"),o.hotkey&&e(s)==="desktop"?(n(),x(e(V),{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",hotkey:o.hotkey},null,8,["hotkey"])):m("",!0)]),_:3}))}});export{J as g,H as m};
@@ -1 +1 @@
1
- import{_ as h}from"./Amqf1SBE.js";import{_ as C}from"./C9P-GWig.js";import{d as g,r as x,H as y,n as w,o as N,a as I,c as _,b as l,e as n,f as a,w as u,s as f,h as i,F as $,q as k,g as A,t as d,_ as v,j as E,b0 as L,ag as O,al as B}from"./nSLZfjDc.js";import{u as H}from"./BrtBSWOq.js";const j={class:"app-header"},S={class:"header-content"},T={class:"header-actions"},V={class:"btn-text"},F=["aria-label"],M=g({__name:"AppHeader",setup(m){const t=x(!1),c=[{to:"/kanban",label:"nav.kanban"},{to:"/stats",label:"nav.stats"},{to:"/changelog",label:"nav.changelog"},{to:"/settings/pipeline",label:"nav.settings"}],r=y();return w(()=>r.path,()=>{t.value=!1}),N(()=>{const o=e=>{e.key==="Escape"&&(t.value=!1)};document.addEventListener("keydown",o),I(()=>{document.removeEventListener("keydown",o)})}),(o,e)=>{const s=h,b=C;return l(),_("header",j,[n("div",S,[a(s,{to:"/",class:"logo"},{default:u(()=>[...e[2]||(e[2]=[n("span",{class:"logo-icon"},"⚡",-1),n("span",{class:"logo-text"},"AutoCode",-1)])]),_:1}),n("nav",{class:f(["main-nav",{open:i(t)}])},[(l(),_($,null,k(c,p=>a(s,{key:p.to,to:p.to,class:"nav-link",onClick:e[0]||(e[0]=W=>t.value=!1)},{default:u(()=>[A(d(o.$t(p.label)),1)]),_:2},1032,["to"])),64))],2),n("div",T,[a(s,{to:"/issue/new",class:"btn btn-primary new-issue-btn"},{default:u(()=>[e[3]||(e[3]=n("span",{class:"btn-icon"},"+",-1)),n("span",V,d(o.$t("nav.newIssue")),1)]),_:1}),a(b),n("button",{class:"mobile-menu-btn","aria-label":i(t)?"Close menu":"Open menu",onClick:e[1]||(e[1]=p=>t.value=!i(t))},[n("span",{class:f(["hamburger",{open:i(t)}])},[...e[4]||(e[4]=[n("span",null,null,-1),n("span",null,null,-1),n("span",null,null,-1)])],2)],8,F)])])])}}}),q=Object.assign(v(M,[["__scopeId","data-v-055d7a5c"]]),{__name:"AppHeader"}),z={class:"notification-container"},D={class:"notification-icon"},G={class:"notification-message"},K=["onClick"],R=g({__name:"NotificationContainer",setup(m){const{notifications:t,remove:c}=H(),r=o=>({success:"OK",error:"X",warning:"!",info:"i"})[o]||"i";return(o,e)=>(l(),E(O,{to:"body"},[n("div",z,[a(L,{name:"notification"},{default:u(()=>[(l(!0),_($,null,k(i(t),s=>(l(),_("div",{key:s.id,class:f(["notification",`notification-${s.type}`])},[n("span",D,d(r(s.type)),1),n("span",G,d(s.message),1),n("button",{class:"notification-close",onClick:b=>i(c)(s.id)},"x",8,K)],2))),128))]),_:1})])]))}}),U=Object.assign(v(R,[["__scopeId","data-v-87475ab3"]]),{__name:"NotificationContainer"}),X={},J={class:"app-layout"},P={class:"app-main"};function Q(m,t){const c=q,r=U;return l(),_("div",J,[a(c),n("main",P,[B(m.$slots,"default",{},void 0,!0)]),t[0]||(t[0]=n("footer",{class:"app-footer"},[n("p",null,"AutoCode v0.3.0")],-1)),a(r)])}const tn=v(X,[["render",Q],["__scopeId","data-v-157bd0ef"]]);export{tn as default};
1
+ import{_ as h}from"./fpPxFzzn.js";import{_ as C}from"./BHlJJSYC.js";import{d as g,r as x,H as y,n as w,o as N,a as I,c as _,b as l,e as n,f as a,w as u,s as f,h as i,F as $,q as k,g as A,t as d,_ as v,j as E,b0 as L,ag as O,al as B}from"./CRsWdsU-.js";import{u as H}from"./cFgYOPT2.js";const j={class:"app-header"},S={class:"header-content"},T={class:"header-actions"},V={class:"btn-text"},F=["aria-label"],M=g({__name:"AppHeader",setup(m){const t=x(!1),c=[{to:"/kanban",label:"nav.kanban"},{to:"/stats",label:"nav.stats"},{to:"/changelog",label:"nav.changelog"},{to:"/settings/pipeline",label:"nav.settings"}],r=y();return w(()=>r.path,()=>{t.value=!1}),N(()=>{const o=e=>{e.key==="Escape"&&(t.value=!1)};document.addEventListener("keydown",o),I(()=>{document.removeEventListener("keydown",o)})}),(o,e)=>{const s=h,b=C;return l(),_("header",j,[n("div",S,[a(s,{to:"/",class:"logo"},{default:u(()=>[...e[2]||(e[2]=[n("span",{class:"logo-icon"},"⚡",-1),n("span",{class:"logo-text"},"AutoCode",-1)])]),_:1}),n("nav",{class:f(["main-nav",{open:i(t)}])},[(l(),_($,null,k(c,p=>a(s,{key:p.to,to:p.to,class:"nav-link",onClick:e[0]||(e[0]=W=>t.value=!1)},{default:u(()=>[A(d(o.$t(p.label)),1)]),_:2},1032,["to"])),64))],2),n("div",T,[a(s,{to:"/issue/new",class:"btn btn-primary new-issue-btn"},{default:u(()=>[e[3]||(e[3]=n("span",{class:"btn-icon"},"+",-1)),n("span",V,d(o.$t("nav.newIssue")),1)]),_:1}),a(b),n("button",{class:"mobile-menu-btn","aria-label":i(t)?"Close menu":"Open menu",onClick:e[1]||(e[1]=p=>t.value=!i(t))},[n("span",{class:f(["hamburger",{open:i(t)}])},[...e[4]||(e[4]=[n("span",null,null,-1),n("span",null,null,-1),n("span",null,null,-1)])],2)],8,F)])])])}}}),q=Object.assign(v(M,[["__scopeId","data-v-055d7a5c"]]),{__name:"AppHeader"}),z={class:"notification-container"},D={class:"notification-icon"},G={class:"notification-message"},K=["onClick"],R=g({__name:"NotificationContainer",setup(m){const{notifications:t,remove:c}=H(),r=o=>({success:"OK",error:"X",warning:"!",info:"i"})[o]||"i";return(o,e)=>(l(),E(O,{to:"body"},[n("div",z,[a(L,{name:"notification"},{default:u(()=>[(l(!0),_($,null,k(i(t),s=>(l(),_("div",{key:s.id,class:f(["notification",`notification-${s.type}`])},[n("span",D,d(r(s.type)),1),n("span",G,d(s.message),1),n("button",{class:"notification-close",onClick:b=>i(c)(s.id)},"x",8,K)],2))),128))]),_:1})])]))}}),U=Object.assign(v(R,[["__scopeId","data-v-87475ab3"]]),{__name:"NotificationContainer"}),X={},J={class:"app-layout"},P={class:"app-main"};function Q(m,t){const c=q,r=U;return l(),_("div",J,[a(c),n("main",P,[B(m.$slots,"default",{},void 0,!0)]),t[0]||(t[0]=n("footer",{class:"app-footer"},[n("p",null,"AutoCode v0.3.0")],-1)),a(r)])}const tn=v(X,[["render",Q],["__scopeId","data-v-157bd0ef"]]);export{tn as default};
@@ -1 +1 @@
1
- import{_ as be}from"./Amqf1SBE.js";import{d as we,y as xe,u as Ce,r as v,o as K,z as U,a as $e,x as H,n as q,v as Ie,c as a,e as r,k as p,t as u,f as G,w as Y,h as o,p as j,F as Q,q as X,b as l,g as S,A,s as N,_ as De}from"./nSLZfjDc.js";import{u as Se}from"./BrtBSWOq.js";import{u as Ee}from"./CZAptABr.js";import{u as Z}from"./C9Q_XE2y.js";import{u as Me}from"./BStRXLlp.js";const Le={class:"kanban-page"},Te={class:"page-header"},Re={class:"header-actions"},ze={key:0,class:"loading"},Ae={key:1,class:"error-message"},Ne={key:2,class:"board-wrapper"},Fe=["onDragover","onDrop"],Pe={class:"column-header"},Ve={class:"column-header-top"},Oe={class:"column-title"},We={class:"column-count"},Be={key:0,class:"wip-limit"},Je={class:"column-content"},Ke={key:0,class:"column-empty"},Ue=["onDragstart","onClick"],He={class:"issue-header"},qe={class:"issue-key"},Ge={key:0,class:"processing-indicator",title:"Claude is working..."},Ye=["onClick"],je={class:"issue-title"},Qe={class:"issue-meta"},Xe={key:1,class:"parent-indicator",title:"Has parent"},Ze=["onClick"],ee=5,es=we({__name:"kanban",async setup(ss){let f,x;const se=xe(),{t:C}=Ce(),{success:E,error:M}=Se(),{getErrorMessage:L}=Ee(),b=v(null),h=v(null),F=v(0);let _=!1;const te=()=>{_||!b.value||!h.value||(_=!0,h.value.scrollLeft=b.value.scrollLeft,_=!1)},ne=()=>{_||!b.value||!h.value||(_=!0,b.value.scrollLeft=h.value.scrollLeft,_=!1)},$=()=>{h.value&&(F.value=h.value.scrollWidth)};K(()=>{U($),window.addEventListener("resize",$)}),$e(()=>{window.removeEventListener("resize",$)});const P=v({}),g=v(null),k=v(null),T=v(!1),V=v(0),m=v(new Set),d=v({visible:!1,x:0,y:0,issue:null}),{data:c,status:oe,error:O}=([f,x]=H(()=>Z("/api/columns","$35IWyimU8j")),f=await f,x(),f),{data:y,status:ae,error:W,refresh:R}=([f,x]=H(()=>Z("/api/issues","$0eQrGqHYDa")),f=await f,x(),f);q(()=>c.value,()=>U($));const w=e=>y.value?y.value.filter(s=>s.column_slug===e):[],I=e=>P.value[e]??ee,re=e=>{const s=w(e),n=I(e);return s.slice(0,n)},le=e=>{const s=w(e),n=I(e);return s.length>n},ie=e=>{const s=w(e),n=I(e);return Math.max(0,s.length-n)},ue=e=>{const s=I(e);P.value[e]=s+ee},ce=e=>{const s=Date.now()-V.value;(!T.value||s<150)&&se.push(`/issue/${e}`)},de=e=>{g.value=e,V.value=Date.now(),setTimeout(()=>{g.value===e&&(T.value=!0)},100)},ve=()=>{g.value=null,k.value=null,T.value=!1},pe=e=>{k.value=e},fe=()=>{k.value=null},ge=async e=>{if(!g.value)return;const s=g.value;if(y.value?.find(t=>t.key===s)?.column_slug===e){g.value=null,k.value=null;return}try{await $fetch(`/api/issues/${s}/move`,{method:"POST",body:{column:e}}),E(C("notify.issueMoved")),R()}catch(t){M(L(t))}finally{g.value=null,k.value=null}},he=(e,s)=>{e.preventDefault(),e.stopPropagation(),d.value={visible:!0,x:e.clientX,y:e.clientY,issue:s}},D=()=>{d.value.visible=!1},ye=async()=>{if(!d.value.issue||!c.value||c.value.length===0)return;const e=d.value.issue.key,s=c.value[c.value.length-1];if(s)try{await $fetch(`/api/issues/${e}/move`,{method:"POST",body:{column:s.slug,force:!0}}),E(C("notify.issueArchived")),R()}catch(n){M(L(n))}finally{D()}},_e=async()=>{if(!d.value.issue)return;if(!confirm(C("issue.confirmDelete"))){D();return}const e=d.value.issue.key;try{await $fetch(`/api/issues/${e}/archive`,{method:"DELETE"}),E(C("notify.issueDeleted")),R()}catch(s){M(L(s))}finally{D()}},{lastMessage:ke}=Me(),B=async()=>{try{const e=await $fetch("/api/issues");if(y.value&&e){const s=JSON.stringify(y.value),n=JSON.stringify(e);s!==n&&(y.value=e)}}catch{}},me=async()=>{try{const e=await $fetch("/api/stats");e.processingIssues&&(m.value=new Set(e.processingIssues))}catch{}},J=e=>{if(!m.value.has(e)||!c.value||c.value.length<2)return!1;const s=y.value?.find(t=>t.key===e);if(!s)return!1;const n=c.value.findIndex(t=>t.slug===s.column_slug);return!(n===0||n===c.value.length-1)};return K(()=>{me()}),q(ke,e=>{if((e?.type==="refresh"||e?.type==="issue-update")&&B(),e?.type==="claude_start"&&e.issue){const s=e.issue;m.value=new Set([...m.value,s])}if(e?.type==="claude_end"&&e.issue){const s=e.issue,n=new Set(m.value);n.delete(s),m.value=n,B()}}),Ie({title:"Kanban - AutoCode"}),(e,s)=>{const n=be;return l(),a("div",Le,[r("header",Te,[r("h1",null,u(e.$t("kanban.title")),1),r("div",Re,[G(n,{to:"/issues/graph",class:"btn btn-secondary"},{default:Y(()=>[S(u(e.$t("graph.title")),1)]),_:1})])]),o(oe)==="pending"||o(ae)==="pending"?(l(),a("div",ze,u(e.$t("kanban.loading")),1)):o(O)||o(W)?(l(),a("div",Ae,u(o(O)?.message||o(W)?.message),1)):(l(),a("div",Ne,[r("div",{ref_key:"scrollTopRef",ref:b,class:"scroll-top",onScroll:te},[r("div",{class:"scroll-spacer",style:j({width:o(F)+"px"})},null,4)],544),r("div",{ref_key:"boardRef",ref:h,class:"board",onScroll:ne},[(l(!0),a(Q,null,X(o(c),t=>(l(),a("div",{key:t.slug,class:N(["board-column",{"drag-over":o(k)===t.slug}]),onDragover:A(i=>pe(t.slug),["prevent"]),onDragleave:fe,onDrop:i=>ge(t.slug)},[r("div",Pe,[r("div",Ve,[r("h2",Oe,[S(u(t.name)+" ",1),r("span",We,u(w(t.slug).length),1)]),G(n,{to:`/column/${t.slug}/prompt?name=${encodeURIComponent(t.name)}`,class:"column-action",title:"View prompt"},{default:Y(()=>[...s[0]||(s[0]=[S(" 👁 ",-1)])]),_:1},8,["to"])]),t.wip_limit?(l(),a("span",Be,u(e.$t("kanban.wipLimit"))+": "+u(t.wip_limit),1)):p("",!0)]),r("div",Je,[w(t.slug).length===0?(l(),a("div",Ke,u(e.$t("kanban.noIssues")),1)):p("",!0),(l(!0),a(Q,null,X(re(t.slug),i=>(l(),a("div",{key:i.key,class:N(["issue-card",{dragging:o(g)===i.key,processing:J(i.key)}]),draggable:"true",onDragstart:z=>de(i.key),onDragend:ve,onClick:z=>ce(i.key)},[r("div",He,[r("div",qe,[J(i.key)?(l(),a("span",Ge,"⚙️")):p("",!0),S(" "+u(i.key),1)]),r("button",{class:"issue-menu-btn",title:"Menu",onClick:A(z=>he(z,i),["stop"])}," ☰ ",8,Ye)]),r("div",je,u(i.title),1),r("div",Qe,[i.priority?(l(),a("span",{key:0,class:N(["badge",`badge-${i.priority}`])},u(i.priority),3)):p("",!0),i.parent_key?(l(),a("span",Xe," ^ ")):p("",!0)])],42,Ue))),128)),le(t.slug)?(l(),a("button",{key:1,class:"load-more-btn",onClick:A(i=>ue(t.slug),["stop"])},u(e.$t("kanban.loadMore"))+" ("+u(ie(t.slug))+") ",9,Ze)):p("",!0)])],42,Fe))),128))],544)])),o(d).visible?(l(),a("div",{key:3,style:{position:"fixed",inset:"0",zIndex:99998},onClick:D})):p("",!0),o(d).visible?(l(),a("div",{key:4,style:j({position:"fixed",top:o(d).y+"px",left:o(d).x+"px",zIndex:99999,background:"white",border:"1px solid #ddd",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",padding:"4px 0",minWidth:"140px"})},[o(d).issue&&o(c)&&o(d).issue.column_slug!==o(c)[o(c).length-1]?.slug?(l(),a("button",{key:0,style:{display:"block",width:"100%",padding:"10px 16px",textAlign:"left",background:"none",border:"none",cursor:"pointer",fontSize:"14px"},onClick:ye},u(e.$t("issue.archive")),1)):p("",!0),r("button",{style:{display:"block",width:"100%",padding:"10px 16px",textAlign:"left",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"#ef4444"},onClick:_e},u(e.$t("common.delete")),1)],4)):p("",!0)])}}}),is=De(es,[["__scopeId","data-v-a660ac78"]]);export{is as default};
1
+ import{_ as be}from"./fpPxFzzn.js";import{d as we,y as xe,u as Ce,r as v,o as K,z as U,a as $e,x as H,n as q,v as Ie,c as a,e as r,k as p,t as u,f as G,w as Y,h as o,p as j,F as Q,q as X,b as l,g as S,A,s as N,_ as De}from"./CRsWdsU-.js";import{u as Se}from"./cFgYOPT2.js";import{u as Ee}from"./DwzmElrD.js";import{u as Z}from"./OpmtRlfX.js";import{u as Me}from"./BpRdnvfJ.js";const Le={class:"kanban-page"},Te={class:"page-header"},Re={class:"header-actions"},ze={key:0,class:"loading"},Ae={key:1,class:"error-message"},Ne={key:2,class:"board-wrapper"},Fe=["onDragover","onDrop"],Pe={class:"column-header"},Ve={class:"column-header-top"},Oe={class:"column-title"},We={class:"column-count"},Be={key:0,class:"wip-limit"},Je={class:"column-content"},Ke={key:0,class:"column-empty"},Ue=["onDragstart","onClick"],He={class:"issue-header"},qe={class:"issue-key"},Ge={key:0,class:"processing-indicator",title:"Claude is working..."},Ye=["onClick"],je={class:"issue-title"},Qe={class:"issue-meta"},Xe={key:1,class:"parent-indicator",title:"Has parent"},Ze=["onClick"],ee=5,es=we({__name:"kanban",async setup(ss){let f,x;const se=xe(),{t:C}=Ce(),{success:E,error:M}=Se(),{getErrorMessage:L}=Ee(),b=v(null),h=v(null),F=v(0);let _=!1;const te=()=>{_||!b.value||!h.value||(_=!0,h.value.scrollLeft=b.value.scrollLeft,_=!1)},ne=()=>{_||!b.value||!h.value||(_=!0,b.value.scrollLeft=h.value.scrollLeft,_=!1)},$=()=>{h.value&&(F.value=h.value.scrollWidth)};K(()=>{U($),window.addEventListener("resize",$)}),$e(()=>{window.removeEventListener("resize",$)});const P=v({}),g=v(null),k=v(null),T=v(!1),V=v(0),m=v(new Set),d=v({visible:!1,x:0,y:0,issue:null}),{data:c,status:oe,error:O}=([f,x]=H(()=>Z("/api/columns","$35IWyimU8j")),f=await f,x(),f),{data:y,status:ae,error:W,refresh:R}=([f,x]=H(()=>Z("/api/issues","$0eQrGqHYDa")),f=await f,x(),f);q(()=>c.value,()=>U($));const w=e=>y.value?y.value.filter(s=>s.column_slug===e):[],I=e=>P.value[e]??ee,re=e=>{const s=w(e),n=I(e);return s.slice(0,n)},le=e=>{const s=w(e),n=I(e);return s.length>n},ie=e=>{const s=w(e),n=I(e);return Math.max(0,s.length-n)},ue=e=>{const s=I(e);P.value[e]=s+ee},ce=e=>{const s=Date.now()-V.value;(!T.value||s<150)&&se.push(`/issue/${e}`)},de=e=>{g.value=e,V.value=Date.now(),setTimeout(()=>{g.value===e&&(T.value=!0)},100)},ve=()=>{g.value=null,k.value=null,T.value=!1},pe=e=>{k.value=e},fe=()=>{k.value=null},ge=async e=>{if(!g.value)return;const s=g.value;if(y.value?.find(t=>t.key===s)?.column_slug===e){g.value=null,k.value=null;return}try{await $fetch(`/api/issues/${s}/move`,{method:"POST",body:{column:e}}),E(C("notify.issueMoved")),R()}catch(t){M(L(t))}finally{g.value=null,k.value=null}},he=(e,s)=>{e.preventDefault(),e.stopPropagation(),d.value={visible:!0,x:e.clientX,y:e.clientY,issue:s}},D=()=>{d.value.visible=!1},ye=async()=>{if(!d.value.issue||!c.value||c.value.length===0)return;const e=d.value.issue.key,s=c.value[c.value.length-1];if(s)try{await $fetch(`/api/issues/${e}/move`,{method:"POST",body:{column:s.slug,force:!0}}),E(C("notify.issueArchived")),R()}catch(n){M(L(n))}finally{D()}},_e=async()=>{if(!d.value.issue)return;if(!confirm(C("issue.confirmDelete"))){D();return}const e=d.value.issue.key;try{await $fetch(`/api/issues/${e}/archive`,{method:"DELETE"}),E(C("notify.issueDeleted")),R()}catch(s){M(L(s))}finally{D()}},{lastMessage:ke}=Me(),B=async()=>{try{const e=await $fetch("/api/issues");if(y.value&&e){const s=JSON.stringify(y.value),n=JSON.stringify(e);s!==n&&(y.value=e)}}catch{}},me=async()=>{try{const e=await $fetch("/api/stats");e.processingIssues&&(m.value=new Set(e.processingIssues))}catch{}},J=e=>{if(!m.value.has(e)||!c.value||c.value.length<2)return!1;const s=y.value?.find(t=>t.key===e);if(!s)return!1;const n=c.value.findIndex(t=>t.slug===s.column_slug);return!(n===0||n===c.value.length-1)};return K(()=>{me()}),q(ke,e=>{if((e?.type==="refresh"||e?.type==="issue-update")&&B(),e?.type==="claude_start"&&e.issue){const s=e.issue;m.value=new Set([...m.value,s])}if(e?.type==="claude_end"&&e.issue){const s=e.issue,n=new Set(m.value);n.delete(s),m.value=n,B()}}),Ie({title:"Kanban - AutoCode"}),(e,s)=>{const n=be;return l(),a("div",Le,[r("header",Te,[r("h1",null,u(e.$t("kanban.title")),1),r("div",Re,[G(n,{to:"/issues/graph",class:"btn btn-secondary"},{default:Y(()=>[S(u(e.$t("graph.title")),1)]),_:1})])]),o(oe)==="pending"||o(ae)==="pending"?(l(),a("div",ze,u(e.$t("kanban.loading")),1)):o(O)||o(W)?(l(),a("div",Ae,u(o(O)?.message||o(W)?.message),1)):(l(),a("div",Ne,[r("div",{ref_key:"scrollTopRef",ref:b,class:"scroll-top",onScroll:te},[r("div",{class:"scroll-spacer",style:j({width:o(F)+"px"})},null,4)],544),r("div",{ref_key:"boardRef",ref:h,class:"board",onScroll:ne},[(l(!0),a(Q,null,X(o(c),t=>(l(),a("div",{key:t.slug,class:N(["board-column",{"drag-over":o(k)===t.slug}]),onDragover:A(i=>pe(t.slug),["prevent"]),onDragleave:fe,onDrop:i=>ge(t.slug)},[r("div",Pe,[r("div",Ve,[r("h2",Oe,[S(u(t.name)+" ",1),r("span",We,u(w(t.slug).length),1)]),G(n,{to:`/column/${t.slug}/prompt?name=${encodeURIComponent(t.name)}`,class:"column-action",title:"View prompt"},{default:Y(()=>[...s[0]||(s[0]=[S(" 👁 ",-1)])]),_:1},8,["to"])]),t.wip_limit?(l(),a("span",Be,u(e.$t("kanban.wipLimit"))+": "+u(t.wip_limit),1)):p("",!0)]),r("div",Je,[w(t.slug).length===0?(l(),a("div",Ke,u(e.$t("kanban.noIssues")),1)):p("",!0),(l(!0),a(Q,null,X(re(t.slug),i=>(l(),a("div",{key:i.key,class:N(["issue-card",{dragging:o(g)===i.key,processing:J(i.key)}]),draggable:"true",onDragstart:z=>de(i.key),onDragend:ve,onClick:z=>ce(i.key)},[r("div",He,[r("div",qe,[J(i.key)?(l(),a("span",Ge,"⚙️")):p("",!0),S(" "+u(i.key),1)]),r("button",{class:"issue-menu-btn",title:"Menu",onClick:A(z=>he(z,i),["stop"])}," ☰ ",8,Ye)]),r("div",je,u(i.title),1),r("div",Qe,[i.priority?(l(),a("span",{key:0,class:N(["badge",`badge-${i.priority}`])},u(i.priority),3)):p("",!0),i.parent_key?(l(),a("span",Xe," ^ ")):p("",!0)])],42,Ue))),128)),le(t.slug)?(l(),a("button",{key:1,class:"load-more-btn",onClick:A(i=>ue(t.slug),["stop"])},u(e.$t("kanban.loadMore"))+" ("+u(ie(t.slug))+") ",9,Ze)):p("",!0)])],42,Fe))),128))],544)])),o(d).visible?(l(),a("div",{key:3,style:{position:"fixed",inset:"0",zIndex:99998},onClick:D})):p("",!0),o(d).visible?(l(),a("div",{key:4,style:j({position:"fixed",top:o(d).y+"px",left:o(d).x+"px",zIndex:99999,background:"white",border:"1px solid #ddd",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",padding:"4px 0",minWidth:"140px"})},[o(d).issue&&o(c)&&o(d).issue.column_slug!==o(c)[o(c).length-1]?.slug?(l(),a("button",{key:0,style:{display:"block",width:"100%",padding:"10px 16px",textAlign:"left",background:"none",border:"none",cursor:"pointer",fontSize:"14px"},onClick:ye},u(e.$t("issue.archive")),1)):p("",!0),r("button",{style:{display:"block",width:"100%",padding:"10px 16px",textAlign:"left",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"#ef4444"},onClick:_e},u(e.$t("common.delete")),1)],4)):p("",!0)])}}}),is=De(es,[["__scopeId","data-v-a660ac78"]]);export{is as default};
@@ -1 +1 @@
1
- import{br as d,u as p,ay as i}from"./ge5HoFHn.js";import{d as Z,c as n,b as e,al as u,k as c,h as t,e as o,ak as m,j as M,w as g}from"./nSLZfjDc.js";const f={key:0},L={key:1},k={key:2},v={key:3},w={key:4},H={key:5},x={name:"ScalarIconWarning"},V=Z({...x,props:{label:{},weight:{}},setup(h){const s=h,{bind:r,weight:l}=d(s);return(A,a)=>(e(),n("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},t(r)),[u(A.$slots,"default"),t(l)==="bold"?(e(),n("g",f,[...a[0]||(a[0]=[o("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"},null,-1)])])):t(l)==="duotone"?(e(),n("g",L,[...a[1]||(a[1]=[o("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"},null,-1),o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="fill"?(e(),n("g",k,[...a[2]||(a[2]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"},null,-1)])])):t(l)==="light"?(e(),n("g",v,[...a[3]||(a[3]=[o("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"},null,-1)])])):t(l)==="regular"?(e(),n("g",w,[...a[4]||(a[4]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="thin"?(e(),n("g",H,[...a[5]||(a[5]=[o("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},null,-1)])])):c("",!0)],16))}}),b=Z({__name:"DataTableHeader",setup(h){const{cx:s}=p();return(r,l)=>(e(),M(i,m({is:"th"},t(s)("items-center font-medium px-2 min-w-0 -outline-offset-1")),{default:g(()=>[u(r.$slots,"default")]),_:3},16))}});export{V as H,b as x};
1
+ import{br as d,u as p,ay as i}from"./D1Q9L7QE.js";import{d as Z,c as n,b as e,al as u,k as c,h as t,e as o,ak as m,j as M,w as g}from"./CRsWdsU-.js";const f={key:0},L={key:1},k={key:2},v={key:3},w={key:4},H={key:5},x={name:"ScalarIconWarning"},V=Z({...x,props:{label:{},weight:{}},setup(h){const s=h,{bind:r,weight:l}=d(s);return(A,a)=>(e(),n("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},t(r)),[u(A.$slots,"default"),t(l)==="bold"?(e(),n("g",f,[...a[0]||(a[0]=[o("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"},null,-1)])])):t(l)==="duotone"?(e(),n("g",L,[...a[1]||(a[1]=[o("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"},null,-1),o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="fill"?(e(),n("g",k,[...a[2]||(a[2]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"},null,-1)])])):t(l)==="light"?(e(),n("g",v,[...a[3]||(a[3]=[o("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"},null,-1)])])):t(l)==="regular"?(e(),n("g",w,[...a[4]||(a[4]=[o("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):t(l)==="thin"?(e(),n("g",H,[...a[5]||(a[5]=[o("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},null,-1)])])):c("",!0)],16))}}),b=Z({__name:"DataTableHeader",setup(h){const{cx:s}=p();return(r,l)=>(e(),M(i,m({is:"th"},t(s)("items-center font-medium px-2 min-w-0 -outline-offset-1")),{default:g(()=>[u(r.$slots,"default")]),_:3},16))}});export{V as H,b as x};
@@ -0,0 +1 @@
1
+ import{d as y,r as x,o as j,a as U,c as g,b as c,_ as H,u as $,e as n,f as v,w as S,g as L,t as a,h as e,i as I,j as D,k as q,l as P,m as F,n as X,p as Y,F as T,q as A,s as R,v as J}from"./CRsWdsU-.js";import{_ as E}from"./fpPxFzzn.js";import{_ as K}from"./BHlJJSYC.js";const Q=y({__name:"LandingMatrixBg",setup(w){const t=x(null),d=['autocode new "Fix login bug" -p P1',"autocode serve --expose","autocode next AC-000042","autocode move AC-000001 review","autocode pipeline show default","autocode stats --session","autocode health --verbose","autocode list --tree","autocode history AC-000015 --full",'autocode comment AC-000003 "Done"',"autocode catalog add security-audit","autocode init && autocode serve","GET /api/issues?column=in-progress","POST /api/issues { title, priority }","PATCH /api/issues/AC-000001","POST /api/issues/:id/next","GET /api/pipelines/default","GET /api/workflow/health","POST /api/issues/:id/comments","GET /api/stats",'claude -p "Review this code"','claude -p "Fix the failing tests"','claude -p "Add security validation"','claude -p "Refactor for clarity"',"await claude.execute(prompt)",'claude --model opus "Analyze"',"pipeline.advance(issue)","if (review.passed) next()","while (!tests.green) retry()","bestPractices.validate(code)","security.audit(changes)","duplication.detect(diff)","consistency.check(style)","prisma.issue.findMany()","prisma.issue.update({ data })","await prisma.$transaction()","SELECT * FROM issues WHERE done"],o=["rgba(99, 102, 241, ","rgba(139, 92, 246, ","rgba(168, 85, 247, ","rgba(192, 132, 252, ","rgba(236, 72, 153, "];let l=[],i=null;function p(){const _=t.value;if(!_)return;const k=()=>{_.width=window.innerWidth,_.height=window.innerHeight};k(),window.addEventListener("resize",k);const u=_.getContext("2d");if(!u)return;const C=Math.floor(window.innerWidth/60);l=[];for(let b=0;b<C;b++)h(_.width,_.height);function z(){if(!u||!_)return;u.clearRect(0,0,_.width,_.height);const b=Date.now();for(let M=l.length-1;M>=0;M--){const s=l[M];if(s.phase==="writing")s.charIndex+=s.speed*.5,s.charIndex>=s.text.length&&(s.phase="visible",s.visibleTime=b);else if(s.phase==="visible")b-s.visibleTime>300+Math.random()*500&&(s.phase="fading");else if(s.phase==="fading"&&(s.opacity-=.03*s.speed,s.opacity<=0)){l.splice(M,1),h(_.width,_.height);continue}u.font=`${s.fontSize}px 'JetBrains Mono', 'Fira Code', monospace`;const B=s.text.substring(0,Math.floor(s.charIndex));if(u.shadowColor=s.color+"0.5)",u.shadowBlur=8,u.fillStyle=s.color+(s.opacity*.8).toFixed(2)+")",u.fillText(B,s.x,s.y),u.shadowBlur=0,u.fillStyle=s.color+s.opacity.toFixed(2)+")",u.fillText(B,s.x,s.y),s.phase==="writing"&&Math.floor(b/100)%2===0){const V=s.x+u.measureText(B).width;u.fillStyle=s.color+"0.9)",u.fillRect(V+2,s.y-s.fontSize+4,2,s.fontSize)}}i=requestAnimationFrame(z)}z()}function h(_,k){const u=10+Math.random()*6,C=d[Math.floor(Math.random()*d.length)];l.push({x:Math.random()*(_-300),y:50+Math.random()*(k-100),text:C,charIndex:0,opacity:.2+Math.random()*.4,speed:.5+Math.random()*3.5,color:o[Math.floor(Math.random()*o.length)],phase:"writing",visibleTime:0,fontSize:u})}return j(()=>{p()}),U(()=>{i&&cancelAnimationFrame(i)}),(_,k)=>(c(),g("canvas",{ref_key:"canvasRef",ref:t,class:"landing-matrix-bg","aria-hidden":"true"},null,512))}}),Z=Object.assign(H(Q,[["__scopeId","data-v-b5216f08"]]),{__name:"LandingMatrixBg"}),nn={class:"landing-nav"},tn={class:"landing-nav-container"},en={class:"landing-beta-badge"},an={class:"landing-nav-links"},on={href:"#features"},sn={href:"#pipeline"},ln={href:"#faq"},dn={class:"landing-nav-right"},cn=y({__name:"LandingNav",setup(w){const{t}=$(),d=I(),o=x(!1);return j(()=>{o.value=window.location.host.endsWith(".gitlab.io")}),(l,i)=>{const p=E,h=K;return c(),g("nav",nn,[n("div",tn,[v(p,{to:"/",class:"landing-logo"},{default:S(()=>[i[0]||(i[0]=n("span",null,"⚡",-1)),i[1]||(i[1]=L(" AutoCode ",-1)),n("span",en,"v"+a(e(d).public.appVersion),1)]),_:1}),n("ul",an,[n("li",null,[n("a",on,a(e(t)("landing.nav.features")),1)]),n("li",null,[n("a",sn,a(e(t)("landing.nav.workflow")),1)]),n("li",null,[n("a",ln,a(e(t)("landing.nav.faq")),1)])]),n("div",dn,[v(h),e(o)?q("",!0):(c(),D(p,{key:0,to:"/kanban",class:"landing-nav-cta"},{default:S(()=>[L(a(e(t)("landing.nav.dashboard")),1)]),_:1}))])])])}}}),rn=Object.assign(cn,{__name:"LandingNav"}),pn={class:"landing-hero"},un={class:"landing-hero-content"},gn={class:"gradient"},_n={class:"landing-hero-buttons"},hn={href:"#workflow",class:"landing-btn landing-btn-primary"},vn=y({__name:"LandingHero",setup(w){const{t}=$();return(d,o)=>(c(),g("section",pn,[n("div",un,[n("h1",null,[L(a(e(t)("landing.hero.title1")),1),o[0]||(o[0]=n("br",null,null,-1)),n("span",gn,a(e(t)("landing.hero.title2")),1)]),n("p",null,a(e(t)("landing.hero.description")),1),n("div",_n,[n("a",hn,[L(a(e(t)("landing.hero.cta"))+" ",1),o[1]||(o[1]=n("svg",{width:"20",height:"20",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1))]),o[2]||(o[2]=P('<a href="https://gitlab.com/evkoh/autocode" class="landing-btn landing-btn-secondary" target="_blank"><svg width="20" height="20" fill="currentColor" viewBox="0 0 24 24"><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path></svg> GitLab </a><a href="https://www.npmjs.com/package/@autocode-cli/autocode" class="landing-btn landing-btn-secondary" target="_blank"><svg width="20" height="20" fill="currentColor" viewBox="0 0 24 24"><path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z"></path></svg> npm </a>',2))]),o[3]||(o[3]=P('<div class="landing-terminal"><div class="landing-terminal-header"><span class="landing-terminal-dot red"></span><span class="landing-terminal-dot yellow"></span><span class="landing-terminal-dot green"></span></div><div class="landing-terminal-body"><div class="landing-terminal-line"><span class="landing-terminal-prompt">$</span><span class="landing-terminal-command">npm install -g @autocode-cli/autocode</span></div><div class="landing-terminal-output"><span style="color:#22c55e;">+ @autocode-cli/autocode installed</span></div><div class="landing-terminal-line"><span class="landing-terminal-prompt">$</span><span class="landing-terminal-command">autocode serve</span></div><div class="landing-terminal-output"> Dashboard available at <span class="landing-terminal-accent">http://localhost:3000</span></div></div></div>',1))])]))}}),mn=Object.assign(vn,{__name:"LandingHero"}),fn={id:"podcast",class:"landing-section"},yn={class:"landing-section-header"},wn={class:"landing-podcast-player"},kn=["src"],bn={class:"podcast-info"},xn={class:"podcast-meta"},$n={class:"podcast-lang-badge"},Ln={class:"podcast-controls"},Cn=["disabled"],Mn={key:0,width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},zn={key:1,width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Tn={class:"podcast-progress-bar"},Hn={class:"podcast-time"},Bn={class:"podcast-speed"},Sn=["onClick"],An={class:"podcast-volume"},Fn=["value"],Pn=y({__name:"LandingPodcast",setup(w){const{t,locale:d}=$(),o=x(null),l=x(!1),i=x(0),p=x(0),h=x(1),_=x(1),k=x(!1),u=F(()=>`./media/podcast/${d.value}.m4a`),C=F(()=>M(i.value)),z=F(()=>M(p.value)),b=F(()=>p.value>0?i.value/p.value*100:0);function M(m){const r=Math.floor(m/60),f=Math.floor(m%60);return`${r}:${f.toString().padStart(2,"0")}`}function s(){o.value&&(l.value?o.value.pause():o.value.play())}function B(){o.value&&(i.value=o.value.currentTime)}function V(){o.value&&(p.value=o.value.duration,k.value=!0)}function N(m){if(!o.value||!p.value)return;const f=m.currentTarget.getBoundingClientRect(),O=(m.clientX-f.left)/f.width;o.value.currentTime=O*p.value}function G(m){_.value=m,o.value&&(o.value.playbackRate=m)}function W(m){const r=m.target;h.value=parseFloat(r.value),o.value&&(o.value.volume=h.value)}return X(d,()=>{if(o.value){const m=l.value,r=i.value;o.value.load(),o.value.currentTime=r,m&&o.value.play()}}),(m,r)=>(c(),g("section",fn,[n("div",yn,[n("h2",null,a(e(t)("landing.podcast.title")),1),n("p",null,a(e(t)("landing.podcast.description")),1)]),n("div",wn,[n("audio",{ref_key:"audioRef",ref:o,src:e(u),preload:"metadata",onTimeupdate:B,onLoadedmetadata:V,onPlay:r[0]||(r[0]=f=>l.value=!0),onPause:r[1]||(r[1]=f=>l.value=!1),onEnded:r[2]||(r[2]=f=>l.value=!1)},null,40,kn),n("div",bn,[r[3]||(r[3]=n("div",{class:"podcast-artwork"},[n("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"currentColor"},[n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})])],-1)),n("div",xn,[n("h3",null,a(e(t)("landing.podcast.episode")),1),n("span",$n,a(e(d).toUpperCase()),1)])]),n("div",Ln,[n("button",{class:"podcast-play-btn",disabled:!e(k),onClick:s},[e(l)?(c(),g("svg",zn,[...r[5]||(r[5]=[n("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},null,-1)])])):(c(),g("svg",Mn,[...r[4]||(r[4]=[n("path",{d:"M8 5v14l11-7z"},null,-1)])]))],8,Cn),n("div",{class:"podcast-progress-container",onClick:N},[n("div",Tn,[n("div",{class:"podcast-progress-fill",style:Y({width:`${e(b)}%`})},null,4)]),n("div",Hn,[n("span",null,a(e(C)),1),n("span",null,a(e(z)),1)])]),n("div",Bn,[(c(),g(T,null,A([.5,1,1.5,2],f=>n("button",{key:f,class:R({active:e(_)===f}),onClick:O=>G(f)},a(f)+"x ",11,Sn)),64))]),n("div",An,[r[6]||(r[6]=n("svg",{width:"20",height:"20",fill:"currentColor",viewBox:"0 0 24 24"},[n("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"})],-1)),n("input",{type:"range",min:"0",max:"1",step:"0.1",value:e(h),onInput:W},null,40,Fn)])])])]))}}),Vn=Object.assign(H(Pn,[["__scopeId","data-v-5dee128b"]]),{__name:"LandingPodcast"}),jn={id:"features",class:"landing-section"},qn={class:"landing-section-header"},Rn={class:"landing-features-grid"},On={class:"landing-feature-icon"},In=y({__name:"LandingFeatures",setup(w){const{t}=$(),d=[{icon:"🎯",key:"wrapper"},{icon:"🛡️",key:"pipeline"},{icon:"⏱️",key:"time"},{icon:"🗄️",key:"filesystem"},{icon:"📊",key:"kanban"},{icon:"🔧",key:"custom"},{icon:"💰",key:"cost"},{icon:"🪄",key:"autocreate",highlight:!0},{icon:"🌐",key:"expose"}];return(o,l)=>(c(),g("section",jn,[n("div",qn,[n("h2",null,a(e(t)("landing.features.title")),1),n("p",null,a(e(t)("landing.features.subtitle")),1)]),n("div",Rn,[(c(),g(T,null,A(d,i=>n("div",{key:i.key,class:R(["landing-feature-card",{highlight:i.highlight}])},[n("div",On,a(i.icon),1),n("h3",null,a(e(t)(`landing.features.${i.key}.title`)),1),n("p",null,a(e(t)(`landing.features.${i.key}.desc`)),1)],2)),64))])]))}}),Dn=Object.assign(In,{__name:"LandingFeatures"}),En={id:"pipeline",class:"landing-section"},Nn={class:"landing-section-header"},Gn={class:"landing-pipeline-flow"},Wn={class:"phase-icon"},Un={key:0,class:"pipeline-arrow"},Xn={class:"landing-pipeline-note"},Yn=y({__name:"LandingPipeline",setup(w){const{t}=$(),d=[{key:"create",icon:"💬",color:"blue"},{key:"reviews",icon:"🛡️",color:"purple"},{key:"tests",icon:"🔄",color:"orange"},{key:"deploy",icon:"🚀",color:"green"}];return(o,l)=>(c(),g("section",En,[n("div",Nn,[n("h2",null,a(e(t)("landing.pipeline.title")),1),n("p",null,a(e(t)("landing.pipeline.subtitle")),1)]),n("div",Gn,[(c(),g(T,null,A(d,(i,p)=>(c(),g(T,{key:i.key},[n("div",{class:R(["pipeline-phase",`pipeline-phase-${i.color}`])},[n("div",Wn,a(i.icon),1),n("h3",null,a(e(t)(`landing.pipeline.${i.key}.title`)),1),n("p",null,a(e(t)(`landing.pipeline.${i.key}.desc`)),1)],2),p<d.length-1?(c(),g("div",Un,[...l[0]||(l[0]=[n("svg",{width:"24",height:"24",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[n("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 7l5 5m0 0l-5 5m5-5H6"})],-1)])])):q("",!0)],64))),64))]),n("div",Xn,[l[1]||(l[1]=n("span",{class:"note-icon"},"💡",-1)),n("p",null,a(e(t)("landing.pipeline.note")),1)])]))}}),Jn=Object.assign(H(Yn,[["__scopeId","data-v-985987e8"]]),{__name:"LandingPipeline"}),Kn={id:"autonomy",class:"landing-section"},Qn={class:"landing-section-header"},Zn={class:"landing-autonomy-grid"},nt={class:"autonomy-icon"},tt=y({__name:"LandingAutonomy",setup(w){const{t}=$(),d=[{key:"skip",icon:"✨"},{key:"correct",icon:"♻️"},{key:"spawn",icon:"🆕"}];return(o,l)=>(c(),g("section",Kn,[n("div",Qn,[n("h2",null,a(e(t)("landing.autonomy.title")),1),n("p",null,a(e(t)("landing.autonomy.subtitle")),1)]),n("div",Zn,[(c(),g(T,null,A(d,i=>n("div",{key:i.key,class:"landing-autonomy-card"},[n("div",nt,a(i.icon),1),n("h3",null,a(e(t)(`landing.autonomy.${i.key}.title`)),1),n("p",null,a(e(t)(`landing.autonomy.${i.key}.desc`)),1)])),64))])]))}}),et=Object.assign(H(tt,[["__scopeId","data-v-2365c19b"]]),{__name:"LandingAutonomy"}),at={id:"docs",class:"landing-section"},ot={class:"landing-section-header"},it={class:"landing-docs-grid"},st={href:"/docs/cli",class:"landing-docs-card"},lt={class:"landing-docs-link"},dt={href:"/docs/api",class:"landing-docs-card"},ct={class:"landing-docs-link"},rt=y({__name:"LandingDocs",setup(w){const{t}=$();return(d,o)=>(c(),g("section",at,[n("div",ot,[n("h2",null,a(e(t)("landing.docs.title")),1),n("p",null,a(e(t)("landing.docs.subtitle")),1)]),n("div",it,[n("a",st,[o[0]||(o[0]=n("div",{class:"landing-docs-icon"},[n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[n("polyline",{points:"4 17 10 11 4 5"}),n("line",{x1:"12",y1:"19",x2:"20",y2:"19"})])],-1)),n("h3",null,a(e(t)("landing.docs.cli.title")),1),n("p",null,a(e(t)("landing.docs.cli.desc")),1),n("span",lt,a(e(t)("landing.docs.viewDocs"))+" →",1)]),n("a",dt,[o[1]||(o[1]=P('<div class="landing-docs-icon" data-v-ec88dc23><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-ec88dc23><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" data-v-ec88dc23></path><polyline points="14 2 14 8 20 8" data-v-ec88dc23></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-ec88dc23></line><line x1="16" y1="17" x2="8" y2="17" data-v-ec88dc23></line><polyline points="10 9 9 9 8 9" data-v-ec88dc23></polyline></svg></div>',1)),n("h3",null,a(e(t)("landing.docs.api.title")),1),n("p",null,a(e(t)("landing.docs.api.desc")),1),n("span",ct,a(e(t)("landing.docs.viewDocs"))+" →",1)])])]))}}),pt=Object.assign(H(rt,[["__scopeId","data-v-ec88dc23"]]),{__name:"LandingDocs"}),ut={id:"faq",class:"landing-section"},gt={class:"landing-section-header"},_t={class:"landing-faq-container"},ht=y({__name:"LandingFaq",setup(w){const{t}=$(),d=["free","claude","customize","database","testing"];return(o,l)=>(c(),g("section",ut,[n("div",gt,[n("h2",null,a(e(t)("landing.faq.title")),1),n("p",null,a(e(t)("landing.faq.subtitle")),1)]),n("div",_t,[(c(),g(T,null,A(d,i=>n("div",{key:i,class:"landing-faq-item"},[n("h3",null,a(e(t)(`landing.faq.${i}.q`)),1),n("p",null,a(e(t)(`landing.faq.${i}.a`)),1)])),64))])]))}}),vt=Object.assign(ht,{__name:"LandingFaq"}),mt={class:"landing-footer"},ft={class:"landing-footer-content"},yt={class:"landing-footer-brand"},wt={class:"landing-footer-logo"},kt={class:"landing-beta-badge"},bt={class:"landing-footer-tagline"},xt={class:"landing-footer-nav"},$t={href:"https://gitlab.com/evkoh/autocode/-/issues",target:"_blank",rel:"noopener"},Lt={class:"landing-footer-bottom"},Ct={class:"landing-footer-copy"},Mt=y({__name:"LandingFooter",setup(w){const{t}=$(),d=I(),o=new Date().getFullYear(),l=x(!1);return j(()=>{l.value=window.location.host.endsWith(".gitlab.io")}),(i,p)=>{const h=E;return c(),g("footer",mt,[n("div",ft,[n("div",yt,[n("span",wt,[p[0]||(p[0]=L(" AutoCode ",-1)),n("span",kt,"v"+a(e(d).public.appVersion),1)]),n("span",bt,a(e(t)("landing.footer.madeWith")),1)]),n("nav",xt,[p[1]||(p[1]=P('<a href="https://gitlab.com/evkoh/autocode" target="_blank" rel="noopener" data-v-94d22946><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-v-94d22946><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z" data-v-94d22946></path></svg> GitLab </a><a href="https://www.npmjs.com/package/@autocode-cli/autocode" target="_blank" rel="noopener" data-v-94d22946><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-v-94d22946><path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331z" data-v-94d22946></path></svg> npm </a>',2)),v(h,{to:"/docs/cli"},{default:S(()=>[L(a(e(t)("landing.docs.cli.title")),1)]),_:1}),v(h,{to:"/docs/api"},{default:S(()=>[L(a(e(t)("landing.docs.api.title")),1)]),_:1}),n("a",$t,a(e(t)("landing.roadmap.title")),1),e(l)?q("",!0):(c(),D(h,{key:0,to:"/kanban",class:"landing-footer-dashboard"},{default:S(()=>[L(a(e(t)("landing.footer.dashboard")),1)]),_:1}))]),n("div",Lt,[n("p",Ct," © "+a(e(o))+" AutoCode · "+a(e(t)("landing.footer.license")),1)])])])}}}),zt=Object.assign(H(Mt,[["__scopeId","data-v-94d22946"]]),{__name:"LandingFooter"}),Tt={class:"landing-page"},At=y({__name:"index",setup(w){const{t}=$();return J({title:()=>t("landing.meta.title"),link:[{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"},{rel:"canonical",href:"https://autocode.dev/"}],meta:[{name:"description",content:()=>t("landing.meta.description")},{name:"keywords",content:()=>t("landing.meta.keywords")},{property:"og:type",content:"website"},{property:"og:url",content:"https://autocode.dev/"},{property:"og:title",content:()=>t("landing.meta.title")},{property:"og:description",content:()=>t("landing.meta.description")},{property:"og:site_name",content:"AutoCode"},{property:"og:image",content:"https://autocode.dev/og-image.svg"},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:()=>t("landing.meta.title")},{name:"twitter:description",content:()=>t("landing.meta.description")},{name:"twitter:image",content:"https://autocode.dev/og-image.svg"}]}),(d,o)=>{const l=Z,i=rn,p=mn,h=Vn,_=Dn,k=Jn,u=et,C=pt,z=vt,b=zt;return c(),g("div",Tt,[v(l),v(i),v(p),v(h),v(_),v(k),v(u),v(C),v(z),v(b)])}}});export{At as default};
@@ -1 +1 @@
1
- import{u as $,N as _,d as g,g as B,T as z,B as C,t as m,aZ as P}from"./ge5HoFHn.js";import{d as x,c as d,b as n,F as N,e as u,ak as b,h as o,aj as k,t as y,an as R,m as v,f as c,w as p,aF as V,k as q,s as w,q as F,j as I,bc as L,r as E,n as U,aP as j}from"./nSLZfjDc.js";import{u as D}from"./B0yQK1au.js";import{b as A}from"./CGNl3nJG.js";import{$ as M}from"./I5zwxUB4.js";import"./92s3wAHG.js";import"./C9Q_XE2y.js";import"./BrtBSWOq.js";import"./DxNPZ1bU.js";import"./BAOdxXv4.js";const O=["for"],T=["id","placeholder","value"],W=x({__name:"LabelInput",props:{inputId:{},placeholder:{},value:{},layout:{}},emits:["updateValue"],setup(h,{emit:e}){const t=e,{cx:s}=$(),i=a=>{const l=a.target;t("updateValue",l.value)};return(a,l)=>(n(),d("div",k(R(o(s)("flex-1 flex gap-1 items-center pointer-events-none group"))),[a.layout!=="modal"?(n(),d(N,{key:0},[u("label",b(o(s)("absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"),{for:a.inputId}),null,16,O),u("input",b(o(s)("flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"),{id:a.inputId,placeholder:a.placeholder,value:a.value,onInput:i}),null,16,T)],64)):(n(),d("span",k(b({key:1},o(s)("flex items-center text-c-1 h-8"))),y(a.value),17))],16))}}),Z=_(W,[["__scopeId","data-v-fced736a"]]),G=["aria-label"],H={class:"group relative ml-1.25"},J=x({__name:"CollectionInfoForm",setup(h){const{activeCollection:e}=g(),{collectionMutators:t}=B(),s=v(()=>e?.value?.["x-scalar-icon"]||"interface-content-folder"),i=r=>{e?.value?.uid&&t.edit(e?.value?.uid,"x-scalar-icon",r)},a=r=>{e.value&&t.edit(e.value.uid,"info.title",r)},l=v(()=>({icon:e?.value?.["x-scalar-icon"],title:e?.value?.info?.title,description:e?.value?.info?.description,version:e?.value?.info?.version}));return(r,f)=>(n(),d("div",{"aria-label":`Collection: ${l.value.title}`,class:"mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"},[c(M,{modelValue:s.value,placement:"bottom-start","onUpdate:modelValue":f[0]||(f[0]=S=>i(S))},{default:p(()=>[c(o(z),{class:"hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",variant:"ghost"},{default:p(()=>[c(o(C),{class:"text-c-2 size-5",src:s.value,"stroke-width":"2"},null,8,["src"])]),_:1})]),_:1},8,["modelValue"]),u("div",H,[c(Z,{class:"text-xl font-bold",inputId:"collectionName",placeholder:"Untitled Collection",value:l.value.title,onUpdateValue:a},null,8,["value"])])],8,G))}}),K=_(J,[["__scopeId","data-v-68d5218e"]]),Q={class:"bg-b-1 sticky -top-[104px] z-10 mx-auto w-full"},X={key:0,class:"flex max-w-40 items-center"},Y={class:"text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block"},ee=x({__name:"CollectionNavigation",props:{isSticky:{type:Boolean}},setup(h){const{currentRoute:e}=V(),{activeCollection:t}=g(),s=v(()=>[{displayName:"Overview",to:{name:"collection.overview",params:{[m.Collection]:t.value?.uid}}},{displayName:"Servers",to:{name:"collection.servers",params:{[m.Collection]:t.value?.uid}}},{displayName:"Authentication",to:{name:"collection.authentication",params:{[m.Collection]:t.value?.uid}}},{displayName:"Environment",to:{name:"collection.environment",params:{[m.Collection]:t.value?.uid}}},{displayName:"Settings",to:{name:"collection.settings"}}]);return(i,a)=>(n(),d("div",Q,[c(K),u("div",{class:w(["items-center text-sm font-medium",i.isSticky?"h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4":"flex md:mx-auto md:max-w-[720px]"])},[i.isSticky?(n(),d("div",X,[c(o(C),{class:"text-c-2 hidden size-3.5 md:block",src:o(t)?.["x-scalar-icon"]||"interface-content-folder","stroke-width":"2"},null,8,["src"]),u("span",Y,y(o(t)?.info?.title),1)])):q("",!0),u("div",{class:w(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0",!i.isSticky&&"border-b"])},[(n(!0),d(N,null,F(s.value,({to:l,displayName:r},f)=>(n(),I(o(L),{key:f,class:"-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",to:l},{default:p(()=>[u("span",{class:w(["flex-center h-full w-full border-b",typeof l.name=="string"&&typeof o(e).name=="string"&&o(e).name?.startsWith(l.name)?"text-c-1 border-c-1":"text-c-2 hover:text-c-1 border-transparent"])},y(r),3)]),_:2},1032,["to"]))),128))],2)],2)]))}}),te={class:"w-full md:mx-auto md:max-w-[720px]"},me=x({__name:"Collection",setup(h){const{activeCollection:e}=g(),t=V(),s=E(null),{y:i}=P(s),a=v(()=>i.value>104);return U(e,l=>{if(l?.info?.title==="Drafts"){const r=l.requests[0];t.push({name:"request",params:{[m.Request]:r}})}},{immediate:!0}),(l,r)=>(n(),I(D,{ref_key:"el",ref:s,class:"h-fit overflow-auto pb-6 xl:overflow-auto"},{default:p(()=>[c(A,{class:"xl:h-fit"},{default:p(()=>[c(ee,{isSticky:a.value},null,8,["isSticky"]),u("div",te,[c(o(j))])]),_:1})]),_:1},512))}});export{me as default};
1
+ import{u as $,N as _,d as g,g as B,T as z,B as C,t as m,aZ as P}from"./D1Q9L7QE.js";import{d as x,c as d,b as n,F as N,e as u,ak as b,h as o,aj as k,t as y,an as R,m as v,f as c,w as p,aF as V,k as q,s as w,q as F,j as I,bc as L,r as E,n as U,aP as j}from"./CRsWdsU-.js";import{u as D}from"./DnGW0m4Y.js";import{b as A}from"./DEgvru_U.js";import{$ as M}from"./DxWHIfkW.js";import"./92s3wAHG.js";import"./OpmtRlfX.js";import"./cFgYOPT2.js";import"./BE3foYyN.js";import"./CTqAOy_C.js";const O=["for"],T=["id","placeholder","value"],W=x({__name:"LabelInput",props:{inputId:{},placeholder:{},value:{},layout:{}},emits:["updateValue"],setup(h,{emit:e}){const t=e,{cx:s}=$(),i=a=>{const l=a.target;t("updateValue",l.value)};return(a,l)=>(n(),d("div",k(R(o(s)("flex-1 flex gap-1 items-center pointer-events-none group"))),[a.layout!=="modal"?(n(),d(N,{key:0},[u("label",b(o(s)("absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"),{for:a.inputId}),null,16,O),u("input",b(o(s)("flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"),{id:a.inputId,placeholder:a.placeholder,value:a.value,onInput:i}),null,16,T)],64)):(n(),d("span",k(b({key:1},o(s)("flex items-center text-c-1 h-8"))),y(a.value),17))],16))}}),Z=_(W,[["__scopeId","data-v-fced736a"]]),G=["aria-label"],H={class:"group relative ml-1.25"},J=x({__name:"CollectionInfoForm",setup(h){const{activeCollection:e}=g(),{collectionMutators:t}=B(),s=v(()=>e?.value?.["x-scalar-icon"]||"interface-content-folder"),i=r=>{e?.value?.uid&&t.edit(e?.value?.uid,"x-scalar-icon",r)},a=r=>{e.value&&t.edit(e.value.uid,"info.title",r)},l=v(()=>({icon:e?.value?.["x-scalar-icon"],title:e?.value?.info?.title,description:e?.value?.info?.description,version:e?.value?.info?.version}));return(r,f)=>(n(),d("div",{"aria-label":`Collection: ${l.value.title}`,class:"mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"},[c(M,{modelValue:s.value,placement:"bottom-start","onUpdate:modelValue":f[0]||(f[0]=S=>i(S))},{default:p(()=>[c(o(z),{class:"hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",variant:"ghost"},{default:p(()=>[c(o(C),{class:"text-c-2 size-5",src:s.value,"stroke-width":"2"},null,8,["src"])]),_:1})]),_:1},8,["modelValue"]),u("div",H,[c(Z,{class:"text-xl font-bold",inputId:"collectionName",placeholder:"Untitled Collection",value:l.value.title,onUpdateValue:a},null,8,["value"])])],8,G))}}),K=_(J,[["__scopeId","data-v-68d5218e"]]),Q={class:"bg-b-1 sticky -top-[104px] z-10 mx-auto w-full"},X={key:0,class:"flex max-w-40 items-center"},Y={class:"text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block"},ee=x({__name:"CollectionNavigation",props:{isSticky:{type:Boolean}},setup(h){const{currentRoute:e}=V(),{activeCollection:t}=g(),s=v(()=>[{displayName:"Overview",to:{name:"collection.overview",params:{[m.Collection]:t.value?.uid}}},{displayName:"Servers",to:{name:"collection.servers",params:{[m.Collection]:t.value?.uid}}},{displayName:"Authentication",to:{name:"collection.authentication",params:{[m.Collection]:t.value?.uid}}},{displayName:"Environment",to:{name:"collection.environment",params:{[m.Collection]:t.value?.uid}}},{displayName:"Settings",to:{name:"collection.settings"}}]);return(i,a)=>(n(),d("div",Q,[c(K),u("div",{class:w(["items-center text-sm font-medium",i.isSticky?"h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4":"flex md:mx-auto md:max-w-[720px]"])},[i.isSticky?(n(),d("div",X,[c(o(C),{class:"text-c-2 hidden size-3.5 md:block",src:o(t)?.["x-scalar-icon"]||"interface-content-folder","stroke-width":"2"},null,8,["src"]),u("span",Y,y(o(t)?.info?.title),1)])):q("",!0),u("div",{class:w(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0",!i.isSticky&&"border-b"])},[(n(!0),d(N,null,F(s.value,({to:l,displayName:r},f)=>(n(),I(o(L),{key:f,class:"-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",to:l},{default:p(()=>[u("span",{class:w(["flex-center h-full w-full border-b",typeof l.name=="string"&&typeof o(e).name=="string"&&o(e).name?.startsWith(l.name)?"text-c-1 border-c-1":"text-c-2 hover:text-c-1 border-transparent"])},y(r),3)]),_:2},1032,["to"]))),128))],2)],2)]))}}),te={class:"w-full md:mx-auto md:max-w-[720px]"},me=x({__name:"Collection",setup(h){const{activeCollection:e}=g(),t=V(),s=E(null),{y:i}=P(s),a=v(()=>i.value>104);return U(e,l=>{if(l?.info?.title==="Drafts"){const r=l.requests[0];t.push({name:"request",params:{[m.Request]:r}})}},{immediate:!0}),(l,r)=>(n(),I(D,{ref_key:"el",ref:s,class:"h-fit overflow-auto pb-6 xl:overflow-auto"},{default:p(()=>[c(A,{class:"xl:h-fit"},{default:p(()=>[c(ee,{isSticky:a.value},null,8,["isSticky"]),u("div",te,[c(o(j))])]),_:1})]),_:1},512))}});export{me as default};
@@ -1 +1 @@
1
- import{_ as B}from"./t7k_e5FQ.js";import{_ as D}from"./Amqf1SBE.js";import{d as E}from"./C0Rlrcoy.js";import{d as M,H as R,x as k,m as $,v as S,c as e,f as P,e as i,h as r,t as a,F as m,q as b,b as t,k as c,s as j,j as w,w as v,g as H,_ as q}from"./nSLZfjDc.js";import{u as A}from"./C9Q_XE2y.js";const z={class:"issue-history-page"},G={class:"card"},J={class:"section-header"},K={class:"count"},O={key:0,class:"loading"},Q={key:1,class:"error-message"},U={key:2,class:"empty"},W={key:3,class:"history-list"},X={class:"history-main"},Y={key:0,class:"history-from"},Z={key:1,class:"history-arrow"},ss={class:"history-to"},ts=["innerHTML"],os={key:1,class:"history-changes"},es={class:"change-field"},as={class:"change-from"},is={class:"change-to"},rs={key:0,class:"history-actions"},ns={key:1,class:"session-badge"},cs={class:"history-date"},ls=M({__name:"index",async setup(ds){let n,u;const d=R().params.id,{data:l}=([n,u]=k(()=>A(`/api/issues/${d}`,"$Rocr4faAHy")),n=await n,u(),n),I=$(()=>{if(!l.value)return null;const o={id:l.value.key,title:l.value.title,column:l.value.column_slug};return l.value.priority&&(o.priority=l.value.priority),o}),{data:_,status:C,error:p}=([n,u]=k(()=>A(`/api/issues/${d}/history`,"$bELPvGg345")),n=await n,u(),n),L=$(()=>_.value?[..._.value].reverse():[]),x=o=>new Date(o).toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),f=o=>o||"",F=o=>E(o);return S({title:`History - ${d} - AutoCode`}),(o,h)=>{const N=B,g=D;return t(),e("div",z,[P(N,{issue:r(I),"active-tab":"history"},null,8,["issue"]),i("div",G,[i("div",J,[i("h2",null,a(o.$t("issue.history")),1),i("span",K,"("+a(r(_)?.length||0)+")",1)]),r(C)==="pending"?(t(),e("div",O,a(o.$t("app.loading")),1)):r(p)?(t(),e("div",Q,a(r(p).message),1)):r(_)?.length?(t(),e("ul",W,[(t(!0),e(m,null,b(r(L),(s,T)=>(t(),e("li",{key:T,class:"history-item"},[i("div",X,[i("span",{class:j(["history-action",`history-action-${s.action}`])},a(o.$t(`history.action.${s.action}`)),3),s.action!=="edited"?(t(),e(m,{key:0},[s.from?(t(),e("span",Y,a(s.from),1)):c("",!0),s.from?(t(),e("span",Z,"→")):c("",!0),i("span",ss,a(s.to),1),s.reason?(t(),e("div",{key:2,class:"history-reason",innerHTML:F(s.reason)},null,8,ts)):c("",!0)],64)):s.changes?.length?(t(),e("div",os,[(t(!0),e(m,null,b(s.changes,(y,V)=>(t(),e("div",{key:V,class:"history-change-item"},[i("span",es,a(o.$t(`history.field.${y.field}`)),1),i("span",as,a(f(y.from)||"∅"),1),h[0]||(h[0]=i("span",{class:"history-arrow"},"→",-1)),i("span",is,a(f(y.to)||"∅"),1)]))),128))])):c("",!0)]),s.artifactsAvailable?.prompt||s.artifactsAvailable?.terminal?(t(),e("div",rs,[s.artifactsAvailable?.prompt?(t(),w(g,{key:0,to:`/issue/${r(d)}/history/${s.sessionId}/prompt`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewPrompt")),1)]),_:1},8,["to"])):c("",!0),s.artifactsAvailable?.terminal?(t(),w(g,{key:1,to:`/issue/${r(d)}/history/${s.sessionId}/terminal`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewTerminal")),1)]),_:1},8,["to"])):c("",!0)])):c("",!0),s.sessionId?(t(),e("span",ns,a(s.sessionId),1)):c("",!0),i("time",cs,a(x(s.at)),1)]))),128))])):(t(),e("div",U,a(o.$t("issue.noHistory")),1))])])}}}),fs=q(ls,[["__scopeId","data-v-4be073b7"]]);export{fs as default};
1
+ import{_ as B}from"./C8yVYDPb.js";import{_ as D}from"./fpPxFzzn.js";import{d as E}from"./C0Rlrcoy.js";import{d as M,H as R,x as k,m as $,v as S,c as e,f as P,e as i,h as r,t as a,F as m,q as b,b as t,k as c,s as j,j as w,w as v,g as H,_ as q}from"./CRsWdsU-.js";import{u as A}from"./OpmtRlfX.js";const z={class:"issue-history-page"},G={class:"card"},J={class:"section-header"},K={class:"count"},O={key:0,class:"loading"},Q={key:1,class:"error-message"},U={key:2,class:"empty"},W={key:3,class:"history-list"},X={class:"history-main"},Y={key:0,class:"history-from"},Z={key:1,class:"history-arrow"},ss={class:"history-to"},ts=["innerHTML"],os={key:1,class:"history-changes"},es={class:"change-field"},as={class:"change-from"},is={class:"change-to"},rs={key:0,class:"history-actions"},ns={key:1,class:"session-badge"},cs={class:"history-date"},ls=M({__name:"index",async setup(ds){let n,u;const d=R().params.id,{data:l}=([n,u]=k(()=>A(`/api/issues/${d}`,"$Rocr4faAHy")),n=await n,u(),n),I=$(()=>{if(!l.value)return null;const o={id:l.value.key,title:l.value.title,column:l.value.column_slug};return l.value.priority&&(o.priority=l.value.priority),o}),{data:_,status:C,error:p}=([n,u]=k(()=>A(`/api/issues/${d}/history`,"$bELPvGg345")),n=await n,u(),n),L=$(()=>_.value?[..._.value].reverse():[]),x=o=>new Date(o).toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),f=o=>o||"",F=o=>E(o);return S({title:`History - ${d} - AutoCode`}),(o,h)=>{const N=B,g=D;return t(),e("div",z,[P(N,{issue:r(I),"active-tab":"history"},null,8,["issue"]),i("div",G,[i("div",J,[i("h2",null,a(o.$t("issue.history")),1),i("span",K,"("+a(r(_)?.length||0)+")",1)]),r(C)==="pending"?(t(),e("div",O,a(o.$t("app.loading")),1)):r(p)?(t(),e("div",Q,a(r(p).message),1)):r(_)?.length?(t(),e("ul",W,[(t(!0),e(m,null,b(r(L),(s,T)=>(t(),e("li",{key:T,class:"history-item"},[i("div",X,[i("span",{class:j(["history-action",`history-action-${s.action}`])},a(o.$t(`history.action.${s.action}`)),3),s.action!=="edited"?(t(),e(m,{key:0},[s.from?(t(),e("span",Y,a(s.from),1)):c("",!0),s.from?(t(),e("span",Z,"→")):c("",!0),i("span",ss,a(s.to),1),s.reason?(t(),e("div",{key:2,class:"history-reason",innerHTML:F(s.reason)},null,8,ts)):c("",!0)],64)):s.changes?.length?(t(),e("div",os,[(t(!0),e(m,null,b(s.changes,(y,V)=>(t(),e("div",{key:V,class:"history-change-item"},[i("span",es,a(o.$t(`history.field.${y.field}`)),1),i("span",as,a(f(y.from)||"∅"),1),h[0]||(h[0]=i("span",{class:"history-arrow"},"→",-1)),i("span",is,a(f(y.to)||"∅"),1)]))),128))])):c("",!0)]),s.artifactsAvailable?.prompt||s.artifactsAvailable?.terminal?(t(),e("div",rs,[s.artifactsAvailable?.prompt?(t(),w(g,{key:0,to:`/issue/${r(d)}/history/${s.sessionId}/prompt`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewPrompt")),1)]),_:1},8,["to"])):c("",!0),s.artifactsAvailable?.terminal?(t(),w(g,{key:1,to:`/issue/${r(d)}/history/${s.sessionId}/terminal`,class:"btn-action"},{default:v(()=>[H(a(o.$t("history.viewTerminal")),1)]),_:1},8,["to"])):c("",!0)])):c("",!0),s.sessionId?(t(),e("span",ns,a(s.sessionId),1)):c("",!0),i("time",cs,a(x(s.at)),1)]))),128))])):(t(),e("div",U,a(o.$t("issue.noHistory")),1))])])}}}),fs=q(ls,[["__scopeId","data-v-4be073b7"]]);export{fs as default};
@@ -1 +1 @@
1
- import{g as P,aA as q,ay as K,av as L,T,aC as Q,aD as ne,N as te,d as oe,M as O,r as se,L as H}from"./ge5HoFHn.js";import{m as ie}from"./BQPgjGfs.js";import{w as re}from"./BAAiS_qy.js";import{C as ce}from"./CgTGeNUg.js";import{b as ue}from"./CGNl3nJG.js";import{J as ve,M as de}from"./CFQXrjRh.js";import{d as X,r as V,m as W,n as R,j as $,o as me,b as g,w as f,f as u,c as Y,g as U,F as Z,q as ee,s as fe,ay as pe,h as n,k as ae,A as he,z as J,e as p,p as be,t as ke}from"./nSLZfjDc.js";import{x as G,H as ye}from"./CXfoqgHV.js";import"./92s3wAHG.js";import"./C9Q_XE2y.js";import"./BrtBSWOq.js";import"./DxNPZ1bU.js";import"./Dob4oaN0.js";const xe=X({__name:"EnvironmentForm",props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(r){const{collectionMutators:t}=P(),s=V([]),z=V(new Set),k=V(new Map),h=V(!1),_=W(()=>{if(!r.environment?.value)return[{key:"",value:""}];try{const e=JSON.parse(r.environment.value),l=Object.entries(e).map(([o,a])=>({key:o,value:String(a)}));return l.length===0?[{key:"",value:""}]:l}catch{return[{key:"",value:""}]}}),F=W(()=>{const e=s.value[s.value.length-1];return e?e.key||e.value?[...s.value,{key:"",value:""}]:s.value:[{key:"",value:""}]}),w=W(()=>{const e=new Map;return s.value.forEach((l,o)=>{if(l.key){const a=e.get(l.key)||[];a.push(o),e.set(l.key,a)}}),k.value.forEach((l,o)=>{if(l){const a=e.get(l)||[];a.push(o),e.set(l,a)}}),Array.from(e.values()).filter(l=>l.length>1).flat()});R(_,e=>{s.value=[...e],z.value=new Set(e.map(l=>l.key).filter(Boolean))},{immediate:!0});const M=async(e,l,o)=>{if(!h.value){if(l==="key"){k.value.set(e,o);const a=new Set(z.value),d=s.value[e];if(d&&a.delete(d.key),a.has(o))return}h.value=!0;try{const a=[...s.value],d=a[e];if(!d)return;a[e]={key:l==="key"?o:d.key,value:l==="value"?o:d.value},!a[e].key&&!a[e].value&&e!==a.length-1&&a.splice(e,1);const S=a.reduce((b,{key:B,value:D})=>((B||D)&&(b[B]=D),b),{});if(r.collection){const b={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:S}};await t.edit(r.collection.uid,"x-scalar-environments",b)}if(e===s.value.length-1){const b=a[a.length-1];b&&(b.key||b.value)&&await v()}await J(),s.value=a,l==="key"&&(z.value=new Set(a.map(b=>b.key).filter(Boolean)),k.value.delete(e))}finally{h.value=!1}}},v=async()=>{if(!h.value){h.value=!0;try{const e=[...s.value,{key:"",value:""}],l=e.reduce((o,{key:a,value:d})=>((a||d)&&(o[a]=d),o),{});if(r.collection){const o={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:l}};await t.edit(r.collection.uid,"x-scalar-environments",o)}await J(),s.value=e}finally{h.value=!1}}},E=async e=>{if(!h.value){h.value=!0;try{const l=[...s.value];l.splice(e,1);const o=l.reduce((a,{key:d,value:S})=>((d||S)&&(a[d]=S),a),{});if(r.collection){const a={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:o}};await t.edit(r.collection.uid,"x-scalar-environments",a)}await J(),s.value=l}finally{h.value=!1}}},A=async()=>{if(s.value.length===0)await v();else if(s.value.length>=1){const e=s.value[s.value.length-1];e&&(e.key||e.value)&&await v()}};return me(()=>{A()}),R(()=>s.value,()=>{A()}),(e,l)=>(g(),$(ne,{class:"group/table flex-1",columns:["",""]},{default:f(()=>[u(q,{class:"sr-only !block"},{default:f(()=>[u(G,null,{default:f(()=>[...l[0]||(l[0]=[U("Key",-1)])]),_:1}),u(G,null,{default:f(()=>[...l[1]||(l[1]=[U("Value",-1)])]),_:1})]),_:1}),(g(!0),Y(Z,null,ee(F.value,(o,a)=>(g(),$(q,{key:a,class:fe({error:w.value.includes(a)})},{default:f(()=>[u(K,null,{default:f(()=>[u(L,{disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:e.environment,envVariables:e.envVariables,modelValue:o.key,placeholder:"Key",workspace:e.workspace,"onUpdate:modelValue":d=>M(a,"key",d)},pe({_:2},[w.value.includes(a)?{name:"icon",fn:f(()=>[u(n(ye),{class:"text-red mr-0.75 size-3.5 brightness-[.9]"})]),key:"0"}:void 0]),1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])]),_:2},1024),u(K,null,{default:f(()=>[u(L,{class:"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:e.environment,envVariables:e.envVariables,modelValue:o.value,placeholder:"Value",workspace:e.workspace,"onUpdate:modelValue":d=>M(a,"value",d)},{icon:f(()=>[o.key||o.value?(g(),$(n(T),{key:0,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",size:"sm",variant:"ghost",onClick:he(d=>E(a),["stop"])},{default:f(()=>[u(n(Q),{class:"size-3.5"})]),_:1},8,["onClick"])):ae("",!0)]),_:2},1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1}))}}),ge=te(xe,[["__scopeId","data-v-83bfcc8a"]]),we={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},Ce={class:"flex flex-col gap-4"},Ve={class:"rounded-lg border"},_e={class:"bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm"},Fe={class:"flex items-center"},Ee=["onClick"],Se={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},Je=X({__name:"CollectionEnvironment",setup(r){const{activeCollection:t,activeWorkspace:s,activeEnvVariables:z}=oe(),{collectionMutators:k}=P(),h=O(),_=O(),F=O(),w=O(),M=V(""),v=V(null),E=V(void 0),A=W(()=>t.value?.["x-scalar-environments"]?Object.entries(t.value["x-scalar-environments"]).map(([c,i])=>({uid:c,name:c,value:JSON.stringify(i.variables||{}),color:i.color||"#FFFFFF"})):[]),e=()=>{!t.value?.uid||!v.value||(k.removeEnvironment(v.value,t.value.uid),_.hide())},l=c=>{v.value=c,_.show()},o=c=>{t.value?.uid&&(k.addEnvironment(c.name,{variables:{},color:c.color},t.value.uid),F.hide())},a=c=>{v.value=c.name,M.value=c.color||"#FFFFFF",h.show()},d=c=>{if(!t.value?.uid||!v.value)return;const i={...t.value["x-scalar-environments"],[v.value]:{variables:t.value["x-scalar-environments"]?.[v.value]?.variables||{},color:c}};k.edit(t.value.uid,"x-scalar-environments",i),h.hide()},S=c=>{v.value=c,E.value=c,w.show()},b=()=>{v.value=null,E.value=void 0,w.hide()},B=c=>{if(!t.value?.uid||!v.value)return;const i={...t.value["x-scalar-environments"]};if(!i[v.value])return;const m={},y=Object.entries(i),x=y.findIndex(([C])=>C===v.value);y.forEach(([C,N],I)=>{I===x?m[c]=N:m[C]=N}),k.edit(t.value.uid,"x-scalar-environments",m),v.value=null,E.value=void 0,w.hide()},D=(c,i)=>{if(!t.value?.uid)return;const m={...t.value["x-scalar-environments"]},y={},x=Object.entries(m),C=x.findIndex(([j])=>j===c.id),N=x.findIndex(([j])=>j===i.id);if(C===-1||N===-1)return;const I=x[C];I&&(x.splice(C,1),x.splice(N,0,I),x.forEach(([j,le])=>{y[j]=le}),k.edit(t.value.uid,"x-scalar-environments",y))};return(c,i)=>(g(),$(ue,null,{default:f(()=>[p("div",we,[p("div",Ce,[i[5]||(i[5]=p("div",{class:"flex items-start justify-between gap-2"},[p("div",{class:"flex flex-col gap-2"},[p("div",{class:"flex h-8 items-center"},[p("h3",{class:"font-bold"},"Environment Variables")]),p("p",{class:"text-sm"},[U(" Set environment variables at your collection level. Use "),p("code",{class:"font-code text-c-2"},"{{ variable }}"),U(" to add / search among the selected environment's variables in your request inputs. ")])])],-1)),(g(!0),Y(Z,null,ee(A.value,m=>(g(),$(n(ie),{key:m.name,id:m.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:D},{default:f(()=>[p("div",Ve,[p("div",_e,[p("div",Fe,[u(n(T),{class:"hover:bg-b-3 flex h-6 w-6 p-1",onClick:y=>a(m),variant:"ghost"},{default:f(()=>[p("span",{style:be({backgroundColor:m.color||"#FFFFFF"}),class:"h-2.5 w-2.5 rounded-full"},null,4)]),_:2},1032,["onClick"]),p("button",{class:"hover:bg-b-3 rounded px-1 py-0.5 text-sm",onClick:y=>S(m.name)},ke(m.name),9,Ee)]),u(n(T),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:y=>l(m.name)},{default:f(()=>[u(n(Q),{class:"size-3.5"})]),_:1},8,["onClick"])]),n(t)&&n(s)?(g(),$(ge,{key:0,collection:n(t),environment:m,envVariables:n(z),workspace:n(s)},null,8,["collection","environment","envVariables","workspace"])):ae("",!0)])]),_:2},1032,["id"]))),128)),p("div",Se,[u(n(T),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:i[0]||(i[0]=m=>n(F).show())},{default:f(()=>[u(n(se),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),i[4]||(i[4]=p("span",null,"Add Environment",-1))]),_:1})])]),u(n(H),{size:"xxs",state:n(_),title:`Delete ${v.value||"Environment"}`},{default:f(()=>[u(re,{variableName:"Environment",warningMessage:"Are you sure you want to delete this environment? This action cannot be undone.",onClose:i[1]||(i[1]=m=>n(_).hide()),onDelete:e})]),_:1},8,["state","title"]),u(ve,{activeWorkspaceCollections:n(t)?[n(t)]:[],collectionId:n(t)?.uid,state:n(F),onCancel:i[2]||(i[2]=m=>n(F).hide()),onSubmit:o},null,8,["activeWorkspaceCollections","collectionId","state"]),u(de,{selectedColor:M.value,state:n(h),onCancel:i[3]||(i[3]=m=>n(h).hide()),onSubmit:d},null,8,["selectedColor","state"]),u(n(H),{size:"xxs",state:n(w),title:`Edit ${v.value}`},{default:f(()=>[u(ce,{name:E.value??"",onClose:b,onEdit:B},null,8,["name"])]),_:1},8,["state","title"])])]),_:1}))}});export{Je as default};
1
+ import{g as P,aA as q,ay as K,av as L,T,aC as Q,aD as ne,N as te,d as oe,M as O,r as se,L as H}from"./D1Q9L7QE.js";import{m as ie}from"./BJjQ3yAn.js";import{w as re}from"./RhTS06Sf.js";import{C as ce}from"./DGsDmUyW.js";import{b as ue}from"./DEgvru_U.js";import{J as ve,M as de}from"./CenZ_oU4.js";import{d as X,r as V,m as W,n as R,j as $,o as me,b as g,w as f,f as u,c as Y,g as U,F as Z,q as ee,s as fe,ay as pe,h as n,k as ae,A as he,z as J,e as p,p as be,t as ke}from"./CRsWdsU-.js";import{x as G,H as ye}from"./BR3-ptv5.js";import"./92s3wAHG.js";import"./OpmtRlfX.js";import"./cFgYOPT2.js";import"./BE3foYyN.js";import"./Dcy-p3Z6.js";const xe=X({__name:"EnvironmentForm",props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(r){const{collectionMutators:t}=P(),s=V([]),z=V(new Set),k=V(new Map),h=V(!1),_=W(()=>{if(!r.environment?.value)return[{key:"",value:""}];try{const e=JSON.parse(r.environment.value),l=Object.entries(e).map(([o,a])=>({key:o,value:String(a)}));return l.length===0?[{key:"",value:""}]:l}catch{return[{key:"",value:""}]}}),F=W(()=>{const e=s.value[s.value.length-1];return e?e.key||e.value?[...s.value,{key:"",value:""}]:s.value:[{key:"",value:""}]}),w=W(()=>{const e=new Map;return s.value.forEach((l,o)=>{if(l.key){const a=e.get(l.key)||[];a.push(o),e.set(l.key,a)}}),k.value.forEach((l,o)=>{if(l){const a=e.get(l)||[];a.push(o),e.set(l,a)}}),Array.from(e.values()).filter(l=>l.length>1).flat()});R(_,e=>{s.value=[...e],z.value=new Set(e.map(l=>l.key).filter(Boolean))},{immediate:!0});const M=async(e,l,o)=>{if(!h.value){if(l==="key"){k.value.set(e,o);const a=new Set(z.value),d=s.value[e];if(d&&a.delete(d.key),a.has(o))return}h.value=!0;try{const a=[...s.value],d=a[e];if(!d)return;a[e]={key:l==="key"?o:d.key,value:l==="value"?o:d.value},!a[e].key&&!a[e].value&&e!==a.length-1&&a.splice(e,1);const S=a.reduce((b,{key:B,value:D})=>((B||D)&&(b[B]=D),b),{});if(r.collection){const b={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:S}};await t.edit(r.collection.uid,"x-scalar-environments",b)}if(e===s.value.length-1){const b=a[a.length-1];b&&(b.key||b.value)&&await v()}await J(),s.value=a,l==="key"&&(z.value=new Set(a.map(b=>b.key).filter(Boolean)),k.value.delete(e))}finally{h.value=!1}}},v=async()=>{if(!h.value){h.value=!0;try{const e=[...s.value,{key:"",value:""}],l=e.reduce((o,{key:a,value:d})=>((a||d)&&(o[a]=d),o),{});if(r.collection){const o={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:l}};await t.edit(r.collection.uid,"x-scalar-environments",o)}await J(),s.value=e}finally{h.value=!1}}},E=async e=>{if(!h.value){h.value=!0;try{const l=[...s.value];l.splice(e,1);const o=l.reduce((a,{key:d,value:S})=>((d||S)&&(a[d]=S),a),{});if(r.collection){const a={...r.collection["x-scalar-environments"],[r.environment.name]:{...r.collection["x-scalar-environments"]?.[r.environment.name],variables:o}};await t.edit(r.collection.uid,"x-scalar-environments",a)}await J(),s.value=l}finally{h.value=!1}}},A=async()=>{if(s.value.length===0)await v();else if(s.value.length>=1){const e=s.value[s.value.length-1];e&&(e.key||e.value)&&await v()}};return me(()=>{A()}),R(()=>s.value,()=>{A()}),(e,l)=>(g(),$(ne,{class:"group/table flex-1",columns:["",""]},{default:f(()=>[u(q,{class:"sr-only !block"},{default:f(()=>[u(G,null,{default:f(()=>[...l[0]||(l[0]=[U("Key",-1)])]),_:1}),u(G,null,{default:f(()=>[...l[1]||(l[1]=[U("Value",-1)])]),_:1})]),_:1}),(g(!0),Y(Z,null,ee(F.value,(o,a)=>(g(),$(q,{key:a,class:fe({error:w.value.includes(a)})},{default:f(()=>[u(K,null,{default:f(()=>[u(L,{disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:e.environment,envVariables:e.envVariables,modelValue:o.key,placeholder:"Key",workspace:e.workspace,"onUpdate:modelValue":d=>M(a,"key",d)},pe({_:2},[w.value.includes(a)?{name:"icon",fn:f(()=>[u(n(ye),{class:"text-red mr-0.75 size-3.5 brightness-[.9]"})]),key:"0"}:void 0]),1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])]),_:2},1024),u(K,null,{default:f(()=>[u(L,{class:"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:e.environment,envVariables:e.envVariables,modelValue:o.value,placeholder:"Value",workspace:e.workspace,"onUpdate:modelValue":d=>M(a,"value",d)},{icon:f(()=>[o.key||o.value?(g(),$(n(T),{key:0,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",size:"sm",variant:"ghost",onClick:he(d=>E(a),["stop"])},{default:f(()=>[u(n(Q),{class:"size-3.5"})]),_:1},8,["onClick"])):ae("",!0)]),_:2},1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1}))}}),ge=te(xe,[["__scopeId","data-v-83bfcc8a"]]),we={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},Ce={class:"flex flex-col gap-4"},Ve={class:"rounded-lg border"},_e={class:"bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm"},Fe={class:"flex items-center"},Ee=["onClick"],Se={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},Je=X({__name:"CollectionEnvironment",setup(r){const{activeCollection:t,activeWorkspace:s,activeEnvVariables:z}=oe(),{collectionMutators:k}=P(),h=O(),_=O(),F=O(),w=O(),M=V(""),v=V(null),E=V(void 0),A=W(()=>t.value?.["x-scalar-environments"]?Object.entries(t.value["x-scalar-environments"]).map(([c,i])=>({uid:c,name:c,value:JSON.stringify(i.variables||{}),color:i.color||"#FFFFFF"})):[]),e=()=>{!t.value?.uid||!v.value||(k.removeEnvironment(v.value,t.value.uid),_.hide())},l=c=>{v.value=c,_.show()},o=c=>{t.value?.uid&&(k.addEnvironment(c.name,{variables:{},color:c.color},t.value.uid),F.hide())},a=c=>{v.value=c.name,M.value=c.color||"#FFFFFF",h.show()},d=c=>{if(!t.value?.uid||!v.value)return;const i={...t.value["x-scalar-environments"],[v.value]:{variables:t.value["x-scalar-environments"]?.[v.value]?.variables||{},color:c}};k.edit(t.value.uid,"x-scalar-environments",i),h.hide()},S=c=>{v.value=c,E.value=c,w.show()},b=()=>{v.value=null,E.value=void 0,w.hide()},B=c=>{if(!t.value?.uid||!v.value)return;const i={...t.value["x-scalar-environments"]};if(!i[v.value])return;const m={},y=Object.entries(i),x=y.findIndex(([C])=>C===v.value);y.forEach(([C,N],I)=>{I===x?m[c]=N:m[C]=N}),k.edit(t.value.uid,"x-scalar-environments",m),v.value=null,E.value=void 0,w.hide()},D=(c,i)=>{if(!t.value?.uid)return;const m={...t.value["x-scalar-environments"]},y={},x=Object.entries(m),C=x.findIndex(([j])=>j===c.id),N=x.findIndex(([j])=>j===i.id);if(C===-1||N===-1)return;const I=x[C];I&&(x.splice(C,1),x.splice(N,0,I),x.forEach(([j,le])=>{y[j]=le}),k.edit(t.value.uid,"x-scalar-environments",y))};return(c,i)=>(g(),$(ue,null,{default:f(()=>[p("div",we,[p("div",Ce,[i[5]||(i[5]=p("div",{class:"flex items-start justify-between gap-2"},[p("div",{class:"flex flex-col gap-2"},[p("div",{class:"flex h-8 items-center"},[p("h3",{class:"font-bold"},"Environment Variables")]),p("p",{class:"text-sm"},[U(" Set environment variables at your collection level. Use "),p("code",{class:"font-code text-c-2"},"{{ variable }}"),U(" to add / search among the selected environment's variables in your request inputs. ")])])],-1)),(g(!0),Y(Z,null,ee(A.value,m=>(g(),$(n(ie),{key:m.name,id:m.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:D},{default:f(()=>[p("div",Ve,[p("div",_e,[p("div",Fe,[u(n(T),{class:"hover:bg-b-3 flex h-6 w-6 p-1",onClick:y=>a(m),variant:"ghost"},{default:f(()=>[p("span",{style:be({backgroundColor:m.color||"#FFFFFF"}),class:"h-2.5 w-2.5 rounded-full"},null,4)]),_:2},1032,["onClick"]),p("button",{class:"hover:bg-b-3 rounded px-1 py-0.5 text-sm",onClick:y=>S(m.name)},ke(m.name),9,Ee)]),u(n(T),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:y=>l(m.name)},{default:f(()=>[u(n(Q),{class:"size-3.5"})]),_:1},8,["onClick"])]),n(t)&&n(s)?(g(),$(ge,{key:0,collection:n(t),environment:m,envVariables:n(z),workspace:n(s)},null,8,["collection","environment","envVariables","workspace"])):ae("",!0)])]),_:2},1032,["id"]))),128)),p("div",Se,[u(n(T),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:i[0]||(i[0]=m=>n(F).show())},{default:f(()=>[u(n(se),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),i[4]||(i[4]=p("span",null,"Add Environment",-1))]),_:1})])]),u(n(H),{size:"xxs",state:n(_),title:`Delete ${v.value||"Environment"}`},{default:f(()=>[u(re,{variableName:"Environment",warningMessage:"Are you sure you want to delete this environment? This action cannot be undone.",onClose:i[1]||(i[1]=m=>n(_).hide()),onDelete:e})]),_:1},8,["state","title"]),u(ve,{activeWorkspaceCollections:n(t)?[n(t)]:[],collectionId:n(t)?.uid,state:n(F),onCancel:i[2]||(i[2]=m=>n(F).hide()),onSubmit:o},null,8,["activeWorkspaceCollections","collectionId","state"]),u(de,{selectedColor:M.value,state:n(h),onCancel:i[3]||(i[3]=m=>n(h).hide()),onSubmit:d},null,8,["selectedColor","state"]),u(n(H),{size:"xxs",state:n(w),title:`Edit ${v.value}`},{default:f(()=>[u(ce,{name:E.value??"",onClose:b,onEdit:B},null,8,["name"])]),_:1},8,["state","title"])])]),_:1}))}});export{Je as default};
@@ -1 +1 @@
1
- import{b as w}from"./CGNl3nJG.js";import{r as b,T as k,as as y,av as _,N as C,d as z,g as B}from"./ge5HoFHn.js";import{d as g,r as h,n as E,z as I,c as m,b as s,e as o,j as u,k as c,w as f,f as p,h as l,F as V}from"./nSLZfjDc.js";import"./92s3wAHG.js";import"./C9Q_XE2y.js";import"./BrtBSWOq.js";import"./DxNPZ1bU.js";const N={class:"flex h-full w-full flex-col gap-2 pt-8"},F={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},j={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},D={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},M={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},P=g({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(x,{emit:n}){const d=n,t=h("preview"),r=h(null);E(t,a=>{a==="edit"&&I(()=>{r.value?.focus()})});const v=()=>{requestAnimationFrame(()=>{t.value="preview"})};return(a,e)=>(s(),m("div",N,[o("div",F,[e[5]||(e[5]=o("h3",{class:"font-bold"},"Description",-1)),t.value==="preview"?(s(),u(l(k),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:e[0]||(e[0]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[4]||(e[4]=o("span",null,"Edit",-1))]),_:1})):c("",!0)]),o("div",j,[o("div",D,[t.value==="preview"?(s(),m(V,{key:0},[a.modelValue&&a.modelValue.trim().length?(s(),m(V,{key:0},[a.modelValue?(s(),u(l(y),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:a.modelValue,withImages:"",onDblclick:e[1]||(e[1]=i=>t.value="edit")},null,8,["value"])):c("",!0),e[6]||(e[6]=o("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(s(),m("div",M,[p(l(k),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:e[2]||(e[2]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[7]||(e[7]=o("span",null,"Write a description",-1))]),_:1})]))],64)):c("",!0),t.value==="edit"?(s(),u(_,{key:1,ref_key:"codeInputRef",ref:r,class:"h-full flex-1 border px-0.5 py-0",envVariables:a.envVariables,environment:a.environment,modelValue:a.modelValue,workspace:a.workspace,onBlur:v,"onUpdate:modelValue":e[3]||(e[3]=i=>d("update:modelValue",i))},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)])])]))}}),T=C(P,[["__scopeId","data-v-5997a667"]]),S=g({__name:"CollectionOverview",setup(x){const{activeCollection:n,activeEnvironment:d,activeEnvVariables:t,activeWorkspace:r}=z(),{collectionMutators:v}=B(),a=e=>{n.value&&v.edit(n.value.uid,"info.description",e)};return(e,i)=>(s(),u(w,null,{default:f(()=>[l(d)&&l(r)?(s(),u(T,{key:0,envVariables:l(t),environment:l(d),modelValue:l(n)?.info?.description??"",workspace:l(r),"onUpdate:modelValue":a},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)]),_:1}))}});export{S as default};
1
+ import{b as w}from"./DEgvru_U.js";import{r as b,T as k,as as y,av as _,N as C,d as z,g as B}from"./D1Q9L7QE.js";import{d as g,r as h,n as E,z as I,c as m,b as s,e as o,j as u,k as c,w as f,f as p,h as l,F as V}from"./CRsWdsU-.js";import"./92s3wAHG.js";import"./OpmtRlfX.js";import"./cFgYOPT2.js";import"./BE3foYyN.js";const N={class:"flex h-full w-full flex-col gap-2 pt-8"},F={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},j={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},D={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},M={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},P=g({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(x,{emit:n}){const d=n,t=h("preview"),r=h(null);E(t,a=>{a==="edit"&&I(()=>{r.value?.focus()})});const v=()=>{requestAnimationFrame(()=>{t.value="preview"})};return(a,e)=>(s(),m("div",N,[o("div",F,[e[5]||(e[5]=o("h3",{class:"font-bold"},"Description",-1)),t.value==="preview"?(s(),u(l(k),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:e[0]||(e[0]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[4]||(e[4]=o("span",null,"Edit",-1))]),_:1})):c("",!0)]),o("div",j,[o("div",D,[t.value==="preview"?(s(),m(V,{key:0},[a.modelValue&&a.modelValue.trim().length?(s(),m(V,{key:0},[a.modelValue?(s(),u(l(y),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:a.modelValue,withImages:"",onDblclick:e[1]||(e[1]=i=>t.value="edit")},null,8,["value"])):c("",!0),e[6]||(e[6]=o("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(s(),m("div",M,[p(l(k),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:e[2]||(e[2]=i=>t.value="edit")},{default:f(()=>[p(l(b),{icon:"Pencil",size:"sm",thickness:"1.5"}),e[7]||(e[7]=o("span",null,"Write a description",-1))]),_:1})]))],64)):c("",!0),t.value==="edit"?(s(),u(_,{key:1,ref_key:"codeInputRef",ref:r,class:"h-full flex-1 border px-0.5 py-0",envVariables:a.envVariables,environment:a.environment,modelValue:a.modelValue,workspace:a.workspace,onBlur:v,"onUpdate:modelValue":e[3]||(e[3]=i=>d("update:modelValue",i))},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)])])]))}}),T=C(P,[["__scopeId","data-v-5997a667"]]),S=g({__name:"CollectionOverview",setup(x){const{activeCollection:n,activeEnvironment:d,activeEnvVariables:t,activeWorkspace:r}=z(),{collectionMutators:v}=B(),a=e=>{n.value&&v.edit(n.value.uid,"info.description",e)};return(e,i)=>(s(),u(w,null,{default:f(()=>[l(d)&&l(r)?(s(),u(T,{key:0,envVariables:l(t),environment:l(d),modelValue:l(n)?.info?.description??"",workspace:l(r),"onUpdate:modelValue":a},null,8,["envVariables","environment","modelValue","workspace"])):c("",!0)]),_:1}))}});export{S as default};