@everymatrix/stage-mm-verification-report 1.0.29 → 1.0.30

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,6 @@
1
1
  import {
2
2
  DmButtonLibComponent
3
- } from "./chunk-LUBSS3BI.js";
3
+ } from "./chunk-TDAJJ6CV.js";
4
4
  import {
5
5
  BaseComponent,
6
6
  BaseStyle,
@@ -450,4 +450,4 @@ export {
450
450
  ProgressSpinnerModule,
451
451
  DeleteTemplateModalComponent
452
452
  };
453
- //# sourceMappingURL=chunk-JAYKR27D.js.map
453
+ //# sourceMappingURL=chunk-V3Y3VOJP.js.map
package/index.html CHANGED
@@ -8,5 +8,5 @@
8
8
  <link rel="stylesheet" href="styles.css"></head>
9
9
  <body>
10
10
  <everymatrix-mm-verification-report></everymatrix-mm-verification-report>
11
- <link rel="modulepreload" href="chunk-JAYKR27D.js"><link rel="modulepreload" href="chunk-V3W37IIP.js"><link rel="modulepreload" href="chunk-LUBSS3BI.js"><link rel="modulepreload" href="chunk-2SMQV2OO.js"><link rel="modulepreload" href="chunk-57JN4OKS.js"><script src="polyfills.js" type="module"></script><script src="main.js" type="module"></script></body>
11
+ <link rel="modulepreload" href="chunk-V3Y3VOJP.js"><link rel="modulepreload" href="chunk-7PA6OSFV.js"><link rel="modulepreload" href="chunk-TDAJJ6CV.js"><link rel="modulepreload" href="chunk-2SMQV2OO.js"><link rel="modulepreload" href="chunk-57JN4OKS.js"><script src="polyfills.js" type="module"></script><script src="main.js" type="module"></script></body>
12
12
  </html>
package/main.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ProgressSpinner,
3
3
  ProgressSpinnerModule
4
- } from "./chunk-JAYKR27D.js";
4
+ } from "./chunk-V3Y3VOJP.js";
5
5
  import {
6
6
  DomainsOverloadModalComponent
7
- } from "./chunk-V3W37IIP.js";
7
+ } from "./chunk-7PA6OSFV.js";
8
8
  import {
9
9
  ApiHandlerService,
10
10
  BrowserModule,
@@ -35,7 +35,7 @@ import {
35
35
  provideHttpClient,
36
36
  require_moment,
37
37
  withInterceptors
38
- } from "./chunk-LUBSS3BI.js";
38
+ } from "./chunk-TDAJJ6CV.js";
39
39
  import {
40
40
  $dt,
41
41
  AutoFocus,
@@ -23390,10 +23390,19 @@ var DmRangeDatePickerLibComponent = class _DmRangeDatePickerLibComponent {
23390
23390
  }
23391
23391
  onPopoverShow() {
23392
23392
  const popEl = this.popover.container;
23393
+ const parentEl = popEl.parentElement;
23393
23394
  this.popoverOpened = true;
23394
23395
  if (popEl) {
23395
23396
  popEl.style.left = "0px";
23396
23397
  popEl.style.top = "0px";
23398
+ if (parentEl) {
23399
+ const rect = popEl.getBoundingClientRect();
23400
+ const parentRect = parentEl.getBoundingClientRect();
23401
+ const isClippedRight = rect.right > window.innerWidth;
23402
+ if (isClippedRight) {
23403
+ popEl.style.left = `-${rect.width - parentRect.width}px`;
23404
+ }
23405
+ }
23397
23406
  }
23398
23407
  }
23399
23408
  onPopoverClose() {
@@ -52069,19 +52078,20 @@ var RadioButtonModule = class _RadioButtonModule {
52069
52078
  })();
52070
52079
 
52071
52080
  // libs/shared/ui/components/src/lib/modals/save-template-modal/save-template-modal.component.ts
52072
- var _c023 = () => ({ width: "460px", "max-height": "340px" });
52081
+ var _c023 = (a0) => ({ width: "460px", "max-height": a0 });
52073
52082
  var _c149 = () => ({ "margin-bottom": "12px" });
52074
- var _c231 = () => ({ width: "20px", height: "20px" });
52083
+ var _c231 = () => ({ "margin-right": "4px" });
52084
+ var _c318 = () => ({ width: "20px", height: "20px" });
52075
52085
  function SaveTemplateModalComponent_Conditional_1_Template(rf, ctx) {
52076
52086
  if (rf & 1) {
52077
- \u0275\u0275elementStart(0, "div", 1)(1, "div", 8);
52078
- \u0275\u0275element(2, "p-radiobutton", 9);
52079
- \u0275\u0275elementStart(3, "label", 10);
52087
+ \u0275\u0275elementStart(0, "div", 1)(1, "div", 9);
52088
+ \u0275\u0275element(2, "p-radiobutton", 10);
52089
+ \u0275\u0275elementStart(3, "label", 11);
52080
52090
  \u0275\u0275text(4, "Save Changes To Existing Template");
52081
52091
  \u0275\u0275elementEnd()();
52082
- \u0275\u0275elementStart(5, "div", 8);
52083
- \u0275\u0275element(6, "p-radiobutton", 11);
52084
- \u0275\u0275elementStart(7, "label", 12);
52092
+ \u0275\u0275elementStart(5, "div", 9);
52093
+ \u0275\u0275element(6, "p-radiobutton", 12);
52094
+ \u0275\u0275elementStart(7, "label", 13);
52085
52095
  \u0275\u0275text(8, "Save As New Template");
52086
52096
  \u0275\u0275elementEnd()()();
52087
52097
  }
@@ -52093,34 +52103,68 @@ function SaveTemplateModalComponent_Conditional_1_Template(rf, ctx) {
52093
52103
  \u0275\u0275property("formControl", ctx_r0.radioButtonControl);
52094
52104
  }
52095
52105
  }
52096
- function SaveTemplateModalComponent_ng_template_7_Conditional_3_Template(rf, ctx) {
52106
+ function SaveTemplateModalComponent_Conditional_7_Conditional_3_Template(rf, ctx) {
52097
52107
  if (rf & 1) {
52098
- \u0275\u0275elementStart(0, "div", 16);
52099
- \u0275\u0275element(1, "p-progress-spinner", 17);
52108
+ \u0275\u0275elementStart(0, "span");
52109
+ \u0275\u0275text(1, "Please note, saved template will be migrated to current selected domain and will not be available under child domain.");
52110
+ \u0275\u0275elementEnd();
52111
+ }
52112
+ }
52113
+ function SaveTemplateModalComponent_Conditional_7_Conditional_4_Template(rf, ctx) {
52114
+ if (rf & 1) {
52115
+ \u0275\u0275elementStart(0, "span");
52116
+ \u0275\u0275text(1, "Template send options configurations will be removed!");
52117
+ \u0275\u0275elementEnd();
52118
+ }
52119
+ }
52120
+ function SaveTemplateModalComponent_Conditional_7_Template(rf, ctx) {
52121
+ if (rf & 1) {
52122
+ \u0275\u0275elementStart(0, "div", 7);
52123
+ \u0275\u0275namespaceSVG();
52124
+ \u0275\u0275elementStart(1, "svg", 14);
52125
+ \u0275\u0275element(2, "path", 15);
52126
+ \u0275\u0275elementEnd();
52127
+ \u0275\u0275template(3, SaveTemplateModalComponent_Conditional_7_Conditional_3_Template, 2, 0, "span")(4, SaveTemplateModalComponent_Conditional_7_Conditional_4_Template, 2, 0, "span");
52128
+ \u0275\u0275elementEnd();
52129
+ }
52130
+ if (rf & 2) {
52131
+ const ctx_r0 = \u0275\u0275nextContext();
52132
+ \u0275\u0275advance();
52133
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(3, _c231));
52134
+ \u0275\u0275advance(2);
52135
+ \u0275\u0275conditional(ctx_r0.selectedDifferentSiteId() ? 3 : -1);
52136
+ \u0275\u0275advance();
52137
+ \u0275\u0275conditional(ctx_r0.hasConfiguredSendOptions() ? 4 : -1);
52138
+ }
52139
+ }
52140
+ function SaveTemplateModalComponent_ng_template_8_Conditional_3_Template(rf, ctx) {
52141
+ if (rf & 1) {
52142
+ \u0275\u0275elementStart(0, "div", 19);
52143
+ \u0275\u0275element(1, "p-progress-spinner", 20);
52100
52144
  \u0275\u0275elementEnd();
52101
52145
  }
52102
52146
  if (rf & 2) {
52103
52147
  \u0275\u0275advance();
52104
- \u0275\u0275styleMap(\u0275\u0275pureFunction0(2, _c231));
52148
+ \u0275\u0275styleMap(\u0275\u0275pureFunction0(2, _c318));
52105
52149
  }
52106
52150
  }
52107
- function SaveTemplateModalComponent_ng_template_7_Template(rf, ctx) {
52151
+ function SaveTemplateModalComponent_ng_template_8_Template(rf, ctx) {
52108
52152
  if (rf & 1) {
52109
52153
  const _r2 = \u0275\u0275getCurrentView();
52110
- \u0275\u0275elementStart(0, "div", 13)(1, "lib-dm-button-lib", 14);
52111
- \u0275\u0275listener("outsideClickEmitter", function SaveTemplateModalComponent_ng_template_7_Template_lib_dm_button_lib_outsideClickEmitter_1_listener() {
52154
+ \u0275\u0275elementStart(0, "div", 16)(1, "lib-dm-button-lib", 17);
52155
+ \u0275\u0275listener("outsideClickEmitter", function SaveTemplateModalComponent_ng_template_8_Template_lib_dm_button_lib_outsideClickEmitter_1_listener() {
52112
52156
  \u0275\u0275restoreView(_r2);
52113
52157
  const ctx_r0 = \u0275\u0275nextContext();
52114
52158
  return \u0275\u0275resetView(ctx_r0.close());
52115
52159
  });
52116
52160
  \u0275\u0275elementEnd();
52117
- \u0275\u0275elementStart(2, "lib-dm-button-lib", 15);
52118
- \u0275\u0275listener("outsideClickEmitter", function SaveTemplateModalComponent_ng_template_7_Template_lib_dm_button_lib_outsideClickEmitter_2_listener() {
52161
+ \u0275\u0275elementStart(2, "lib-dm-button-lib", 18);
52162
+ \u0275\u0275listener("outsideClickEmitter", function SaveTemplateModalComponent_ng_template_8_Template_lib_dm_button_lib_outsideClickEmitter_2_listener() {
52119
52163
  \u0275\u0275restoreView(_r2);
52120
52164
  const ctx_r0 = \u0275\u0275nextContext();
52121
52165
  return \u0275\u0275resetView(ctx_r0.save());
52122
52166
  });
52123
- \u0275\u0275template(3, SaveTemplateModalComponent_ng_template_7_Conditional_3_Template, 2, 3, "div", 16);
52167
+ \u0275\u0275template(3, SaveTemplateModalComponent_ng_template_8_Conditional_3_Template, 2, 3, "div", 19);
52124
52168
  \u0275\u0275elementEnd()();
52125
52169
  }
52126
52170
  if (rf & 2) {
@@ -52143,6 +52187,7 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52143
52187
  hintMessage = "Available symbols for template name: letters, numbers, underscores, dashes";
52144
52188
  templateService = inject(TemplateService);
52145
52189
  globalMessageService = inject(GlobalMessageService);
52190
+ sessionService = inject(SessionService);
52146
52191
  nameControl = new FormControl("", [
52147
52192
  Validators.required,
52148
52193
  Validators.pattern(/^[A-Za-z0-9\-_]+$/)
@@ -52224,10 +52269,19 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52224
52269
  return list;
52225
52270
  });
52226
52271
  }
52272
+ hasConfiguredSendOptions() {
52273
+ return this.template?.input_params.send_option;
52274
+ }
52275
+ selectedDifferentSiteId = () => {
52276
+ return this.sessionService.sessionData?.Domains && this.template?.domain_id && +this.template?.domain_id != +this.sessionService.sessionData.Domains;
52277
+ };
52278
+ showWarningMessage = () => {
52279
+ return this.isTemplatePresent && this.isExisting && (this.selectedDifferentSiteId() || this.hasConfiguredSendOptions());
52280
+ };
52227
52281
  static \u0275fac = function SaveTemplateModalComponent_Factory(__ngFactoryType__) {
52228
52282
  return new (__ngFactoryType__ || _SaveTemplateModalComponent)();
52229
52283
  };
52230
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _SaveTemplateModalComponent, selectors: [["lib-save-template-modal"]], inputs: { visible: [1, "visible"], params: [1, "params"], reportId: [1, "reportId"] }, outputs: { visible: "visibleChange", saveEmitter: "saveEmitter" }, decls: 8, vars: 12, consts: [["header", "Save Template", 3, "visibleChange", "onShow", "visible", "modal"], [1, "radio-buttons-container"], [1, "fields-wrapper"], [1, "field", 3, "ngStyle"], ["label", "Name", "placeholder", "name", 3, "errorMessage", "hint", "control"], [1, "field"], ["label", "Description", "placeholder", "Description", 3, "control"], ["pTemplate", "footer"], [1, "radio-button"], ["value", "existing", "inputId", "existing", 3, "formControl"], ["for", "existing", 1, "radio-button-label"], ["value", "new", "inputId", "new", 3, "formControl"], ["for", "new", 1, "radio-button-label"], [2, "width", "100%", "display", "flex", "flex-direction", "row", "justify-content", "space-between"], ["text", "Cancel", "size", "medium", "variant", "secondary-outlined", 3, "outsideClickEmitter"], ["text", "Save", "size", "medium", "variant", "primary-filled", 3, "outsideClickEmitter", "disabled"], ["icon-left", "", 1, "dm-button-icon"], ["strokeWidth", "6"]], template: function SaveTemplateModalComponent_Template(rf, ctx) {
52284
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _SaveTemplateModalComponent, selectors: [["lib-save-template-modal"]], inputs: { visible: [1, "visible"], params: [1, "params"], reportId: [1, "reportId"] }, outputs: { visible: "visibleChange", saveEmitter: "saveEmitter" }, decls: 9, vars: 14, consts: [["header", "Save Template", 3, "visibleChange", "onShow", "visible", "modal"], [1, "radio-buttons-container"], [1, "fields-wrapper"], [1, "field", 3, "ngStyle"], ["label", "Name", "placeholder", "name", 3, "errorMessage", "hint", "control"], [1, "field"], ["label", "Description", "placeholder", "Description", 3, "control"], [1, "warning-message"], ["pTemplate", "footer"], [1, "radio-button"], ["value", "existing", "inputId", "existing", 3, "formControl"], ["for", "existing", 1, "radio-button-label"], ["value", "new", "inputId", "new", 3, "formControl"], ["for", "new", 1, "radio-button-label"], ["xmlns", "http://www.w3.org/2000/svg", "width", "16", "height", "16", "viewBox", "0 0 24 24", "fill", "none", 3, "ngStyle"], ["d", "M11.9998 7.99999V12M11.9998 16H12.0098M10.6151 2.89171L2.39019 17.0983C1.93398 17.8863 1.70588 18.2803 1.73959 18.6037C1.769 18.8857 1.91677 19.142 2.14613 19.3088C2.40908 19.5 2.86435 19.5 3.77487 19.5H20.2246C21.1352 19.5 21.5904 19.5 21.8534 19.3088C22.0827 19.142 22.2305 18.8857 22.2599 18.6037C22.2936 18.2803 22.0655 17.8863 21.6093 17.0983L13.3844 2.89171C12.9299 2.10654 12.7026 1.71396 12.4061 1.58211C12.1474 1.4671 11.8521 1.4671 11.5935 1.58211C11.2969 1.71396 11.0696 2.10655 10.6151 2.89171Z", "stroke", "#506285", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], [2, "width", "100%", "display", "flex", "flex-direction", "row", "justify-content", "space-between"], ["text", "Cancel", "size", "medium", "variant", "secondary-outlined", 3, "outsideClickEmitter"], ["text", "Save", "size", "medium", "variant", "primary-filled", 3, "outsideClickEmitter", "disabled"], ["icon-left", "", 1, "dm-button-icon"], ["strokeWidth", "6"]], template: function SaveTemplateModalComponent_Template(rf, ctx) {
52231
52285
  if (rf & 1) {
52232
52286
  \u0275\u0275elementStart(0, "p-dialog", 0);
52233
52287
  \u0275\u0275twoWayListener("visibleChange", function SaveTemplateModalComponent_Template_p_dialog_visibleChange_0_listener($event) {
@@ -52243,22 +52297,26 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52243
52297
  \u0275\u0275elementEnd();
52244
52298
  \u0275\u0275elementStart(5, "div", 5);
52245
52299
  \u0275\u0275element(6, "lib-dm-input-text-lib", 6);
52246
- \u0275\u0275elementEnd()();
52247
- \u0275\u0275template(7, SaveTemplateModalComponent_ng_template_7_Template, 4, 2, "ng-template", 7);
52300
+ \u0275\u0275elementEnd();
52301
+ \u0275\u0275template(7, SaveTemplateModalComponent_Conditional_7_Template, 5, 4, "div", 7);
52302
+ \u0275\u0275elementEnd();
52303
+ \u0275\u0275template(8, SaveTemplateModalComponent_ng_template_8_Template, 4, 2, "ng-template", 8);
52248
52304
  \u0275\u0275elementEnd();
52249
52305
  }
52250
52306
  if (rf & 2) {
52251
- \u0275\u0275styleMap(\u0275\u0275pureFunction0(10, _c023));
52307
+ \u0275\u0275styleMap(\u0275\u0275pureFunction1(11, _c023, ctx.showWarningMessage() ? "398px" : "340px"));
52252
52308
  \u0275\u0275twoWayProperty("visible", ctx.visible);
52253
52309
  \u0275\u0275property("modal", true);
52254
52310
  \u0275\u0275advance();
52255
52311
  \u0275\u0275conditional(ctx.isTemplatePresent ? 1 : -1);
52256
52312
  \u0275\u0275advance(2);
52257
- \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(11, _c149));
52313
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(13, _c149));
52258
52314
  \u0275\u0275advance();
52259
52315
  \u0275\u0275property("errorMessage", ctx.hintMessage)("hint", ctx.hintMessage)("control", ctx.nameControl);
52260
52316
  \u0275\u0275advance(2);
52261
52317
  \u0275\u0275property("control", ctx.descriptionControl);
52318
+ \u0275\u0275advance();
52319
+ \u0275\u0275conditional(ctx.showWarningMessage() ? 7 : -1);
52262
52320
  }
52263
52321
  }, dependencies: [
52264
52322
  CommonModule,
@@ -52277,7 +52335,7 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52277
52335
  ProgressSpinner,
52278
52336
  RadioButtonModule,
52279
52337
  RadioButton
52280
- ], styles: ["\n\n.radio-buttons-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n margin-left: 5px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .p-radiobutton-box[_ngcontent-%COMP%]:hover {\n background: #ebf4fc !important;\n}\n/*# sourceMappingURL=save-template-modal.component.css.map */"], changeDetection: 0 });
52338
+ ], styles: ['\n\n*[_ngcontent-%COMP%], \n[_ngcontent-%COMP%]::before, \n[_ngcontent-%COMP%]::after {\n box-sizing: border-box;\n}\nhtml[_ngcontent-%COMP%] {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n}\nb[_ngcontent-%COMP%], \nstrong[_ngcontent-%COMP%] {\n font-weight: bolder;\n}\ncode[_ngcontent-%COMP%], \nkbd[_ngcontent-%COMP%], \nsamp[_ngcontent-%COMP%], \npre[_ngcontent-%COMP%] {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall[_ngcontent-%COMP%] {\n font-size: 80%;\n}\nsub[_ngcontent-%COMP%], \nsup[_ngcontent-%COMP%] {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub[_ngcontent-%COMP%] {\n bottom: -0.25em;\n}\nsup[_ngcontent-%COMP%] {\n top: -0.5em;\n}\ntable[_ngcontent-%COMP%] {\n border-color: currentcolor;\n}\nbutton[_ngcontent-%COMP%], \ninput[_ngcontent-%COMP%], \noptgroup[_ngcontent-%COMP%], \nselect[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%] {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton[_ngcontent-%COMP%], \n[type=button][_ngcontent-%COMP%], \n[type=reset][_ngcontent-%COMP%], \n[type=submit][_ngcontent-%COMP%] {\n -webkit-appearance: button;\n}\nlegend[_ngcontent-%COMP%] {\n padding: 0;\n}\nprogress[_ngcontent-%COMP%] {\n vertical-align: baseline;\n}\n[_ngcontent-%COMP%]::-webkit-inner-spin-button, \n[_ngcontent-%COMP%]::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search][_ngcontent-%COMP%] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n[_ngcontent-%COMP%]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n[_ngcontent-%COMP%]::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary[_ngcontent-%COMP%] {\n display: list-item;\n}\n\n\n\n*[_ngcontent-%COMP%] {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%], \n[contenteditable=true][_ngcontent-%COMP%] {\n caret-color: auto !important;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\nh1[_ngcontent-%COMP%], \nh2[_ngcontent-%COMP%], \nh3[_ngcontent-%COMP%], \nh4[_ngcontent-%COMP%], \nh5[_ngcontent-%COMP%], \nh6[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\n.input[_ngcontent-%COMP%]:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-field[_ngcontent-%COMP%], \n.form-control-container[_ngcontent-%COMP%] .p-autocomplete-input[_ngcontent-%COMP%] {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-error-message[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-hint-message[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n margin-left: 5px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .p-radiobutton-box[_ngcontent-%COMP%]:hover {\n background: #ebf4fc !important;\n}\n.warning-message[_ngcontent-%COMP%] {\n margin-top: 10px;\n color: #4a5469;\n font-size: 12px;\n text-align: justify;\n}\n.warning-message[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n vertical-align: super;\n}\n\n\n\n\n\n\n/*# sourceMappingURL=save-template-modal.component.css.map */'], changeDetection: 0 });
52281
52339
  };
52282
52340
  (() => {
52283
52341
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(SaveTemplateModalComponent, [{
@@ -52298,7 +52356,7 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52298
52356
  header="Save Template"
52299
52357
  [(visible)]="visible"
52300
52358
  [modal]="true"
52301
- [style]="{ width: '460px', 'max-height': '340px' }"
52359
+ [style]="{ width: '460px', 'max-height': showWarningMessage() ? '398px' : '340px' }"
52302
52360
  (onShow)="onShowDialog()"
52303
52361
  >
52304
52362
  @if(isTemplatePresent) {
@@ -52342,6 +52400,33 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52342
52400
  [control]="descriptionControl"
52343
52401
  />
52344
52402
  </div>
52403
+ @if(showWarningMessage()) {
52404
+ <div class="warning-message">
52405
+ <svg
52406
+ xmlns="http://www.w3.org/2000/svg"
52407
+ width="16"
52408
+ height="16"
52409
+ viewBox="0 0 24 24"
52410
+ fill="none"
52411
+ [ngStyle]="{ 'margin-right': '4px' }"
52412
+ >
52413
+ <path
52414
+ d="M11.9998 7.99999V12M11.9998 16H12.0098M10.6151 2.89171L2.39019 17.0983C1.93398 17.8863 1.70588 18.2803 1.73959 18.6037C1.769 18.8857 1.91677 19.142 2.14613 19.3088C2.40908 19.5 2.86435 19.5 3.77487 19.5H20.2246C21.1352 19.5 21.5904 19.5 21.8534 19.3088C22.0827 19.142 22.2305 18.8857 22.2599 18.6037C22.2936 18.2803 22.0655 17.8863 21.6093 17.0983L13.3844 2.89171C12.9299 2.10654 12.7026 1.71396 12.4061 1.58211C12.1474 1.4671 11.8521 1.4671 11.5935 1.58211C11.2969 1.71396 11.0696 2.10655 10.6151 2.89171Z"
52415
+ stroke="#506285"
52416
+ stroke-width="2"
52417
+ stroke-linecap="round"
52418
+ stroke-linejoin="round"
52419
+ />
52420
+ </svg>
52421
+ @if(selectedDifferentSiteId()) {
52422
+ <span>Please note, saved template will be migrated to current selected domain and will not be available under child domain.</span>
52423
+ }
52424
+
52425
+ @if(hasConfiguredSendOptions()) {
52426
+ <span>Template send options configurations will be removed!</span>
52427
+ }
52428
+ </div>
52429
+ }
52345
52430
  </div>
52346
52431
  <ng-template pTemplate="footer">
52347
52432
  <div
@@ -52372,11 +52457,11 @@ var SaveTemplateModalComponent = class _SaveTemplateModalComponent {
52372
52457
  </div>
52373
52458
  </ng-template>
52374
52459
  </p-dialog>
52375
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["/* libs/shared/ui/components/src/lib/modals/save-template-modal/save-template-modal.component.scss */\n.radio-buttons-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n}\n.radio-buttons-container .radio-button-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n margin-left: 5px;\n}\n.radio-buttons-container .radio-button {\n display: flex;\n align-items: baseline;\n}\n.radio-buttons-container .p-radiobutton-box:hover {\n background: #ebf4fc !important;\n}\n/*# sourceMappingURL=save-template-modal.component.css.map */\n"] }]
52460
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: ['/* node_modules/modern-normalize/modern-normalize.css */\n*,\n::before,\n::after {\n box-sizing: border-box;\n}\nhtml {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody {\n margin: 0;\n}\nb,\nstrong {\n font-weight: bolder;\n}\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall {\n font-size: 80%;\n}\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\ntable {\n border-color: currentcolor;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\nlegend {\n padding: 0;\n}\nprogress {\n vertical-align: baseline;\n}\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary {\n display: list-item;\n}\n\n/* libs/shared/ui/components/src/lib/modals/save-template-modal/save-template-modal.component.scss */\n* {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput,\ntextarea,\n[contenteditable=true] {\n caret-color: auto !important;\n}\nbody {\n margin: 0;\n padding: 0;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n padding: 0;\n}\n.input:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container .form-control-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container .form-control-field,\n.form-control-container .p-autocomplete-input {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container .form-control-error-message {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container .form-control-hint-message {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n.radio-buttons-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px;\n}\n.radio-buttons-container .radio-button-label {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n margin-left: 5px;\n}\n.radio-buttons-container .radio-button {\n display: flex;\n align-items: baseline;\n}\n.radio-buttons-container .p-radiobutton-box:hover {\n background: #ebf4fc !important;\n}\n.warning-message {\n margin-top: 10px;\n color: #4a5469;\n font-size: 12px;\n text-align: justify;\n}\n.warning-message span {\n vertical-align: super;\n}\n/*! Bundled license information:\n\nmodern-normalize/modern-normalize.css:\n (*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize *)\n*/\n/*# sourceMappingURL=save-template-modal.component.css.map */\n'] }]
52376
52461
  }], () => [], null);
52377
52462
  })();
52378
52463
  (() => {
52379
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(SaveTemplateModalComponent, { className: "SaveTemplateModalComponent", filePath: "libs/shared/ui/components/src/lib/modals/save-template-modal/save-template-modal.component.ts", lineNumber: 130 });
52464
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(SaveTemplateModalComponent, { className: "SaveTemplateModalComponent", filePath: "libs/shared/ui/components/src/lib/modals/save-template-modal/save-template-modal.component.ts", lineNumber: 158 });
52380
52465
  })();
52381
52466
 
52382
52467
  // node_modules/primeng/fesm2022/primeng-dragdrop.mjs
@@ -53664,11 +53749,11 @@ var DmDatePickerLibComponent = class _DmDatePickerLibComponent {
53664
53749
 
53665
53750
  // libs/shared/ui/components/src/lib/modals/send-settings-modal/send-settings-modal.ts
53666
53751
  var _forTrack04 = ($index, $item) => $item.dag_id;
53667
- var SendSettingsModalComponent_Defer_3_DepsFn = () => [import("./chunk-HNALPDLS.js").then((m) => m.DeleteTemplateModalComponent)];
53752
+ var SendSettingsModalComponent_Defer_3_DepsFn = () => [import("./chunk-OHQYNXLC.js").then((m) => m.DeleteTemplateModalComponent)];
53668
53753
  var _c026 = () => ({ "width": "460px", "max-height": "540px" });
53669
53754
  var _c151 = () => ({ width: "20px", height: "20px" });
53670
53755
  var _c237 = () => ({ "min-width": "720px" });
53671
- var _c318 = () => ({ height: "20px" });
53756
+ var _c319 = () => ({ height: "20px" });
53672
53757
  var _c414 = () => ({ "min-width": "80px" });
53673
53758
  var _c511 = () => ({ width: "40px", height: "40px" });
53674
53759
  function SendSettingsModalComponent_Conditional_0_Conditional_10_Conditional_2_Template(rf, ctx) {
@@ -54017,7 +54102,7 @@ function SendSettingsModalComponent_Conditional_1_Conditional_1_Template(rf, ctx
54017
54102
  if (rf & 2) {
54018
54103
  const ctx_r1 = \u0275\u0275nextContext(2);
54019
54104
  \u0275\u0275advance(2);
54020
- \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(2, _c318));
54105
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(2, _c319));
54021
54106
  \u0275\u0275advance(14);
54022
54107
  \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(3, _c414));
54023
54108
  \u0275\u0275advance(3);
@@ -54125,12 +54210,7 @@ var SendSettingsModalComponent = class _SendSettingsModalComponent {
54125
54210
  currentReport;
54126
54211
  mailTo = "";
54127
54212
  scheduleId = "";
54128
- fileNameVariables = [
54129
- { "id": "template_name", "name": "template_name" },
54130
- { "id": "schedule_name", "name": "schedule_name" },
54131
- { "id": "timestamp", "name": "timestamp" },
54132
- { "id": "uuid", "name": "uuid" }
54133
- ];
54213
+ fileNameVariables = this.sendingService.fileNameVariables;
54134
54214
  constructor(fb, apiTracingInfo) {
54135
54215
  this.fb = fb;
54136
54216
  this.apiTracingInfo = apiTracingInfo;
@@ -54497,7 +54577,7 @@ var SendSettingsModalComponent = class _SendSettingsModalComponent {
54497
54577
  ], styles: ['\n\n*[_ngcontent-%COMP%], \n[_ngcontent-%COMP%]::before, \n[_ngcontent-%COMP%]::after {\n box-sizing: border-box;\n}\nhtml[_ngcontent-%COMP%] {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n}\nb[_ngcontent-%COMP%], \nstrong[_ngcontent-%COMP%] {\n font-weight: bolder;\n}\ncode[_ngcontent-%COMP%], \nkbd[_ngcontent-%COMP%], \nsamp[_ngcontent-%COMP%], \npre[_ngcontent-%COMP%] {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall[_ngcontent-%COMP%] {\n font-size: 80%;\n}\nsub[_ngcontent-%COMP%], \nsup[_ngcontent-%COMP%] {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub[_ngcontent-%COMP%] {\n bottom: -0.25em;\n}\nsup[_ngcontent-%COMP%] {\n top: -0.5em;\n}\ntable[_ngcontent-%COMP%] {\n border-color: currentcolor;\n}\nbutton[_ngcontent-%COMP%], \ninput[_ngcontent-%COMP%], \noptgroup[_ngcontent-%COMP%], \nselect[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%] {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton[_ngcontent-%COMP%], \n[type=button][_ngcontent-%COMP%], \n[type=reset][_ngcontent-%COMP%], \n[type=submit][_ngcontent-%COMP%] {\n -webkit-appearance: button;\n}\nlegend[_ngcontent-%COMP%] {\n padding: 0;\n}\nprogress[_ngcontent-%COMP%] {\n vertical-align: baseline;\n}\n[_ngcontent-%COMP%]::-webkit-inner-spin-button, \n[_ngcontent-%COMP%]::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search][_ngcontent-%COMP%] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n[_ngcontent-%COMP%]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n[_ngcontent-%COMP%]::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary[_ngcontent-%COMP%] {\n display: list-item;\n}\n\n\n\n*[_ngcontent-%COMP%] {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%], \n[contenteditable=true][_ngcontent-%COMP%] {\n caret-color: auto !important;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\nh1[_ngcontent-%COMP%], \nh2[_ngcontent-%COMP%], \nh3[_ngcontent-%COMP%], \nh4[_ngcontent-%COMP%], \nh5[_ngcontent-%COMP%], \nh6[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\n.input[_ngcontent-%COMP%]:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-field[_ngcontent-%COMP%], \n.form-control-container[_ngcontent-%COMP%] .p-autocomplete-input[_ngcontent-%COMP%] {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-error-message[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-hint-message[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] {\n display: flex;\n gap: 40px;\n margin-bottom: 20px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n margin-left: 5px;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .radio-button[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n}\n.radio-buttons-container[_ngcontent-%COMP%] .p-radiobutton-box[_ngcontent-%COMP%]:hover {\n background: #ebf4fc !important;\n}\n.form-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 12px;\n}\n.list-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n table-layout: auto;\n margin-top: 24px;\n}\n.list-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], \n.list-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 11px 12px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n border-bottom: 1px solid #edeff2;\n vertical-align: middle;\n height: 40px;\n min-width: 160px;\n max-width: 200px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.list-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] {\n background: #f6f7f9;\n}\n.list-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 12px;\n color: #4a5469;\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover {\n background: #eaeef3;\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] .cell-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 16px;\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] .cell-icon[_ngcontent-%COMP%] {\n padding: 4px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] .cell-icon[_ngcontent-%COMP%]:hover {\n border-radius: 4px;\n background: rgba(93, 105, 131, 0.08);\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] .cell-icon[_ngcontent-%COMP%]:active {\n border-radius: 4px;\n background: rgba(93, 105, 131, 0.22);\n}\n.list-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] .cell-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n width: 16px;\n height: 16px;\n}\n.modal-footer[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-top: 8px;\n margin-top: 24px;\n}\n.loading-state[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n\n\n\n\n\n\n/*# sourceMappingURL=send-settings-modal.css.map */'], changeDetection: 0 });
54498
54578
  };
54499
54579
  (() => {
54500
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadataAsync(SendSettingsModalComponent, () => [import("./chunk-HNALPDLS.js").then((m) => m.DeleteTemplateModalComponent)], (DeleteTemplateModalComponent) => {
54580
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadataAsync(SendSettingsModalComponent, () => [import("./chunk-OHQYNXLC.js").then((m) => m.DeleteTemplateModalComponent)], (DeleteTemplateModalComponent) => {
54501
54581
  setClassMetadata(SendSettingsModalComponent, [{
54502
54582
  type: Component,
54503
54583
  args: [{ selector: "lib-send-settings-modal", standalone: true, imports: [
@@ -54953,12 +55033,12 @@ Are you sure you want to delete the schedule?"\r
54953
55033
 
54954
55034
  // libs/shared/ui/components/src/lib/modals/template-select-modal/template-select-modal.ts
54955
55035
  var _forTrack05 = ($index, $item) => $item.template_id;
54956
- var TemplateSelectModalComponent_Defer_12_DepsFn = () => [import("./chunk-HNALPDLS.js").then((m) => m.DeleteTemplateModalComponent)];
54957
- var TemplateSelectModalComponent_Defer_16_DepsFn = () => [import("./chunk-KKYQR2JQ.js").then((m) => m.DomainsOverloadModalComponent)];
55036
+ var TemplateSelectModalComponent_Defer_12_DepsFn = () => [import("./chunk-OHQYNXLC.js").then((m) => m.DeleteTemplateModalComponent)];
55037
+ var TemplateSelectModalComponent_Defer_16_DepsFn = () => [import("./chunk-CDNMVOIM.js").then((m) => m.DomainsOverloadModalComponent)];
54958
55038
  var _c027 = (a0) => ({ "selected-row": a0 });
54959
55039
  var _c158 = () => ({ position: "relative" });
54960
55040
  var _c238 = () => ({ width: "16px", height: "16px" });
54961
- var _c319 = () => ({ position: "absolute", width: "8px", height: "8px", background: "#2eb398", "border-radius": "50%", right: "2px", top: "2px" });
55041
+ var _c320 = () => ({ position: "absolute", width: "8px", height: "8px", background: "#2eb398", "border-radius": "50%", right: "2px", top: "2px" });
54962
55042
  var _c415 = () => ({ width: "40px", height: "40px" });
54963
55043
  function TemplateSelectModalComponent_Conditional_7_Conditional_4_Template(rf, ctx) {
54964
55044
  if (rf & 1) {
@@ -55023,7 +55103,7 @@ function TemplateSelectModalComponent_Conditional_9_Conditional_0_For_11_Conditi
55023
55103
  \u0275\u0275element(0, "span", 30);
55024
55104
  }
55025
55105
  if (rf & 2) {
55026
- \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(1, _c319));
55106
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(1, _c320));
55027
55107
  }
55028
55108
  }
55029
55109
  function TemplateSelectModalComponent_Conditional_9_Conditional_0_For_11_Conditional_23_Template(rf, ctx) {
@@ -55275,6 +55355,7 @@ var TemplateSelectModalComponent = class _TemplateSelectModalComponent {
55275
55355
  csvLoadEmitter = output();
55276
55356
  templateService = inject(TemplateService);
55277
55357
  messageService = inject(GlobalMessageService);
55358
+ sessionService = inject(SessionService);
55278
55359
  cdr = inject(ChangeDetectorRef);
55279
55360
  selectedTemplate;
55280
55361
  reportId = input.required();
@@ -55407,7 +55488,7 @@ var TemplateSelectModalComponent = class _TemplateSelectModalComponent {
55407
55488
  return template.input_params && template.input_params.fieldValues && template.input_params.fieldValues.merchant_name && template.input_params.fieldValues.merchant_name.length || 0;
55408
55489
  }
55409
55490
  isAllDomainsSelected(template) {
55410
- if (!this.domainLookups || !this.domainLookups.length || this.domainLookups.length == 1)
55491
+ if (!this.domainLookups || !this.domainLookups.length || this.domainLookups.length == 1 || this.sessionService.sessionData?.Domains && this.sessionService.sessionData.Domains != "1000")
55411
55492
  return false;
55412
55493
  return this.domainLookups.length === this.getTemplateSelectedDomains(template);
55413
55494
  }
@@ -55470,7 +55551,7 @@ var TemplateSelectModalComponent = class _TemplateSelectModalComponent {
55470
55551
  ], styles: ['\n\n*[_ngcontent-%COMP%], \n[_ngcontent-%COMP%]::before, \n[_ngcontent-%COMP%]::after {\n box-sizing: border-box;\n}\nhtml[_ngcontent-%COMP%] {\n font-family:\n system-ui,\n "Segoe UI",\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji";\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n}\nb[_ngcontent-%COMP%], \nstrong[_ngcontent-%COMP%] {\n font-weight: bolder;\n}\ncode[_ngcontent-%COMP%], \nkbd[_ngcontent-%COMP%], \nsamp[_ngcontent-%COMP%], \npre[_ngcontent-%COMP%] {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n "Liberation Mono",\n Menlo,\n monospace;\n font-size: 1em;\n}\nsmall[_ngcontent-%COMP%] {\n font-size: 80%;\n}\nsub[_ngcontent-%COMP%], \nsup[_ngcontent-%COMP%] {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub[_ngcontent-%COMP%] {\n bottom: -0.25em;\n}\nsup[_ngcontent-%COMP%] {\n top: -0.5em;\n}\ntable[_ngcontent-%COMP%] {\n border-color: currentcolor;\n}\nbutton[_ngcontent-%COMP%], \ninput[_ngcontent-%COMP%], \noptgroup[_ngcontent-%COMP%], \nselect[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%] {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n}\nbutton[_ngcontent-%COMP%], \n[type=button][_ngcontent-%COMP%], \n[type=reset][_ngcontent-%COMP%], \n[type=submit][_ngcontent-%COMP%] {\n -webkit-appearance: button;\n}\nlegend[_ngcontent-%COMP%] {\n padding: 0;\n}\nprogress[_ngcontent-%COMP%] {\n vertical-align: baseline;\n}\n[_ngcontent-%COMP%]::-webkit-inner-spin-button, \n[_ngcontent-%COMP%]::-webkit-outer-spin-button {\n height: auto;\n}\n[type=search][_ngcontent-%COMP%] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n[_ngcontent-%COMP%]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n[_ngcontent-%COMP%]::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\nsummary[_ngcontent-%COMP%] {\n display: list-item;\n}\n\n\n\n*[_ngcontent-%COMP%] {\n font-family:\n Inter,\n Arial,\n serif;\n caret-color: transparent !important;\n}\ninput[_ngcontent-%COMP%], \ntextarea[_ngcontent-%COMP%], \n[contenteditable=true][_ngcontent-%COMP%] {\n caret-color: auto !important;\n}\nbody[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\nh1[_ngcontent-%COMP%], \nh2[_ngcontent-%COMP%], \nh3[_ngcontent-%COMP%], \nh4[_ngcontent-%COMP%], \nh5[_ngcontent-%COMP%], \nh6[_ngcontent-%COMP%] {\n margin: 0;\n padding: 0;\n}\n.input[_ngcontent-%COMP%]:focus-visible {\n box-shadow: 0px 0px 0px 4px rgba(0, 118, 221, 0.16) !important;\n}\n.form-control-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: 14px;\n line-height: 18px;\n font-variant-numeric: lining-nums tabular-nums;\n font-weight: 400;\n cursor: pointer;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-label[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n position: relative;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-field[_ngcontent-%COMP%], \n.form-control-container[_ngcontent-%COMP%] .p-autocomplete-input[_ngcontent-%COMP%] {\n font-size: 14px;\n color: #252a34;\n font-weight: 400;\n line-height: 18px;\n font-style: normal;\n font-variant-numeric: lining-nums tabular-nums;\n width: 100%;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-error-message[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #d6421e;\n margin-top: 2px;\n}\n.form-control-container[_ngcontent-%COMP%] .form-control-hint-message[_ngcontent-%COMP%] {\n color: #4a5469;\n font-size: 12px;\n margin-top: 2px;\n}\n.popover-container[_ngcontent-%COMP%] {\n padding: 24px;\n max-height: 390px;\n overflow-y: scroll;\n}\n.popover-container[_ngcontent-%COMP%]::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background: #fff;\n z-index: 999999;\n}\n.popover-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb {\n border-radius: 5px;\n background: #9aa6bc;\n}\n.template-list-search[_ngcontent-%COMP%] {\n position: relative;\n margin-bottom: 24px;\n width: 50%;\n}\n.template-list-search[_ngcontent-%COMP%]:hover .clear-icon[_ngcontent-%COMP%] {\n display: block;\n}\n.template-list-search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] {\n width: 100%;\n padding-inline: 36px;\n border-color: #bcc2d0;\n}\n.template-list-search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]:focus {\n border-color: #0076dd;\n}\n.template-list-search[_ngcontent-%COMP%] .clear-icon[_ngcontent-%COMP%] {\n display: none;\n position: absolute;\n right: 12px;\n transform: translateY(-50%);\n top: 50%;\n width: 12px;\n height: 12px;\n color: #5d6983;\n background: #ffffff;\n cursor: pointer;\n}\n.template-list-search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%] {\n position: absolute;\n left: 12px;\n transform: translateY(-50%);\n top: 50%;\n width: 16px;\n height: 16px;\n}\n.template-list[_ngcontent-%COMP%] {\n width: 100%;\n min-width: 600px;\n min-height: 50px;\n}\n.template-list[_ngcontent-%COMP%] .template-row-content[_ngcontent-%COMP%] {\n cursor: pointer;\n height: 40px;\n}\n.template-list[_ngcontent-%COMP%] .template-row-content[_ngcontent-%COMP%]:hover {\n background: #eaeef3;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] {\n display: flex;\n border-bottom: 1px solid #edeff2;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell[_ngcontent-%COMP%] {\n width: 200px;\n padding: 11px 12px;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-name[_ngcontent-%COMP%], \n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-desc[_ngcontent-%COMP%] {\n color: #252a34;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-name[_ngcontent-%COMP%] .tooltip-label[_ngcontent-%COMP%], \n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-desc[_ngcontent-%COMP%] .tooltip-label[_ngcontent-%COMP%] {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 200px;\n display: inline-block;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-actions[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] {\n cursor: pointer;\n padding: 4px;\n width: 24px;\n height: 24px;\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-actions[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:hover {\n border-radius: 4px;\n background: rgba(93, 105, 131, 0.08);\n}\n.template-list[_ngcontent-%COMP%] .template-row[_ngcontent-%COMP%] .cell.cell-actions[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]:active {\n border-radius: 4px;\n background: rgba(93, 105, 131, 0.22);\n}\n.template-list[_ngcontent-%COMP%] .selected-row[_ngcontent-%COMP%] {\n background-color: rgba(0, 118, 221, 0.12);\n}\n.template-list[_ngcontent-%COMP%] .template-row-header[_ngcontent-%COMP%] {\n background: #f6f7f9;\n}\n.template-list[_ngcontent-%COMP%] .template-row-header[_ngcontent-%COMP%] .cell-header[_ngcontent-%COMP%] {\n font-style: normal;\n line-height: 18px;\n font-weight: 600;\n font-size: 12px;\n color: #4a5469;\n}\n.template-list[_ngcontent-%COMP%] .empty-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50px;\n color: #4a5469;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n}\n.template-list[_ngcontent-%COMP%] .loading-state[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n\n\n\n\n\n\n/*# sourceMappingURL=template-select-modal.css.map */'], changeDetection: 0 });
55471
55552
  };
55472
55553
  (() => {
55473
- (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadataAsync(TemplateSelectModalComponent, () => [import("./chunk-HNALPDLS.js").then((m) => m.DeleteTemplateModalComponent), import("./chunk-KKYQR2JQ.js").then((m) => m.DomainsOverloadModalComponent)], (DeleteTemplateModalComponent, DomainsOverloadModalComponent2) => {
55554
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadataAsync(TemplateSelectModalComponent, () => [import("./chunk-OHQYNXLC.js").then((m) => m.DeleteTemplateModalComponent), import("./chunk-CDNMVOIM.js").then((m) => m.DomainsOverloadModalComponent)], (DeleteTemplateModalComponent, DomainsOverloadModalComponent2) => {
55474
55555
  setClassMetadata(TemplateSelectModalComponent, [{
55475
55556
  type: Component,
55476
55557
  args: [{ selector: "lib-template-select-modal", standalone: true, imports: [
@@ -55784,7 +55865,7 @@ var TemplateSelectModalComponent = class _TemplateSelectModalComponent {
55784
55865
  });
55785
55866
  })();
55786
55867
  (() => {
55787
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(TemplateSelectModalComponent, { className: "TemplateSelectModalComponent", filePath: "libs/shared/ui/components/src/lib/modals/template-select-modal/template-select-modal.ts", lineNumber: 53 });
55868
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(TemplateSelectModalComponent, { className: "TemplateSelectModalComponent", filePath: "libs/shared/ui/components/src/lib/modals/template-select-modal/template-select-modal.ts", lineNumber: 54 });
55788
55869
  })();
55789
55870
 
55790
55871
  // node_modules/primeng/fesm2022/primeng-toast.mjs
@@ -55799,7 +55880,7 @@ var _c239 = (a0) => ({
55799
55880
  value: "visible",
55800
55881
  params: a0
55801
55882
  });
55802
- var _c320 = (a0, a1) => ({
55883
+ var _c321 = (a0, a1) => ({
55803
55884
  $implicit: a0,
55804
55885
  closeFn: a1
55805
55886
  });
@@ -55817,7 +55898,7 @@ function ToastItem_Conditional_2_Template(rf, ctx) {
55817
55898
  }
55818
55899
  if (rf & 2) {
55819
55900
  const ctx_r1 = \u0275\u0275nextContext();
55820
- \u0275\u0275property("ngTemplateOutlet", ctx_r1.headlessTemplate)("ngTemplateOutletContext", \u0275\u0275pureFunction2(2, _c320, ctx_r1.message, ctx_r1.onCloseIconClick));
55901
+ \u0275\u0275property("ngTemplateOutlet", ctx_r1.headlessTemplate)("ngTemplateOutletContext", \u0275\u0275pureFunction2(2, _c321, ctx_r1.message, ctx_r1.onCloseIconClick));
55821
55902
  }
55822
55903
  }
55823
55904
  function ToastItem_Conditional_3_ng_container_1_span_1_Template(rf, ctx) {
@@ -57252,7 +57333,7 @@ var AppComponent_Conditional_23_Defer_7_DepsFn = () => [ReportConfigurationModal
57252
57333
  var _c029 = (a0) => ({ display: a0 });
57253
57334
  var _c160 = (a0) => ({ width: a0 });
57254
57335
  var _c240 = () => ({ "margin-right": "16px" });
57255
- var _c321 = () => ({ height: "20px" });
57336
+ var _c324 = () => ({ height: "20px" });
57256
57337
  var _c417 = () => [];
57257
57338
  var _c513 = () => ({ width: "20px", height: "20px" });
57258
57339
  var _c612 = () => ({ width: "60px", height: "60px" });
@@ -57334,7 +57415,7 @@ function AppComponent_Conditional_12_ng_template_2_Conditional_5_Template(rf, ct
57334
57415
  \u0275\u0275advance();
57335
57416
  \u0275\u0275property("disabled", ctx_r2.filterForm && !ctx_r2.filterForm.dirty);
57336
57417
  \u0275\u0275advance();
57337
- \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(4, _c321));
57418
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(4, _c324));
57338
57419
  }
57339
57420
  }
57340
57421
  function AppComponent_Conditional_12_ng_template_2_Template(rf, ctx) {
@@ -57616,7 +57697,7 @@ function AppComponent_ng_template_16_Conditional_9_Template(rf, ctx) {
57616
57697
  \u0275\u0275elementEnd()();
57617
57698
  }
57618
57699
  if (rf & 2) {
57619
- \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(1, _c321));
57700
+ \u0275\u0275property("ngStyle", \u0275\u0275pureFunction0(1, _c324));
57620
57701
  }
57621
57702
  }
57622
57703
  function AppComponent_ng_template_16_Template(rf, ctx) {
@@ -57845,7 +57926,12 @@ var AppComponent = class _AppComponent {
57845
57926
  computation: (all) => {
57846
57927
  if (all) {
57847
57928
  const selectedIds = this.templateSignal()?.input_params.visibleFields ?? all?.filter((f) => f.is_default === "true").map((f) => f.field_id);
57848
- return all?.filter((f) => selectedIds.includes(f.field_id));
57929
+ return selectedIds.reduce((acc, id) => {
57930
+ const field = all.find(({ field_id }) => field_id == id);
57931
+ if (field)
57932
+ acc.push(field);
57933
+ return acc;
57934
+ }, []);
57849
57935
  }
57850
57936
  return void 0;
57851
57937
  }
@@ -58326,6 +58412,8 @@ var AppComponent = class _AppComponent {
58326
58412
  show_last_verification: true
58327
58413
  };
58328
58414
  this.filterForm.reset(defaults);
58415
+ this.filterForm.markAsPristine();
58416
+ this.filterForm.markAsUntouched();
58329
58417
  }
58330
58418
  calculateHeightPosition(element) {
58331
58419
  const content = element.parentElement;
@@ -58388,12 +58476,12 @@ var AppComponent = class _AppComponent {
58388
58476
  }
58389
58477
  }
58390
58478
  get isAllDomainsSelected() {
58391
- if (!this.domainLookupsSignal()?.length || this.domainLookupsSignal()?.length == 1)
58479
+ if (!this.domainLookupsSignal()?.length || this.domainLookupsSignal()?.length == 1 || this.sessionService.sessionData?.Domains && this.sessionService.sessionData.Domains != "1000")
58392
58480
  return false;
58393
58481
  return this.domainLookupsSignal()?.length === this.filterForm.get("merchant_name").value.length;
58394
58482
  }
58395
58483
  get isTemplateSavingEnabled() {
58396
- return !this.isTemplateSaved() && this.filterForm && this.filterForm.get("merchant_name") && this.filterForm.get("merchant_name").value && this.filterForm.get("merchant_name").value.length > 0;
58484
+ return !this.isTemplateSaved() && this.filterForm && this.filterForm.dirty && this.filterForm.get("merchant_name") && this.filterForm.get("merchant_name").value && this.filterForm.get("merchant_name").value.length > 0;
58397
58485
  }
58398
58486
  applyConfigurationFields(event2) {
58399
58487
  this.isTemplateSaved.set(false);