PageSourceSearch

https://www.rosebikes.de/_nuxt/troubleshooting-DLzPWsba.js

js rosebikes.de collected 2026-10-02 06:19:01 UTC 5,761 bytes, 1 lines download raw bytes

1import{$t as ee,C as q,K as te,U as u,Xt as se,b as ae,ct as A,f as n,g as f,h as O,i as F,kt as e,m as oe,p as g,rt as E,st as D,wt as ne,x as o}from"./runtime-core.esm-bundler-s8AntrsW.js";import{m as le}from"./error-o1lvrPwZ.js";import{Bt as U,ct as ie,ft as Q,lt as me,y as re}from"./app/api/graphql/generated/graphql.ts-CstZYwUw.js";import{u as $}from"./dist-3MEOUdlQ.js";import{t as ue}from"./NotificationStore-CDjvLDSm.js";import{t as T}from"./fragment-masking-BkexAerc.js";import"./all-Drsx3IW_.js";import{t as ce}from"./RouteEnum-CQbj0FUZ.js";import{t as de}from"./urql-vue-DGXKNsgj.js";import{n as pe}from"./vue-i18n-C5Raox96.js";import{t as ge}from"./TextLink-dJay5Y3b.js";import{F as r,K as fe,N as be,P as _e,c as L,i as ve}from"#entry";import{t as V}from"./QuoteStore-DYrKRG7j.js";import{t as he}from"./BreakpointEnum-DiPEJe4P.js";import{t as ke}from"./TextParagraph-D8Pxmk2v.js";import{t as Le}from"./TextHeading-ihuBdK_R.js";import{n as ye,t as xe}from"./PageTypeEnum-DFcUFZp-.js";import{t as Me}from"./composables-BQoOBjNj.js";import{t as Ie}from"./OrderListItem-DIjkd0Vq.js";import{t as Ce}from"./ThumbnailList-TuZKzhzM.js";var Te={key:0,class:"mt-5"},we={class:"mt-10 flex ml:flex-row-reverse"},Ne={class:"px-5 mm:px-10 flex flex-col gap-5"},Re={class:"flex flex-col gap-5","data-test":"not-leasable-items-modal-item-list"},Se=q({__name:"MCheckoutPaymentLeasingNotLeasableItems",emits:["itemsRemoved"],async setup(G,{emit:m}){let l,b;const{t:a}=pe(),y=m,_=V(),v=([l,b]=D(()=>_.getQuote()),l=await l,b(),l),h=n(()=>T(Q,v.value.paymentMethod)?.bikeLeasing?.troubles?.cases.find(t=>t.troubleType===U.NotLeasableItemsInCart)?.itemList??[]),x=ue(),{handleAllResponseMessages:i,getFragmentedMessages:w}=fe(),{executeMutation:M,fetching:N}=de(me),c=ne(!1),R=E("modalContent"),S=E("modalActions"),H=$(R),{bottom:K}=$(S),X=n(()=>K.value===H.bottom.value),I=n(()=>h.value.map(t=>T(re,t))),j=n(()=>I.value.map(t=>t?.variantSku).filter(t=>!!t)),B=n(()=>I.value.flatMap(t=>{const s=t?.variant?.images?.[0];return[{sources:s?[{src:s,height:100,width:100,breakpoint:he.XS}]:null,alt:t?.name??""}]})),W=async()=>{const t=await M({skus:j.value});if(t.error){x.pushAndRemoveNotification({type:ie.Error,message:a(t.error.message)});return}const s=t.data;if(s?.parkingListMove){const{messages:C,quote:d}=s.parkingListMove,k=w(C);i(k),!k?.errorMessages&&d&&(_.updateQuote(d),y("itemsRemoved"))}};return(t,s)=>{const C=Le,d=ke,k=ge,Y=Ce,P=be,J=Ie,Z=ve;return u(),f(F,null,[o(C,{tag:"h1",title:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.headline"),size:e(r).XS,class:"pt-4 mb-5","data-test":"not-leasable-items-headline"},null,8,["title","size"]),o(d,{size:e(r).SM,text:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.description"),"data-test":"not-leasable-items-description"},null,8,["size","text"]),o(k,{"is-button":!0,"data-test":"not-leasable-items-modal-trigger",onClick:s[0]||(s[0]=p=>c.value=!0)},{default:A(()=>[ae(ee(e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.showItems")),1)]),_:1}),e(B).length?(u(),f("div",Te,[o(Y,{thumbnails:e(B),"more-button":{type:"button",linkTo:"#0",gtmLinkItem:{context:"leasing-troubleshooting",component:"ThumbnailList",value:"more-items"}},"data-test":"not-leasable-items-thumbnail-list",onMoreButtonClick:s[1]||(s[1]=p=>c.value=!0)},null,8,["thumbnails"])])):O("",!0),g("div",we,[o(P,{loading:e(N),disabled:e(N),type:e(_e).PRIMARY,sizes:{xs:e(r).LG},"full-widths":{xs:e(L).FULL,ml:e(L).AUTO},title:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.removeItems"),"data-test":"not-leasable-items-remove-items","link-item":{context:"leasing-troubleshooting",value:"remove-items",component:"Btn"},onClick:W},null,8,["loading","disabled","type","sizes","full-widths","title"])]),o(Z,{open:e(c),title:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.modal.title"),"data-test-prefix":"not-leasable-items-modal",onClose:s[3]||(s[3]=p=>c.value=!1)},{default:A(()=>[g("div",{ref_key:"modalContentRef",ref:R},[g("div",Ne,[o(d,{size:e(r).SM,text:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.description"),"data-test":"not-leasable-items-modal-description"},null,8,["size","text"]),g("ul",Re,[(u(!0),f(F,null,te(e(I),(p,z)=>(u(),f("li",{key:`not-leasable-item-${p?.variantSku}-${z}`,"data-test":"not-leasable-items-modal-item-list-item"},[o(J,{"gtm-context":"not-leasable",item:e(h)[z],"show-availability":!1,"show-quantity":!0},null,8,["item"])]))),128))])]),g("div",{ref_key:"modalActionsRef",ref:S,
1class:se([{shadow:!e(X)},"pt-3 flex justify-end pb-10 px-5 mm:px-10 bg-bg-pri sticky bottom-0 z-modal"]),"data-test-prefix":"not-leasable-item-modal-actions"},[o(P,{title:e(a)("evon.checkout.payment.leasing.troubleshooting.notLeasableItems.modal.confirm"),"full-widths":{xs:e(L).FULL,ms:e(L).AUTO},sizes:{xs:e(r).MD,ml:e(r).LG},"data-test-prefix":"not-leasable-item-modal-actions-submit",onClick:s[2]||(s[2]=p=>c.value=!1)},null,8,["title","full-widths","sizes"])],2)],512)]),_:1},8,["open","title"])],64)}}}),Be=Object.assign(Se,{__name:"MCheckoutPaymentLeasingNotLeasableItems"}),Pe={id:"content",class:"mb-40"},ze=q({__name:"troubleshooting",async setup(G){let m,l;Me({layout:"checkout",middleware:["checkout"]}),ye(xe.CHECKOUT);const b=V(),a=le(),y=([m,l]=D(()=>b.getQuote()),m=await m,l(),m),_=n(()=>{const i=T(Q,y.value.paymentMethod);return i?.bikeLeasing?i.bikeLeasing:null}),v=n(()=>_.value?.troubles?.cases??[]),h=n(()=>v.value.some(i=>i.troubleType===U.NotLeasableItemsInCart));v.value.length||a.back();const x=async()=>{await a.push(ce.CheckoutSummary)};return(i,w)=>{const M=Be;return u(),f("main",Pe,[e(h)?(u(),oe(M,{key:0,onItemsRemoved:x})):O("",!0)])}}}),tt=ze;export{tt 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.