import{h as t}from"./p-083180bf.js";import{c as e}from"./p-cef45012.js";import{E as i}from"./p-044a76f1.js";const n=e({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"}}}),a=n.toString();function r({error:e,qrLink:r,titleText:l,downloadCodeText:o,printCodeText:s,errorHeaderText:d,errorDescriptionText:p,createDownloadable:m,createPrintable:x,hideTitle:c,alignment:g,loading:f}){const h="left"===g?"flex-start":"right"===g?"flex-end":"center",u=((e,n,a)=>e?t(i,{loadingErrorAlertDescription:d,loadingErrorAlertHeader:p}):a?t("sqm-skeleton",{height:"100px",width:"100px"}):n?t("svg",{width:"100",height:"100"},t("image",{href:n,width:"100",height:"100"})):null)(e,r,f);return t("div",{class:n.classes.Container,style:{justifyContent:h},part:"sqm-base"},t("style",null,"\n  :host{\n    display: flex;\n    width: 100%;\n  }\n  @media (max-width: 499px) {\n    :host{\n      display: block;\n    }\n\n  }"),t("style",null,a),t("div",{class:n.classes.TextContainer,style:{alignItems:h}},!c&&t("span",{part:"sqm-title"},l),u,t("div",{class:n.classes.ButtonContainer},t("sl-button",{loading:f,size:"small",exportparts:"base: primarybutton-base",type:"primary",onClick:m},o),t("sl-button",{loading:f,size:"small",exportparts:"base: secondarybutton-base",type:"text",onClick:x},s))))}export{r as Q}