${this.tokens?this.tokens.sort((e,t)=>(e.isRevoked.toString()+e.type).localeCompare(t.isRevoked.toString()+t.type)).map((e,t)=>x`
${e.type[0].toUpperCase()}${e.type.slice(1)}-Token:
${"service"===e.type?this.displayServiceToken?e.token:e.token.replace(/./g,"*"):e.token}
${e.isRevoked?x``:x`
${config.isMobile?x`
this.copyToken(e.token)}>
`:x`
${"service"===e.type?x`
this.displayServiceToken=!this.displayServiceToken}>
`:x``}
this.copyToken(e.token)}>
`}
this.revokeToken(e.jti)}>
`}
${t
`:""}
`):x`
Loading Tokens ...
`}
`}render(){return x`
The service token should only get used on server side to process orders. With it, billable orders can be started. To protect your account never embed the service token into a web-site!
`}render(){return window.scrollTo({top:0,behavior:"smooth"}),x`
Shop-Token: The shop token allows loading of Templates and Snippets, upload images and saving / loading the current layout.
Service-Token: The secret service token has access to the production API and can render PDFs or PNGs. It will be shown only on accounts with administrative access.
${this.debug?x`
Invite others to join Printess, and for each one who subscribes Printess we will give you both
500 MB of bonus space. If you need even more space,
location.hash="subscription"} class="link-text">upgrade your account.
Irreversible and destructive actions
${this.getDeleteAccountContent()}
`:""}
`}};WcAccountPage=__decorate$2l([e$4("wc-account-page")],WcAccountPage);const templateStyles=i$4`
.template-item {
width: 270px;
display: flex;
border-radius: 5px;
padding: 20px;
font-family: var(--printess-text-font);
color: #555555;
}
.pink { background-color: var(--printess-lightpink); }
.green { background-color: var(--printess-lightgreen); }
.blue { background-color: var(--printess-lightblue); }
.magenta { background-color: var(--printess-lightmagenta); }
.template-img {
display: flex;
width: 100px;
padding-right:20px;
justify-content: center;
align-items: center;
}
img {
border-radius: 5px;
width: 100px;
height: 80px;
object-fit: cover;
}
.template-txt {
justify-content: center;
margin: auto;
width: 180px;
}
.template-title {
margin-top: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
a {
text-decoration: none;
color: var(--printess-text-color);
}
.template-info {
margin-bottom: 0;
font-size: 12px;
line-height: 20px;
}
`;var __decorate$2k=function(e,t,o,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(s=(a<3?i(s):a>3?i(t,o,s):i(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s};let WcTemplatePreview=class extends s$1{constructor(e,t){super(),this.color="",this.color=t,this.template=e}static get styles(){return[templateStyles]}render(){return x`
${this.color&&this.template?x`