isdata-customer-sdk 0.2.11 → 0.2.13

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.
@@ -29576,6 +29576,7 @@ __webpack_require__.d(__webpack_exports__, {
29576
29576
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29577
29577
  getFileSize: function() { return /* reexport */ getFileSize; },
29578
29578
  getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
29579
+ getI18nKey: function() { return /* reexport */ getI18nKey; },
29579
29580
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29580
29581
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29581
29582
  getKey: function() { return /* reexport */ getKey; },
@@ -32517,6 +32518,15 @@ const getFileSize = async url => {
32517
32518
  return -1; // 返回-1表示失败
32518
32519
  }
32519
32520
  };
32521
+ // 获取i18n key
32522
+ const getI18nKey = text => {
32523
+ // 正则表达式匹配 $L{...} 格式
32524
+ const regex = /\$L\{([^}]+)\}/g;
32525
+ let match = regex.exec(text);
32526
+ if (!match) return text;
32527
+ let key = match[1];
32528
+ return key;
32529
+ };
32520
32530
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
32521
32531
  var es_iterator_some = __webpack_require__(3579);
32522
32532
  ;// ./src/api/iframe.js
@@ -33737,7 +33747,7 @@ const calendar_i18n_check = element => {
33737
33747
  };
33738
33748
  let innerHTML = element.innerHTML;
33739
33749
  let match = innerHTML.match(regex);
33740
- if (match.length > 0) {
33750
+ if (match && match.length > 0) {
33741
33751
  // console.log("检查smardaten平台日历 日 元素:",innerHTML);
33742
33752
  let tempHTMLMatch = {
33743
33753
  oldValue: innerHTML,