import{a as t}from"./p-d6eb762b.js";import{C as r}from"./p-11d0e255.js";import"./p-112455b1.js";import"./p-1ae2b158.js";import"./p-be8a42cb.js";import"./p-a96ec623.js";class a{constructor(t){this.connection=t}async create(t){return await this.connection.post("card",t)}async update(t,a){return await(r.Creatable.is(t)?this.connection.put(`card/${a}`,t):this.connection.patch(`card/${a}`,t))}async get(t){return await this.connection.get(`card/${t}`)}static open(r,s){const e=t.open(r,s);return e&&new a(e)}}export{a as Card}