Files
appco_dist/.output/public/_nuxt/DfWSBlt2.js
T

2 lines
9.9 KiB
JavaScript
Raw Normal View History

2026-02-01 21:53:26 +03:30
import{B as U}from"./h3vOCeO2.js";import{d as M,G as E,H as G,r as m,$ as Q,y as u,F as p,D as r,A as o,B as x,J as a,C as n,z as B,a1 as T,a0 as D,R as y,E as Y,ae as L,a2 as j,S as O,di as q,u as ee,h as le,am as ae,o as te,dj as se,ai as ne,a5 as oe,dk as ue,dl as re}from"./CqMGdh3i.js";import{e as A}from"./DB_tx3mi.js";import{i as F}from"./kwmA8fCG.js";import{B as C}from"./UZViNtu6.js";import{B as ie}from"./Cg4PvGMM.js";import{B as de,a as ve}from"./7t5j4bQX.js";import{B as pe}from"./C34FAMhQ.js";import{B as K}from"./C4IJggRf.js";import{I as b}from"./CbE8wWOc.js";import{B as me}from"./iThYsS9r.js";import{S as W}from"./Cgrawfgk.js";import{N as ce,Q as fe,V as ge}from"./CiBFxzGs.js";import{d as be,F as ye}from"./fkkGvHOC.js";const xe={class:"px-4 pb-4 flex flex-col justify-between h-70vh"},we={class:"flex flex-col gap-2 mt-5 mb-5"},ke={flex:"","p-2":""},Se={"mt-1":"","font-semibold":""},_e={class:"max-h-[50vh] overflow-auto"},he=["onClick"],Ce=M({__name:"JobSelector",props:{open:{type:Boolean},id:{}},emits:["update:open","setField"],setup(V,{emit:S}){const s=E();G();const g=m(null),w=m([]);m();const H=V,_=S,k=m();function h(v,f=null){return v.filter(c=>c.parent_id===f).map(c=>({...c,children:h(v,c.id)}))}const R=async()=>{try{y.value=!0;const v=await q();w.value=h(v)}catch(v){console.log("e ===>",v)}finally{y.value=!1}};async function e(){H.id&&(k.value=H.id),w.value?.length==0&&R(),await L(),await g.value?.setOpen()}async function N(){await L(),await g.value?.setClose()}Q(H,v=>{v.open?e():N()});const z=v=>{N(),_("setField",v)};return(v,f)=>{const c=W;return u(),p(me,{title:"",ref_key:"sheetRef",ref:g,headerCls:"",closeOnClickOutside:"",onOnClickOutside:f[0]||(f[0]=i=>_("update:open",!1)),onOnClose:f[1]||(f[1]=i=>_("update:open",!1))},{header:r(()=>f[2]||(f[2]=[o("div",null,null,-1)])),default:r(()=>[o("div",xe,[o("div",we,[o("div",null,[o("div",ke,[o("div",Se,x(a(s).useString("allCollection")),1)]),n(c,{spinning:a(y)},{default:r(()=>[o("div",_e,[(u(!0),B(D,null,T(w.value,i=>(u(),p(a(ce),{as:"div",class:"mt-2"},{default:r(({open:I})=>[n(a(fe),{class:"flex w-full items-center rounded-lg px-4 justify-start text-sm focus:outline-none focus-visible:ring bg-transparent",onClick:()=>i?.children?.length?null:z(i)},{default:r(()=>[o("div",{class:j(["w-full flex items-center gap2 rounded-md p-2 text-start",[k.value===i.id?"border-primary border-solid border-1 ":"",i?.children?.length?a(s).isNightStore?"text-gray-2":"text-gray-8":a(s).isNightStore?"text-gray-2":"text-gray-8"]])},[o("span",null,[n(U,{icon:i?.children?.length?"vuesax-linear:main-component":"vuesax-linear:component"},null,8,["icon"])]),o("span",null,x(i.title),1)],2),i.children?.length?(u(),p(U,{key:0,class:j([I?"":"rotate-180","transform"]),icon:"tabler:chevron-up"},null,8,["class"])):O("",!0)]),_:2},1032,["onClick"]),n(a(ge),{class:"px-4 flex flex-col gap-2 text-sm mt2 mb5"},{default:r(()=>[(u(!0),B(D,null,T(i?.children,$=>(u(),B("div",{class:j(["w-full flex items-center gap2 rounded-md p-2 text-start ms2",[k.value===$.id?"border-primary border-solid border-1 ":"",a(s).isNightStore?"text-gray-2":"text-gray-8"]]),onClick:J=>z($)},[o("span",null,[n(U,{icon:"vuesax-linear:component"})]),o("span",null,x($.title),1)],10,he))),256))]),_:2},1024)]),_:2},1024))),256))])]),_:1},8,["spinning"])])]),n(K,{block:"",class:"!h-unset !rounded-lg mt-5",onClick:N},{default:r(()=>[Y(x(a(s).useString("close")),1)]),_:1})])]),_:1},512)}}}),Ue={class:"px-4 flex items-center justify-between"},Be={class:"flex gap-5 py-4"},He={class:"font-semibold"},Ne={class:"pt-4rem pb-6rem overflow-y-auto"},$e={class:"w-full flex justify-center"},Oe=["alt"],je={class:"px-1rem mt-2rem"},Re={class:"flex items-center"},ze={key:0,class:"text-gray-3 mt2 mr2"},qe=M({__name:"index",setup(V){const S=ee(),s=E(),g=G(),w=m(!1),H=m(""),_=m(),k=m(),h=m(),R=m([]),e=m({avatar:"",birthday:"",website:"",name:"",first_name:"",last_name:"",phone:"",email:"",bio:"",skill:""});function N(d){e.value.job=d.id,h.value=d}function z(){w.value=!0,H.value=e.value.avatar}function v(d){e.value.avatar=d}function f(){_.value.valida