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

2 lines
10 KiB
JavaScript
Raw Normal View History

2026-03-03 20:40:54 +03:30
import{B}from"./DAaUah2x.js";import{d as M,H as E,I as G,r as p,a0 as K,z as u,G as c,E as r,B as o,C as w,K as a,D as n,S as y,A as _,a1 as D,a2 as P,F as Q,af as L,a3 as O,T as j,dj as Y,u as ee,h as le,an as ae,o as te,dk as se,aj as ne,a6 as oe,dl as ue,dm as re}from"./CE4SaZgW.js";import{e as A}from"./DPkf2bcV.js";import{i as z}from"./n0DUIre6.js";import{B as U}from"./5PiJbsaQ.js";import{B as ie}from"./CSzw-WNk.js";import{B as de,a as ve}from"./Cka_Guai.js";import{B as pe}from"./sNT9a3xG.js";import{B as q}from"./g9otGdDE.js";import{I as b}from"./CLDsZ6pG.js";import{B as me}from"./DJir2CeY.js";import{S as W}from"./ssSX8W6r.js";import{N as ce,Q as fe,V as ge}from"./Bf0Ckl74.js";import{d as be,F as ye}from"./C6Lfa4XD.js";const we={class:"px-4 pb-4 flex flex-col justify-between h-70vh"},xe={class:"flex flex-col gap-2 mt-5 mb-5"},ke={flex:"","p-2":""},_e={"mt-1":"","font-semibold":""},Se={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=p(null),x=p([]);p();const H=V,h=S,k=p();function C(v,f=null){return v.filter(m=>m.parent_id===f).map(m=>({...m,children:C(v,m.id)}))}const R=async()=>{try{y.value=!0;const v=await Y();x.value=C(v)}catch(v){console.log("e ===>",v)}finally{y.value=!1}};async function e(){H.id&&(k.value=H.id),x.value?.length==0&&R(),await L(),await g.value?.setOpen()}async function N(){await L(),await g.value?.setClose()}K(H,v=>{v.open?e():N()});const I=v=>{N(),h("setField",v)};return(v,f)=>{const m=W;return u(),c(me,{title:"",ref_key:"sheetRef",ref:g,headerCls:"",closeOnClickOutside:"",onOnClickOutside:f[0]||(f[0]=i=>h("update:open",!1)),onOnClose:f[1]||(f[1]=i=>h("update:open",!1))},{header:r(()=>f[2]||(f[2]=[o("div",null,null,-1)])),default:r(()=>[o("div",we,[o("div",xe,[o("div",null,[o("div",ke,[o("div",_e,w(a(s).useString("allCollection")),1)]),n(m,{spinning:a(y)},{default:r(()=>[o("div",Se,[(u(!0),_(D,null,P(x.value,i=>(u(),c(a(ce),{as:"div",class:"mt-2"},{default:r(({open:F})=>[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:I(i)},{default:r(()=>[o("div",{class:O(["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(B,{icon:i?.children?.length?"vuesax-linear:main-component":"vuesax-linear:component"},null,8,["icon"])]),o("span",null,w(i.title),1)],2),i.children?.length?(u(),c(B,{key:0,class:O([F?"":"rotate-180","transform"]),icon:"tabler:chevron-up"},null,8,["class"])):j("",!0)]),_:2},1032,["onClick"]),n(a(ge),{class:"px-4 flex flex-col gap-2 text-sm mt2 mb5"},{default:r(()=>[(u(!0),_(D,null,P(i?.children,$=>(u(),_("div",{class:O(["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:T=>I($)},[o("span",null,[n(B,{icon:"vuesax-linear:component"})]),o("span",null,w($.title),1)],10,he))),256))]),_:2},1024)]),_:2},1024))),256))])]),_:1},8,["spinning"])])]),n(q,{block:"",class:"!h-unset !rounded-lg mt-5",onClick:N},{default:r(()=>[Q(w(a(s).useString("close")),1)]),_:1})])]),_:1},512)}}}),Ue={class:"sm:!w-50vw sm:justify-self-center"},Be={class:"px-4 flex items-center justify-between"},He={class:"flex gap-5 py-4"},Ne={class:"font-semibold"},$e={class:"pt-4 pb-6rem overflow-y-auto"},je={class:"w-full flex justify-center"},Oe=["alt"],Re={class:"px-1rem mt-2rem"},Ie={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(),x=p(!1),H=p(""),h=p(),k=p(),C=p(),R=p([]),e=p({avatar:"",birthday:"",website:"",name:"",first_name:"",last_name:"",phone:"",email:"",bio:"",skill:""});function N(d){e.value.job=d.id,C.value=d}function I(){x.value=!0,H.value=e.value.avatar}function v(d){e.va