1import{a as p,K as v,j as x,o as r,e as l,f as e,u as g,k as b,m as d,V as f}from"./entry.03bdd158.js";import{u as c}from"./fetch.b8a716c0.js";const y={class:"side-template-v3"},k=d('<header class="side-template-v3__mobile-header"><div class="container height-100% flex items-center justify-between"><a class="side-template-v3__logo" href="#0"><svg width="104" height="30" viewBox="0 0 104 30"><title>Go to homepage</title><path d="M37.54 24.08V3.72h4.92v16.37h8.47v4zM60.47 24.37a7.82 7.82 0 01-5.73-2.25 8.36 8.36 0 01-2-5.62 8.32 8.32 0 012.08-5.71 8 8 0 015.64-2.18 8.07 8.07 0 015.68 2.2 8.49 8.49 0 012 5.69 8.63 8.63 0 01-1.78 5.38 7.6 7.6 0 01-5.89 2.49zm0-3.67c2.42 0 2.73-3 2.73-4.23s-.31-4.26-2.73-4.26-2.79 3-2.79 4.26.32 4.23 2.82 4.23zM95.49 24.37a7.82 7.82 0 01-5.73-2.25 8.36 8.36 0 01-2-5.62 8.32 8.32 0 012.08-5.71 8.4 8.4 0 0111.31 0 8.43 8.43 0 012 5.69 8.6 8.6 0 01-1.77 5.38 7.6 7.6 0 01-5.89 2.51zm0-3.67c2.42 0 2.73-3 2.73-4.23s-.31-4.26-2.73-4.26-2.8 3-2.8 4.26.31 4.23 2.83 4.23zM77.66 30c-5.74 0-7-3.25-7.23-4.52l4.6-.26c.41.91 1.17 1.41 2.76 1.41a2.45 2.45 0 002.82-2.53v-2.68a7 7 0 01-1.7 1.75 6.12 6.12 0 01-5.85-.08c-2.41-1.37-3-4.25-3-6.66 0-.89.12-3.67 1.45-5.42a5.67 5.67 0 014.64-2.4c1.2 0 3 .25 4.46 2.82V8.81h4.85v15.33a5.2 5.2 0 01-2.12 4.32A9.92 9.92 0 0177.66 30zm.15-9.66c2.53 0 2.81-2.69 2.81-3.91s-.31-4-2.81-4-2.81 2.8-2.81 4 .27 3.91 2.81 3.91zM55.56 3.72h9.81v2.41h-9.81z" fill="var(--color-contrast-higher)"></path><circle cx="15" cy="15" r="15" fill="var(--color-primary)"></circle></svg></a><button class="btn btn--subtle" aria-controls="sidenav-v3">Menu</button></div></header>',1),w={class:"container max-width-lg"},z={class:"flex@md"},B={id:"sidenav-v3",class:"sidebar sidebar--static@md js-sidebar","data-static-class":"position-relative z-index-1 width-100% max-width-3xs"},M={class:"sidebar__panel"},F=d('<header class="sidebar__header bg padding-sm border-bottom z-index-2"><h1 class="text-base font-medium text-truncate">Menu</h1><button class="sidebar__close-btn js-sidebar__close-btn"><svg class="icon icon--xs" viewBox="0 0 16 16"><title>Close panel</title><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10"><line x1="13.5" y1="2.5" x2="2.5" y2="13.5"></line><line x1="2.5" y1="2.5" x2="13.5" y2="13.5"></line></g></svg></button></header>',1),V={class:"position-relative z-index-1 padding-y-md padding-x-md"},C={class:"exsidenav js-exsidenav"},S={class:"exsidenav__pop-nav","aria-label":"Popular links"},A=e("li",null,[e("a",{class:"exsidenav__pop-link",href:"/users/myaccount"},[e("span",{class:"text-sm"},"æç帳è")])],-1),N={key:0},$=e("a",{class:"exsidenav__pop-link",href:"/users/myfreelancers","aria-current":"page"},[e("span",{class:"text-sm"},"æçFreelancerè³æ")],-1),I=[$],K={class:"side-template-v3__main position-relative z-index-1 flex-grow padding-y-md padding-x-md sidebar-loaded:show"},P={class:"padding-y-md"},U={class:"grid gap-sm"},E={class:"col-12@md"},G=e("h1",{class:"margin-bottom-md text-2xl"},"æçFreelancerè³æ",-1),H=e("h3",{class:"margin-bottom-2xs text-lg",for:"input-name"},"ä½ ç確èªè¦åªé¤æ´åFreelancerè³æå? (éåæä½ä¸è½éè½)",-1),L=e("a",{class:"margin-top-xs btn text-sm margin-right-sm btn--primary",href:"/users/myfreelancers"},"ä¸è¦, è¿åä¸ä¸é ",-1),q={__name:"delfreelancer",setup(R){const i=p(),_=v(),m=f,s=x();async function h(u){const{data:a,error:t}=await c(i.public.apiBase+"/freelancers/"+(s==null?void 0:s.user.id),{method:"delete",headers:{Authorization:"Bearer "+(s==null?void 0:s.tokens.access.token)}},"$dcUMW0KfIS");if(a.value==""){const{data:o,error:n}=await c(i.public.apiBase+"/users/"+(s==null?void 0:s.user.id),{method:"post",body:{status:""},headers:{Authorization:"Bearer "+(s==null?void 0:s.tokens.access.token)}},"$FLy5IdHFPV");o.value&&(s.user.status="",m(s),alert("Freelancerè³æå·²ç¶åªé¤!"),window.location.pathname="/users/myaccount"),n.value&&(alert("é¯èª¤!"),console.log(n))}t.value&&(alert("é¯èª¤!"),console.log(t))}return(u,a)=>{var t;return r(),l("div",null,[e("div",y,[k,e("div",w,[e("div",z,[e("aside",B,[e("div",M,[F,e("div",V,[e("div",C,[e("nav",S,[e("ul",null,[A,((t=g(_).data)==null?void 0:t.user.type)=="freelancer"?(r(),l("li",N,I)):b("",!0)])])])])])]),e("main",K,[e("div",P,[e
1("div",U,[e("div",E,[G,H,L,e("button",{class:"margin-top-xs btn text-sm",onClick:a[0]||(a[0]=o=>h())},"確èªåªé¤")])])])])])])])])}}};export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.