@adlfe/campaign-management-library 2.13.1 → 2.13.2

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.
@@ -992,11 +992,11 @@
992
992
  }
993
993
  // 4. Cek Demo Dev secara spesifik
994
994
  else if (origin.includes('demo-dev')) {
995
- API_CONST = 'https://api-staging.neuapix.com';
995
+ API_CONST = 'https://apibsp-dev.adlsandbox.net';
996
996
  }
997
997
  // 5. Default (Localhost atau lainnya)
998
998
  else {
999
- API_CONST = 'https://api-staging.neuapix.com';
999
+ API_CONST = 'https://apibsp-dev.adlsandbox.net';
1000
1000
  }
1001
1001
  var environment = {
1002
1002
  production: false,
@@ -5910,7 +5910,7 @@
5910
5910
  return found ? true : false;
5911
5911
  };
5912
5912
  NewNumberBasesComponent.prototype.onDownloadSampleService = function () {
5913
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
5913
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
5914
5914
  var genInfoForm = (_b = (_a = this.getCampaignStorage) === null || _a === void 0 ? void 0 : _a.generalInformation) === null || _b === void 0 ? void 0 : _b.form;
5915
5915
  var isNeedSave = (_c = genInfoForm) === null || _c === void 0 ? void 0 : _c.isNeedSave;
5916
5916
  var parameterList = [
@@ -5922,11 +5922,17 @@
5922
5922
  }
5923
5923
  else {
5924
5924
  // SKENARIO 2: CREATE NEW (Belum disave, butuh text & examples)
5925
- parameterList.push(this.initParam('bodyText', (_m = genInfoForm) === null || _m === void 0 ? void 0 : _m.text, 'string'));
5925
+ var safeBodyText = encodeURIComponent(((_m = genInfoForm) === null || _m === void 0 ? void 0 : _m.text) || '');
5926
+ parameterList.push(this.initParam('bodyText', safeBodyText, 'string'));
5926
5927
  var variables = (_o = genInfoForm) === null || _o === void 0 ? void 0 : _o.variables;
5927
5928
  if (variables && Array.isArray(variables) && variables.length > 0) {
5928
5929
  var bodyExamplesString = variables.map(function (v) { return v.paramName; }).join(',');
5929
- parameterList.push(this.initParam('bodyExamples', bodyExamplesString, 'string'));
5930
+ var safeBodyExamples = encodeURIComponent(bodyExamplesString);
5931
+ parameterList.push(this.initParam('bodyExamples', safeBodyExamples, 'string'));
5932
+ }
5933
+ if ((_r = (_q = (_p = genInfoForm) === null || _p === void 0 ? void 0 : _p.template) === null || _q === void 0 ? void 0 : _q.header) === null || _r === void 0 ? void 0 : _r.text) {
5934
+ var safeHeaderText = encodeURIComponent(genInfoForm.template.header.text);
5935
+ parameterList.push(this.initParam('headerText', safeHeaderText, 'string'));
5930
5936
  }
5931
5937
  }
5932
5938
  var subs = this.apiAdapterService