PageSourceSearch

https://web.famguru.app/assets/index-7_OX9LRZ.js

js famguru.app collected 2026-10-06 07:59:46 UTC 3,490 bytes, 1 lines download raw bytes

1import{j as e}from"./jsx-runtime-DN4qZZRM.js";import{D as R,G as S,C,v as h}from"./chunk-4N6VE7H7-C1-DtyEO.js";import{u as b,a as g}from"./hooks-Ch1-hi9y.js";import{Y as d,f as t}from"./index-BkhzYjtM.js";import{cC as x,b2 as P,cM as _,m as O,b4 as l,ag as k}from"./userSlice-C5jvPPKe.js";import{aG as F,a4 as Y}from"./server-CZ4_3qZu.js";import{O as j,C as w,R as U,H as D}from"./EditCruiseActivityForm-DtUBlYZs.js";import"./_commonjsHelpers-_d1bhYXs.js";import"./redux-toolkit.esm-Dy9--iNY.js";import"./ButtonSquare-C3OHM8uH.js";import"./index-BYbCgwOx.js";import"./InputLabel-CVSz-QF7.js";import"./Loader-Bq1gBLu_.js";import"./preload-helper-BlTxHScW.js";import"./exports-P9MXnzSC.js";import"./index-C53rtgZx.js";import"./useActivityContact-Ie6ytVPR.js";import"./index-Byi-Z7qm.js";import"./Input-CJe_F1rk.js";import"./index-BKKNpLJP.js";import"./index-DUVSO0Yh.js";import"./index-Dn8gZzys.js";import"./DatePickerMaterial-DYB323RC.js";import"./emotion-react.browser.esm-CJ964Vnk.js";import"./index-DUXbn9Cc.js";import"./clsx.m-BJ08U1g5.js";import"./TextField-Dss3CMx7.js";import"./classCallCheck-MFKM5G8b.js";import"./layoutSlice-SvcaKoJA.js";import"./InputSwitch-BQiSNxRp.js";import"./ContactSection-DvUJ9ZTI.js";import"./Checkbox-B7ebrqxL.js";import"./usePlacesService-Cwrh66vq.js";import"./AutocompleteInput-RSLMSnHG.js";import"./useDebounce-BPrNM_xc.js";import"./HotelForm-ytCGA7E2.js";import"./hotelSlice-9dfmB6tX.js";import"./index-CO4gj3ez.js";import"./AddLogosInput-C4DJDWqm.js";import"./FileInput-BG4JutZl.js";import"./useDropImageFileInput-BRw2Tz6S.js";import"./imageUtils-CEpzKWYO.js";import"./PortOfCallElement-C3pJtkTZ.js";import"./restaurantSlice-BbC66sUZ.js";import"./RestaurantForm-lv_AQ9Ws.js";import"./index-Dci66rbV.js";import"./SelectInput-BFXLhqLI.js";import"./ProgressBar-BpjXq5oT.js";import"./PortsOfCallForm-7T6-jdKP.js";import"./DropFileInput-D2FbT6mz.js";import"./FilePreview-BdYTfpcJ.js";import"./files-G3QDSeNG.js";import"./LibraryElementItem-BT4EGo2S.js";import"./index-B1YIpPjJ.js";import"./Paginator-BALUKrIY.js";import"./index-C9comWQj.js";import"./EmptyBox-C4LzRExC.js";function Lt(){const{activityId:u,activityType:E}=R(),a=E,r=b(),[c]=S(),I=C(),o=g(x);h.useEffect(()=>(r(P()),()=>{r(_({activityForm:{}}))}),[]);const s=()=>{const i=c.get("date");return I(`/trips/${o.id}/itinerary${u?"/"+u:""}?date=${i}`)},m=async i=>{const{addToLibrary:v,...A}=i;try{const p=o?.id,T=c.get("insertBefore"),y=c.get("insertAfter"),n={...A};T?n.insertBefore=Number(T):y&&(n.insertAfter=Number(y));const f=await r(O(Number(p),{activity:n},v));if(o?.tracksEnabled&&i?.selectedTrackIds?.length>0&&f?.id){r(l(!0));try{await F.addActivityTripTrack(Number(o.id),f?.id,i.selectedTrackIds.map(Number)),r(k(Number(o.id)))}catch(N){console.error("Error updating activity tracks:",N)}r(l(!1))}return I(`/trips/${p}/itinerary?date=${Y.utc(i.startDate).format("YYYY-MM-DD")}`)}catch(p){console.error("Error creating activity:",p)}};return e.jsx("div",{className:"flex flex-col w-full",children:(()=>{switch(a){case t.HOTEL:case t.HOTEL_VISIT:case t.VISIT:return e.jsx(D,{type:a,navigateBack:s,onSubmit:m});case t.RESTAURANT:return e.jsx(U,{navigateBack:s,onSubmit:m});case t.CRUISE:case t.CRUISE_INSPECTION:return e.jsx(w,{activityType:a,currentSection:a===t.CRUISE_INSPECTION?d.TRIP_ITINERARY_CRUISE_INSPECTION:d.TRIP_ITINERARY_CRUISE,navigateBack:s,onSubmit:m});default:return e.jsx(j,{currentSection:d.TRIP_ITINERARY_OTHER,navigateBack:s,onSubmit:m})}})()})}export{Lt 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.