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.

logo-95cabe3d.js 2.8 KiB

9 months ago
1
  1. import{j as x,k as t,z as w,C as k,s as S,c as d,a,F as _,u as C,i as j,t as I,d as z,p as L,q as N,e as B,o as r,_ as F}from"./index-b3134325.js";import{a as V}from"./api-04371953.js";const p=o=>(L("data-v-07699b78"),o=o(),N(),o),P={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},R=z('<header class="app-header" data-v-07699b78><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0" data-v-07699b78><ul class="navbar-nav" data-v-07699b78><li class="nav-item d-block d-lg-none" data-v-07699b78><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)" data-v-07699b78><i class="ti ti-menu-2" data-v-07699b78></i></a></li><li class="nav-item d-none d-lg-block" data-v-07699b78><a href="index.html" class="text-nowrap nav-link" data-v-07699b78><img src="'+B+'" class="light-logo" width="180" alt="" data-v-07699b78></a></li></ul></nav></header>',1),T={class:"body-wrapper overflow-hidden"},$={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},q={class:"d-flex align-items-center justify-content-center w-100"},A={class:"row justify-content-center w-100"},D={class:"col-md-8 col-lg-8 col-xxl-8"},E={class:"card mb-0"},J={class:"card-body"},M=p(()=>a("h1",{class:"display-6 fs-7 mb-4 text-center"}," Pick a logo to customize ",-1)),O={class:"col-12 pb-5 text-center"},G=["onChange","id"],H=["for"],K=["src"],Q=["disabled"],U=p(()=>a("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1)),W=x({__name:"logo",setup(o){const l=t([]),s=t(!1),n=t("Continue"),i=t(),h=w(),b=k(),g=h.params.company,u=t(!1);S(()=>{l.value=JSON.parse(localStorage.getItem("logos")),console.log(l.value),f()});async function f(){}function m(e){i.value=e,i.value&&(u.value=!0)}const y=async()=>{s.value=!0,n.value="loading",(await V)("/company/SelectLogo/",{id:g,logoPath:i.value}).then(e=>{e.data&&(console.log(e.data),b.push("chooseLayout"),s.value=!1)}).catch(e=>{window.alert(e.response.data),s.value=!1,n.value="Failed. Try Again"}),console.log("alert")};return(e,X)=>(r(),d("div",P,[R,a("div",T,[a("div",$,[a("div",q,[a("div",A,[a("div",D,[a("div",E,[a("div",J,[a("div",null,[M,a("div",O,[(r(!0),d(_,null,C(l.value,(v,c)=>(r(),d(_,{key:c},[a("input",{class:"checkbox-tools",type:"radio",name:"tools",onChange:Y=>m(v),id:"logo-"+c},null,40,G),a("label",{class:"for-checkbox-tools",for:"logo-"+c},[a("img",{src:`${v}`,alt:"",style:{"max-width":"100px"}},null,8,K)],8,H)],64))),128))]),a("button",{onClick:y,disabled:s.value||!u.value,class:"btn btn-success w-100 py-8 mb-4 rounded-2",style:{position:"fixed",left:"0",bottom:"1vh"}},[j(I(n.value)+" ",1),U],8,Q)])])])])])])])])]))}});const ea=F(W,[["__scopeId","data-v-07699b78"]]);export{ea as default};