Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
'use client';
|
|
|
|
import { c as _c } from "react/compiler-runtime";
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
import { useTranslation } from '../../../../../providers/Translation/index.js';
|
|
import './index.scss';
|
|
import { stringifyTruncated } from '../../../../../utilities/stringifyTruncated.js';
|
|
export const JSONCell = t0 => {
|
|
const $ = _c(4);
|
|
const {
|
|
cellData
|
|
} = t0;
|
|
const {
|
|
t
|
|
} = useTranslation();
|
|
;
|
|
try {
|
|
let t2;
|
|
if ($[0] !== cellData) {
|
|
const cellDataString = stringifyTruncated(cellData, 100);
|
|
t2 = _jsx("code", {
|
|
className: "json-cell",
|
|
children: _jsx("span", {
|
|
children: cellDataString
|
|
})
|
|
});
|
|
$[0] = cellData;
|
|
$[1] = t2;
|
|
} else {
|
|
t2 = $[1];
|
|
}
|
|
return t2;
|
|
} catch (t1) {
|
|
let t2;
|
|
if ($[2] !== t) {
|
|
t2 = _jsx("code", {
|
|
className: "json-cell",
|
|
children: _jsx("span", {
|
|
children: t("general:error")
|
|
})
|
|
});
|
|
$[2] = t;
|
|
$[3] = t2;
|
|
} else {
|
|
t2 = $[3];
|
|
}
|
|
return t2;
|
|
}
|
|
};
|
|
//# sourceMappingURL=index.js.map |