System.register(["./p-641f968d.system.js","./p-1a673057.system.js","./p-58dbdf63.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.h},function(e){n=e.c},function(e){i=e.E}],execute:function(){e("Q",o);var r={DialogContainer:{maxWidth:"390px !important"},Container:{width:"100%",display:"flex",flexDirection:"row",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",gap:"var(--sl-spacing-medium)",flexDirection:"column",alignItems:"center"},ButtonContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},FooterContainer:{textAlign:"left",display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)"},CodeContainer:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center"},Code:{width:"100%",height:"100%",maxWidth:"335px"},LoadingSkeleton:{"&::part(indicator)":{borderRadius:"0px !important"}}};var a=n(r);var s=a.toString();var l="\n  :host{\n    display: flex;\n    width: 100%;\n  }\n  @media (max-width: 499px) {\n    :host{\n      display: block;\n    }\n\n  }";function o(e){var n=e.error,r=e.qrLink,o=e.titleText,d=e.downloadCodeText,p=e.printCodeText,c=e.errorHeaderText,u=e.errorDescriptionText,x=e.createDownloadable,m=e.createPrintable,g=e.hideTitle,f=e.alignment,h=e.loading;var y=f==="left"?"flex-start":f==="right"?"flex-end":"center";var v=function(e,n,r){if(e){return t(i,{loadingErrorAlertDescription:c,loadingErrorAlertHeader:u})}else if(r){return t("sqm-skeleton",{height:"100px",width:"100px"})}else if(n){return t("svg",{width:"100",height:"100"},t("image",{href:n,width:"100",height:"100"}))}return null};var C=v(n,r,h);return t("div",{class:a.classes.Container,style:{justifyContent:y},part:"sqm-base"},t("style",null,l),t("style",null,s),t("div",{class:a.classes.TextContainer,style:{alignItems:y}},!g&&t("span",{part:"sqm-title"},o),C,t("div",{class:a.classes.ButtonContainer},t("sl-button",{loading:h,size:"small",exportparts:"base: primarybutton-base",type:"primary",onClick:x},d),t("sl-button",{loading:h,size:"small",exportparts:"base: secondarybutton-base",type:"text",onClick:m},p))))}}}}));