import{p as e,H as o,h as s,d as a,t as r}from"./p-yZBlG3YQ.js";import{d as i}from"./p-DGOUAxVN.js";import{d as c}from"./p-DQTI8vRX.js";const d=()=>`verdocs-organization-card{font-family:"Inter", "Barlow", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:#ffffff;border-radius:8px;padding:7px 15px}verdocs-organization-card .icon{-ms-flex:0;flex:0;height:24px;width:24px;margin:0 14px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;height:24px;width:24px}verdocs-organization-card .content{margin-top:2px}.verdocs-org-card-popup{font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border-radius:10px;width:326px;padding:20px 40px 0 40px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border:1px solid #cccccc}.verdocs-org-card-popup .popup-header-with-logo{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-header-with-logo img{max-width:300px;max-height:50px}.verdocs-org-card-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;text-transform:uppercase}.verdocs-org-card-popup .status{-webkit-transform:scale(1.5);transform:scale(1.5);width:24px;height:24px}.verdocs-org-card-popup .field{margin:0 0 20px 0}.verdocs-org-card-popup .field strong{color:#7b7b9a;display:block;margin:0 0 5px 0}.verdocs-org-card-popup .field a{color:#654dcb;text-transform:uppercase}`;const t='<svg xmlns="http://www.w3.org/2000/svg"  focusable="false" aria-hidden="true" height="24px" viewBox="0 0 24 24" width="24px"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></svg>';const n=e(class e extends o{constructor(e){super();if(e!==false){this.__registerHost()}this.hovered=false}onMouseOver(){this.hovered=true}onMouseOut(){this.hovered=false}render(){var e,o,r,c,d,n;console.log("Rendering org card",this.organization.thumbnail_url,this.organization);const p=t;const l=`verdocs-org-card-${this.organization.id}`;return s(a,{key:"3e5d08d09c6545ae38463ad7479c50b4f1fc25e8",id:l},this.organization.thumbnail_url?s("img",{class:"icon",src:this.organization.thumbnail_url,alt:"Logo"}):s("span",{class:"icon",innerHTML:p}),s("span",{key:"42299bf2a4a95d3fa2c2479e32971c23ede04e74",class:"content"},(e=this.organization)===null||e===void 0?void 0:e.name),s("verdocs-portal",{key:"1bf6d6a5783b9e84b037e9a56e92fb54f7b2aab0",anchor:l},s("div",{key:"b620dc5e771ce1abed3a16f151a8e9dba2fcab48",class:"verdocs-org-card-popup",style:{display:this.hovered?"block":"none"}},this.organization.full_logo_url?s("div",{class:"popup-header-with-logo"},s("img",{src:this.organization.full_logo_url,alt:"Logo"}),s("div",{class:"title"},(o=this.organization)===null||o===void 0?void 0:o.name)):s("div",{class:"popup-header"},s("span",{class:"status"},s("span",{class:"icon",innerHTML:p})),s("span",{class:"title"},(r=this.organization)===null||r===void 0?void 0:r.name)),s("div",{key:"ea07e279c9d5ed5f5c494f35e3cc7523457fdd54",class:"popup-body"},s("div",{key:"8ed9b98e1de7680aa9213c6349b61f8bbd81a4bc",class:"field"},s("strong",{key:"c6d87a6458cc1fee645c8818f5fa21fd55756b9f"},"Joined"),i.format(new Date(((c=this.organization)===null||c===void 0?void 0:c.created_at)||undefined),"LLL d, Y")),this.organization.url&&s("div",{key:"440c403974518618d1b0a033437e85127e9f6397",class:"field"},s("strong",{key:"1e2a9e37c34df84332b6bf786eba032c83b6aa03"},"Website"),s("a",{key:"809724ceb9a2cd0145334ae93d9576c376b91279",href:(d=this.organization)===null||d===void 0?void 0:d.url,target:"_blank",rel:"nofollow"},(n=this.organization)===null||n===void 0?void 0:n.url))))))}static get style(){return d()}},[0,"verdocs-organization-card",{organization:[16],hovered:[32]},[[1,"mouseover","onMouseOver"],[1,"mouseout","onMouseOut"]]]);function p(){if(typeof customElements==="undefined"){return}const e=["verdocs-organization-card","verdocs-portal"];e.forEach((e=>{switch(e){case"verdocs-organization-card":if(!customElements.get(r(e))){customElements.define(r(e),n)}break;case"verdocs-portal":if(!customElements.get(r(e))){c()}break}}))}const l=n;const f=p;export{l as VerdocsOrganizationCard,f as defineCustomElement};
//# sourceMappingURL=verdocs-organization-card.js.map