PageSourceSearch

https://admin.servebolt.com/assets/InstallationPage-C-4Voy7g.js

js servebolt.com collected 2026-09-24 19:45:09 UTC 3,345 bytes, 2 lines download raw bytes

1import{s as k,b as N}from"./vendor-servebolt-BwnDPTSW.js";import{u as F}from"./vendor-i18n-BAJQGTf1.js";import{d as R,f as B,h as G,p as C,G as i,k as _,y as $,u as l,F as z,L as W,av as M,r as u,c as O,B as U,C as j,x as q,m}from"./vendor-D7HY6vXs.js";import{n as H}from"./index-DAxIWTJb.js";import{_ as J}from"./BackgroundMagicItem.vue_vue_type_script_setup_true_lang-PJusYXdV.js";import{E as K}from"./index-jntq2tp5.js";import{u as Q}from"./useApiErrorHandler-BPESgDW7.js";import"./vendor-auth0-B88dyU-W.js";import"./vendor-toast-BA6wVAZy.js";import"./copyToClipboard-BA9rUqv9.js";import"./gray-circle-BH2YNXh6.js";const X={class:"grid md:grid-cols-9"},Y={class:"col-span-4 md:col-span-8 mb-[1rem] md:mb-[1.5rem]"},Z={class:"mb-[50px] md:mb-[86px] flex flex-col"},ee={class:"flex-1 flex items-center justify-start mr-[24px] flex-row"},v="Placing the certificate order",f="Validating the certificate",p="Issuing the certificate",x="The certificate is active",te=5e3,pe=R({__name:"InstallationPage",emits:["next-step"],setup(ae,{emit:h}){const{t:E}=F({useScope:"global"});Q();const c=M(),T=h,A=c.state.prepareDomainWizardInfo.certificateInfo.id,b=c.state.prepareDomainWizardInfo,r=u([{name:v,loading:!1,error:"",isCreated:!0},{name:f,loading:!0,error:"",isCreated:!1},{name:p,loading:!1,error:"",isCreated:!1},{name:x,loading:!1,error:"",isCreated:!1}]),g=u(!1),o=u(null),y=O(()=>g.value);B(()=>{P(A)}),G(()=>{n()});function S(){T("next-step","creation_complete")}function P(e){o.value=setInterval(()=>{D(e)},te)}function n(){o.value!==null&&(clearInterval(o.value),o.value=null)}async function D(e){try{const t=await K.fetchCertificateById(e),a=t.data?.attributes?.status,s=t.data?.attributes?.lastError??null;if(t.data&&await c.dispatch("addPrepareDomainWizardInfo",{certificateInfo:t.data}),s||V(a)){const d=s||`Certificate installation failed (${a}).`;I(p,d),n();return}w(a),a==="ACTIVE"&&(g.value=!0,n())}catch(t){L(t),n()}}function V(e){return e.startsWith("FAILED_")}function w(e){r.value=r.value.map(t=>{switch(t.name){case v:return{...t,loading:!1,error:"",isCreated:!0};case f:return{...t,loading:e==="DRAFT",error:"",isCreated:e!=="DRAFT"};case p:return{...t,loading:e!=="ACTIVE"&&e!=="DRAFT",error:"",isCreated:e==="ACTIVE"};case x:return{...t,loading:!1,error:"",isCreated:e==="ACTIVE"};default:return t}})}function L(e){const t=H(e?.response?.data?.errors&&e.response.data.errors[0]?.detail||e?.response),s=r.value.find(d=>d.loading)?.name??f;I(s,t)}function I(e,t){r.value=r.value.map(a=>a.name===e?{...a,loading:!1,error:t,isCreated:!1}:a)}return(e,t)=>(m(),C("div",X,[i("div",Y,[i("div",Z,[_(l(k),null,{default:$(()=>[U(j(l(E)("installation")),1)]),_:1})]),t[0]||(t[0]=i("p",{class:"text-p mb-[1rem] md:mb-[1.5rem]"}," The hardest part is out of the way! The domain is being added to your site. It should only take a few seconds, allowing you to get back to your work without any interruptions. ",-1)),(m(!0),C(z,null,W(r.value,(a,s)=>(m(),q(J,{key:s,class:"mb-[10px]",text:a.name,error:a.error,isLoading:a.loading,isCreated:a.isCreated,domain:l(b)},null,8,["text","error","isLoading","isCreated","domain"]))),128)),i("div",ee,[_(l(N),{size:"lg",type:"outline",disabled:!y.value,text:e.$t("continue"),onClick:S},null,8,["disabled","text"])])])]))}});export{pe as default};
2//# sourceMappingURL=InstallationPage-C-4Voy7g.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.