PageSourceSearch

https://azitcrew.com/assets/index-C88jIyWq.js

js azitcrew.com collected 2026-10-02 01:24:01 UTC 2,315 bytes, 2 lines download raw bytes

1import{u as S,a2 as w,r as E,g as _,h as v,aq as c,j as e,A as g,ac as x,k as j,H as C,m as I,x as L,Z as k}from"./index-BR888HQ9.js";import{u as D,i as N,S as R,a as m,c as T}from"./ScheduleForm-BXKqW9yd.js";import{a as F}from"./member-role-BqpkAn6T.js";import{B as M}from"./BackButton-c2M_PDh2.js";import"./scheduleLocationSelection-UqxJ5qRn.js";import"./schemas-C7OmCne6.js";import"./Input-D2PvltEU.js";/* empty css                                  */(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"1a1e365c5f5243239fb42a169a486d2567cbad2e"};var s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="2ee4418b-3446-4d7e-a988-bbf2dde781c6",a._sentryDebugIdIdentifier="sentry-dbid-2ee4418b-3446-4d7e-a988-bbf2dde781c6")}catch{}})();var A="_1a0wrlh0 _1i39wkr0",Q="_1a0wrlh1 _1i39wkr1",V="_1a0wrlh2",B="_1a0wrlh3 _1i39wkr2";function K({params:a}){const{pop:s,push:d}=S(),{data:f}=w(k.myCrewsQuery()),t=f?.find(r=>r.memberStatus==="JOINED")??null,n=t?.crewId??0,i=t?.memberRole===F.LEADER,{formValues:o,setFormValues:l,validateForm:p}=D(N({params:a}));E.useEffect(()=>{t&&!i&&l(r=>({...r,runType:"LIGHTNING"}))},[t,i]);const h=_(),b=v({...c.createScheduleMutation,meta:{errorMessages:{SCHEDULE_INTERVAL_TOO_CLOSE:"이전 일정과 시작 시간이 너무 가깝습니다"}},onSuccess:()=>{h.invalidateQueries({queryKey:c.all,refetchType:"all"}),s()}}),y=r=>{if(r.preventDefault(),!p())return;if(n<=0){L("크루 정보를 불러오지 못했습니다. 다시 시도해주세요.");return}const u=T(o);u&&b.mutate({crewId:n,payload:u})};return e.jsx(g,{backgroundColor:x.colors.white,children:e.jsxs(j,{children:[e.jsx("div",{className:A,children:e.jsx(C,{sticky:!0,left:e.jsx(M,{}),center:"일정 등록하기"})}),e.jsxs("div",{className:Q,children:[e.jsx("div",{className:V,children:e.jsx(R,{formId:"schedule-create-form",values:o,onValuesChange:l,onSubmit:y,isLeader:i,onMapSearchClick:()=>d("ScheduleLocationPage",{})})}),e.jsx("div",{className:B,children:e.jsx(I,{type:"submit",form:"schedule-create-form",size:"large",disabled:!m(o),state:m(o)?"active":"disabled",children:"등록하기"})})]})]})})}export{K as ScheduleCreatePage};
2//# sourceMappingURL=index-C88jIyWq.js.map

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.