PageSourceSearch

https://mesondelaluna.com/_next/static/immutable/chunks/15reg7rjc_j8b.js

js mesondelaluna.com collected 2026-10-08 07:24:51 UTC 26,499 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,888096,e=>{"use strict";var t=e.i(843476),r=e.i(63209);let n=(0,e.i(475254).default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.i(592338);var a=e.i(159570),o=e.i(690923),i=e.i(498595);let u={cargando:"Cargando las opciones de pago seguras",lento:"Sigue cargando. Tu conexión va lenta y no hace falta reintentar.",tituloError:"No pudimos cargar el formulario de pago",cuerpoError:"Puede deberse a tu conexión o a una extensión del navegador que bloquea los pagos. Tu reserva sigue guardada.",reintentar:"Reintentar",ayuda:"Si vuelve a fallar, prueba con otro navegador o desactiva el bloqueador de anuncios."},c={cargando:"Loading secure payment options",lento:"Still loading. Your connection is slow, so there is no need to retry yet.",tituloError:"We could not load the payment form",cuerpoError:"This can be caused by your connection or a browser extension blocking payments. Your reservation is still saved.",reintentar:"Try again",ayuda:"If it fails again, try another browser or turn off your ad blocker."};function s({locale:e,intentStatus:r}){let n="canceled"===r,a="succeeded"===r||"processing"===r||"requires_capture"===r,o="es"===e?n?{titulo:"Este cobro ya se canceló",cuerpo:"No podemos volver a abrir el formulario sobre ese cobro. Si quieres la reserva, empieza una nueva."}:a?{titulo:"Este pago ya se realizó",cuerpo:"Tu tarjeta ya fue cobrada por esta reserva. No volveremos a cobrarte. Revisa tu reserva y, si no la ves confirmada, escríbenos."}:{titulo:"Este cobro ya no acepta el formulario",cuerpo:"Stripe no permite abrirlo otra vez. Si ya pagaste, no volveremos a cobrarte."}:n?{titulo:"This charge was already canceled",cuerpo:"The payment form cannot be opened again for that charge. Start a new reservation if you still want the stay."}:a?{titulo:"This payment already went through",cuerpo:"Your card was already charged for this reservation. We will not charge you again. Check your reservation and contact us if you do not see it confirmed."}:{titulo:"This charge can no longer open the form",cuerpo:"Stripe will not open it again. If you already paid, we will not charge you a second time."};return(0,t.jsxs)("div",{className:"w-full flex flex-col gap-2 rounded-md border border-neutral-200 bg-white p-4",role:"status",children:[(0,t.jsx)("p",{className:"font-semibold",children:o.titulo}),(0,t.jsx)("p",{className:"text-sm text-neutral-600",children:o.cuerpo})]})}e.s(["PaymentAlreadySettled",0,s,"PaymentElementFrame",0,function({status:e,locale:l,onRetry:d,className:p,children:f}){let m="es"===l?u:c;return(0,t.jsxs)("div",{className:(0,o.cn)("relative w-full min-h-[200px]",p),children:["settled"===e?null:f,"loading"===e||"slow"===e?(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col gap-3 bg-white","aria-live":"polite","aria-busy":"true",children:[(0,t.jsx)(i.Skeleton,{className:"h-10 w-full"}),(0,t.jsx)(i.Skeleton,{className:"h-10 w-full"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(i.Skeleton,{className:"h-10 w-1/2"}),(0,t.jsx)(i.Skeleton,{className:"h-10 w-1/2"})]}),(0,t.jsx)("span",{className:"text-xs text-neutral-500",children:"slow"===e?m.lento:m.cargando})]}):null,"settled"===e?(0,t.jsx)(s,{locale:l,intentStatus:"terminal"}):null,"failed"===e||"timed_out"===e?(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start justify-center gap-3 bg-white p-4 border border-neutral-200 rounded-md",role:"alert",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-destructive",children:[(0,t.jsx)(r.AlertCircle,{size:18}),(0,t.jsx)("p",{className:"font-semibold",children:m.tituloError})]}),(0,t.jsx)("p",{className:"text-sm text-neutral-600",children:m.cuerpoError}),(0,t.jsxs)(a.Button,{type:"button",variant:"outline",onClick:d,className:"gap-2",children:[(0,t.jsx)(n,{size:14}),m.reintentar]}),(0,t.jsx)("p",{className:"text-xs text-neutral-500",children:m.ayuda})]}):null]})},"mensajesBoton",0,{es:{preparando:"Estamos preparando el formulario de pago.",lento:"Tu conexión va lenta. El formulario sigue cargando.",terminos:"Acepta los términos y condiciones para continuar.",metodo:"Elige cómo quieres pagar para continuar.",plan:"Elige un plan de meses para continuar."},en:{preparando:"We are getting the payment form ready.",lento:"Your connection is slow. The payment form is still loading.",terminos:"Accept the terms and conditions to continue.",metodo:"Choose how you want to pay to continue.",plan:"Choose a monthly plan to continue."}}],888096)},541186,67564,701057,300632,e=>{"use strict";var t=e.i(271645),r=e.i(84516);function n(e,t){let r=JSON.stringify({event:e,...t});try{if("u">typeof navigator&&navigator.sendBeacon)return void navigator.sendBeacon("/api/checkout/telemetry",new Blob([r],{type:"application/json"}));fetch("/api/checkout/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0}
1).catch(()=>{})}catch{}}e.s(["paymentIntentIdFromSecret",0,function(e){if(!e)return;let[t]=e.split("_secret_");return t?.startsWith("pi_")?t:void 0},"sendCheckoutTelemetry",0,n,"usePaymentElementTelemetry",0,function({website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,enabled:s=!0,canAutoRetry:l=!1,onAutomaticRetry:d,paymentIntentId:p,mount:f}){let m=(0,r.useTracking)(),[y,h]=(0,t.useState)("loading"),v=(0,t.useRef)(Date.now()),g=(0,t.useRef)(!1),b=(0,t.useRef)(!1),w=(0,t.useRef)(null),S=(0,t.useRef)(!1),E=(0,t.useRef)(!1),x=(0,t.useRef)(null),_=(0,t.useRef)(l);_.current=l;let C=(0,t.useRef)(d);C.current=d;let k=(0,t.useRef)(void 0),j=(0,t.useRef)({website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,paymentIntentId:p,mount:f});j.current={website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,paymentIntentId:p,mount:f};let P=(0,t.useCallback)((e,t)=>{let r=j.current;m({eventName:e,trackingContext:{website:r.website,reservation:r.currentReservation},eventData:{payment_provider:"stripe",stripe_account:r.account||void 0,stripe_account_context:r.stripeAccountContext||void 0,currency:r.currency,locale:r.locale,...t}})},[m]),T=(0,t.useCallback)((e,t)=>{let r=j.current;n(e,{reservationId:r.currentReservation?.id,websiteId:r.website?.id,propertyId:r.website?.property?.id,propertyType:r.website?.property?.type,account:r.account,stripeAccountContext:r.stripeAccountContext,currency:r.currency,locale:r.locale,paymentIntentId:r.paymentIntentId,mount:r.mount,paymentMethodType:k.current,...t})},[]),R=(0,t.useRef)(P);R.current=P;let A=(0,t.useRef)(T);A.current=T;let N=(0,t.useCallback)(e=>{x.current&&(clearTimeout(x.current),x.current=null);let t=Date.now()-v.current,r=b.current,n=w.current;if(h("ready"),!g.current||r){if(g.current=!0,b.current=!1,w.current=null,r){let r=n?Date.now()-n:void 0;P("Payment form ready late",{elapsed_ms:t,recovered_after_ms:r,evidence:e}),T("payment_form_ready_late",{elapsedMs:t,recoveredAfterMs:r,evidence:e});return}"ready"===e&&P("Payment form ready",{elapsed_ms:t})}},[T,P]),O=(0,t.useCallback)(()=>N("ready"),[N]),I=(0,t.useCallback)(e=>{if(g.current)return;let t=e?.error,r=Date.now()-v.current;if(t?.type==="invalid_request_error"&&("payment_intent_unexpected_state"===t.code||/terminal state/i.test(t.message||""))){g.current=!0,h("settled"),T("payment_form_terminal_intent",{elapsedMs:r,intentStatus:"terminal",errorType:t?.type,errorCode:t?.code,errorMessage:t?.message});return}t?.type==="api_connection_error"&&_.current?C.current?.():(g.current=!0,h("failed"),P("Payment form error",{elapsed_ms:r,error_type:t?.type,error_code:t?.code,error:t?.message}),T("payment_form_load_error",{elapsedMs:r,errorType:t?.type,errorCode:t?.code,errorMessage:t?.message}))},[T,P]),D=(0,t.useCallback)(e=>{e?.value?.type&&(k.current=e.value.type),N("interaction"),E.current||(E.current=!0,P("Payment form interaction",{elapsed_ms:Date.now()-v.current,payment_method_type:k.current}))},[N,P]);return(0,t.useEffect)(()=>{if(!s)return;v.current=Date.now(),g.current=!1,b.current=!1,w.current=null,S.current=!1,E.current=!1,h("loading");let e=(e,t)=>{S.current||(S.current=!0,R.current("Payment form timeout",{elapsed_ms:t,warn_reason:e}),A.current("payment_form_timeout",{elapsedMs:t,warnReason:e}))},t=setTimeout(()=>{if(g.current)return;let t=Date.now()-v.current;if(t<23e3){b.current=!0,w.current=Date.now(),e("deadline",t);return}g.current=!0,b.current=!0,w.current=Date.now(),h("slow"),R.current("Payment form slow",{elapsed_ms:t}),A.current("payment_form_slow",{elapsedMs:t})},25e3),r=setTimeout(()=>{if(!b.current||S.current)return;let t=Date.now()-v.current;t<175e3?e("deadline",t):x.current=setTimeout(()=>{x.current=null,b.current&&!S.current&&(h("timed_out"),e("deadline",Date.now()-v.current))},1e4)},18e4),n=()=>{b.current&&!S.current&&(x.current&&(clearTimeout(x.current),x.current=null),h("timed_out"),e("leave",Date.now()-v.current))};return window.addEventListener("pagehide",n),()=>{clearTimeout(t),clearTimeout(r),x.current&&(clearTimeout(x.current),x.current=null),window.removeEventListener("pagehide",n)}},[s]),{status:y,handleReady:O,handleLoadError:I,handleChange:D,selectedMethodRef:k}}],541186);let a=new Set(["requires_payment_method","requires_confirmation","requires_action"]),o=new Set(["succeeded","processing","requires_capture"]);e.s(["usePaymentIntentMount",0,function(e,r){let[n,i]=(0,t.useState)({kind:"pending"});return(0,t.useEffect)(()=>
1{if(!r||!e)return;let t=!1;return e.then(async e=>{if(!t){if(!e)return void i({kind:"open"});try{let{paymentIntent:n,error:u}=await e.retrievePaymentIntent(r);if(t)return;if(u||!n)return void i({kind:"open"});if(o.has(n.status))return void i({kind:"paid",intentStatus:n.status});if("canceled"===n.status)return void i({kind:"canceled",intentStatus:"canceled"});if(a.has(n.status))return void i({kind:"open"});i({kind:"open"})}catch{t||i({kind:"open"})}}}),()=>{t=!0}},[r,e]),n}],67564);let i=new Set(["payment_intent_authentication_failure"]);e.s(["classifyChargeError",0,function(e){return e?.code&&i.has(e.code)?"payment_authentication_failed":e?.type==="invalid_request_error"?"payment_configuration_error":"payment_confirm_failed"},"useChargeTelemetry",0,function({website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,paymentMethodTypeRef:s}){let l=(0,r.useTracking)(),d=(0,t.useRef)({website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,paymentMethodTypeRef:s});d.current={website:e,currentReservation:a,currency:o,account:i,stripeAccountContext:u,locale:c,paymentMethodTypeRef:s};let p=(0,t.useRef)(null),f=(0,t.useCallback)((e,t)=>{let r=d.current;n(e,{reservationId:r.currentReservation?.id,websiteId:r.website?.id,propertyId:r.website?.property?.id,propertyType:r.website?.property?.type,account:r.account,stripeAccountContext:r.stripeAccountContext,currency:r.currency,locale:r.locale,paymentMethodType:r.paymentMethodTypeRef?.current,...t})},[]),m=(0,t.useCallback)((e,t,r)=>{let n=r?Date.now()-r:void 0;p.current={startedAt:Date.now(),paymentIntentId:e,preparationMs:n},f("payment_confirm_started",{paymentIntentId:e,intentStatus:t,preparationMs:n})},[f]),y=(0,t.useCallback)((e,t={})=>{let r=p.current;p.current=null;let n=r?Date.now()-r.startedAt:void 0,a=d.current;f(e,{elapsedMs:n,preparationMs:r?.preparationMs,paymentIntentId:r?.paymentIntentId,...t}),l({eventName:"Payment charge finished",trackingContext:{website:a.website,reservation:a.currentReservation},eventData:{payment_provider:"stripe",payment_method_type:a.paymentMethodTypeRef?.current,outcome:e,elapsed_ms:n,currency:a.currency,locale:a.locale,...t}})},[f,l]);return(0,t.useEffect)(()=>{let e=()=>{let e=p.current;e&&(p.current=null,f("payment_confirm_interrupted",{elapsedMs:Date.now()-e.startedAt,paymentIntentId:e.paymentIntentId}))};return window.addEventListener("pagehide",e),()=>window.removeEventListener("pagehide",e)},[f]),{beginCharge:m,endCharge:y}}],701057);let u=["payment_intent","payment_intent_client_secret","redirect_status","payment"],c=new Set(["succeeded","requires_capture"]);e.s(["buildAuthenticationReturnUrl",0,function(){let e=new URL(window.location.href);return u.forEach(t=>e.searchParams.delete(t)),e.toString()},"useAuthenticationReturn",0,function({stripe:e,enabled:r,onSettled:n,onUnsettled:a}){let o=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||!r||o.current)return;let t=new URLSearchParams(window.location.search).get("payment_intent_client_secret");t&&(o.current=!0,(async()=>{let r,{paymentIntent:o,error:i}=await e.retrievePaymentIntent(t);return(r=new URL(window.location.href),u.forEach(e=>r.searchParams.delete(e)),window.history.replaceState({},"",r.toString()),i||!o)?await a(i?.message||"No pudimos confirmar el resultado de tu pago."):c.has(o.status)?await n(o):await a("No podemos autenticar tu método de pago. Elige otro método y vuelve a intentarlo.",o)})())},[r,n,a,e])}],300632)},612448,911860,540259,e=>{"use strict";var t,r=e.i(271645),n=e.i(745009);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,u=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=function(e,t,n){var a=!!n,o=r.default.useRef(n);r.default.useEffect(function(){o.current=n},[n]),r.default.useEffect(function(){if(!a||!e)return function(){};var r=function(){if(o.current)return o.current.apply(o,arguments)};return e.on(t,r),function(){e.off(t,r)}},[a,t,e,o])},d=function(e){var t=r.default.useRef(e);return r.default.useEffect(function(){t.current=e},[e]),t.current},p=function(e){return null!==e&&"object"===s(e)},f="[object Object]",m=function e(t,r){if(t===r)return!0;if(!p(t)||!p(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;var a=Object.prototype.toString.call(t)===f;if(a!==(Object.prototype.toString.call(r)===f))return!1;if(!a&&!n)return t===r;var o=Object.keys(t),i=Object.keys(r);if(o.length!==i.length)return!1;for(var u={},c=0;c<o.length;c+=1)u[o[c]]=!0;for(var s=0;s<i.length;s+=1)u[i[s]]=!0;var l=Object.keys(u);return l.length===o.length&&l.every(function(n){return e(t[n],r[n])})},y=function(e,t,r){return p(e)?Object.keys(e).reduce(function(n,a){var i=!p(t)||!m(e[a],t[a]);return r.includes(a)?(i&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),n):i?u(u({},n||{}),{},o({},a,e[a])):n},null):null},h="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(null===e||p(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(p(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return v(e,t)})};var r=v(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},b=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"7.0.0"}),e.registerAppInfo({name:"react-stripe-js",version:"7.0.0",url:"https://stripe.com/docs/stripe-js/react"}))},w=r.default.createContext(null);w.displayName="ElementsContext";var S=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},E=function(e){var t=e.stripe,n=e.options,a=e.children,o=r.default.useMemo(function(){return g(t)},[t]),i=c(r.default.useState(function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(n):null}}),2),u=i[0],s=i[1],l=r.default.useRef(!1);r.default.useEffect(function(){var e=!0,t=function(e){s(function(t){return t.stripe||l.current?t:(l.current=!0,{stripe:e,elements:e.elements(n)})})};return"async"!==o.tag||u.stripe?"sync"!==o.tag||u.stripe||t(o.stripe):o.stripePromise.then(function(r){r&&e&&t(r)}),function(){e=!1,l.current=!1}},[o,u,n]);var p=d(t);r.default.useEffect(function(){null!==p&&p!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[p,t]);var f=d(n);return r.default.useEffect(function(){if(u.elements){var e=y(n,f,["clientSecret","fonts"]);e&&u.elements.update(e)}},[n,f,u.elements]),r.default.useEffect(function(){b(u.stripe)}
1,[u.stripe]),r.default.createElement(w.Provider,{value:u},a)};E.propTypes={stripe:n.default.any,options:n.default.object};n.default.func.isRequired,r.default.createContext(null).displayName="CheckoutContext";var x=r.default.createContext(null);x.displayName="CheckoutSdkContext";var _=function(e){var t=r.default.useContext(x),n=r.default.useContext(w);if(!t)return S(n,e);if(!n)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."))},C=["mode"],k=function(e,t,a){var o="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),i=t?function(e){_("mounts <".concat(o,">"));var t=e.id,n=e.className;return r.default.createElement("div",{id:t,className:n})}:function(t){var n,a=t.id,i=t.className,u=t.options,s=void 0===u?{}:u,p=t.onBlur,f=t.onFocus,m=t.onReady,h=t.onChange,v=t.onEscape,g=t.onClick,b=t.onLoadError,w=t.onLoaderStart,S=t.onNetworksChange,E=t.onConfirm,x=t.onCancel,k=t.onShippingAddressChange,j=t.onShippingRateChange,P=t.onSavedPaymentMethodRemove,T=t.onSavedPaymentMethodUpdate,R=t.onAvailablePaymentMethodsChange,A=_("mounts <".concat(o,">")),N="elements"in A?A.elements:null,O="checkoutSdk"in A?A.checkoutSdk:null,I=c(r.default.useState(null),2),D=I[0],L=I[1],M=r.default.useRef(null),q=r.default.useRef(null);l(D,"blur",p),l(D,"focus",f),l(D,"escape",v),l(D,"click",g),l(D,"loaderror",b),l(D,"loaderstart",w),l(D,"networkschange",S),l(D,"confirm",E),l(D,"cancel",x),l(D,"shippingaddresschange",k),l(D,"shippingratechange",j),l(D,"savedpaymentmethodremove",P),l(D,"savedpaymentmethodupdate",T),l(D,"availablepaymentmethodschange",R),l(D,"change",h),m&&(n="expressCheckout"===e?m:function(){m(D)}),l(D,"ready",n),r.default.useLayoutEffect(function(){if(null===M.current&&null!==q.current&&(N||O)){var t=null;if(O)switch(e){case"paymentForm":t=O.createForm(s);break;case"payment":t=O.createPaymentElement(s);break;case"address":if("mode"in s){var r=s.mode,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(s,C);if("shipping"===r)t=O.createShippingAddressElement(n);else if("billing"===r)t=O.createBillingAddressElement(n);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=O.createExpressCheckoutElement(s);break;case"currencySelector":t=O.createCurrencySelectorElement();break;case"taxId":t=O.createTaxIdElement(s);break;case"contactDetails":t=O.createContactDetailsElement();break;case"linkSignup":if("createLinkSignupElement"in O)t=O.createLinkSignupElement(s);else throw Error("<LinkSignupElement> requires <CheckoutElementsProvider> and is not supported inside <CheckoutFormProvider>.");break;case"terms":t=O.createTermsElement(s);break;default:throw Error("<".concat(o,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}else N&&(t=N.create(e,s));M.current=t,L(t),t&&t.mount(q.current)}},[N,O,s]);var U=d(s);return r.default.useEffect(function(){if(M.current){var e=y(s,U,[]);e&&"update"in M.current&&M.current.update(e)}},[s,U]),r.default.useLayoutEffect(function(){return function(){if(M.current&&"function"==typeof M.current.destroy)try{M.current.destroy(),M.current=null}catch(e){}}},[]),r.default.createElement("div",{id:a,className:i,ref:q})};return i.propTypes={id:n.default.string,className:n.default.string,onChange:n.default.func,onBlur:n.default.func,onFocus:n.default.func,onReady:n.default.func,onEscape:n.default.func,onClick:n.default.func,onLoadError:n.default.func,onLoaderStart:n.default.func,onNetworksChange:n.default.func,onConfirm:n.default.func,onCancel:n.default.func,onShippingAddressChange:n.default.func,onShippingRateChange:n.default.func,onSavedPaymentMethodRemove:n.default.func,onSavedPaymentMethodUpdate:n.default.func,onAvailablePaymentMethodsChange:n.default.func,options:n.default.object},i.displayName=o,i.__elementType=e,i},j="u"<typeof window;r.default.createContext(null).displayName="EmbeddedCheckoutProviderContext",k("auBankAccount",j);var P=k("card",j);k("cardNumber",j),k("cardExpiry",j),k("cardCvc",j),k("currencySelector",j),k("iban",j);var T=k("payment",j);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}k("expressCheckout",j),k("linkAuthentication",j),k("linkSignup",j),k("contactDetails",j),k("address",j),k("shippingAddress",j),k("paymentMethodMessaging",j),k("taxId",j),k("issuingCardNumberDis
1play",j),k("issuingCardCvcDisplay",j),k("issuingCardExpiryDisplay",j),k("issuingCardPinDisplay",j),k("issuingCardCopyButton",j),k("terms",j),e.s(["CardElement",0,P,"Elements",0,E,"PaymentElement",0,T,"useElements",0,function(){var e;return(e="calls useElements()",S(r.default.useContext(w),e)).elements},"useStripe",0,function(){return _("calls useStripe()").stripe}],612448);var A="endive",N="https://js.stripe.com",O="".concat(N,"/").concat(A,"/stripe.js"),I=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,D=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,L="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",M=function(){for(var e=document.querySelectorAll('script[src^="'.concat(N,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,I.test(r)||D.test(r))return n}return null},q=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(O).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},U=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"10.0.0",startTime:t})},B=null,F=null,W=function(e){var t=function(){return new Promise(function(t,r){if("u"<typeof window||"u"<typeof document)return void t(null);if(window.Stripe&&e&&console.warn(L),window.Stripe)return void t(window.Stripe);try{var n,a=M();a&&e?console.warn(L):a?a&&null!==F&&null!==B&&(a.removeEventListener("load",F),a.removeEventListener("error",B),null==(n=a.parentNode)||n.removeChild(a),a=q(e)):a=q(e),F=function(){window.Stripe?t(window.Stripe):r(Error("Stripe.js not available"))},B=function(e){r(Error("Failed to load Stripe.js",{cause:e}))},a.addEventListener("load",F),a.addEventListener("error",B)}catch(e){r(e);return}}).catch(function(e){return Promise.reject(e)})};return t().catch(function(){return t()})},Y=function(e,t,r){if(null===e)return null;var n,a=t[0];if("string"!=typeof a)throw Error("Expected publishable key to be of type string, got type ".concat(R(a)," instead."));var o=a.match(/^pk_test/),i=3===(n=e.version)?"v3":n;o&&i!==A&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("10.0.0"," expected Stripe.js@").concat(A,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=e.apply(void 0,t);return U(u,r),u},z=!1,$=function(){return t||(t=W(null).catch(function(e){return t=null,Promise.reject(e)}))};Promise.resolve().then(function(){return $()}).catch(function(e){z||console.warn(e)}),e.s(["loadStripe",0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];z=!0;var n=Date.now();return $().then(function(e){return Y(e,t,n)})}],911860),e.s([],540259)}]);

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.