You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

company-f28686d3.js 2.7 KiB

9 月之前
1
  1. import{j as b,k as t,s as h,c as f,a,m as v,v as u,i as g,t as y,d as x,n as w,p as k,q as I,e as S,o as j,_ as V}from"./index-b3134325.js";import{c as B,p as C}from"./api-04371953.js";const _=s=>(k("data-v-e339b7da"),s=s(),I(),s),N={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},E=x('<header class="app-header" data-v-e339b7da><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0" data-v-e339b7da><ul class="navbar-nav" data-v-e339b7da><li class="nav-item d-block d-lg-none" data-v-e339b7da><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)" data-v-e339b7da><i class="ti ti-menu-2" data-v-e339b7da></i></a></li><li class="nav-item d-none d-lg-block" data-v-e339b7da><a href="index.html" class="text-nowrap nav-link" data-v-e339b7da><img src="'+S+'" class="light-logo" width="180" alt="" data-v-e339b7da></a></li></ul></nav></header>',1),T={class:"body-wrapper overflow-hidden"},D={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},M={class:"d-flex align-items-center justify-content-center w-100"},U={class:"row justify-content-center w-100"},$={class:"col-md-8 col-lg-6 col-xxl-3"},q={class:"card mb-0"},z={class:"card-body"},A=_(()=>a("h1",{class:"display-6 fs-7 mb-4"},"Enter your company name",-1)),F={class:"mb-3"},H={class:"mb-4"},L=["disabled"],P=_(()=>a("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1)),G=b({__name:"company",setup(s){const d=t(),n=t(),l=t(!1),i=t("Continue"),r=t(),p=t();h(()=>{B()});async function m(){try{l.value=!0,i.value="loading...",(await C)("/company/",{name:d.value,slogon:n.value}).then(e=>{console.log(e.data),r.value=e.data.id,p.value=e.data.id,e.data&&w.push(`site/create/${r.value}/${p.value}/palette`)}).catch(e=>{l.value=!1,window.alert(e.response.data),i.value="Failed. Try Again."})}catch(e){console.error(e)}}return(e,o)=>(j(),f("div",N,[E,a("div",T,[a("div",D,[a("div",M,[a("div",U,[a("div",$,[a("div",q,[a("div",z,[a("div",null,[A,a("div",F,[v(a("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>d.value=c),type:"text",class:"form-control",id:"exampleInputEmail1","aria-describedby":"emailHelp",placeholder:"Brand Name"},null,512),[[u,d.value]])]),a("div",H,[v(a("input",{"onUpdate:modelValue":o[1]||(o[1]=c=>n.value=c),type:"text",class:"form-control",id:"exampleInputPassword1",placeholder:"Slogan"},null,512),[[u,n.value]])]),a("button",{onClick:m,class:"btn btn-success w-100 py-8 mb-4 rounded-2",disabled:l.value},[g(y(i.value)+" ",1),P],8,L)])])])])])])])])]))}});const O=V(G,[["__scopeId","data-v-e339b7da"]]);export{O as default};