(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[23],{157:function(e,t,n){"use strict";var c=n(20),o=n.n(c),a=n(26),r=n.n(a),i=n(81),s=n(7),u=n.n(s),l=n(126),b=(n(204),["className","showSpinner","children"]);t.a=function(e){var t=e.className,n=e.showSpinner,c=void 0!==n&&n,a=e.children,s=r()(e,b),f=u()("wc-block-components-button",t,{"wc-block-components-button--loading":c});return React.createElement(i.a,o()({className:f},s),c&&React.createElement(l.a,null),React.createElement("span",{className:"wc-block-components-button__text"},a))}},204:function(e,t){},354:function(e,t,n){"use strict";(function(e){var c=n(4),o=n.n(c),a=n(1),r=n(7),i=n.n(r),s=n(0),u=n(157),l=n(104),b=n(54),f=n(387),d=n(2);n(356),t.a=function(t){var n=t.checkoutPageId,c=t.className,r=Object(d.getSetting)("page-"+n,!1),m=Object(b.b)().isCalculating,v=Object(f.a)(),w=o()(v,2),p=w[0],h=w[1],k=Object(s.useState)(!1),E=o()(k,2),g=E[0],_=E[1];Object(s.useEffect)((function(){if("function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener){var t=function(){_(!1)};return e.addEventListener("pageshow",t),function(){e.removeEventListener("pageshow",t)}}}),[]);var j=React.createElement(u.a,{className:"wc-block-cart__submit-button",href:r||l.d,disabled:m,onClick:function(){return _(!0)},showSpinner:g},Object(a.__)("Proceed to Checkout",'woocommerce'));return React.createElement("div",{className:i()("wc-block-cart__submit",c)},p,React.createElement("div",{className:"wc-block-cart__submit-container"},j),"below"===h&&React.createElement("div",{className:"wc-block-cart__submit-container wc-block-cart__submit-container--sticky"},j))}}).call(this,n(355))},355:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},356:function(e,t){},387:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var c=n(4),o=n.n(c),a=n(0),r={bottom:0,left:0,opacity:0,pointerEvents:"none",position:"absolute",right:0,top:0,zIndex:-1},i=function(){var e=Object(a.useState)(""),t=o()(e,2),n=t[0],c=t[1],i=Object(a.useRef)(null),s=Object(a.useRef)(new IntersectionObserver((function(e){e[0].isIntersecting?c("visible"):c(e[0].boundingClientRect.top>0?"below":"above")}),{threshold:1}));return Object(a.useLayoutEffect)((function(){var e=i.current,t=s.current;return e&&t.observe(e),function(){t.unobserve(e)}}),[]),[React.createElement("div",{"aria-hidden":!0,ref:i,style:r}),n]}},406:function(e,t,n){"use strict";n.r(t);var c=n(154),o=n(354);t.default=Object(c.withFilteredAttributes)({checkoutPageId:{type:"number",default:0},lock:{type:"object",default:{move:!0,remove:!0}}})(o.a)}}]);