PageSourceSearch

https://store.tomorrowland.com/cdn/shopifycloud/checkout-web/assets/c1/bff2ff9b.DxpvVf7S.js

js tomorrowland.com collected 2026-10-01 10:34:56 UTC 3,440 bytes, 1 lines download raw bytes

1import{V as e}from"./4c290a1e.D9lE9kmU.js";import{c as t}from"./2c1ab0fe.D_oO1jU7.js";const o=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function n(e,{buyerCountryCode:t,currencyCode:n}){if("SPLIT_PAY"!==e.loanType||0!==e.apr||!n)return e.installmentsCount;const r=t??("GBP"===n?"GB":void 0),a=o.find((t=>t.buyerCountryCode===r&&t.currencyCode===n&&t.scheduledPaymentCount===e.installmentsCount));return a?.buyerFacingPaymentCount??e.installmentsCount}function r(e,t,o){const n=window.webkit?.messageHandlers?.CheckoutSheetProtocolConsumer,r=[n,window.CheckoutSheetProtocolConsumer,o];for(const c of r)if(c&&"function"==typeof c?.postMessage)try{const o={name:t.handlerId,body:JSON.stringify(t.body)};return e.log("checkout_sheet_protocol_client_message_posted","Posting message to checkout sheet protocol consumer.",{handlerId:t.handlerId}),c.postMessage(JSON.stringify(o)),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"success"}}),!0}catch(a){return e.log("checkout_sheet_protocol_client_message_posting_failed","Error posting message to checkout sheet protocol consumer",{handlerId:t.handlerId,error:a instanceof Error?a.message:String(a)}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"failed"}}),console.info("Error received when posting message to checkout sheet protocol consumer",t,a),!1}return e.log("checkout_sheet_protocol_client_no_consumer_found","No checkout sheet protocol consumer found",{handlerId:t.handlerId}),e.counter({name:"checkout_sheet_protocol_event_emitted",value:1,exportImmediately:!0,attributes:{event:String(t.handlerId),status:"no_consumer"}}),!1}function a(){const e=window.opener||(window.parent===window?void 0:window.parent);return e?{postMessage(t){e.postMessage({_ecp:"2025-10",data:t},"*")}}:void 0}function c(t){const o=t??[];for(const n of o)if("direct"===n.method.type||n.method.type===e.CreditCard){const e=n.method.creditCardInstallments;if(e&&e>0)return e}for(const e of o)if("wallet"===e.method.type&&"SHOP_PAY"===e.method.name){const t=e.method.walletContent?.creditCardInstallments;if(t&&t>0)return t}}const s=(e,t=2)=>Math.round(e*10**t)/10**t,u=e=>({...e,amount:s(e.amount,t(e.currencyCode))}),d={USD:.5,AED:2,ARS:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,COP:.5,CZK:15,DKK:2.5,EUR:.5,GBP:.3,HKD:4,HUF:175,IDR:.5,ILS:.5,INR:.5,JPY:50,KRW:50,MXN:10,MYR:2,NOK:3,NZD:.5,PHP:.5,PLN:2,RON:2,RUB:.5,SEK:3,SGD:.5,THB:10,ZAR:.5},i=e=>e?d[e]??.5:.5;function l(e,o){if(!o)return e;const n=[];let r=o;for(const t of e){if(r.amount<=0)break;const e=t.availableBalance;if(!e||e.amount<=0)continue;const o=e.amount>=r.amount?{...t,availableBalance:r}:t;n.push(o),r=u({amount:r.amount-o.availableBalance.amount,currencyCode:r.currencyCode})}return function(e,o){const n=i(o.currencyCode);if(o.amount<=0||o.amount>=n)return e;const r=t(o.currencyCode),a=[...e];let c=s(n-o.amount,r);for(;c>0;){const e=a.pop();if(!e)break;const t=e.availableBalance;t.amount>c?(a.push({...e,availableBalance:u({amount:t.amount-c,currencyCode:t.currencyCode})}),c=0):c=s(c-t.amount,r)}return a}(n,r)}function m(e,t){return e&&t?l([e],t)[0]??null:e}export{n as a,i as b,m as c,u as d,l as e,a as f,c as g,r as p,s as r};

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.