vendor: 7,077 bytes, line 1
1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="821b7b60-bfe2-4b60-b15c-a14ebe0097f4",e._sentryDebugIdIdentifier="sentry-dbid-821b7b60-bfe2-4b60-b15c-a14ebe0097f4")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"780d26113b47d393c47cb1c05c242ac1d5ec2b22"},(self.webpackChunknew_icloudready_website_ui=self.webpackChunknew_icloudready_website_ui||[]).push([[2037],{7547:function(e,t,n){n.d(t,{HH:function(){return O},He:function(){return D},S8:function(){return C},t2:function(){return R}});var r=n(96540),o=n(5556);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return u="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},u(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(a){u=!0,o=a}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e,t,n){var o=!!n,i=r.useRef(n);r.useEffect((function(){i.current=n}),[n]),r.useEffect((function(){if(!o||!e)return function(){};var n=function(){i.current&&i.current.apply(i,arguments)};return e.on(t,n),function(){e.off(t,n)}}),[o,t,e,i])},d=function(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e}),[e]),t.current},y=function(e){return null!==e&&"object"===u(e)},m="[object Object]",b=function e(t,n){if(!y(t)||!y(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===m;if(o!==(Object.prototype.toString.call(n)===m))return!1;if(!o&&!r)return t===n;var i=Object.keys(t),c=Object.keys(n);if(i.length!==c.length)return!1;for(var u={},a=0;a<i.length;a+=1)u[i[a]]=!0;for(var s=0;s<c.length;s+=1)u[c[s]]=!0;var l=Object.keys(u);if(l.length!==i.length)return!1;var f=t,p=n;return l.every((function(t){return e(f[t],p[t])}))},v=function(e,t,n){return y(e)?Object.keys(e).reduce((function(r,o){var i=!y(t)||!b(e[o],t[o]);return n.includes(o)?(i&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):i?c(c({},r||{}),{},a({},o,e[o])):r}),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.",g=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(null===e||y(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;throw new Error(n)},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(function(e){return y(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return g(e,t)}))};var n=g(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},E=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.1.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},S=r.createContext(null);S.displayName="ElementsContext";var j=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},C=function(e){var t=e.stripe,n=e.options,o=e.children,i=r.useMemo((function(){return w(t)}),[t]),c=l(r.useState((function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(n):null}})),2),u=c[0],a=c[1];r.useEffect((function(){var e=!0,t=function(e){a((function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}}))};return"async"!==i.tag||u.stripe?"sync"!==i.tag||u.stripe||t(i.stripe):i.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[i,u,n]);var s=d(t);r.useEffect((function(){null!==s&&s!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[s,t]);var f=d(n);return r.useEffect((function(){if(u.elements){var e=v(n,f,["clientSecret","fonts"]);e&&u.elements.update(e)}}),[n,f,u.elements]),r.useEffect((function(){E(u.stripe)}),[u.stripe]),r.createElement(S.Provider,{value:u},o)};C.propTypes={stripe:o.any,options:o.object};var k=function(e){var t=r.useContext(S);return j(t,e)},O=function(){return k("calls useElements()").elements};o.func.isRequired;var x=r.createContext(null);x.displayName="CheckoutContext";var P=function(e){var t=r.useContext(x),n=r.useContext(S);if(t){if(n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."));return t}return j(n,e)},A=["mode"],_=function(e,t,n){var i,c="".concat((i=e).charAt(0).toUpperCase()+i.slice(1),"Element"),u=t?function(e){P("mounts <".concat(c,">"));var t=e.id,n=e.className;return r.createElement("div",{id:t,className:n})}:function(t){var n,o=t.id,i=t.className,u=t.options,a=void 0===u?{}
1:u,f=t.onBlur,y=t.onFocus,m=t.onReady,b=t.onChange,h=t.onEscape,g=t.onClick,w=t.onLoadError,E=t.onLoaderStart,S=t.onNetworksChange,j=t.onConfirm,C=t.onCancel,k=t.onShippingAddressChange,O=t.onShippingRateChange,x=t.onSavedPaymentMethodRemove,_=t.onSavedPaymentMethodUpdate,I=P("mounts <".concat(c,">")),N="elements"in I?I.elements:null,R="checkoutState"in I?I.checkoutState:null,D="success"===(null==R?void 0:R.type)||"loading"===(null==R?void 0:R.type)?R.sdk:null,L=l(r.useState(null),2),M=L[0],T=L[1],F=r.useRef(null),U=r.useRef(null);p(M,"blur",f),p(M,"focus",y),p(M,"escape",h),p(M,"click",g),p(M,"loaderror",w),p(M,"loaderstart",E),p(M,"networkschange",S),p(M,"confirm",j),p(M,"cancel",C),p(M,"shippingaddresschange",k),p(M,"shippingratechange",O),p(M,"savedpaymentmethodremove",x),p(M,"savedpaymentmethodupdate",_),p(M,"change",b),m&&(n="expressCheckout"===e?m:function(){m(M)}),p(M,"ready",n),r.useLayoutEffect((function(){if(null===F.current&&null!==U.current&&(N||D)){var t=null;if(D){var n=D,r=D;switch(e){case"paymentForm":t=r.createForm(a);break;case"payment":t=n.createPaymentElement(a);break;case"address":if(!("mode"in a))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var o=a.mode,i=s(a,A);if("shipping"===o)t=n.createShippingAddressElement(i);else{if("billing"!==o)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=n.createBillingAddressElement(i)}break;case"expressCheckout":t=n.createExpressCheckoutElement(a);break;case"currencySelector":t=D.createCurrencySelectorElement();break;case"taxId":t=n.createTaxIdElement(a);break;default:throw new Error("<".concat(c,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else N&&(t=N.create(e,a));F.current=t,T(t),t&&t.mount(U.current)}}),[N,D,a]);var B=d(a);return r.useEffect((function(){if(F.current){var e=v(a,B,["paymentRequest"]);e&&"update"in F.current&&F.current.update(e)}}),[a,B]),r.useLayoutEffect((function(){return function(){if(F.current&&"function"==typeof F.current.destroy)try{F.current.destroy(),F.current=null}catch(e){}}}),[]),r.createElement("div",{id:o,className:i,ref:U})};return u.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onConfirm:o.func,onCancel:o.func,onShippingAddressChange:o.func,onShippingRateChange:o.func,onSavedPaymentMethodRemove:o.func,onSavedPaymentMethodUpdate:o.func,options:o.object},u.displayName=c,u.__elementType=e,u},I="undefined"==typeof window,N=r.createContext(null);N.displayName="EmbeddedCheckoutProviderContext";var R=function(){return P("calls useStripe()").stripe},D=(_("auBankAccount",I),_("card",I),_("cardNumber",I),_("cardExpiry",I),_("cardCvc",I),_("iban",I),_("payment",I));_("expressCheckout",I),_("paymentRequestButton",I),_("linkAuthentication",I),_("address",I),_("shippingAddress",I),_("paymentMethodMessaging",I),_("taxId",I),_("issuingCardNumberDisplay",I),_("issuingCardCvcDisplay",I),_("issuingCardExpiryDisplay",I),_("issuingCardPinDisplay",I),_("issuingCardCopyButton",I)},22037:function(e,t,n){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},r(e)}n.d(t,{c:function(){return h}});var o,i="dahlia",c="https://js.stripe.com",u="".concat(c,"/").concat(i,"/stripe.js"),a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s=/^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",f=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(u).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},p=null,d=null,y=null,m=function(e){return null!==p?p:(p=new Promise((function(t,n){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(l),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e,t=document.querySelectorAll('script[src^="'.concat(c,'"]')),n=0;n<t.length;n++){var r=t[n];if(e=r.src,a.test(e)||s.test(e))return r}return null}();if(r&&e)console.warn(l);else if(r){if(r&&null!==y&&null!==d){var o;r.removeEventListener("load",y),r.removeEventListener("error",d),null===(o=r.parentNode)||void 0===o||o.removeChild(r),r=f(e)}}else r=f(e);y=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),d=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(n),r.addEventListener("load",y),r.addEventListener("error",d)}catch(i){return void n(i)}else t(null)}))).catch((function(e){return p=null,Promise.reject(e)}))}
1,b=!1,v=function(){return o||(o=m(null).catch((function(e){return o=null,Promise.reject(e)})))};Promise.resolve().then((function(){return v()})).catch((function(e){b||console.warn(e)}));var h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];b=!0;var o=Date.now();return v().then((function(e){return function(e,t,n){if(null===e)return null;var o=t[0];if("string"!=typeof o)throw new Error("Expected publishable key to be of type string, got type ".concat(r(o)," instead."));var c=o.match(/^pk_test/),u=function(e){return 3===e?"v3":e}(e.version),a=i;c&&u!==a&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("9.1.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.1.0",startTime:t})}(s,n),s}(e,t,o)}))}}}]);
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.