1import{_ as D}from"./DCcn3Yf_.js";import{e as E,v as V,Y as F,Z as P,g as T,p as O,J as R,V as j,k as J,x as K,K as a,c as r,a as t,t as n,$ as l,d as U,q as o,b as d,w as _,a0 as Y,o as i,n as S,F as Z,m as z}from"./3f4ot50i.js";import{B as G}from"./BkvqUe8I.js";import{u as H}from"./CNboW804.js";import M from"./CbJP6l1w.js";import{u as Q}from"./BAogCacb.js";import{_ as W}from"./DlAUqK2U.js";import"./DGSEKay-.js";import"./DynS8NzX.js";import"./C459UuTd.js";import"./B-bm9TlV.js";import"./BL1Nw7Eh.js";import"./DBXRtshy.js";import"./RtLrfa_-.js";import"./Bsy1BNbg.js";import"./6uH43jYo.js";import"./D1c7-Ft0.js";import"./aBshe6U3.js";import"./Bo14Zef9.js";import"./C5tQ_YB0.js";import"./B3qDHqYH.js";import"./DrWi_BR8.js";import"./CIsLemcs.js";import"./B6k1wQdh.js";import"./ZZG3ZRVw.js";import"./B1_A5Z7X.js";import"./Bn4LZr87.js";import"./Noh0yU5D.js";import"./DdCc2sNP.js";import"./vQWlSr7y.js";import"./dN74j7yO.js";import"./jZOPdfty.js";import"./Dl_rM5oq.js";import"./DOFep7n4.js";import"./B8FgyiMi.js";import"./7bm1tNa7.js";import"./ClyzhIn9.js";import"./DbLxTSve.js";const X={class:"booking-main"},x={class:"l-container page-image__container"},ee={class:"l-content page-image__content"},te={class:"page-image__subtitle"},ne={class:"booking-step"},oe={class:"l-container booking-nav"},se={class:"booking-nav__container"},ie={class:"booking-nav__title"},ae={key:0},re={key:1},me={key:2},ce=["disabled"],pe=E({__name:"index",async setup(ue){let m,b;const h=V(),{fetcher:y}=H(),q=F.Ameland,$=P.Ferry,{data:C}=([m,b]=T(()=>Q("serviceContent",()=>y($,q))),m=await m,b(),m);O("$serviceContent",(C.value??[])[0]);const g=R(),f=j(),c=J(),p=K(),w=a(()=>g.isLoggedIn||g.isLoggedInBooking),B=a(()=>f.bookingNumbers.join(", ")),u=a(()=>typeof p.value>"u"&&c.query.partial==="true"),k=a(()=>u&&c.query.canAmendSequence==="true"),A=a(()=>c.query.hasCheckinStatusDifference==="true"),v=e=>{p.value=e,f.setIsEntireOrder(e)};return(e,s)=>{const N=D,I=Y;return i(),r("div",X,[t("div",x,[t("div",ee,[t("h2",te,n(e.$t("amendment.title"))+" "+n((e._.provides[l]||e.$route).params.id),1),t("p",null,[t("strong",null,n(e.$t("amendment.subtitle"))+":",1),U(" "+n(o(B)),1)])])]),t("div",ne,[t("nav",oe,[t("div",se,[d(N,{to:o(h)("my-wagenborg"),class:"booking-nav__button btn btn--base btn--icon-l"},{default:_(()=>[s[2]||(s[2]=t("i",{class:"icon icon--sm icon--arrowleft-w"},null,-1)),t("span",null,n(e.$t("booking.navigation.back")),1)]),_:1,__:[2]},8,["to"]),t("div",ie,[t("span",null,n(e.$t("amendment.title"))+" "+n((e._.provides[l]||e.$route).params.id),1)]),s[3]||(s[3]=t("button",{class:"booking-nav__button"},null,-1))])]),d(I,null,{default:_(()=>[o(w)?(i(),r(Z,{key:0},[d(G,{class:"amend-sequence",show:o(u),closable:!1,title:e.$t("amendment.openSequence.title")},{default:_(()=>[o(k)?(i(),r("p",ae,n(e.$t("amendment.openSequence.body")),1)):o(A)?(i(),r("p",re,n(e.$t("amendment.openSequence.hasCheckinStatusDifference")),1)):(i(),r("p",me,n(e.$t("amendment.openSequence.cantAmendEntire")),1)),t("button",{class:"btn",onClick:s[0]||(s[0]=L=>v(!0)),disabled:!o(k)},n(e.$t("amendment.openSequence.open")),9,ce),t("button",{class:"btn btn--line",onClick:s[1]||(s[1]=L=>v(!1))},n(e.$t("amendment.openSequence.openSingle",{ticket:(e._.provides[l]||e.$route).params.id})),1)]),_:1},8,["show","title"]),o(u)?S("",!0):(i(),z(M,{key:0,"open-sequence":o(p)},null,8,["open-sequence"]))],64)):S("",!0)]),_:1})])])}}}),Qe=W(pe,[["__scopeId","data-v-21f3c6a3"]]);export{Qe 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.