wraith/node_modules/muggle-string/out/segment.js
Vantz Stockwell 2848d79915 feat: Phase 1 complete — Tauri v2 foundation
Rust backend: SQLite (WAL mode, 8 tables), vault encryption
(Argon2id + AES-256-GCM), settings/connections/credentials
services, 19 Tauri command wrappers. 46/46 tests passing.

Vue 3 frontend: unlock/create vault flow, Pinia app store,
Tailwind CSS v4 dark theme with Wraith branding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 15:09:41 -04:00

39 lines
1.0 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.segment = void 0;
function segment(...args) {
const text = args[0];
if (args.length === 1) {
return text;
}
let source;
let start;
let end;
let hasData = false;
let data;
if (typeof args[1] !== 'number') {
source = args[1];
start = typeof args[2] == 'number' ? args[2] : args[2][0];
end = typeof args[2] == 'number' ? args[2] + text.length : args[2][1];
hasData = args.length >= 4;
if (hasData) {
data = args[3];
}
}
else {
start = typeof args[1] == 'number' ? args[1] : args[1][0];
end = typeof args[1] == 'number' ? args[1] + text.length : args[1][1];
hasData = args.length >= 3;
if (hasData) {
data = args[2];
}
}
if (hasData) {
return [text, source, [start, end], data];
}
else {
return [text, source, [start, end]];
}
}
exports.segment = segment;
//# sourceMappingURL=segment.js.map