PageSourceSearch

https://admin.servebolt.com/assets/DomainPage-Ch_ouGet.js

js servebolt.com collected 2026-10-02 05:59:50 UTC 3,601 bytes, 2 lines download raw bytes

1import{d as V,f as P,p as d,G as t,k as n,y as u,u as a,af as C,I as D,F as E,L as I,ar as T,av as j,P as A,r as c,B as p,C as f,m as w}from"./vendor-D7HY6vXs.js";/* empty css                              */import{c as h,r as B,u as F}from"./index-DBE2nJWm.js";import{s as M,l as R,c as L,j as O,e as U,b as W}from"./vendor-servebolt-BwnDPTSW.js";import{E as q}from"./index-Dx3_aswN.js";import{O as G}from"./psl-CKj951f_.js";import{_ as x}from"./index-DL09eCpY.js";import"./vendor-i18n-BAJQGTf1.js";import"./vendor-auth0-B88dyU-W.js";import"./vendor-toast-BA6wVAZy.js";const K={class:"grid md:grid-cols-9"},H={class:"md:col-start-1 md:col-end-9"},J={class:"mb-[50px] md:mb-[86px] flex flex-col"},Q={class:"mt-2 pt-5 w-full"},X={class:"base-border px-[1rem] md:px-[1.5rem] py-[1.5rem] md:py-[2rem] mb-[40px]"},Y={class:"mb-[48px]"},Z={class:"flex-1 w-full flex flex-col md:max-w-[70%] mb-[1.3rem]"},ee={class:"error-msg"},te={class:"w-fit"},se={class:"flex-1 flex items-center mr-[24px] flex-row"},ae={class:"flex gap-[1rem] items-center"},we=V({__name:"DomainPage",emits:["next-step"],setup(oe,{emit:y}){const $=T(),m=j(),g=y,i=A({name:c("")}),l=c(!0),v=c(""),_=m.state.accessTokenObject?.isServeboltAdmin||m.state.accessTokenObject?.isServeboltStaff,k=s=>{if(!s)return!0;const e=x(s).PC;return/^(?:([a-z0-9])(?:[-a-z0-9]{0,62})\.)+(?:[a-z0-9])(?:[-a-z0-9]{1,62})$/.test(e)},z={name:{namRegexFormat:h.withMessage("Please enter a valid domain name.",k),required:h.withMessage("The field cannot be empty.",B)}},r=F(z,i,{$lazy:!0});P(N);async function N(){const s=await new q().get(Number($.params.envId),_);v.value=s.name()||""}function b(){i.name&&m.dispatch("addPrepareDomainWizardInfo",{name:x(i.name).PC,www:l.value&&S(i.name),environmentName:v.value}),g("next-step","preparations_needed")}function S(s){const e=G(s);return typeof e=="object"&&"domain"in e?e.domain===s:!1}return(s,e)=>(w(),d("div",K,[t("div",H,[t("div",J,[n(a(M),{class:"md:mt-0"},{default:u(()=>[p(f(s.$t("addNewDomain")),1)]),_:1})]),t("div",Q,[t("form",{onSubmit:D(b,["prevent"]),onKeyup:C(b,["enter"])},[t("div",X,[t("div",Y,[n(a(R),null,{default:u(()=>[...e[2]||(e[2]=[p("What is your domain (URL)?",-1)])]),_:1})]),e[3]||(e[3]=t("p",{class:"text-16 w-full md:w-[80%]"},' Enter the domain name you wish to set up in the field provided below. We will guide you through the necessary steps. If you are setting up an apex domain, we will automatically add the "www" subdomain. However, if you prefer not to do this, you can disable this option below. ',-1)),t("div",Z,[n(a(L),{sid:"domain",modelValue:a(r).name.$model,"onUpdate:modelValue":e[0]||(e[0]=o=>a(r).name.$model=o),invalid:a(r).name.$invalid,placeholder:s.$t("domain"),label:s.$t("domain")},null,8,["modelValue","invalid","placeholder","label"]),(w(!0),d(E,null,I(a(r).name.$errors,o=>(w(),d("div",{class:"input-errors mx-2",key:o.$uid},[t("div",ee,f(o.$message),1)]))),128))]),e[4]||(e[4]=t("p",{class:"text-16 mb-[1.5rem]"},'Do you want us to automatically add "www" when eligible?',-1)),e[5]||(e[5]=t("p",{class:"font-bold"},"Automatically add www when eligible",-1)),t("div",te,[n(a(O),{class:"mb-[1rem]",checked:l.value,"onUpdate:checked":e[1]||(e[1]=o=>l.value=o)},null,8,["checked"])]),n(a(U),{href:"https://servebolt.com/help/environment/connect-domains-to-a-site/"},{default:u(()=>[p(f(s.$t("moreInfo")),1)]),_:1})]),t("div",se,[t("div",ae,[n(a(W),{size:"lg",type:"primary",btnType:"submit",disabled:a(r).$invalid||!i.name,text:s.$t("next")},null,8,["disabled","text"])])])],32)])])]))}});export{we as default};
2//# sourceMappingURL=DomainPage-Ch_ouGet.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.