PageSourceSearch

https://www.qlocktwo.com/_nuxt/9B4d05eJ.js

js qlocktwo.com collected 2026-09-25 09:56:27 UTC 6,662 bytes, 1 lines download raw bytes

1import{f as C,J as T,u as x,b as v,c as _,M as B,ac as q,e as p,H as A,at as $,a4 as y,q as g,aw as N,I as h,y as M,v as R,ah as P,x as w,r as b}from"./B-He9Tc_.js";import{u as U,T as D}from"./Wn3B7X3h.js";const L={key:0,class:"divide divide-neutrals-0 -my-8"},H={class:"py-8"},V={class:"grid grid-cols-4 gap-8"},W={class:"col-span-full lg:col-span-1"},F={class:"col-span-full lg:col-span-3"},J={class:"flex flex-col h-full justify-between"},z={class:"flex items-baseline justify-between"},K=["innerHTML"],Z={class:"font-semibold"},G={key:0,class:"mt-8"},Q=["onClick"],X=C({__name:"Items",props:{items:{},editable:{type:Boolean}},setup(t){const{t:e}=T(),{removeItem:n}=x(),s=async r=>{await n(r.uid),U({trackingType:D.REMOVE_FROM_CART,product:r})},a=r=>{const{__typename:l}=r;if(l==="ConfigurableCartItem"){const{configured_variant:u}=r;return u.small_image.url}else{const{product:u}=r;return u.image.url}},c=r=>{const{__typename:l}=r;if(l==="ConfigurableCartItem"){const{configured_variant:u}=r;return u.small_image.label}else{const{product:u}=r;return u.image.label}},o=r=>{const{__typename:l,product:u,quantity:m}=r;let d="";if(d+=`<h4 class="mb-2">${u.name}</h4>`,d+=`<dl class="space-y-1"><div class="flex gap-1 text-sm"><dt class="uppercase">${e("quantity")}:</dt><dd>${m}</dd></div>`,l==="ConfigurableCartItem"){const{configurable_options:f}=r;d=f.reduce((i,O)=>{const{option_label:j,value_label:k}=O;return i+=`<div class="flex gap-1 text-sm"><dt class="uppercase">${j}:</dt><dd>${k}</dd></div>`,i},d)}return d+="</dl>",d};return(r,l)=>{const u=$;return t.items?(v(),_("div",L,[(v(!0),_(B,null,q(t.items,m=>(v(),_("div",H,[p("div",V,[p("div",W,[A(u,{src:a(m),alt:c(m),class:"w-40 h-40 object-cover",format:"avif,webp",quality:"80",sizes:"100vw md:480px",densities:"x1 x2"},null,8,["src","alt"])]),p("div",F,[p("div",J,[p("div",z,[p("div",{innerHTML:o(m)},null,8,K),p("span",Z,y(("useInternationalPrice"in r?r.useInternationalPrice:g(N))(m.prices.row_total_including_tax.value,m.prices.row_total_including_tax.currency)),1)]),t.editable?(v(),_("div",G,[p("button",{onClick:d=>s(m)},y(g(e)("remove")),9,Q)])):h("",!0)])])])]))),256))])):h("",!0)}}}),de=Object.assign(X,{__name:"CheckoutCartItems"});function Y(t,e){var n=document.querySelector('script[src="'.concat(t,'"]'));if(n===null)return null;var s=E(t,e),a=n.cloneNode();if(delete a.dataset.uidAuto,Object.keys(a.dataset).length!==Object.keys(s.dataset).length)return null;var c=!0;return Object.keys(a.dataset).forEach(function(o){a.dataset[o]!==s.dataset[o]&&(c=!1)}),c?n:null}function ee(t){var e=t.url,n=t.attributes,s=t.onSuccess,a=t.onError,c=E(e,n);c.onerror=a,c.onload=s,document.head.insertBefore(c,document.head.firstElementChild)}function te(t){var e="https://www.paypal.com/sdk/js";t.sdkBaseUrl&&(e=t.sdkBaseUrl,delete t.sdkBaseUrl);var n=t,s=Object.keys(n).filter(function(o){return typeof n[o]<"u"&&n[o]!==null&&n[o]!==""}).reduce(function(o,r){var l=n[r].toString();return r=ne(r),r.substring(0,4)==="data"||r==="crossorigin"?o.attributes[r]=l:o.queryParams[r]=l,o},{queryParams:{},attributes:{}}),a=s.queryParams,c=s.attributes;return a["merchant-id"]&&a["merchant-id"].indexOf(",")!==-1&&(c["data-merchant-id"]=a["merchant-id"],a["merchant-id"]="*"),{url:"".concat(e,"?").concat(re(a)),attributes:c}}function ne(t){var e=function(n,s){return(s?"-":"")+n.toLowerCase()};return t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,e)}function re(t){var e="";return Object.keys(t).forEach(function(n){e.length!==0&&(e+="&"),e+=n+"="+t[n]}),e}function E(t,e){e===void 0&&(e={});var n=document.createElement("script");return n.src=t,Object.keys(e).forEach(function(s){n.setAttribute(s,e[s]),s==="data-csp-nonce"&&n.setAttribute("nonce",e["data-csp-nonce"])}),n}function ae(t,e){if(e===void 0&&(e=Promise),S(t,e),typeof document>"u")return e.resolve(null);var n=te(t),s=n.url,a=n.attributes,c=a["data-namespace"]||"paypal",o=I(c);return Y(s,a)&&o?e.resolve(o):se({url:s,attributes:a},e).then(function(){var r=I(c);if(r)return r;throw new Error("The window.".concat(c," global variable is not available."))})}function se(t,e){e===void 0&&(e=Promise),S(t,e);var n=t.url,s=t.attributes;
1if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof s<"u"&&typeof s!="object")throw new Error("Expected attributes to be an object.");return new e(function(a,c){if(typeof document>"u")return a();ee({url:n,attributes:s,onSuccess:function(){return a()},onError:function(){var o=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return c(o)}})})}function I(t){return window[t]}function S(t,e){if(typeof t!="object"||t===null)throw new Error("Expected an options object.");if(typeof e<"u"&&typeof e!="function")throw new Error("Expected PromisePonyfill to be a function.")}const oe=(t,e)=>{const{paypal:n}=M().public,s=n.websiteCredentials[t];return{mode:n.mode,...s}},ce={class:"mt-4"},ie=C({__name:"Paypal",props:{disabled:{type:Boolean}},emits:["submit"],setup(t,{emit:e}){const n=e,{currentLocation:s}=R(),{cart:a}=x(),c=w(()=>a.value?.items),o=w(()=>a.value?.prices),r=b(null),l=b(),u=b(),m=async()=>{t.disabled||n("submit",{orderId:l.value.value})};return P(async()=>{{const{code:d}=s.value?.store??{};if(!d||!a.value||(u.value=oe(d),!u.value?.clientId))return;try{const f=await ae({clientId:u.value.clientId,currency:o.value?.grand_total.currency??"EUR",disableFunding:"card,credit,paylater,bancontact,blik,sepa,giropay,sofort"});f&&f.Buttons({createOrder(){return fetch("/api/shop/payments/paypal/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeCode:d,reference:a.value.id,amount:{currency:o.value.grand_total.currency,value:o.value.grand_total.value},items:c.value.map(i=>({name:i.product.name,sku:i.product.sku,quantity:i.quantity,unit_amount:{currency_code:i.prices.price_including_tax.currency,value:i.prices.price_including_tax.value}})),shippingAddress:a.value.shipping_addresses?.at(0)})}).then(i=>i.json()).then(i=>i.id)},async onApprove(i){r.value=i,i.orderID&&(document.getElementById("ppOrderId").value=i.orderID,document.getElementById("submitPaypal")?.click())}}).render("#paypal-button-container")}catch(f){console.error("failed to load the PayPal JS SDK script",f)}}}),(d,f)=>(v(),_("div",null,[f[1]||(f[1]=p("div",{id:"paypal-button-container"},null,-1)),p("div",ce,[p("input",{type:"hidden",ref_key:"ppOrderId",ref:l,id:"ppOrderId",name:"ppOrderId"},null,512),p("button",{type:"button",id:"submitPaypal",class:"hidden",onClick:f[0]||(f[0]=i=>m())}," submit ")])]))}}),pe=Object.assign(ie,{__name:"CheckoutPaymentPaypal"});export{de as _,pe as a};

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.