Submit
Path:
~
/
home
/
getwphos
/
www
/
techniquetechs
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
cart-blocks
/
File Content:
proceed-to-checkout-frontend.js
"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[9936],{892:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var c=o(1616),a=o(1609),r=o(851),n=o(6087),u=o(3013),s=o(2516),l=o(6239),i=o(5703),d=o(7143),k=o(7594),b=o(1e3),p=o(3993),m=o(7827);const h=(0,o(7723).__)("Proceed to Checkout","woocommerce"),f={checkoutPageId:{type:"number",default:0},lock:{type:"object",default:{move:!0,remove:!0}},buttonLabel:{type:"string",default:h}},g=(0,c.withFilteredAttributes)(f)((({checkoutPageId:e,className:t,buttonLabel:c})=>{const f=(0,i.getSetting)("page-"+e,!1),g=(0,d.useSelect)((e=>e(k.checkoutStore).isCalculating())),[C,w]=(0,l.E)(),[v,y]=(0,n.useState)(!1);(0,n.useEffect)((()=>{if("function"!=typeof o.g.addEventListener||"function"!=typeof o.g.removeEventListener)return;const e=()=>{y(!1)};return o.g.addEventListener("pageshow",e),()=>{o.g.removeEventListener("pageshow",e)}}),[]);const E=(0,d.useSelect)((e=>e(k.cartStore).getCartData())),_=(0,b.applyCheckoutFilter)({filterName:"proceedToCheckoutButtonLabel",defaultValue:c||h,arg:{cart:E}}),L=(0,b.applyCheckoutFilter)({filterName:"proceedToCheckoutButtonLink",defaultValue:f||s.tn,arg:{cart:E}}),{dispatchOnProceedToCheckout:S}=(0,m.e)(),N=(0,a.createElement)(u.A,{className:"wc-block-cart__submit-button",href:L,disabled:g,onClick:e=>{S().then((t=>{t.some(p.isErrorResponse)?e.preventDefault():y(!0)}))},showSpinner:v},_),F=(0,n.useMemo)((()=>getComputedStyle(document.body).backgroundColor),[]),A="below"===w,B=(0,r.A)("wc-block-cart__submit-container",{"wc-block-cart__submit-container--sticky":A});return(0,a.createElement)("div",{className:(0,r.A)("wc-block-cart__submit",t)},C,(0,a.createElement)("div",{className:B,style:A?{backgroundColor:F}:{}},N))}))}}]);
Submit
FILE
FOLDER
Name
Size
Permission
Action
cart-accepted-payment-methods-frontend.js
362 bytes
0644
cart-accepted-payment-methods-style.js
191 bytes
0644
cart-cross-sells-frontend.js
386 bytes
0644
cart-cross-sells-products-frontend.js
11078 bytes
0644
cart-cross-sells-products-style.js
191 bytes
0644
cart-cross-sells-style.js
363 bytes
0644
cart-express-payment-frontend.js
722 bytes
0644
cart-express-payment-style.js
490 bytes
0644
cart-items-frontend.js
339 bytes
0644
cart-items-style.js
318 bytes
0644
cart-line-items-frontend.js
373 bytes
0644
cart-line-items-style.js
192 bytes
0644
cart-order-summary-frontend.js
733 bytes
0644
cart-order-summary-style.js
546 bytes
0644
cart-totals-frontend.js
365 bytes
0644
cart-totals-style.js
333 bytes
0644
empty-cart-frontend.js
575 bytes
0644
empty-cart-style.js
544 bytes
0644
filled-cart-frontend.js
480 bytes
0644
filled-cart-style.js
462 bytes
0644
order-summary-coupon-form-frontend.js
514 bytes
0644
order-summary-coupon-form-style.js
191 bytes
0644
order-summary-discount-frontend.js
828 bytes
0644
order-summary-discount-style.js
191 bytes
0644
order-summary-fee-frontend.js
464 bytes
0644
order-summary-fee-style.js
192 bytes
0644
order-summary-heading-frontend.js
514 bytes
0644
order-summary-heading-style.js
494 bytes
0644
order-summary-shipping-frontend.js
1753 bytes
0644
order-summary-shipping-style.js
192 bytes
0644
order-summary-subtotal-frontend.js
452 bytes
0644
order-summary-subtotal-style.js
192 bytes
0644
order-summary-taxes-frontend.js
808 bytes
0644
order-summary-taxes-style.js
257 bytes
0644
order-summary-totals-frontend.js
294 bytes
0644
order-summary-totals-style.js
270 bytes
0644
proceed-to-checkout-frontend.js
1806 bytes
0644
proceed-to-checkout-style.js
2115 bytes
0644
N4ST4R_ID | Naxtarrr