2025-08-25 15:29:50 +00:00
|
|
|
import"../chunks/DsnmJJEf.js";import{i as Ge}from"../chunks/zNh6Oe5P.js";import{p as Se,E as Je,o as Be,l as w,s as r,m as n,g as e,a as He,f as M,k as o,j as i,r as l,c as $,t as N,v as K,x as $e,u as b,z as Ve,y as Z,e as Ce,d as Re,B as We,b as Ue,h as Ye,$ as Ke,n as A,q as ee}from"../chunks/sWNKMed7.js";import{a as Le,i as B,s as Ne}from"../chunks/Ccl3fNd2.js";import{r as Pe,b as Me,d as De,c as Oe,g as be}from"../chunks/DVl4ZBgx.js";import{P as Qe}from"../chunks/qfys27k5.js";import{e as Xe,i as Ze}from"../chunks/BuuPrWMc.js";import{b as Te}from"../chunks/CLagxtgo.js";import{p as et}from"../chunks/D4Caz1gY.js";import{M as tt}from"../chunks/DN14Fk2Y.js";import{e as re}from"../chunks/BZiHL9L3.js";import{e as qe,a as he}from"../chunks/DA-798Ko.js";import{U as rt}from"../chunks/XzGG0o_q.js";import{D as at}from"../chunks/kJjQhR0J.js";import{t as te}from"../chunks/BZUCTtPY.js";import{B as st,k as ye,l as ot}from"../chunks/cjRLNre3.js";import{D as nt,A as Ae,G as it,a as lt}from"../chunks/DCYYzf48.js";import{E as dt}from"../chunks/DAWfW-VQ.js";import{E as ct}from"../chunks/CARsAFuo.js";import{S as ut}from"../chunks/BJXodF8n.js";var pt=M('<div class="mb-4 rounded-md bg-red-50 dark:bg-red-900 p-4"><p class="text-sm font-medium text-red-800 dark:text-red-200"> </p></div>'),mt=M('<div class="text-center py-4"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto"></div> <p class="mt-2 text-sm text-gray-500 dark:text-gray-400">Loading...</p></div>'),ft=M("<option> </option>"),gt=M('<p class="mt-1 text-xs text-gray-600 dark:text-gray-400">Loading credentials...</p>'),vt=M('<p class="mt-1 text-xs text-red-600 dark:text-red-400">No GitHub credentials found. Please create GitHub credentials first.</p>'),bt=M(`<form class="space-y-4"><div><label for="name" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Enterprise Name</label> <input id="name" type="text" required class="block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white sm:text-sm" placeholder="Enter enterprise name"/></div> <div><label for="credentials" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">GitHub Credentials</label> <select id="credentials" required class="block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white sm:text-sm"><option>Select GitHub credentials...</option><!></select> <!></div> <div><div class="flex items-center mb-1"><label for="pool_balancer_type" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Pool Balancer Type</label> <div class="ml-2 relative group"><svg class="w-4 h-4 text-gray-400 cursor-help" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <div class="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-64 p-3 bg-gray-900 text-white text-xs rounded-lg shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50"><div class="mb-2"><strong>Round Robin:</strong> Cycles through pools in turn. Job 1 → Pool 1, Job 2 → Pool 2, etc.</div> <div><strong>Pack:</strong> Uses first available pool until full, then moves to next pool.</div> <div class="absolute top-full left-1/2 transform -translate-x-1/2 border-4 border-transparent border-t-gray-900"></div></div></div></div> <select id="pool_balancer_type" class="block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white sm:text-sm"><option>Round Robin</option><option>Pack</option></select></div> <div><label for="webhook_secret" class="block text-sm font-medium text-gray
|