PageSourceSearch

https://mit-nrw.de/_nuxt/Ci-gXAsk.js

js mit-nrw.de collected 2026-10-02 23:04:29 UTC 18,130 bytes, 84 lines download raw bytes

1import{_ as nt}from"./BuJ2QuOM.js";import{_ as it}from"./By6Fwaa_.js";import{_ as ot}from"./B_tH0ChE.js";import{_ as rt}from"./BN9I8gih.js";import{_ as lt,a as ct,b as ut,c as pt,d as dt,e as _t,f as mt}from"./Ot3WxHt6.js";import{_ as vt}from"./JrMHDKVe.js";import{_ as ht}from"./Boz9OGl4.js";import{aa as Pe,d as yt,an as ft,aj as gt,b as bt,e as kt,H as wt,w as P,f as U,aR as ae,J as I,u as xt,a as St,aS as Ct,aT as $t,k as n,l as i,m as a,j as e,Q as k,N as l,V as j,r as y,q as w,O as m,n as ne,av as ie,x as K,M as Se,P as Pt,t as zt,_ as At,aU as Rt,a1 as u,z as g,aw as It,aV as Ce,aW as Et,G as Mt}from"./Cdg6EMof.js";import{l as qt,_ as Ot}from"./BFjNtOgU.js";import{u as Vt,_ as Ft,S as Nt}from"./BWbYhNrX.js";import{r as Tt,P as Ut}from"./CdgpCVC7.js";import"./BVWyMDuv.js";import"./DivuUe28.js";import"./Dw8P0qyA.js";import"./BJ8Crz9v.js";import"./iT9e5Eij.js";import"./VqtiOy_X.js";import"./94QqJdpf.js";const Bt=Pe`
2query CheckoutPaymentSections($purchase: Int!) {
3    CO_CheckoutPaymentSections(purchase: $purchase) {
4        id
5        key
6        area
7        settings {
8            key
9            value
10        }
11        contents {
12            id
13            key
14            title
15            text
16            settings {
17                key
18                value
19            }
20            hyperlink {
21                id
22                href
23                name
24                type
25                target
26                anchor
27                menuItem {
28                    id
29                    path
30                }
31            }
32            images {
33                id
34                alt
35                type
36                width
37                height
38                mime
39                processing_query_string
40                ai_disclosure
41                ai_label_display
42                ai_label_display_effective
43                ai_source_type
44                source {
45                    id
46                    mime
47                    url
48                    visibility
49                    ai_source_type
50                }
51                processedFile {
52                    id
53                    mime
54                    url
55                    visibility
56                }
57                pivot {
58                    id
59                    fit
60                    method
61                    crop
62                    x y z w h
63                }
64                settings {
65                    processing {
66                        fit
67                        crop
68                        x y z w h
69                    }
70                }
71            }
72        }
73    }
74}
75`,$e=Pe`
76mutation ReauthorizeExpressPayment($purchase: Int!, $expires: Int, $signature: String) {
77    CO_ReauthorizeExpressPayment(purchase: $purchase, expires: $expires, signature: $signature) {
78        id
79        grand_total
80        payment_gateway_response_id
81        payment_authorized_total
82    }
83}
84`,Dt={class:"express-review-page"},Ht={class:"container"},Lt={class:"title"},Gt={class:"hint"},jt={class:"panel mb-8"},Kt={class:"box"},Qt={class:"panel mb-8"},Wt={class:"box"},Jt={class:"icon"},Xt={class:"data"},Yt={class:"field-preview"},Zt={class:"label"},es={class:"field-value"},ts={key:0,class:"field-preview"},ss={class:"label"},as={class:"field-value"},ns={key:1,class:"express-review-edit"},is={class:"double-field"},os={class:"form-field"},rs={class:"label",for:"express-first-name"},ls={class:"control"},cs={class:"form-field"},us={class:"label",for:"express-last-name"},ps={class:"control"},ds={class:"form-field"},_s={class:"label",for:"express-email"},ms={class:"control"},vs={class:"express-review-actions"},hs={class:"icon"},ys={key:2,class:"express-review-actions"},fs={key:0,class:"panel mb-8"},gs={class:"box"},bs={class:"icon"},ks={key:0,class:"help shipping-method-hint"},ws={class:"icon"},xs={key:2,class:"express-review-actions"},Ss=["disabled"],Cs={class:"panel"},$s={class:"box"},Ps={class:"preview"},zs={class:"icon"},As={class:"data"},Rs={class:"field-preview"},Is={class:"label"},Es={class:"field-value"},Ms={class:"text-2xl"},qs={key:2,class:"alert warning mt-4"},Os={class:"content"},Vs=["innerHTML"],Fs={key:3,class:"alert danger mt-4"},Ns={class:"content"},Ts={key:0,class:"alert info mt-4"},Us={class:"content"},Bs={key:1,class:"alert info mt-4"},Ds={class:"content"}
84,Hs={key:2,class:"alert warning mt-4"},Ls={class:"content"},Gs={key:3,class:"alert warning mt-4"},js={class:"content"},Ks={class:"express-review-actions"},Qs={key:2,class:"button primary",type:"button",disabled:""},Ws={key:5,class:"alert warning mt-4"},Js={class:"content"},Xs={key:6,class:"express-review-actions"},Ys=["disabled"],Zs={key:1,class:"alert danger"},ea={class:"content"},ta={key:0,class:"express-review-leaving"},sa={class:"express-review-leaving-hint"},aa=yt({name:"ExpressReviewPage",__name:"[signature]",async setup(na){let v,h;const{t:r}=ft(),Q=gt(),ze=bt(),W=kt(),f=wt();[v,h]=P(()=>U("shop")),await v,h(),[v,h]=P(()=>U("common")),await v,h(),[v,h]=P(()=>U("form")),await v,h(),[v,h]=P(()=>U("address")),await v,h(),[v,h]=P(()=>U("revocation")),await v,h();const b=u(()=>{const t=Q.params.id,s=Number(Array.isArray(t)?t[0]:t);return Number.isFinite(s)?s:null}),S=u(()=>{const t=Q.params.expires,s=Number(Array.isArray(t)?t[0]:t);return Number.isFinite(s)?s:null}),C=u(()=>{const t=Q.params.signature;return typeof t=="string"?t:Array.isArray(t)?t[0]:void 0}),{data:Ae,error:oe,refresh:ia}=([v,h]=P(()=>ae({query:Ut,variables:{purchase_id:b.value,expires:S.value,signature:C.value},clientId:"default",key:`express-review-${b.value}`})),v=await v,h(),v),$=g(null),J=u(()=>Ae?.value?.CO_PurchaseByToken??null),c=u(()=>J.value?$.value?{...J.value,...$.value}:J.value:null),re=u(()=>oe?.value?r(Tt(oe.value)):null),{ready:le,load:Re}=Vt({get clientId(){return c.value?.paypal_client_id},get currency(){return c.value?.currency}});I(()=>c.value?.paypal_client_id,t=>{t&&Re()},{immediate:!0}),I(()=>c.value?.payed_at,t=>{t&&ze.replace(`/order/${b.value}/${S.value}/${C.value}`)},{immediate:!0});const z=g(),E=g(!1),M=g(!1),B=g(!1),_=It({account:!1,billing:!1,shipping:!1,shipping_method:!1}),d=u(()=>f.checkout.form.account),{data:ce}=([v,h]=P(()=>ae({query:Bt,variables:{purchase:b.value},clientId:"default"})),v=await v,h(),v),X=u(()=>ce?.value?.CO_CheckoutPaymentSections||[]),ue=u(()=>Array.isArray(ce?.value?.CO_CheckoutPaymentSections)),q=u(()=>f.checkout.form.checkboxes||[]),Y=u(()=>X.value.filter(t=>t.key==="notice-text")),Ie=t=>X.value.find(s=>s.id===t.id),O=u(()=>{const t=d.value;return!!(String(t?.first_name||"").trim()&&String(t?.last_name||"").trim()&&/.+@.+\..+/.test(String(t?.email||"").trim()))}),D=u(()=>ue.value?q.value.filter(t=>t.required).every(t=>t.checked):!1),Z=u(()=>{const t=c.value;return{name:t?.shipping_method_name,service:t?.shipping_method_service,price_type:t?.shipping_fee?"flat-rate":"free",prices:t?.shipping_fee?[{type:"main",value:t.shipping_fee}]:[]}}),Ee=u(()=>!["click-and-collect","none"].includes(Z.value?.service)),pe=t=>{if(!t)return{};const{__typename:s,...p}=t;return p};f.checkout.form.account.first_name="",f.checkout.form.account.last_name="",f.checkout.form.account.email="",f.checkout.form.account.shipping_address={},f.checkout.form.account.billing_address={};const ee=()=>{const t=c.value;if(!t)return;const s=f.checkout.form,p=t.purchaser?.shippingAddress;s.account.first_name=s.account.first_name||t.purchaser?.first_name||"",s.account.last_name=s.account.last_name||t.purchaser?.last_name||"",s.account.email=s.account.email||t.purchaser?.email||"",_.shipping||(s.account.shipping_address={...s.account.shipping_address,...pe(p)});const L=t.purchaser?.billingAddress;_.billing||(s.account.billing_address={...s.account.billing_address,...pe(L?.street?L:p)}),s.shipping=Z.value,s.account.billing_address?.street||(_.billing=!0)};I(c,ee,{immediate:!0,deep:!0});const Me=xt(),qe=St();let de=!1;const Oe=Me.hook("member:hydrated",()=>{de=!0,ee()});I(()=>qe.hydrating,(t,s)=>{s===!0&&t===!1&&!de&&ee()}),Ct(()=>Oe?.()),I(X,t=>{!t.length||f.checkout.form.checkboxes?.length||(f.checkout.form.checkboxes=$t(t,!!W.CMS?.enabledExtensionKeys?.includes("newsletter")))},{immediate:!0});const te=g([]),Ve=async()=>{_.shipping_method=!0;const{data:t}=await ae({query:Nt,variables:{shop:parseInt(String(c.value?.shop?.id)),country:c.value?.purchaser?.shippingAddress?.country},clientId:"default"});te.value=t?.value?.CO_ShippingOptions||[]},_e=u(()=>c.value?.shippingMethod?.id),Fe=t=>({id:t.id,name:t.name,description:t.description,price_type:t.fee?"flat-rate":"free",prices:t.fee?[{type:"main",value:t.fee}]:[]}),A=g(!1),V=u(()=>{const t=c.value?.payment_authorized_total;return typeof t=="number"?t:null}),me=u(()=>Math.round(Number(c.value?.grand_total||0)*100)),Ne=u(()=>V.value===null?!0:me.value>Math.round(V.value*100)),Te=u(()=>V.value===null?!0:me.value!==Math.round(V.value*100)),H=g(!1),ve=u(()=>H.value?!0:R.value?Te.value||A.value:Ne.value&&V.value!==null),R=u(()=>c.value?.payment_method_service==="paypal"),F=g();I([ve,()=>c.value?.stripe_publishable_key],async([t,s])=>{!t||R.value||F.value||!s||(F.value=await qt(String(s)))},{immediate:!0});const Ue=u(()=>R.value?le.value:!!F.value),x=g(!1),N=g(!1),he=g(!1),se=g(null),Be=async t=>{if(!(x.value||t.id===String(_e.value))){se.value=t.id,x.value=!0;try{const s="purchase/update",p=await f.updateExpressShipping({action:s,token:await z.value(s)},b.value,{shippingMethodId:t.id},{expires:S.value,signature:C.value});if(!p){N.value=!0;return}N.value=!1,A.value=!0,$.value=p,_.shipping_method=!1}finally{x.value=!1,se.value=null}}},De=async()=>
84{if(!x.value){x.value=!0;try{const t="purchase/update",s=d.value.shipping_address,p=await f.updateExpressShipping({action:t,token:await z.value(t)},b.value,{address:{street:s?.street||"",zipcode:s?.zipcode||"",city:s?.city||"",country:s?.country?.value||s?.country||""}},{expires:S.value,signature:C.value});if(!p){N.value=!0;return}N.value=!1,_.shipping=!1,A.value=!0,$.value=p}finally{x.value=!1}}},He=async()=>{const{mutate:t}=Ce($e),p=(await t({purchase:parseInt(String(b.value)),expires:S.value,signature:C.value}))?.data?.CO_ReauthorizeExpressPayment;return p&&($.value={...$.value,...p}),{id:p?.id,payment_gateway_response_id:p?.payment_gateway_response_id,errors:[]}},Le=async()=>{H.value=!0;const{mutate:t}=Ce($e),p=(await t({purchase:parseInt(String(b.value)),expires:S.value,signature:C.value}))?.data?.CO_ReauthorizeExpressPayment;return p&&($.value={...$.value,...p}),{id:p?.id,clientSecret:p?.payment_gateway_response_id,errors:[]}},Ge=u(()=>c.value?.items?.[0]?.article?.name||c.value?.items?.[0]?.name||r("shop:your-order")),je=async()=>{A.value=!1;try{await fe()}finally{H.value=!1,M.value||(B.value=!1)}},Ke=()=>{A.value=!1,M.value=!0,window.location.assign(`/order/${b.value}/${S.value}/${C.value}`)},ye=()=>{H.value=!1,B.value=!1,A.value=!0},fe=async()=>{if(!(!b.value||E.value)){E.value=!0;try{const t="purchase/payment/approve";await f.approvePayment({action:t,token:await z.value(t)},b.value,{first_name:d.value.first_name,last_name:d.value.last_name,email:d.value.email,billingAddress:d.value.billing_address},Et(q.value),{expires:S.value,signature:C.value}),M.value=!0,window.location.assign(`/order/${b.value}/${S.value}/${C.value}`)}finally{M.value||(E.value=!1)}}};return(t,s)=>{const p=nt,L=it,G=ot,Qe=rt,ge=lt,be=ct,We=vt,ke=ut,Je=ht,Xe=pt,Ye=dt,Ze=_t,et=mt,tt=zt,st=Ot,at=Ft,we=At;return n(),i("section",Dt,[a("div",Ht,[e(c)?(n(),i(k,{key:0},[a("h1",Lt,l(e(r)("shop:express-review-title")),1),a("p",Gt,l(e(r)("shop:express-review-hint")),1),a("div",jt,[a("div",Kt,[(n(!0),i(k,null,j(e(c).items,o=>(n(),y(p,{key:o.id,item:o,currency:e(c).currency},null,8,["item","currency"]))),128))])]),a("div",Qt,[a("div",Wt,[e(_).account?m("",!0):(n(),i("button",{key:0,class:"preview",onClick:s[0]||(s[0]=o=>e(_).account=!0)},[a("div",Jt,[w(L,{class:"default-icon"}),w(G,{class:"edit-icon p-2"})]),a("div",Xt,[a("div",Yt,[a("div",Zt,l(e(r)("name")),1),a("div",es,l(e(d).first_name)+" "+l(e(d).last_name),1)]),e(d).email?(n(),i("div",ts,[a("div",ss,l(e(r)("email-address")),1),a("div",as,l(e(d).email),1)])):m("",!0)])])),e(_).account?(n(),i("div",ns,[a("div",is,[a("fieldset",os,[a("label",rs,l(e(r)("common:first-name")),1),a("div",ls,[ne(a("input",{class:"input",id:"express-first-name",type:"text",autocomplete:"given-name","onUpdate:modelValue":s[1]||(s[1]=o=>e(d).first_name=o)},null,512),[[ie,e(d).first_name]])])]),a("fieldset",cs,[a("label",us,l(e(r)("common:last-name")),1),a("div",ps,[ne(a("input",{class:"input",id:"express-last-name",type:"text",autocomplete:"family-name","onUpdate:modelValue":s[2]||(s[2]=o=>e(d).last_name=o)},null,512),[[ie,e(d).last_name]])])])]),a("fieldset",ds,[a("label",_s,l(e(r)("form:email")),1),a("div",ms,[ne(a("input",{class:"input",id:"express-email",type:"email",autocomplete:"email","onUpdate:modelValue":s[3]||(s[3]=o=>e(d).email=o)},null,512),[[ie,e(d).email]])])]),a("menu",vs,[a("button",{class:"button primary",type:"button",onClick:s[4]||(s[4]=o=>e(_).account=!1)},l(e(r)("save")),1)])])):m("",!0),e(d).billing_address||e(_).billing?(n(),i(k,{key:2},[s[11]||(s[11]=a("hr",{class:"my-4"},null,-1)),e(_).billing?(n(),y(be,{key:1,type:"billing",active:!0,"show-label":!0,label:e(r)("address:billing-address")},null,8,["label"])):(n(),y(ge,{key:0,data:e(d).billing_address,"show-label":!0,"show-name":!1,label:e(r)("address:billing-address"),onClick:s[5]||(s[5]=o=>e(_).billing=!0)},{icon:K(()=>[a("div",hs,[w(Qe,{class:"default-icon"}),w(G,{class:"edit-icon p-2"})])]),_:1},8,["data","label"])),e(_).billing?(n(),i("menu",ys,[a("button",{class:"button primary",type:"button",onClick:s[6]||(s[6]=o=>e(_).billing=!1)},l(e(r)("save")),1)])):m("",!0)],64)):m("",!0)])]),e(c).requires_shipping?(n(),i("div",fs,[a("div",gs,[e(_).shipping_method?(n(),i("div",{key:1,class:Se(["shipping-method-choices",{"is-busy":e(x)}])}
84,[(n(!0),i(k,null,j(e(te),(o,T)=>(n(),y(ke,{key:o.id,data:Fe(o),active:o.id===String(e(se)??e(_e)),"show-divider":e(te).length>T+1,"show-label":!1,onSelect:xe=>Be(o)},null,8,["data","active","show-divider","onSelect"]))),128)),e(x)?(n(),i("p",ks,l(e(r)("shop:express-review-repricing")),1)):m("",!0)],2)):(n(),y(ke,{key:0,data:e(Z),"show-divider":!1,"show-label":!0,onClick:Ve},{icon:K(()=>[a("div",bs,[w(We,{class:"default-icon"}),w(G,{class:"edit-icon p-2"})])]),_:1},8,["data"])),e(d).shipping_address&&e(Ee)?(n(),i(k,{key:2},[s[12]||(s[12]=a("hr",{class:"my-4"},null,-1)),e(_).shipping?(n(),y(be,{key:1,type:"shipping",active:!0,"show-label":!0,label:e(r)("address:shipping-address")},null,8,["label"])):(n(),y(ge,{key:0,data:e(d).shipping_address,"show-label":!0,"show-name":!1,label:e(r)("address:shipping-address"),onClick:s[7]||(s[7]=o=>e(_).shipping=!0)},{icon:K(()=>[a("div",ws,[w(Je,{class:"default-icon","stroke-width":1.3}),w(G,{class:"edit-icon p-2"})])]),_:1},8,["data","label"])),e(_).shipping?(n(),i("menu",xs,[a("button",{class:"button primary",type:"button",disabled:e(x),onClick:De},l(e(x)?e(r)("shop:express-review-repricing"):e(r)("save")),9,Ss)])):m("",!0)],64)):m("",!0)])])):m("",!0),a("div",Cs,[a("div",$s,[a("div",Ps,[a("div",zs,[w(Xe)]),a("div",As,[a("div",Rs,[a("div",Is,l(e(r)("shop:total-amount")),1),a("div",Es,[a("h3",Ms,l(("moneyFormat"in t?t.moneyFormat:e(Pt))(e(c).grand_total,e(c).currency||"EUR")),1)])])])]),e(Y).length?(n(),i(k,{key:0},[s[13]||(s[13]=a("hr",{class:"my-4"},null,-1)),(n(!0),i(k,null,j(e(Y),(o,T)=>(n(),y(Ye,{key:o.id,data:o,"show-divider":e(Y).length>T+1},null,8,["data","show-divider"]))),128))],64)):m("",!0),e(q).length?(n(),i(k,{key:1},[s[14]||(s[14]=a("hr",{class:"my-4"},null,-1)),(n(!0),i(k,null,j(e(q),(o,T)=>(n(),y(Ze,{modelValue:o.checked,"onUpdate:modelValue":xe=>o.checked=xe,key:o.id,data:Ie(o),"show-divider":e(q).length>T+1},null,8,["modelValue","onUpdate:modelValue","data","show-divider"]))),128))],64)):m("",!0),e(W).whatsappOrderUpdatesAvailable?(n(),i(k,{key:2},[s[15]||(s[15]=a("hr",{class:"my-4"},null,-1)),w(et)],64)):m("",!0)])]),e(W).cookieConsent===!0?(n(),y(tt,{key:1,onReady:s[8]||(s[8]=o=>z.value=o)})):m("",!0),e(ue)?m("",!0):(n(),i("div",qs,[a("div",Os,[a("p",{innerHTML:e(r)("form-temporarily-unavailable")},null,8,Vs)])])),e(N)?(n(),i("div",Fs,[a("div",Ns,[a("p",null,l(e(r)("shop:express-review-reprice-failed")),1)])])):m("",!0),e(ve)?(n(),i(k,{key:4},[e(R)?(n(),i("div",Ts,[a("div",Us,[a("p",null,l(e(r)("shop:express-review-reapprove-hint")),1)])])):(n(),i("div",Bs,[a("div",Ds,[a("p",null,l(e(r)("shop:express-review-reauthorize-hint")),1)])])),e(he)&&!e(D)?(n(),i("div",Hs,[a("div",Ls,[a("p",null,l(e(r)("shop:express-review-terms-required")),1)])])):m("",!0),e(O)?m("",!0):(n(),i("div",Gs,[a("div",js,[a("p",null,l(e(r)("shop:express-review-buyer-required")),1)])])),a("menu",Ks,[a("div",{class:Se(["reapprove-button",{"is-blocked":!e(D)||!e(O),"has-wallet":e(Ue)}])},[e(R)&&e(le)?(n(),y(st,{key:0,recaptcha:e(z),"create-draft":He,"funding-source":"paypal","button-label":"buynow",onPaid:Ke,onError:ye},null,8,["recaptcha"])):!e(R)&&e(F)?(n(),y(at,{key:1,stripe:e(F),amount:e(c).grand_total,currency:e(c).currency||"EUR",recaptcha:e(z),"create-draft":Le,"requires-shipping":!1,"item-name":e(Ge),onReview:je,onError:ye,onBusy:s[9]||(s[9]=o=>B.value=o)},null,8,["stripe","amount","currency","recaptcha","item-name"])):(n(),i("button",Qs,l(e(r)("shop:express-review-confirm")),1))],2),!e(D)||!e(O)?(n(),i("div",{key:0,class:"reapprove-blocker",onClick:s[10]||(s[10]=o=>he.value=!0)})):m("",!0)])],64)):e(O)?(n(),i("menu",Xs,[a("button",{class:"button primary",type:"button",disabled:e(E)||!e(D)||!e(O),onClick:fe},l(e(E)?e(r)("shop:express-review-confirming"):e(r)("shop:express-review-confirm")),9,Ys)])):(n(),i("div",Ws,[a("div",Js,[a("p",null,l(e(r)("shop:express-review-buyer-required")),1)])]))],64)):e(re)?(n(),i("div",Zs,[a("div",ea,[a("p",null,l(e(re)),1)])])):(n(),y(we,{key:2,class:"page-spinner",size:10,thickness:2}))]),(n(),y(Rt,{to:"body"},[e(M)||e(B)?(n(),i("div",ta,[w(we,{size:10,thickness:2},{default:K(()=>[a("p",sa,l(e(r)("shop:express-review-finalizing")),1)]),_:1})])):m("",!0)]))])}}}),Sa=Mt(aa,[["__scopeId","data-v-7e89b656"]]);export{Sa 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.