@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.
@@ -813,11 +813,11 @@ else if (origin.includes('dashboard-qa')) {
813
813
  }
814
814
  // 4. Cek Demo Dev secara spesifik
815
815
  else if (origin.includes('demo-dev')) {
816
- API_CONST = 'https://api-staging.neuapix.com';
816
+ API_CONST = 'https://apibsp-dev.adlsandbox.net';
817
817
  }
818
818
  // 5. Default (Localhost atau lainnya)
819
819
  else {
820
- API_CONST = 'https://api-staging.neuapix.com';
820
+ API_CONST = 'https://apibsp-dev.adlsandbox.net';
821
821
  }
822
822
  var environment = {
823
823
  production: false,
@@ -5731,7 +5731,7 @@ var NewNumberBasesComponent = /** @class */ (function () {
5731
5731
  return found ? true : false;
5732
5732
  };
5733
5733
  NewNumberBasesComponent.prototype.onDownloadSampleService = function () {
5734
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
5734
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
5735
5735
  var genInfoForm = (_b = (_a = this.getCampaignStorage) === null || _a === void 0 ? void 0 : _a.generalInformation) === null || _b === void 0 ? void 0 : _b.form;
5736
5736
  var isNeedSave = (_c = genInfoForm) === null || _c === void 0 ? void 0 : _c.isNeedSave;
5737
5737
  var parameterList = [
@@ -5743,11 +5743,17 @@ var NewNumberBasesComponent = /** @class */ (function () {
5743
5743
  }
5744
5744
  else {
5745
5745
  // SKENARIO 2: CREATE NEW (Belum disave, butuh text & examples)
5746
- parameterList.push(this.initParam('bodyText', (_m = genInfoForm) === null || _m === void 0 ? void 0 : _m.text, 'string'));
5746
+ var safeBodyText = encodeURIComponent(((_m = genInfoForm) === null || _m === void 0 ? void 0 : _m.text) || '');
5747
+ parameterList.push(this.initParam('bodyText', safeBodyText, 'string'));
5747
5748
  var variables = (_o = genInfoForm) === null || _o === void 0 ? void 0 : _o.variables;
5748
5749
  if (variables && Array.isArray(variables) && variables.length > 0) {
5749
5750
  var bodyExamplesString = variables.map(function (v) { return v.paramName; }).join(',');
5750
- parameterList.push(this.initParam('bodyExamples', bodyExamplesString, 'string'));
5751
+ var safeBodyExamples = encodeURIComponent(bodyExamplesString);
5752
+ parameterList.push(this.initParam('bodyExamples', safeBodyExamples, 'string'));
5753
+ }
5754
+ 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) {
5755
+ var safeHeaderText = encodeURIComponent(genInfoForm.template.header.text);
5756
+ parameterList.push(this.initParam('headerText', safeHeaderText, 'string'));
5751
5757
  }
5752
5758
  }
5753
5759
  var subs = this.apiAdapterService