@codecanvascollective/source-admin 0.1.0 → 0.2.0
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/CONTRIBUTING.md +26 -26
- package/LICENSE +190 -190
- package/README.md +81 -79
- package/SECURITY.md +11 -11
- package/bin/source-admin.mjs +265 -265
- package/dist/standalone/.next/BUILD_ID +1 -1
- package/dist/standalone/.next/build-manifest.json +3 -3
- package/dist/standalone/.next/prerender-manifest.json +3 -3
- package/dist/standalone/.next/required-server-files.json +20 -20
- package/dist/standalone/.next/server/app/_global-error.html +1 -1
- package/dist/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/standalone/.next/server/app/_not-found.rsc +2 -2
- package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/admin/source/page.js +2 -2
- package/dist/standalone/.next/server/app/admin/source/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/admin/source/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/admin/tables/page.js +2 -2
- package/dist/standalone/.next/server/app/admin/tables/page.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/admin/tables/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/api/admin/source/discover/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/source/discover/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/api/admin/source/mapping/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/source/mapping/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/api/admin/source/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/source/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/api/admin/source/test/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/source/test/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/api/admin/tables/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/tables/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/api/admin/tables/rows/route.js +3 -3
- package/dist/standalone/.next/server/app/api/admin/tables/rows/route.js.nft.json +1 -1
- package/dist/standalone/.next/server/app/index.html +1 -1
- package/dist/standalone/.next/server/app/index.rsc +2 -2
- package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__08voc16._.js +3 -0
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0hzpf7k._.js +3 -0
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0h~4w31._.js +3 -0
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0k~_qfk._.js +3 -0
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0lmxc5_._.js +3 -0
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0p09u08._.js +3 -0
- package/dist/standalone/.next/server/chunks/_06an.-f._.js +29 -18
- package/dist/standalone/.next/server/chunks/_0eildm-._.js +29 -18
- package/dist/standalone/.next/server/chunks/_0xr7q4b._.js +18 -15
- package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zpjyya._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__13lr0v4._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/_0esgwcu._.js +16 -9
- package/dist/standalone/.next/server/chunks/ssr/_0w76r0e._.js +1 -1
- package/dist/standalone/.next/server/chunks/ssr/src_components_admin_source-manager-console_tsx_0083okn._.js +3 -0
- package/dist/standalone/.next/server/chunks/ssr/src_lib_platform_service_ts_0c9l1f7._.js +16 -13
- package/dist/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/dist/standalone/.next/server/middleware-manifest.json +5 -5
- package/dist/standalone/.next/server/pages/404.html +1 -1
- package/dist/standalone/.next/server/pages/500.html +1 -1
- package/dist/standalone/.next/server/server-reference-manifest.js +1 -1
- package/dist/standalone/.next/server/server-reference-manifest.json +1 -1
- package/dist/standalone/.next/static/chunks/0fzblwu6f7o8u.css +1 -0
- package/dist/standalone/.next/static/chunks/0se7aghcfp.wu.js +1 -0
- package/dist/standalone/.next/static/chunks/{0--6sjpgdxkp8.js → 0v3~3f8d_ihp1.js} +1 -1
- package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/dist/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/dist/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/dist/standalone/node_modules/@img/{sharp-win32-x64 → sharp-linux-x64}/package.json +46 -39
- package/dist/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/dist/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/dist/standalone/node_modules/msnodesqlv8/build/Release/sqlserver.node +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/base-promises.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/connection.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/data-struture/heap/Heap.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/data-struture/heap/MaxHeap.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/data-struture/heap/MinHeap.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/data-struture/priority-queue/PriorityQueue.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/data-struture/utils/comparator/Comparator.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/dialect.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/driver.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/index.d.ts +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/meta.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/notifier.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/pool.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/prepared-statement.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/procedure-bound.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/procedure-meta.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/procedure.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queries/proc_describe.sql +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queries/server_version.sql +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queries/table_describe.2014.sql +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queries/table_describe.sql +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queries/user_type.sql +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/query-aggregator.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/query-handler.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/queue.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/reader.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/sequelize/connection.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/sequelize/index.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/sequelize/request.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/shema-splitter.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/sql-client.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/sql.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/table-builder.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/table-bulk-op-mgr.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/table-column.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/table-meta.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/table.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/user.js +0 -0
- package/dist/standalone/node_modules/msnodesqlv8/lib/util.js +0 -0
- package/dist/standalone/node_modules/mssql/bin/mssql +0 -0
- package/dist/standalone/node_modules/open/xdg-open +0 -0
- package/dist/standalone/package.json +60 -59
- package/dist/standalone/server.js +1 -1
- package/package.json +60 -59
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__02a79yv._.js +0 -3
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0nk-09u._.js +0 -3
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0nn_zpx._.js +0 -3
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0pr0jqt._.js +0 -3
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__0zj4ll6._.js +0 -3
- package/dist/standalone/.next/server/chunks/[root-of-the-server]__110gi2p._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0r3b4.4._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0xwj_sh._.js +0 -3
- package/dist/standalone/.next/server/chunks/ssr/src_components_admin_source-console_tsx_01x.d.u._.js +0 -3
- package/dist/standalone/.next/static/chunks/06nz~tv04ai2q.css +0 -1
- package/dist/standalone/.next/static/chunks/110llkdc70cqf.js +0 -1
- package/dist/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
- /package/dist/standalone/.next/static/{P5MMIlYxIq6fvXoCpYoTQ → mBwymJ7f6SxgPAmQc9dxG}/_buildManifest.js +0 -0
- /package/dist/standalone/.next/static/{P5MMIlYxIq6fvXoCpYoTQ → mBwymJ7f6SxgPAmQc9dxG}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/.next/static/{P5MMIlYxIq6fvXoCpYoTQ → mBwymJ7f6SxgPAmQc9dxG}/_ssgManifest.js +0 -0
- /package/dist/standalone/node_modules/@img/{sharp-win32-x64 → sharp-libvips-linux-x64}/versions.json +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=e.r(32061);function a({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(43476),a=e.r(74080),l=e.r(63599),s=e.r(9885),i=e.r(43369);function o({moduleIds:e}){if("u">typeof window)return null;let t=l.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,i.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,a.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let n=e.r(43476),a=e.r(71645),l=e.r(67585),s=e.r(52157);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(i)),d=t.loading;function c(e){let i=d?(0,n.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?a.Suspense:a.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...o?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(55682)._(e.r(69093));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,n.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34836,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),r.ParsingError=void 0;class a extends Error{constructor(e,t){super(e),this.cause=t}}function l(){return o(!1)||function(){let e=c(/^([^<]+)/);if(e){let t={type:"Text",content:e[1]};return{excluded:!1===n.options.filter(t),node:t}}}()||d()||function(){if(n.xml.startsWith("<![CDATA[")){let e=n.xml.indexOf("]]>");if(e>-1){let t=e+3,r={type:"CDATA",content:n.xml.substring(0,t)};return n.xml=n.xml.slice(t),{excluded:!1===n.options.filter(r),node:r}}}}()||i()}function s(){return c(/\s*/),o(!0)||d()||function(){let e=c(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/)||c(/^<!DOCTYPE\s+\S+\s*>/);if(e){let t={type:"DocumentType",content:e[0]};return{excluded:!1===n.options.filter(t),node:t}}}()||i()}function i(){let e=c(/^<\?([\w-:.]+)\s*/);if(!e)return;let t={name:e[1],type:"ProcessingInstruction",content:""},r=n.xml.indexOf("?>");if(r>-1)t.content=n.xml.substring(0,r).trim(),n.xml=n.xml.slice(r);else throw new a("Failed to parse XML","ProcessingInstruction closing tag not found");return c(/\?>/),{excluded:!1===n.options.filter(t),node:t}}function o(e){let t=c(/^<([^?!</>\s]+)\s*/);if(!t)return;let r={type:"Element",name:t[1],attributes:{},children:[]},s=!e&&!1===n.options.filter(r);for(;!(0===n.xml.length||u(">")||u("?>")||u("/>"));){let e=function(){let e=c(/([^=]+)\s*=\s*("[^"]*"|'[^']*'|[^>\s]+)\s*/);if(e)return{name:e[1].trim(),value:e[2].trim().replace(/^['"]|['"]$/g,"")}}();if(!e)return;r.attributes[e.name]=e.value}if(c(/^\s*\/>/))return r.children=null,{excluded:s,node:r};c(/\??>/);let i=l();for(;i;)i.excluded||r.children.push(i.node),i=l();if(n.options.strictMode){let e=`</${r.name}>`;if(n.xml.startsWith(e))n.xml=n.xml.slice(e.length);else throw new a("Failed to parse XML",`Closing tag not matching "${e}"`)}else c(/^<\/[\w-:.\u00C0-\u00FF]+\s*>/);return{excluded:s,node:r}}function d(){let e=c(/^<!--[\s\S]*?-->/);if(e){let t={type:"Comment",content:e[0]};return{excluded:!1===n.options.filter(t),node:t}}}function c(e){let t=n.xml.match(e);if(t)return n.xml=n.xml.slice(t[0].length),t}function u(e){return 0===n.xml.indexOf(e)}function m(e,t={}){let r;e=e.trim();let l=t.filter||(()=>!0);n={xml:e,options:Object.assign(Object.assign({},t),{filter:l,strictMode:!0===t.strictMode})};let o=i(),d=[],c=s();for(;c;){if("Element"===c.node.type){if(r)throw Error("Found multiple root nodes");r=c.node}c.excluded||d.push(c.node),c=s()}if(!r)throw new a("Failed to parse XML","Root Element not found");if(0!==n.xml.length)throw new a("Failed to parse XML","Not Well-Formed XML");return{declaration:o?o.node:null,root:r,children:d}}r.ParsingError=a,t.exports=m,r.default=m},54499,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=n(e.r(34836));function l(e){let t;if(e.options.indentation||e.options.lineSeparator)for(e.content+=e.options.lineSeparator,t=0;t<e.level;t++)e.content+=e.options.indentation}function s(e,t){e.content+=t}function i(e,t){t.content.length>0&&l(t),s(t,"<?"+e.name),s(t," "+e.content.trim()),s(t,"?>")}function o(e,t={}){t.indentation="indentation"in t?t.indentation:" ",t.collapseContent=!0===t.collapseContent,t.lineSeparator="lineSeparator"in t?t.lineSeparator:"\r\n",t.whiteSpaceAtEndOfSelfclosingTag=!0===t.whiteSpaceAtEndOfSelfclosingTag,t.throwOnFailure=!1!==t.throwOnFailure,t.attributeQuotes="attributeQuotes"in t?t.attributeQuotes:"double";try{let r=(0,a.default)(e,{filter:t.filter,strictMode:t.strictMode}),n={content:"",level:0,options:t,path:[]};if(r.declaration&&i(r.declaration,n),r.children.forEach(function(e){!function e(t,r,n){if("Element"===t.type)!function(t,r,n){var a,i,o,d;if(r.path.push(t.name),!n&&r.content.length>0&&l(r),s(r,"<"+t.name),a=r,Object.keys(i=t.attributes).forEach(function(e){if("single"===a.options.attributeQuotes){let t=i[e].replace(/'/g,"'");s(a," "+e+"='"+t+"'")}else{let t=i[e].replace(/"/g,""");s(a," "+e+'="'+t+'"')}}),null===t.children||r.options.forceSelfClosingEmptyTag&&0===t.children.length){let e=r.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";s(r,e)}else if(0===t.children.length)s(r,"></"+t.name+">");else{let a=t.children;s(r,">"),r.level++;let i="preserve"===t.attributes["xml:space"]||n,c=!1;if(!i&&r.options.ignoredPaths){let e,t;o=r.path,d=r.options.ignoredPaths,e="/"+o.join("/"),t=o[o.length-1],i=c=d.includes(t)||d.includes(e)}if(!i&&r.options.collapseContent){let e=!1,t=!1,r=!1;a.forEach(function(l,s){"Text"===l.type?(l.content.includes("\n")?(t=!0,l.content=l.content.trim()):0!==s&&s!==a.length-1||n||0!==l.content.trim().length||(l.content=""),(l.content.trim().length>0||1===a.length)&&(e=!0)):"CDATA"===l.type?e=!0:r=!0}),!e||r&&t||(i=!0)}a.forEach(function(t){e(t,r,n||i)}),r.level--,n||i||l(r),c&&function(e){let t;for(t=0,e.content=e.content.replace(/ +$/,"");t<e.level;t++)e.content+=e.options.indentation}(r),s(r,"</"+t.name+">")}r.path.pop()}(t,r,n);else if("ProcessingInstruction"===t.type)i(t,r);else if("string"==typeof t.content){var a=t.content,o=r,d=n;if(!d){let e=a.trim();o.options.lineSeparator?a=e:0===e.length&&(a=e)}a.length>0&&(!d&&o.content.length>0&&l(o),s(o,a))}else throw Error("Unknown node type: "+t.type)}(e,n,!1)}),!t.lineSeparator)return n.content;return n.content.replace(/\r\n/g,"\n").replace(/\n/g,t.lineSeparator)}catch(r){if(t.throwOnFailure)throw r;return e}}o.minify=(e,t={})=>o(e,Object.assign(Object.assign({},t),{indentation:"",lineSeparator:""})),t.exports=o,r.default=o},16201,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=(0,e.i(70703).default)(()=>e.A(99215).then(e=>e.ReadOnlyCodeViewerClient),{loadableGenerated:{modules:[12361]},loading:()=>(0,t.jsx)("div",{className:"grid place-items-center rounded-[28px] border border-[var(--line)] bg-white/90 px-5 py-12 text-sm text-[var(--muted)] shadow-[0_18px_45px_rgba(19,46,52,0.05)]",children:"Loading viewer..."}),ssr:!1});function a(e){return(0,t.jsx)(n,{...e})}var l=e.i(55382);function s({children:e,tone:r="neutral"}){return(0,t.jsx)("span",{className:(0,l.cn)("inline-flex items-center rounded-full border px-2.5 py-1 text-xs font-semibold uppercase tracking-[0.14em]",{danger:"border-rose-200 bg-rose-50 text-rose-800",neutral:"border-slate-200 bg-white/80 text-slate-700",success:"border-emerald-200 bg-emerald-50 text-emerald-800",warning:"border-amber-200 bg-amber-50 text-amber-800"}[r]),children:e})}let i=["overview","payloads","identifiers","timing","flags","longText","other"],o={flags:"Flags",identifiers:"Identifiers",longText:"Long Text",other:"Other",overview:"Overview",payloads:"Payloads",timing:"Timing"};function d(e,t,r){let n=e.find(e=>!r.has(e.id)&&t.some(t=>t.test(e.column.name)||t.test(e.column.label)));return n&&r.add(n.id),n??null}var c=e.i(67034),u=e.i(54499);function m(e,t,r){let n=null==t?null:String(t),a=function(e,t){if("number"==typeof e&&Number.isFinite(e))return e;if("bigint"==typeof e)return Number(e);if("string"==typeof e&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}return t?void 0!==c.Buffer?c.Buffer.byteLength(t,"utf16le"):2*t.length:0}(r,n);if(!n||!n.trim())return{kind:e,parseError:null,parseStatus:"empty",pretty:null,raw:n,sizeBytes:a};try{if("text"===e)return{kind:e,parseError:null,parseStatus:"formatted",pretty:n,raw:n,sizeBytes:a};let t="json"===e?JSON.stringify(JSON.parse(n),null,2):(0,u.default)(n,{collapseContent:!0,indentation:" ",lineSeparator:"\n"});return{kind:e,parseError:null,parseStatus:"formatted",pretty:t,raw:n,sizeBytes:a}}catch(t){return{kind:e,parseError:t instanceof Error?t.message:"Unable to format payload.",parseStatus:"invalid",pretty:null,raw:n,sizeBytes:a}}}function x(e,t){if("json"===e.payloadKindHint||"xml"===e.payloadKindHint)return e.payloadKindHint;if("string"!=typeof t)return null;let r=t.trim();if(!r)return null;if((r.startsWith("{")||r.startsWith("["))&&/payload|body|request|response|content/i.test(e.name))try{return JSON.parse(r),"json"}catch{return null}return(r.startsWith("<")||r.startsWith("<?xml"))&&/payload|body|request|response|content/i.test(e.name)?"xml":null}function p(e,t){return"datetime"===e.valueType?(0,l.formatUtcDateTime)("string"==typeof t?t:null):(0,l.displayValue)(t)}async function f(e){await navigator.clipboard.writeText(e)}function h({className:e,idleLabel:n,value:a}){let[s,i]=(0,r.useState)(n);async function o(){try{await f(a),i("Copied"),window.setTimeout(()=>i(n),1200)}catch{i("Failed"),window.setTimeout(()=>i(n),1200)}}return(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",e),onClick:o,type:"button",children:s})}function b({field:e}){return(0,t.jsxs)("div",{className:"rounded-[22px] border border-[var(--line)] bg-white/92 px-4 py-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:e.column.label}),(0,t.jsx)("p",{className:"mt-2 truncate text-sm font-medium text-[var(--ink)]",title:e.valueText,children:p(e.column,e.value)})]})}function g({column:e,value:r}){let n=x(e,r),l=n&&"string"==typeof r?m(n,r,null):null;return l?(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(s,{tone:"neutral",children:l.kind}),(0,t.jsx)(s,{tone:"neutral",children:"formatted"===l.parseStatus?"formatted":"raw only"})]}),(0,t.jsx)(h,{idleLabel:"Copy Value",value:"formatted"===l.parseStatus?l.pretty??l.raw??"":l.raw??""})]}),"invalid"===l.parseStatus?(0,t.jsx)("div",{className:"rounded-[20px] border border-amber-300/70 bg-amber-50 px-4 py-3 text-sm text-amber-950",children:"Formatting failed. Raw content is shown exactly as stored."}):null,(0,t.jsx)(a,{defaultModeId:"formatted"===l.parseStatus?"formatted":"raw",height:"min(64vh, 720px)",language:"text"===l.kind?"plaintext":l.kind,modes:[{disabled:"formatted"!==l.parseStatus,id:"formatted",label:"Formatted",value:l.pretty??l.raw??""},{id:"raw",label:"Raw",value:l.raw??""}]},`${e.name}-${l.parseStatus}`)]}):null}function v({value:e}){let r=null==e?"":String(e);return(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(h,{idleLabel:"Copy Value",value:r})}),(0,t.jsx)(a,{height:"min(64vh, 720px)",language:"plaintext",modes:[{id:"raw",label:"Value",value:r}]},r)]})}function w({column:e,value:r}){return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(h,{idleLabel:"Copy Value",value:null==r?"":String(r)})}),null==r||""===r?(0,t.jsx)("div",{className:"grid min-h-[280px] place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-white/70 px-6 py-10 text-center text-sm leading-7 text-[var(--muted)]",children:"This field is empty for the selected row."}):(0,t.jsxs)("div",{className:"rounded-[28px] border border-[var(--line)] bg-white/94 p-6 shadow-[0_18px_45px_rgba(19,46,52,0.05)]",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Formatted Value"}),(0,t.jsx)("div",{className:"mt-4 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)] break-words",children:p(e,r)}),(0,t.jsxs)("div",{className:"mt-6 rounded-[20px] border border-[var(--line)] bg-[var(--surface-soft)]/65 p-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Raw Value"}),(0,t.jsx)("p",{className:"mt-3 break-words font-mono text-sm leading-7 text-[var(--ink)]",children:String(r)})]})]})]})}function j({field:e}){return x(e.column,e.value)?(0,t.jsx)(g,{column:e.column,value:e.value}):"longText"===e.column.presentationKind?(0,t.jsx)(v,{value:e.value}):(0,t.jsx)(w,{column:e.column,value:e.value})}function y(e,t){return t?i.find(r=>e[r].some(e=>e.id===t))??"overview":"overview"}function N(e,t){let r=`${t.column.label} ${t.column.name}`.toLowerCase();if("payloads"===e){if(/request/.test(r))return 0;if(/response/.test(r))return 1;if(/xml/.test(r))return 2;if(/json/.test(r))return 3}return 10}function S(e,t){return[...t].sort((t,r)=>{let n=N(e,t)-N(e,r);return 0!==n?n:t.column.label.localeCompare(r.column.label)})}function k({columns:e,hasNextRow:n,hasPreviousRow:a,onClose:c,onNextRow:u,onPreviousRow:m,row:x,rowCount:f,rowIndex:g,tableName:v}){let[w,N]=(0,r.useState)(""),T=(0,r.useMemo)(()=>{let t,r,n,a;return n=[d(t=e.map(e=>{let t=x[e.name]??null,r=null==t?"":"boolean"==typeof t?t?"true":"false":String(t);return{column:e,id:e.name,primaryGroup:function(e){let t;return(t=`${e.name} ${e.label}`.toLowerCase(),/time|date|duration|latency|elapsed/.test(t)?"json"===e.payloadKindHint||"xml"===e.payloadKindHint:"json"===e.payloadKindHint||"xml"===e.payloadKindHint||/payload|body|request|response|content/i.test(t))?"payloads":/id|guid|uuid|key|reference|correlation|trace/i.test(e.name)?"identifiers":"datetime"===e.valueType||/time|date|duration|latency|elapsed/i.test(e.name)?"timing":"boolean"===e.valueType||/^(is|has|can|should)/i.test(e.name)?"flags":"longText"===e.presentationKind?"longText":"other"}(e),searchText:`${e.label} ${e.name} ${r}`.toLowerCase(),value:t,valueText:r}}),[/(^id$|id$|guid|uuid|key|record)/i],r=new Set),d(t,[/time|date|timestamp|occurred|created|updated/i],r),d(t,[/status|state|error|failed|success|severity|level/i],r),d(t,[/correlation|trace|reference|request/i],r),d(t,[/application|service|provider|vendor|supplier/i],r),d(t,[/message|description|summary|details?/i],r)].filter(Boolean).slice(0,6),a={flags:t.filter(e=>"flags"===e.primaryGroup),identifiers:t.filter(e=>"identifiers"===e.primaryGroup),longText:t.filter(e=>"longText"===e.primaryGroup),other:t.filter(e=>"other"===e.primaryGroup),overview:n,payloads:t.filter(e=>"payloads"===e.primaryGroup),timing:t.filter(e=>"timing"===e.primaryGroup)},{defaultFieldId:a.payloads[0]?.id??a.longText[0]?.id??a.overview[0]?.id??t[0]?.id??null,fields:t,groups:a,summaryFields:n}},[e,x]),C=w.trim().toLowerCase(),_=(0,r.useMemo)(()=>Object.fromEntries(i.map(e=>[e,T.groups[e].filter(e=>!C||e.searchText.includes(C))])),[T.groups,C]),O=T.groups.overview.length?"overview":y(_,T.defaultFieldId),E=T.groups.overview[0]?.id??T.defaultFieldId,[R,P]=(0,r.useState)(O),[L,F]=(0,r.useState)(E),z=(0,r.useMemo)(()=>S(R,_[R]),[_,R]),M=z.find(e=>e.id===L)?.id??z[0]?.id??null,$=T.fields.find(e=>e.id===M)??null;(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&c()}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[c]);let q=JSON.stringify(Object.fromEntries(e.map(e=>[e.name,x[e.name]??null])),null,2);return(0,t.jsx)("div",{className:"fixed inset-0 z-50 bg-[var(--ink)]/45 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"flex h-full flex-col bg-[#f7f3e8]",children:[(0,t.jsxs)("header",{className:"sticky top-0 z-20 border-b border-[var(--line)] bg-[#f7f3e8]/95 px-4 py-4 backdrop-blur sm:px-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Debug Workspace"}),(0,t.jsx)("h2",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:v}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:["Row ",g+1," of ",f," on the current page."]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{"aria-disabled":!a,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition",a?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:m,type:"button",children:"Previous Row"}),(0,t.jsx)("button",{"aria-disabled":!n,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition",n?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:u,type:"button",children:"Next Row"}),(0,t.jsx)(h,{idleLabel:"Copy Row JSON",value:q}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:c,type:"button",children:"Close"})]})]}),T.summaryFields.length?(0,t.jsx)("div",{className:"mt-5 grid gap-3 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6",children:T.summaryFields.map(e=>(0,t.jsx)(b,{field:e},e.id))}):null]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden px-4 py-4 sm:px-6 sm:py-5",children:(0,t.jsxs)("div",{className:"grid h-full min-h-0 gap-5 xl:grid-cols-[320px_minmax(0,1fr)_420px]",children:[(0,t.jsxs)("aside",{className:"flex h-full min-h-0 flex-col overflow-y-auto rounded-[30px] border border-[var(--line)] bg-white/88 p-4 pr-3 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("label",{className:"flex shrink-0 flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Search Fields"}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)]",onChange:e=>N(e.target.value),placeholder:"label, name, or value",value:w})]}),(0,t.jsx)("div",{className:"mt-4 flex shrink-0 gap-2 overflow-x-auto pb-1 lg:flex-col lg:overflow-visible",children:i.map(e=>{let r=_[e].length,n=R===e;return(0,t.jsxs)("button",{className:(0,l.cn)("inline-flex min-w-fit items-center justify-between gap-3 rounded-2xl border px-4 py-3 text-left transition lg:w-full",n?"border-[var(--accent)] bg-[var(--accent)]/12":"border-[var(--line)] bg-[var(--surface-soft)]/50 hover:bg-white"),onClick:()=>{P(e),F(S(e,_[e])[0]?.id??null)},type:"button",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-[var(--ink)]",children:o[e]}),(0,t.jsx)(s,{tone:n?"warning":"neutral",children:r})]},e)})}),(0,t.jsxs)("div",{className:"mt-4 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Navigation"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Choose a group here. The right panel lists sub fields for that group, and the middle panel shows the selected field value."})]})]}),(0,t.jsx)("section",{className:"min-h-0 rounded-[30px] border border-[var(--line)] bg-white/90 p-5 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:z.length?(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsx)("div",{className:"rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:(0,t.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:o[R]}),(0,t.jsxs)(s,{tone:"neutral",children:[z.length," fields"]})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"The selected field opens below. Use the right panel to switch sub fields without losing your place in the current row."})]})})}),$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5 flex flex-wrap items-start justify-between gap-4 border-b border-[var(--line)] pb-5",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:o[y(T.groups,$.id)]}),(0,t.jsx)(s,{tone:"neutral",children:$.column.dataType}),$.column.payloadKindHint?(0,t.jsx)(s,{tone:"neutral",children:$.column.payloadKindHint}):null,$.column.isNullable?(0,t.jsx)(s,{tone:"neutral",children:"nullable"}):null]}),(0,t.jsx)("h3",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:$.column.label}),(0,t.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:$.column.name})]})}),(0,t.jsx)("div",{className:"mt-5 min-h-0 flex-1 overflow-auto pr-1",children:(0,t.jsx)(j,{field:$},$.id)})]}):(0,t.jsx)("div",{className:"mt-5 grid min-h-[320px] place-items-center rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)]/40 px-6 py-12 text-center text-sm leading-7 text-[var(--muted)]",children:"Select a field above to open it in the viewer."})]}):(0,t.jsxs)("div",{className:"grid h-full place-items-center rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)]/40 px-6 py-12 text-center text-sm leading-7 text-[var(--muted)]",children:["No ",o[R].toLowerCase()," fields match the current search."]})}),(0,t.jsxs)("aside",{className:"flex min-h-0 flex-col overflow-hidden rounded-[30px] border border-[var(--line)] bg-white/90 p-4 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("div",{className:"shrink-0 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"overview"===R?"Sub Fields":o[R]}),(0,t.jsxs)(s,{tone:"neutral",children:[z.length," fields"]})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Choose a sub field here. The selected field opens in the middle panel with the appropriate scalar, long-text, JSON, or XML viewer."}),(0,t.jsx)("div",{className:"mt-4 grid max-h-[260px] gap-2 overflow-auto pr-1",children:z.length?z.map(e=>{let r=M===e.id;return(0,t.jsxs)("button",{className:(0,l.cn)("rounded-[20px] border px-3 py-3 text-left transition",r?"border-[var(--accent)] bg-white shadow-[0_12px_28px_rgba(19,46,52,0.08)]":"border-[var(--line)] bg-white/70 hover:bg-white"),onClick:()=>F(e.id),type:"button",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.column.label}),(0,t.jsx)(s,{tone:"neutral",children:e.column.dataType}),e.column.payloadKindHint?(0,t.jsx)(s,{tone:"neutral",children:e.column.payloadKindHint}):null]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:e.column.name}),(0,t.jsx)("p",{className:"mt-2 truncate text-sm text-[var(--muted)]",title:e.valueText,children:p(e.column,e.value)})]},e.id)}):(0,t.jsx)("div",{className:"grid min-h-[200px] place-items-center px-4 py-6 text-center text-sm leading-7 text-[var(--muted)]",children:"No sub fields match the current search."})})]}),(0,t.jsxs)("div",{className:"mt-4 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Panel Role"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"This panel always shows sub fields for the selected group. Search on the left narrows these options, and the middle panel displays the selected value."})]})]})]})})]})})}function T({page:e,pageSize:t,table:r}){let n=new URLSearchParams;r&&n.set("table",r),e&&e>1&&n.set("page",String(e)),t&&50!==t&&n.set("pageSize",String(t));let a=n.toString();return a?`/admin/tables?${a}`:"/admin/tables"}function C(e,t){if(!e)return t;let r=Number(e);return Number.isInteger(r)&&r>0?r:t}function _(e){let t=new URLSearchParams(window.location.search);return{page:C(t.get("page"),1),pageSize:Math.min(100,C(t.get("pageSize"),e)),table:t.get("table")}}function O(e){let t=function(e){switch(e.presentationKind){case"boolean":return 110;case"number":return 140;case"datetime":return 190;case"longText":return 280;default:return 220}}(e);return{maxWidth:`${t}px`,minWidth:`${t}px`,width:`${t}px`}}async function E(e){await navigator.clipboard.writeText(e)}function R(e,t){return"datetime"===e.valueType?(0,l.formatUtcDateTime)("string"==typeof t?t:null):(0,l.displayValue)(t)}function P({column:e,value:n}){let a,i=(a=function(e,t){if("json"===e.payloadKindHint||"xml"===e.payloadKindHint)return e.payloadKindHint;if("string"!=typeof t)return null;let r=t.trim();if(!r)return null;if(r.startsWith("{")||r.startsWith("["))try{return JSON.parse(r),"json"}catch{return null}return(r.startsWith("<")||r.startsWith("<?xml"))&&/<[A-Za-z_]/.test(r)?"xml":null}(e,n))&&"string"==typeof n?m(a,n,null):null,[o,d]=(0,r.useState)("Copy"),[c,u]=(0,r.useState)(i?.parseStatus==="formatted"?"formatted":"raw"),x=R(e,n),p=i&&"formatted"===c&&i.pretty?i.pretty:i?.raw??"",f=i?p:null==n?"":"datetime"===e.valueType&&"string"==typeof n?n:String(n),h="longText"===e.presentationKind||!!i;async function b(){try{await E(f),d("Copied"),window.setTimeout(()=>d("Copy"),1200)}catch{d("Failed"),window.setTimeout(()=>d("Copy"),1200)}}return(0,t.jsxs)("section",{className:"rounded-[22px] border border-[var(--line)] bg-white/90 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.label}),(0,t.jsx)(s,{tone:"neutral",children:e.dataType}),i?(0,t.jsx)(s,{tone:"neutral",children:i.kind}):null,e.isNullable?(0,t.jsx)(s,{tone:"neutral",children:"nullable"}):null]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:e.name})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition","formatted"===c?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] text-[var(--ink)] hover:bg-[var(--surface-soft)]"),disabled:"formatted"!==i.parseStatus,onClick:()=>u("formatted"),type:"button",children:"Formatted"}),(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition","raw"===c?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] text-[var(--ink)] hover:bg-[var(--surface-soft)]"),onClick:()=>u("raw"),type:"button",children:"Raw"})]}):null,(0,t.jsx)("button",{className:"inline-flex h-9 items-center rounded-full border border-[var(--line-strong)] px-4 text-xs font-semibold uppercase tracking-[0.16em] text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:b,type:"button",children:o})]})]}),i?.parseStatus==="invalid"?(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-amber-900",children:"Formatting failed for this value. Raw content is shown exactly as stored."}):null,(0,t.jsx)("div",{className:(0,l.cn)("mt-3 rounded-[18px] text-sm text-[var(--ink)]",h?"max-h-[320px] overflow-y-auto border border-[var(--line)] bg-[var(--surface-soft)]/55 px-3 py-3 whitespace-pre-wrap break-words":"break-words leading-6"),children:i?p||"—":x})]})}e.s(["AdminTableExplorer",0,function({browser:e,preview:n}){let[a,i]=(0,r.useState)(""),[o,d]=(0,r.useState)(e),[c,u]=(0,r.useState)(n),[m,x]=(0,r.useState)(n.selectedTable?.qualifiedName??e.defaultSelectedTable),[p,f]=(0,r.useState)(null),[h,b]=(0,r.useState)(!1),[g,v]=(0,r.useState)(""),[w,j]=(0,r.useState)(null),[y,N]=(0,r.useState)(null),[S,C]=(0,r.useState)(!1),[E,P]=(0,r.useState)(!1),L=(0,r.useDeferredValue)(a),F=(0,r.useRef)(0),z=(0,r.useRef)(n.pageSize),M=(0,r.useRef)(null),$=L.trim().toLowerCase(),q=o.tables.filter(e=>!$||`${e.schema}.${e.name}`.toLowerCase().includes($)),D=o.tables.find(e=>e.qualifiedName===m)??c.selectedTable,U=null===p?null:c.rows[p]??null,A=Math.max(1,Math.ceil(c.total/c.pageSize)),K=Math.min(c.page,A),I=K>1,W=K<A,H=0===c.total?0:(K-1)*c.pageSize+1,J=0===c.total?0:Math.min(K*c.pageSize,c.total),B=!!D&&g.trim()===D?.qualifiedName;async function V(e,t="push",r={}){let n=++F.current;P(!0),N(null),f(null),b(!1),v(""),j(null),x(e.table??o.defaultSelectedTable),t&&window.history["replace"===t?"replaceState":"pushState"]({},"",T(e));try{let[t,a]=await Promise.all([fetch(function({page:e,pageSize:t,table:r}){let n=new URLSearchParams;return r&&n.set("table",r),e&&n.set("page",String(e)),t&&n.set("pageSize",String(t)),`/api/admin/tables/rows?${n.toString()}`}(e),{cache:"no-store"}),r.refreshBrowserState?fetch("/api/admin/tables",{cache:"no-store"}):Promise.resolve(null)]),l=await t.json().catch(()=>null),s=a?await a.json().catch(()=>null):null;if(!t.ok){let e=l&&"error"in l&&l.error?l.error:"Unable to load the selected table preview.";throw Error(e)}if(a&&(!a.ok||!s||"error"in s)){let e=s&&"error"in s&&s.error?s.error:"Unable to refresh the table list.";throw Error(e)}if(n!==F.current)return;let i=a?s:o;a&&d(i),u(l),x(l.selectedTable?.qualifiedName??i.defaultSelectedTable)}catch(e){if(n!==F.current)return;N(e instanceof Error?e.message:"Unable to load the selected table preview.")}finally{n===F.current&&P(!1)}}function G(e){let t=c.selectedTable?.qualifiedName??null;(e.page!==c.page||e.pageSize!==c.pageSize||e.table!==t)&&V(e)}async function X(){if(!D||!B)return;let e=D.qualifiedName;C(!0),N(null),j(null);try{let t=await fetch("/api/admin/tables/rows",{body:JSON.stringify({confirmationTable:g.trim(),pageSize:c.pageSize,table:e}),cache:"no-store",headers:{"content-type":"application/json"},method:"DELETE"}),r=await t.json().catch(()=>null);if(!t.ok)throw Error(r&&"error"in r&&r.error?r.error:"Unable to delete rows from the selected table.");d(r.browser),u(r.preview),x(r.preview.selectedTable?.qualifiedName??r.browser.defaultSelectedTable),f(null),b(!1),v(""),j(`Deleted ${r.deletedRowCount.toLocaleString()} row${1===r.deletedRowCount?"":"s"} from ${e}.`)}catch(e){N(e instanceof Error?e.message:"Unable to delete rows from the selected table.")}finally{C(!1)}}return z.current=c.pageSize,M.current=V,(0,r.useEffect)(()=>{function e(){M.current?.(_(z.current),null)}return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]),(0,r.useEffect)(()=>{let e=_(c.pageSize);(e.page!==c.page||e.pageSize!==c.pageSize)&&window.history.replaceState({},"",T({page:c.page,pageSize:c.pageSize,table:c.requestedTable??c.selectedTable?.qualifiedName??null}))},[c.page,c.pageSize,c.requestedTable,c.selectedTable]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid h-full min-h-0 grid-rows-[minmax(0,280px)_minmax(0,1fr)] gap-6 overflow-hidden xl:grid-cols-[320px_minmax(0,1fr)] xl:grid-rows-1",children:[(0,t.jsxs)("aside",{className:"flex min-h-0 flex-col overflow-hidden rounded-[32px] border border-[var(--line)] bg-white/88 p-5 shadow-[0_28px_70px_rgba(19,46,52,0.06)]",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Database"}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:o.databaseLabel}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:[o.tables.length," discovered table",1===o.tables.length?"":"s",". Latest discovery ",(0,l.formatUtcDateTime)(o.latestDiscoveryAt),"."]}),(0,t.jsxs)("label",{className:"mt-5 flex shrink-0 flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Search Tables"}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)]",onChange:e=>i(e.target.value),placeholder:"schema.table",value:a})]}),(0,t.jsx)("div",{className:"mt-5 grid min-h-0 flex-1 gap-2 overflow-y-auto pr-1",children:q.length?q.map(e=>{let r=m===e.qualifiedName;return(0,t.jsxs)("button",{className:(0,l.cn)("rounded-[24px] border px-4 py-3 text-left transition",r?"border-[var(--accent)] bg-[var(--accent)]/10":"border-[var(--line)] bg-[var(--surface-soft)] hover:bg-white"),onClick:()=>G({page:1,pageSize:c.pageSize,table:e.qualifiedName}),type:"button",children:[(0,t.jsxs)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:[e.schema,".",e.name]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,t.jsxs)(s,{tone:r?"warning":"neutral",children:[e.approxRowCount.toLocaleString()," rows"]}),(0,t.jsxs)(s,{tone:"neutral",children:[e.fieldCount," columns"]})]})]},e.qualifiedName)}):(0,t.jsx)("p",{className:"rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-6 text-sm text-[var(--muted)]",children:"No discovered tables matched the current search."})})]}),(0,t.jsxs)("section",{className:"flex min-h-0 flex-col overflow-hidden rounded-[32px] border border-[var(--line)] bg-white/88 p-5 shadow-[0_28px_70px_rgba(19,46,52,0.06)]",children:[y?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-900",children:y}):null,w?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-900",children:w}):null,c.staleSelection?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-amber-300/70 bg-amber-50/90 px-4 py-3 text-sm text-amber-950",children:"The requested table is no longer available in the current discovery snapshot or the source schema changed. Rerun discovery to refresh the table list."}):null,D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col gap-4 border-b border-[var(--line)] pb-5 lg:flex-row lg:items-start lg:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Table Preview"}),(0,t.jsx)("h2",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:D.qualifiedName}),(0,t.jsxs)("p",{className:"mt-3 max-w-3xl text-sm leading-7 text-[var(--muted)]",children:["Preview for the selected discovered table. The grid shows page"," ",c.page," with ",c.pageSize," rows per request."]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-3 lg:items-end",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 lg:justify-end",children:[(0,t.jsxs)(s,{tone:"neutral",children:[D.approxRowCount.toLocaleString()," approx rows"]}),(0,t.jsxs)(s,{tone:"neutral",children:["fieldCount"in D?D.fieldCount:c.columns.length," ","columns"]}),(0,t.jsxs)(s,{tone:"neutral",children:["Discovery ",(0,l.formatCompactUtcDateTime)(c.latestDiscoveryAt)]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 lg:justify-end",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)] disabled:opacity-50",disabled:E||S,onClick:function(){let e=c.selectedTable?.qualifiedName??c.requestedTable??m??null;V({page:K,pageSize:c.pageSize,table:e},null,{refreshBrowserState:!0})},type:"button",children:E?"Refreshing...":"Refresh Table"}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-rose-300 bg-rose-50 px-4 text-sm font-semibold text-rose-900 transition hover:bg-rose-100 disabled:opacity-50",disabled:E||S||c.staleSelection,onClick:()=>{b(!0),v(""),j(null)},type:"button",children:"Delete All"})]})]})]}),h?(0,t.jsxs)("div",{className:"mt-5 shrink-0 rounded-[24px] border border-rose-200 bg-rose-50 px-4 py-4 text-sm text-rose-950",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsxs)("span",{className:"font-semibold",children:["Type ",D.qualifiedName," to delete all rows."]}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-rose-300 bg-white px-4 text-sm text-[var(--ink)] outline-none transition focus:border-rose-500 disabled:opacity-60",disabled:S,onChange:e=>v(e.target.value),value:g})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-rose-300 bg-white px-4 text-sm font-semibold text-rose-950 transition hover:bg-rose-100 disabled:opacity-50",disabled:S,onClick:()=>{b(!1),v("")},type:"button",children:"Cancel"}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full bg-rose-700 px-4 text-sm font-semibold text-white transition hover:bg-rose-800 disabled:opacity-50",disabled:!B||S,onClick:()=>void X(),type:"button",children:S?"Deleting...":"Delete All Rows"})]})]}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-rose-900",children:"This permanently removes every row from the selected table and keeps the table structure in place."})]}):null,(0,t.jsx)("div",{className:"mt-5 min-h-0 flex-1 overflow-hidden",children:E?(0,t.jsx)("div",{className:"grid h-full place-items-center rounded-[28px] border border-[var(--line)] bg-white/90",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Loading"}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:["Fetching rows for ",D.qualifiedName,"..."]})]})}):c.columns.length?(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-[var(--muted)]",children:"Use Open to launch the debug workspace. The grid stays compact so long text never hides the rest of the page."}),U?(0,t.jsx)(s,{tone:"warning",children:"Debug workspace open"}):null]}),(0,t.jsx)("div",{className:"mt-4 min-h-0 flex-1 overflow-hidden rounded-[28px] border border-[var(--line)] bg-white/90",children:(0,t.jsx)("div",{className:"h-full overflow-auto",children:(0,t.jsxs)("table",{className:"w-max min-w-full border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:[(0,t.jsx)("th",{className:"sticky left-0 top-0 z-30 border-b border-[var(--line)] bg-[var(--surface-soft)] px-4 py-3 align-bottom shadow-[10px_0_24px_rgba(19,46,52,0.08)]",children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{children:"Debug"}),(0,t.jsx)("span",{className:"text-[10px] font-medium normal-case tracking-normal text-[var(--muted)]",children:"open workspace"})]})}),c.columns.map(e=>(0,t.jsx)("th",{className:"sticky top-0 z-20 border-b border-[var(--line)] bg-[var(--surface-soft)]/95 px-4 py-3 align-bottom backdrop-blur",style:O(e),children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"truncate",children:e.label}),(0,t.jsxs)("span",{className:"text-[10px] font-medium normal-case tracking-normal text-[var(--muted)]",children:[e.name," - ",e.dataType]})]})},e.name))]})}),(0,t.jsx)("tbody",{children:c.rows.length?c.rows.map((e,r)=>{let n=p===r;return(0,t.jsxs)("tr",{"aria-selected":n,className:(0,l.cn)("group border-t border-[var(--line)] text-sm text-[var(--ink)] transition",n?"bg-[var(--accent)]/10":"hover:bg-[var(--surface-soft)]/70"),children:[(0,t.jsx)("td",{className:(0,l.cn)("sticky left-0 z-20 px-4 py-3 align-top shadow-[10px_0_24px_rgba(19,46,52,0.08)]",n?"bg-[var(--accent)]/10":"bg-white group-hover:bg-[var(--surface-soft)]/70"),children:(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition",n?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] bg-white text-[var(--ink)] hover:bg-[var(--surface-soft)]"),onClick:()=>{f(r)},type:"button",children:"Open"})}),c.columns.map(r=>{var n;return(0,t.jsx)("td",{className:"px-4 py-3 align-top",style:O(r),children:(0,t.jsx)("div",{className:"truncate whitespace-nowrap",title:R(r,e[r.name]),children:(n=e[r.name],"datetime"===r.valueType?(0,l.formatCompactUtcDateTime)("string"==typeof n?n:null):(0,l.displayValue)(n))})},r.name)})]},`${D.qualifiedName}-${c.page}-${r}`)}):(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-4 py-12 text-center text-sm text-[var(--muted)]",colSpan:c.columns.length+1,children:"This table did not return any rows for the current page."})})})]})})})]}):(0,t.jsx)("div",{className:"grid h-full place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-10 text-center text-sm text-[var(--muted)]",children:"No columns were available for the selected table."})}),(0,t.jsxs)("div",{className:"mt-5 flex shrink-0 flex-col gap-3 rounded-[24px] border border-[var(--line)] bg-white/80 px-4 py-4 shadow-[0_16px_40px_rgba(19,46,52,0.04)] sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,t.jsxs)("p",{className:"text-sm text-[var(--muted)]",children:["Showing ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:H})," to"," ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:J})," of"," ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:c.total})," records"]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-[var(--muted)]",children:[(0,t.jsx)("span",{children:"Page size"}),(0,t.jsxs)("select",{className:"h-10 rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)] disabled:opacity-60",disabled:E,onChange:e=>G({page:1,pageSize:Number(e.target.value),table:D.qualifiedName}),value:String(c.pageSize),children:[(0,t.jsx)("option",{value:"25",children:"25 Rows"}),(0,t.jsx)("option",{value:"50",children:"50 Rows"}),(0,t.jsx)("option",{value:"100",children:"100 Rows"})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{"aria-disabled":!I||E,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] px-4 text-sm font-medium text-[var(--ink)] transition",I&&!E?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:()=>G({page:Math.max(1,K-1),pageSize:c.pageSize,table:D.qualifiedName}),type:"button",children:"Previous"}),(0,t.jsxs)("p",{className:"text-sm font-medium text-[var(--ink)]",children:["Page ",K," / ",A]}),(0,t.jsx)("button",{"aria-disabled":!W||E,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] px-4 text-sm font-medium text-[var(--ink)] transition",W&&!E?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:()=>G({page:Math.min(A,K+1),pageSize:c.pageSize,table:D.qualifiedName}),type:"button",children:"Next"})]})]})]}):(0,t.jsxs)("div",{className:"grid min-h-0 flex-1 place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"No Tables Available"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Discovery completed, but no user tables were stored in the snapshot. Rerun discovery after confirming the connection points at the correct database."})]})]})]}),U&&c.columns.length&&D?(0,t.jsx)(k,{columns:c.columns,hasNextRow:null!==p&&p<c.rows.length-1,hasPreviousRow:null!==p&&p>0,onClose:function(){f(null)},onNextRow:function(){f(e=>null===e?e:Math.min(c.rows.length-1,e+1))},onPreviousRow:function(){f(e=>null===e?e:Math.max(0,e-1))},row:U,rowCount:c.rows.length,rowIndex:p??0,tableName:D.qualifiedName},`${D.qualifiedName}-${c.page}-${p??0}`):null]})},"InspectorField",0,P,"RowInspector",0,function({columns:e,onClose:n,row:a,rowIndex:l}){let[s,i]=(0,r.useState)("Copy Row JSON");async function o(){try{await E(!a?"":JSON.stringify(Object.fromEntries(e.map(e=>[e.name,a[e.name]??null])),null,2)),i("Copied"),window.setTimeout(()=>i("Copy Row JSON"),1200)}catch{i("Failed"),window.setTimeout(()=>i("Copy Row JSON"),1200)}}return(0,t.jsxs)("div",{className:"flex h-full flex-col rounded-[28px] border border-[var(--line)] bg-[var(--surface-soft)]/65 p-4 shadow-[0_18px_45px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-[var(--line)] pb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Row Inspector"}),(0,t.jsx)("h3",{className:"mt-2 text-xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:a&&null!==l?`Row ${l+1}`:"Select a row"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-[var(--muted)]",children:a?"Full values for the selected row. Long text is expanded here without affecting the grid.":"Click a row in the grid to inspect all column values without expanding the table layout."})]}),a?(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:o,type:"button",children:s}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:n,type:"button",children:"Close"})]}):null]}),a?(0,t.jsx)("div",{className:"mt-4 grid min-h-0 gap-3 overflow-y-auto pr-1",children:e.map(e=>(0,t.jsx)(P,{column:e,value:a[e.name]},e.name))}):(0,t.jsx)("div",{className:"mt-4 grid flex-1 place-items-center rounded-[22px] border border-dashed border-[var(--line-strong)] bg-white/75 px-5 py-10 text-center",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Ready To Inspect"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"The main grid stays compact for scanning. Select any row to read full text, timestamps, numbers, and nullable values here."})]})})]})}],16201)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=e.r(32061);function a({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=e.r(43476),a=e.r(74080),l=e.r(63599),s=e.r(9885),i=e.r(43369);function o({moduleIds:e}){if("u">typeof window)return null;let t=l.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,i.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,a.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let n=e.r(43476),a=e.r(71645),l=e.r(67585),s=e.r(52157);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(i)),d=t.loading;function c(e){let i=d?(0,n.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?a.Suspense:a.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...o?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(55682)._(e.r(69093));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,n.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34836,(e,t,r)=>{"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),r.ParsingError=void 0;class a extends Error{constructor(e,t){super(e),this.cause=t}}function l(){return o(!1)||function(){let e=c(/^([^<]+)/);if(e){let t={type:"Text",content:e[1]};return{excluded:!1===n.options.filter(t),node:t}}}()||d()||function(){if(n.xml.startsWith("<![CDATA[")){let e=n.xml.indexOf("]]>");if(e>-1){let t=e+3,r={type:"CDATA",content:n.xml.substring(0,t)};return n.xml=n.xml.slice(t),{excluded:!1===n.options.filter(r),node:r}}}}()||i()}function s(){return c(/\s*/),o(!0)||d()||function(){let e=c(/^<!DOCTYPE\s+\S+\s+SYSTEM[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s+PUBLIC[^>]*>/)||c(/^<!DOCTYPE\s+\S+\s*\[[^\]]*]>/)||c(/^<!DOCTYPE\s+\S+\s*>/);if(e){let t={type:"DocumentType",content:e[0]};return{excluded:!1===n.options.filter(t),node:t}}}()||i()}function i(){let e=c(/^<\?([\w-:.]+)\s*/);if(!e)return;let t={name:e[1],type:"ProcessingInstruction",content:""},r=n.xml.indexOf("?>");if(r>-1)t.content=n.xml.substring(0,r).trim(),n.xml=n.xml.slice(r);else throw new a("Failed to parse XML","ProcessingInstruction closing tag not found");return c(/\?>/),{excluded:!1===n.options.filter(t),node:t}}function o(e){let t=c(/^<([^?!</>\s]+)\s*/);if(!t)return;let r={type:"Element",name:t[1],attributes:{},children:[]},s=!e&&!1===n.options.filter(r);for(;!(0===n.xml.length||u(">")||u("?>")||u("/>"));){let e=function(){let e=c(/([^=]+)\s*=\s*("[^"]*"|'[^']*'|[^>\s]+)\s*/);if(e)return{name:e[1].trim(),value:e[2].trim().replace(/^['"]|['"]$/g,"")}}();if(!e)return;r.attributes[e.name]=e.value}if(c(/^\s*\/>/))return r.children=null,{excluded:s,node:r};c(/\??>/);let i=l();for(;i;)i.excluded||r.children.push(i.node),i=l();if(n.options.strictMode){let e=`</${r.name}>`;if(n.xml.startsWith(e))n.xml=n.xml.slice(e.length);else throw new a("Failed to parse XML",`Closing tag not matching "${e}"`)}else c(/^<\/[\w-:.\u00C0-\u00FF]+\s*>/);return{excluded:s,node:r}}function d(){let e=c(/^<!--[\s\S]*?-->/);if(e){let t={type:"Comment",content:e[0]};return{excluded:!1===n.options.filter(t),node:t}}}function c(e){let t=n.xml.match(e);if(t)return n.xml=n.xml.slice(t[0].length),t}function u(e){return 0===n.xml.indexOf(e)}function m(e,t={}){let r;e=e.trim();let l=t.filter||(()=>!0);n={xml:e,options:Object.assign(Object.assign({},t),{filter:l,strictMode:!0===t.strictMode})};let o=i(),d=[],c=s();for(;c;){if("Element"===c.node.type){if(r)throw Error("Found multiple root nodes");r=c.node}c.excluded||d.push(c.node),c=s()}if(!r)throw new a("Failed to parse XML","Root Element not found");if(0!==n.xml.length)throw new a("Failed to parse XML","Not Well-Formed XML");return{declaration:o?o.node:null,root:r,children:d}}r.ParsingError=a,t.exports=m,r.default=m},54499,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=n(e.r(34836));function l(e){let t;if(e.options.indentation||e.options.lineSeparator)for(e.content+=e.options.lineSeparator,t=0;t<e.level;t++)e.content+=e.options.indentation}function s(e,t){e.content+=t}function i(e,t){t.content.length>0&&l(t),s(t,"<?"+e.name),s(t," "+e.content.trim()),s(t,"?>")}function o(e,t={}){t.indentation="indentation"in t?t.indentation:" ",t.collapseContent=!0===t.collapseContent,t.lineSeparator="lineSeparator"in t?t.lineSeparator:"\r\n",t.whiteSpaceAtEndOfSelfclosingTag=!0===t.whiteSpaceAtEndOfSelfclosingTag,t.throwOnFailure=!1!==t.throwOnFailure,t.attributeQuotes="attributeQuotes"in t?t.attributeQuotes:"double";try{let r=(0,a.default)(e,{filter:t.filter,strictMode:t.strictMode}),n={content:"",level:0,options:t,path:[]};if(r.declaration&&i(r.declaration,n),r.children.forEach(function(e){!function e(t,r,n){if("Element"===t.type)!function(t,r,n){var a,i,o,d;if(r.path.push(t.name),!n&&r.content.length>0&&l(r),s(r,"<"+t.name),a=r,Object.keys(i=t.attributes).forEach(function(e){if("single"===a.options.attributeQuotes){let t=i[e].replace(/'/g,"'");s(a," "+e+"='"+t+"'")}else{let t=i[e].replace(/"/g,""");s(a," "+e+'="'+t+'"')}}),null===t.children||r.options.forceSelfClosingEmptyTag&&0===t.children.length){let e=r.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";s(r,e)}else if(0===t.children.length)s(r,"></"+t.name+">");else{let a=t.children;s(r,">"),r.level++;let i="preserve"===t.attributes["xml:space"]||n,c=!1;if(!i&&r.options.ignoredPaths){let e,t;o=r.path,d=r.options.ignoredPaths,e="/"+o.join("/"),t=o[o.length-1],i=c=d.includes(t)||d.includes(e)}if(!i&&r.options.collapseContent){let e=!1,t=!1,r=!1;a.forEach(function(l,s){"Text"===l.type?(l.content.includes("\n")?(t=!0,l.content=l.content.trim()):0!==s&&s!==a.length-1||n||0!==l.content.trim().length||(l.content=""),(l.content.trim().length>0||1===a.length)&&(e=!0)):"CDATA"===l.type?e=!0:r=!0}),!e||r&&t||(i=!0)}a.forEach(function(t){e(t,r,n||i)}),r.level--,n||i||l(r),c&&function(e){let t;for(t=0,e.content=e.content.replace(/ +$/,"");t<e.level;t++)e.content+=e.options.indentation}(r),s(r,"</"+t.name+">")}r.path.pop()}(t,r,n);else if("ProcessingInstruction"===t.type)i(t,r);else if("string"==typeof t.content){var a=t.content,o=r,d=n;if(!d){let e=a.trim();o.options.lineSeparator?a=e:0===e.length&&(a=e)}a.length>0&&(!d&&o.content.length>0&&l(o),s(o,a))}else throw Error("Unknown node type: "+t.type)}(e,n,!1)}),!t.lineSeparator)return n.content;return n.content.replace(/\r\n/g,"\n").replace(/\n/g,t.lineSeparator)}catch(r){if(t.throwOnFailure)throw r;return e}}o.minify=(e,t={})=>o(e,Object.assign(Object.assign({},t),{indentation:"",lineSeparator:""})),t.exports=o,r.default=o},16201,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=(0,e.i(70703).default)(()=>e.A(99215).then(e=>e.ReadOnlyCodeViewerClient),{loadableGenerated:{modules:[12361]},loading:()=>(0,t.jsx)("div",{className:"grid place-items-center rounded-[28px] border border-[var(--line)] bg-white/90 px-5 py-12 text-sm text-[var(--muted)] shadow-[0_18px_45px_rgba(19,46,52,0.05)]",children:"Loading viewer..."}),ssr:!1});function a(e){return(0,t.jsx)(n,{...e})}var l=e.i(55382);function s({children:e,tone:r="neutral"}){return(0,t.jsx)("span",{className:(0,l.cn)("inline-flex items-center rounded-full border px-2.5 py-1 text-xs font-semibold uppercase tracking-[0.14em]",{danger:"border-rose-200 bg-rose-50 text-rose-800",neutral:"border-slate-200 bg-white/80 text-slate-700",success:"border-emerald-200 bg-emerald-50 text-emerald-800",warning:"border-amber-200 bg-amber-50 text-amber-800"}[r]),children:e})}let i=["overview","payloads","identifiers","timing","flags","longText","other"],o={flags:"Flags",identifiers:"Identifiers",longText:"Long Text",other:"Other",overview:"Overview",payloads:"Payloads",timing:"Timing"};function d(e,t,r){let n=e.find(e=>!r.has(e.id)&&t.some(t=>t.test(e.column.name)||t.test(e.column.label)));return n&&r.add(n.id),n??null}var c=e.i(67034),u=e.i(54499);function m(e,t,r){let n=null==t?null:String(t),a=function(e,t){if("number"==typeof e&&Number.isFinite(e))return e;if("bigint"==typeof e)return Number(e);if("string"==typeof e&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}return t?void 0!==c.Buffer?c.Buffer.byteLength(t,"utf16le"):2*t.length:0}(r,n);if(!n||!n.trim())return{kind:e,parseError:null,parseStatus:"empty",pretty:null,raw:n,sizeBytes:a};try{if("text"===e)return{kind:e,parseError:null,parseStatus:"formatted",pretty:n,raw:n,sizeBytes:a};let t="json"===e?JSON.stringify(JSON.parse(n),null,2):(0,u.default)(n,{collapseContent:!0,indentation:" ",lineSeparator:"\n"});return{kind:e,parseError:null,parseStatus:"formatted",pretty:t,raw:n,sizeBytes:a}}catch(t){return{kind:e,parseError:t instanceof Error?t.message:"Unable to format payload.",parseStatus:"invalid",pretty:null,raw:n,sizeBytes:a}}}function p(e,t){if("json"===e.payloadKindHint||"xml"===e.payloadKindHint)return e.payloadKindHint;if("string"!=typeof t)return null;let r=t.trim();if(!r)return null;if((r.startsWith("{")||r.startsWith("["))&&/payload|body|request|response|content/i.test(e.name))try{return JSON.parse(r),"json"}catch{return null}return(r.startsWith("<")||r.startsWith("<?xml"))&&/payload|body|request|response|content/i.test(e.name)?"xml":null}function x(e,t){return"datetime"===e.valueType?(0,l.formatUtcDateTime)("string"==typeof t?t:null):(0,l.displayValue)(t)}async function f(e){await navigator.clipboard.writeText(e)}function h({className:e,idleLabel:n,value:a}){let[s,i]=(0,r.useState)(n);async function o(){try{await f(a),i("Copied"),window.setTimeout(()=>i(n),1200)}catch{i("Failed"),window.setTimeout(()=>i(n),1200)}}return(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",e),onClick:o,type:"button",children:s})}function b({field:e}){return(0,t.jsxs)("div",{className:"rounded-[22px] border border-[var(--line)] bg-white/92 px-4 py-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:e.column.label}),(0,t.jsx)("p",{className:"mt-2 truncate text-sm font-medium text-[var(--ink)]",title:e.valueText,children:x(e.column,e.value)})]})}function g({column:e,value:r}){let n=p(e,r),l=n&&"string"==typeof r?m(n,r,null):null;return l?(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(s,{tone:"neutral",children:l.kind}),(0,t.jsx)(s,{tone:"neutral",children:"formatted"===l.parseStatus?"formatted":"raw only"})]}),(0,t.jsx)(h,{idleLabel:"Copy Value",value:"formatted"===l.parseStatus?l.pretty??l.raw??"":l.raw??""})]}),"invalid"===l.parseStatus?(0,t.jsx)("div",{className:"rounded-[20px] border border-amber-300/70 bg-amber-50 px-4 py-3 text-sm text-amber-950",children:"Formatting failed. Raw content is shown exactly as stored."}):null,(0,t.jsx)(a,{defaultModeId:"formatted"===l.parseStatus?"formatted":"raw",height:"min(64vh, 720px)",language:"text"===l.kind?"plaintext":l.kind,modes:[{disabled:"formatted"!==l.parseStatus,id:"formatted",label:"Formatted",value:l.pretty??l.raw??""},{id:"raw",label:"Raw",value:l.raw??""}]},`${e.name}-${l.parseStatus}`)]}):null}function v({value:e}){let r=null==e?"":String(e);return(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(h,{idleLabel:"Copy Value",value:r})}),(0,t.jsx)(a,{height:"min(64vh, 720px)",language:"plaintext",modes:[{id:"raw",label:"Value",value:r}]},r)]})}function w({column:e,value:r}){return(0,t.jsxs)("div",{className:"grid gap-5",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(h,{idleLabel:"Copy Value",value:null==r?"":String(r)})}),null==r||""===r?(0,t.jsx)("div",{className:"grid min-h-[280px] place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-white/70 px-6 py-10 text-center text-sm leading-7 text-[var(--muted)]",children:"This field is empty for the selected row."}):(0,t.jsxs)("div",{className:"rounded-[28px] border border-[var(--line)] bg-white/94 p-6 shadow-[0_18px_45px_rgba(19,46,52,0.05)]",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Formatted Value"}),(0,t.jsx)("div",{className:"mt-4 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)] break-words",children:x(e,r)}),(0,t.jsxs)("div",{className:"mt-6 rounded-[20px] border border-[var(--line)] bg-[var(--surface-soft)]/65 p-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Raw Value"}),(0,t.jsx)("p",{className:"mt-3 break-words font-mono text-sm leading-7 text-[var(--ink)]",children:String(r)})]})]})]})}function j({field:e}){return p(e.column,e.value)?(0,t.jsx)(g,{column:e.column,value:e.value}):"longText"===e.column.presentationKind?(0,t.jsx)(v,{value:e.value}):(0,t.jsx)(w,{column:e.column,value:e.value})}function y(e,t){return t?i.find(r=>e[r].some(e=>e.id===t))??"overview":"overview"}function N(e,t){let r=`${t.column.label} ${t.column.name}`.toLowerCase();if("payloads"===e){if(/request/.test(r))return 0;if(/response/.test(r))return 1;if(/xml/.test(r))return 2;if(/json/.test(r))return 3}return 10}function S(e,t){return[...t].sort((t,r)=>{let n=N(e,t)-N(e,r);return 0!==n?n:t.column.label.localeCompare(r.column.label)})}function k({columns:e,hasNextRow:n,hasPreviousRow:a,onClose:c,onNextRow:u,onPreviousRow:m,row:p,rowCount:f,rowIndex:g,tableName:v}){let[w,N]=(0,r.useState)(""),T=(0,r.useMemo)(()=>{let t,r,n,a;return n=[d(t=e.map(e=>{let t=p[e.name]??null,r=null==t?"":"boolean"==typeof t?t?"true":"false":String(t);return{column:e,id:e.name,primaryGroup:function(e){let t;return(t=`${e.name} ${e.label}`.toLowerCase(),/time|date|duration|latency|elapsed/.test(t)?"json"===e.payloadKindHint||"xml"===e.payloadKindHint:"json"===e.payloadKindHint||"xml"===e.payloadKindHint||/payload|body|request|response|content/i.test(t))?"payloads":/id|guid|uuid|key|reference|correlation|trace/i.test(e.name)?"identifiers":"datetime"===e.valueType||/time|date|duration|latency|elapsed/i.test(e.name)?"timing":"boolean"===e.valueType||/^(is|has|can|should)/i.test(e.name)?"flags":"longText"===e.presentationKind?"longText":"other"}(e),searchText:`${e.label} ${e.name} ${r}`.toLowerCase(),value:t,valueText:r}}),[/(^id$|id$|guid|uuid|key|record)/i],r=new Set),d(t,[/time|date|timestamp|occurred|created|updated/i],r),d(t,[/status|state|error|failed|success|severity|level/i],r),d(t,[/correlation|trace|reference|request/i],r),d(t,[/application|service|provider|vendor|supplier/i],r),d(t,[/message|description|summary|details?/i],r)].filter(Boolean).slice(0,6),a={flags:t.filter(e=>"flags"===e.primaryGroup),identifiers:t.filter(e=>"identifiers"===e.primaryGroup),longText:t.filter(e=>"longText"===e.primaryGroup),other:t.filter(e=>"other"===e.primaryGroup),overview:n,payloads:t.filter(e=>"payloads"===e.primaryGroup),timing:t.filter(e=>"timing"===e.primaryGroup)},{defaultFieldId:a.payloads[0]?.id??a.longText[0]?.id??a.overview[0]?.id??t[0]?.id??null,fields:t,groups:a,summaryFields:n}},[e,p]),C=w.trim().toLowerCase(),_=(0,r.useMemo)(()=>Object.fromEntries(i.map(e=>[e,T.groups[e].filter(e=>!C||e.searchText.includes(C))])),[T.groups,C]),O=T.groups.overview.length?"overview":y(_,T.defaultFieldId),R=T.groups.overview[0]?.id??T.defaultFieldId,[E,P]=(0,r.useState)(O),[L,F]=(0,r.useState)(R),z=(0,r.useMemo)(()=>S(E,_[E]),[_,E]),M=z.find(e=>e.id===L)?.id??z[0]?.id??null,$=T.fields.find(e=>e.id===M)??null;(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&c()}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[c]);let q=JSON.stringify(Object.fromEntries(e.map(e=>[e.name,p[e.name]??null])),null,2);return(0,t.jsx)("div",{className:"fixed inset-0 z-50 bg-[var(--ink)]/45 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"flex h-full flex-col bg-[#f7f3e8]",children:[(0,t.jsxs)("header",{className:"sticky top-0 z-20 border-b border-[var(--line)] bg-[#f7f3e8]/95 px-4 py-4 backdrop-blur sm:px-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Debug Workspace"}),(0,t.jsx)("h2",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:v}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:["Row ",g+1," of ",f," on the current page."]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{"aria-disabled":!a,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition",a?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:m,type:"button",children:"Previous Row"}),(0,t.jsx)("button",{"aria-disabled":!n,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition",n?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:u,type:"button",children:"Next Row"}),(0,t.jsx)(h,{idleLabel:"Copy Row JSON",value:q}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-medium text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:c,type:"button",children:"Close"})]})]}),T.summaryFields.length?(0,t.jsx)("div",{className:"mt-5 grid gap-3 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6",children:T.summaryFields.map(e=>(0,t.jsx)(b,{field:e},e.id))}):null]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden px-4 py-4 sm:px-6 sm:py-5",children:(0,t.jsxs)("div",{className:"grid h-full min-h-0 gap-5 xl:grid-cols-[320px_minmax(0,1fr)_420px]",children:[(0,t.jsxs)("aside",{className:"flex h-full min-h-0 flex-col overflow-y-auto rounded-[30px] border border-[var(--line)] bg-white/88 p-4 pr-3 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("label",{className:"flex shrink-0 flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Search Fields"}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)]",onChange:e=>N(e.target.value),placeholder:"label, name, or value",value:w})]}),(0,t.jsx)("div",{className:"mt-4 flex shrink-0 gap-2 overflow-x-auto pb-1 lg:flex-col lg:overflow-visible",children:i.map(e=>{let r=_[e].length,n=E===e;return(0,t.jsxs)("button",{className:(0,l.cn)("inline-flex min-w-fit items-center justify-between gap-3 rounded-2xl border px-4 py-3 text-left transition lg:w-full",n?"border-[var(--accent)] bg-[var(--accent)]/12":"border-[var(--line)] bg-[var(--surface-soft)]/50 hover:bg-white"),onClick:()=>{P(e),F(S(e,_[e])[0]?.id??null)},type:"button",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-[var(--ink)]",children:o[e]}),(0,t.jsx)(s,{tone:n?"warning":"neutral",children:r})]},e)})}),(0,t.jsxs)("div",{className:"mt-4 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Navigation"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Choose a group here. The right panel lists sub fields for that group, and the middle panel shows the selected field value."})]})]}),(0,t.jsx)("section",{className:"min-h-0 rounded-[30px] border border-[var(--line)] bg-white/90 p-5 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:z.length?(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsx)("div",{className:"rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:(0,t.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:o[E]}),(0,t.jsxs)(s,{tone:"neutral",children:[z.length," fields"]})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"The selected field opens below. Use the right panel to switch sub fields without losing your place in the current row."})]})})}),$?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5 flex flex-wrap items-start justify-between gap-4 border-b border-[var(--line)] pb-5",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:o[y(T.groups,$.id)]}),(0,t.jsx)(s,{tone:"neutral",children:$.column.dataType}),$.column.payloadKindHint?(0,t.jsx)(s,{tone:"neutral",children:$.column.payloadKindHint}):null,$.column.isNullable?(0,t.jsx)(s,{tone:"neutral",children:"nullable"}):null]}),(0,t.jsx)("h3",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:$.column.label}),(0,t.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:$.column.name})]})}),(0,t.jsx)("div",{className:"mt-5 min-h-0 flex-1 overflow-auto pr-1",children:(0,t.jsx)(j,{field:$},$.id)})]}):(0,t.jsx)("div",{className:"mt-5 grid min-h-[320px] place-items-center rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)]/40 px-6 py-12 text-center text-sm leading-7 text-[var(--muted)]",children:"Select a field above to open it in the viewer."})]}):(0,t.jsxs)("div",{className:"grid h-full place-items-center rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)]/40 px-6 py-12 text-center text-sm leading-7 text-[var(--muted)]",children:["No ",o[E].toLowerCase()," fields match the current search."]})}),(0,t.jsxs)("aside",{className:"flex min-h-0 flex-col overflow-hidden rounded-[30px] border border-[var(--line)] bg-white/90 p-4 shadow-[0_24px_60px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("div",{className:"shrink-0 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"overview"===E?"Sub Fields":o[E]}),(0,t.jsxs)(s,{tone:"neutral",children:[z.length," fields"]})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Choose a sub field here. The selected field opens in the middle panel with the appropriate scalar, long-text, JSON, or XML viewer."}),(0,t.jsx)("div",{className:"mt-4 grid max-h-[260px] gap-2 overflow-auto pr-1",children:z.length?z.map(e=>{let r=M===e.id;return(0,t.jsxs)("button",{className:(0,l.cn)("rounded-[20px] border px-3 py-3 text-left transition",r?"border-[var(--accent)] bg-white shadow-[0_12px_28px_rgba(19,46,52,0.08)]":"border-[var(--line)] bg-white/70 hover:bg-white"),onClick:()=>F(e.id),type:"button",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.column.label}),(0,t.jsx)(s,{tone:"neutral",children:e.column.dataType}),e.column.payloadKindHint?(0,t.jsx)(s,{tone:"neutral",children:e.column.payloadKindHint}):null]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:e.column.name}),(0,t.jsx)("p",{className:"mt-2 truncate text-sm text-[var(--muted)]",title:e.valueText,children:x(e.column,e.value)})]},e.id)}):(0,t.jsx)("div",{className:"grid min-h-[200px] place-items-center px-4 py-6 text-center text-sm leading-7 text-[var(--muted)]",children:"No sub fields match the current search."})})]}),(0,t.jsxs)("div",{className:"mt-4 rounded-[24px] border border-[var(--line)] bg-[var(--surface-soft)]/45 px-4 py-4",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Panel Role"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"This panel always shows sub fields for the selected group. Search on the left narrows these options, and the middle panel displays the selected value."})]})]})]})})]})})}function T({page:e,pageSize:t,table:r}){let n=new URLSearchParams;r&&n.set("table",r),e&&e>1&&n.set("page",String(e)),t&&50!==t&&n.set("pageSize",String(t));let a=n.toString();return a?`/admin/tables?${a}`:"/admin/tables"}function C(e,t){if(!e)return t;let r=Number(e);return Number.isInteger(r)&&r>0?r:t}function _(e){let t=new URLSearchParams(window.location.search);return{page:C(t.get("page"),1),pageSize:Math.min(100,C(t.get("pageSize"),e)),table:t.get("table")}}function O(e){let t=function(e){switch(e.presentationKind){case"boolean":return 110;case"number":return 140;case"datetime":return 190;case"longText":return 280;default:return 220}}(e);return{maxWidth:`${t}px`,minWidth:`${t}px`,width:`${t}px`}}async function R(e){await navigator.clipboard.writeText(e)}function E(e,t){return"datetime"===e.valueType?(0,l.formatUtcDateTime)("string"==typeof t?t:null):(0,l.displayValue)(t)}function P({column:e,value:n}){let a,i=(a=function(e,t){if("json"===e.payloadKindHint||"xml"===e.payloadKindHint)return e.payloadKindHint;if("string"!=typeof t)return null;let r=t.trim();if(!r)return null;if(r.startsWith("{")||r.startsWith("["))try{return JSON.parse(r),"json"}catch{return null}return(r.startsWith("<")||r.startsWith("<?xml"))&&/<[A-Za-z_]/.test(r)?"xml":null}(e,n))&&"string"==typeof n?m(a,n,null):null,[o,d]=(0,r.useState)("Copy"),[c,u]=(0,r.useState)(i?.parseStatus==="formatted"?"formatted":"raw"),p=E(e,n),x=i&&"formatted"===c&&i.pretty?i.pretty:i?.raw??"",f=i?x:null==n?"":"datetime"===e.valueType&&"string"==typeof n?n:String(n),h="longText"===e.presentationKind||!!i;async function b(){try{await R(f),d("Copied"),window.setTimeout(()=>d("Copy"),1200)}catch{d("Failed"),window.setTimeout(()=>d("Copy"),1200)}}return(0,t.jsxs)("section",{className:"rounded-[22px] border border-[var(--line)] bg-white/90 p-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.label}),(0,t.jsx)(s,{tone:"neutral",children:e.dataType}),i?(0,t.jsx)(s,{tone:"neutral",children:i.kind}):null,e.isNullable?(0,t.jsx)(s,{tone:"neutral",children:"nullable"}):null]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:e.name})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition","formatted"===c?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] text-[var(--ink)] hover:bg-[var(--surface-soft)]"),disabled:"formatted"!==i.parseStatus,onClick:()=>u("formatted"),type:"button",children:"Formatted"}),(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition","raw"===c?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] text-[var(--ink)] hover:bg-[var(--surface-soft)]"),onClick:()=>u("raw"),type:"button",children:"Raw"})]}):null,(0,t.jsx)("button",{className:"inline-flex h-9 items-center rounded-full border border-[var(--line-strong)] px-4 text-xs font-semibold uppercase tracking-[0.16em] text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:b,type:"button",children:o})]})]}),i?.parseStatus==="invalid"?(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-amber-900",children:"Formatting failed for this value. Raw content is shown exactly as stored."}):null,(0,t.jsx)("div",{className:(0,l.cn)("mt-3 rounded-[18px] text-sm text-[var(--ink)]",h?"max-h-[320px] overflow-y-auto border border-[var(--line)] bg-[var(--surface-soft)]/55 px-3 py-3 whitespace-pre-wrap break-words":"break-words leading-6"),children:i?x||"—":p})]})}e.s(["AdminTableExplorer",0,function({browser:e,preview:n}){let[a,i]=(0,r.useState)(""),[o,d]=(0,r.useState)(e),[c,u]=(0,r.useState)(n),[m,p]=(0,r.useState)(n.selectedTable?.qualifiedName??e.defaultSelectedTable),[x,f]=(0,r.useState)(null),[h,b]=(0,r.useState)(!1),[g,v]=(0,r.useState)(""),[w,j]=(0,r.useState)(null),[y,N]=(0,r.useState)(null),[S,C]=(0,r.useState)(!1),[R,P]=(0,r.useState)(!1),L=(0,r.useDeferredValue)(a),F=(0,r.useRef)(0),z=(0,r.useRef)(n.pageSize),M=(0,r.useRef)(null),$=L.trim().toLowerCase(),q=o.tables.filter(e=>!$||`${e.schema}.${e.name}`.toLowerCase().includes($)),D=o.tables.find(e=>e.qualifiedName===m)??c.selectedTable,U=null===x?null:c.rows[x]??null,A=Math.max(1,Math.ceil(c.total/c.pageSize)),K=Math.min(c.page,A),I=K>1,W=K<A,H=0===c.total?0:(K-1)*c.pageSize+1,J=0===c.total?0:Math.min(K*c.pageSize,c.total),B=c.sourceCapabilities.supportsRowDeletion,V=!!D&&g.trim()===D?.qualifiedName;async function G(e,t="push",r={}){let n=++F.current;P(!0),N(null),f(null),b(!1),v(""),j(null),p(e.table??o.defaultSelectedTable),t&&window.history["replace"===t?"replaceState":"pushState"]({},"",T(e));try{let[t,a]=await Promise.all([fetch(function({page:e,pageSize:t,table:r}){let n=new URLSearchParams;return r&&n.set("table",r),e&&n.set("page",String(e)),t&&n.set("pageSize",String(t)),`/api/admin/tables/rows?${n.toString()}`}(e),{cache:"no-store"}),r.refreshBrowserState?fetch("/api/admin/tables",{cache:"no-store"}):Promise.resolve(null)]),l=await t.json().catch(()=>null),s=a?await a.json().catch(()=>null):null;if(!t.ok){let e=l&&"error"in l&&l.error?l.error:"Unable to load the selected table preview.";throw Error(e)}if(a&&(!a.ok||!s||"error"in s)){let e=s&&"error"in s&&s.error?s.error:"Unable to refresh the table list.";throw Error(e)}if(n!==F.current)return;let i=a?s:o;a&&d(i),u(l),p(l.selectedTable?.qualifiedName??i.defaultSelectedTable)}catch(e){if(n!==F.current)return;N(e instanceof Error?e.message:"Unable to load the selected table preview.")}finally{n===F.current&&P(!1)}}function X(e){let t=c.selectedTable?.qualifiedName??null;(e.page!==c.page||e.pageSize!==c.pageSize||e.table!==t)&&G(e)}async function Q(){if(!D||!V||!B)return;let e=D.qualifiedName;C(!0),N(null),j(null);try{let t=await fetch("/api/admin/tables/rows",{body:JSON.stringify({confirmationTable:g.trim(),pageSize:c.pageSize,table:e}),cache:"no-store",headers:{"content-type":"application/json"},method:"DELETE"}),r=await t.json().catch(()=>null);if(!t.ok)throw Error(r&&"error"in r&&r.error?r.error:"Unable to delete rows from the selected table.");d(r.browser),u(r.preview),p(r.preview.selectedTable?.qualifiedName??r.browser.defaultSelectedTable),f(null),b(!1),v(""),j(`Deleted ${r.deletedRowCount.toLocaleString()} row${1===r.deletedRowCount?"":"s"} from ${e}.`)}catch(e){N(e instanceof Error?e.message:"Unable to delete rows from the selected table.")}finally{C(!1)}}return z.current=c.pageSize,M.current=G,(0,r.useEffect)(()=>{function e(){M.current?.(_(z.current),null)}return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]),(0,r.useEffect)(()=>{let e=_(c.pageSize);(e.page!==c.page||e.pageSize!==c.pageSize)&&window.history.replaceState({},"",T({page:c.page,pageSize:c.pageSize,table:c.requestedTable??c.selectedTable?.qualifiedName??null}))},[c.page,c.pageSize,c.requestedTable,c.selectedTable]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid h-full min-h-0 grid-rows-[minmax(0,280px)_minmax(0,1fr)] gap-6 overflow-hidden xl:grid-cols-[320px_minmax(0,1fr)] xl:grid-rows-1",children:[(0,t.jsxs)("aside",{className:"flex min-h-0 flex-col overflow-hidden rounded-[32px] border border-[var(--line)] bg-white/88 p-5 shadow-[0_28px_70px_rgba(19,46,52,0.06)]",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Database"}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:o.databaseLabel}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:[o.tables.length," discovered table",1===o.tables.length?"":"s",". Latest discovery ",(0,l.formatUtcDateTime)(o.latestDiscoveryAt),"."]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,t.jsx)(s,{tone:"neutral",children:o.source.name}),(0,t.jsx)(s,{tone:"neutral",children:o.source.type.toUpperCase()}),o.sourceCapabilities.supportsRowDeletion?null:(0,t.jsx)(s,{tone:"warning",children:"Read-only source"})]}),(0,t.jsxs)("label",{className:"mt-5 flex shrink-0 flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Search Tables"}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)]",onChange:e=>i(e.target.value),placeholder:"schema.table",value:a})]}),(0,t.jsx)("div",{className:"mt-5 grid min-h-0 flex-1 gap-2 overflow-y-auto pr-1",children:q.length?q.map(e=>{let r=m===e.qualifiedName;return(0,t.jsxs)("button",{className:(0,l.cn)("rounded-[24px] border px-4 py-3 text-left transition",r?"border-[var(--accent)] bg-[var(--accent)]/10":"border-[var(--line)] bg-[var(--surface-soft)] hover:bg-white"),onClick:()=>X({page:1,pageSize:c.pageSize,table:e.qualifiedName}),type:"button",children:[(0,t.jsxs)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:[e.schema,".",e.name]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,t.jsxs)(s,{tone:r?"warning":"neutral",children:[e.approxRowCount.toLocaleString()," rows"]}),(0,t.jsxs)(s,{tone:"neutral",children:[e.fieldCount," columns"]})]})]},e.qualifiedName)}):(0,t.jsx)("p",{className:"rounded-[24px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-6 text-sm text-[var(--muted)]",children:"No discovered tables matched the current search."})})]}),(0,t.jsxs)("section",{className:"flex min-h-0 flex-col overflow-hidden rounded-[32px] border border-[var(--line)] bg-white/88 p-5 shadow-[0_28px_70px_rgba(19,46,52,0.06)]",children:[y?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-900",children:y}):null,w?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-900",children:w}):null,c.staleSelection?(0,t.jsx)("div",{className:"mb-5 shrink-0 rounded-[24px] border border-amber-300/70 bg-amber-50/90 px-4 py-3 text-sm text-amber-950",children:"The requested table is no longer available in the current discovery snapshot or the source schema changed. Rerun discovery to refresh the table list."}):null,D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-col gap-4 border-b border-[var(--line)] pb-5 lg:flex-row lg:items-start lg:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Table Preview"}),(0,t.jsx)("h2",{className:"mt-2 text-3xl font-semibold tracking-[-0.05em] text-[var(--ink)]",children:D.qualifiedName}),(0,t.jsxs)("p",{className:"mt-3 max-w-3xl text-sm leading-7 text-[var(--muted)]",children:["Preview for the selected discovered table. The grid shows page"," ",c.page," with ",c.pageSize," rows per request."]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-3 lg:items-end",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 lg:justify-end",children:[(0,t.jsxs)(s,{tone:"neutral",children:[D.approxRowCount.toLocaleString()," approx rows"]}),(0,t.jsxs)(s,{tone:"neutral",children:["fieldCount"in D?D.fieldCount:c.columns.length," ","columns"]}),(0,t.jsxs)(s,{tone:"neutral",children:["Discovery ",(0,l.formatCompactUtcDateTime)(c.latestDiscoveryAt)]}),(0,t.jsx)(s,{tone:"neutral",children:c.source.type.toUpperCase()}),B?null:(0,t.jsx)(s,{tone:"warning",children:"Read-only source"})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 lg:justify-end",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)] disabled:opacity-50",disabled:R||S,onClick:function(){let e=c.selectedTable?.qualifiedName??c.requestedTable??m??null;G({page:K,pageSize:c.pageSize,table:e},null,{refreshBrowserState:!0})},type:"button",children:R?"Refreshing...":"Refresh Table"}),B?(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-rose-300 bg-rose-50 px-4 text-sm font-semibold text-rose-900 transition hover:bg-rose-100 disabled:opacity-50",disabled:R||S||c.staleSelection,onClick:()=>{b(!0),v(""),j(null)},type:"button",children:"Delete All"}):null]})]})]}),h&&B?(0,t.jsxs)("div",{className:"mt-5 shrink-0 rounded-[24px] border border-rose-200 bg-rose-50 px-4 py-4 text-sm text-rose-950",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsxs)("span",{className:"font-semibold",children:["Type ",D.qualifiedName," to delete all rows."]}),(0,t.jsx)("input",{className:"h-11 rounded-2xl border border-rose-300 bg-white px-4 text-sm text-[var(--ink)] outline-none transition focus:border-rose-500 disabled:opacity-60",disabled:S,onChange:e=>v(e.target.value),value:g})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full border border-rose-300 bg-white px-4 text-sm font-semibold text-rose-950 transition hover:bg-rose-100 disabled:opacity-50",disabled:S,onClick:()=>{b(!1),v("")},type:"button",children:"Cancel"}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center justify-center rounded-full bg-rose-700 px-4 text-sm font-semibold text-white transition hover:bg-rose-800 disabled:opacity-50",disabled:!V||S,onClick:()=>void Q(),type:"button",children:S?"Deleting...":"Delete All Rows"})]})]}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-rose-900",children:"This permanently removes every row from the selected table and keeps the table structure in place."})]}):null,(0,t.jsx)("div",{className:"mt-5 min-h-0 flex-1 overflow-hidden",children:R?(0,t.jsx)("div",{className:"grid h-full place-items-center rounded-[28px] border border-[var(--line)] bg-white/90",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Loading"}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:["Fetching rows for ",D.qualifiedName,"..."]})]})}):c.columns.length?(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-[var(--muted)]",children:"Use Open to launch the debug workspace. The grid stays compact so long text never hides the rest of the page."}),U?(0,t.jsx)(s,{tone:"warning",children:"Debug workspace open"}):null]}),(0,t.jsx)("div",{className:"mt-4 min-h-0 flex-1 overflow-hidden rounded-[28px] border border-[var(--line)] bg-white/90",children:(0,t.jsx)("div",{className:"h-full overflow-auto",children:(0,t.jsxs)("table",{className:"w-max min-w-full border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:[(0,t.jsx)("th",{className:"sticky left-0 top-0 z-30 border-b border-[var(--line)] bg-[var(--surface-soft)] px-4 py-3 align-bottom shadow-[10px_0_24px_rgba(19,46,52,0.08)]",children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{children:"Debug"}),(0,t.jsx)("span",{className:"text-[10px] font-medium normal-case tracking-normal text-[var(--muted)]",children:"open workspace"})]})}),c.columns.map(e=>(0,t.jsx)("th",{className:"sticky top-0 z-20 border-b border-[var(--line)] bg-[var(--surface-soft)]/95 px-4 py-3 align-bottom backdrop-blur",style:O(e),children:(0,t.jsxs)("div",{className:"grid gap-1",children:[(0,t.jsx)("span",{className:"truncate",children:e.label}),(0,t.jsxs)("span",{className:"text-[10px] font-medium normal-case tracking-normal text-[var(--muted)]",children:[e.name," - ",e.dataType]})]})},e.name))]})}),(0,t.jsx)("tbody",{children:c.rows.length?c.rows.map((e,r)=>{let n=x===r;return(0,t.jsxs)("tr",{"aria-selected":n,className:(0,l.cn)("group border-t border-[var(--line)] text-sm text-[var(--ink)] transition",n?"bg-[var(--accent)]/10":"hover:bg-[var(--surface-soft)]/70"),children:[(0,t.jsx)("td",{className:(0,l.cn)("sticky left-0 z-20 px-4 py-3 align-top shadow-[10px_0_24px_rgba(19,46,52,0.08)]",n?"bg-[var(--accent)]/10":"bg-white group-hover:bg-[var(--surface-soft)]/70"),children:(0,t.jsx)("button",{className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-full border px-4 text-xs font-semibold uppercase tracking-[0.16em] transition",n?"border-[var(--accent)] bg-[var(--accent)] text-[var(--accent-ink)]":"border-[var(--line-strong)] bg-white text-[var(--ink)] hover:bg-[var(--surface-soft)]"),onClick:()=>{f(r)},type:"button",children:"Open"})}),c.columns.map(r=>{var n;return(0,t.jsx)("td",{className:"px-4 py-3 align-top",style:O(r),children:(0,t.jsx)("div",{className:"truncate whitespace-nowrap",title:E(r,e[r.name]),children:(n=e[r.name],"datetime"===r.valueType?(0,l.formatCompactUtcDateTime)("string"==typeof n?n:null):(0,l.displayValue)(n))})},r.name)})]},`${D.qualifiedName}-${c.page}-${r}`)}):(0,t.jsx)("tr",{children:(0,t.jsx)("td",{className:"px-4 py-12 text-center text-sm text-[var(--muted)]",colSpan:c.columns.length+1,children:"This table did not return any rows for the current page."})})})]})})})]}):(0,t.jsx)("div",{className:"grid h-full place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-10 text-center text-sm text-[var(--muted)]",children:"No columns were available for the selected table."})}),(0,t.jsxs)("div",{className:"mt-5 flex shrink-0 flex-col gap-3 rounded-[24px] border border-[var(--line)] bg-white/80 px-4 py-4 shadow-[0_16px_40px_rgba(19,46,52,0.04)] sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,t.jsxs)("p",{className:"text-sm text-[var(--muted)]",children:["Showing ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:H})," to"," ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:J})," of"," ",(0,t.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:c.total})," records"]}),(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm text-[var(--muted)]",children:[(0,t.jsx)("span",{children:"Page size"}),(0,t.jsxs)("select",{className:"h-10 rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm text-[var(--ink)] outline-none transition focus:border-[var(--accent)] disabled:opacity-60",disabled:R,onChange:e=>X({page:1,pageSize:Number(e.target.value),table:D.qualifiedName}),value:String(c.pageSize),children:[(0,t.jsx)("option",{value:"25",children:"25 Rows"}),(0,t.jsx)("option",{value:"50",children:"50 Rows"}),(0,t.jsx)("option",{value:"100",children:"100 Rows"})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("button",{"aria-disabled":!I||R,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] px-4 text-sm font-medium text-[var(--ink)] transition",I&&!R?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:()=>X({page:Math.max(1,K-1),pageSize:c.pageSize,table:D.qualifiedName}),type:"button",children:"Previous"}),(0,t.jsxs)("p",{className:"text-sm font-medium text-[var(--ink)]",children:["Page ",K," / ",A]}),(0,t.jsx)("button",{"aria-disabled":!W||R,className:(0,l.cn)("inline-flex h-10 items-center justify-center rounded-full border border-[var(--line-strong)] px-4 text-sm font-medium text-[var(--ink)] transition",W&&!R?"hover:bg-[var(--surface-soft)]":"pointer-events-none opacity-40"),onClick:()=>X({page:Math.min(A,K+1),pageSize:c.pageSize,table:D.qualifiedName}),type:"button",children:"Next"})]})]})]}):(0,t.jsxs)("div",{className:"grid min-h-0 flex-1 place-items-center rounded-[28px] border border-dashed border-[var(--line-strong)] bg-[var(--surface-soft)] px-4 py-12 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"No Tables Available"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"Discovery completed, but no user tables were stored in the snapshot. Rerun discovery after confirming the connection points at the correct database."})]})]})]}),U&&c.columns.length&&D?(0,t.jsx)(k,{columns:c.columns,hasNextRow:null!==x&&x<c.rows.length-1,hasPreviousRow:null!==x&&x>0,onClose:function(){f(null)},onNextRow:function(){f(e=>null===e?e:Math.min(c.rows.length-1,e+1))},onPreviousRow:function(){f(e=>null===e?e:Math.max(0,e-1))},row:U,rowCount:c.rows.length,rowIndex:x??0,tableName:D.qualifiedName},`${D.qualifiedName}-${c.page}-${x??0}`):null]})},"InspectorField",0,P,"RowInspector",0,function({columns:e,onClose:n,row:a,rowIndex:l}){let[s,i]=(0,r.useState)("Copy Row JSON");async function o(){try{await R(!a?"":JSON.stringify(Object.fromEntries(e.map(e=>[e.name,a[e.name]??null])),null,2)),i("Copied"),window.setTimeout(()=>i("Copy Row JSON"),1200)}catch{i("Failed"),window.setTimeout(()=>i("Copy Row JSON"),1200)}}return(0,t.jsxs)("div",{className:"flex h-full flex-col rounded-[28px] border border-[var(--line)] bg-[var(--surface-soft)]/65 p-4 shadow-[0_18px_45px_rgba(19,46,52,0.08)]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-[var(--line)] pb-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Row Inspector"}),(0,t.jsx)("h3",{className:"mt-2 text-xl font-semibold tracking-[-0.04em] text-[var(--ink)]",children:a&&null!==l?`Row ${l+1}`:"Select a row"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-[var(--muted)]",children:a?"Full values for the selected row. Long text is expanded here without affecting the grid.":"Click a row in the grid to inspect all column values without expanding the table layout."})]}),a?(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{className:"inline-flex h-10 items-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:o,type:"button",children:s}),(0,t.jsx)("button",{className:"inline-flex h-10 items-center rounded-full border border-[var(--line-strong)] bg-white px-4 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--surface-soft)]",onClick:n,type:"button",children:"Close"})]}):null]}),a?(0,t.jsx)("div",{className:"mt-4 grid min-h-0 gap-3 overflow-y-auto pr-1",children:e.map(e=>(0,t.jsx)(P,{column:e,value:a[e.name]},e.name))}):(0,t.jsx)("div",{className:"mt-4 grid flex-1 place-items-center rounded-[22px] border border-dashed border-[var(--line-strong)] bg-white/75 px-5 py-10 text-center",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-[var(--muted)]",children:"Ready To Inspect"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-7 text-[var(--muted)]",children:"The main grid stays compact for scanning. Select any row to read full text, timestamps, numbers, and nullable values here."})]})})]})}],16201)}]);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# `@img/sharp-libvips-linux-x64`
|
|
2
|
+
|
|
3
|
+
Prebuilt libvips and dependencies for use with sharp on Linux (glibc) x64.
|
|
4
|
+
|
|
5
|
+
## Licensing
|
|
6
|
+
|
|
7
|
+
This software contains third-party libraries
|
|
8
|
+
used under the terms of the following licences:
|
|
9
|
+
|
|
10
|
+
| Library | Used under the terms of |
|
|
11
|
+
|---------------|-----------------------------------------------------------------------------------------------------------|
|
|
12
|
+
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
|
|
13
|
+
| cairo | Mozilla Public License 2.0 |
|
|
14
|
+
| cgif | MIT Licence |
|
|
15
|
+
| expat | MIT Licence |
|
|
16
|
+
| fontconfig | [fontconfig Licence](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) |
|
|
17
|
+
| freetype | [freetype Licence](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) |
|
|
18
|
+
| fribidi | LGPLv3 |
|
|
19
|
+
| glib | LGPLv3 |
|
|
20
|
+
| harfbuzz | MIT Licence |
|
|
21
|
+
| highway | Apache-2.0 License, BSD 3-Clause |
|
|
22
|
+
| lcms | MIT Licence |
|
|
23
|
+
| libarchive | BSD 2-Clause |
|
|
24
|
+
| libexif | LGPLv3 |
|
|
25
|
+
| libffi | MIT Licence |
|
|
26
|
+
| libheif | LGPLv3 |
|
|
27
|
+
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
|
|
28
|
+
| libnsgif | MIT Licence |
|
|
29
|
+
| libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
|
|
30
|
+
| librsvg | LGPLv3 |
|
|
31
|
+
| libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
|
|
32
|
+
| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
|
|
33
|
+
| libvips | LGPLv3 |
|
|
34
|
+
| libwebp | New BSD License |
|
|
35
|
+
| libxml2 | MIT Licence |
|
|
36
|
+
| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
|
|
37
|
+
| pango | LGPLv3 |
|
|
38
|
+
| pixman | MIT Licence |
|
|
39
|
+
| proxy-libintl | LGPLv3 |
|
|
40
|
+
| zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
|
|
41
|
+
|
|
42
|
+
Use of libraries under the terms of the LGPLv3 is via the
|
|
43
|
+
"any later version" clause of the LGPLv2 or LGPLv2.1.
|
|
44
|
+
|
|
45
|
+
Please report any errors or omissions via
|
|
46
|
+
https://github.com/lovell/sharp-libvips/issues/new
|
package/dist/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/* glibconfig.h
|
|
2
|
+
*
|
|
3
|
+
* This is a generated file. Please modify 'glibconfig.h.in'
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
#ifndef __GLIBCONFIG_H__
|
|
7
|
+
#define __GLIBCONFIG_H__
|
|
8
|
+
|
|
9
|
+
#include <glib/gmacros.h>
|
|
10
|
+
|
|
11
|
+
#include <limits.h>
|
|
12
|
+
#include <float.h>
|
|
13
|
+
#define GLIB_HAVE_ALLOCA_H
|
|
14
|
+
|
|
15
|
+
#define GLIB_STATIC_COMPILATION 1
|
|
16
|
+
#define GOBJECT_STATIC_COMPILATION 1
|
|
17
|
+
#define GIO_STATIC_COMPILATION 1
|
|
18
|
+
#define GMODULE_STATIC_COMPILATION 1
|
|
19
|
+
#define GI_STATIC_COMPILATION 1
|
|
20
|
+
#define G_INTL_STATIC_COMPILATION 1
|
|
21
|
+
#define FFI_STATIC_BUILD 1
|
|
22
|
+
|
|
23
|
+
/* Specifies that GLib's g_print*() functions wrap the
|
|
24
|
+
* system printf functions. This is useful to know, for example,
|
|
25
|
+
* when using glibc's register_printf_function().
|
|
26
|
+
*/
|
|
27
|
+
#define GLIB_USING_SYSTEM_PRINTF
|
|
28
|
+
|
|
29
|
+
G_BEGIN_DECLS
|
|
30
|
+
|
|
31
|
+
#define G_MINFLOAT FLT_MIN
|
|
32
|
+
#define G_MAXFLOAT FLT_MAX
|
|
33
|
+
#define G_MINDOUBLE DBL_MIN
|
|
34
|
+
#define G_MAXDOUBLE DBL_MAX
|
|
35
|
+
#define G_MINSHORT SHRT_MIN
|
|
36
|
+
#define G_MAXSHORT SHRT_MAX
|
|
37
|
+
#define G_MAXUSHORT USHRT_MAX
|
|
38
|
+
#define G_MININT INT_MIN
|
|
39
|
+
#define G_MAXINT INT_MAX
|
|
40
|
+
#define G_MAXUINT UINT_MAX
|
|
41
|
+
#define G_MINLONG LONG_MIN
|
|
42
|
+
#define G_MAXLONG LONG_MAX
|
|
43
|
+
#define G_MAXULONG ULONG_MAX
|
|
44
|
+
|
|
45
|
+
typedef signed char gint8;
|
|
46
|
+
typedef unsigned char guint8;
|
|
47
|
+
|
|
48
|
+
typedef signed short gint16;
|
|
49
|
+
typedef unsigned short guint16;
|
|
50
|
+
|
|
51
|
+
#define G_GINT16_MODIFIER "h"
|
|
52
|
+
#define G_GINT16_FORMAT "hi"
|
|
53
|
+
#define G_GUINT16_FORMAT "hu"
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
typedef signed int gint32;
|
|
57
|
+
typedef unsigned int guint32;
|
|
58
|
+
|
|
59
|
+
#define G_GINT32_MODIFIER ""
|
|
60
|
+
#define G_GINT32_FORMAT "i"
|
|
61
|
+
#define G_GUINT32_FORMAT "u"
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#define G_HAVE_GINT64 1 /* deprecated, always true */
|
|
65
|
+
|
|
66
|
+
typedef signed long gint64;
|
|
67
|
+
typedef unsigned long guint64;
|
|
68
|
+
|
|
69
|
+
#define G_GINT64_CONSTANT(val) (val##L)
|
|
70
|
+
#define G_GUINT64_CONSTANT(val) (val##UL)
|
|
71
|
+
|
|
72
|
+
#define G_GINT64_MODIFIER "l"
|
|
73
|
+
#define G_GINT64_FORMAT "li"
|
|
74
|
+
#define G_GUINT64_FORMAT "lu"
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
#define GLIB_SIZEOF_VOID_P 8
|
|
78
|
+
#define GLIB_SIZEOF_LONG 8
|
|
79
|
+
#define GLIB_SIZEOF_SIZE_T 8
|
|
80
|
+
#define GLIB_SIZEOF_SSIZE_T 8
|
|
81
|
+
|
|
82
|
+
typedef signed long gssize;
|
|
83
|
+
typedef unsigned long gsize;
|
|
84
|
+
#define G_GSIZE_MODIFIER "l"
|
|
85
|
+
#define G_GSSIZE_MODIFIER "l"
|
|
86
|
+
#define G_GSIZE_FORMAT "lu"
|
|
87
|
+
#define G_GSSIZE_FORMAT "li"
|
|
88
|
+
|
|
89
|
+
#define G_MAXSIZE G_MAXULONG
|
|
90
|
+
#define G_MINSSIZE G_MINLONG
|
|
91
|
+
#define G_MAXSSIZE G_MAXLONG
|
|
92
|
+
|
|
93
|
+
typedef gint64 goffset;
|
|
94
|
+
#define G_MINOFFSET G_MININT64
|
|
95
|
+
#define G_MAXOFFSET G_MAXINT64
|
|
96
|
+
|
|
97
|
+
#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
|
|
98
|
+
#define G_GOFFSET_FORMAT G_GINT64_FORMAT
|
|
99
|
+
#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
|
|
100
|
+
|
|
101
|
+
#define G_POLLFD_FORMAT "%d"
|
|
102
|
+
|
|
103
|
+
#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
|
|
104
|
+
#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
|
|
105
|
+
|
|
106
|
+
#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
|
|
107
|
+
#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
|
|
108
|
+
|
|
109
|
+
typedef signed long gintptr;
|
|
110
|
+
typedef unsigned long guintptr;
|
|
111
|
+
|
|
112
|
+
#define G_GINTPTR_MODIFIER "l"
|
|
113
|
+
#define G_GINTPTR_FORMAT "li"
|
|
114
|
+
#define G_GUINTPTR_FORMAT "lu"
|
|
115
|
+
|
|
116
|
+
#define GLIB_MAJOR_VERSION 2
|
|
117
|
+
#define GLIB_MINOR_VERSION 86
|
|
118
|
+
#define GLIB_MICRO_VERSION 1
|
|
119
|
+
|
|
120
|
+
#define G_OS_UNIX
|
|
121
|
+
|
|
122
|
+
#define G_VA_COPY va_copy
|
|
123
|
+
|
|
124
|
+
#define G_VA_COPY_AS_ARRAY 1
|
|
125
|
+
|
|
126
|
+
#define G_HAVE_ISO_VARARGS 1
|
|
127
|
+
|
|
128
|
+
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
|
|
129
|
+
* is passed ISO vararg support is turned off, and there is no work
|
|
130
|
+
* around to turn it on, so we unconditionally turn it off.
|
|
131
|
+
*/
|
|
132
|
+
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
|
|
133
|
+
# undef G_HAVE_ISO_VARARGS
|
|
134
|
+
#endif
|
|
135
|
+
|
|
136
|
+
#define G_HAVE_GROWING_STACK 0
|
|
137
|
+
|
|
138
|
+
#ifndef _MSC_VER
|
|
139
|
+
# define G_HAVE_GNUC_VARARGS 1
|
|
140
|
+
#endif
|
|
141
|
+
|
|
142
|
+
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
|
143
|
+
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
|
144
|
+
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
|
145
|
+
#define G_GNUC_INTERNAL __hidden
|
|
146
|
+
#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
|
|
147
|
+
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
|
148
|
+
#else
|
|
149
|
+
#define G_GNUC_INTERNAL
|
|
150
|
+
#endif
|
|
151
|
+
|
|
152
|
+
#define G_THREADS_ENABLED
|
|
153
|
+
#define G_THREADS_IMPL_POSIX
|
|
154
|
+
|
|
155
|
+
#define G_ATOMIC_LOCK_FREE
|
|
156
|
+
|
|
157
|
+
#define GINT16_TO_LE(val) ((gint16) (val))
|
|
158
|
+
#define GUINT16_TO_LE(val) ((guint16) (val))
|
|
159
|
+
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
|
|
160
|
+
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
|
|
161
|
+
|
|
162
|
+
#define GINT32_TO_LE(val) ((gint32) (val))
|
|
163
|
+
#define GUINT32_TO_LE(val) ((guint32) (val))
|
|
164
|
+
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
|
|
165
|
+
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
|
|
166
|
+
|
|
167
|
+
#define GINT64_TO_LE(val) ((gint64) (val))
|
|
168
|
+
#define GUINT64_TO_LE(val) ((guint64) (val))
|
|
169
|
+
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
|
|
170
|
+
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
|
|
171
|
+
|
|
172
|
+
#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
|
|
173
|
+
#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
|
|
174
|
+
#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
|
|
175
|
+
#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
|
|
176
|
+
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
|
|
177
|
+
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
|
|
178
|
+
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
|
|
179
|
+
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
|
|
180
|
+
#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
|
|
181
|
+
#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
|
|
182
|
+
#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
|
|
183
|
+
#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
|
|
184
|
+
#define G_BYTE_ORDER G_LITTLE_ENDIAN
|
|
185
|
+
|
|
186
|
+
#define GLIB_SYSDEF_POLLIN =1
|
|
187
|
+
#define GLIB_SYSDEF_POLLOUT =4
|
|
188
|
+
#define GLIB_SYSDEF_POLLPRI =2
|
|
189
|
+
#define GLIB_SYSDEF_POLLHUP =16
|
|
190
|
+
#define GLIB_SYSDEF_POLLERR =8
|
|
191
|
+
#define GLIB_SYSDEF_POLLNVAL =32
|
|
192
|
+
|
|
193
|
+
/* No way to disable deprecation warnings for macros, so only emit deprecation
|
|
194
|
+
* warnings on platforms where usage of this macro is broken */
|
|
195
|
+
#if defined(__APPLE__) || defined(_MSC_VER) || defined(__CYGWIN__)
|
|
196
|
+
#define G_MODULE_SUFFIX "so" GLIB_DEPRECATED_MACRO_IN_2_76
|
|
197
|
+
#else
|
|
198
|
+
#define G_MODULE_SUFFIX "so"
|
|
199
|
+
#endif
|
|
200
|
+
|
|
201
|
+
typedef int GPid;
|
|
202
|
+
#define G_PID_FORMAT "i"
|
|
203
|
+
|
|
204
|
+
#define GLIB_SYSDEF_AF_UNIX 1
|
|
205
|
+
#define GLIB_SYSDEF_AF_INET 2
|
|
206
|
+
#define GLIB_SYSDEF_AF_INET6 10
|
|
207
|
+
|
|
208
|
+
#define GLIB_SYSDEF_MSG_OOB 1
|
|
209
|
+
#define GLIB_SYSDEF_MSG_PEEK 2
|
|
210
|
+
#define GLIB_SYSDEF_MSG_DONTROUTE 4
|
|
211
|
+
|
|
212
|
+
#define G_DIR_SEPARATOR '/'
|
|
213
|
+
#define G_DIR_SEPARATOR_S "/"
|
|
214
|
+
#define G_SEARCHPATH_SEPARATOR ':'
|
|
215
|
+
#define G_SEARCHPATH_SEPARATOR_S ":"
|
|
216
|
+
|
|
217
|
+
#undef G_HAVE_FREE_SIZED
|
|
218
|
+
|
|
219
|
+
G_END_DECLS
|
|
220
|
+
|
|
221
|
+
#endif /* __GLIBCONFIG_H__ */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = __dirname;
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@img/sharp-libvips-linux-x64",
|
|
3
|
+
"version": "1.2.4",
|
|
4
|
+
"description": "Prebuilt libvips and dependencies for use with sharp on Linux (glibc) x64",
|
|
5
|
+
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
|
+
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/lovell/sharp-libvips.git",
|
|
10
|
+
"directory": "npm/linux-x64"
|
|
11
|
+
},
|
|
12
|
+
"license": "LGPL-3.0-or-later",
|
|
13
|
+
"funding": {
|
|
14
|
+
"url": "https://opencollective.com/libvips"
|
|
15
|
+
},
|
|
16
|
+
"preferUnplugged": true,
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"versions.json"
|
|
23
|
+
],
|
|
24
|
+
"type": "commonjs",
|
|
25
|
+
"exports": {
|
|
26
|
+
"./lib": "./lib/index.js",
|
|
27
|
+
"./package": "./package.json",
|
|
28
|
+
"./versions": "./versions.json"
|
|
29
|
+
},
|
|
30
|
+
"config": {
|
|
31
|
+
"glibc": ">=2.26"
|
|
32
|
+
},
|
|
33
|
+
"os": [
|
|
34
|
+
"linux"
|
|
35
|
+
],
|
|
36
|
+
"libc": [
|
|
37
|
+
"glibc"
|
|
38
|
+
],
|
|
39
|
+
"cpu": [
|
|
40
|
+
"x64"
|
|
41
|
+
]
|
|
42
|
+
}
|