File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/proceed-to-checkout-style.js.tar
woocommerce/packages/woocommerce-blocks/build/vendors--cart-blocks/proceed-to-checkout-style.js 0000644 00000000343 15154755205 0042711 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[126],{932:function(n,o){var c;c=function(){return this}();try{c=c||new Function("return this")()}catch(n){"object"==typeof window&&(c=window)}n.exports=c}}]); plugins/woocommerce/packages/woocommerce-blocks/build/cart-blocks/proceed-to-checkout-style.js 0000644 00000004360 15155001064 0041145 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content (window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[41],{931:function(e,t,c){"use strict";(function(e){var n=c(0),o=c(4),a=c.n(o),r=c(78),s=c(20),i=c(947),u=c(2),l=c(7),b=c(10),d=c(12),f=c(52),p=c(439),O=c(370);t.a=({checkoutPageId:t,className:c,buttonLabel:o})=>{const m=Object(u.getSetting)("page-"+t,!1),j=Object(l.useSelect)(e=>e(b.CHECKOUT_STORE_KEY).isCalculating()),[k,v]=Object(i.a)(),[h,w]=Object(n.useState)(!1);Object(n.useEffect)(()=>{if("function"!=typeof e.addEventListener||"function"!=typeof e.removeEventListener)return;const t=()=>{w(!1)};return e.addEventListener("pageshow",t),()=>{e.removeEventListener("pageshow",t)}},[]);const E=Object(l.useSelect)(e=>e(b.CART_STORE_KEY).getCartData()),g=Object(d.applyCheckoutFilter)({filterName:"proceedToCheckoutButtonLabel",defaultValue:o||O.a,arg:{cart:E}}),C=Object(d.applyCheckoutFilter)({filterName:"proceedToCheckoutButtonLink",defaultValue:m||s.f,arg:{cart:E}}),{dispatchOnProceedToCheckout:_}=Object(p.b)(),y=Object(n.createElement)(r.a,{className:"wc-block-cart__submit-button",href:C,disabled:j,onClick:e=>{_().then(t=>{t.some(f.b)?e.preventDefault():w(!0)})},showSpinner:h},g),S=Object(n.useMemo)(()=>getComputedStyle(document.body).backgroundColor,[]);return Object(n.createElement)("div",{className:a()("wc-block-cart__submit",c)},k,Object(n.createElement)("div",{className:"wc-block-cart__submit-container"},y),"below"===v&&Object(n.createElement)("div",{className:"wc-block-cart__submit-container wc-block-cart__submit-container--sticky",style:{backgroundColor:S}},y))}}).call(this,c(932))},946:function(e,t,c){"use strict";c.r(t);var n=c(61),o=c(931),a=c(492);t.default=Object(n.withFilteredAttributes)(a.a)(o.a)},947:function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var n=c(0);const o={bottom:0,left:0,opacity:0,pointerEvents:"none",position:"absolute",right:0,top:0,zIndex:-1},a=()=>{const[e,t]=Object(n.useState)(""),c=Object(n.useRef)(null),a=Object(n.useRef)(new IntersectionObserver(e=>{e[0].isIntersecting?t("visible"):t(e[0].boundingClientRect.top>0?"below":"above")},{threshold:1}));Object(n.useLayoutEffect)(()=>{const e=c.current,t=a.current;return e&&t.observe(e),()=>{t.unobserve(e)}},[]);return[Object(n.createElement)("div",{"aria-hidden":!0,ref:c,style:o}),e]}}}]);