@zanichelli/delta_share 1.0.8 → 2.0.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.
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[1,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
18
+ return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"buttonIcon":[1,"button-icon"],"previewInputPlaceholder":[1,"preview-input-placeholder"],"previewButtonLabel":[1,"preview-button-label"],"previewButtonIcon":[1,"preview-button-icon"],"previewButtonSize":[1,"preview-button-size"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[1,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
19
19
  });
@@ -215,8 +215,6 @@ class Env {
215
215
  buildApiV3Url() {
216
216
  if (this.zanienv === "prod")
217
217
  return "https://api-catalogo.zanichelli.it/v3";
218
- if (this.zanienv === "local")
219
- return "https://api-catalogo.zanichelli.local/v3";
220
218
  return `https://${this.zanienv}-api-catalogo.zanichelli.it/v3`;
221
219
  }
222
220
  buildUrlS3ImagesFolder() {
@@ -1724,15 +1722,17 @@ const LicenseActivation = class {
1724
1722
  this.licenseModalState = index.createEvent(this, "licenseModalState", 7);
1725
1723
  this.licenseStatusChange = index.createEvent(this, "licenseStatusChange", 7);
1726
1724
  /** env: values: "local" | "devmy" | "testmy" | "demomy" | "prod" */
1727
- this.env = 'prod';
1725
+ this.env = "prod";
1728
1726
  this.initialShowInfoBox = false;
1729
1727
  this.licenseActivationState = licenseInitialState;
1730
1728
  }
1731
1729
  async componentWillLoad() {
1732
1730
  await getCms(state);
1733
1731
  this.cms = state.cms;
1734
- this.modalState = this.variant === 'modal' ? 'open' : 'closed';
1735
- this.isMobile = window.screen.width <= mobileBreakpoint || window.innerWidth <= mobileBreakpoint;
1732
+ this.modalState = this.variant === "modal" ? "open" : "closed";
1733
+ this.isMobile =
1734
+ window.screen.width <= mobileBreakpoint ||
1735
+ window.innerWidth <= mobileBreakpoint;
1736
1736
  this.enableFormSubmitButton = this.enableButton;
1737
1737
  this.environment = new Env(this.env).buildEnvironment();
1738
1738
  }
@@ -1744,22 +1744,22 @@ const LicenseActivation = class {
1744
1744
  }
1745
1745
  handleLicenseModalClose() {
1746
1746
  this.modalState = "closed";
1747
- this.licenseModalState.emit({ value: 'closed' });
1747
+ this.licenseModalState.emit({ value: "closed" });
1748
1748
  this.resetStore();
1749
1749
  }
1750
1750
  handleLicenseModalOpen(initialShowInfoBox) {
1751
1751
  this.initialShowInfoBox = initialShowInfoBox;
1752
1752
  this.submitClicked = true;
1753
- this.modalState = 'open';
1754
- this.licenseModalState.emit({ value: 'open' });
1753
+ this.modalState = "open";
1754
+ this.licenseModalState.emit({ value: "open" });
1755
1755
  }
1756
1756
  emitStatusChange() {
1757
- const { licenseActivationState: { licenseActivationStatus, licenseActivationApiData, } } = this;
1757
+ const { licenseActivationState: { licenseActivationStatus, licenseActivationApiData, }, } = this;
1758
1758
  this.licenseStatusChange.emit({
1759
1759
  status: licenseActivationStatus,
1760
- data: licenseActivationApiData
1760
+ data: licenseActivationApiData,
1761
1761
  });
1762
- if (this.licenseActivationState.licenseActivationStatus === 'success') {
1762
+ if (this.licenseActivationState.licenseActivationStatus === "success") {
1763
1763
  this.resetStore();
1764
1764
  }
1765
1765
  }
@@ -1775,93 +1775,118 @@ const LicenseActivation = class {
1775
1775
  async activateLicense() {
1776
1776
  var _a;
1777
1777
  const myzToken = this.environment.MYZ_TOKEN_KEY;
1778
- const MYZ_TOKEN = (_a = this.environment.MYZ_TOKEN_KEY) === null || _a === void 0 ? void 0 : _a.replace(/-/g, '_');
1778
+ const MYZ_TOKEN = (_a = this.environment.MYZ_TOKEN_KEY) === null || _a === void 0 ? void 0 : _a.replace(/-/g, "_");
1779
1779
  const url = `${this.environment.API_V3_URL}/dashboard/code`;
1780
1780
  this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: true });
1781
1781
  const headers = {
1782
- [myzToken]: getCookie(MYZ_TOKEN)
1782
+ [myzToken]: getCookie(MYZ_TOKEN),
1783
1783
  };
1784
- const sampleCodeError = state.cms['newdashboard.licenseActivation.error.sampleCodeMessage'];
1784
+ const sampleCodeError = state.cms["newdashboard.licenseActivation.error.sampleCodeMessage"];
1785
1785
  // INFO: controllo che il codice inserito non sia quello di esempio
1786
1786
  if (this.licenseActivationState.licenseActivationCode === sampleCode) {
1787
- this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationMessage: sampleCodeError, licenseActivationStatus: 'fail', licenseActivationApiData: null });
1787
+ this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationMessage: sampleCodeError, licenseActivationStatus: "fail", licenseActivationApiData: null });
1788
1788
  this.emitStatusChange();
1789
1789
  this.handleLicenseModalOpen(false);
1790
1790
  }
1791
1791
  try {
1792
1792
  const response = await post(url, { code: this.licenseActivationState.licenseActivationCode }, headers);
1793
1793
  const responseData = await response.json();
1794
- this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiData: Object.assign(Object.assign({}, responseData), { code: this.licenseActivationState.licenseActivationCode }), licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationStatus: response.ok ? 'success' : 'fail', licenseActivationMessage: response.ok ? responseData.message : handleResponseError(responseData) });
1794
+ this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiData: Object.assign(Object.assign({}, responseData), { code: this.licenseActivationState.licenseActivationCode }), licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationStatus: response.ok ? "success" : "fail", licenseActivationMessage: response.ok
1795
+ ? responseData.message
1796
+ : handleResponseError(responseData) });
1795
1797
  this.emitStatusChange();
1796
- response.ok ? this.handleLicenseModalClose() : this.handleLicenseModalOpen(false);
1798
+ response.ok
1799
+ ? this.handleLicenseModalClose()
1800
+ : this.handleLicenseModalOpen(false);
1797
1801
  }
1798
1802
  catch (error) {
1799
1803
  const { response } = error;
1800
- this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationApiError: error, licenseActivationStatus: 'fail', licenseActivationMessage: handleResponseError(await response.json()), licenseActivationApiData: null });
1804
+ this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationApiLoading: false, licenseActivationApiLoaded: true, licenseActivationApiError: error, licenseActivationStatus: "fail", licenseActivationMessage: handleResponseError(await response.json()), licenseActivationApiData: null });
1801
1805
  this.emitStatusChange();
1802
1806
  this.handleLicenseModalOpen(false);
1803
1807
  }
1804
1808
  }
1805
1809
  async handleSubmitButtonClick(inputVal) {
1806
- const { licenseActivationState: { licenseActivationStatus, } } = this;
1810
+ const { licenseActivationState: { licenseActivationStatus }, } = this;
1807
1811
  this.licenseActivationState = Object.assign(Object.assign({}, this.licenseActivationState), { licenseActivationCode: inputVal });
1808
1812
  if (!inputVal) {
1809
1813
  this.handleLicenseModalOpen(false);
1810
1814
  }
1811
- if ((this.variant === 'modal' || this.modalState === 'open' || licenseActivationStatus === 'initial') && inputVal) {
1815
+ if ((this.variant === "modal" ||
1816
+ this.modalState === "open" ||
1817
+ licenseActivationStatus === "initial") &&
1818
+ inputVal) {
1812
1819
  this.activateLicense();
1813
1820
  }
1814
1821
  }
1815
1822
  handleMobileButtonClick() {
1816
- this.modalState = 'open';
1823
+ this.modalState = "open";
1817
1824
  }
1818
1825
  mapInputStatus(licenseActivationStatus) {
1819
- if (licenseActivationStatus === 'initial')
1826
+ if (licenseActivationStatus === "initial")
1820
1827
  return null;
1821
- if (licenseActivationStatus === 'success')
1822
- return 'success';
1823
- if (licenseActivationStatus === 'fail')
1824
- return 'error';
1828
+ if (licenseActivationStatus === "success")
1829
+ return "success";
1830
+ if (licenseActivationStatus === "fail")
1831
+ return "error";
1825
1832
  return null;
1826
1833
  }
1827
- renderLicenseActivationBox() {
1828
- return (index.h("license-activation-box", { error: this.licenseActivationState.licenseActivationApiError, code: this.licenseActivationState.licenseActivationCode }, this.renderLicenseActivationForm('box')));
1834
+ renderLicenseActivationBox(variant) {
1835
+ return (index.h("license-activation-box", { error: this.licenseActivationState.licenseActivationApiError, code: this.licenseActivationState.licenseActivationCode }, this.renderLicenseActivationForm(variant)));
1829
1836
  }
1830
1837
  renderLicenseActivationModal() {
1831
- return (index.h("license-activation-modal", { id: `${this.host.id}-modal`, "modal-title": this.cms["newdashboard.licenseActivation.modalTitle"], onActivationModalClose: () => this.handleLicenseModalClose(), resetStore: this.resetStore }, this.renderLicenseActivationForm('modal')));
1838
+ return (index.h("license-activation-modal", { id: `${this.host.id}-modal`, "modal-title": this.cms["newdashboard.licenseActivation.modalTitle"], onActivationModalClose: () => this.handleLicenseModalClose(), resetStore: this.resetStore }, this.renderLicenseActivationForm("modal")));
1832
1839
  }
1833
1840
  retrieveTextsObject() {
1834
- const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription } = this;
1841
+ const { inputMessage, inputLabel, inputPlaceholder, buttonLabel, isMobile, additionalDescription, buttonIcon, previewInputPlaceholder, previewButtonLabel, previewButtonIcon, previewButtonSize, } = this;
1835
1842
  const { licenseActivationStatus } = this.licenseActivationState;
1836
1843
  return {
1837
1844
  inputStatus: this.mapInputStatus(licenseActivationStatus),
1838
- inputMessage: inputMessage || this.cms['newdashboard.licenseActivation.inputHelperMessage'],
1839
- placeholder: inputPlaceholder || this.cms['newdashboard.licenseActivation.inputPlaceholder'],
1840
- inputLabel: inputLabel || this.cms['newdashboard.licenseActivation.inputLabel'],
1841
- buttonLabel: isMobile ? (buttonLabel || this.cms['newdashboard.licenseActivation.submitLabel']) : this.cms['newdashboard.onboarding.licenseActivation.submitLabel'],
1842
- linkLabel: this.cms['newdashboard.licenseActivation.helperLink'].toUpperCase(),
1843
- errorButtonLabel: this.cms['newdashboard.licenseActivation.contactUs.btnLabel'],
1844
- errorSectionMessage: this.cms['newdashboard.licenseActivation.contactUs.message'],
1845
+ inputMessage: inputMessage ||
1846
+ this.cms["newdashboard.licenseActivation.inputHelperMessage"],
1847
+ placeholder: inputPlaceholder ||
1848
+ this.cms["newdashboard.licenseActivation.inputPlaceholder"],
1849
+ inputLabel: inputLabel || this.cms["newdashboard.licenseActivation.inputLabel"],
1850
+ buttonLabel: isMobile
1851
+ ? buttonLabel || this.cms["newdashboard.licenseActivation.submitLabel"]
1852
+ : this.cms["newdashboard.onboarding.licenseActivation.submitLabel"],
1853
+ buttonIcon,
1854
+ previewInputPlaceholder,
1855
+ previewButtonLabel,
1856
+ previewButtonIcon,
1857
+ previewButtonSize,
1858
+ linkLabel: this.cms["newdashboard.licenseActivation.helperLink"].toUpperCase(),
1859
+ errorButtonLabel: this.cms["newdashboard.licenseActivation.contactUs.btnLabel"],
1860
+ errorSectionMessage: this.cms["newdashboard.licenseActivation.contactUs.message"],
1845
1861
  infoBoxIcon: `${this.environment.URL_S3_IMAGES_FOLDER}bollinoSIAE.svg`,
1846
- infoBoxContent: this.cms['newdashboard.licenseActivation.infoBoxContent'],
1847
- supportLink: this.cms['newdashboard.licenseActivation.contactUs.url'],
1848
- additionalDescription: this.variant === 'modal' && additionalDescription
1862
+ infoBoxContent: this.cms["newdashboard.licenseActivation.infoBoxContent"],
1863
+ supportLink: this.cms["newdashboard.licenseActivation.contactUs.url"],
1864
+ additionalDescription: this.variant === "modal" && additionalDescription,
1849
1865
  };
1850
1866
  }
1851
1867
  renderLicenseActivationForm(variant) {
1852
1868
  const { componentid } = this;
1853
- const { licenseActivationState: { licenseActivationMessage, licenseActivationCode, licenseActivationApiLoading } } = this;
1869
+ const { licenseActivationState: { licenseActivationMessage, licenseActivationCode, licenseActivationApiLoading, }, } = this;
1854
1870
  const textObject = this.retrieveTextsObject();
1855
- return (index.h("license-activation-form", { direction: 'column', error: licenseActivationMessage, initialCode: licenseActivationCode, formTexts: textObject, requestLoading: !!licenseActivationApiLoading, enableButton: this.enableFormSubmitButton, formid: componentid, initialShowInfoBox: this.initialShowInfoBox, onFormInputChange: (e) => this.handleFormInputChange(e.detail.value), onSubmitButtonClick: (e) => this.handleSubmitButtonClick(e.detail.value), variant: variant, handleModalOpen: () => this.handleLicenseModalOpen(true) }));
1871
+ return (index.h("license-activation-form", { direction: "column", error: licenseActivationMessage, initialCode: licenseActivationCode, formTexts: textObject, requestLoading: !!licenseActivationApiLoading, enableButton: this.enableFormSubmitButton, formid: componentid, initialShowInfoBox: this.initialShowInfoBox, onFormInputChange: (e) => this.handleFormInputChange(e.detail.value), onSubmitButtonClick: (e) => this.handleSubmitButtonClick(e.detail.value), variant: variant, handleModalOpen: () => this.handleLicenseModalOpen(true) }));
1856
1872
  }
1857
1873
  renderMobileButton() {
1858
- return (index.h("z-button", { onClick: () => this.handleMobileButtonClick() }, this.cms['newdashboard.onboarding.licenseActivation.mobileSubmitLabel']));
1874
+ return (index.h("z-button", { onClick: () => this.handleMobileButtonClick() }, this.cms["newdashboard.onboarding.licenseActivation.mobileSubmitLabel"]));
1859
1875
  }
1860
1876
  render() {
1861
- if (this.isMobile) {
1862
- return (index.h(index.Host, null, this.forceModal ? this.renderLicenseActivationModal() : this.renderMobileButton(), this.variant === 'box' && this.modalState === 'open' && this.renderLicenseActivationModal()));
1877
+ if (this.isMobile && this.variant !== "preview") {
1878
+ return (index.h(index.Host, null, this.forceModal
1879
+ ? this.renderLicenseActivationModal()
1880
+ : this.renderMobileButton(), this.variant === "box" &&
1881
+ this.modalState === "open" &&
1882
+ this.renderLicenseActivationModal()));
1863
1883
  }
1864
- return (index.h(index.Host, null, this.variant === 'box' ? this.renderLicenseActivationBox() : (this.modalState === 'open' && this.renderLicenseActivationModal()), this.variant === 'box' && this.modalState === 'open' && this.submitClicked && this.renderLicenseActivationModal()));
1884
+ return (index.h(index.Host, null, this.variant === "box" || this.variant === "preview"
1885
+ ? this.renderLicenseActivationBox(this.variant)
1886
+ : this.modalState === "open" && this.renderLicenseActivationModal(), (this.variant === "box" || this.variant === "preview") &&
1887
+ this.modalState === "open" &&
1888
+ this.submitClicked &&
1889
+ this.renderLicenseActivationModal()));
1865
1890
  }
1866
1891
  get host() { return index.getElement(this); }
1867
1892
  };
@@ -1895,7 +1920,7 @@ const LicenseActivationBox = class {
1895
1920
  };
1896
1921
  LicenseActivationBox.style = licenseActivationBoxCss;
1897
1922
 
1898
- const licenseActivationFormCss = ":host{display:block;padding:calc(var(--space-unit) * 2)}:host>div>z-body{margin-bottom:calc(var(--space-unit) * 2)}:host>div>z-button{padding:calc(var(--space-unit) * 2) 0;width:100%}:host>div>z-input{width:100%}:host>z-link{font-weight:bold}:host>div>z-info-box>div{display:flex}:host([variant='modal']) .error-section{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--bg-grey-200);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}:host([variant='modal']) .error-section>span{padding:var(--basex2) 0;display:block;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}@media only screen and (min-width: 768px){:host{padding:0}:host([variant='modal']){padding:32px;width:396px}:host>div{display:flex;flex-direction:row}:host([variant='modal'])>div{flex-direction:column}:host>div>z-button{padding:32px 0 calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);width:auto}:host([variant='modal'])>div>z-button{padding:32px 0 calc(var(--space-unit) * 2);width:max-content}:host([variant='modal']) .error-section>z-button{width:max-content}}@media only screen and (min-width: 1152px){:host([variant='modal']){width:477px}:host>div{flex-direction:row}}";
1923
+ const licenseActivationFormCss = ":host{display:block;padding:calc(var(--space-unit) * 2)}:host>div>z-body{margin-bottom:calc(var(--space-unit) * 2)}:host>div>z-button{padding:calc(var(--space-unit) * 2) 0;width:100%}:host>div>z-input{width:100%}:host>z-link{font-weight:bold}:host>div>z-info-box>div{display:flex}:host([variant=\"modal\"]) .error-section{display:flex;flex-direction:column;border-top:var(--border-size-small) solid var(--bg-grey-200);margin-top:calc(var(--space-unit) * 3);padding-top:calc(var(--space-unit) * 2)}:host([variant=\"modal\"]) .error-section>span{padding:var(--basex2) 0;display:block;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-weight:var(--font-sb);font-size:14px;line-height:20px}:host([variant=\"preview\"]){margin:0;padding:0}:host([variant=\"preview\"]) z-button{margin:0;padding:0;width:initial}:host([variant=\"preview\"]) z-input{margin-right:calc(var(--space-unit) * 2)}@media only screen and (min-width: 768px){:host{padding:0}:host([variant=\"modal\"]){padding:32px;width:396px}:host>div{display:flex;flex-direction:row}:host([variant=\"modal\"])>div{flex-direction:column}:host>div>z-button{padding-top:calc(var(--space-unit) * 4);padding-left:calc(var(--space-unit) * 2);width:auto}:host([variant=\"preview\"])>div>z-button{padding-top:0}:host([variant=\"modal\"])>div>z-button{padding:32px 0 calc(var(--space-unit) * 2);width:max-content}:host([variant=\"modal\"]) .error-section>z-button{width:max-content}}@media only screen and (min-width: 1152px){:host([variant=\"modal\"]){width:477px}:host>div{flex-direction:row}}";
1899
1924
 
1900
1925
  const LicenseActivationForm = class {
1901
1926
  constructor(hostRef) {
@@ -1906,7 +1931,7 @@ const LicenseActivationForm = class {
1906
1931
  }
1907
1932
  componentWillLoad() {
1908
1933
  this.showInfoBox = !!this.initialShowInfoBox;
1909
- this.inputVal = this.initialCode ? this.initialCode : '';
1934
+ this.inputVal = this.initialCode ? this.initialCode : "";
1910
1935
  }
1911
1936
  handleFormInputChange(detail) {
1912
1937
  this.inputVal = detail.value;
@@ -1916,22 +1941,54 @@ const LicenseActivationForm = class {
1916
1941
  this.submitButtonClick.emit({ value: inputVal });
1917
1942
  }
1918
1943
  handleInfoClick() {
1919
- if (this.variant === 'modal') {
1944
+ if (this.variant === "modal") {
1920
1945
  this.showInfoBox = true;
1921
1946
  }
1922
- if (this.variant === 'box') {
1947
+ if (this.variant === "box" || this.variant === "preview") {
1923
1948
  this.handleModalOpen();
1924
1949
  }
1925
1950
  }
1951
+ renderInput() {
1952
+ const { inputMessage, inputLabel, placeholder, inputStatus, previewInputPlaceholder, } = this.formTexts;
1953
+ if (this.variant === "preview" && !previewInputPlaceholder)
1954
+ return;
1955
+ const message = this.variant === "box"
1956
+ ? inputMessage
1957
+ : this.error
1958
+ ? this.error
1959
+ : inputMessage;
1960
+ return (index.h("z-input", { value: this.inputVal, htmlid: `${this.formid}_input`, label: this.variant === "preview" ? "" : inputLabel, placeholder: this.variant === "preview" ? previewInputPlaceholder : placeholder, htmltitle: placeholder, message: this.variant === "preview" ? "" : message, hasmessage: this.variant !== "preview", status: this.variant === "box" ? null : inputStatus, disabled: !!this.requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) }));
1961
+ }
1962
+ renderButton() {
1963
+ const disabled = (this.variant === "modal" && !this.inputVal) || !!this.requestLoading;
1964
+ return (index.h("z-button", { variant: index$1.ButtonVariantEnum.primary, size: this.getButtonSize(this.variant), square: this.getButtonSquare(this.variant), disabled: disabled || !this.enableButton || this.requestLoading, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, this.renderButtonValue(this.variant, disabled)));
1965
+ }
1966
+ renderButtonValue(variant, disabled = false) {
1967
+ const icon = this.getButtonIcon(variant);
1968
+ const label = this.getButtonLabel(variant);
1969
+ return (index.h("button", { slot: "element", disabled: disabled }, icon ? index.h("z-icon", { name: icon }) : null, label));
1970
+ }
1971
+ renderAdditionalDescription() {
1972
+ const { additionalDescription } = this.formTexts;
1973
+ if (!additionalDescription)
1974
+ return;
1975
+ return index.h("z-body", { level: 3 }, additionalDescription);
1976
+ }
1977
+ renderInfoLink() {
1978
+ const { linkLabel } = this.formTexts;
1979
+ if (this.variant === "preview")
1980
+ return;
1981
+ return (index.h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel));
1982
+ }
1926
1983
  renderInfoBox() {
1927
1984
  if (!this.showInfoBox)
1928
1985
  return;
1929
1986
  const { infoBoxContent, infoBoxIcon } = this.formTexts;
1930
- return (index.h("z-info-box", { boxid: "singleInputFormInfoSection", isclosable: true, onClick: (e) => this.handleInfoBoxClick(e) }, index.h("div", { slot: "content" }, infoBoxIcon && (index.h("span", null, index.h("img", { src: infoBoxIcon, "aria-hidden": true }))), infoBoxContent && index.h("span", { innerHTML: manageMarkupContent(infoBoxContent) }))));
1987
+ return (index.h("z-info-box", { boxid: "singleInputFormInfoSection", isclosable: true, onClick: (e) => this.handleInfoBoxClick(e) }, index.h("div", { slot: "content" }, infoBoxIcon && (index.h("span", null, index.h("img", { src: infoBoxIcon, "aria-hidden": true }))), infoBoxContent && (index.h("span", { innerHTML: manageMarkupContent(infoBoxContent) })))));
1931
1988
  }
1932
1989
  handleInfoBoxClick(e) {
1933
1990
  const cp = e.composedPath();
1934
- if (cp.find((elem) => elem.dataset && elem.dataset.action === 'infoBoxClose')) {
1991
+ if (cp.find((elem) => elem.dataset && elem.dataset.action === "infoBoxClose")) {
1935
1992
  this.showInfoBox = false;
1936
1993
  }
1937
1994
  }
@@ -1942,14 +1999,41 @@ const LicenseActivationForm = class {
1942
1999
  window.location.href = formTexts.supportLink;
1943
2000
  }
1944
2001
  renderErrorSection() {
2002
+ if (this.variant !== "modal" || !this.error)
2003
+ return;
1945
2004
  const { errorButtonLabel, errorSectionMessage } = this.formTexts;
1946
2005
  return (index.h("section", { class: "error-section" }, index.h("span", { class: "heading-01" }, errorSectionMessage), index.h("z-button", { variant: index$1.ButtonVariantEnum.secondary, onClick: this.redirectToSupport }, errorButtonLabel)));
1947
2006
  }
2007
+ getButtonSize(variant) {
2008
+ const { previewButtonSize } = this.formTexts;
2009
+ if (variant === "preview" && previewButtonSize)
2010
+ return previewButtonSize;
2011
+ return "big";
2012
+ }
2013
+ getButtonSquare(variant) {
2014
+ const { previewButtonLabel, previewButtonIcon } = this.formTexts;
2015
+ if (variant === "preview" && previewButtonIcon && !previewButtonLabel)
2016
+ return true;
2017
+ return undefined;
2018
+ }
2019
+ getButtonIcon(variant) {
2020
+ const { buttonIcon, previewButtonIcon } = this.formTexts;
2021
+ if (variant === "preview" && previewButtonIcon)
2022
+ return previewButtonIcon;
2023
+ if (variant !== "preview" && buttonIcon)
2024
+ return buttonIcon;
2025
+ return undefined;
2026
+ }
2027
+ getButtonLabel(variant) {
2028
+ const { buttonLabel, previewButtonLabel } = this.formTexts;
2029
+ if (variant === "preview" && previewButtonLabel)
2030
+ return previewButtonLabel;
2031
+ if (variant !== "preview" && buttonLabel)
2032
+ return buttonLabel;
2033
+ return "";
2034
+ }
1948
2035
  render() {
1949
- const { error, requestLoading, formTexts, formid, variant } = this;
1950
- const { inputMessage, inputLabel, buttonLabel, linkLabel, placeholder, inputStatus, additionalDescription } = formTexts;
1951
- const disabled = variant === 'modal' && !this.inputVal || !!requestLoading;
1952
- return (index.h(index.Host, { variant: variant === 'modal' ? 'modal' : 'box' }, index.h("div", null, additionalDescription && index.h("z-body", { level: 3 }, additionalDescription), index.h("z-input", { value: this.inputVal, htmlid: `${formid}_input`, label: inputLabel, placeholder: placeholder, htmltitle: placeholder, message: variant === 'box' ? inputMessage : (error ? error : inputMessage), status: variant === 'box' ? null : inputStatus, disabled: !!requestLoading, onInputChange: (e) => this.handleFormInputChange(e.detail) }), index.h("z-button", { variant: index$1.ButtonVariantEnum.primary, disabled: disabled || !this.enableButton || requestLoading ? true : false, onClick: () => this.handleSubmitButtonClick(this.inputVal) }, buttonLabel)), index.h("z-link", { icon: "question-mark", onClick: () => this.handleInfoClick() }, linkLabel), index.h("div", null, this.renderInfoBox(), variant === 'modal' && error && this.renderErrorSection())));
2036
+ return (index.h(index.Host, { variant: this.variant }, index.h("div", null, this.renderAdditionalDescription(), this.renderInput(), this.renderButton()), this.renderInfoLink(), index.h("div", null, this.renderInfoBox(), this.renderErrorSection())));
1953
2037
  }
1954
2038
  };
1955
2039
  LicenseActivationForm.style = licenseActivationFormCss;
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[1,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
17
+ return index.bootstrapLazy([["z-modal-login.cjs",[[6,"z-modal-login",{"heading":[1],"status":[1025],"message":[1025],"externalProviderCheck":[32]}]]],["z-combobox.cjs",[[1,"z-combobox",{"inputid":[1],"items":[1],"label":[1],"hassearch":[4],"searchlabel":[1],"searchplaceholder":[1],"searchtitle":[1],"noresultslabel":[1],"isopen":[1028],"isfixed":[4],"closesearchtext":[1],"hascheckall":[4],"checkalltext":[1],"uncheckalltext":[1],"maxcheckableitems":[2],"searchValue":[32],"selectedCounter":[32],"renderItemsList":[32]},[[0,"inputCheck","inputCheckListener"]]]]],["z-header.cjs",[[1,"z-header",{"intlinkdata":[1],"extlinkdata":[1],"userdata":[1],"ismyz":[4],"logolink":[1],"imagealt":[1],"activeintlinkid":[1],"activesublinkid":[1],"hideloginbutton":[4],"activeMenuItem":[32],"currentMenuItem":[32],"isMobile":[32],"isMenuMobileOpen":[32]},[[9,"resize","handleResize"],[2,"zListItemLinkClick","handleZListItemLinkClick"],[2,"zListItemClick","handleZListItemClick"]]]]],["z-footer.cjs",[[1,"z-footer",{"data":[1],"copyrightuser":[1]}]]],["z-cookiebar.cjs",[[1,"z-cookiebar",{"cookiepolicyurl":[1],"hide":[4],"callback":[16]}]]],["z-pagination-bar.cjs",[[1,"z-pagination-bar",{"pages":[2],"visiblepages":[2],"currentpage":[1026],"startpage":[1026],"historyraw":[1],"listhistoryrow":[1040],"currentPages":[32]}]]],["z-panel-elem.cjs",[[1,"z-panel-elem",{"elemid":[1],"imgurl":[1],"imgalt":[1],"linkicon":[1],"linklabel":[1],"url":[1],"target":[1],"isdisabled":[4],"descr_slot_name":[1]}]]],["z-registro-table-cell.cjs",[[6,"z-registro-table-cell",{"showButton":[4,"show-button"],"isMenuOpened":[32]}]]],["z-user-dropdown.cjs",[[1,"z-user-dropdown",{"logged":[4],"userfullname":[1],"menucontent":[1],"theme":[1],"ismenuopen":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"],[8,"click","handleClickOutside"]]]]],["z-app-switcher.cjs",[[1,"z-app-switcher",{"theme":[1],"isopen":[32]}]]],["z-button-sort.cjs",[[1,"z-button-sort",{"buttonid":[1],"label":[1],"desclabel":[1],"counter":[2],"sortlabelasc":[1],"sortlabeldesc":[1],"isselected":[1028],"sortasc":[1028]}]]],["z-card-alert.cjs",[[1,"z-card-alert",{"iconname":[1],"contenttext":[1],"actiontext":[1],"type":[1]}]]],["z-card-icon.cjs",[[1,"z-card-icon",{"icon":[1],"isdisabled":[4]}]]],["z-heading.cjs",[[1,"z-heading",{"level":[2],"variant":[1],"component":[1]}]]],["z-icon-package.cjs",[[1,"z-icon-package"]]],["z-menu.cjs",[[1,"z-menu",{"active":[516],"floating":[516],"open":[32],"hasHeader":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-menu-section.cjs",[[1,"z-menu-section",{"active":[516],"open":[32],"hasContent":[32]},[[4,"click","handleClick"]]]]],["z-toggle-button.cjs",[[1,"z-toggle-button",{"label":[1],"isdisabled":[4],"avoidclick":[4],"isOpen":[32]}]]],["z-app-header.cjs",[[1,"z-app-header"]]],["z-app-topbar.cjs",[[1,"z-app-topbar",{"theme":[1],"logged":[4],"hashtag":[1],"zLinksValues":[32],"isMobile":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]]]],["z-card.cjs",[[1,"z-card",{"faded":[4],"cardtype":[1],"ispressed":[4],"ishighlighted":[4]}]]],["z-card-body.cjs",[[1,"z-card-body"]]],["z-card-cover.cjs",[[1,"z-card-cover",{"img":[1],"titolo":[1],"faded":[4],"defaultimg":[1]}]]],["z-card-footer.cjs",[[1,"z-card-footer",{"titolo":[1],"autori":[1],"isbn":[1],"faded":[4],"cardtype":[1],"isOpen":[32],"allowTooltipAuthors":[32]},[[0,"toggleClick","handleToggle"]]]]],["z-card-header.cjs",[[1,"z-card-header",{"titolo":[1],"faded":[4],"cardtype":[1],"allowTooltip":[32]}]]],["z-card-list.cjs",[[1,"z-card-list",{"listdata":[1]}]]],["z-chip.cjs",[[1,"z-chip",{"regulartext":[1],"boldtext":[2]}]]],["z-divider.cjs",[[2,"z-divider",{"size":[1],"color":[1],"orientation":[1]}]]],["z-registro-table.cjs",[[4,"z-registro-table",{"bordered":[4],"columnSticky":[4,"column-sticky"],"headerSticky":[4,"header-sticky"]}]]],["z-registro-table-body.cjs",[[6,"z-registro-table-body"]]],["z-registro-table-footer.cjs",[[6,"z-registro-table-footer"]]],["z-registro-table-head.cjs",[[6,"z-registro-table-head"]]],["z-registro-table-header.cjs",[[6,"z-registro-table-header"]]],["z-registro-table-row.cjs",[[6,"z-registro-table-row"]]],["z-registro-table-sticky-footer.cjs",[[6,"z-registro-table-sticky-footer"]]],["z-stepper.cjs",[[1,"z-stepper"]]],["z-stepper-item.cjs",[[1,"z-stepper-item",{"index":[2],"href":[1],"pressed":[4],"disabled":[4]}]]],["z-tooltip.cjs",[[1,"z-tooltip",{"content":[1],"type":[1]}]]],["z-candybar.cjs",[[1,"z-candybar"]]],["z-pagination-page.cjs",[[1,"z-pagination-page",{"pageid":[1],"value":[2],"isselected":[4],"isdisabled":[4],"isvisited":[4]}]]],["license-activation_16.cjs",[[2,"license-activation",{"variant":[1],"modalState":[1025,"modal-state"],"componentid":[1],"inputLabel":[1,"input-label"],"inputMessage":[1,"input-message"],"inputPlaceholder":[1,"input-placeholder"],"additionalDescription":[1,"additional-description"],"buttonLabel":[1,"button-label"],"buttonIcon":[1,"button-icon"],"previewInputPlaceholder":[1,"preview-input-placeholder"],"previewButtonLabel":[1,"preview-button-label"],"previewButtonIcon":[1,"preview-button-icon"],"previewButtonSize":[1,"preview-button-size"],"enableButton":[4,"enable-button"],"forceModal":[4,"force-modal"],"env":[1],"cms":[32],"enableFormSubmitButton":[32],"submitClicked":[32],"isMobile":[32],"initialShowInfoBox":[32],"licenseActivationState":[32]},[[9,"resize","handleResize"],[8,"orientationchange","handleOrientationChange"]]],[1,"license-activation-form",{"direction":[1],"error":[1],"formTexts":[16],"requestLoading":[4,"request-loading"],"initialCode":[1,"initial-code"],"initialShowInfoBox":[4,"initial-show-info-box"],"enableButton":[4,"enable-button"],"activationState":[1,"activation-state"],"formid":[1],"variant":[1],"handleModalOpen":[16],"showInfoBox":[32],"inputVal":[32]}],[6,"license-activation-box",{"error":[16],"code":[1]}],[6,"license-activation-modal",{"modalTitle":[1,"modal-title"],"resetStore":[16]}],[1,"z-info-box",{"boxid":[1],"isclosable":[4]}],[1,"z-body",{"level":[2],"variant":[1],"component":[1]}],[1,"z-modal",{"modalid":[1],"modaltitle":[1],"modalsubtitle":[1]}],[1,"z-typography",{"component":[1],"variant":[1],"level":[1]}],[2,"z-input",{"htmlid":[1],"type":[1],"name":[1],"label":[1],"value":[1025],"disabled":[4],"readonly":[4],"required":[4],"checked":[1028],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"labelafter":[4],"typingtimeout":[2],"items":[1],"autocomplete":[8],"multiple":[4],"hasclearicon":[4],"icon":[1],"isTyping":[32],"textareaWrapperHover":[32],"textareaWrapperFocus":[32],"passwordHidden":[32],"getValue":[64],"setValue":[64],"isChecked":[64]},[[4,"inputCheck","inputCheckListener"]]],[1,"z-select",{"htmlid":[1],"items":[1],"name":[1],"label":[1],"disabled":[4],"readonly":[4],"placeholder":[1],"htmltitle":[1],"status":[1],"hasmessage":[4],"message":[1],"autocomplete":[8],"multiple":[4],"noresultslabel":[1],"isOpen":[32],"selectedItems":[32],"searchString":[32],"getSelectedItems":[64],"getValue":[64],"setValue":[64]}],[1,"z-button",{"htmlid":[1],"name":[1],"disabled":[516],"type":[1],"variant":[513],"icon":[1],"size":[513],"issmall":[516],"square":[516]}],[1,"z-button-filter",{"filtername":[1],"isfixed":[4],"hasicon":[4],"filterid":[1],"issmall":[4]}],[1,"z-input-message",{"message":[1],"status":[1]}],[1,"z-input-label",{"value":[1],"disabled":[4]}],[1,"z-link",{"htmlid":[1],"href":[1],"target":[1],"htmltabindex":[2],"isdisabled":[4],"isactive":[4],"iswhite":[4],"textcolor":[1],"icon":[1],"big":[4]}],[1,"z-icon",{"name":[1],"height":[2],"width":[2],"iconid":[1]}]]],["z-list_2.cjs",[[1,"z-list",{"inputrawdata":[1025],"list":[1040]}],[1,"z-menu-dropdown",{"nomeutente":[1],"menucontent":[1],"buttonid":[1],"ismenuopen":[32]}]]],["z-logo.cjs",[[1,"z-logo",{"width":[2],"height":[2],"imagealt":[1],"link":[1],"targetblank":[4]}]]],["z-footer-link_3.cjs",[[1,"z-footer-section",{"name":[1],"isOpen":[32]}],[1,"z-footer-link",{"href":[1]}],[1,"z-footer-social",{"icon":[1],"href":[1],"description":[1]}]]],["z-list-item.cjs",[[1,"z-list-item",{"text":[1],"link":[1],"linktarget":[1],"icon":[1],"listitemid":[1],"action":[1],"underlined":[4]}]]]], options);
18
18
  });
19
19
  };
20
20