import{_ as g,i as y,c as a,o as c,F as x,r as f,b as s,a as _,t as n,j as r,n as h}from"./main-D6qyxymd.js";const D={props:{settings:{type:Object,required:!0}},computed:{isMultiEnv(){var e;return!!((e=this.settings.publicData)!=null&&e.environments)},activeEnvironments(){var i,d,m;if(!this.isMultiEnv)return{};const e={},t=this.settings.publicData.environments;return(i=t.production)!=null&&i.projectUrl&&(e.production=t.production),(d=t.staging)!=null&&d.projectUrl&&(e.staging=t.staging),(m=t.editor)!=null&&m.projectUrl&&(e.editor=t.editor),e}},methods:{getEnvLabel(e){return{production:"Production",staging:"Staging",editor:"Editor"}[e]||e}}},k={key:0},E={class:"label-sm content-secondary mb-1"},j={class:"flex items-center body-2 mb-1"},S={class:"text-ellipsis"},K={key:0,class:"flex items-center body-2 mb-1"},U={class:"text-ellipsis"},w={key:1,class:"flex items-center body-2 mb-1"},I={class:"text-ellipsis"},B={key:1},C={class:"flex items-center body-2 mb-2"},L={class:"text-ellipsis"},M={key:0,class:"flex items-center body-2 mb-2"},P={class:"text-ellipsis"},V={class:"flex items-center body-2 mb-2"},F={class:"text-ellipsis"},N={class:"flex items-center body-2"};function q(e,t,i,d,m,u){var b,v;const o=y("wwEditorIcon");return u.isMultiEnv?(c(),a("div",k,[(c(!0),a(x,null,f(u.activeEnvironments,(l,p)=>(c(),a("div",{key:p,class:"mb-3"},[s("div",E,n(u.getEnvLabel(p)),1),s("div",j,[r(o,{name:"database",class:"mr-2",small:""}),s("div",S,n(l.projectUrl),1)]),l.branchSlug?(c(),a("div",K,[r(o,{name:"16/branch",class:"mr-2",small:""}),s("div",U,n(l.branchSlug),1)])):_("",!0),l.customDomain?(c(),a("div",w,[r(o,{name:"globe",class:"mr-2",small:""}),s("div",I,n(l.customDomain),1)])):_("",!0)]))),128))])):(c(),a("div",B,[s("div",C,[r(o,{name:"database",class:"mr-2"}),t[0]||(t[0]=s("div",{class:"mr-2 content-secondary"},"project",-1)),s("div",L,n(i.settings.publicData.projectUrl),1)]),i.settings.publicData.customDomain?(c(),a("div",M,[r(o,{name:"globe",class:"mr-2"}),t[1]||(t[1]=s("div",{class:"mr-2 content-secondary"},"custom domain",-1)),s("div",P,n(i.settings.publicData.customDomain),1)])):_("",!0),s("div",V,[r(o,{name:"key",class:"mr-2"}),t[2]||(t[2]=s("div",{class:"mr-2 content-secondary"},"Public API Key",-1)),s("div",F,n(i.settings.publicData.apiKey),1)]),s("div",N,[r(o,{name:"key",class:"mr-2"}),t[3]||(t[3]=s("div",{class:"mr-2 content-secondary"},"Service Role Key",-1)),s("div",{class:h(["text-ellipsis",{"text-dark-400":!i.settings.privateData.apiKey}])},n(((v=(b=i.settings.privateData)==null?void 0:b.apiKey)==null?void 0:v.replace(/./g,"*"))||"No service role key provided"),3)])]))}const A=g(D,[["render",q],["__scopeId","data-v-67ca0d6d"]]);export{A as default};
