| Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/ |
| Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/OrganizationSelect-fc4f4a7f.js |
import{T as h,c as s,a as l,t as i,F as g,e as m,o as n,d as v}from"./app-f1493ab2.js";const f={class:"flex h-screen w-full tracking-[0.3px] bg-gray-300/10"},w={class:"min-h-screen flex flex-col w-full min-w-0 items-center justify-center space-x-4"},x={class:"bg-white rounded-xl p-5 border"},_={class:"font-regular text-xl mb-4 text-center"},b={class:"min-w-[300px] border-t pt-4 space-y-4"},y=["onClick"],V={class:"flex items-center space-x-2"},k={__name:"OrganizationSelect",props:{organizations:Object},setup(a){const c=a,o=h({uuid:null}),d=t=>{o.uuid=t,u()},u=async()=>{o.post("/organization",{preserveScroll:!0})};return(t,e)=>(n(),s("div",f,[l("div",w,[l("div",x,[l("h4",_,i(t.$t("Select organization")),1),l("div",b,[(n(!0),s(g,null,m(c.organizations,(r,p)=>(n(),s("div",{key:p,onClick:z=>d(r.organization.uuid),class:"flex space-x-8 bg-white rounded-md px-4 py-2 justify-between items-center w-full hover:shadow-md cursor-pointer"},[l("div",V,[e[0]||(e[0]=v('<span class="bg-slate-200 w-12 h-12 rounded-full flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" fill-rule="evenodd"><path d="M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z"></path><path fill="currentColor" d="M17 3.722v5.497l2.864.716A1.5 1.5 0 0 1 21 11.39V19a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2v-7.69a1.5 1.5 0 0 1 .83-1.343L7 8.382V6.347a1.5 1.5 0 0 1 .973-1.405l7-2.625A1.5 1.5 0 0 1 17 3.722Zm-2 .721l-6 2.25V19h6V4.443Zm2 6.838V19h2v-7.22l-2-.5Zm-10-.663l-2 1V19h2v-8.382Z"></path></g></svg></span>',1)),l("div",null,[l("h2",null,i(r.organization.name),1)])]),e[1]||(e[1]=l("span",null,[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 20 20"},[l("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5 2.643v14.765c.092.32.299.511.619.572c.32.061.633-.024.94-.255l8.107-6.993A.944.944 0 0 0 15 10a.94.94 0 0 0-.334-.73L6.58 2.295c-.232-.197-.639-.383-1.061-.253c-.282.087-.455.287-.519.6"})])],-1))],8,y))),128))])])])]))}};export{k as default};