xml-explorer 0.1.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.
Potentially problematic release.
This version of xml-explorer might be problematic. Click here for more details.
- package/README.md +76 -0
- package/dist/TreeView.d.ts +11 -0
- package/dist/TreeView.d.ts.map +1 -0
- package/dist/XMLExplorer.d.ts +8 -0
- package/dist/XMLExplorer.d.ts.map +1 -0
- package/dist/assets/xmlExplorer.worker-CHTIePgi.js +4 -0
- package/dist/btTree.d.ts +19 -0
- package/dist/btTree.d.ts.map +1 -0
- package/dist/index.cjs +11 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2521 -0
- package/dist/treeCatalog.d.ts +5 -0
- package/dist/treeCatalog.d.ts.map +1 -0
- package/dist/useXmlExplorerEngine.d.ts +40 -0
- package/dist/useXmlExplorerEngine.d.ts.map +1 -0
- package/dist/xmlExplorer.worker.d.ts +2 -0
- package/dist/xmlExplorer.worker.d.ts.map +1 -0
- package/dist/xmlHighlighting.d.ts +11 -0
- package/dist/xmlHighlighting.d.ts.map +1 -0
- package/dist/xmlProtocol.d.ts +109 -0
- package/dist/xmlProtocol.d.ts.map +1 -0
- package/package.json +62 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2521 @@
|
|
|
1
|
+
import Pe, { useRef as D, useState as M, useEffect as j, useMemo as le, useCallback as ue } from "react";
|
|
2
|
+
import De from "@monaco-editor/react";
|
|
3
|
+
import * as Ee from "monaco-editor";
|
|
4
|
+
var pe = { exports: {} }, ce = {};
|
|
5
|
+
var he;
|
|
6
|
+
function Re() {
|
|
7
|
+
if (he) return ce;
|
|
8
|
+
he = 1;
|
|
9
|
+
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
10
|
+
function d(t, s, c) {
|
|
11
|
+
var l = null;
|
|
12
|
+
if (c !== void 0 && (l = "" + c), s.key !== void 0 && (l = "" + s.key), "key" in s) {
|
|
13
|
+
c = {};
|
|
14
|
+
for (var p in s)
|
|
15
|
+
p !== "key" && (c[p] = s[p]);
|
|
16
|
+
} else c = s;
|
|
17
|
+
return s = c.ref, {
|
|
18
|
+
$$typeof: r,
|
|
19
|
+
type: t,
|
|
20
|
+
key: l,
|
|
21
|
+
ref: s !== void 0 ? s : null,
|
|
22
|
+
props: c
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return ce.Fragment = a, ce.jsx = d, ce.jsxs = d, ce;
|
|
26
|
+
}
|
|
27
|
+
var oe = {};
|
|
28
|
+
var Ie;
|
|
29
|
+
function Le() {
|
|
30
|
+
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
31
|
+
function r(e) {
|
|
32
|
+
if (e == null) return null;
|
|
33
|
+
if (typeof e == "function")
|
|
34
|
+
return e.$$typeof === F ? null : e.displayName || e.name || null;
|
|
35
|
+
if (typeof e == "string") return e;
|
|
36
|
+
switch (e) {
|
|
37
|
+
case q:
|
|
38
|
+
return "Fragment";
|
|
39
|
+
case W:
|
|
40
|
+
return "Profiler";
|
|
41
|
+
case ee:
|
|
42
|
+
return "StrictMode";
|
|
43
|
+
case ae:
|
|
44
|
+
return "Suspense";
|
|
45
|
+
case _:
|
|
46
|
+
return "SuspenseList";
|
|
47
|
+
case z:
|
|
48
|
+
return "Activity";
|
|
49
|
+
}
|
|
50
|
+
if (typeof e == "object")
|
|
51
|
+
switch (typeof e.tag == "number" && console.error(
|
|
52
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
53
|
+
), e.$$typeof) {
|
|
54
|
+
case $:
|
|
55
|
+
return "Portal";
|
|
56
|
+
case re:
|
|
57
|
+
return e.displayName || "Context";
|
|
58
|
+
case N:
|
|
59
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
60
|
+
case U:
|
|
61
|
+
var m = e.render;
|
|
62
|
+
return e = e.displayName, e || (e = m.displayName || m.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
63
|
+
case se:
|
|
64
|
+
return m = e.displayName || null, m !== null ? m : r(e.type) || "Memo";
|
|
65
|
+
case O:
|
|
66
|
+
m = e._payload, e = e._init;
|
|
67
|
+
try {
|
|
68
|
+
return r(e(m));
|
|
69
|
+
} catch {
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
function a(e) {
|
|
75
|
+
return "" + e;
|
|
76
|
+
}
|
|
77
|
+
function d(e) {
|
|
78
|
+
try {
|
|
79
|
+
a(e);
|
|
80
|
+
var m = !1;
|
|
81
|
+
} catch {
|
|
82
|
+
m = !0;
|
|
83
|
+
}
|
|
84
|
+
if (m) {
|
|
85
|
+
m = console;
|
|
86
|
+
var I = m.error, A = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
87
|
+
return I.call(
|
|
88
|
+
m,
|
|
89
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
90
|
+
A
|
|
91
|
+
), a(e);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function t(e) {
|
|
95
|
+
if (e === q) return "<>";
|
|
96
|
+
if (typeof e == "object" && e !== null && e.$$typeof === O)
|
|
97
|
+
return "<...>";
|
|
98
|
+
try {
|
|
99
|
+
var m = r(e);
|
|
100
|
+
return m ? "<" + m + ">" : "<...>";
|
|
101
|
+
} catch {
|
|
102
|
+
return "<...>";
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function s() {
|
|
106
|
+
var e = C.A;
|
|
107
|
+
return e === null ? null : e.getOwner();
|
|
108
|
+
}
|
|
109
|
+
function c() {
|
|
110
|
+
return Error("react-stack-top-frame");
|
|
111
|
+
}
|
|
112
|
+
function l(e) {
|
|
113
|
+
if (y.call(e, "key")) {
|
|
114
|
+
var m = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
115
|
+
if (m && m.isReactWarning) return !1;
|
|
116
|
+
}
|
|
117
|
+
return e.key !== void 0;
|
|
118
|
+
}
|
|
119
|
+
function p(e, m) {
|
|
120
|
+
function I() {
|
|
121
|
+
b || (b = !0, console.error(
|
|
122
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
123
|
+
m
|
|
124
|
+
));
|
|
125
|
+
}
|
|
126
|
+
I.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
127
|
+
get: I,
|
|
128
|
+
configurable: !0
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function T() {
|
|
132
|
+
var e = r(this.type);
|
|
133
|
+
return L[e] || (L[e] = !0, console.error(
|
|
134
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
135
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
136
|
+
}
|
|
137
|
+
function g(e, m, I, A, te, i) {
|
|
138
|
+
var n = I.ref;
|
|
139
|
+
return e = {
|
|
140
|
+
$$typeof: V,
|
|
141
|
+
type: e,
|
|
142
|
+
key: m,
|
|
143
|
+
props: I,
|
|
144
|
+
_owner: A
|
|
145
|
+
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
146
|
+
enumerable: !1,
|
|
147
|
+
get: T
|
|
148
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
149
|
+
configurable: !1,
|
|
150
|
+
enumerable: !1,
|
|
151
|
+
writable: !0,
|
|
152
|
+
value: 0
|
|
153
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
154
|
+
configurable: !1,
|
|
155
|
+
enumerable: !1,
|
|
156
|
+
writable: !0,
|
|
157
|
+
value: null
|
|
158
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
159
|
+
configurable: !1,
|
|
160
|
+
enumerable: !1,
|
|
161
|
+
writable: !0,
|
|
162
|
+
value: te
|
|
163
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
164
|
+
configurable: !1,
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
writable: !0,
|
|
167
|
+
value: i
|
|
168
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
169
|
+
}
|
|
170
|
+
function E(e, m, I, A, te, i) {
|
|
171
|
+
var n = m.children;
|
|
172
|
+
if (n !== void 0)
|
|
173
|
+
if (A)
|
|
174
|
+
if (o(n)) {
|
|
175
|
+
for (A = 0; A < n.length; A++)
|
|
176
|
+
k(n[A]);
|
|
177
|
+
Object.freeze && Object.freeze(n);
|
|
178
|
+
} else
|
|
179
|
+
console.error(
|
|
180
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
181
|
+
);
|
|
182
|
+
else k(n);
|
|
183
|
+
if (y.call(m, "key")) {
|
|
184
|
+
n = r(e);
|
|
185
|
+
var B = Object.keys(m).filter(function(P) {
|
|
186
|
+
return P !== "key";
|
|
187
|
+
});
|
|
188
|
+
A = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", de[n + A] || (B = 0 < B.length ? "{" + B.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
189
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
190
|
+
let props = %s;
|
|
191
|
+
<%s {...props} />
|
|
192
|
+
React keys must be passed directly to JSX without using spread:
|
|
193
|
+
let props = %s;
|
|
194
|
+
<%s key={someKey} {...props} />`,
|
|
195
|
+
A,
|
|
196
|
+
n,
|
|
197
|
+
B,
|
|
198
|
+
n
|
|
199
|
+
), de[n + A] = !0);
|
|
200
|
+
}
|
|
201
|
+
if (n = null, I !== void 0 && (d(I), n = "" + I), l(m) && (d(m.key), n = "" + m.key), "key" in m) {
|
|
202
|
+
I = {};
|
|
203
|
+
for (var S in m)
|
|
204
|
+
S !== "key" && (I[S] = m[S]);
|
|
205
|
+
} else I = m;
|
|
206
|
+
return n && p(
|
|
207
|
+
I,
|
|
208
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
209
|
+
), g(
|
|
210
|
+
e,
|
|
211
|
+
n,
|
|
212
|
+
I,
|
|
213
|
+
s(),
|
|
214
|
+
te,
|
|
215
|
+
i
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
function k(e) {
|
|
219
|
+
f(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === O && (e._payload.status === "fulfilled" ? f(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
220
|
+
}
|
|
221
|
+
function f(e) {
|
|
222
|
+
return typeof e == "object" && e !== null && e.$$typeof === V;
|
|
223
|
+
}
|
|
224
|
+
var x = Pe, V = /* @__PURE__ */ Symbol.for("react.transitional.element"), $ = /* @__PURE__ */ Symbol.for("react.portal"), q = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), W = /* @__PURE__ */ Symbol.for("react.profiler"), N = /* @__PURE__ */ Symbol.for("react.consumer"), re = /* @__PURE__ */ Symbol.for("react.context"), U = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), se = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), C = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, o = Array.isArray, h = console.createTask ? console.createTask : function() {
|
|
225
|
+
return null;
|
|
226
|
+
};
|
|
227
|
+
x = {
|
|
228
|
+
react_stack_bottom_frame: function(e) {
|
|
229
|
+
return e();
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
var b, L = {}, K = x.react_stack_bottom_frame.bind(
|
|
233
|
+
x,
|
|
234
|
+
c
|
|
235
|
+
)(), G = h(t(c)), de = {};
|
|
236
|
+
oe.Fragment = q, oe.jsx = function(e, m, I) {
|
|
237
|
+
var A = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
238
|
+
return E(
|
|
239
|
+
e,
|
|
240
|
+
m,
|
|
241
|
+
I,
|
|
242
|
+
!1,
|
|
243
|
+
A ? Error("react-stack-top-frame") : K,
|
|
244
|
+
A ? h(t(e)) : G
|
|
245
|
+
);
|
|
246
|
+
}, oe.jsxs = function(e, m, I) {
|
|
247
|
+
var A = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
248
|
+
return E(
|
|
249
|
+
e,
|
|
250
|
+
m,
|
|
251
|
+
I,
|
|
252
|
+
!0,
|
|
253
|
+
A ? Error("react-stack-top-frame") : K,
|
|
254
|
+
A ? h(t(e)) : G
|
|
255
|
+
);
|
|
256
|
+
};
|
|
257
|
+
})()), oe;
|
|
258
|
+
}
|
|
259
|
+
var Ce;
|
|
260
|
+
function He() {
|
|
261
|
+
return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? pe.exports = Re() : pe.exports = Le()), pe.exports;
|
|
262
|
+
}
|
|
263
|
+
var u = He();
|
|
264
|
+
const we = {
|
|
265
|
+
id: "EN16931",
|
|
266
|
+
title: "EN16931 Business Terms",
|
|
267
|
+
xpaths: {
|
|
268
|
+
ubl: "/ubl:Invoice",
|
|
269
|
+
cii: "/rsm:CrossIndustryInvoice"
|
|
270
|
+
},
|
|
271
|
+
children: [
|
|
272
|
+
{
|
|
273
|
+
id: "BT-1",
|
|
274
|
+
title: "BT-1 Invoice number",
|
|
275
|
+
xpaths: {
|
|
276
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:ID"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: "BT-2",
|
|
281
|
+
title: "BT-2 Invoice issue date",
|
|
282
|
+
xpaths: {
|
|
283
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: "BT-3",
|
|
288
|
+
title: "BT-3 Invoice type code",
|
|
289
|
+
xpaths: {
|
|
290
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
id: "BT-5",
|
|
295
|
+
title: "BT-5 Invoice currency code",
|
|
296
|
+
xpaths: {
|
|
297
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
id: "BT-6",
|
|
302
|
+
title: "BT-6 VAT accounting currency code",
|
|
303
|
+
xpaths: {
|
|
304
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
id: "BT-7",
|
|
309
|
+
title: "BT-7 Value added tax point date",
|
|
310
|
+
xpaths: {
|
|
311
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:TaxPointDate/udt:DateString"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
id: "BT-8",
|
|
316
|
+
title: "BT-8 Value added tax point date code",
|
|
317
|
+
xpaths: {
|
|
318
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:DueDateTypeCode"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: "BT-9",
|
|
323
|
+
title: "BT-9 Payment due date",
|
|
324
|
+
xpaths: {
|
|
325
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradePaymentTerms/ram:DueDateDateTime/udt:DateTimeString"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
id: "BT-10",
|
|
330
|
+
title: "BT-10 Buyer reference",
|
|
331
|
+
xpaths: {
|
|
332
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerReference"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
id: "BT-11",
|
|
337
|
+
title: "BT-11 Project reference",
|
|
338
|
+
xpaths: {
|
|
339
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SpecifiedProcuringProject/ram:ID"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
id: "BT-12",
|
|
344
|
+
title: "BT-12 Contract reference",
|
|
345
|
+
xpaths: {
|
|
346
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:ContractReferencedDocument/ram:IssuerAssignedID"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "BT-13",
|
|
351
|
+
title: "BT-13 Purchase order reference",
|
|
352
|
+
xpaths: {
|
|
353
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerOrderReferencedDocument/ram:IssuerAssignedID"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
id: "BT-14",
|
|
358
|
+
title: "BT-14 Sales order reference",
|
|
359
|
+
xpaths: {
|
|
360
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerOrderReferencedDocument/ram:IssuerAssignedID"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: "BT-15",
|
|
365
|
+
title: "BT-15 Receiving advice reference",
|
|
366
|
+
xpaths: {
|
|
367
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ReceivingAdviceReferencedDocument/ram:IssuerAssignedID"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
id: "BT-16",
|
|
372
|
+
title: "BT-16 Despatch advice reference",
|
|
373
|
+
xpaths: {
|
|
374
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:DespatchAdviceReferencedDocument/ram:IssuerAssignedID"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: "BT-17",
|
|
379
|
+
title: "BT-17 Tender or lot reference",
|
|
380
|
+
xpaths: {
|
|
381
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:IssuerAssignedID"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
id: "BT-18",
|
|
386
|
+
title: "BT-18 Invoiced object identifier",
|
|
387
|
+
xpaths: {
|
|
388
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:IssuerAssignedID"
|
|
389
|
+
},
|
|
390
|
+
children: [
|
|
391
|
+
{
|
|
392
|
+
id: "BT-18-1",
|
|
393
|
+
title: "BT-18-1 Scheme identifier",
|
|
394
|
+
xpaths: {
|
|
395
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:ReferenceTypeCode"
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: "BT-19",
|
|
402
|
+
title: "BT-19 Buyer accounting reference",
|
|
403
|
+
xpaths: {
|
|
404
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ReceivableSpecifiedTradeAccountingAccount/ram:ID"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: "BT-20",
|
|
409
|
+
title: "BT-20 Payment terms",
|
|
410
|
+
xpaths: {
|
|
411
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradePaymentTerms/ram:Description"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
id: "BG-1",
|
|
416
|
+
title: "BG-1 INVOICE NOTE",
|
|
417
|
+
xpaths: {
|
|
418
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote"
|
|
419
|
+
},
|
|
420
|
+
children: [
|
|
421
|
+
{
|
|
422
|
+
id: "BT-21",
|
|
423
|
+
title: "BT-21 Invoice note subject code",
|
|
424
|
+
xpaths: {
|
|
425
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote/ram:SubjectCode"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
id: "BT-22",
|
|
430
|
+
title: "BT-22 Invoice note",
|
|
431
|
+
xpaths: {
|
|
432
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote/ram:Content"
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
id: "BG-2",
|
|
439
|
+
title: "BG-2 PROCESS CONTROL",
|
|
440
|
+
xpaths: {
|
|
441
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext"
|
|
442
|
+
},
|
|
443
|
+
children: [
|
|
444
|
+
{
|
|
445
|
+
id: "BT-23",
|
|
446
|
+
title: "BT-23 Business process type",
|
|
447
|
+
xpaths: {
|
|
448
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram: BusinessProcessSpecifiedDocumentContextParameter/ram:ID"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
id: "BT-24",
|
|
453
|
+
title: "BT-24 Specification identifier",
|
|
454
|
+
xpaths: {
|
|
455
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: "BG-3",
|
|
462
|
+
title: "BG-3 PRECEDING INVOICE REFERENCE",
|
|
463
|
+
xpaths: {
|
|
464
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument"
|
|
465
|
+
},
|
|
466
|
+
children: [
|
|
467
|
+
{
|
|
468
|
+
id: "BT-25",
|
|
469
|
+
title: "BT-25 Preceding Invoice number",
|
|
470
|
+
xpaths: {
|
|
471
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/ram:IssuerAssignedID"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
id: "BT-26",
|
|
476
|
+
title: "BT-26 Preceding Invoice issue date",
|
|
477
|
+
xpaths: {
|
|
478
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
id: "BG-5",
|
|
485
|
+
title: "BG-5 SELLER",
|
|
486
|
+
xpaths: {
|
|
487
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty"
|
|
488
|
+
},
|
|
489
|
+
children: [
|
|
490
|
+
{
|
|
491
|
+
id: "BT-35",
|
|
492
|
+
title: "BT-35 Seller address line 1",
|
|
493
|
+
xpaths: {
|
|
494
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineOne"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
id: "BT-36",
|
|
499
|
+
title: "BT-36 Seller address line 2",
|
|
500
|
+
xpaths: {
|
|
501
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineTwo"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
id: "BT-162",
|
|
506
|
+
title: "BT-162 Seller address line 3",
|
|
507
|
+
xpaths: {
|
|
508
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineThree"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
id: "BT-37",
|
|
513
|
+
title: "BT-37 Seller city",
|
|
514
|
+
xpaths: {
|
|
515
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CityName"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
id: "BT-38",
|
|
520
|
+
title: "BT-38 Seller post code",
|
|
521
|
+
xpaths: {
|
|
522
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
id: "BT-39",
|
|
527
|
+
title: "BT-39 Seller country subdivision",
|
|
528
|
+
xpaths: {
|
|
529
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
id: "BT-40",
|
|
534
|
+
title: "BT-40 Seller country code",
|
|
535
|
+
xpaths: {
|
|
536
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
id: "BG-6",
|
|
541
|
+
title: "BG-6 SELLER CONTACT",
|
|
542
|
+
xpaths: {
|
|
543
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:DefinedTradeContact"
|
|
544
|
+
},
|
|
545
|
+
children: [
|
|
546
|
+
{
|
|
547
|
+
id: "BT-41",
|
|
548
|
+
title: "BT-41 Seller contact point",
|
|
549
|
+
xpaths: {
|
|
550
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:DefinedTradeContact/ram:PersonName"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
id: "BT-42",
|
|
555
|
+
title: "BT-42 Seller contact telephone number",
|
|
556
|
+
xpaths: {
|
|
557
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
id: "BT-43",
|
|
562
|
+
title: "BT-43 Seller contact email address",
|
|
563
|
+
xpaths: {
|
|
564
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
id: "BG-7",
|
|
573
|
+
title: "BG-7 BUYER",
|
|
574
|
+
xpaths: {
|
|
575
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty"
|
|
576
|
+
},
|
|
577
|
+
children: [
|
|
578
|
+
{
|
|
579
|
+
id: "BT-44",
|
|
580
|
+
title: "BT-44 Buyer name",
|
|
581
|
+
xpaths: {
|
|
582
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:Name"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
id: "BT-45",
|
|
587
|
+
title: "BT-45 Buyer trading name",
|
|
588
|
+
xpaths: {
|
|
589
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:TradingBusinessName"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
id: "BT-46",
|
|
594
|
+
title: "BT-46 Buyer identifier",
|
|
595
|
+
xpaths: {
|
|
596
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:ID"
|
|
597
|
+
},
|
|
598
|
+
children: [
|
|
599
|
+
{
|
|
600
|
+
id: "BT-46-1",
|
|
601
|
+
title: "BT-46-1 Buyer identifier identification scheme identifier",
|
|
602
|
+
xpaths: {
|
|
603
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:GlobalID/@schemeID"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
id: "BT-47",
|
|
610
|
+
title: "BT-47 Buyer legal registration identifier",
|
|
611
|
+
xpaths: {
|
|
612
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID"
|
|
613
|
+
},
|
|
614
|
+
children: [
|
|
615
|
+
{
|
|
616
|
+
id: "BT-47-1",
|
|
617
|
+
title: "BT-47-1 Buyer legal registration identifier identification scheme identifier",
|
|
618
|
+
xpaths: {
|
|
619
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID/@schemeID"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
id: "BT-48",
|
|
626
|
+
title: "BT-48 Buyer VAT identifier",
|
|
627
|
+
xpaths: {
|
|
628
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
id: "BT-49",
|
|
633
|
+
title: "BT-49 Buyer electronic address",
|
|
634
|
+
xpaths: {
|
|
635
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:URIID"
|
|
636
|
+
},
|
|
637
|
+
children: [
|
|
638
|
+
{
|
|
639
|
+
id: "BT-49-1",
|
|
640
|
+
title: "BT-49-1 Buyer electronic address identification scheme identifier",
|
|
641
|
+
xpaths: {
|
|
642
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:URIID/@schemeID"
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
id: "BG-8",
|
|
649
|
+
title: "BG-8 BUYER POSTAL ADDRESS",
|
|
650
|
+
xpaths: {
|
|
651
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress"
|
|
652
|
+
},
|
|
653
|
+
children: [
|
|
654
|
+
{
|
|
655
|
+
id: "BT-50",
|
|
656
|
+
title: "BT-50 Buyer address line 1",
|
|
657
|
+
xpaths: {
|
|
658
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineOne"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
id: "BT-51",
|
|
663
|
+
title: "BT-51 Buyer address line 2",
|
|
664
|
+
xpaths: {
|
|
665
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineTwo"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
id: "BT-163",
|
|
670
|
+
title: "BT-163 Buyer address line 3",
|
|
671
|
+
xpaths: {
|
|
672
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineThree"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
id: "BT-52",
|
|
677
|
+
title: "BT-52 Buyer city",
|
|
678
|
+
xpaths: {
|
|
679
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CityName"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
id: "BT-53",
|
|
684
|
+
title: "BT-53 Buyer post code",
|
|
685
|
+
xpaths: {
|
|
686
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode"
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
id: "BT-54",
|
|
691
|
+
title: "BT-54 Buyer country subdivision",
|
|
692
|
+
xpaths: {
|
|
693
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
id: "BT-55",
|
|
698
|
+
title: "BT-55 Buyer country code",
|
|
699
|
+
xpaths: {
|
|
700
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID"
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
id: "BG-9",
|
|
707
|
+
title: "BG-9 BUYER CONTACT",
|
|
708
|
+
xpaths: {
|
|
709
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:DefinedTradeContact"
|
|
710
|
+
},
|
|
711
|
+
children: [
|
|
712
|
+
{
|
|
713
|
+
id: "BT-56",
|
|
714
|
+
title: "BT-56 Buyer contact point",
|
|
715
|
+
xpaths: {
|
|
716
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:PersonName"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
id: "BT-57",
|
|
721
|
+
title: "BT-57 Buyer contact telephone number",
|
|
722
|
+
xpaths: {
|
|
723
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication/ram:CompleteNumber"
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
id: "BT-58",
|
|
728
|
+
title: "BT-58 Buyer contact email address",
|
|
729
|
+
xpaths: {
|
|
730
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID"
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
]
|
|
734
|
+
}
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
id: "BG-10",
|
|
739
|
+
title: "BG-10 PAYEE",
|
|
740
|
+
xpaths: {
|
|
741
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty"
|
|
742
|
+
},
|
|
743
|
+
children: [
|
|
744
|
+
{
|
|
745
|
+
id: "BT-59",
|
|
746
|
+
title: "BT-59 Payee name",
|
|
747
|
+
xpaths: {
|
|
748
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty/ram:Name"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
id: "BT-60",
|
|
753
|
+
title: "BT-60 Payee identifier",
|
|
754
|
+
xpaths: {
|
|
755
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty/ram:ID"
|
|
756
|
+
},
|
|
757
|
+
children: [
|
|
758
|
+
{
|
|
759
|
+
id: "BT-60-1",
|
|
760
|
+
title: "BT-60-1 Payee identifier identification scheme identifier",
|
|
761
|
+
xpaths: {
|
|
762
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty/ram:GlobalID/@schemeID"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
id: "BT-61",
|
|
769
|
+
title: "BT-61 Payee legal registration identifier",
|
|
770
|
+
xpaths: {
|
|
771
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:ID"
|
|
772
|
+
},
|
|
773
|
+
children: [
|
|
774
|
+
{
|
|
775
|
+
id: "BT-61-1",
|
|
776
|
+
title: "BT-61-1 Payee legal registration identifier identification scheme identifier",
|
|
777
|
+
xpaths: {
|
|
778
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:ID/@schemeID"
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
]
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
id: "BG-11",
|
|
787
|
+
title: "BG-11 SELLER TAX REPRESENTATIVE PARTY",
|
|
788
|
+
xpaths: {
|
|
789
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty"
|
|
790
|
+
},
|
|
791
|
+
children: [
|
|
792
|
+
{
|
|
793
|
+
id: "BT-62",
|
|
794
|
+
title: "BT-62 Seller tax representa-tive name",
|
|
795
|
+
xpaths: {
|
|
796
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:Name"
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
id: "BT-63",
|
|
801
|
+
title: "BT-63 Seller tax representa-tive VAT identifier",
|
|
802
|
+
xpaths: {
|
|
803
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
id: "BG-12",
|
|
808
|
+
title: "BG-12 SELLER TAX REPRESENTATIVE POSTAL ADDRESS",
|
|
809
|
+
xpaths: {
|
|
810
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress"
|
|
811
|
+
},
|
|
812
|
+
children: [
|
|
813
|
+
{
|
|
814
|
+
id: "BT-64",
|
|
815
|
+
title: "BT-64 Tax representa-tive address line 1",
|
|
816
|
+
xpaths: {
|
|
817
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineOne"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
id: "BT-65",
|
|
822
|
+
title: "BT-65 Tax representa-tive address line 2",
|
|
823
|
+
xpaths: {
|
|
824
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineTwo"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
id: "BT-164",
|
|
829
|
+
title: "BT-164 Tax representative address line 3",
|
|
830
|
+
xpaths: {
|
|
831
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineThree"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
id: "BT-66",
|
|
836
|
+
title: "BT-66 Tax representa-tive city",
|
|
837
|
+
xpaths: {
|
|
838
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CityName"
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
id: "BT-67",
|
|
843
|
+
title: "BT-67 Tax representa-tive post code",
|
|
844
|
+
xpaths: {
|
|
845
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:PostcodeCode"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
id: "BT-68",
|
|
850
|
+
title: "BT-68 Tax representa-tive country subdivision",
|
|
851
|
+
xpaths: {
|
|
852
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
id: "BT-69",
|
|
857
|
+
title: "BT-69 Tax representa-tive country code",
|
|
858
|
+
xpaths: {
|
|
859
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID"
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
id: "BG-13",
|
|
868
|
+
title: "BG-13 DELIVERY INFORMATION",
|
|
869
|
+
xpaths: {
|
|
870
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty"
|
|
871
|
+
},
|
|
872
|
+
children: [
|
|
873
|
+
{
|
|
874
|
+
id: "BT-70",
|
|
875
|
+
title: "BT-70 Deliver to party name",
|
|
876
|
+
xpaths: {
|
|
877
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:Name"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
id: "BT-71",
|
|
882
|
+
title: "BT-71 Deliver to location identifier",
|
|
883
|
+
xpaths: {
|
|
884
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:ID"
|
|
885
|
+
},
|
|
886
|
+
children: [
|
|
887
|
+
{
|
|
888
|
+
id: "BT-71-1",
|
|
889
|
+
title: "BT-71-1 Deliver to location identifier identification scheme identifier",
|
|
890
|
+
xpaths: {
|
|
891
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:GlobalID/@schemeID"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
id: "BT-72",
|
|
898
|
+
title: "BT-72 Actual delivery date",
|
|
899
|
+
xpaths: {
|
|
900
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ActualDeliverySupplyChainEvent/ram:OccurrenceDateTime/udt:DateTimeString"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
id: "BG-14",
|
|
905
|
+
title: "BG-14 DELIVERY OR INVOICE PERIOD",
|
|
906
|
+
xpaths: {
|
|
907
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod"
|
|
908
|
+
},
|
|
909
|
+
children: [
|
|
910
|
+
{
|
|
911
|
+
id: "BT-73",
|
|
912
|
+
title: "BT-73 Invoicing period start date",
|
|
913
|
+
xpaths: {
|
|
914
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod/ram:StartDateTime/udt:DateTimeString"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
id: "BT-74",
|
|
919
|
+
title: "BT-74 Invoicing period end date",
|
|
920
|
+
xpaths: {
|
|
921
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod/ram:EndDateTime/udt:DateTimeString"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
]
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
id: "BG-15",
|
|
928
|
+
title: "BG-15 DELIVER TO ADDRESS",
|
|
929
|
+
xpaths: {
|
|
930
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress"
|
|
931
|
+
},
|
|
932
|
+
children: [
|
|
933
|
+
{
|
|
934
|
+
id: "BT-75",
|
|
935
|
+
title: "BT-75 Deliver to address line 1",
|
|
936
|
+
xpaths: {
|
|
937
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineOne"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
id: "BT-76",
|
|
942
|
+
title: "BT-76 Deliver to address line 2",
|
|
943
|
+
xpaths: {
|
|
944
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineTwo"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
id: "BT-165",
|
|
949
|
+
title: "BT-165 Deliver to address line 3",
|
|
950
|
+
xpaths: {
|
|
951
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineThree"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
id: "BT-77",
|
|
956
|
+
title: "BT-77 Deliver to city",
|
|
957
|
+
xpaths: {
|
|
958
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CityName"
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
id: "BT-78",
|
|
963
|
+
title: "BT-78 Deliver to post code",
|
|
964
|
+
xpaths: {
|
|
965
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:PostcodeCode"
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
id: "BT-79",
|
|
970
|
+
title: "BT-79 Deliver to country subdivision",
|
|
971
|
+
xpaths: {
|
|
972
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
id: "BT-80",
|
|
977
|
+
title: "BT-80 Deliver to country code",
|
|
978
|
+
xpaths: {
|
|
979
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID"
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
}
|
|
984
|
+
]
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
id: "BG-16",
|
|
988
|
+
title: "BG-16 PAYMENT INSTRUC-TIONS",
|
|
989
|
+
xpaths: {
|
|
990
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans"
|
|
991
|
+
},
|
|
992
|
+
children: [
|
|
993
|
+
{
|
|
994
|
+
id: "BT-81",
|
|
995
|
+
title: "BT-81 Payment means type code",
|
|
996
|
+
xpaths: {
|
|
997
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode"
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
id: "BT-82",
|
|
1002
|
+
title: "BT-82 Payment means text",
|
|
1003
|
+
xpaths: {
|
|
1004
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:Information"
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
id: "BT-83",
|
|
1009
|
+
title: "BT-83 Remittance information",
|
|
1010
|
+
xpaths: {
|
|
1011
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:PaymentReference"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
id: "BG-17",
|
|
1016
|
+
title: "BG-17 CREDIT TRANSFER",
|
|
1017
|
+
xpaths: {
|
|
1018
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount"
|
|
1019
|
+
},
|
|
1020
|
+
children: [
|
|
1021
|
+
{
|
|
1022
|
+
id: "BT-84",
|
|
1023
|
+
title: "BT-84 Payment account identifier",
|
|
1024
|
+
xpaths: {
|
|
1025
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:IBANID"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
id: "BT-85",
|
|
1030
|
+
title: "BT-85 Payment account name",
|
|
1031
|
+
xpaths: {
|
|
1032
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:AccountName"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
id: "BT-86",
|
|
1037
|
+
title: "BT-86 Payment service provider identifier"
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
id: "BG-18",
|
|
1043
|
+
title: "BG-18 PAYMENT CARD INFORMA-TION",
|
|
1044
|
+
xpaths: {
|
|
1045
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard"
|
|
1046
|
+
},
|
|
1047
|
+
children: [
|
|
1048
|
+
{
|
|
1049
|
+
id: "BT-87",
|
|
1050
|
+
title: "BT-87 Payment card primary account number",
|
|
1051
|
+
xpaths: {
|
|
1052
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:ID"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
id: "BT-88",
|
|
1057
|
+
title: "BT-88 Payment card holder name",
|
|
1058
|
+
xpaths: {
|
|
1059
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard/ram:CardholderName"
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
id: "BG-19",
|
|
1066
|
+
title: "BG-19 DIRECT DEBIT",
|
|
1067
|
+
xpaths: {
|
|
1068
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement"
|
|
1069
|
+
},
|
|
1070
|
+
children: [
|
|
1071
|
+
{
|
|
1072
|
+
id: "BT-89",
|
|
1073
|
+
title: "BT-89 Mandate reference identifier",
|
|
1074
|
+
xpaths: {
|
|
1075
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID"
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
id: "BT-90",
|
|
1080
|
+
title: "BT-90 Bank assigned creditor identifier",
|
|
1081
|
+
xpaths: {
|
|
1082
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:CreditorReferenceID"
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
id: "BT-91",
|
|
1087
|
+
title: "BT-91 Debited account identifier",
|
|
1088
|
+
xpaths: {
|
|
1089
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ram:IBANID"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
}
|
|
1094
|
+
]
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
id: "BG-20",
|
|
1098
|
+
title: "BG-20 DOCUMENT LEVEL ALLOW-ANCES",
|
|
1099
|
+
xpaths: {
|
|
1100
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge"
|
|
1101
|
+
},
|
|
1102
|
+
children: [
|
|
1103
|
+
{
|
|
1104
|
+
id: "BT-92",
|
|
1105
|
+
title: "BT-92 Document level allowance amount",
|
|
1106
|
+
xpaths: {
|
|
1107
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount"
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
id: "BT-93",
|
|
1112
|
+
title: "BT-93 Document level allowance base amount",
|
|
1113
|
+
xpaths: {
|
|
1114
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:BasisAmount"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
id: "BT-94",
|
|
1119
|
+
title: "BT-94 Document level allowance percentage",
|
|
1120
|
+
xpaths: {
|
|
1121
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CalculationPercent"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
id: "BT-95",
|
|
1126
|
+
title: "BT-95 Document level allowance VAT category code",
|
|
1127
|
+
xpaths: {
|
|
1128
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:TypeCode"
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
id: "BT-96",
|
|
1133
|
+
title: "BT-96 Document level allowance VAT rate",
|
|
1134
|
+
xpaths: {
|
|
1135
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:RateApplicablePercent"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
id: "BT-97",
|
|
1140
|
+
title: "BT-97 Document level allowance reason",
|
|
1141
|
+
xpaths: {
|
|
1142
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason"
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
id: "BT-98",
|
|
1147
|
+
title: "BT-98 Document level allowance reason code",
|
|
1148
|
+
xpaths: {
|
|
1149
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode"
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
]
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
id: "BG-21",
|
|
1156
|
+
title: "BG-21 DOCUMENT LEVEL CHARGES",
|
|
1157
|
+
xpaths: {
|
|
1158
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge"
|
|
1159
|
+
},
|
|
1160
|
+
children: [
|
|
1161
|
+
{
|
|
1162
|
+
id: "BT-99",
|
|
1163
|
+
title: "BT-99 Document level charge amount",
|
|
1164
|
+
xpaths: {
|
|
1165
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount"
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
id: "BT-100",
|
|
1170
|
+
title: "BT-100 Document level charge base amount",
|
|
1171
|
+
xpaths: {
|
|
1172
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:BasisAmount"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
id: "BT-101",
|
|
1177
|
+
title: "BT-101 Document level charge percentage",
|
|
1178
|
+
xpaths: {
|
|
1179
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CalculationPercent"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
id: "BT-102",
|
|
1184
|
+
title: "BT-102 Document level charge VAT category code",
|
|
1185
|
+
xpaths: {
|
|
1186
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:TypeCode"
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
id: "BT-103",
|
|
1191
|
+
title: "BT-103 Document level charge VAT rate",
|
|
1192
|
+
xpaths: {
|
|
1193
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:RateApplicablePercent"
|
|
1194
|
+
}
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
id: "BT-104",
|
|
1198
|
+
title: "BT-104 Document level charge reason",
|
|
1199
|
+
xpaths: {
|
|
1200
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason"
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
id: "BT-105",
|
|
1205
|
+
title: "BT-105 Document level charge reason code",
|
|
1206
|
+
xpaths: {
|
|
1207
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode"
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
id: "BG-22",
|
|
1214
|
+
title: "BG-22 DOCUMENT TOTALS",
|
|
1215
|
+
xpaths: {
|
|
1216
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation"
|
|
1217
|
+
},
|
|
1218
|
+
children: [
|
|
1219
|
+
{
|
|
1220
|
+
id: "BT-106",
|
|
1221
|
+
title: "BT-106 Sum of Invoice line net amount",
|
|
1222
|
+
xpaths: {
|
|
1223
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
id: "BT-107",
|
|
1228
|
+
title: "BT-107 Sum of allowances on document level",
|
|
1229
|
+
xpaths: {
|
|
1230
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:AllowanceTotalAmount"
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
id: "BT-108",
|
|
1235
|
+
title: "BT-108 Sum of charges on document level",
|
|
1236
|
+
xpaths: {
|
|
1237
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:ChargeTotalAmount"
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
id: "BT-109",
|
|
1242
|
+
title: "BT-109 Invoice total amount without VAT",
|
|
1243
|
+
xpaths: {
|
|
1244
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxBasisTotalAmount"
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
id: "BT-110",
|
|
1249
|
+
title: "BT-110 Invoice total VAT amount",
|
|
1250
|
+
xpaths: {
|
|
1251
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount"
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
id: "BT-111",
|
|
1256
|
+
title: "BT-111 Invoice total VAT amount in accounting currency",
|
|
1257
|
+
xpaths: {
|
|
1258
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TaxTotalAmount"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
id: "BT-112",
|
|
1263
|
+
title: "BT-112 Invoice total amount with VAT",
|
|
1264
|
+
xpaths: {
|
|
1265
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:GrandTotalAmount"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
id: "BT-113",
|
|
1270
|
+
title: "BT-113 Paid amount",
|
|
1271
|
+
xpaths: {
|
|
1272
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:TotalPrepaidAmount"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
id: "BT-114",
|
|
1277
|
+
title: "BT-114 Rounding amount",
|
|
1278
|
+
xpaths: {
|
|
1279
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:RoundingAmount"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
id: "BT-115",
|
|
1284
|
+
title: "BT-115 Amount due for payment",
|
|
1285
|
+
xpaths: {
|
|
1286
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:DuePayableAmount"
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
]
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
id: "BG-23",
|
|
1293
|
+
title: "BG-23 VAT BREAK-DOWN",
|
|
1294
|
+
xpaths: {
|
|
1295
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax"
|
|
1296
|
+
},
|
|
1297
|
+
children: [
|
|
1298
|
+
{
|
|
1299
|
+
id: "BT-116",
|
|
1300
|
+
title: "BT-116 VAT category taxable amount",
|
|
1301
|
+
xpaths: {
|
|
1302
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:BasisAmount"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
id: "BT-117",
|
|
1307
|
+
title: "BT-117 VAT category tax amount",
|
|
1308
|
+
xpaths: {
|
|
1309
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:CalculatedAmount"
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
id: "BT-118",
|
|
1314
|
+
title: "BT-118 VAT category code",
|
|
1315
|
+
xpaths: {
|
|
1316
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode"
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
id: "BT-119",
|
|
1321
|
+
title: "BT-119 VAT category rate",
|
|
1322
|
+
xpaths: {
|
|
1323
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
id: "BT-120",
|
|
1328
|
+
title: "BT-120 VAT exemption reason text",
|
|
1329
|
+
xpaths: {
|
|
1330
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:ExemptionReason"
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
id: "BT-121",
|
|
1335
|
+
title: "BT-121 VAT exemption reason code",
|
|
1336
|
+
xpaths: {
|
|
1337
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax/ram:ExemptionReasonCode"
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
id: "BG-24",
|
|
1344
|
+
title: "BG-24 ADDITIONAL SUPPORTING DOCUMENTS",
|
|
1345
|
+
xpaths: {
|
|
1346
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument"
|
|
1347
|
+
},
|
|
1348
|
+
children: [
|
|
1349
|
+
{
|
|
1350
|
+
id: "BT-122",
|
|
1351
|
+
title: "BT-122 Supporting document reference",
|
|
1352
|
+
xpaths: {
|
|
1353
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:IssuerAssignedID"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
id: "BT-123",
|
|
1358
|
+
title: "BT-123 Supporting document description",
|
|
1359
|
+
xpaths: {
|
|
1360
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:Name"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
id: "BT-124",
|
|
1365
|
+
title: "BT-124 External document location",
|
|
1366
|
+
xpaths: {
|
|
1367
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:URIID"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
id: "BT-125",
|
|
1372
|
+
title: "BT-125 Attached document",
|
|
1373
|
+
xpaths: {
|
|
1374
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject"
|
|
1375
|
+
},
|
|
1376
|
+
children: [
|
|
1377
|
+
{
|
|
1378
|
+
id: "BT-125-1",
|
|
1379
|
+
title: "BT-125-1 Attached document Mime code",
|
|
1380
|
+
xpaths: {
|
|
1381
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@mimeCode"
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
id: "BT-125-2",
|
|
1386
|
+
title: "BT-125-2 Attached document Filename",
|
|
1387
|
+
xpaths: {
|
|
1388
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@filename"
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
]
|
|
1392
|
+
}
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
id: "BG-25",
|
|
1397
|
+
title: "BG-25 INVOICE LINE",
|
|
1398
|
+
xpaths: {
|
|
1399
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem"
|
|
1400
|
+
},
|
|
1401
|
+
children: [
|
|
1402
|
+
{
|
|
1403
|
+
id: "BT-126",
|
|
1404
|
+
title: "BT-126 Invoice line identifier",
|
|
1405
|
+
xpaths: {
|
|
1406
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:LineID"
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
id: "BT-127",
|
|
1411
|
+
title: "BT-127 Invoice line note",
|
|
1412
|
+
xpaths: {
|
|
1413
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument/ram:IncludedNote/ram:Content"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
id: "BT-128",
|
|
1418
|
+
title: "BT-128 Invoice line object identifier",
|
|
1419
|
+
xpaths: {
|
|
1420
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:AdditionalReferencedDocument/ram:IssuerAssignedID"
|
|
1421
|
+
},
|
|
1422
|
+
children: [
|
|
1423
|
+
{
|
|
1424
|
+
id: "BT-128-1",
|
|
1425
|
+
title: "BT-128-1 Invoice line object identifier identification",
|
|
1426
|
+
xpaths: {
|
|
1427
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:AdditionalReferencedDocument/ram:ReferenceTypeCode"
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
id: "BT-129",
|
|
1434
|
+
title: "BT-129 Invoiced quantity",
|
|
1435
|
+
xpaths: {
|
|
1436
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
id: "BT-130",
|
|
1441
|
+
title: "BT-130 Invoiced quantity unit of measure",
|
|
1442
|
+
xpaths: {
|
|
1443
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
id: "BT-131",
|
|
1448
|
+
title: "BT-131 Invoice line net amount",
|
|
1449
|
+
xpaths: {
|
|
1450
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount"
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
id: "BT-132",
|
|
1455
|
+
title: "BT-132 Referenced purchase order line reference",
|
|
1456
|
+
xpaths: {
|
|
1457
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:BuyerOrderReferencedDocument/ram:LineID"
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
id: "BT-133",
|
|
1462
|
+
title: "BT-133 Invoice line Buyer accounting reference",
|
|
1463
|
+
xpaths: {
|
|
1464
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ReceivableSpecifiedTradeAccountingAccount/ram:ID"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
id: "BG-26",
|
|
1469
|
+
title: "BG-26 INVOICE LINE PERIOD",
|
|
1470
|
+
xpaths: {
|
|
1471
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod"
|
|
1472
|
+
},
|
|
1473
|
+
children: [
|
|
1474
|
+
{
|
|
1475
|
+
id: "BT-134",
|
|
1476
|
+
title: "BT-134 Invoice line period start date",
|
|
1477
|
+
xpaths: {
|
|
1478
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod/ram:StartDateTime/udt:DateTimeString"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
id: "BT-135",
|
|
1483
|
+
title: "BT-135 Invoice line period end date",
|
|
1484
|
+
xpaths: {
|
|
1485
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:BillingSpecifiedPeriod/ram:EndDateTime/udt:DateTimeString"
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
]
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
id: "BG-27",
|
|
1492
|
+
title: "BG-27 INVOICE LINE ALLOW-ANCES",
|
|
1493
|
+
xpaths: {
|
|
1494
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge"
|
|
1495
|
+
},
|
|
1496
|
+
children: [
|
|
1497
|
+
{
|
|
1498
|
+
id: "BT-136",
|
|
1499
|
+
title: "BT-136 Invoice line allowance amount",
|
|
1500
|
+
xpaths: {
|
|
1501
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount"
|
|
1502
|
+
}
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
id: "BT-137",
|
|
1506
|
+
title: "BT-137 Invoice line allowance base amount",
|
|
1507
|
+
xpaths: {
|
|
1508
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:BasisAmount"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
id: "BT-138",
|
|
1513
|
+
title: "BT-138 Invoice line allowance percentage",
|
|
1514
|
+
xpaths: {
|
|
1515
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CalculationPercent"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
id: "BT-139",
|
|
1520
|
+
title: "BT-139 Invoice line allowance reason",
|
|
1521
|
+
xpaths: {
|
|
1522
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
id: "BT-140",
|
|
1527
|
+
title: "BT-140 Invoice line allowance reason code",
|
|
1528
|
+
xpaths: {
|
|
1529
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode"
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
]
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
id: "BG-28",
|
|
1536
|
+
title: "BG-28 INVOICE LINE CHARGES",
|
|
1537
|
+
xpaths: {
|
|
1538
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge"
|
|
1539
|
+
},
|
|
1540
|
+
children: [
|
|
1541
|
+
{
|
|
1542
|
+
id: "BT-141",
|
|
1543
|
+
title: "BT-141 Invoice line charge amount",
|
|
1544
|
+
xpaths: {
|
|
1545
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount"
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
id: "BT-142",
|
|
1550
|
+
title: "BT-142 Invoice line charge base amount",
|
|
1551
|
+
xpaths: {
|
|
1552
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:BasisAmount"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
id: "BT-143",
|
|
1557
|
+
title: "BT-143 Invoice line charge percentage",
|
|
1558
|
+
xpaths: {
|
|
1559
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:CalculationPercent"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
id: "BT-144",
|
|
1564
|
+
title: "BT-144 Invoice line charge reason",
|
|
1565
|
+
xpaths: {
|
|
1566
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason"
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
id: "BT-145",
|
|
1571
|
+
title: "BT-145 Invoice line charge reason code",
|
|
1572
|
+
xpaths: {
|
|
1573
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode"
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
]
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
id: "BG-29",
|
|
1580
|
+
title: "BG-29 PRICE DETAILS",
|
|
1581
|
+
xpaths: {
|
|
1582
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement"
|
|
1583
|
+
},
|
|
1584
|
+
children: [
|
|
1585
|
+
{
|
|
1586
|
+
id: "BT-146",
|
|
1587
|
+
title: "BT-146 Item net price",
|
|
1588
|
+
xpaths: {
|
|
1589
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
id: "BT-147",
|
|
1594
|
+
title: "BT-147 Item price discount",
|
|
1595
|
+
xpaths: {
|
|
1596
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount"
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
id: "BT-148",
|
|
1601
|
+
title: "BT-148 Item gross price",
|
|
1602
|
+
xpaths: {
|
|
1603
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:ChargeAmount"
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
id: "BT-149",
|
|
1608
|
+
title: "BT-149 Item price base quantity",
|
|
1609
|
+
xpaths: {
|
|
1610
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:BasisQuantity"
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
id: "BT-150",
|
|
1615
|
+
title: "BT-150 Item price base quantity unit of measure code",
|
|
1616
|
+
xpaths: {
|
|
1617
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:BasisQuantity/@unitCode"
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
id: "BG-30",
|
|
1624
|
+
title: "BG-30 LINE VAT INFORMA-TION",
|
|
1625
|
+
xpaths: {
|
|
1626
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax"
|
|
1627
|
+
},
|
|
1628
|
+
children: [
|
|
1629
|
+
{
|
|
1630
|
+
id: "BT-151",
|
|
1631
|
+
title: "BT-151 Invoiced item VAT category code",
|
|
1632
|
+
xpaths: {
|
|
1633
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode"
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
id: "BT-152",
|
|
1638
|
+
title: "BT-152 Invoiced item VAT rate",
|
|
1639
|
+
xpaths: {
|
|
1640
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
]
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
id: "BG-31",
|
|
1647
|
+
title: "BG-31 ITEM INFORMA-TION",
|
|
1648
|
+
xpaths: {
|
|
1649
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct"
|
|
1650
|
+
},
|
|
1651
|
+
children: [
|
|
1652
|
+
{
|
|
1653
|
+
id: "BT-153",
|
|
1654
|
+
title: "BT-153 Item name",
|
|
1655
|
+
xpaths: {
|
|
1656
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:Name"
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
id: "BT-154",
|
|
1661
|
+
title: "BT-154 Item description",
|
|
1662
|
+
xpaths: {
|
|
1663
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:Description"
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
id: "BT-155",
|
|
1668
|
+
title: "BT-155 Item Seller's identifier",
|
|
1669
|
+
xpaths: {
|
|
1670
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:SellerAssignedID"
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
id: "BT-156",
|
|
1675
|
+
title: "BT-156 Item Buyer's identifier",
|
|
1676
|
+
xpaths: {
|
|
1677
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:BuyerAssignedID"
|
|
1678
|
+
}
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
id: "BT-157",
|
|
1682
|
+
title: "BT-157 Item standard identifier",
|
|
1683
|
+
xpaths: {
|
|
1684
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:GlobalID"
|
|
1685
|
+
},
|
|
1686
|
+
children: [
|
|
1687
|
+
{
|
|
1688
|
+
id: "BT-157-1",
|
|
1689
|
+
title: "BT-157-1 Item standard identifier identification scheme identifier",
|
|
1690
|
+
xpaths: {
|
|
1691
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:GlobalID/@schemeID"
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
id: "BT-158",
|
|
1698
|
+
title: "BT-158 Item classification identifier",
|
|
1699
|
+
xpaths: {
|
|
1700
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode"
|
|
1701
|
+
},
|
|
1702
|
+
children: [
|
|
1703
|
+
{
|
|
1704
|
+
id: "BT-158-1",
|
|
1705
|
+
title: "BT-158-1 Item classification identifier identification scheme identifier",
|
|
1706
|
+
xpaths: {
|
|
1707
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/@listID"
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
id: "BT-158-2",
|
|
1712
|
+
title: "BT-158-2 Scheme version identifer",
|
|
1713
|
+
xpaths: {
|
|
1714
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/@listVersionID"
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
]
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
id: "BT-159",
|
|
1721
|
+
title: "BT-159 Item country of origin",
|
|
1722
|
+
xpaths: {
|
|
1723
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID"
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
id: "BG-32",
|
|
1728
|
+
title: "BG-32 ITEM ATTRIBUTES",
|
|
1729
|
+
xpaths: {
|
|
1730
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic"
|
|
1731
|
+
},
|
|
1732
|
+
children: [
|
|
1733
|
+
{
|
|
1734
|
+
id: "BT-160",
|
|
1735
|
+
title: "BT-160 Item attribute name",
|
|
1736
|
+
xpaths: {
|
|
1737
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic/ram:Description"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
id: "BT-161",
|
|
1742
|
+
title: "BT-161 Item attribute value",
|
|
1743
|
+
xpaths: {
|
|
1744
|
+
cii: "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic/ram:Value"
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
]
|
|
1748
|
+
}
|
|
1749
|
+
]
|
|
1750
|
+
}
|
|
1751
|
+
]
|
|
1752
|
+
}
|
|
1753
|
+
]
|
|
1754
|
+
};
|
|
1755
|
+
function ke(r) {
|
|
1756
|
+
return r.replace(/\/@[^/]+$/, "");
|
|
1757
|
+
}
|
|
1758
|
+
function Ne(r = we) {
|
|
1759
|
+
const a = (d, t) => {
|
|
1760
|
+
const s = {
|
|
1761
|
+
key: t,
|
|
1762
|
+
id: d.id,
|
|
1763
|
+
title: d.title,
|
|
1764
|
+
xpaths: d.xpaths
|
|
1765
|
+
};
|
|
1766
|
+
return d.children?.length && (s.children = d.children.map(
|
|
1767
|
+
(c, l) => a(c, `${t}.${c.id}:${l}`)
|
|
1768
|
+
)), s;
|
|
1769
|
+
};
|
|
1770
|
+
return a(r, "EN16931:0");
|
|
1771
|
+
}
|
|
1772
|
+
function Oe(r, a) {
|
|
1773
|
+
const d = [], t = (s) => {
|
|
1774
|
+
const c = s.xpaths?.[a];
|
|
1775
|
+
c && d.push({
|
|
1776
|
+
key: s.key,
|
|
1777
|
+
id: s.id,
|
|
1778
|
+
xpath: c,
|
|
1779
|
+
cursorXpath: ke(c)
|
|
1780
|
+
}), s.children?.forEach(t);
|
|
1781
|
+
};
|
|
1782
|
+
return t(r), d;
|
|
1783
|
+
}
|
|
1784
|
+
function Me(r) {
|
|
1785
|
+
const { root: a } = r;
|
|
1786
|
+
return /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx(Ae, { node: a, depth: 0, ...r }) });
|
|
1787
|
+
}
|
|
1788
|
+
function Ae(r) {
|
|
1789
|
+
const {
|
|
1790
|
+
node: a,
|
|
1791
|
+
depth: d,
|
|
1792
|
+
expanded: t,
|
|
1793
|
+
selectedKey: s,
|
|
1794
|
+
onClickNode: c,
|
|
1795
|
+
getNodeXpath: l,
|
|
1796
|
+
getMatchCount: p
|
|
1797
|
+
} = r, T = !!a.children?.length, g = t[a.key] ?? !1, E = s === a.key, k = l(a), f = p(a);
|
|
1798
|
+
return /* @__PURE__ */ u.jsxs("div", { children: [
|
|
1799
|
+
/* @__PURE__ */ u.jsxs(
|
|
1800
|
+
"div",
|
|
1801
|
+
{
|
|
1802
|
+
role: "button",
|
|
1803
|
+
tabIndex: 0,
|
|
1804
|
+
"data-tree-key": a.key,
|
|
1805
|
+
onClick: () => c(a),
|
|
1806
|
+
onKeyDown: (x) => x.key === "Enter" && c(a),
|
|
1807
|
+
style: {
|
|
1808
|
+
color: "black",
|
|
1809
|
+
display: "flex",
|
|
1810
|
+
alignItems: "center",
|
|
1811
|
+
gap: 8,
|
|
1812
|
+
padding: "6px 8px",
|
|
1813
|
+
paddingLeft: d * 12 + 8,
|
|
1814
|
+
borderRadius: 6,
|
|
1815
|
+
cursor: "pointer",
|
|
1816
|
+
background: E ? "rgba(0,0,0,0.06)" : "transparent",
|
|
1817
|
+
userSelect: "none"
|
|
1818
|
+
},
|
|
1819
|
+
title: k || a.key,
|
|
1820
|
+
children: [
|
|
1821
|
+
/* @__PURE__ */ u.jsx(
|
|
1822
|
+
"span",
|
|
1823
|
+
{
|
|
1824
|
+
style: { width: 16, display: "inline-block", textAlign: "center" },
|
|
1825
|
+
children: T ? g ? "▾" : "▸" : "•"
|
|
1826
|
+
}
|
|
1827
|
+
),
|
|
1828
|
+
/* @__PURE__ */ u.jsx("span", { style: { fontFamily: "monospace", fontSize: 12, opacity: 0.85 }, children: a.id }),
|
|
1829
|
+
/* @__PURE__ */ u.jsx("span", { style: { fontSize: 13 }, children: a.title }),
|
|
1830
|
+
k && /* @__PURE__ */ u.jsx(u.Fragment, { children: typeof f == "number" && /* @__PURE__ */ u.jsx(
|
|
1831
|
+
"span",
|
|
1832
|
+
{
|
|
1833
|
+
style: {
|
|
1834
|
+
marginLeft: "auto",
|
|
1835
|
+
fontSize: 11,
|
|
1836
|
+
fontFamily: "monospace",
|
|
1837
|
+
color: f === 0 ? "#b91c1c" : "#1f2937",
|
|
1838
|
+
background: f === 0 ? "#fee2e2" : "#e5e7eb",
|
|
1839
|
+
borderRadius: 999,
|
|
1840
|
+
padding: "1px 7px"
|
|
1841
|
+
},
|
|
1842
|
+
children: f
|
|
1843
|
+
}
|
|
1844
|
+
) })
|
|
1845
|
+
]
|
|
1846
|
+
}
|
|
1847
|
+
),
|
|
1848
|
+
T && g && /* @__PURE__ */ u.jsx("div", { children: a.children.map((x) => /* @__PURE__ */ u.jsx(Ae, { ...r, node: x, depth: d + 1 }, x.key)) })
|
|
1849
|
+
] });
|
|
1850
|
+
}
|
|
1851
|
+
function _e() {
|
|
1852
|
+
return typeof window < "u" && window.localStorage.getItem("xmlExplorerDebug") === "1";
|
|
1853
|
+
}
|
|
1854
|
+
function Ge(r) {
|
|
1855
|
+
const { xmlText: a, syntax: d, mappings: t } = r, s = D(null), c = D(0), l = D(0), p = D(
|
|
1856
|
+
/* @__PURE__ */ new Map()
|
|
1857
|
+
), T = D(
|
|
1858
|
+
/* @__PURE__ */ new Map()
|
|
1859
|
+
), g = D(null), E = D(null), k = D("idle"), [f, x] = M("idle"), [V, $] = M(null), [q, ee] = M({}), [W, N] = M(null), [re, U] = M(null), [ae, _] = M(null);
|
|
1860
|
+
j(() => {
|
|
1861
|
+
k.current = f;
|
|
1862
|
+
}, [f]);
|
|
1863
|
+
const se = le(
|
|
1864
|
+
() => t.map((C) => `${C.key}|${C.xpath}`).join("||"),
|
|
1865
|
+
[t]
|
|
1866
|
+
);
|
|
1867
|
+
j(() => {
|
|
1868
|
+
const C = new Worker(
|
|
1869
|
+
new URL(
|
|
1870
|
+
/* @vite-ignore */
|
|
1871
|
+
"/assets/xmlExplorer.worker-CHTIePgi.js",
|
|
1872
|
+
import.meta.url
|
|
1873
|
+
),
|
|
1874
|
+
{ type: "module" }
|
|
1875
|
+
);
|
|
1876
|
+
return s.current = C, C.onmessage = (y) => {
|
|
1877
|
+
const o = y.data;
|
|
1878
|
+
if (o.xmlVersion === c.current)
|
|
1879
|
+
switch (o.type) {
|
|
1880
|
+
case "INIT_PROGRESS":
|
|
1881
|
+
x("indexing");
|
|
1882
|
+
return;
|
|
1883
|
+
case "INIT_READY":
|
|
1884
|
+
x("ready"), N((h) => h?.total ? h : null);
|
|
1885
|
+
return;
|
|
1886
|
+
case "COUNT_BATCH":
|
|
1887
|
+
ee((h) => {
|
|
1888
|
+
const b = { ...h };
|
|
1889
|
+
for (const L of o.entries)
|
|
1890
|
+
b[L.key] = L.count;
|
|
1891
|
+
return b;
|
|
1892
|
+
}), N({ done: o.done, total: o.total }), o.done >= o.total && N(null);
|
|
1893
|
+
return;
|
|
1894
|
+
case "CURSOR_RESULT":
|
|
1895
|
+
if (o.requestId !== l.current) return;
|
|
1896
|
+
_e() && console.debug("[xml-explorer] cursor-result", {
|
|
1897
|
+
requestId: o.requestId,
|
|
1898
|
+
key: o.key,
|
|
1899
|
+
debug: o.debug
|
|
1900
|
+
}), U(o.key), _(o.debug ?? null);
|
|
1901
|
+
return;
|
|
1902
|
+
case "MATCH_RESULT": {
|
|
1903
|
+
const h = p.current.get(o.requestId);
|
|
1904
|
+
h && (p.current.delete(o.requestId), h.resolve({ total: o.total, matches: o.matches }));
|
|
1905
|
+
return;
|
|
1906
|
+
}
|
|
1907
|
+
case "COUNT_RESULT": {
|
|
1908
|
+
const h = T.current.get(o.requestId);
|
|
1909
|
+
h && (T.current.delete(o.requestId), h.resolve(o.count));
|
|
1910
|
+
return;
|
|
1911
|
+
}
|
|
1912
|
+
case "ERROR":
|
|
1913
|
+
if (x("error"), $(o.message), typeof o.requestId == "number") {
|
|
1914
|
+
const h = p.current.get(o.requestId);
|
|
1915
|
+
h && (p.current.delete(o.requestId), h.reject(new Error(o.message)));
|
|
1916
|
+
const b = T.current.get(o.requestId);
|
|
1917
|
+
b && (T.current.delete(o.requestId), b.reject(new Error(o.message)));
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
}, () => {
|
|
1921
|
+
C.terminate(), s.current = null, p.current.forEach(
|
|
1922
|
+
(y) => y.reject(new Error("Worker terminated"))
|
|
1923
|
+
), p.current.clear(), T.current.forEach(
|
|
1924
|
+
(y) => y.reject(new Error("Worker terminated"))
|
|
1925
|
+
), T.current.clear();
|
|
1926
|
+
};
|
|
1927
|
+
}, []), j(() => {
|
|
1928
|
+
c.current += 1;
|
|
1929
|
+
const C = c.current;
|
|
1930
|
+
l.current = 0, U(null), $(null), x("indexing"), ee({}), N(t.length ? { done: 0, total: t.length } : null), _(null), p.current.forEach(
|
|
1931
|
+
(o) => o.reject(new Error("Canceled due to new XML version"))
|
|
1932
|
+
), p.current.clear(), T.current.forEach(
|
|
1933
|
+
(o) => o.reject(new Error("Canceled due to new XML version"))
|
|
1934
|
+
), T.current.clear();
|
|
1935
|
+
const y = {
|
|
1936
|
+
type: "INIT",
|
|
1937
|
+
xmlVersion: C,
|
|
1938
|
+
xmlText: a,
|
|
1939
|
+
syntax: d,
|
|
1940
|
+
mappings: t
|
|
1941
|
+
};
|
|
1942
|
+
s.current?.postMessage(y);
|
|
1943
|
+
}, [a, d, se, t]);
|
|
1944
|
+
const O = ue((C, y) => {
|
|
1945
|
+
if (k.current !== "ready" || g.current === C && E.current === y)
|
|
1946
|
+
return;
|
|
1947
|
+
g.current = C, E.current = y;
|
|
1948
|
+
const o = ++l.current, h = {
|
|
1949
|
+
type: "CURSOR_LOOKUP",
|
|
1950
|
+
xmlVersion: c.current,
|
|
1951
|
+
requestId: o,
|
|
1952
|
+
line: C,
|
|
1953
|
+
column: y
|
|
1954
|
+
};
|
|
1955
|
+
s.current?.postMessage(h);
|
|
1956
|
+
}, []), z = ue(
|
|
1957
|
+
(C, y, o = 1, h) => new Promise((b, L) => {
|
|
1958
|
+
const K = ++l.current, G = {
|
|
1959
|
+
type: "GET_MATCHES",
|
|
1960
|
+
xmlVersion: c.current,
|
|
1961
|
+
requestId: K,
|
|
1962
|
+
nodeKey: C,
|
|
1963
|
+
offset: y,
|
|
1964
|
+
limit: o,
|
|
1965
|
+
context: h
|
|
1966
|
+
};
|
|
1967
|
+
p.current.set(K, { resolve: b, reject: L }), s.current?.postMessage(G);
|
|
1968
|
+
}),
|
|
1969
|
+
[]
|
|
1970
|
+
), F = ue(
|
|
1971
|
+
(C, y) => new Promise((o, h) => {
|
|
1972
|
+
const b = ++l.current, L = {
|
|
1973
|
+
type: "GET_COUNT",
|
|
1974
|
+
xmlVersion: c.current,
|
|
1975
|
+
requestId: b,
|
|
1976
|
+
nodeKey: C,
|
|
1977
|
+
context: y
|
|
1978
|
+
};
|
|
1979
|
+
T.current.set(b, { resolve: o, reject: h }), s.current?.postMessage(L);
|
|
1980
|
+
}),
|
|
1981
|
+
[]
|
|
1982
|
+
);
|
|
1983
|
+
return {
|
|
1984
|
+
workerState: f,
|
|
1985
|
+
error: V,
|
|
1986
|
+
countByKey: q,
|
|
1987
|
+
countProgress: W,
|
|
1988
|
+
cursorMatchKey: re,
|
|
1989
|
+
cursorLookupDebug: ae,
|
|
1990
|
+
lookupCursor: O,
|
|
1991
|
+
requestMatches: z,
|
|
1992
|
+
requestCount: F
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
const je = 120, xe = 500;
|
|
1996
|
+
function Se() {
|
|
1997
|
+
return typeof window < "u" && window.localStorage.getItem("xmlExplorerDebug") === "1";
|
|
1998
|
+
}
|
|
1999
|
+
function Qe({ xml: r, syntax: a = "cii" }) {
|
|
2000
|
+
const d = D(null), t = D([]), s = D(null), c = D(/* @__PURE__ */ new Set()), l = D(
|
|
2001
|
+
"idle"
|
|
2002
|
+
), p = D(!1), T = D(null), g = D(null), E = D(null), [k, f] = M(""), [x, V] = M(
|
|
2003
|
+
"nearest"
|
|
2004
|
+
), [$, q] = M(null), [ee, W] = M({}), [N, re] = M({}), [U, ae] = M({});
|
|
2005
|
+
j(() => {
|
|
2006
|
+
W({}), q(null), ae({}), c.current.clear();
|
|
2007
|
+
}, [r]);
|
|
2008
|
+
const _ = le(() => Ne(), []), se = le(
|
|
2009
|
+
() => Oe(_, a),
|
|
2010
|
+
[_, a]
|
|
2011
|
+
), {
|
|
2012
|
+
workerState: O,
|
|
2013
|
+
error: z,
|
|
2014
|
+
countByKey: F,
|
|
2015
|
+
countProgress: C,
|
|
2016
|
+
cursorMatchKey: y,
|
|
2017
|
+
cursorLookupDebug: o,
|
|
2018
|
+
lookupCursor: h,
|
|
2019
|
+
requestMatches: b,
|
|
2020
|
+
requestCount: L
|
|
2021
|
+
} = Ge({
|
|
2022
|
+
xmlText: r,
|
|
2023
|
+
syntax: a,
|
|
2024
|
+
mappings: se
|
|
2025
|
+
});
|
|
2026
|
+
j(() => {
|
|
2027
|
+
l.current = O;
|
|
2028
|
+
}, [O]), j(() => {
|
|
2029
|
+
const i = (S) => {
|
|
2030
|
+
S.key === "Control" && (p.current = !0);
|
|
2031
|
+
}, n = (S) => {
|
|
2032
|
+
S.key === "Control" && (p.current = !1);
|
|
2033
|
+
}, B = () => {
|
|
2034
|
+
p.current = !1;
|
|
2035
|
+
};
|
|
2036
|
+
return window.addEventListener("keydown", i), window.addEventListener("keyup", n), window.addEventListener("blur", B), () => {
|
|
2037
|
+
window.removeEventListener("keydown", i), window.removeEventListener("keyup", n), window.removeEventListener("blur", B);
|
|
2038
|
+
};
|
|
2039
|
+
}, []), j(() => {
|
|
2040
|
+
z && f(z);
|
|
2041
|
+
}, [z]);
|
|
2042
|
+
const K = (i) => i.xpaths?.[a], G = le(() => {
|
|
2043
|
+
const i = (n) => {
|
|
2044
|
+
const B = n.children ?? [], S = ne(n.key), P = S.length > 0 ? U[n.key] : void 0, H = typeof P == "number" ? P : S.length > 0 ? void 0 : F[me(n.key)] ?? 0;
|
|
2045
|
+
if (typeof H == "number" && H > 1 && B.length > 0 && N[n.key]) {
|
|
2046
|
+
const R = Math.min(H, xe);
|
|
2047
|
+
return {
|
|
2048
|
+
...n,
|
|
2049
|
+
children: Array.from({ length: R }, (w, v) => {
|
|
2050
|
+
const J = v + 1, Q = `${n.key}::${J}`;
|
|
2051
|
+
return {
|
|
2052
|
+
key: Q,
|
|
2053
|
+
id: n.id,
|
|
2054
|
+
title: `${n.title} [${J}]`,
|
|
2055
|
+
xpaths: n.xpaths,
|
|
2056
|
+
isOccurrence: !0,
|
|
2057
|
+
children: B.map((Y, ie) => {
|
|
2058
|
+
const X = fe(Q, Y.id, ie);
|
|
2059
|
+
return i({ ...Y, key: X });
|
|
2060
|
+
})
|
|
2061
|
+
};
|
|
2062
|
+
})
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
return {
|
|
2066
|
+
...n,
|
|
2067
|
+
children: B.map(
|
|
2068
|
+
(R, w) => i({
|
|
2069
|
+
...R,
|
|
2070
|
+
key: fe(n.key, R.id, w)
|
|
2071
|
+
})
|
|
2072
|
+
)
|
|
2073
|
+
};
|
|
2074
|
+
};
|
|
2075
|
+
return i(_);
|
|
2076
|
+
}, [_, F, U, N]), de = le(
|
|
2077
|
+
() => Ue(G, N),
|
|
2078
|
+
[G, N]
|
|
2079
|
+
);
|
|
2080
|
+
j(() => {
|
|
2081
|
+
E.current = G;
|
|
2082
|
+
}, [G]), j(() => {
|
|
2083
|
+
$ && requestAnimationFrame(() => {
|
|
2084
|
+
ve(T.current, $);
|
|
2085
|
+
});
|
|
2086
|
+
}, [$, G, N]), j(() => {
|
|
2087
|
+
if (!y) return;
|
|
2088
|
+
const i = `${y}|${o?.bestLine ?? ""}|${o?.bestColumn ?? ""}`;
|
|
2089
|
+
if (g.current === i) return;
|
|
2090
|
+
g.current = i;
|
|
2091
|
+
let n = !1;
|
|
2092
|
+
return (async () => {
|
|
2093
|
+
const S = o?.bestLine, P = o?.bestColumn, H = Xe(o), R = Be(o?.absolutePath), w = Be(o?.matchedCursorXpath);
|
|
2094
|
+
if (!H && x === "strict") {
|
|
2095
|
+
e(), f(
|
|
2096
|
+
`No exact BT/BG for ${R}. Strict mode blocks fallback${w ? ` (nearest: ${w})` : ""}.`
|
|
2097
|
+
);
|
|
2098
|
+
return;
|
|
2099
|
+
}
|
|
2100
|
+
let v = y;
|
|
2101
|
+
if (typeof S == "number" && typeof P == "number" && (v = await We(
|
|
2102
|
+
y,
|
|
2103
|
+
S,
|
|
2104
|
+
P,
|
|
2105
|
+
_,
|
|
2106
|
+
L,
|
|
2107
|
+
b
|
|
2108
|
+
)), Se() && console.debug("[xml-explorer] editor->tree sync", {
|
|
2109
|
+
cursorMatchKey: y,
|
|
2110
|
+
resolvedKey: v,
|
|
2111
|
+
depth: ne(v).length,
|
|
2112
|
+
cursor: { line: S, column: P }
|
|
2113
|
+
}), n) return;
|
|
2114
|
+
e(), q((X) => X === v ? X : v), Ve(v, re);
|
|
2115
|
+
const Q = (E.current ? Te(E.current, v) : null)?.title ?? v, Y = me(v), ie = ne(v);
|
|
2116
|
+
try {
|
|
2117
|
+
const X = ie.length > 0 ? 10 : Math.min(50, F[Y] ?? 1), Z = await b(
|
|
2118
|
+
Y,
|
|
2119
|
+
0,
|
|
2120
|
+
Math.max(1, X),
|
|
2121
|
+
ie
|
|
2122
|
+
), ye = typeof S == "number" && typeof P == "number" ? Z.matches[ge(Z.matches, S, P)] : Z.matches[0];
|
|
2123
|
+
if (!ye || n) return;
|
|
2124
|
+
I(ye, Q, 0, Z.total), H || f(
|
|
2125
|
+
`No exact BT/BG for ${R}. Mapped to nearest: ${w}.`
|
|
2126
|
+
), W((be) => ({ ...be, [v]: 0 }));
|
|
2127
|
+
} catch {
|
|
2128
|
+
}
|
|
2129
|
+
})(), () => {
|
|
2130
|
+
n = !0;
|
|
2131
|
+
};
|
|
2132
|
+
}, [
|
|
2133
|
+
y,
|
|
2134
|
+
o,
|
|
2135
|
+
_,
|
|
2136
|
+
b,
|
|
2137
|
+
L,
|
|
2138
|
+
F,
|
|
2139
|
+
x
|
|
2140
|
+
]), j(() => {
|
|
2141
|
+
if (O === "ready")
|
|
2142
|
+
for (const i of de)
|
|
2143
|
+
typeof U[i.key] != "number" && (c.current.has(i.key) || (c.current.add(i.key), L(i.baseKey, i.context).then((n) => {
|
|
2144
|
+
ae((B) => ({ ...B, [i.key]: n }));
|
|
2145
|
+
}).catch(() => {
|
|
2146
|
+
}).finally(() => {
|
|
2147
|
+
c.current.delete(i.key);
|
|
2148
|
+
})));
|
|
2149
|
+
}, [O, de, U, L]);
|
|
2150
|
+
function e() {
|
|
2151
|
+
const i = d.current, n = i?.getModel();
|
|
2152
|
+
!i || !n || (t.current = i.deltaDecorations(
|
|
2153
|
+
t.current,
|
|
2154
|
+
[]
|
|
2155
|
+
));
|
|
2156
|
+
}
|
|
2157
|
+
function m(i) {
|
|
2158
|
+
re((n) => ({ ...n, [i]: !n[i] }));
|
|
2159
|
+
}
|
|
2160
|
+
function I(i, n, B, S) {
|
|
2161
|
+
const P = d.current, H = P?.getModel();
|
|
2162
|
+
if (!P || !H) return;
|
|
2163
|
+
const R = Math.min(
|
|
2164
|
+
Math.max(1, i.line),
|
|
2165
|
+
H.getLineCount()
|
|
2166
|
+
), w = H.getLineMaxColumn(R), v = Math.min(Math.max(1, i.column), w), J = i.endLine ?? R, Q = Math.min(
|
|
2167
|
+
Math.max(R, J),
|
|
2168
|
+
H.getLineCount()
|
|
2169
|
+
), Y = H.getLineMaxColumn(Q), ie = i.endColumn ?? Y, X = Math.min(Math.max(1, ie), Y), Z = new Ee.Range(
|
|
2170
|
+
R,
|
|
2171
|
+
v,
|
|
2172
|
+
Q,
|
|
2173
|
+
X
|
|
2174
|
+
);
|
|
2175
|
+
P.revealRangeInCenter(Z), t.current = P.deltaDecorations(t.current, [
|
|
2176
|
+
{
|
|
2177
|
+
range: Z,
|
|
2178
|
+
options: {
|
|
2179
|
+
inlineClassName: "xml-xpath-highlight"
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
]), f(
|
|
2183
|
+
S > 1 ? `Highlighted ${n}: ${B + 1}/${S}` : `Highlighted ${n}`
|
|
2184
|
+
);
|
|
2185
|
+
}
|
|
2186
|
+
async function A(i) {
|
|
2187
|
+
q(i.key);
|
|
2188
|
+
const n = me(i.key), B = ne(i.key), S = i.isOccurrence ? 1 : B.length ? void 0 : F[n] ?? 0, P = K(i);
|
|
2189
|
+
if (!P) {
|
|
2190
|
+
e();
|
|
2191
|
+
return;
|
|
2192
|
+
}
|
|
2193
|
+
if (S === 0)
|
|
2194
|
+
f(`${i.id}: no match found in XML. (${P})`), e();
|
|
2195
|
+
else {
|
|
2196
|
+
const H = ee[i.key] ?? -1, R = i.isOccurrence ? 0 : $ === i.key && typeof S == "number" && S > 1 ? (H + 1) % S : 0;
|
|
2197
|
+
try {
|
|
2198
|
+
const w = await b(n, R, 1, B), v = w.matches[0];
|
|
2199
|
+
v ? (I(
|
|
2200
|
+
v,
|
|
2201
|
+
i.title,
|
|
2202
|
+
i.isOccurrence ? 0 : R,
|
|
2203
|
+
w.total
|
|
2204
|
+
), W((J) => ({
|
|
2205
|
+
...J,
|
|
2206
|
+
[i.key]: i.isOccurrence ? 0 : R
|
|
2207
|
+
}))) : (f(`${i.id}: no match found in XML.`), e());
|
|
2208
|
+
} catch (w) {
|
|
2209
|
+
const v = w instanceof Error ? w.message : "Failed to resolve match";
|
|
2210
|
+
f(v);
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
i.children?.length && m(i.key);
|
|
2214
|
+
}
|
|
2215
|
+
function te(i) {
|
|
2216
|
+
if (l.current !== "ready" || !p.current) return;
|
|
2217
|
+
s.current != null && window.clearTimeout(s.current);
|
|
2218
|
+
const n = i.position;
|
|
2219
|
+
Se() && console.debug("[xml-explorer] cursor-change", {
|
|
2220
|
+
line: n.lineNumber,
|
|
2221
|
+
column: n.column
|
|
2222
|
+
}), s.current = window.setTimeout(() => {
|
|
2223
|
+
h(n.lineNumber, n.column);
|
|
2224
|
+
}, je);
|
|
2225
|
+
}
|
|
2226
|
+
return /* @__PURE__ */ u.jsxs(
|
|
2227
|
+
"div",
|
|
2228
|
+
{
|
|
2229
|
+
style: {
|
|
2230
|
+
height: "100%",
|
|
2231
|
+
maxHeight: "100%",
|
|
2232
|
+
minHeight: 0,
|
|
2233
|
+
overflow: "hidden",
|
|
2234
|
+
boxSizing: "border-box",
|
|
2235
|
+
display: "flex",
|
|
2236
|
+
flexDirection: "column",
|
|
2237
|
+
width: "100%"
|
|
2238
|
+
},
|
|
2239
|
+
children: [
|
|
2240
|
+
/* @__PURE__ */ u.jsxs(
|
|
2241
|
+
"div",
|
|
2242
|
+
{
|
|
2243
|
+
style: {
|
|
2244
|
+
padding: 10,
|
|
2245
|
+
borderBottom: "1px solid #ddd",
|
|
2246
|
+
display: "flex",
|
|
2247
|
+
gap: 12,
|
|
2248
|
+
alignItems: "center",
|
|
2249
|
+
fontFamily: "system-ui, sans-serif",
|
|
2250
|
+
flexShrink: 0,
|
|
2251
|
+
minWidth: 0
|
|
2252
|
+
},
|
|
2253
|
+
children: [
|
|
2254
|
+
/* @__PURE__ */ u.jsx("button", { onClick: e, style: { padding: "6px 10px" }, children: "Clear highlight" }),
|
|
2255
|
+
/* @__PURE__ */ u.jsxs(
|
|
2256
|
+
"button",
|
|
2257
|
+
{
|
|
2258
|
+
onClick: () => V((i) => i === "nearest" ? "strict" : "nearest"),
|
|
2259
|
+
style: { padding: "6px 10px" },
|
|
2260
|
+
title: "Toggle mapping mode for XML clicks",
|
|
2261
|
+
children: [
|
|
2262
|
+
"Mode: ",
|
|
2263
|
+
x === "nearest" ? "Nearest fallback" : "Strict exact"
|
|
2264
|
+
]
|
|
2265
|
+
}
|
|
2266
|
+
),
|
|
2267
|
+
/* @__PURE__ */ u.jsxs("span", { style: { color: "#374151", fontSize: 12 }, children: [
|
|
2268
|
+
"Worker:",
|
|
2269
|
+
" ",
|
|
2270
|
+
O === "indexing" ? "indexing XML..." : O === "ready" ? "ready" : O
|
|
2271
|
+
] }),
|
|
2272
|
+
/* @__PURE__ */ u.jsxs("span", { style: { color: "#374151", fontSize: 12 }, children: [
|
|
2273
|
+
"Counts:",
|
|
2274
|
+
" ",
|
|
2275
|
+
C ? `${C.done}/${C.total}` : "ready"
|
|
2276
|
+
] }),
|
|
2277
|
+
/* @__PURE__ */ u.jsx(
|
|
2278
|
+
"span",
|
|
2279
|
+
{
|
|
2280
|
+
style: {
|
|
2281
|
+
fontFamily: "monospace",
|
|
2282
|
+
minWidth: 0,
|
|
2283
|
+
overflow: "hidden",
|
|
2284
|
+
textOverflow: "ellipsis",
|
|
2285
|
+
whiteSpace: "nowrap"
|
|
2286
|
+
},
|
|
2287
|
+
title: k,
|
|
2288
|
+
children: k
|
|
2289
|
+
}
|
|
2290
|
+
)
|
|
2291
|
+
]
|
|
2292
|
+
}
|
|
2293
|
+
),
|
|
2294
|
+
/* @__PURE__ */ u.jsxs(
|
|
2295
|
+
"div",
|
|
2296
|
+
{
|
|
2297
|
+
style: {
|
|
2298
|
+
flex: 1,
|
|
2299
|
+
minHeight: 0,
|
|
2300
|
+
overflow: "hidden",
|
|
2301
|
+
display: "grid",
|
|
2302
|
+
gridTemplateColumns: "1fr 360px",
|
|
2303
|
+
width: "100%"
|
|
2304
|
+
},
|
|
2305
|
+
children: [
|
|
2306
|
+
/* @__PURE__ */ u.jsx("div", { style: { minWidth: 0, minHeight: 0, width: "100%" }, children: /* @__PURE__ */ u.jsx(
|
|
2307
|
+
De,
|
|
2308
|
+
{
|
|
2309
|
+
height: "100%",
|
|
2310
|
+
defaultLanguage: "xml",
|
|
2311
|
+
value: r,
|
|
2312
|
+
onMount: (i) => {
|
|
2313
|
+
d.current = i, i.onDidChangeCursorPosition(te);
|
|
2314
|
+
},
|
|
2315
|
+
options: {
|
|
2316
|
+
minimap: { enabled: !1 },
|
|
2317
|
+
fontSize: 13,
|
|
2318
|
+
wordWrap: "on",
|
|
2319
|
+
scrollBeyondLastLine: !1,
|
|
2320
|
+
automaticLayout: !0
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
) }),
|
|
2324
|
+
/* @__PURE__ */ u.jsxs(
|
|
2325
|
+
"div",
|
|
2326
|
+
{
|
|
2327
|
+
style: {
|
|
2328
|
+
borderLeft: "1px solid #ddd",
|
|
2329
|
+
padding: 10,
|
|
2330
|
+
overflow: "hidden",
|
|
2331
|
+
minHeight: 0,
|
|
2332
|
+
display: "flex",
|
|
2333
|
+
flexDirection: "column",
|
|
2334
|
+
fontFamily: "system-ui, sans-serif",
|
|
2335
|
+
background: "#fafafa"
|
|
2336
|
+
},
|
|
2337
|
+
children: [
|
|
2338
|
+
/* @__PURE__ */ u.jsx("div", { style: { fontWeight: 600, marginBottom: 8, flexShrink: 0 }, children: "BT / BG (EN16931)" }),
|
|
2339
|
+
/* @__PURE__ */ u.jsx(
|
|
2340
|
+
"div",
|
|
2341
|
+
{
|
|
2342
|
+
ref: T,
|
|
2343
|
+
style: { flex: 1, minHeight: 0, overflow: "auto" },
|
|
2344
|
+
children: /* @__PURE__ */ u.jsx(
|
|
2345
|
+
Me,
|
|
2346
|
+
{
|
|
2347
|
+
root: G,
|
|
2348
|
+
expanded: N,
|
|
2349
|
+
selectedKey: $,
|
|
2350
|
+
onToggle: m,
|
|
2351
|
+
onClickNode: A,
|
|
2352
|
+
getNodeXpath: K,
|
|
2353
|
+
getMatchCount: (i) => {
|
|
2354
|
+
if (i.isOccurrence) return 1;
|
|
2355
|
+
const n = U[i.key];
|
|
2356
|
+
if (typeof n == "number") return n;
|
|
2357
|
+
if (ne(i.key).length > 0) return;
|
|
2358
|
+
const B = me(i.key);
|
|
2359
|
+
return F[B];
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
)
|
|
2363
|
+
}
|
|
2364
|
+
),
|
|
2365
|
+
/* @__PURE__ */ u.jsx("div", { style: { marginTop: 10, fontSize: 12, color: "#444" }, children: "Cursor sync and count calculation run in a worker thread." })
|
|
2366
|
+
]
|
|
2367
|
+
}
|
|
2368
|
+
)
|
|
2369
|
+
]
|
|
2370
|
+
}
|
|
2371
|
+
),
|
|
2372
|
+
/* @__PURE__ */ u.jsx("style", { children: `
|
|
2373
|
+
.xml-xpath-highlight {
|
|
2374
|
+
background: rgba(255, 230, 0, 0.35);
|
|
2375
|
+
border-bottom: 1px solid rgba(255, 180, 0, 0.9);
|
|
2376
|
+
}
|
|
2377
|
+
` })
|
|
2378
|
+
]
|
|
2379
|
+
}
|
|
2380
|
+
);
|
|
2381
|
+
}
|
|
2382
|
+
function Ve(r, a) {
|
|
2383
|
+
const d = Fe(r);
|
|
2384
|
+
d.length && a((t) => {
|
|
2385
|
+
let s = !1;
|
|
2386
|
+
const c = { ...t };
|
|
2387
|
+
for (const l of d)
|
|
2388
|
+
c[l] || (c[l] = !0, s = !0);
|
|
2389
|
+
return s ? c : t;
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
function $e(r) {
|
|
2393
|
+
const a = r.indexOf("::");
|
|
2394
|
+
return a >= 0 ? r.slice(0, a) : r;
|
|
2395
|
+
}
|
|
2396
|
+
function me(r) {
|
|
2397
|
+
return r.split(".").map($e).join(".");
|
|
2398
|
+
}
|
|
2399
|
+
function ne(r) {
|
|
2400
|
+
const a = [], d = r.split("."), t = [];
|
|
2401
|
+
for (const s of d) {
|
|
2402
|
+
const c = s.indexOf("::");
|
|
2403
|
+
if (c >= 0) {
|
|
2404
|
+
const l = Number(s.slice(c + 2)), p = Number.isFinite(l) ? Math.max(0, l - 1) : 0, T = s.slice(0, c);
|
|
2405
|
+
t.push(T), a.push({ nodeKey: t.join("."), occurrenceIndex: p });
|
|
2406
|
+
} else
|
|
2407
|
+
t.push(s);
|
|
2408
|
+
}
|
|
2409
|
+
return a;
|
|
2410
|
+
}
|
|
2411
|
+
function Ue(r, a) {
|
|
2412
|
+
const d = [], t = (s) => {
|
|
2413
|
+
const c = ne(s.key);
|
|
2414
|
+
if (c.length > 0 && s.xpaths && d.push({
|
|
2415
|
+
key: s.key,
|
|
2416
|
+
baseKey: me(s.key),
|
|
2417
|
+
context: c
|
|
2418
|
+
}), !!s.children?.length && a[s.key])
|
|
2419
|
+
for (const l of s.children) t(l);
|
|
2420
|
+
};
|
|
2421
|
+
return t(r), d;
|
|
2422
|
+
}
|
|
2423
|
+
function Fe(r) {
|
|
2424
|
+
const a = r.split("."), d = [], t = [];
|
|
2425
|
+
for (let l = 0; l < a.length - 1; l++) {
|
|
2426
|
+
const p = a[l], T = p.indexOf("::");
|
|
2427
|
+
if (T >= 0) {
|
|
2428
|
+
const g = p.slice(0, T);
|
|
2429
|
+
t.push(g), d.push(t.join(".")), t[t.length - 1] = p, d.push(t.join("."));
|
|
2430
|
+
} else
|
|
2431
|
+
t.push(p), d.push(t.join("."));
|
|
2432
|
+
}
|
|
2433
|
+
const s = a[a.length - 1], c = s.indexOf("::");
|
|
2434
|
+
if (c >= 0) {
|
|
2435
|
+
const l = s.slice(0, c);
|
|
2436
|
+
d.push([...t, l].join("."));
|
|
2437
|
+
}
|
|
2438
|
+
return Array.from(new Set(d));
|
|
2439
|
+
}
|
|
2440
|
+
function fe(r, a, d) {
|
|
2441
|
+
return `${r}.${a}:${d}`;
|
|
2442
|
+
}
|
|
2443
|
+
function Te(r, a) {
|
|
2444
|
+
if (r.key === a) return r;
|
|
2445
|
+
if (!r.children?.length) return null;
|
|
2446
|
+
for (const d of r.children) {
|
|
2447
|
+
const t = Te(d, a);
|
|
2448
|
+
if (t) return t;
|
|
2449
|
+
}
|
|
2450
|
+
return null;
|
|
2451
|
+
}
|
|
2452
|
+
function qe(r, a) {
|
|
2453
|
+
if (!r) return !1;
|
|
2454
|
+
const d = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(a) : a.replace(/["\\]/g, "\\$&"), t = r.querySelector(
|
|
2455
|
+
`[data-tree-key="${d}"]`
|
|
2456
|
+
);
|
|
2457
|
+
return t ? (t.scrollIntoView({ block: "center", inline: "nearest" }), !0) : !1;
|
|
2458
|
+
}
|
|
2459
|
+
function ve(r, a, d = 12) {
|
|
2460
|
+
qe(r, a) || d <= 0 || requestAnimationFrame(() => {
|
|
2461
|
+
ve(r, a, d - 1);
|
|
2462
|
+
});
|
|
2463
|
+
}
|
|
2464
|
+
function Ke(r, a, d) {
|
|
2465
|
+
if (!r.length) return -1;
|
|
2466
|
+
let t = 0, s = Number.POSITIVE_INFINITY;
|
|
2467
|
+
for (let c = 0; c < r.length; c++) {
|
|
2468
|
+
const l = r[c], p = Math.abs(l.line - a) * 1e3 + Math.abs(l.column - d);
|
|
2469
|
+
p < s && (s = p, t = c);
|
|
2470
|
+
}
|
|
2471
|
+
return t;
|
|
2472
|
+
}
|
|
2473
|
+
function Ye(r, a, d) {
|
|
2474
|
+
const t = r.line, s = r.column, c = r.endLine ?? t, l = r.endColumn ?? s;
|
|
2475
|
+
return !(a < t || a > c || a === t && d < s || a === c && d > l);
|
|
2476
|
+
}
|
|
2477
|
+
function ge(r, a, d) {
|
|
2478
|
+
for (let t = 0; t < r.length; t++)
|
|
2479
|
+
if (Ye(r[t], a, d)) return t;
|
|
2480
|
+
return Ke(r, a, d);
|
|
2481
|
+
}
|
|
2482
|
+
function Xe(r) {
|
|
2483
|
+
return r?.absolutePath ? r.matchedCursorXpath ? r.absolutePath === r.matchedCursorXpath : !1 : !0;
|
|
2484
|
+
}
|
|
2485
|
+
function Be(r) {
|
|
2486
|
+
if (!r) return "unknown element";
|
|
2487
|
+
const a = r.split("/").filter(Boolean);
|
|
2488
|
+
return a[a.length - 1] ?? "unknown element";
|
|
2489
|
+
}
|
|
2490
|
+
async function We(r, a, d, t, s, c) {
|
|
2491
|
+
const l = r.split("."), p = [...l], T = [];
|
|
2492
|
+
for (let g = 0; g < l.length; g++) {
|
|
2493
|
+
const E = l.slice(0, g + 1).join(".");
|
|
2494
|
+
if (!Te(t, E)?.children?.length) continue;
|
|
2495
|
+
let f = 0;
|
|
2496
|
+
try {
|
|
2497
|
+
f = await s(E, T);
|
|
2498
|
+
} catch {
|
|
2499
|
+
continue;
|
|
2500
|
+
}
|
|
2501
|
+
if (!(f <= 1))
|
|
2502
|
+
try {
|
|
2503
|
+
const x = await c(
|
|
2504
|
+
E,
|
|
2505
|
+
0,
|
|
2506
|
+
Math.min(f, xe),
|
|
2507
|
+
T
|
|
2508
|
+
), V = ge(x.matches, a, d);
|
|
2509
|
+
if (V < 0) continue;
|
|
2510
|
+
p[g] = `${l[g]}::${V + 1}`, T.push({ nodeKey: E, occurrenceIndex: V });
|
|
2511
|
+
} catch {
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
return p.join(".");
|
|
2515
|
+
}
|
|
2516
|
+
export {
|
|
2517
|
+
Qe as XMLExplorer,
|
|
2518
|
+
we as btTree,
|
|
2519
|
+
Oe as buildMappingsForSyntax,
|
|
2520
|
+
Ne as buildRuntimeTree
|
|
2521
|
+
};
|