1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1888],{31811:function(a,e,s){"use strict";s.r(e);var r=s(67294),i=s(11163),d=s(41664),t=s.n(d),n=s(23807),o=s(50176),c=s(33611),l=s(85893);e.default=function(){var a=(0,i.useRouter)(),e="package",s=a.query.id,d=(0,r.useState)([]),h=d[0],u=d[1];return(0,r.useEffect)((function(){(0,c.yf)({type:e,id:s}).then((function(a){var e;u(null===a||void 0===a||null===(e=a.data)||void 0===e?void 0:e.data)})).catch((function(e){var s;401!==(null===e||void 0===e||null===(s=e.response)||void 0===s?void 0:s.status)?console.error("Failed to load package details.",e):a.push("/sign-in")}))}),[a.query]),(0,l.jsx)("div",{className:"dashboard-page",children:(0,l.jsxs)("div",{className:"container mx-auto px-3 py-6 xl:min-h-screen dashboard-page__container",children:[(0,l.jsx)(o.Z,{}),(0,l.jsx)("section",{className:"dashboard-hero mb-4",children:(0,l.jsxs)("div",{className:"dashboard-hero__card",children:[(0,l.jsxs)("div",{className:"dashboard-hero__details",children:[(0,l.jsx)("span",{className:"dashboard-hero__eyebrow",children:"Edit Package"}),(0,l.jsx)("h1",{className:"dashboard-hero__title",children:"Update your listing"}),(0,l.jsx)("p",{className:"dashboard-hero__subtitle",children:null!==h&&void 0!==h&&h.name?"Editing ".concat(null===h||void 0===h?void 0:h.name,". Keep your details current for travelers."):"Update package details to keep your listing accurate."}),(0,l.jsx)("div",{className:"dashboard-hero__actions",children:(0,l.jsx)(t(),{href:{pathname:"/user-property/package/".concat(s)},children:(0,l.jsx)("a",{className:"dashboard-button dashboard-button--ghost",children:"Back to Property"})})})]}),(0,l.jsxs)("div",{className:"dashboard-hero__assist",children:[(0,l.jsx)("span",{className:"dashboard-hero__assist-tag",children:"Tip"}),(0,l.jsx)("h3",{className:"dashboard-hero__assist-title",children:"Highlight what changed"}),(0,l.jsx)("p",{className:"dashboard-hero__assist-text",children:"Update pricing, availability, and itinerary details to avoid guest confusion."}),(0,l.jsxs)("a",{href:"/contact-us",className:"dashboard-link",children:["Need help? ",(0,l.jsx)("i",{className:"fas fa-arrow-right"})]})]})]})}),(0,l.jsx)(n.Z,{onPackageFormSucces:function(s){a.push("/user-property/".concat(e,"/").concat(s))},edit:!0,propertyDetail:h})]})})}},50178:function(a,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-property/package/[id]/edit",function(){return s(31811)}])}},function(a){a.O(0,[4908,1577,4810,5239,5808,9496,2506,9774,2888,179],(function(){return e=50178,a(a.s=e);var e}));var e=a.O();_N_E=e}]);
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.