Submit
Path:
~
/
home
/
getwphos
/
www
/
brueggemannfh
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
woocommerce
/
File Content:
product-button.js
import*as t from"@woocommerce/stores/woocommerce/cart";import*as e from"@wordpress/interactivity";var o={1401:e=>{e.exports=t}},a={};function r(t){var e=a[t];if(void 0!==e)return e.exports;var n=a[t]={exports:{}};return o[t](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const n=(s={getContext:()=>e.getContext,store:()=>e.store,useLayoutEffect:()=>e.useLayoutEffect},u={},r.d(u,s),u),i="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";var s,u,c=function(t){return t.IDLE="IDLE",t.SLIDE_OUT="SLIDE-OUT",t.SLIDE_IN="SLIDE-IN",t}(c||{});const{state:d}=(0,n.store)("woocommerce",{},{lock:i}),{state:m}=(0,n.store)("woocommerce/add-to-cart-with-options",{},{lock:i}),{state:y}=(0,n.store)("woocommerce/product-data",{},{lock:i}),l={state:{get quantity(){const t=d.cart?.items.filter((t=>t.id===p.productId));if(0===t.length)return 0;if("variation"!==t[0]?.type)return t.reduce(((t,e)=>t+e.quantity),0);const e=m?.selectedAttributes,o=t.filter((t=>((t,e)=>!(!Array.isArray(t.variation)||!Array.isArray(e))&&t.variation.length===e.length&&t.variation.every((({raw_attribute:t,value:o})=>e.some((e=>e.attribute===t&&(e.value.toLowerCase()===o.toLowerCase()||e.value&&""===o))))))(t,e)));return o.reduce(((t,e)=>t+e.quantity),0)},get slideInAnimation(){const{animationStatus:t}=(0,n.getContext)();return t===c.SLIDE_IN},get slideOutAnimation(){const{animationStatus:t}=(0,n.getContext)();return t===c.SLIDE_OUT},get addToCartText(){const{animationStatus:t,tempQuantity:e,addToCartText:o,productType:a,groupedProductIds:r,hasPressedButton:i,inTheCartText:s}=(0,n.getContext)(),u=t===c.IDLE||t===c.SLIDE_OUT?e||0:p.quantity;if("grouped"===a){const t=r?.map((t=>{const e=d.cart?.items.find((e=>e.id===t));return e?.quantity||0}));return t?.some((t=>t>0))&&i?s:o}return u>0?s.replace("###",u.toString()):o},get displayViewCart(){const{displayViewCart:t}=(0,n.getContext)();return!!t&&p.quantity>0},get productId(){const{productId:t}=(0,n.getContext)();return t===y?.productId&&y?.variationId||t}},actions:{*addCartItem(){const t=(0,n.getContext)();yield Promise.resolve().then(r.bind(r,1401));const{actions:e}=(0,n.store)("woocommerce",{},{lock:i});yield e.addCartItem({id:p.productId,quantity:p.quantity+t.quantityToAdd,type:t.productType},{showCartUpdatesNotices:!1}),t.displayViewCart=!0},*refreshCartItems(){yield Promise.resolve().then(r.bind(r,1401));const{actions:t}=(0,n.store)("woocommerce",{},{lock:i});t.refreshCartItems()},handleAnimationEnd(t){const e=(0,n.getContext)();"slideOut"===t.animationName?e.animationStatus=c.SLIDE_IN:"slideIn"===t.animationName&&(e.tempQuantity=p.quantity,e.animationStatus=c.IDLE)},handlePressedState(){const t=(0,n.getContext)();(void 0===m?.isFormValid||m?.isFormValid)&&(t.hasPressedButton=!0,t.tempQuantity!==p.quantity&&t.animationStatus===c.IDLE&&(t.animationStatus=c.SLIDE_OUT))}},callbacks:{syncTempQuantityOnLoad(){const t=(0,n.getContext)();(0,n.useLayoutEffect)((()=>{t.tempQuantity=p.quantity}),[])},startAnimation(){const t=(0,n.getContext)();t.tempQuantity!==p.quantity&&t.animationStatus===c.IDLE&&(t.animationStatus=c.SLIDE_OUT)}}},{state:p}=(0,n.store)("woocommerce/product-button",l,{lock:!0});
Submit
FILE
FOLDER
Name
Size
Permission
Action
accordion-group-style-rtl.css
1856 bytes
0644
accordion-group-style.css
1854 bytes
0644
accordion-group.js
679 bytes
0644
add-to-cart-form-editor-rtl.css
919 bytes
0644
add-to-cart-form-editor.css
919 bytes
0644
add-to-cart-form-style-rtl.css
7193 bytes
0644
add-to-cart-form-style.css
7196 bytes
0644
add-to-cart-form.js
1016 bytes
0644
add-to-cart-with-options-editor-rtl.css
1112 bytes
0644
add-to-cart-with-options-editor.css
1111 bytes
0644
add-to-cart-with-options-grouped-product-item-selector-style-rtl.css
2677 bytes
0644
add-to-cart-with-options-grouped-product-item-selector-style.css
2677 bytes
0644
add-to-cart-with-options-grouped-product-item-style-rtl.css
175 bytes
0644
add-to-cart-with-options-grouped-product-item-style.css
174 bytes
0644
add-to-cart-with-options-grouped-product-selector.js
5877 bytes
0644
add-to-cart-with-options-quantity-selector-style-rtl.css
2422 bytes
0644
add-to-cart-with-options-quantity-selector-style.css
2421 bytes
0644
add-to-cart-with-options-quantity-selector.js
6905 bytes
0644
add-to-cart-with-options-style-rtl.css
3122 bytes
0644
add-to-cart-with-options-style.css
3123 bytes
0644
add-to-cart-with-options-variation-selector-attribute-name-style-rtl.css
249 bytes
0644
add-to-cart-with-options-variation-selector-attribute-name-style.css
248 bytes
0644
add-to-cart-with-options-variation-selector-attribute-options-style-rtl.css
2204 bytes
0644
add-to-cart-with-options-variation-selector-attribute-options-style.css
2203 bytes
0644
add-to-cart-with-options-variation-selector.js
8537 bytes
0644
add-to-cart-with-options.js
4694 bytes
0644
mini-cart-footer-block-editor-rtl.css
153 bytes
0644
mini-cart-footer-block-editor.css
152 bytes
0644
mini-cart.js
14710 bytes
0644
product-button-style-rtl.css
3936 bytes
0644
product-button-style.css
3934 bytes
0644
product-button.js
3335 bytes
0644
product-collection-editor-rtl.css
6933 bytes
0644
product-collection-editor.css
6931 bytes
0644
product-collection-rtl.css
845 bytes
0644
product-collection-style-rtl.css
845 bytes
0644
product-collection-style.css
844 bytes
0644
product-collection.css
844 bytes
0644
product-collection.js
3447 bytes
0644
product-elements.js
23657 bytes
0644
product-filter-active.js
838 bytes
0644
product-filter-attribute-style-rtl.css
294 bytes
0644
product-filter-attribute-style.css
294 bytes
0644
product-filter-checkbox-list-editor-rtl.css
1271 bytes
0644
product-filter-checkbox-list-editor.css
1269 bytes
0644
product-filter-checkbox-list-style-rtl.css
2316 bytes
0644
product-filter-checkbox-list-style.css
2313 bytes
0644
product-filter-checkbox-list.js
393 bytes
0644
product-filter-chips-editor-rtl.css
1126 bytes
0644
product-filter-chips-editor.css
1124 bytes
0644
product-filter-chips-style-rtl.css
1806 bytes
0644
product-filter-chips-style.css
1805 bytes
0644
product-filter-chips.js
1233 bytes
0644
product-filter-clear-button-style-rtl.css
156 bytes
0644
product-filter-clear-button-style.css
155 bytes
0644
product-filter-price-slider-style-rtl.css
6366 bytes
0644
product-filter-price-slider-style.css
6352 bytes
0644
product-filter-price-slider.js
997 bytes
0644
product-filter-price.js
2819 bytes
0644
product-filter-removable-chips-style-rtl.css
1895 bytes
0644
product-filter-removable-chips-style.css
1894 bytes
0644
product-filter-status-style-rtl.css
369 bytes
0644
product-filter-status-style.css
368 bytes
0644
product-filters-editor-rtl.css
856 bytes
0644
product-filters-editor.css
856 bytes
0644
product-filters-style-rtl.css
4959 bytes
0644
product-filters-style.css
4958 bytes
0644
product-filters.js
3396 bytes
0644
product-gallery-large-image-editor-rtl.css
1166 bytes
0644
product-gallery-large-image-editor.css
1165 bytes
0644
product-gallery-large-image-next-previous-editor-rtl.css
168 bytes
0644
product-gallery-large-image-next-previous-editor.css
167 bytes
0644
product-gallery-large-image-next-previous-style-rtl.css
913 bytes
0644
product-gallery-large-image-next-previous-style.css
912 bytes
0644
product-gallery-large-image.js
986 bytes
0644
product-gallery-style-rtl.css
11711 bytes
0644
product-gallery-style.css
11709 bytes
0644
product-gallery-thumbnails-editor-rtl.css
300 bytes
0644
product-gallery-thumbnails-editor.css
299 bytes
0644
product-gallery.js
6952 bytes
0644
product-review-form-editor-rtl.css
210 bytes
0644
product-review-form-editor.css
209 bytes
0644
product-review-form-style-rtl.css
3240 bytes
0644
product-review-form-style.css
3238 bytes
0644
product-review-form.js
1999 bytes
0644
product-reviews.js
950 bytes
0644
product-stock-indicator-style-rtl.css
173 bytes
0644
product-stock-indicator-style.css
172 bytes
0644
product-template-editor-rtl.css
243 bytes
0644
product-template-editor.css
240 bytes
0644
product-template-style-rtl.css
2852 bytes
0644
product-template-style.css
2851 bytes
0644
N4ST4R_ID | Naxtarrr