@fctc/interface-logic 5.2.5 → 5.2.6

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.
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- // src/utils/storage/local-storage.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class2;// src/utils/storage/local-storage.ts
4
2
  var localStorageUtils = () => {
5
3
  const setToken = async (access_token) => {
6
4
  localStorage.setItem("accessToken", access_token);
@@ -580,6 +578,8 @@ function parseInfix(left, current, tokens) {
580
578
  ifTrue: left,
581
579
  ifFalse
582
580
  };
581
+ default:
582
+ break;
583
583
  }
584
584
  }
585
585
  throw new ParserError("Token cannot be parsed");
@@ -1153,22 +1153,22 @@ var PyRelativeDelta = class _PyRelativeDelta {
1153
1153
  this.microsecond = params.microsecond;
1154
1154
  this.weekday = params.weekday;
1155
1155
  }
1156
- years;
1157
- months;
1158
- days;
1159
- hours;
1160
- minutes;
1161
- seconds;
1162
- microseconds;
1163
- leapDays;
1164
- year;
1165
- month;
1166
- day;
1167
- hour;
1168
- minute;
1169
- second;
1170
- microsecond;
1171
- weekday;
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
1172
  negate() {
1173
1173
  return new _PyRelativeDelta(this, -1);
1174
1174
  }
@@ -1283,7 +1283,7 @@ function execOnIterable(iterable, func) {
1283
1283
  if (typeof iterable === "object" && !Array.isArray(iterable) && !(iterable instanceof Set)) {
1284
1284
  iterable = Object.keys(iterable);
1285
1285
  }
1286
- if (typeof iterable?.[Symbol.iterator] !== "function") {
1286
+ if (typeof _optionalChain([iterable, 'optionalAccess', _ => _[Symbol.iterator]]) !== "function") {
1287
1287
  throw new EvaluationError("value not iterable");
1288
1288
  }
1289
1289
  return func(iterable);
@@ -1728,7 +1728,7 @@ function evaluate(ast, context = {}) {
1728
1728
  const dicts = /* @__PURE__ */ new Set();
1729
1729
  let pyContext;
1730
1730
  const evalContext = Object.create(context);
1731
- if (!evalContext?.context) {
1731
+ if (!_optionalChain([evalContext, 'optionalAccess', _2 => _2.context])) {
1732
1732
  Object.defineProperty(evalContext, "context", {
1733
1733
  get() {
1734
1734
  if (!pyContext) {
@@ -1739,17 +1739,17 @@ function evaluate(ast, context = {}) {
1739
1739
  });
1740
1740
  }
1741
1741
  function _innerEvaluate(ast2) {
1742
- switch (ast2?.type) {
1742
+ switch (_optionalChain([ast2, 'optionalAccess', _3 => _3.type])) {
1743
1743
  case 0:
1744
1744
  // Number
1745
1745
  case 1:
1746
1746
  return ast2.value;
1747
1747
  case 5:
1748
1748
  if (ast2.value in evalContext) {
1749
- if (typeof evalContext[ast2.value] === "object" && evalContext[ast2.value]?.id && ast2?.value !== "parent") {
1750
- return evalContext[ast2.value]?.id;
1749
+ if (typeof evalContext[ast2.value] === "object" && _optionalChain([evalContext, 'access', _4 => _4[ast2.value], 'optionalAccess', _5 => _5.id]) && _optionalChain([ast2, 'optionalAccess', _6 => _6.value]) !== "parent") {
1750
+ return _optionalChain([evalContext, 'access', _7 => _7[ast2.value], 'optionalAccess', _8 => _8.id]);
1751
1751
  }
1752
- return evalContext[ast2.value] ?? false;
1752
+ return _nullishCoalesce(evalContext[ast2.value], () => ( false));
1753
1753
  } else if (ast2.value in BUILTINS) {
1754
1754
  return BUILTINS[ast2.value];
1755
1755
  } else {
@@ -1786,7 +1786,7 @@ function evaluate(ast, context = {}) {
1786
1786
  const args = ast2.args.map(_evaluate);
1787
1787
  const kwargs = {};
1788
1788
  for (const kwarg in ast2.kwargs) {
1789
- kwargs[kwarg] = _evaluate(ast2?.kwargs[kwarg]);
1789
+ kwargs[kwarg] = _evaluate(_optionalChain([ast2, 'optionalAccess', _9 => _9.kwargs, 'access', _10 => _10[kwarg]]));
1790
1790
  }
1791
1791
  if (fnValue === PyDate || fnValue === PyDateTime || fnValue === PyTime || fnValue === PyRelativeDelta || fnValue === PyTimeDelta) {
1792
1792
  return fnValue.create(...args, kwargs);
@@ -1817,11 +1817,11 @@ function evaluate(ast, context = {}) {
1817
1817
  } else if (typeof leftVal === "number") {
1818
1818
  result = leftVal;
1819
1819
  } else if (Array.isArray(leftVal[ast2.key])) {
1820
- result = leftVal[ast2.key]?.map(
1821
- (value) => value?.id ?? value
1822
- );
1820
+ result = _optionalChain([leftVal, 'access', _11 => _11[ast2.key], 'optionalAccess', _12 => _12.map, 'call', _13 => _13(
1821
+ (value) => _nullishCoalesce(_optionalChain([value, 'optionalAccess', _14 => _14.id]), () => ( value))
1822
+ )]);
1823
1823
  } else {
1824
- result = leftVal[ast2.key]?.id ?? leftVal[ast2.key] ?? false;
1824
+ result = _nullishCoalesce(_nullishCoalesce(_optionalChain([leftVal, 'access', _15 => _15[ast2.key], 'optionalAccess', _16 => _16.id]), () => ( leftVal[ast2.key])), () => ( false));
1825
1825
  }
1826
1826
  if (typeof result === "function") {
1827
1827
  const bound = result.bind(leftVal);
@@ -1897,7 +1897,7 @@ function evalPartialContext(_context, evaluationContext = {}) {
1897
1897
  const value = ast.value[key];
1898
1898
  try {
1899
1899
  context[key] = evaluate(value, evaluationContext);
1900
- } catch {
1900
+ } catch (e2) {
1901
1901
  }
1902
1902
  }
1903
1903
  return context;
@@ -1914,6 +1914,9 @@ function shallowEqual(obj1, obj2, comparisonFn = (a, b) => a === b) {
1914
1914
 
1915
1915
  // src/utils/domain/arrays.ts
1916
1916
  var shallowEqual2 = shallowEqual;
1917
+
1918
+ // src/utils/domain/strings.ts
1919
+ var escapeMethod = Symbol("html");
1917
1920
  function escapeRegExp(str) {
1918
1921
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1919
1922
  }
@@ -1921,10 +1924,10 @@ function escapeRegExp(str) {
1921
1924
  // src/utils/domain/domain.ts
1922
1925
  var InvalidDomainError = class extends Error {
1923
1926
  };
1924
- var Domain = class _Domain {
1925
- ast = { type: -1, value: null };
1926
- static TRUE;
1927
- static FALSE;
1927
+ var Domain = (_class2 = class _Domain {
1928
+ __init() {this.ast = { type: -1, value: null }}
1929
+
1930
+
1928
1931
  static combine(domains, operator) {
1929
1932
  if (domains.length === 0) {
1930
1933
  return new _Domain([]);
@@ -2003,7 +2006,7 @@ var Domain = class _Domain {
2003
2006
  processLeaf(d.ast.value, 0, "&", newDomain);
2004
2007
  return newDomain;
2005
2008
  }
2006
- constructor(descr = []) {
2009
+ constructor(descr = []) {;_class2.prototype.__init.call(this);
2007
2010
  if (descr instanceof _Domain) {
2008
2011
  return new _Domain(descr.toString());
2009
2012
  } else {
@@ -2039,11 +2042,11 @@ var Domain = class _Domain {
2039
2042
  return evaluatedAsList;
2040
2043
  }
2041
2044
  return this.toString();
2042
- } catch {
2045
+ } catch (e3) {
2043
2046
  return this.toString();
2044
2047
  }
2045
2048
  }
2046
- };
2049
+ }, _class2);
2047
2050
  function evalDomain(modifier, evalContext) {
2048
2051
  if (modifier && typeof modifier !== "boolean") {
2049
2052
  modifier = new Domain(modifier).contains(evalContext);
@@ -2269,7 +2272,7 @@ var checkDomain = (context, domain) => {
2269
2272
  };
2270
2273
  var matchDomains = (context, domains) => {
2271
2274
  if (Array.isArray(domains)) {
2272
- if (domains?.length > 0) {
2275
+ if (_optionalChain([domains, 'optionalAccess', _17 => _17.length]) > 0) {
2273
2276
  return domains && domains.some((domain) => checkDomain(context, domain));
2274
2277
  }
2275
2278
  } else return checkDomain(context, domains);
@@ -2296,16 +2299,16 @@ var evalJSONDomain = (domain, context) => {
2296
2299
  const cloneContext = JSON.parse(JSON.stringify(context));
2297
2300
  try {
2298
2301
  if (cloneContext) {
2299
- Object.keys(cloneContext)?.forEach((key) => {
2302
+ _optionalChain([Object, 'access', _18 => _18.keys, 'call', _19 => _19(cloneContext), 'optionalAccess', _20 => _20.forEach, 'call', _21 => _21((key) => {
2300
2303
  if (Array.isArray(cloneContext[key])) {
2301
- const isTypeObject = cloneContext[key]?.every(
2302
- (item) => typeof item === "object" && item !== null && item?.id !== void 0
2303
- );
2304
+ const isTypeObject = _optionalChain([cloneContext, 'access', _22 => _22[key], 'optionalAccess', _23 => _23.every, 'call', _24 => _24(
2305
+ (item) => typeof item === "object" && item !== null && _optionalChain([item, 'optionalAccess', _25 => _25.id]) !== void 0
2306
+ )]);
2304
2307
  if (isTypeObject) {
2305
- cloneContext[key] = cloneContext[key]?.map((item) => item?.id);
2308
+ cloneContext[key] = _optionalChain([cloneContext, 'access', _26 => _26[key], 'optionalAccess', _27 => _27.map, 'call', _28 => _28((item) => _optionalChain([item, 'optionalAccess', _29 => _29.id]))]);
2306
2309
  }
2307
2310
  }
2308
- });
2311
+ })]);
2309
2312
  }
2310
2313
  const value = evaluateExpr(domain, cloneContext);
2311
2314
  return value;
@@ -2322,7 +2325,7 @@ var formatSortingString = (input) => {
2322
2325
  if (!input) return null;
2323
2326
  return input.split(",").map((field) => {
2324
2327
  const [key, order] = field.trim().split(/\s+/);
2325
- const sortOrder = order?.toUpperCase() === "DESC" ? "DESC" : "ASC";
2328
+ const sortOrder = _optionalChain([order, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]) === "DESC" ? "DESC" : "ASC";
2326
2329
  return `${key} ${sortOrder}`;
2327
2330
  }).join(", ");
2328
2331
  };
@@ -2360,19 +2363,21 @@ var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
2360
2363
  return originalRequest.data;
2361
2364
  };
2362
2365
 
2363
- exports.Domain = Domain;
2364
- exports.InvalidDomainError = InvalidDomainError;
2365
- exports.checkDomain = checkDomain;
2366
- exports.cleanObject = cleanObject;
2367
- exports.domainHelper = domainHelper;
2368
- exports.evalDomain = evalDomain;
2369
- exports.evalJSONContext = evalJSONContext;
2370
- exports.evalJSONDomain = evalJSONDomain;
2371
- exports.evalPartialContext = evalPartialContext;
2372
- exports.formatSortingString = formatSortingString;
2373
- exports.localStorageUtils = localStorageUtils;
2374
- exports.makeContext = makeContext;
2375
- exports.matchDomains = matchDomains;
2376
- exports.sessionStorageUtils = sessionStorageUtils;
2377
- exports.toQueryString = toQueryString;
2378
- exports.updateTokenParamInOriginalRequest = updateTokenParamInOriginalRequest;
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+ exports.localStorageUtils = localStorageUtils; exports.sessionStorageUtils = sessionStorageUtils; exports.makeContext = makeContext; exports.evalPartialContext = evalPartialContext; exports.InvalidDomainError = InvalidDomainError; exports.Domain = Domain; exports.evalDomain = evalDomain; exports.checkDomain = checkDomain; exports.matchDomains = matchDomains; exports.domainHelper = domainHelper; exports.evalJSONContext = evalJSONContext; exports.evalJSONDomain = evalJSONDomain; exports.formatSortingString = formatSortingString; exports.toQueryString = toQueryString; exports.cleanObject = cleanObject; exports.updateTokenParamInOriginalRequest = updateTokenParamInOriginalRequest;
@@ -1,4 +1,6 @@
1
- import { WIDGETAVATAR } from './chunk-Q3Y6RCJ4.mjs';
1
+ import {
2
+ WIDGETAVATAR
3
+ } from "./chunk-Q3Y6RCJ4.mjs";
2
4
 
3
5
  // src/models/base-model/index.ts
4
6
  var BaseModel = class {
@@ -111,4 +113,6 @@ var BaseModel = class {
111
113
  }
112
114
  };
113
115
 
114
- export { BaseModel };
116
+ export {
117
+ BaseModel
118
+ };
@@ -1 +0,0 @@
1
-
@@ -1,12 +1,12 @@
1
- 'use strict';
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
3
+ var _chunkCOC7NGXPjs = require('./chunk-COC7NGXP.js');
4
4
 
5
5
  // src/models/base-model/index.ts
6
6
  var BaseModel = class {
7
- name;
8
- view;
9
- fields;
7
+
8
+
9
+
10
10
  constructor(init) {
11
11
  this.name = init.name;
12
12
  this.view = init.view;
@@ -22,19 +22,19 @@ var BaseModel = class {
22
22
  if (Array.isArray(fields)) {
23
23
  let spec = { ...specification };
24
24
  fields.forEach((field) => {
25
- if (!field?.type_co || field?.name && field?.type_co === "field" /* FIELD */) {
26
- if (modelsData?.[model]?.[field?.name]) {
27
- if (modelsData?.[model]?.[field?.name]?.type === "one2many" /* ONE2MANY */ || modelsData?.[model]?.[field?.name]?.type === "many2many" /* MANY2MANY */) {
28
- const relation = modelsData?.[model]?.[field?.name]?.relation;
29
- const modelRelation = modelsData?.[relation];
25
+ if (!_optionalChain([field, 'optionalAccess', _ => _.type_co]) || _optionalChain([field, 'optionalAccess', _2 => _2.name]) && _optionalChain([field, 'optionalAccess', _3 => _3.type_co]) === "field" /* FIELD */) {
26
+ if (_optionalChain([modelsData, 'optionalAccess', _4 => _4[model], 'optionalAccess', _5 => _5[_optionalChain([field, 'optionalAccess', _6 => _6.name])]])) {
27
+ if (_optionalChain([modelsData, 'optionalAccess', _7 => _7[model], 'optionalAccess', _8 => _8[_optionalChain([field, 'optionalAccess', _9 => _9.name])], 'optionalAccess', _10 => _10.type]) === "one2many" /* ONE2MANY */ || _optionalChain([modelsData, 'optionalAccess', _11 => _11[model], 'optionalAccess', _12 => _12[_optionalChain([field, 'optionalAccess', _13 => _13.name])], 'optionalAccess', _14 => _14.type]) === "many2many" /* MANY2MANY */) {
28
+ const relation = _optionalChain([modelsData, 'optionalAccess', _15 => _15[model], 'optionalAccess', _16 => _16[_optionalChain([field, 'optionalAccess', _17 => _17.name])], 'optionalAccess', _18 => _18.relation]);
29
+ const modelRelation = _optionalChain([modelsData, 'optionalAccess', _19 => _19[relation]]);
30
30
  if (modelRelation) {
31
- spec[field?.name] = {
31
+ spec[_optionalChain([field, 'optionalAccess', _20 => _20.name])] = {
32
32
  fields: {}
33
33
  };
34
34
  if (modelRoot && modelRoot === relation) {
35
- spec[field?.name].fields = { id: {} };
35
+ spec[_optionalChain([field, 'optionalAccess', _21 => _21.name])].fields = { id: {} };
36
36
  } else {
37
- spec[field?.name].fields = this.getSpecificationByFields({
37
+ spec[_optionalChain([field, 'optionalAccess', _22 => _22.name])].fields = this.getSpecificationByFields({
38
38
  fields: Object.values(modelRelation),
39
39
  specification: { id: {}, display_name: {} },
40
40
  modelsData,
@@ -43,47 +43,47 @@ var BaseModel = class {
43
43
  });
44
44
  }
45
45
  } else {
46
- spec[field?.name] = {
46
+ spec[_optionalChain([field, 'optionalAccess', _23 => _23.name])] = {
47
47
  fields: {
48
48
  id: {},
49
49
  display_name: {},
50
- ...field?.widget === "many2many_binary" ? { mimetype: {} } : {},
51
- ...field?.widget === "many2many_binary" && relation === "ir.attachment" ? { datas: {} } : {}
50
+ ..._optionalChain([field, 'optionalAccess', _24 => _24.widget]) === "many2many_binary" ? { mimetype: {} } : {},
51
+ ..._optionalChain([field, 'optionalAccess', _25 => _25.widget]) === "many2many_binary" && relation === "ir.attachment" ? { datas: {} } : {}
52
52
  }
53
53
  };
54
54
  }
55
- } else if (modelsData?.[model]?.[field?.name]?.type === "many2one" /* MANY2ONE */) {
56
- spec[field?.name] = {
55
+ } else if (_optionalChain([modelsData, 'optionalAccess', _26 => _26[model], 'optionalAccess', _27 => _27[_optionalChain([field, 'optionalAccess', _28 => _28.name])], 'optionalAccess', _29 => _29.type]) === "many2one" /* MANY2ONE */) {
56
+ spec[_optionalChain([field, 'optionalAccess', _30 => _30.name])] = {
57
57
  fields: {
58
58
  id: {},
59
59
  display_name: {},
60
- ...chunkCOC7NGXP_js.WIDGETAVATAR[field?.widget] ? { image_256: {} } : {},
61
- ...field?.name === "currency_id" && fields?.find((item) => item?.widget === "monetary") ? { symbol: {} } : {},
62
- ...field?.widget === "many2many_binary" ? { mimetype: {} } : {}
60
+ ..._chunkCOC7NGXPjs.WIDGETAVATAR[_optionalChain([field, 'optionalAccess', _31 => _31.widget])] ? { image_256: {} } : {},
61
+ ..._optionalChain([field, 'optionalAccess', _32 => _32.name]) === "currency_id" && _optionalChain([fields, 'optionalAccess', _33 => _33.find, 'call', _34 => _34((item) => _optionalChain([item, 'optionalAccess', _35 => _35.widget]) === "monetary")]) ? { symbol: {} } : {},
62
+ ..._optionalChain([field, 'optionalAccess', _36 => _36.widget]) === "many2many_binary" ? { mimetype: {} } : {}
63
63
  }
64
64
  };
65
65
  } else {
66
- spec[field?.name] = {};
66
+ spec[_optionalChain([field, 'optionalAccess', _37 => _37.name])] = {};
67
67
  }
68
68
  }
69
- } else if (field?.type_co === "group" /* GROUP */ || field?.type_co === "div" /* DIV */ || field?.type_co === "span" /* SPAN */) {
69
+ } else if (_optionalChain([field, 'optionalAccess', _38 => _38.type_co]) === "group" /* GROUP */ || _optionalChain([field, 'optionalAccess', _39 => _39.type_co]) === "div" /* DIV */ || _optionalChain([field, 'optionalAccess', _40 => _40.type_co]) === "span" /* SPAN */) {
70
70
  const specGroup = this.getSpecificationByFields({
71
- fields: field?.fields,
71
+ fields: _optionalChain([field, 'optionalAccess', _41 => _41.fields]),
72
72
  specification: spec,
73
73
  modelsData,
74
74
  model
75
75
  });
76
76
  spec = { ...spec, ...specGroup };
77
- } else if (field?.type_co === "tree" /* TREE */ || field?.type_co === "list" /* LIST */ || field?.type_co === "kanban" /* KANBAN */) {
78
- const relation = modelsData?.[model]?.[field?.name]?.relation;
77
+ } else if (_optionalChain([field, 'optionalAccess', _42 => _42.type_co]) === "tree" /* TREE */ || _optionalChain([field, 'optionalAccess', _43 => _43.type_co]) === "list" /* LIST */ || _optionalChain([field, 'optionalAccess', _44 => _44.type_co]) === "kanban" /* KANBAN */) {
78
+ const relation = _optionalChain([modelsData, 'optionalAccess', _45 => _45[model], 'optionalAccess', _46 => _46[_optionalChain([field, 'optionalAccess', _47 => _47.name])], 'optionalAccess', _48 => _48.relation]);
79
79
  const specTreee = this.getSpecificationByFields({
80
- fields: field?.fields,
80
+ fields: _optionalChain([field, 'optionalAccess', _49 => _49.fields]),
81
81
  specification: {},
82
82
  modelsData,
83
83
  model: relation,
84
84
  modelRoot: model
85
85
  });
86
- spec = { ...spec, [field?.name]: { fields: specTreee } };
86
+ spec = { ...spec, [_optionalChain([field, 'optionalAccess', _50 => _50.name])]: { fields: specTreee } };
87
87
  }
88
88
  });
89
89
  return spec;
@@ -92,16 +92,16 @@ var BaseModel = class {
92
92
  }
93
93
  }
94
94
  getTreeProps() {
95
- const props = this.view?.views?.list || {};
95
+ const props = _optionalChain([this, 'access', _51 => _51.view, 'optionalAccess', _52 => _52.views, 'optionalAccess', _53 => _53.list]) || {};
96
96
  return props;
97
97
  }
98
98
  getTreeFields() {
99
- const fields = this.view?.views?.list?.fields || [];
99
+ const fields = _optionalChain([this, 'access', _54 => _54.view, 'optionalAccess', _55 => _55.views, 'optionalAccess', _56 => _56.list, 'optionalAccess', _57 => _57.fields]) || [];
100
100
  return fields;
101
101
  }
102
102
  getSpecification() {
103
103
  const specInit = {};
104
- const modelData = this.view?.models || {};
104
+ const modelData = _optionalChain([this, 'access', _58 => _58.view, 'optionalAccess', _59 => _59.models]) || {};
105
105
  const specification = this.getSpecificationByFields({
106
106
  fields: this.fields,
107
107
  specification: specInit,
@@ -113,4 +113,6 @@ var BaseModel = class {
113
113
  }
114
114
  };
115
115
 
116
+
117
+
116
118
  exports.BaseModel = BaseModel;
@@ -1,6 +1,11 @@
1
- import { localStorageUtils, sessionStorageUtils, updateTokenParamInOriginalRequest } from './chunk-HQVNK2EW.mjs';
2
- import axios from 'axios';
1
+ import {
2
+ localStorageUtils,
3
+ sessionStorageUtils,
4
+ updateTokenParamInOriginalRequest
5
+ } from "./chunk-HQVNK2EW.mjs";
3
6
 
7
+ // src/configs/axios-client.ts
8
+ import axios from "axios";
4
9
  function removeLanguages(acceptLang, removeList) {
5
10
  return acceptLang.split(",").map((x) => x.trim()).filter((item) => !removeList?.some((lang) => item?.startsWith(lang))).join(",");
6
11
  }
@@ -313,4 +318,6 @@ var axiosClient = {
313
318
  }
314
319
  };
315
320
 
316
- export { axiosClient };
321
+ export {
322
+ axiosClient
323
+ };
package/dist/configs.js CHANGED
@@ -1,11 +1,7 @@
1
- 'use strict';
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var chunkCCTDGAMA_js = require('./chunk-CCTDGAMA.js');
3
+ var _chunkCCTDGAMAjs = require('./chunk-CCTDGAMA.js');
4
4
  require('./chunk-U4Q3MW45.js');
5
5
 
6
6
 
7
-
8
- Object.defineProperty(exports, "axiosClient", {
9
- enumerable: true,
10
- get: function () { return chunkCCTDGAMA_js.axiosClient; }
11
- });
7
+ exports.axiosClient = _chunkCCTDGAMAjs.axiosClient;
package/dist/configs.mjs CHANGED
@@ -1,2 +1,7 @@
1
- export { axiosClient } from './chunk-ZDXEWQQD.mjs';
2
- import './chunk-HQVNK2EW.mjs';
1
+ import {
2
+ axiosClient
3
+ } from "./chunk-ZDXEWQQD.mjs";
4
+ import "./chunk-HQVNK2EW.mjs";
5
+ export {
6
+ axiosClient
7
+ };
package/dist/constants.js CHANGED
@@ -1,70 +1,36 @@
1
- 'use strict';
2
-
3
- var chunkCOC7NGXP_js = require('./chunk-COC7NGXP.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "ComponentType", {
8
- enumerable: true,
9
- get: function () { return chunkCOC7NGXP_js.ComponentType; }
10
- });
11
- Object.defineProperty(exports, "FieldTypeConstants", {
12
- enumerable: true,
13
- get: function () { return chunkCOC7NGXP_js.FieldTypeConstants; }
14
- });
15
- Object.defineProperty(exports, "KeyConstants", {
16
- enumerable: true,
17
- get: function () { return chunkCOC7NGXP_js.KeyConstants; }
18
- });
19
- Object.defineProperty(exports, "LoadDataModel", {
20
- enumerable: true,
21
- get: function () { return chunkCOC7NGXP_js.LoadDataModel; }
22
- });
23
- Object.defineProperty(exports, "LoadDataModelSupa", {
24
- enumerable: true,
25
- get: function () { return chunkCOC7NGXP_js.LoadDataModelSupa; }
26
- });
27
- Object.defineProperty(exports, "MODEL_TO_TABLE", {
28
- enumerable: true,
29
- get: function () { return chunkCOC7NGXP_js.MODEL_TO_TABLE; }
30
- });
31
- Object.defineProperty(exports, "MethodConstants", {
32
- enumerable: true,
33
- get: function () { return chunkCOC7NGXP_js.MethodConstants; }
34
- });
35
- Object.defineProperty(exports, "MethodType", {
36
- enumerable: true,
37
- get: function () { return chunkCOC7NGXP_js.MethodType; }
38
- });
39
- Object.defineProperty(exports, "ModelConstants", {
40
- enumerable: true,
41
- get: function () { return chunkCOC7NGXP_js.ModelConstants; }
42
- });
43
- Object.defineProperty(exports, "SearchType", {
44
- enumerable: true,
45
- get: function () { return chunkCOC7NGXP_js.SearchType; }
46
- });
47
- Object.defineProperty(exports, "UriConstants", {
48
- enumerable: true,
49
- get: function () { return chunkCOC7NGXP_js.UriConstants; }
50
- });
51
- Object.defineProperty(exports, "WIDGETAVATAR", {
52
- enumerable: true,
53
- get: function () { return chunkCOC7NGXP_js.WIDGETAVATAR; }
54
- });
55
- Object.defineProperty(exports, "WIDGETCOLOR", {
56
- enumerable: true,
57
- get: function () { return chunkCOC7NGXP_js.WIDGETCOLOR; }
58
- });
59
- Object.defineProperty(exports, "WIDGETCURRENCY", {
60
- enumerable: true,
61
- get: function () { return chunkCOC7NGXP_js.WIDGETCURRENCY; }
62
- });
63
- Object.defineProperty(exports, "WIDGETNOSTRING", {
64
- enumerable: true,
65
- get: function () { return chunkCOC7NGXP_js.WIDGETNOSTRING; }
66
- });
67
- Object.defineProperty(exports, "WIDGETSTATUS", {
68
- enumerable: true,
69
- get: function () { return chunkCOC7NGXP_js.WIDGETSTATUS; }
70
- });
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ var _chunkCOC7NGXPjs = require('./chunk-COC7NGXP.js');
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+ exports.ComponentType = _chunkCOC7NGXPjs.ComponentType; exports.FieldTypeConstants = _chunkCOC7NGXPjs.FieldTypeConstants; exports.KeyConstants = _chunkCOC7NGXPjs.KeyConstants; exports.LoadDataModel = _chunkCOC7NGXPjs.LoadDataModel; exports.LoadDataModelSupa = _chunkCOC7NGXPjs.LoadDataModelSupa; exports.MODEL_TO_TABLE = _chunkCOC7NGXPjs.MODEL_TO_TABLE; exports.MethodConstants = _chunkCOC7NGXPjs.MethodConstants; exports.MethodType = _chunkCOC7NGXPjs.MethodType; exports.ModelConstants = _chunkCOC7NGXPjs.ModelConstants; exports.SearchType = _chunkCOC7NGXPjs.SearchType; exports.UriConstants = _chunkCOC7NGXPjs.UriConstants; exports.WIDGETAVATAR = _chunkCOC7NGXPjs.WIDGETAVATAR; exports.WIDGETCOLOR = _chunkCOC7NGXPjs.WIDGETCOLOR; exports.WIDGETCURRENCY = _chunkCOC7NGXPjs.WIDGETCURRENCY; exports.WIDGETNOSTRING = _chunkCOC7NGXPjs.WIDGETNOSTRING; exports.WIDGETSTATUS = _chunkCOC7NGXPjs.WIDGETSTATUS;
@@ -1 +1,36 @@
1
- export { ComponentType, FieldTypeConstants, KeyConstants, LoadDataModel, LoadDataModelSupa, MODEL_TO_TABLE, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS } from './chunk-Q3Y6RCJ4.mjs';
1
+ import {
2
+ ComponentType,
3
+ FieldTypeConstants,
4
+ KeyConstants,
5
+ LoadDataModel,
6
+ LoadDataModelSupa,
7
+ MODEL_TO_TABLE,
8
+ MethodConstants,
9
+ MethodType,
10
+ ModelConstants,
11
+ SearchType,
12
+ UriConstants,
13
+ WIDGETAVATAR,
14
+ WIDGETCOLOR,
15
+ WIDGETCURRENCY,
16
+ WIDGETNOSTRING,
17
+ WIDGETSTATUS
18
+ } from "./chunk-Q3Y6RCJ4.mjs";
19
+ export {
20
+ ComponentType,
21
+ FieldTypeConstants,
22
+ KeyConstants,
23
+ LoadDataModel,
24
+ LoadDataModelSupa,
25
+ MODEL_TO_TABLE,
26
+ MethodConstants,
27
+ MethodType,
28
+ ModelConstants,
29
+ SearchType,
30
+ UriConstants,
31
+ WIDGETAVATAR,
32
+ WIDGETCOLOR,
33
+ WIDGETCURRENCY,
34
+ WIDGETNOSTRING,
35
+ WIDGETSTATUS
36
+ };
@@ -1,20 +1,12 @@
1
- 'use strict';
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var chunkFWBYTZIV_js = require('./chunk-FWBYTZIV.js');
3
+
4
+
5
+ var _chunkFWBYTZIVjs = require('./chunk-FWBYTZIV.js');
4
6
  require('./chunk-CCTDGAMA.js');
5
7
  require('./chunk-U4Q3MW45.js');
6
8
 
7
9
 
8
10
 
9
- Object.defineProperty(exports, "EnvStore", {
10
- enumerable: true,
11
- get: function () { return chunkFWBYTZIV_js.EnvStore; }
12
- });
13
- Object.defineProperty(exports, "getEnv", {
14
- enumerable: true,
15
- get: function () { return chunkFWBYTZIV_js.getEnv; }
16
- });
17
- Object.defineProperty(exports, "initEnv", {
18
- enumerable: true,
19
- get: function () { return chunkFWBYTZIV_js.initEnv; }
20
- });
11
+
12
+ exports.EnvStore = _chunkFWBYTZIVjs.EnvStore; exports.getEnv = _chunkFWBYTZIVjs.getEnv; exports.initEnv = _chunkFWBYTZIVjs.initEnv;
@@ -1,3 +1,12 @@
1
- export { EnvStore, getEnv, initEnv } from './chunk-F2VAAEVB.mjs';
2
- import './chunk-ZDXEWQQD.mjs';
3
- import './chunk-HQVNK2EW.mjs';
1
+ import {
2
+ EnvStore,
3
+ getEnv,
4
+ initEnv
5
+ } from "./chunk-F2VAAEVB.mjs";
6
+ import "./chunk-ZDXEWQQD.mjs";
7
+ import "./chunk-HQVNK2EW.mjs";
8
+ export {
9
+ EnvStore,
10
+ getEnv,
11
+ initEnv
12
+ };