karin-plugin-kkk 2.36.0 → 2.36.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.
- package/CHANGELOG.md +14 -0
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/amagi.d.mts +6 -0
- package/lib/core_chunk/main.js +331 -127
- package/lib/core_chunk/vendor.js +1 -1
- package/lib/karin-plugin-kkk.css +11 -0
- package/lib/web/assets/CronEditor-DLELr4UG.js +1 -0
- package/lib/web/assets/DesktopLayout-DMqLKe0d.js +1 -0
- package/lib/web/assets/{MobileLayout-DfXVuyA-.js → MobileLayout-Dq6Ng8rW.js} +1 -1
- package/lib/web/assets/ThemeSwitch-C9X8kWTm.js +1 -0
- package/lib/web/assets/{index-3mh4kVq1.css → index-2paV9T2e.css} +1 -1
- package/lib/web/assets/{index-zS6iiHmV.js → index-DhbVGvm8.js} +12 -12
- package/lib/web/assets/separator-D6lAHrvZ.js +1 -0
- package/lib/web/index.html +2 -2
- package/package.json +2 -2
- package/lib/web/assets/CronEditor-KiEwYMrF.js +0 -1
- package/lib/web/assets/DesktopLayout-Cdla4l6u.js +0 -1
- package/lib/web/assets/ThemeSwitch-DcAlzu8R.js +0 -1
package/lib/core_chunk/vendor.js
CHANGED
|
@@ -126905,4 +126905,4 @@ function createProxyMiddleware(options) {
|
|
|
126905
126905
|
}
|
|
126906
126906
|
Debug.extend("response-interceptor");
|
|
126907
126907
|
//#endregion
|
|
126908
|
-
export { SiGooglephotos as $, require_jsx_runtime as $n, Puzzle as $t, RiHashtag as A, Copy as An, Upload as At, RiThumbUpFill as B, CircleAlert as Bn, ShoppingBag as Bt, AiFillHeart as C, Eye as Cn, X as Ct, Markdown as D, Crown as Dn, UsersRound as Dt, AiOutlineVideoCamera as E, Download as En, Users as Et, RiMessage3Fill as F, CircleQuestionMark as Fn, Star as Ft, RiVideoLine as G, Box as Gn, Search as Gt, RiTrophyFill as H, ChartColumn as Hn, ShieldCheck as Ht, RiPieChart2Fill as I, CircleFadingArrowUp as In, Square as It, SiSamsung as J, BellRing as Jn, RotateCcw as Jt, SiXiaomi as K, Bot as Kn, ScanLine as Kt, RiShareForwardFill as L, CircleEllipsis as Ln, SquarePen as Lt, RiHeart3Line as M, Clock as Mn, Trash2 as Mt, RiHeartLine as N, Clock3 as Nn, Terminal as Nt, RiArrowRightFill as O, Cpu as On, User as Ot, RiLiveLine as P, Clapperboard as Pn, Sun as Pt, SiHonor as Q, clsx as Qn, QrCode as Qt, RiStarFill as R, CircleCheck as Rn, Sparkles as Rt, BiImage as S, FilePlay as Sn, Zap as St, AiFillStar as T, ExternalLink as Tn, Video as Tt, RiUserFollowLine as U, Camera as Un, Share2 as Ut, RiTiktokFill as V, Check as Vn, Shield as Vt, RiVerifiedBadgeFill as W, Calendar as Wn, Settings2 as Wt, SiOneplus as X, Chip as Xn, Radio as Xt, SiOppo as Y, ArrowDownToLine as Yn, RefreshCw as Yt, SiHuawei as Z, Button as Zn, Quote as Zt, MdSchedule as _, Hash as _n, fromUnixTime as _t, VictoryScatter as a, Moon as an,
|
|
126908
|
+
export { SiGooglephotos as $, require_jsx_runtime as $n, Puzzle as $t, RiHashtag as A, Copy as An, Upload as At, RiThumbUpFill as B, CircleAlert as Bn, ShoppingBag as Bt, AiFillHeart as C, Eye as Cn, X as Ct, Markdown as D, Crown as Dn, UsersRound as Dt, AiOutlineVideoCamera as E, Download as En, Users as Et, RiMessage3Fill as F, CircleQuestionMark as Fn, Star as Ft, RiVideoLine as G, Box as Gn, Search as Gt, RiTrophyFill as H, ChartColumn as Hn, ShieldCheck as Ht, RiPieChart2Fill as I, CircleFadingArrowUp as In, Square as It, SiSamsung as J, BellRing as Jn, RotateCcw as Jt, SiXiaomi as K, Bot as Kn, ScanLine as Kt, RiShareForwardFill as L, CircleEllipsis as Ln, SquarePen as Lt, RiHeart3Line as M, Clock as Mn, Trash2 as Mt, RiHeartLine as N, Clock3 as Nn, Terminal as Nt, RiArrowRightFill as O, Cpu as On, User as Ot, RiLiveLine as P, Clapperboard as Pn, Sun as Pt, SiHonor as Q, clsx as Qn, QrCode as Qt, RiStarFill as R, CircleCheck as Rn, Sparkles as Rt, BiImage as S, FilePlay as Sn, Zap as St, AiFillStar as T, ExternalLink as Tn, Video as Tt, RiUserFollowLine as U, Camera as Un, Share2 as Ut, RiTiktokFill as V, Check as Vn, Shield as Vt, RiVerifiedBadgeFill as W, Calendar as Wn, Settings2 as Wt, SiOneplus as X, Chip as Xn, Radio as Xt, SiOppo as Y, ArrowDownToLine as Yn, RefreshCw as Yt, SiHuawei as Z, Button as Zn, Quote as Zt, MdSchedule as _, Hash as _n, fromUnixTime as _t, VictoryScatter as a, Moon as an, FingerprintGenerator as ar, r$1 as at, FaTiktok as b, Gamepad2 as bn, differenceInSeconds as bt, VictoryChart as c, Menu as cn, m as ct, VictoryTheme as d, LoaderCircle as dn, e$1 as dt, Plus as en, require_server_node as er, SiGithub as et, rehypeHighlight as f, Link as fn, a$2 as ft, MdLocationOn as g, Heart as gn, parse$1 as gt, MdLightbulbOutline as h, Image as hn, zhCN as ht, require_heic_decode as i, Music as in, CryptoConfig as ir, o as it, RiHeart3Fill as j, Code as jn, TriangleAlert as jt, RiGroupLine as k, CornerDownLeft as kn, UserPlus as kt, VictoryAxis as l, Maximize as ln, a$1 as lt, MdInfoOutline as m, Info$1 as mn, c$2 as mt, require_lib as n, Pencil as nn, require_protobufjs as nr, SiApple as nt, VictoryPie as o, Monitor as on, Xhshow as or, o$1 as ot, MdFitScreen as p, LayoutTemplate as pn, o$3 as pt, SiVivo as q, Bookmark as qn, Save as qt, require_jpeg_js as r, Palette as rn, Chalk as rr, SiAnthropic as rt, VictoryLine as s, MessageCircle as sn, zod_default as sr, o$2 as st, createProxyMiddleware as t, Play as tn, require_react as tr, SiBilibili as tt, VictoryLabel as u, MapPin as un, n as ut, FaCommentDots as v, GitBranch as vn, formatDistanceToNow as vt, AiFillPushpin as w, EyeOff as wn, WandSparkles as wt, FaUserGroup as x, FileText as xn, twMerge as xt, FaMusic as y, Gift as yn, format$1 as yt, RiStarLine as z, CircleCheckBig as zn, Smartphone as zt };
|
package/lib/karin-plugin-kkk.css
CHANGED
|
@@ -13306,6 +13306,10 @@
|
|
|
13306
13306
|
margin-right: calc(var(--spacing) * 8);
|
|
13307
13307
|
}
|
|
13308
13308
|
|
|
13309
|
+
.mr-15 {
|
|
13310
|
+
margin-right: calc(var(--spacing) * 15);
|
|
13311
|
+
}
|
|
13312
|
+
|
|
13309
13313
|
.mr-18 {
|
|
13310
13314
|
margin-right: calc(var(--spacing) * 18);
|
|
13311
13315
|
}
|
|
@@ -14500,6 +14504,13 @@
|
|
|
14500
14504
|
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
14501
14505
|
}
|
|
14502
14506
|
|
|
14507
|
+
.scale-200 {
|
|
14508
|
+
--tw-scale-x: 200%;
|
|
14509
|
+
--tw-scale-y: 200%;
|
|
14510
|
+
--tw-scale-z: 200%;
|
|
14511
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
14512
|
+
}
|
|
14513
|
+
|
|
14503
14514
|
.scale-\[2\.5\] {
|
|
14504
14515
|
scale: 2.5;
|
|
14505
14516
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./separator-D6lAHrvZ.js";import{$ as t,A as n,At as r,B as i,Ct as a,D as o,Dt as s,E as c,Et as l,Ft as u,G as d,H as f,It as p,J as m,K as h,L as g,Lt as _,M as v,Mt as y,N as b,Nt as x,O as S,Ot as C,P as w,Pt as T,Q as E,R as D,Rt as O,S as k,St as A,Tt as j,U as M,V as ee,W as N,X as te,Y as P,Z as ne,_t as F,at as I,b as L,bt as re,c as R,ct as ie,d as z,dt as ae,et as oe,f as se,ft as ce,g as B,gt as le,h as V,ht as ue,it as de,j as fe,jt as pe,k as me,kt as he,l as ge,lt as _e,mt as ve,nt as ye,ot as be,p as xe,q as Se,r as Ce,rt as we,st as Te,tt as Ee,u as H,ut as De,v as U,vt as W,w as G,wt as Oe,x as K,xt as q,y as ke,yt as Ae,z as je}from"./index-DhbVGvm8.js";var Me=ve({base:`header`}),Ne=ve({defaultVariants:{fullWidth:!1,variant:`primary`},slots:{base:`number-field`,decrementButton:`number-field__decrement-button`,group:`number-field__group`,incrementButton:`number-field__increment-button`,input:`number-field__input`},variants:{fullWidth:{false:{},true:{base:`number-field--full-width`,group:`number-field__group--full-width`}},variant:{primary:{base:`number-field--primary`},secondary:{base:`number-field--secondary`}}}}),Pe=ve({slots:{base:`radio`,content:`radio__content`,control:`radio__control`,indicator:`radio__indicator`}}),Fe=ve({base:`radio-group`,defaultVariants:{variant:`primary`},variants:{variant:{primary:`radio-group--primary`,secondary:`radio-group--secondary`}}}),Ie=new Map,Le=!1;try{Le=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var Re=!1;try{Re=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}var ze={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},Be=class{constructor(e,t={}){this.numberFormatter=Ve(e,t),this.options=t}format(e){let t=``;if(t=!Le&&this.options.signDisplay!=null?He(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!Re){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=ze[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Le&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Re&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}};function Ve(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!Re){let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!ze[e]?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(Ie.has(r))return Ie.get(r);let i=new Intl.NumberFormat(e,t);return Ie.set(r,i),i}function He(e,t,n){if(t===`auto`)return e.format(n);if(t===`never`)return e.format(Math.abs(n));{let r=!1;if(t===`always`?r=n>0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}else return e.format(n)}}var Ue=RegExp(`^.*\\(.*\\).*$`),We=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],Ge=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return qe(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return qe(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return qe(this.locale,this.options,e).options.numberingSystem}},Ke=new Map;function qe(e,t,n){let r=Je(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of We)if(i!==r.options.numberingSystem){let r=Je(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function Je(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``),r=Ke.get(n);return r||(r=new Ye(e,t),Ke.set(n,r)),r}var Ye=class{constructor(e,t={}){this.locale=e,t.roundingIncrement!==1&&t.roundingIncrement!=null&&(t.maximumFractionDigits==null&&t.minimumFractionDigits==null?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):t.maximumFractionDigits==null?t.maximumFractionDigits=t.minimumFractionDigits:t.minimumFractionDigits??=t.maximumFractionDigits),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=Qe(e,this.formatter,this.options,t),this.options.style===`percent`&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new Ge(this.locale,e).parse(new Be(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&Ue.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=$e(e,`,`,this.symbols.decimal),e=$e(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=$e(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=$e(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=$e(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=$e(e,` `,this.symbols.group),e=$e(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=$e(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},Xe=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),Ze=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Qe(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=Ze.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:Ze[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;!u&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!Xe.has(e.type)).map(e=>et(e.value)),m=s.flatMap(e=>e.filter(e=>!Xe.has(e.type)).map(e=>et(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function $e(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function et(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var J=O(_(),1);function tt(e={}){let{locale:t}=de();return(0,J.useMemo)(()=>new Be(t,e),[t,e])}function nt(){return typeof window<`u`&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges==`function`}function rt(e,t,n){let r=q(e=>{let r=n.current;if(!r)return;let i=null;switch(e.inputType){case`historyUndo`:case`historyRedo`:return;case`insertLineBreak`:return;case`deleteContent`:case`deleteByCut`:case`deleteByDrag`:i=r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentForward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd+1):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteContentBackward`:i=r.selectionEnd===r.selectionStart?r.value.slice(0,r.selectionStart-1)+r.value.slice(r.selectionStart):r.value.slice(0,r.selectionStart)+r.value.slice(r.selectionEnd);break;case`deleteSoftLineBackward`:case`deleteHardLineBackward`:i=r.value.slice(r.selectionStart);break;default:e.data!=null&&(i=r.value.slice(0,r.selectionStart)+e.data+r.value.slice(r.selectionEnd));break}(i==null||!t.validate(i))&&e.preventDefault()});(0,J.useEffect)(()=>{if(!nt()||!n.current)return;let e=n.current;return e.addEventListener(`beforeinput`,r,!1),()=>{e.removeEventListener(`beforeinput`,r,!1)}},[n]);let i=nt()?null:e=>{let n=C(e).value.slice(0,C(e).selectionStart)+e.data+C(e).value.slice(C(e).selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:a,inputProps:o,descriptionProps:s,errorMessageProps:c,...l}=ke(e,n),u=(0,J.useRef)(null);return{inputProps:j(o,{onBeforeInput:i,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;u.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:i}=u.current;n.current.value=e,n.current.setSelectionRange(r,i),t.setInputValue(e)}}}),labelProps:a,descriptionProps:s,errorMessageProps:c,...l}}function it(e,t){let{onScroll:n,isDisabled:r}=e,i=(0,J.useCallback)(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);re(t,`wheel`,r?void 0:i)}var at={};at={Empty:`فارغ`};var ot={};ot={Empty:`Изпразни`};var st={};st={Empty:`Prázdné`};var ct={};ct={Empty:`Tom`};var lt={};lt={Empty:`Leer`};var ut={};ut={Empty:`Άδειο`};var dt={};dt={Empty:`Empty`};var ft={};ft={Empty:`Vacío`};var pt={};pt={Empty:`Tühjenda`};var mt={};mt={Empty:`Tyhjä`};var ht={};ht={Empty:`Vide`};var gt={};gt={Empty:`ריק`};var _t={};_t={Empty:`Prazno`};var vt={};vt={Empty:`Üres`};var yt={};yt={Empty:`Vuoto`};var bt={};bt={Empty:`空`};var xt={};xt={Empty:`비어 있음`};var St={};St={Empty:`Tuščias`};var Ct={};Ct={Empty:`Tukšs`};var wt={};wt={Empty:`Tom`};var Tt={};Tt={Empty:`Leeg`};var Et={};Et={Empty:`Pusty`};var Dt={};Dt={Empty:`Vazio`};var Ot={};Ot={Empty:`Vazio`};var kt={};kt={Empty:`Gol`};var At={};At={Empty:`Не заполнено`};var jt={};jt={Empty:`Prázdne`};var Mt={};Mt={Empty:`Prazen`};var Nt={};Nt={Empty:`Prazno`};var Pt={};Pt={Empty:`Tomt`};var Ft={};Ft={Empty:`Boş`};var It={};It={Empty:`Пусто`};var Lt={};Lt={Empty:`空`};var Rt={};Rt={Empty:`空白`};var zt={};zt={"ar-AE":at,"bg-BG":ot,"cs-CZ":st,"da-DK":ct,"de-DE":lt,"el-GR":ut,"en-US":dt,"es-ES":ft,"et-EE":pt,"fi-FI":mt,"fr-FR":ht,"he-IL":gt,"hr-HR":_t,"hu-HU":vt,"it-IT":yt,"ja-JP":bt,"ko-KR":xt,"lt-LT":St,"lv-LV":Ct,"nb-NO":wt,"nl-NL":Tt,"pl-PL":Et,"pt-BR":Dt,"pt-PT":Ot,"ro-RO":kt,"ru-RU":At,"sk-SK":jt,"sl-SI":Mt,"sr-SP":Nt,"sv-SE":Pt,"tr-TR":Ft,"uk-UA":It,"zh-CN":Lt,"zh-TW":Rt};function Bt(e){return e&&e.__esModule?e.default:e}var Vt=()=>{};function Ht(e){let t=(0,J.useRef)(void 0),{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:s,isReadOnly:c,isRequired:l,onIncrement:u,onIncrementPage:d,onDecrement:f,onDecrementPage:p,onDecrementToMin:m,onIncrementToMax:h}=e,g=ee(Bt(zt),`@react-aria/spinbutton`),_=(0,J.useRef)(!1),v=(0,J.useCallback)(()=>{clearTimeout(t.current),_.current=!1},[]),y=q(()=>{v()});(0,J.useEffect)(()=>()=>y(),[]);let b=e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c||e.nativeEvent.isComposing))switch(e.key){case`PageUp`:if(d){e.preventDefault(),d?.();break}case`ArrowUp`:case`Up`:u&&(e.preventDefault(),u?.());break;case`PageDown`:if(p){e.preventDefault(),p?.();break}case`ArrowDown`:case`Down`:f&&(e.preventDefault(),f?.());break;case`Home`:m&&(e.preventDefault(),m?.());break;case`End`:h&&(e.preventDefault(),h?.());break}},x=(0,J.useRef)(!1),S=()=>{x.current=!0},C=()=>{x.current=!1},w=r===``?g.format(`Empty`):(r||`${n}`).replace(`-`,`−`);(0,J.useEffect)(()=>{x.current&&(we(`assertive`),ye(w,`assertive`))},[w]);let T=(0,J.useCallback)(()=>{v()},[v]),E=q(u??Vt),D=q(f??Vt),O=q(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&(E(),k(60))}),k=q(e=>{y(),_.current=!0,t.current=window.setTimeout(O,e)}),A=q(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&(D(),j(60))}),j=q(e=>{y(),_.current=!0,t.current=window.setTimeout(A,e)}),M=e=>{e.preventDefault()},{addGlobalListener:N,removeAllGlobalListeners:te}=a(),P=(0,J.useRef)(!1),[ne,F]=(0,J.useState)(null);(0,J.useEffect)(()=>{ne===`touch`?k(600):ne?k(400):ne||y()},[ne]);let[I,L]=(0,J.useState)(null);return(0,J.useEffect)(()=>{I===`touch`?j(600):I?j(400):I||y()},[I]),{spinButtonProps:{role:`spinbutton`,"aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"aria-required":l||void 0,onKeyDown:b,onFocus:S,onBlur:C},incrementButtonProps:{onPressStart:e=>{v(),e.pointerType===`touch`?(N(window,`pointercancel`,T,{capture:!0}),P.current=!1,F(`touch`)):(u?.(),F(`mouse`)),N(window,`contextmenu`,M)},onPressUp:e=>{v(),e.pointerType===`touch`&&(P.current=!0),te(),F(null)},onPressEnd:e=>{v(),e.pointerType===`touch`&&!_.current&&P.current&&u?.(),P.current=!1,F(null)},onFocus:S,onBlur:C},decrementButtonProps:{onPressStart:e=>{v(),e.pointerType===`touch`?(N(window,`pointercancel`,T,{capture:!0}),P.current=!1,L(`touch`)):(f?.(),L(`mouse`))},onPressUp:e=>{v(),e.pointerType===`touch`&&(P.current=!0),te(),L(null)},onPressEnd:e=>{v(),e.pointerType===`touch`&&!_.current&&P.current&&f?.(),P.current=!1,L(null)},onFocus:S,onBlur:C}}}var Ut={};Ut={decrease:e=>`\u{62E}\u{641}\u{636} ${e.fieldLabel}`,increase:e=>`\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,numberField:`حقل رقمي`};var Wt={};Wt={decrease:e=>`\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,numberField:`Номер на полето`};var Gt={};Gt={decrease:e=>`Sn\xed\u{17E}it ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}it ${e.fieldLabel}`,numberField:`Číselné pole`};var Kt={};Kt={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xd8g ${e.fieldLabel}`,numberField:`Talfelt`};var qt={};qt={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xf6hen`,numberField:`Nummernfeld`};var Jt={};Jt={decrease:e=>`\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,increase:e=>`\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,numberField:`Πεδίο αριθμού`};var Yt={};Yt={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:`Number field`};var Xt={};Xt={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var Zt={};Zt={decrease:e=>`V\xe4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:`Numbri väli`};var Qt={};Qt={decrease:e=>`V\xe4henn\xe4 ${e.fieldLabel}`,increase:e=>`Lis\xe4\xe4 ${e.fieldLabel}`,numberField:`Numerokenttä`};var $t={};$t={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:`Champ de nombre`};var en={};en={decrease:e=>`\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,increase:e=>`\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,numberField:`שדה מספר`};var tn={};tn={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var nn={};nn={decrease:e=>`${e.fieldLabel} cs\xf6kkent\xe9se`,increase:e=>`${e.fieldLabel} n\xf6vel\xe9se`,numberField:`Számmező`};var rn={};rn={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:`Campo numero`};var an={};an={decrease:e=>`${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,increase:e=>`${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,numberField:`数値フィールド`};var on={};on={decrease:e=>`${e.fieldLabel} \u{AC10}\u{C18C}`,increase:e=>`${e.fieldLabel} \u{C99D}\u{AC00}`,numberField:`번호 필드`};var sn={};sn={decrease:e=>`Suma\u{17E}inti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:`Numerio laukas`};var cn={};cn={decrease:e=>`Samazin\u{101}\u{161}ana ${e.fieldLabel}`,increase:e=>`Palielin\u{101}\u{161}ana ${e.fieldLabel}`,numberField:`Skaitļu lauks`};var ln={};ln={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xd8k ${e.fieldLabel}`,numberField:`Tallfelt`};var un={};un={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:`Getalveld`};var dn={};dn={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u{119}ksz ${e.fieldLabel}`,numberField:`Pole numeru`};var fn={};fn={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo de número`};var pn={};pn={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:`Campo numérico`};var mn={};mn={decrease:e=>`Sc\u{103}dere ${e.fieldLabel}`,increase:e=>`Cre\u{219}tere ${e.fieldLabel}`,numberField:`Câmp numeric`};var hn={};hn={decrease:e=>`\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,increase:e=>`\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,numberField:`Числовое поле`};var gn={};gn={decrease:e=>`Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,increase:e=>`Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,numberField:`Číselné pole`};var _n={};_n={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u{10D}ajte ${e.fieldLabel}`,numberField:`Številčno polje`};var vn={};vn={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u{107}aj ${e.fieldLabel}`,numberField:`Polje broja`};var yn={};yn={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xd6ka ${e.fieldLabel}`,numberField:`Nummerfält`};var bn={};bn={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u{131}r`,numberField:`Sayı alanı`};var xn={};xn={decrease:e=>`\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,increase:e=>`\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,numberField:`Поле номера`};var Sn={};Sn={decrease:e=>`\u{964D}\u{4F4E} ${e.fieldLabel}`,increase:e=>`\u{63D0}\u{9AD8} ${e.fieldLabel}`,numberField:`数字字段`};var Cn={};Cn={decrease:e=>`\u{7E2E}\u{5C0F} ${e.fieldLabel}`,increase:e=>`\u{653E}\u{5927} ${e.fieldLabel}`,numberField:`數字欄位`};var wn={};wn={"ar-AE":Ut,"bg-BG":Wt,"cs-CZ":Gt,"da-DK":Kt,"de-DE":qt,"el-GR":Jt,"en-US":Yt,"es-ES":Xt,"et-EE":Zt,"fi-FI":Qt,"fr-FR":$t,"he-IL":en,"hr-HR":tn,"hu-HU":nn,"it-IT":rn,"ja-JP":an,"ko-KR":on,"lt-LT":sn,"lv-LV":cn,"nb-NO":ln,"nl-NL":un,"pl-PL":dn,"pt-BR":fn,"pt-PT":pn,"ro-RO":mn,"ru-RU":hn,"sk-SK":gn,"sl-SI":_n,"sr-SP":vn,"sv-SE":yn,"tr-TR":bn,"uk-UA":xn,"zh-CN":Sn,"zh-TW":Cn};var Tn=O(p(),1);function En(e){return e&&e.__esModule?e.default:e}function Dn(e,t,n){let{id:i,decrementAriaLabel:a,incrementAriaLabel:o,isDisabled:c,isReadOnly:l,isRequired:d,minValue:f,maxValue:p,autoFocus:m,label:h,formatOptions:g,onBlur:_=()=>{},onFocus:v,onFocusChange:y,onKeyDown:b,onKeyUp:S,description:w,errorMessage:D,isWheelDisabled:O,...k}=e,{increment:A,incrementToMax:M,decrement:N,decrementToMin:te,numberValue:P,inputValue:ne,commit:F,commitValidation:I}=t,L=ee(En(wn),`@react-aria/numberfield`),re=(0,J.useCallback)(()=>{let e=n.current?.value??``;(0,Tn.flushSync)(()=>{F()}),n.current?.value!==e&&ye(n.current?.value??``,`assertive`)},[F,n]),R=pe(i),{focusProps:ie}=Ee({onBlur(){re()}}),z=tt(g),ae=(0,J.useMemo)(()=>z.resolvedOptions(),[z]),oe=tt({...g,currencySign:void 0}),{spinButtonProps:se,incrementButtonProps:ce,decrementButtonProps:B}=Ht({isDisabled:c,isReadOnly:l,isRequired:d,maxValue:p,minValue:f,onIncrement:A,onIncrementToMax:M,onDecrement:N,onDecrementToMin:te,value:P,textValue:(0,J.useMemo)(()=>isNaN(P)?``:oe.format(P),[oe,P])}),[le,V]=(0,J.useState)(!1),{focusWithinProps:ue}=E({isDisabled:c,onFocusWithinChange:V});it({onScroll:(0,J.useCallback)(e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?A():e.deltaY<0&&N())},[N,A]),isDisabled:O||c||l||!le},n);let de=(ae.maximumFractionDigits??0)>0,fe=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,he=`numeric`;x()?fe?he=`text`:de&&(he=`decimal`):T()&&(fe?he=`numeric`:de&&(he=`decimal`));let ge=e=>{t.validate(e)&&t.setInputValue(e)},_e=t=>{e.onPaste?.(t);let n=C(t);n&&(n.selectionEnd??-1)-(n.selectionStart??0)===n.value.length&&(t.preventDefault(),F(t.clipboardData?.getData?.(`text/plain`)?.trim()??``))},ve=Oe(e),be=(0,J.useCallback)(e=>{e.nativeEvent.isComposing||(e.key===`Enter`?((0,Tn.flushSync)(()=>{F()}),I()):e.continuePropagation())},[F,I]),{isInvalid:xe,validationErrors:Se,validationDetails:Ce}=t.displayValidation,{labelProps:we,inputProps:Te,descriptionProps:H,errorMessageProps:De}=rt({...k,...ve,name:void 0,form:void 0,label:h,autoFocus:m,isDisabled:c,isReadOnly:l,isRequired:d,validate:void 0,[me]:t,value:ne,defaultValue:`!`,autoComplete:`off`,"aria-label":e[`aria-label`]||void 0,"aria-labelledby":e[`aria-labelledby`]||void 0,id:R,type:`text`,inputMode:he,onChange:ge,onBlur:_,onFocus:v,onFocusChange:y,onKeyDown:(0,J.useMemo)(()=>r(be,b),[be,b]),onKeyUp:S,onPaste:_e,description:w,errorMessage:D},t,n);Ae(n,t.defaultNumberValue,t.setNumberValue),On(t,e.validationBehavior,e.commitBehavior,n,t.minValue,t.maxValue,e.step,t.numberValue);let U=j(se,ie,Te,{role:null,"aria-roledescription":u()?null:L.format(`numberField`),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:`off`,spellCheck:`false`});e.validationBehavior===`native`&&(U[`aria-required`]=void 0);let W=e=>{s()!==n.current&&(e.pointerType===`mouse`?n.current?.focus():e.target.focus())},G=e[`aria-label`]||(typeof e.label==`string`?e.label:``),K;G||(K=e.label==null?e[`aria-labelledby`]:we.id);let q=pe(),ke=pe(),je=j(ce,{"aria-label":o||L.format(`increase`,{fieldLabel:G}).trim(),id:K&&!o?q:null,"aria-labelledby":K&&!o?`${q} ${K}`:null,"aria-controls":R,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:W}),Me=j(B,{"aria-label":a||L.format(`decrease`,{fieldLabel:G}).trim(),id:K&&!a?ke:null,"aria-labelledby":K&&!a?`${ke} ${K}`:null,"aria-controls":R,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:W});return{groupProps:{...ue,role:`group`,"aria-disabled":c,"aria-invalid":xe?`true`:void 0},labelProps:we,inputProps:U,incrementButtonProps:je,decrementButtonProps:Me,errorMessageProps:De,descriptionProps:H,isInvalid:xe,validationErrors:Se,validationDetails:Ce}}var Y=null;function On(e,t,n,r,i,a,o,s){y(()=>{let c=r.current;if(n!==`validate`||e.realtimeValidation.isInvalid||!c||c.disabled||(!Y&&typeof document<`u`&&(Y=document.createElement(`input`),Y.type=`number`),!Y))return;Y.min=i!=null&&!isNaN(i)?String(i):``,Y.max=a!=null&&!isNaN(a)?String(a):``,Y.step=o!=null&&!isNaN(o)?String(o):``,Y.value=s!=null&&!isNaN(s)?String(s):``;let l=c.validity.valid&&Y.validity.valid,u=c.validationMessage||Y.validationMessage,d={isInvalid:!l,validationErrors:u?[u]:[],validationDetails:{badInput:c.validity.badInput,customError:c.validity.customError,patternMismatch:c.validity.patternMismatch,rangeOverflow:Y.validity.rangeOverflow,rangeUnderflow:Y.validity.rangeUnderflow,stepMismatch:Y.validity.stepMismatch,tooLong:c.validity.tooLong,tooShort:c.validity.tooShort,typeMismatch:c.validity.typeMismatch,valueMissing:c.validity.valueMissing,valid:l}};e.updateValidation(d),t===`native`&&!Y.validity.valid&&c.setCustomValidity(Y.validationMessage)})}function kn(e){let{minValue:t,maxValue:r,step:i,formatOptions:a,value:o,defaultValue:s=NaN,onChange:c,locale:l,isDisabled:u,isReadOnly:d,commitBehavior:f=`snap`}=e;o===null&&(o=NaN);let p=(0,J.useCallback)(e=>i===void 0||isNaN(i)?F(e,t,r):W(e,t,r,i),[i,t,r]);o!==void 0&&!isNaN(o)&&f===`snap`&&(o=p(o)),!isNaN(s)&&f===`snap`&&(s=p(s));let[m,h]=Se(o,isNaN(s)?NaN:s,c),[g]=(0,J.useState)(m),[_,v]=(0,J.useState)(()=>isNaN(m)?``:new Be(l,a).format(m)),y=(0,J.useMemo)(()=>new Ge(l,a),[l,a]),b=(0,J.useMemo)(()=>y.getNumberingSystem(_),[y,_]),x=(0,J.useMemo)(()=>new Be(l,{...a,numberingSystem:b}),[l,a,b]),S=(0,J.useMemo)(()=>x.resolvedOptions(),[x]),C=(0,J.useCallback)(e=>isNaN(e)||e===null?``:x.format(e),[x]),w=n({...e,value:m}),T=i!==void 0&&!isNaN(i)?i:1;S.style===`percent`&&(i===void 0||isNaN(i))&&(T=.01);let[E,D]=(0,J.useState)(m),[O,k]=(0,J.useState)(l),[A,j]=(0,J.useState)(a);(!Object.is(m,E)||l!==O||!An(a,A))&&(v(C(m)),D(m),k(l),j(a));let M=(0,J.useMemo)(()=>y.parse(_),[y,_]),ee=e=>{let t=e===void 0?_:e,n=M;if(e!==void 0&&(n=y.parse(t)),!t.length){h(NaN),v(o===void 0?``:C(m));return}if(isNaN(n)){v(C(m));return}let r=f===`snap`?p(n):n;r=y.parse(C(r));let i=r!==m;h(r),v(C(o===void 0?r:m)),i&&w.commitValidation()},N=(e,n=0)=>{let i=M;if(isNaN(i))return W(isNaN(n)?0:n,t,r,T);{let n=W(i,t,r,T);return e===`+`&&n>i||e===`-`&&n<i?n:W(jn(e,i,T),t,r,T)}},te=()=>{let e=N(`+`,t);e===m&&v(C(e)),h(e),w.commitValidation()},P=()=>{let e=N(`-`,r);e===m&&v(C(e)),h(e),w.commitValidation()},ne=()=>{r!=null&&(h(W(r,t,r,T)),w.commitValidation())},I=()=>{t!=null&&(h(t),w.commitValidation())},L=(0,J.useMemo)(()=>!u&&!d&&(isNaN(M)||r===void 0||isNaN(r)||W(M,t,r,T)>M||jn(`+`,M,T)<=r),[u,d,t,r,T,M]),re=(0,J.useMemo)(()=>!u&&!d&&(isNaN(M)||t===void 0||isNaN(t)||W(M,t,r,T)<M||jn(`-`,M,T)>=t),[u,d,t,r,T,M]),R=e=>y.isValidPartialNumber(e,t,r);return{...w,validate:R,increment:te,incrementToMax:ne,decrement:P,decrementToMin:I,canIncrement:L,canDecrement:re,minValue:t,maxValue:r,numberValue:M,defaultNumberValue:isNaN(s)?g:s,setNumberValue:h,setInputValue:v,inputValue:_,commit:ee}}function An(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}function jn(e,t,n){let r=e===`+`?t+n:t-n;if(t%1!=0||n%1!=0){let i=t.toString().split(`.`),a=n.toString().split(`.`),o=i[1]&&i[1].length||0,s=a[1]&&a[1].length||0,c=10**Math.max(o,s);t=Math.round(t*c),n=Math.round(n*c),r=e===`+`?t+n:t-n,r/=c}return r}var Mn=(0,J.createContext)(null),Nn=(0,J.createContext)(null),Pn=(0,J.forwardRef)(function(e,t){[e,t]=Te(e,t,Mn);let{validationBehavior:n}=ce(S)||{},r=e.validationBehavior??n??`native`,{locale:i}=de(),a=kn({...e,locale:i,validationBehavior:r}),o=(0,J.useRef)(null),[s,c]=_e(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:l,groupProps:u,inputProps:d,incrementButtonProps:f,decrementButtonProps:p,descriptionProps:h,errorMessageProps:g,..._}=Dn({...ae(e),label:c,validationBehavior:r},a,o),v=ie({...e,values:{state:a,isDisabled:e.isDisabled||!1,isInvalid:_.isInvalid||!1,isRequired:e.isRequired||!1,isReadOnly:e.isReadOnly||!1},defaultClassName:`react-aria-NumberField`}),y=Oe(e,{global:!0});return delete y.id,J.createElement(be,{values:[[Nn,a],[b,u],[L,{...d,ref:o}],[I,{...l,ref:s}],[m,{slots:{increment:f,decrement:p}}],[w,{slots:{description:h,errorMessage:g}}],[fe,_]]},J.createElement(De.div,{...y,...v,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0,"data-invalid":_.isInvalid||void 0}),e.name&&J.createElement(`input`,{type:`hidden`,name:e.name,form:e.form,value:isNaN(a.numberValue)?``:a.numberValue,disabled:e.isDisabled||void 0}))}),Fn=new WeakMap;function In(e,n,r){let{value:i,children:a,"aria-label":o,"aria-labelledby":s,onPressStart:l,onPressEnd:u,onPressChange:d,onPress:f,onPressUp:p,onClick:m}=e,h=e.isDisabled||n.isDisabled,g=n.selectedValue===i,_=e=>{e.stopPropagation(),n.setSelectedValue(i)},{pressProps:v,isPressed:y}=t({onPressStart:l,onPressEnd:u,onPressChange:d,onPress:f,onPressUp:p,onClick:m,isDisabled:h}),{pressProps:b,isPressed:x}=t({onPressStart:l,onPressEnd:u,onPressChange:d,onPressUp:p,onClick:m,isDisabled:h,onPress(e){f?.(e),n.setSelectedValue(i),r.current?.focus()}}),{focusableProps:S}=oe(j(e,{onFocus:()=>n.setLastFocusedValue(i)}),r),C=j(v,S),w=Oe(e,{labelable:!0}),T=-1;n.selectedValue==null?(n.lastFocusedValue===i||n.lastFocusedValue==null)&&(T=0):n.selectedValue===i&&(T=0),h&&(T=void 0);let{name:E,form:D,descriptionId:O,errorMessageId:A,validationBehavior:M}=Fn.get(n);Ae(r,n.defaultSelectedValue,n.setSelectedValue),c({validationBehavior:M},n,r);let ee=k();return{labelProps:j(b,(0,J.useMemo)(()=>({onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault()}),[])),inputProps:j(w,{...C,type:`radio`,name:E,form:D,tabIndex:T,disabled:h,required:n.isRequired&&M===`native`,checked:g,value:i,onChange:_,"aria-describedby":[e[`aria-describedby`],ee.id,n.isInvalid?A:null,O].filter(Boolean).join(` `)||void 0}),descriptionProps:ee,isDisabled:h,isSelected:g,isPressed:y||x}}function Ln(e,t){let{name:n,form:r,isReadOnly:i,isRequired:a,isDisabled:s,orientation:c=`vertical`,validationBehavior:l=`aria`}=e,{direction:u}=de(),{isInvalid:d,validationErrors:p,validationDetails:m}=t.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:_,errorMessageProps:v}=o({...e,labelElementType:`span`,isInvalid:t.isInvalid,errorMessage:e.errorMessage||p}),y=Oe(e,{labelable:!0}),{focusWithinProps:b}=E({onBlurWithin(n){e.onBlur?.(n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),x=e=>{let n;switch(e.key){case`ArrowRight`:n=u===`rtl`&&c!==`vertical`?`prev`:`next`;break;case`ArrowLeft`:n=u===`rtl`&&c!==`vertical`?`next`:`prev`;break;case`ArrowDown`:n=`next`;break;case`ArrowUp`:n=`prev`;break;default:return}e.preventDefault();let r=f(e.currentTarget,{from:C(e),accept:e=>e instanceof he(e).HTMLInputElement&&e.type===`radio`}),i;n===`next`?(i=r.nextNode(),i||=(r.currentNode=e.currentTarget,r.firstChild())):(i=r.previousNode(),i||=(r.currentNode=e.currentTarget,r.lastChild())),i&&(i.focus(),t.setSelectedValue(i.value))},S=pe(n);return Fn.set(t,{name:S,form:r,descriptionId:_.id,errorMessageId:v.id,validationBehavior:l}),{radioGroupProps:j(y,{role:`radiogroup`,onKeyDown:x,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e[`aria-errormessage`],"aria-readonly":i||void 0,"aria-required":a||void 0,"aria-disabled":s||void 0,"aria-orientation":c,...g,...b}),labelProps:h,descriptionProps:_,errorMessageProps:v,isInvalid:d,validationErrors:p,validationDetails:m}}var Rn=Math.round(Math.random()*1e10),zn=0;function Bn(e){let t=(0,J.useMemo)(()=>e.name||`radio-group-${Rn}-${++zn}`,[e.name]),[r,i]=Se(e.value,e.defaultValue??null,e.onChange),[a]=(0,J.useState)(r),[o,s]=(0,J.useState)(null),c=n({...e,value:r}),l=t=>{!e.isReadOnly&&!e.isDisabled&&(i(t),c.commitValidation())},u=c.displayValidation.isInvalid;return{...c,name:t,selectedValue:r,defaultSelectedValue:e.value===void 0?e.defaultValue??null:a,setSelectedValue:l,lastFocusedValue:o,setLastFocusedValue:s,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?`invalid`:null),isInvalid:u}}var Vn=(0,J.createContext)(null),Hn=(0,J.createContext)(null),Un=(0,J.createContext)(null),Wn=(0,J.forwardRef)(function(e,t){[e,t]=Te(e,t,Vn);let{validationBehavior:n}=ce(S)||{},r=e.validationBehavior??n??`native`,i=Bn({...e,validationBehavior:r}),[a,o]=_e(!e[`aria-label`]&&!e[`aria-labelledby`]),{radioGroupProps:s,labelProps:c,descriptionProps:l,errorMessageProps:u,...d}=Ln({...e,label:o,validationBehavior:r},i),f=ie({...e,values:{orientation:e.orientation||`vertical`,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:`react-aria-RadioGroup`}),p=Oe(e,{global:!0});return J.createElement(De.div,{...j(p,f,s),ref:t,slot:e.slot||void 0,"data-orientation":e.orientation||`vertical`,"data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},J.createElement(be,{values:[[Un,i],[I,{...c,ref:a,elementType:`span`}],[w,{slots:{description:l,errorMessage:u}}],[fe,d]]},J.createElement(D,null,f.children)))}),Gn=(0,J.createContext)(null),Kn=(0,J.forwardRef)(function(e,t){let{inputRef:n=null,...r}=e;[e,t]=Te(r,t,Hn);let i=J.useContext(Un),a=A((0,J.useMemo)(()=>l(n,e.inputRef===void 0?null:e.inputRef),[n,e.inputRef])),o=In({...ae(e),children:typeof e.children==`function`?!0:e.children},i,a),{descriptionProps:s,isSelected:c,isDisabled:u}=o,d=ie({...e,defaultClassName:`react-aria-RadioField`,values:{isSelected:c,isDisabled:u,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isRequired:i.isRequired}}),f=Oe(e,{global:!0});return delete f.id,delete f.onClick,J.createElement(De.div,{...j(f,d),ref:t,"data-selected":c||void 0,"data-disabled":u||void 0,"data-readonly":i.isReadOnly||void 0,"data-invalid":i.isInvalid||void 0,"data-required":i.isRequired||void 0},J.createElement(be,{values:[[g,{isSelected:c}],[Gn,{...o,inputRef:a,defaultClassName:`react-aria-RadioButton`}],[w,{slots:{description:s}}]]},d.children))}),qn=(0,J.forwardRef)(function(e,t){let{labelProps:n,inputProps:r,isSelected:a,isDisabled:o,isPressed:s,defaultClassName:c,inputRef:l}=(0,J.useContext)(Gn),u=J.useContext(Un),{isFocused:d,isFocusVisible:f,focusProps:p}=ne(),m=o||u.isReadOnly,{hoverProps:h,isHovered:g}=te({...e,isDisabled:m}),_=ie({...e,defaultClassName:c,values:{isSelected:a,isPressed:s,isHovered:g,isFocused:d,isFocusVisible:f,isDisabled:o,isReadOnly:u.isReadOnly,isInvalid:u.isInvalid,isRequired:u.isRequired}}),v=Oe(e,{global:!0});return delete v.id,delete v.onClick,J.createElement(De.label,{...j(v,n,h,_),ref:t,"data-selected":a||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-disabled":o||void 0,"data-readonly":u.isReadOnly||void 0,"data-invalid":u.isInvalid||void 0,"data-required":u.isRequired||void 0},J.createElement(i,{elementType:`span`},J.createElement(`input`,{...j(r,p),ref:l})),_.children)}),X=le(),Jn=({children:e,className:t,...n})=>(0,X.jsx)(je,{className:Me({className:t}),"data-slot":`header`,...n,children:e}),Yn=(0,J.createContext)({}),Xn=({children:e,className:t,...n})=>{let r=J.useMemo(()=>Pe(),[]);return(0,X.jsx)(Kn,{"data-slot":`radio`,...n,className:h(t,r.base()),children:t=>(0,X.jsx)(Yn,{value:{slots:r,state:t},children:typeof e==`function`?e(t):e})})};Xn.displayName=`HeroUI.Radio`;var Zn=({children:e,className:t,...n})=>{let{slots:r}=(0,J.useContext)(Yn);return(0,X.jsx)(qn,{"data-slot":`radio-content`,...n,className:h(t,r?.content()),children:e})};Zn.displayName=`HeroUI.Radio.Content`;var Qn=({children:e,className:t,...n})=>{let{slots:r}=(0,J.useContext)(Yn);return(0,X.jsx)(ue.span,{className:d(r?.control,t),"data-slot":`radio-control`,...n,children:e})};Qn.displayName=`HeroUI.Radio.Control`;var $n=({children:e,className:t,...n})=>{let{slots:r,state:i}=(0,J.useContext)(Yn),a=typeof e==`function`?e(i??{}):e;return(0,X.jsx)(ue.span,{"aria-hidden":`true`,className:d(r?.indicator,t),"data-slot":`radio-indicator`,...n,children:a})};$n.displayName=`HeroUI.Radio.Indicator`;var Z=Object.assign(Xn,{Root:Xn,Content:Zn,Control:Qn,Indicator:$n}),er=({children:e,className:t,variant:n,...r})=>{let i=J.useMemo(()=>Fe({variant:n}),[n]);return(0,X.jsx)(Wn,{"data-slot":`radio-group`,...r,className:h(t,i),children:t=>(0,X.jsx)(X.Fragment,{children:typeof e==`function`?e(t):e})})},tr=Object.assign(er,{Root:er}),nr=(0,J.createContext)({}),rr=({children:e,className:t,fullWidth:n,variant:r,...i})=>{let a=J.useMemo(()=>Ne({fullWidth:n,variant:r}),[n,r]);return(0,X.jsx)(nr,{value:{slots:a},children:(0,X.jsx)(Pn,{"data-slot":`number-field`,...i,className:h(t,a?.base()),children:t=>(0,X.jsx)(X.Fragment,{children:typeof e==`function`?e(t):e})})})},Q=Object.assign(rr,{Root:rr,Group:({children:e,className:t,...n})=>{let{slots:r}=(0,J.useContext)(nr);return(0,X.jsx)(v,{className:h(t,r?.group()),"data-slot":`number-field-group`,...n,children:t=>(0,X.jsx)(X.Fragment,{children:typeof e==`function`?e(t):e})})},Input:({className:e,...t})=>{let{slots:n}=(0,J.useContext)(nr);return(0,X.jsx)(K,{className:h(e,n?.input()),"data-slot":`number-field-input`,...t})},IncrementButton:({children:e,className:t,...n})=>{let{slots:r}=(0,J.useContext)(nr);return(0,X.jsx)(P,{className:h(t,r?.incrementButton()),"data-slot":`number-field-increment-button`,slot:`increment`,...n,children:e&&J.isValidElement(e)?e:(0,X.jsx)(N,{"data-slot":`number-field-increment-button-icon`})})},DecrementButton:({children:e,className:t,...n})=>{let{slots:r}=(0,J.useContext)(nr);return(0,X.jsx)(P,{className:h(t,r?.decrementButton()),"data-slot":`number-field-decrement-button`,slot:`decrement`,...n,children:e&&J.isValidElement(e)?e:(0,X.jsx)(M,{"data-slot":`number-field-decrement-button-icon`})})}}),ir=Ce(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),ar=`*/10 * * * *`,or=[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],sr=[{title:`高频检查`,presets:[{id:`every5`,label:`每 5 分钟`,description:`更频繁地检查推送,适合更新很密集的账号。`,value:`*/5 * * * *`},{id:`every10`,label:`每 10 分钟`,description:`推荐:全天每 10 分钟检查一次推送。`,value:`*/10 * * * *`},{id:`every15`,label:`每 15 分钟`,description:`兼顾及时性和任务频率,适合大多数推送。`,value:`*/15 * * * *`},{id:`every30`,label:`每 30 分钟`,description:`检查频率较低,适合不太活跃的推送。`,value:`*/30 * * * *`}]},{title:`按小时轮询`,presets:[{id:`hourly`,label:`每小时一次`,description:`每个整点执行,例如 00:00、01:00。`,value:`0 * * * *`},{id:`every2Hours`,label:`每 2 小时`,description:`从 0 点开始,每隔 2 小时执行一次。`,value:`0 */2 * * *`},{id:`every3Hours`,label:`每 3 小时`,description:`从 0 点开始,每隔 3 小时执行一次。`,value:`0 */3 * * *`},{id:`every6Hours`,label:`每 6 小时`,description:`每天 0 点、6 点、12 点、18 点执行。`,value:`0 */6 * * *`}]},{title:`每天固定时间`,presets:[{id:`daily8`,label:`每天上午 8 点`,description:`每天早上固定执行一次。`,value:`0 8 * * *`},{id:`daily9`,label:`每天上午 9 点`,description:`每天固定执行一次。`,value:`0 9 * * *`},{id:`daily12`,label:`每天中午 12 点`,description:`每天午间固定执行一次。`,value:`0 12 * * *`},{id:`daily18`,label:`每天晚上 6 点`,description:`每天傍晚固定执行一次。`,value:`0 18 * * *`},{id:`daily20`,label:`每天晚上 8 点`,description:`适合晚间集中推送。`,value:`0 20 * * *`},{id:`daily22`,label:`每天晚上 10 点`,description:`每天夜间固定执行一次。`,value:`0 22 * * *`}]},{title:`每天多次`,presets:[{id:`daily9And20`,label:`每天 9 点和 20 点`,description:`每天早晚各执行一次。`,value:`0 9,20 * * *`},{id:`daily9And12And18`,label:`每天 9 点、12 点、18 点`,description:`每天早中晚各执行一次。`,value:`0 9,12,18 * * *`}]},{title:`按星期`,presets:[{id:`weekday9`,label:`工作日上午 9 点`,description:`只在周一到周五执行。`,value:`0 9 * * 1,2,3,4,5`},{id:`weekday18`,label:`工作日晚上 6 点`,description:`只在周一到周五的傍晚执行。`,value:`0 18 * * 1,2,3,4,5`},{id:`weekend10`,label:`周末上午 10 点`,description:`只在周六和周日执行。`,value:`0 10 * * 0,6`},{id:`friday20`,label:`每周五晚上 8 点`,description:`每周五固定执行一次。`,value:`0 20 * * 5`}]}],cr=sr.flatMap(e=>e.presets),lr={minuteType:`interval`,minuteInterval:10,specificMinutes:[],hourType:`every`,hourInterval:1,specificHours:[],dayType:`every`,dayInterval:1,specificDays:[],weekType:`every`,specificWeeks:[]},ur=e=>String(e).padStart(2,`0`),dr=(e,t,n,r)=>Number.isFinite(e)?Math.min(n,Math.max(t,Math.trunc(e))):r,$=(e,t,n)=>Array.from(new Set(e.filter(e=>Number.isInteger(e)&&e>=t&&e<=n))).sort((e,t)=>e-t),fr=(e,t,n)=>$(e.split(`,`).map(e=>Number(e.trim())).filter(e=>Number.isFinite(e)),t,n),pr=e=>$(e.split(`,`).map(e=>{let t=Number(e.trim());return t===7?0:t}).filter(e=>Number.isFinite(e)),0,6),mr=(e,t,n,r)=>{if(e===`*`||e===`*/1`)return{type:`every`,interval:r,specific:[]};let i=e.match(/^\*\/(\d+)$/);if(i){let e=dr(Number(i[1]),1,n,r);return e<=1?{type:`every`,interval:r,specific:[]}:{type:`interval`,interval:e,specific:[]}}let a=fr(e,t,n);return a.length>0?{type:`specific`,interval:r,specific:a}:{type:`every`,interval:r,specific:[]}},hr=e=>{let t=(e||ar).trim().split(/\s+/);if(t.length!==5)return{...lr};let[n,r,i,,a]=t,o=mr(n,0,59,10),s=mr(r,0,23,1),c=mr(i,1,31,1),l=a===`*`?[]:pr(a),u=l.length>0;return{minuteType:o.type,minuteInterval:o.interval,specificMinutes:o.specific,hourType:s.type,hourInterval:s.interval,specificHours:s.specific,dayType:u?`every`:c.type,dayInterval:u?1:c.interval,specificDays:u?[]:c.specific,weekType:u?`specific`:`every`,specificWeeks:l}},gr=e=>{let t=`*`,n=`*`,r=`*`,i=`*`;switch(e.minuteType){case`every`:t=`*`;break;case`interval`:t=e.minuteInterval<=1?`*`:`*/${e.minuteInterval}`;break;case`specific`:t=e.specificMinutes.length>0?$(e.specificMinutes,0,59).join(`,`):`0`;break}switch(e.hourType){case`every`:n=`*`;break;case`interval`:n=e.hourInterval<=1?`*`:`*/${e.hourInterval}`;break;case`specific`:n=e.specificHours.length>0?$(e.specificHours,0,23).join(`,`):`0`;break}switch(e.dayType){case`every`:r=`*`;break;case`interval`:r=e.dayInterval<=1?`*`:`*/${e.dayInterval}`;break;case`specific`:r=e.specificDays.length>0?$(e.specificDays,1,31).join(`,`):`1`;break}return e.weekType===`specific`&&(i=e.specificWeeks.length>0?$(e.specificWeeks,0,6).join(`,`):`*`),`${t} ${n} ${r} * ${i}`},_r=e=>{let t=(e||ar).trim().replace(/\s+/g,` `);return cr.find(e=>e.value===t)?.id??null},vr=e=>e.join(`、`),yr=e=>e.map(e=>`${e} 点`).join(`、`),br=e=>{if(e.weekType===`specific`&&e.specificWeeks.length>0){let t=$(e.specificWeeks,0,6);return t.length===5&&t.every(e=>[1,2,3,4,5].includes(e))?`工作日`:t.length===2&&t.every(e=>[0,6].includes(e))?`周末`:`每${t.map(e=>or[e]).join(`、`)}`}return e.dayType===`interval`&&e.dayInterval>1?`每隔 ${e.dayInterval} 天`:e.dayType===`specific`&&e.specificDays.length>0?`每月 ${vr($(e.specificDays,1,31))} 号`:`每天`},xr=e=>e.minuteType===`every`?`每分钟`:e.minuteType===`interval`?e.minuteInterval<=1?`每分钟`:`每 ${e.minuteInterval} 分钟`:`第 ${vr(e.specificMinutes.length>0?$(e.specificMinutes,0,59):[0])} 分钟`,Sr=e=>{let t=xr(e);if(e.hourType===`every`||e.hourType===`interval`&&e.hourInterval<=1)return e.minuteType===`specific`?`每小时的${t}`:`全天${t}`;if(e.hourType===`specific`){let n=e.specificHours.length>0?$(e.specificHours,0,23):[0];return e.minuteType===`specific`?`在 ${yr(n)} 的${t}`:`在 ${yr(n)} 内${t}`}return e.minuteType===`specific`?`从 0 点开始每隔 ${e.hourInterval} 小时,在${t}`:`从 0 点开始每隔 ${e.hourInterval} 小时,该小时内${t}`},Cr=e=>{let t=br(e),n=Sr(e);return`${t},${t===`每天`?n.replace(/^全天/,``):n}执行`},wr=e=>Cr(hr(e)),Tr=e=>{if(e.minuteType===`every`)return Array.from({length:60},(e,t)=>t);if(e.minuteType===`interval`){let t=Math.max(1,e.minuteInterval);return Array.from({length:Math.ceil(60/t)},(e,n)=>n*t).filter(e=>e<=59)}return e.specificMinutes.length>0?$(e.specificMinutes,0,59):[0]},Er=e=>{if(e.hourType===`every`)return Array.from({length:24},(e,t)=>t);if(e.hourType===`interval`){let t=Math.max(1,e.hourInterval);return Array.from({length:Math.ceil(24/t)},(e,n)=>n*t).filter(e=>e<=23)}return e.specificHours.length>0?$(e.specificHours,0,23):[0]},Dr=e=>{let t=[],n=Er(e),r=Tr(e);for(let e of n)for(let n of r)if(t.push(`${ur(e)}:${ur(n)}`),t.length>=6)return t;return t},Or=e=>{let t=Dr(e).join(`、`);return`${e.dayType===`every`&&e.weekType===`every`?`一天内示例`:`符合日期时,一天内示例`}:${t}`},kr=({value:t,onChange:n,disabled:r=!1,device:i=`desktop`})=>{let[a,o]=(0,J.useState)(!1),[s,c]=(0,J.useState)(`quick`),[l,u]=(0,J.useState)(_r(t)),[d,f]=(0,J.useState)(`interval`),[p,m]=(0,J.useState)(10),[h,g]=(0,J.useState)([]),[_,v]=(0,J.useState)(`every`),[y,b]=(0,J.useState)(1),[x,S]=(0,J.useState)([]),[C,w]=(0,J.useState)(`every`),[T,E]=(0,J.useState)(1),[D,O]=(0,J.useState)([]),[k,A]=(0,J.useState)(`every`),[j,M]=(0,J.useState)([]),ee=e=>{f(e.minuteType),m(e.minuteInterval),g(e.specificMinutes),v(e.hourType),b(e.hourInterval),S(e.specificHours),w(e.dayType),E(e.dayInterval),O(e.specificDays),A(e.weekType),M(e.specificWeeks)},N=()=>({minuteType:d,minuteInterval:p,specificMinutes:h,hourType:_,hourInterval:y,specificHours:x,dayType:C,dayInterval:T,specificDays:D,weekType:k,specificWeeks:j});(0,J.useEffect)(()=>{if(!a)return;let e=hr(t||ar);ee(e),u(_r(gr(e))),c(`quick`)},[t,a]);let te=()=>gr(N()),P=()=>Cr(N()),ne=()=>Or(N()),F=()=>Tr({...N(),minuteType:`interval`,minuteInterval:p}).slice(0,5).join(`、`),I=()=>Er({...N(),hourType:`interval`,hourInterval:y}).slice(0,5).map(e=>`${e} 点`).join(`、`),L=()=>{n(te()),o(!1)},re=e=>{ee(hr(e.value)),u(e.id)},ie=e=>{if(e===null||Array.isArray(e))return;let t=cr.find(t=>t.id===String(e));t&&re(t)},ae=e=>{u(null),f(e)},oe=e=>{u(null),v(e)},ce=e=>{u(null),w(e),e!==`every`&&(A(`every`),M([]))},le=e=>{u(null),A(e),e!==`every`&&(w(`every`),E(1),O([]))},ue=()=>(0,X.jsxs)(`div`,{className:`min-w-0 space-y-4 overflow-x-hidden`,children:[(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsxs)(`div`,{className:`mb-3 flex min-w-0 flex-col gap-1`,children:[(0,X.jsx)(z,{className:`block text-base font-semibold`,children:`常用规则`}),(0,X.jsx)(H,{className:`block leading-relaxed`,children:`不用理解 Cron,直接选一个最接近的执行时间,再看下方预览确认。`})]}),(0,X.jsxs)(R,{fullWidth:!0,variant:`secondary`,placeholder:`选择常用执行规则`,value:l??``,onChange:ie,children:[(0,X.jsx)(z,{children:`执行规则`}),(0,X.jsxs)(R.Trigger,{children:[(0,X.jsx)(R.Value,{}),(0,X.jsx)(R.Indicator,{})]}),(0,X.jsx)(R.Popover,{children:(0,X.jsx)(ge,{children:sr.map((t,n)=>(0,X.jsxs)(J.Fragment,{children:[n>0?(0,X.jsx)(e,{}):null,(0,X.jsxs)(ge.Section,{children:[(0,X.jsx)(Jn,{children:t.title}),t.presets.map(e=>(0,X.jsxs)(ge.Item,{id:e.id,textValue:e.label,children:[(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,X.jsx)(z,{children:e.label}),(0,X.jsx)(H,{children:e.description})]}),(0,X.jsx)(ge.ItemIndicator,{})]},e.id))]})]},t.title))})})]})]}),(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(`div`,{className:`flex flex-row justify-between items-center`,children:[(0,X.jsx)(z,{className:`text-base font-semibold`,children:`需要更细的规则?`}),(0,X.jsx)(G,{size:`sm`,variant:`secondary`,onPress:()=>c(`minute`),children:`转到高级`})]})})]}),de=()=>(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(tr,{"aria-label":`分钟类型`,variant:`secondary`,value:d,onChange:e=>ae(e),children:[(0,X.jsx)(z,{className:`text-base font-semibold`,children:`每个小时里,哪些分钟执行?`}),(0,X.jsx)(H,{className:`mb-3`,children:`例如选“每 10 分钟”,就是 00、10、20、30、40、50 分执行。`}),(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(Z,{value:`every`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`每分钟`]}),(0,X.jsx)(H,{children:`该小时里的每一分钟都执行,频率最高。`})]}),(0,X.jsxs)(Z,{value:`interval`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`间隔执行`]}),(0,X.jsx)(H,{children:`从第 0 分钟开始,按固定分钟数重复。`})]}),(0,X.jsxs)(Z,{value:`specific`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`指定分钟`]}),(0,X.jsx)(H,{children:`只在你点选的分钟执行,适合“整点”或“半点”。`})]})]})]})}),d===`interval`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,X.jsxs)(Q,{variant:`secondary`,minValue:1,maxValue:59,value:p,onChange:e=>{u(null),m(dr(e,1,59,10))},children:[(0,X.jsx)(z,{children:`间隔(分钟)`}),(0,X.jsxs)(Q.Group,{children:[(0,X.jsx)(Q.DecrementButton,{}),(0,X.jsx)(Q.Input,{className:`w-24`}),(0,X.jsx)(Q.IncrementButton,{})]}),(0,X.jsx)(H,{children:p<=1?`等价于每分钟执行。`:`每个小时的 ${F()} 分执行。`})]})]}),d===`specific`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`选择分钟`}),(0,X.jsx)(H,{className:`mb-3`,children:`点击选择要执行的分钟数,可多选。选 0 就是整点执行。`})]}),(0,X.jsx)(`div`,{className:`grid max-h-80 grid-cols-5 gap-2 overflow-y-auto p-1 md:grid-cols-10`,children:Array.from({length:60},(e,t)=>t).map(e=>(0,X.jsx)(G,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:h.includes(e)?`primary`:`secondary`,onPress:()=>{u(null),g(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),h.length>0&&(0,X.jsxs)(H,{className:`mt-2`,children:[`已选择 `,h.length,` 个:`,h.join(`, `)]})]})]}),fe=()=>(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(tr,{"aria-label":`小时类型`,variant:`secondary`,value:_,onChange:e=>oe(e),children:[(0,X.jsx)(z,{className:`text-base font-semibold`,children:`一天里,哪些小时允许执行?`}),(0,X.jsx)(H,{className:`mb-3`,children:`如果选择“全部小时”,分钟页的规则会全天生效。`}),(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(Z,{value:`every`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`全部小时`]}),(0,X.jsx)(H,{children:`不限制小时。例如分钟为每 10 分钟时,就是全天每 10 分钟。`})]}),(0,X.jsxs)(Z,{value:`interval`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`间隔执行`]}),(0,X.jsx)(H,{children:`从 0 点开始,每隔几个小时开放一次执行时段。`})]}),(0,X.jsxs)(Z,{value:`specific`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`指定小时`]}),(0,X.jsx)(H,{children:`只在你点选的小时内执行。`})]})]})]})}),_===`interval`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,X.jsxs)(Q,{variant:`secondary`,minValue:1,maxValue:23,value:y,onChange:e=>{u(null),b(dr(e,1,23,1))},children:[(0,X.jsx)(z,{children:`间隔(小时)`}),(0,X.jsxs)(Q.Group,{children:[(0,X.jsx)(Q.DecrementButton,{}),(0,X.jsx)(Q.Input,{className:`w-24`}),(0,X.jsx)(Q.IncrementButton,{})]}),(0,X.jsx)(H,{children:y<=1?`间隔 1 小时等价于全部小时,保存时会自动写成 *。`:`只在 ${I()} 这些小时内执行。`})]})]}),_===`specific`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`选择小时`}),(0,X.jsx)(H,{className:`mb-3`,children:`点击选择允许执行的小时,可多选。具体分钟仍由“分钟”页决定。`})]}),(0,X.jsx)(`div`,{className:`grid max-h-80 grid-cols-4 gap-2 overflow-y-auto p-1 md:grid-cols-6`,children:Array.from({length:24},(e,t)=>t).map(e=>(0,X.jsx)(G,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:x.includes(e)?`primary`:`secondary`,onPress:()=>{u(null),S(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),x.length>0&&(0,X.jsxs)(H,{className:`mt-2`,children:[`已选择 `,x.length,` 个:`,x.map(e=>`${e}点`).join(`, `)]})]})]}),pe=()=>(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(tr,{"aria-label":`日期类型`,variant:`secondary`,value:C,onChange:e=>ce(e),children:[(0,X.jsx)(z,{className:`text-base font-semibold`,children:`一个月里,哪些日期允许执行?`}),(0,X.jsx)(H,{className:`mb-3`,children:`日期和星期只保留一个条件。选择日期后,会自动清空星期条件。`}),(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(Z,{value:`every`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`全部日期`]}),(0,X.jsx)(H,{children:`不限制几号执行。`})]}),(0,X.jsxs)(Z,{value:`interval`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`间隔执行`]}),(0,X.jsx)(H,{children:`从每月 1 号开始,每隔几天开放一次执行日期。`})]}),(0,X.jsxs)(Z,{value:`specific`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`指定日期`]}),(0,X.jsx)(H,{children:`只在你点选的几号执行。`})]})]})]})}),C===`interval`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`间隔设置`}),(0,X.jsxs)(Q,{variant:`secondary`,minValue:1,maxValue:31,value:T,onChange:e=>{u(null),E(dr(e,1,31,1)),A(`every`),M([])},children:[(0,X.jsx)(z,{children:`间隔(天)`}),(0,X.jsxs)(Q.Group,{children:[(0,X.jsx)(Q.DecrementButton,{}),(0,X.jsx)(Q.Input,{className:`w-24`}),(0,X.jsx)(Q.IncrementButton,{})]}),(0,X.jsx)(H,{children:T<=1?`间隔 1 天等价于全部日期,保存时会自动写成 *。`:`每月从 1 号开始,每隔 ${T} 天执行。`})]})]}),C===`specific`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`选择日期`}),(0,X.jsx)(H,{className:`mb-3`,children:`点击选择允许执行的日期,可多选。月份没有这一天时会自动跳过。`})]}),(0,X.jsx)(`div`,{className:`grid max-h-80 grid-cols-5 gap-2 overflow-y-auto p-1 md:grid-cols-7`,children:Array.from({length:31},(e,t)=>t+1).map(e=>(0,X.jsx)(G,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:D.includes(e)?`primary`:`secondary`,onPress:()=>{u(null),A(`every`),M([]),O(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e].sort((e,t)=>e-t))},children:e},e))}),D.length>0&&(0,X.jsxs)(H,{className:`mt-2`,children:[`已选择 `,D.length,` 个:`,D.map(e=>`${e}号`).join(`, `)]})]})]}),me=()=>(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(tr,{"aria-label":`星期类型`,variant:`secondary`,value:k,onChange:e=>le(e),children:[(0,X.jsx)(z,{className:`text-base font-semibold`,children:`一周里,哪些星期允许执行?`}),(0,X.jsx)(H,{className:`mb-3`,children:`日期和星期只保留一个条件。选择星期后,会自动清空日期条件。`}),(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(Z,{value:`every`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`全部星期`]}),(0,X.jsx)(H,{children:`不限制星期几执行。`})]}),(0,X.jsxs)(Z,{value:`specific`,children:[(0,X.jsxs)(Z.Content,{children:[(0,X.jsx)(Z.Control,{children:(0,X.jsx)(Z.Indicator,{})}),`指定星期`]}),(0,X.jsx)(H,{children:`只在你点选的星期执行。`})]})]})]})}),k===`specific`&&(0,X.jsxs)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col`,children:[(0,X.jsx)(z,{className:`mb-2 text-base font-semibold`,children:`选择星期`}),(0,X.jsx)(H,{className:`mb-3`,children:`点击选择允许执行的星期,可多选。具体时间仍由分钟和小时页决定。`})]}),(0,X.jsx)(`div`,{className:`grid grid-cols-7 gap-2 p-1`,children:[`日`,`一`,`二`,`三`,`四`,`五`,`六`].map((e,t)=>(0,X.jsx)(G,{className:`aspect-square min-w-0 shrink-0 p-0`,size:`sm`,variant:j.includes(t)?`primary`:`secondary`,onPress:()=>{u(null),w(`every`),E(1),O([]),M(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t].sort((e,t)=>e-t))},children:e},t))}),j.length>0&&(0,X.jsxs)(H,{className:`mt-2`,children:[`已选择 `,j.length,` 天:`,j.map(e=>`周${`日一二三四五六`[e]}`).join(`, `)]})]})]}),he=i===`desktop`?`right`:`bottom`,_e=wr(t||ar);return(0,X.jsxs)(`div`,{className:`space-y-2`,children:[(0,X.jsxs)(`div`,{className:`flex gap-2 flex-col`,children:[(0,X.jsxs)(`div`,{className:`flex gap-2`,children:[(0,X.jsxs)(se,{fullWidth:!0,isDisabled:!0,value:t,children:[(0,X.jsx)(z,{className:`sr-only`,children:`定时推送时间`}),(0,X.jsx)(xe,{placeholder:`*/10 * * * *`,variant:`secondary`,"aria-label":`定时任务表达式`})]}),(0,X.jsxs)(G,{isDisabled:r,variant:`secondary`,onPress:()=>o(!0),children:[(0,X.jsx)(ir,{className:`size-4`,"aria-hidden":`true`}),(0,X.jsx)(`span`,{children:`编辑`})]})]}),(0,X.jsxs)(H,{children:[`当前规则:`,_e]})]}),(0,X.jsx)(U.Backdrop,{isOpen:a,variant:`blur`,onOpenChange:o,children:(0,X.jsx)(U.Content,{placement:he,children:(0,X.jsxs)(U.Dialog,{className:i===`desktop`?`h-full w-120 max-w-[90vw]`:`max-h-[85dvh]`,children:[(0,X.jsx)(U.Handle,{}),(0,X.jsx)(U.CloseTrigger,{}),(0,X.jsxs)(U.Header,{children:[(0,X.jsx)(U.Heading,{children:`定时推送时间`}),(0,X.jsx)(H,{children:`先选常用规则;需要精细控制时,再进入分钟、小时、日期、星期设置。`})]}),(0,X.jsxs)(U.Body,{className:`min-w-0 space-y-4 overflow-x-hidden`,children:[(0,X.jsxs)(V,{className:`min-w-0`,selectedKey:s,onSelectionChange:e=>c(e),children:[(0,X.jsx)(V.ListContainer,{children:(0,X.jsxs)(V.List,{children:[(0,X.jsxs)(V.Tab,{id:`quick`,children:[(0,X.jsx)(`span`,{children:`常用`}),(0,X.jsx)(V.Indicator,{})]}),(0,X.jsxs)(V.Tab,{id:`minute`,children:[(0,X.jsx)(`span`,{children:`分钟`}),(0,X.jsx)(V.Indicator,{})]}),(0,X.jsxs)(V.Tab,{id:`hour`,children:[(0,X.jsx)(`span`,{children:`小时`}),(0,X.jsx)(V.Indicator,{})]}),(0,X.jsxs)(V.Tab,{id:`day`,children:[(0,X.jsx)(`span`,{children:`日期`}),(0,X.jsx)(V.Indicator,{})]}),(0,X.jsxs)(V.Tab,{id:`week`,children:[(0,X.jsx)(`span`,{children:`星期`}),(0,X.jsx)(V.Indicator,{})]})]})}),(0,X.jsx)(`div`,{className:`h-1`}),(0,X.jsx)(V.Panel,{id:`quick`,className:`p-0`,children:ue()}),(0,X.jsx)(V.Panel,{id:`minute`,className:`p-0`,children:de()}),(0,X.jsx)(V.Panel,{id:`hour`,className:`p-0`,children:fe()}),(0,X.jsx)(V.Panel,{id:`day`,className:`p-0`,children:pe()}),(0,X.jsx)(V.Panel,{id:`week`,className:`p-0`,children:me()})]}),(0,X.jsx)(B,{className:`p-4 rounded-3xl`,variant:`secondary`,children:(0,X.jsxs)(`div`,{className:`space-y-3`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(z,{className:`text-sm font-medium text-muted`,children:`实际执行时间`}),(0,X.jsx)(`p`,{className:`mt-1 text-sm leading-relaxed`,children:P()}),(0,X.jsx)(H,{className:`mt-1`,children:ne()})]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(z,{className:`text-sm font-medium text-muted`,children:`表达式`}),(0,X.jsx)(`code`,{className:`mt-1 block font-mono text-base font-semibold`,children:te()})]})]})})]}),(0,X.jsxs)(U.Footer,{children:[(0,X.jsx)(G,{className:`flex-1`,slot:`close`,variant:`tertiary`,children:`取消`}),(0,X.jsx)(G,{className:`flex-1`,variant:`primary`,onPress:L,children:`使用这个规则`})]})]})})})]})};export{kr as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./separator-D6lAHrvZ.js";import{a as t,c as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./ThemeSwitch-C9X8kWTm.js";import{Lt as u,Rt as d,T as f,_ as p,a as m,gt as h,i as g,n as _,o as v,pt as y,r as b,s as x,w as S}from"./index-DhbVGvm8.js";var C=b(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),w=d(u(),1),T=h(),E=({activeMenu:e})=>(0,T.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-4`,children:(()=>{switch(e){case`config`:return(0,T.jsx)(_,{device:`desktop`});case`about`:return(0,T.jsx)(s,{});default:return(0,T.jsx)(_,{device:`desktop`})}})()}),D=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],O=({collapsed:t,activeMenu:n,onMenuChange:r})=>{let o=x(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),s=x(()=>{m(),window.location.reload()});return t?null:(0,T.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,T.jsx)(`div`,{className:`shrink-0 px-4 pt-3 pb-2`,children:(0,T.jsxs)(p,{children:[(0,T.jsx)(p.Trigger,{"aria-label":`用户信息`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center gap-3 rounded-lg p-2 transition-colors hover:bg-default-100 cursor-pointer`,tabIndex:0,children:[(0,T.jsxs)(f,{size:`lg`,children:[(0,T.jsx)(f.Image,{src:a}),(0,T.jsx)(f.Fallback,{children:`ikenxuan`})]}),(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col items-start`,children:[(0,T.jsx)(`p`,{className:`truncate text-lg font-semibold`,children:`炫炫`}),(0,T.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]})}),(0,T.jsx)(p.Content,{className:`w-60`,children:(0,T.jsxs)(p.Dialog,{children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3 pb-3`,children:[(0,T.jsxs)(f,{size:`md`,children:[(0,T.jsx)(f.Image,{src:a}),(0,T.jsx)(f.Fallback,{children:`U`})]}),(0,T.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,T.jsx)(`p`,{className:`truncate font-medium`,children:`用户`}),(0,T.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]}),(0,T.jsx)(e,{className:`my-2`}),(0,T.jsx)(`p`,{className:`text-xs text-muted`,children:`当前身份:管理员`})]})})]})}),(0,T.jsx)(`nav`,{className:`flex flex-1 flex-col gap-1 overflow-y-auto px-3 py-3`,"aria-label":`主导航`,children:D.map(e=>{let t=e.icon,i=n===e.id;return(0,T.jsxs)(S,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:i?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":i?`page`:void 0,onPress:()=>r(e.id),children:[(0,T.jsx)(t,{size:20,className:y(`shrink-0 mr-3`,!i&&`text-muted`),"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:y(`truncate`,i&&`font-medium`),children:e.label})]},e.id)})}),(0,T.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1 px-3 py-3`,children:[(0,T.jsxs)(S,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,T.jsx)(i,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,T.jsxs)(S,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:s,children:[(0,T.jsx)(c,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})},k=({onToggleSidebar:e,sidebarCollapsed:n,currentMenuLabel:r})=>(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,T.jsx)(S,{isIconOnly:!0,variant:`ghost`,onPress:e,"aria-label":n?`展开侧边栏`:`折叠侧边栏`,"aria-expanded":!n,children:n?(0,T.jsx)(o,{size:20,"aria-hidden":`true`}):(0,T.jsx)(C,{size:20,"aria-hidden":`true`})}),n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(t,{size:24,"aria-hidden":`true`}),(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:`KKK Config`})]}),!n&&(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:r||`配置管理面板`})]}),(0,T.jsx)(l,{})]}),A=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],j=({activeMenu:e,onMenuChange:t})=>{let[n,{toggle:r}]=v(!1),i=(0,w.useRef)(null);return(0,w.useEffect)(()=>{i.current&&(n?g.to(i.current,{width:0,opacity:0,borderRightWidth:0,duration:.3,ease:`power2.inOut`,onComplete:()=>{i.current&&(i.current.style.display=`none`)}}):(i.current.style.display=`flex`,g.fromTo(i.current,{width:0,opacity:0,borderRightWidth:0},{width:260,opacity:1,borderRightWidth:1,duration:.3,ease:`power2.inOut`})))},[n]),(0,T.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,T.jsx)(`aside`,{ref:i,className:`flex h-full w-65 shrink-0 flex-col border-r border-default-100`,"aria-label":`侧边栏导航`,children:(0,T.jsx)(O,{collapsed:n,activeMenu:e,onMenuChange:t,onToggleCollapse:r})}),(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col overflow-hidden`,children:[(0,T.jsx)(`header`,{className:`flex h-16 shrink-0 items-center px-6`,children:(0,T.jsx)(k,{onToggleSidebar:r,sidebarCollapsed:n,currentMenuLabel:A.find(t=>t.id===e)?.label})}),(0,T.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-6`,id:`main-content`,children:(0,T.jsx)(`div`,{"data-scrollbar":`thin`,children:(0,T.jsx)(E,{activeMenu:e})})})]})]})};export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./ThemeSwitch-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./ThemeSwitch-C9X8kWTm.js";import{Lt as l,Rt as u,T as d,a as f,g as p,gt as m,n as h,o as g,pt as _,r as v,s as y,v as b,w as x}from"./index-DhbVGvm8.js";var S=v(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=m(),w=({activeMenu:e})=>(0,C.jsx)(`div`,{className:`w-full max-w-2xl mx-auto`,children:(()=>{switch(e){case`config`:return(0,C.jsx)(h,{device:`mobile`});case`about`:return(0,C.jsx)(o,{});default:return(0,C.jsx)(h,{device:`mobile`})}})()}),T=u(l(),1),E=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],D=({open:e,onClose:t,activeMenu:n,onMenuChange:a})=>{let o=y(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),c=y(()=>{f(),window.location.reload()});return(0,T.useEffect)(()=>{let n=n=>{n.key===`Escape`&&e&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,T.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,C.jsx)(b.Backdrop,{isOpen:e,isDismissable:!0,className:`backdrop-blur-sm`,onOpenChange:e=>{e||t()},children:(0,C.jsx)(b.Content,{placement:`right`,children:(0,C.jsxs)(b.Dialog,{className:`px-4`,children:[(0,C.jsxs)(b.Header,{className:`flex items-center justify-between pb-4`,children:[(0,C.jsx)(b.Heading,{className:`text-lg font-semibold`,children:`菜单`}),(0,C.jsx)(b.CloseTrigger,{"aria-label":`关闭菜单`,className:`mr-2`,children:(0,C.jsx)(S,{size:24,"aria-hidden":`true`})})]}),(0,C.jsxs)(b.Body,{className:`flex flex-col`,children:[(0,C.jsx)(`div`,{className:`shrink-0 pb-5`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[(0,C.jsxs)(d,{size:`md`,children:[(0,C.jsx)(d.Image,{src:i}),(0,C.jsx)(d.Fallback,{children:`ikenxuan`})]}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,C.jsx)(`p`,{className:`truncate text-sm font-medium`,children:`炫炫`}),(0,C.jsx)(`p`,{className:`truncate text-xs text-muted`,children:`Super Admin`})]})]})}),(0,C.jsx)(`nav`,{className:`flex flex-1 flex-col gap-2 overflow-y-auto`,"aria-label":`主导航`,children:E.map(e=>{let t=e.icon,r=n===e.id;return(0,C.jsxs)(x,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:r?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":r?`page`:void 0,onPress:()=>a(e.id),children:[(0,C.jsx)(t,{size:20,className:_(`shrink-0 mr-3`,!r&&`text-muted`),"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:_(`truncate`,r&&`font-semibold`),children:e.label})]},e.id)})}),(0,C.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,C.jsxs)(x,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,C.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,C.jsxs)(x,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:c,children:[(0,C.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})]})})})},O=({onOpenDrawer:t})=>(0,C.jsxs)(`div`,{className:`flex h-full items-center justify-between px-4`,children:[(0,C.jsx)(c,{className:`shrink-0`}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center justify-center gap-2 px-2`,children:[(0,C.jsx)(e,{size:22,"aria-hidden":`true`}),(0,C.jsx)(`h1`,{className:`truncate text-base font-semibold`,children:`KKK Config`})]}),(0,C.jsx)(x,{isIconOnly:!0,className:`shrink-0`,variant:`ghost`,onPress:t,"aria-label":`打开菜单`,"aria-expanded":!1,children:(0,C.jsx)(a,{size:24,"aria-hidden":`true`})})]}),k=({activeMenu:e,onMenuChange:t})=>{let[n,{setTrue:r,setFalse:i}]=g(!1),a=y(e=>{t(e),i()});return(0,C.jsxs)(p,{"data-scrollbar":`thin`,className:`flex min-h-screen flex-col`,children:[(0,C.jsx)(`header`,{className:`sticky top-0 z-50 h-14 shrink-0 backdrop-blur-xs mask-[linear-gradient(to_bottom,black_40%,transparent_100%)]`,children:(0,C.jsx)(O,{onOpenDrawer:r})}),(0,C.jsx)(D,{open:n,onClose:i,activeMenu:e,onMenuChange:a}),(0,C.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-4`,id:`main-content`,children:(0,C.jsx)(w,{activeMenu:e})})]})};export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,gt as t,m as n,r,t as i,u as a,w as o}from"./index-DhbVGvm8.js";var s=r(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),c=r(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),l=r(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),u=r(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),d=r(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=r(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),p=r(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),m=r(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),h=r(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),g=t(),_=()=>{let t=e=>{window.open(e,`_blank`)};return(0,g.jsxs)(e,{className:`mx-auto max-w-3xl`,children:[(0,g.jsxs)(e.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,g.jsx)(p,{size:64,"aria-hidden":`true`}),(0,g.jsx)(e.Title,{children:`karin-plugin-kkk`}),(0,g.jsx)(e.Description,{children:`版本 2.33.0`})]}),(0,g.jsxs)(e.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,g.jsx)(a,{children:`Karin 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,g.jsx)(a,{children:`ikenxuan, sj817`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,g.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,g.jsxs)(o,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,g.jsxs)(o,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})},v=`https://github.com/ikenxuan.png`,y=({className:e})=>{let{isDark:t,toggleTheme:r}=i();return(0,g.jsxs)(n,{delay:1,closeDelay:1,children:[(0,g.jsx)(o,{isIconOnly:!0,"aria-label":t?`切换到浅色模式`:`切换到深色模式`,className:e,variant:`ghost`,onPress:r,children:t?(0,g.jsx)(h,{size:20,"aria-hidden":`true`}):(0,g.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,g.jsx)(n.Content,{children:t?`浅色模式`:`深色模式`})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,_ as r,u as s,y as t};
|