1import{a as O}from"/build/_shared/chunk-L4FEFM7G.js";import{a as h}from"/build/_shared/chunk-H6S7FWVP.js";import{d as f}from"/build/_shared/chunk-T36URGAI.js";var J=()=>{try{return Boolean(typeof document!="undefined"&&(window==null?void 0:window.ApplePaySession)&&ApplePaySession.canMakePayments())}catch{return!1}};var g=f(h()),B="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js",T="apple-pay-sdk-script",Q=(s=!0)=>{let[o,n]=(0,g.useState)(!1),[r,a]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{if(!s)return;if(document.getElementById(T)){n(!0);return}let e=document.createElement("script");return e.id=T,e.src=B,e.onload=()=>n(!0),e.onerror=()=>a(!0),document.body.appendChild(e),()=>{document.body.contains(e)&&document.body.removeChild(e)}},[s]),{loaded:o,error:r}};function D(s,o){if(s==null)return{};var n={};for(var r in s)if({}.hasOwnProperty.call(s,r)){if(o.indexOf(r)!==-1)continue;n[r]=s[r]}return n}function P(s,o){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},P(s,o)}function k(s,o){s.prototype=Object.create(o.prototype),s.prototype.constructor=s,P(s,o)}var b=f(h()),M=f(O());var A={disabled:!1};var v=f(h()),R=v.default.createContext(null);var N=function(o){return o.scrollTop};var I="unmounted",y="exited",c="entering",m="entered",C="exiting",l=function(s){k(o,s);function o(r,a){var e;e=s.call(this,r,a)||this;var t=a,i=t&&!t.isMounting?r.enter:r.appear,p;return e.appearStatus=null,r.in?i?(p=y,e.appearStatus=c):p=m:r.unmountOnExit||r.mountOnEnter?p=I:p=y,e.state={status:p},e.nextCallback=null,e}o.getDerivedStateFromProps=function(a,e){var t=a.in;return t&&e.status===I?{status:y}:null};var n=o.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var e=null;if(a!==this.props){var t=this.state.status;this.props.in?t!==c&&t!==m&&(e=c):(t===c||t===m)&&(e=C)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,e,t,i;return e=t=i=a,a!=null&&typeof a!="number"&&(e=a.exit,t=a.enter,i=a.appear!==void 0?a.appear:t),{exit:e,enter:t,appear:i}},n.updateStatus=function(a,e){if(a===void 0&&(a=!1),e!==null)if(this.cancelNextCallback(),e===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var t=this.props.nodeRef?this.props.nodeRef.current:M.default.findDOMNode(this);t&&N(t)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y&&this.setState({status:I})},n.performEnter=function(a){var e=this,t=this.props.enter,i=this.context?this.context.isMounting:a,p=this.props.nodeRef?[i]:[M.default.findDOMNode(this),i],S=p[0],u=p[1],x=this.getTimeouts(),E=i?x.appear:x.enter;if(!a&&!t||A.disabled){this.safeSetState({status:m},function(){e.props.onEntered(S)});return}this.props.onEnter(S,u),this.safeSetState({status:c},function(){e.props.onEntering(S,u),e.onTransitionEnd(E,function(){e.safeSetState({status:m},function(){e.props.onEntered(S,u)})})})},n.performExit=function(){var a=this,e=this.props.exit,t=this.getTimeouts(),i=this.props.nodeRef?void 0:M.default.findDOMNode(this);if(!e||A.disabled){this.safeSetState({status:y},function(){a.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:C},function(){a.props.onExiting(i),a.onTransitionEnd(t.exit,function(){a.safeSetState({status:y},function(){a.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,e){e=this.setNextCallback(e),this.setState(a,e)},n.setNextCallback=function(a){var e=this,t=!0;return this.nextCallback=function(i){t&&(t=!1,e.nextCallback=null,a(i))},this.nextCallback.cancel=function(){t=!1},this.nextCallback},n.onTransitionEnd=function(a,e){this.setNextCallback(e);var t=this.props.nodeRef?this.props.nodeRef.current:M.default.findDOMNode(this),i=a==null&&!this.props.addEndListener;if(!t||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[t,this.nextCallback],S=p[0],u=p[1];this.props.addEndListener(S,u)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===I)return null;var e=this.props,t=e.children,i=e.in,p=e.mountOnEnter,S=e.unmountOnExit,u=e.appear,x=e.enter,E=e.exit,W=e.timeout,U=e.addEndListener,w=e.onEnter,L=e.onEntering,z=e.onEntered,G=e.onExit,F=e.onExiting,q=e.onExited,j=e.nodeRef,_=D(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.default.createElement(R.Provider,{value:null},typeof t=="function"?t(a,_):b.default.cloneElement(b.default.Children.only(t),_))},o}(b.default.Component);l.contextType=R;l.propTypes={};function d(){}l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
1:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d};l.UNMOUNTED=I;l.EXITED=y;l.ENTERING=c;l.ENTERED=m;l.EXITING=C;var K=l;export{J as a,K as b,Q as c};
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.