|
|
|
|
|
import{j as k,k as t,z as $,s as C,r as S,c as h,a,i as r,A as c,t as l,b as I,w as L,y as b,F as j,d as z,p as B,q as N,e as R,o as p,_ as V}from"./index-b3134325.js";import{c as F,g as f}from"./api-04371953.js";const n=i=>(B("data-v-b8d70297"),i=i(),N(),i),D={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},A=z('<header class="app-header" data-v-b8d70297><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0" data-v-b8d70297><ul class="navbar-nav" data-v-b8d70297><li class="nav-item d-block d-lg-none" data-v-b8d70297><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)" data-v-b8d70297><i class="ti ti-menu-2" data-v-b8d70297></i></a></li><li class="nav-item d-none d-lg-block" data-v-b8d70297><a href="index.html" class="text-nowrap nav-link" data-v-b8d70297><img src="'+R+'" class="light-logo" width="180" alt="" data-v-b8d70297></a></li></ul></nav></header>',1),E={class:"body-wrapper overflow-hidden"},q={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"},P={class:"row justify-content-center w-100"},T={key:0,class:"col-md-8 col-lg-8 col-xxl-8"},W={class:"card mb-0"},Y={class:"card-body"},G=n(()=>a("h1",{class:"display-6 fs-7 mb-4 text-center"}," Your Branding Logo and Color ",-1)),H={class:"container"},J={class:"row"},K={class:"col-12"},O=["src"],Q=["href"],U=n(()=>a("i",{class:"ti ti-download fs-4 me-2"},null,-1)),X={class:"col-12 mt-4"},Z={class:"container"},aa={class:"row"},ea={class:"col-4 col-lg-2 text-center"},oa={class:"col-4 col-lg-2 text-center"},sa={class:"col-4 col-lg-2 text-center"},ta={class:"col-4 col-lg-2 text-center"},la={class:"col-4 col-lg-2 text-center"},ca={class:"col-4 col-lg-2 text-center"},na={class:"col-12"},ia=["src"],da={class:"col-12"},ra=["src"],_a={class:"col-12"},va=["src"],ua=n(()=>a("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1)),ha=n(()=>a("div",{class:"track"},[a("div",{class:"bar"})],-1)),pa=n(()=>a("h3",{style:{"font-size":"1rem","text-align":"center"}},[r("Please Wait."),a("br"),r(" Drawise is creating your Brand and website with AI. it may takes few minutes.")],-1)),ga=k({__name:"branding",setup(i){const o=t(!1),g=t("Continue"),w=t(),y=$().params.id,m=t(),e=t([]),_=t([]),v=t();C(()=>{F(),x()});async function x(){o.value=!0;try{(await f)(`/company/${y}/`).then(s=>{console.log(s.data),v.value=s.data.logo_path,w.value=s.data.site_name,m.value=s.data.color_swatch,f("/ColorSwatch/").then(u=>{console.log(u.data),u.data.forEach(d=>{d.id==m.value&&(e.value=d),o.value=!1})}).catch(()=>{o.value=!1,g.value="Failed. Refresh the page"})}).catch(()=>{o.value=!1,g.value="Failed. Refresh the page"})}catch(s){console.error(s)}}return(s,u)=>{const d=S("RouterLink");return p(),h("div",D,[A,a("div",E,[a("div",q,[a("div",M,[a("div",P,[o.value?b("",!0):(p(),h("div",T,[a("div",W,[a("div",Y,[G,a("div",H,[a("div",J,[a("div",K,[a("img",{src:`${v.value}`,alt:"",width:"200"},null,8,O),a("a",{href:`${v.value}`,target:"_blank",download:"",class:"btn"},[U,r(" Download Logo")],8,Q)]),a("div",X,[a("div",Z,[a("div",aa,[a("div",ea,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color1}`)},null,4),a("p",null,l(e.value.color1),1)]),a("div",oa,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color2}`)},null,4),a("p",null,l(e.value.color2),1)]),a("div",sa,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color3}`)},null,4),a("p",null,l(e.value.color3),1)]),a("div",ta,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color4}`)},null,4),a("p",null,l(e.value.color4),1)]),a("div",la,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color5}`)},null,4),a("p",null,l(e.value.color5),1)]),a("div",ca,[a("div",{class:"color-item",style:c(`background-color: ${e.value.color6}`)},null,4),a("p",null,l(e.value.color6),1)])])])]),a("div",na,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${_.value[0]}`,alt:""},null,8,ia)]),a("div",da,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${_.value[1]}`,alt:""},null,8,ra)]),a("div",_a,[a("img",{class:"rounded drawise-logo-image mb-4",src:`https://api.drawise.net/${_.value[2]}`,alt:""},null,8,va)])])]),I(d,{to:{name:"pricing"},disabled:o.value,class:"btn btn-success w-100 py-8 mb-4 rounded-2"},{default:L(()=>[r(l(o.value?"Loading ... ":"Continue")+" ",1),ua]),_:1},8,["disabled"])])])])),o.value?(p(),h(j,{key:1},[ha,pa],64)):b("",!0)])])])])])}}});const wa=V(ga,[["__scopeId","data-v-b8d70297"]]);export{wa as default}; |