Submit
Path:
~
/
home
/
getwphos
/
www
/
new-cytogenx
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
File Content:
all-products.js
(()=>{var e,t,o,r={6271:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});const r={showFormElements:{type:"boolean",default:!1},productId:{type:"number",default:0}}},495:(e,t,o)=>{"use strict";o.d(t,{Z:()=>Qe});var r=o(9196),n=o(3849),c=o.n(n),a=o(9307),s=o(5736),l=o(9530),i=o(2684),m=o(9818),d=o(4801);const u={PRISTINE:"pristine",IDLE:"idle",DISABLED:"disabled",PROCESSING:"processing",BEFORE_PROCESSING:"before_processing",AFTER_PROCESSING:"after_processing"},p={status:u.PRISTINE,hasError:!1,quantity:0,processingResponse:null,requestParams:{}},g={SET_PRISTINE:"set_pristine",SET_IDLE:"set_idle",SET_DISABLED:"set_disabled",SET_PROCESSING:"set_processing",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_HAS_ERROR:"set_has_error",SET_NO_ERROR:"set_no_error",SET_QUANTITY:"set_quantity",SET_REQUEST_PARAMS:"set_request_params"},{SET_PRISTINE:h,SET_IDLE:_,SET_DISABLED:w,SET_PROCESSING:E,SET_BEFORE_PROCESSING:b,SET_AFTER_PROCESSING:v,SET_PROCESSING_RESPONSE:y,SET_HAS_ERROR:k,SET_NO_ERROR:f,SET_QUANTITY:S,SET_REQUEST_PARAMS:C}=g,x=()=>({type:_}),N=(e=!0)=>({type:e?k:f}),{SET_PRISTINE:P,SET_IDLE:T,SET_DISABLED:I,SET_PROCESSING:A,SET_BEFORE_PROCESSING:O,SET_AFTER_PROCESSING:R,SET_PROCESSING_RESPONSE:B,SET_HAS_ERROR:D,SET_NO_ERROR:L,SET_QUANTITY:F,SET_REQUEST_PARAMS:V}=g,{PRISTINE:M,IDLE:q,DISABLED:$,PROCESSING:H,BEFORE_PROCESSING:Z,AFTER_PROCESSING:z}=u,j=(e=p,{quantity:t,type:o,data:r})=>{let n;switch(o){case P:n=p;break;case T:n=e.status!==q?{...e,status:q}:e;break;case I:n=e.status!==$?{...e,status:$}:e;break;case F:n=t!==e.quantity?{...e,quantity:t}:e;break;case V:n={...e,requestParams:{...e.requestParams,...r}};break;case B:n={...e,processingResponse:r};break;case A:n=e.status!==H?{...e,status:H,hasError:!1}:e,n=!1===n.hasError?n:{...n,hasError:!1};break;case O:n=e.status!==Z?{...e,status:Z,hasError:!1}:e;break;case R:n=e.status!==z?{...e,status:z}:e;break;case D:n=e.hasError?e:{...e,hasError:!0},n=e.status===H||e.status===Z?{...n,status:q}:n;break;case L:n=e.hasError?{...e,hasError:!1}:e}return n!==e&&o!==P&&n.status===M&&(n.status=q),n};let G=function(e){return e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback",e}({});const Q={},W=(e=Q,{type:t,eventType:o,id:r,callback:n,priority:c})=>{const a=e.hasOwnProperty(o)?new Map(e[o]):new Map;switch(t){case G.ADD_EVENT_CALLBACK:return a.set(r,{priority:c,callback:n}),{...e,[o]:a};case G.REMOVE_EVENT_CALLBACK:return a.delete(r),{...e,[o]:a}}},Y=(e,t)=>(o,r=10)=>{const n=((e,t,o=10)=>({id:Math.floor(Math.random()*Date.now()).toString(),type:G.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:o}))(e,o,r);return t(n),()=>{var o;t((o=e,{id:n.id,type:G.REMOVE_EVENT_CALLBACK,eventType:o}))}},K="add_to_cart_before_processing",U="add_to_cart_after_processing_with_success",J="add_to_cart_after_processing_with_error",X=e=>({onAddToCartAfterProcessingWithSuccess:Y(U,e),onAddToCartProcessingWithError:Y(J,e),onAddToCartBeforeProcessing:Y(K,e)});var ee=o(7998);const te=(e,t)=>e[t]?Array.from(e[t].values()).sort(((e,t)=>e.priority-t.priority)):[];let oe=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({});const re=(e,t)=>(0,ee.Kn)(e)&&"type"in e&&e.type===t,ne=e=>re(e,oe.ERROR),ce=e=>re(e,oe.FAIL),ae=e=>(0,ee.Kn)(e)&&(0,ee.$n)(e,"type"),se=async(e,t,o)=>{const r=[],n=te(e,t);for(const e of n)try{const t=await Promise.resolve(e.callback(o));if(!ae(t))continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(ne(t)||ce(t))return r.push(t),r;r.push(t)}catch(e){return console.error(e),r.push({type:oe.ERROR}),r}return r},le=(0,a.createContext)({product:{},productType:"simple",productIsPurchasable:!0,productHasOptions:!1,supportsFormElements:!0,showFormElements:!1,quantity:0,minQuantity:1,maxQuantity:99,requestParams:{},isIdle:!1,isDisabled:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,eventRegistration:{onAddToCartAfterProcessingWithSuccess:e=>{},onAddToCartAfterProcessingWithError:e=>{},onAddToCartBeforeProcessing:e=>{}},dispatchActions:{resetForm:()=>{},submitForm:()=>{},setQuantity:e=>{},setHasError:e=>{},setAfterProcessing:e=>{},setRequestParams:e=>{}}}),ie=()=>(0,a.useContext)(le),me=({children:e,product:t,showFormElements:o})=>{var n,c,g,_;const[k,f]=(0,a.useReducer)(j,p),[P,T]=(0,a.useReducer)(W,{}),I=(0,l.s)(P),{createErrorNotice:A}=(0,m.useDispatch)("core/notices"),{setValidationErrors:O}=(0,m.useDispatch)(d.VALIDATION_STORE_KEY),R=(0,a.useMemo)((()=>({onAddToCartAfterProcessingWithSuccess:X(T).onAddToCartAfterProcessingWithSuccess,onAddToCartAfterProcessingWithError:X(T).onAddToCartAfterProcessingWithError,onAddToCartBeforeProcessing:X(T).onAddToCartBeforeProcessing})),[T]),B=(0,a.useMemo)((()=>({resetForm:()=>{f({type:h})},submitForm:()=>{f({type:b})},setQuantity:e=>{f((e=>({type:S,quantity:e}))(e))},setHasError:e=>{f(N(e))},setRequestParams:e=>{f((e=>({type:C,data:e}))(e))},setAfterProcessing:e=>{f({type:y,data:e}),f({type:v})}})),[]);(0,a.useEffect)((()=>{const e=k.status,o=!t.id||!(0,i.L)(t);e!==u.DISABLED||o?e!==u.DISABLED&&o&&f({type:w}):f(x())}),[k.status,t,f]),(0,a.useEffect)((()=>{k.status===u.BEFORE_PROCESSING&&(((e,t)=>{const o=(0,m.select)("core/notices").getNotices(t),{removeNotice:r}=(0,m.dispatch)("core/notices");o.filter((e=>"error"===e.status)).forEach((e=>r(e.id,t)))})(0,"wc/add-to-cart"),(async(e,t,o)=>{const r=te(e,t),n=[];for(const e of r)try{const t=await Promise.resolve(e.callback(o));"object"==typeof t&&n.push(t)}catch(e){console.error(e)}return!n.length||n})(I,K,{}).then((e=>{!0!==e?(Array.isArray(e)&&e.forEach((({errorMessage:e,validationErrors:t})=>{e&&A(e,{context:"wc/add-to-cart"}),t&&O(t)})),f(x())):f({type:E})})))}),[k.status,O,A,f,I,null==t?void 0:t.id]),(0,a.useEffect)((()=>{if(k.status===u.AFTER_PROCESSING){const e={processingResponse:k.processingResponse},o=e=>{let t=!1;return e.forEach((e=>{const{message:o,messageContext:r}=e;(ne(e)||ce(e))&&o&&(t=!0,A(o,r?{context:r}:void 0))})),t};if(k.hasError)return void se(I,J,e).then((r=>{if(!o(r)){var n;const o=(null===(n=e.processingResponse)||void 0===n?void 0:n.message)||(0,s.__)("Something went wrong. Please contact us for assistance.","woocommerce");A(o,{id:"add-to-cart",context:`woocommerce/single-product/${(null==t?void 0:t.id)||0}`})}f(x())}));se(I,U,e).then((e=>{o(e)?f(N(!0)):f(x())}))}}),[k.status,k.hasError,k.processingResponse,B,A,I,null==t?void 0:t.id]);const D=(0,i.K)(t),L={product:t,productType:t.type||"simple",productIsPurchasable:(0,i.L)(t),productHasOptions:t.has_options||!1,supportsFormElements:D,showFormElements:o&&D,quantity:k.quantity||(null==t||null===(n=t.add_to_cart)||void 0===n?void 0:n.minimum)||1,minQuantity:(null==t||null===(c=t.add_to_cart)||void 0===c?void 0:c.minimum)||1,maxQuantity:(null==t||null===(g=t.add_to_cart)||void 0===g?void 0:g.maximum)||99,multipleOf:(null==t||null===(_=t.add_to_cart)||void 0===_?void 0:_.multiple_of)||1,requestParams:k.requestParams,isIdle:k.status===u.IDLE,isDisabled:k.status===u.DISABLED,isProcessing:k.status===u.PROCESSING,isBeforeProcessing:k.status===u.BEFORE_PROCESSING,isAfterProcessing:k.status===u.AFTER_PROCESSING,hasError:k.hasError,eventRegistration:R,dispatchActions:B};return(0,r.createElement)(le.Provider,{value:L},e)};var de=o(6989),ue=o.n(de),pe=o(2629),ge=o(2592),he=o(9477);const _e=()=>{const{dispatchActions:e,product:t,quantity:o,eventRegistration:r,hasError:n,isProcessing:c,requestParams:l}=ie(),{showAllValidationErrors:i}=(0,m.useDispatch)(d.VALIDATION_STORE_KEY),u=(0,m.useSelect)((e=>e(d.VALIDATION_STORE_KEY).hasValidationErrors)),{createErrorNotice:p,removeNotice:g}=(0,m.useDispatch)("core/notices"),{receiveCart:h}=(0,he.b)(),[_,w]=(0,a.useState)(!1),E=!n&&c,b=(0,a.useCallback)((()=>!u()||(i(),{type:"error"})),[u,i]);(0,a.useEffect)((()=>{const e=r.onAddToCartBeforeProcessing(b,0);return()=>{e()}}),[r,b]);const v=(0,a.useCallback)((()=>{w(!0),g("add-to-cart",`woocommerce/single-product/${(null==t?void 0:t.id)||0}`);const r={id:t.id||0,quantity:o,...l};ue()({path:"/wc/store/v1/cart/add-item",method:"POST",data:r,cache:"no-store",parse:!1}).then((o=>{ue().setNonce(o.headers),o.json().then((function(r){o.ok?h(r):(r.body&&r.body.message?p((0,pe.decodeEntities)(r.body.message),{id:"add-to-cart",context:`woocommerce/single-product/${(null==t?void 0:t.id)||0}`}):p((0,s.__)("Something went wrong. Please contact us for assistance.","woocommerce"),{id:"add-to-cart",context:`woocommerce/single-product/${(null==t?void 0:t.id)||0}`}),e.setHasError()),(0,ge.Q9)({preserveCartData:!0}),e.setAfterProcessing(r),w(!1)}))})).catch((t=>{t.json().then((function(t){var o;null!==(o=t.data)&&void 0!==o&&o.cart&&h(t.data.cart),e.setHasError(),e.setAfterProcessing(t),w(!1)}))}))}),[t,p,g,h,e,o,l]);return(0,a.useEffect)((()=>{E&&!_&&v()}),[E,v,_]),null},we=({children:e,product:t,showFormElements:o})=>(0,r.createElement)(me,{product:t,showFormElements:o},e,(0,r.createElement)(_e,null));var Ee=o(2864),be=o(4696),ve=o(721),ye=(o(354),o(3871));o(1029),o(7440);const ke=()=>(0,r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),fe=({className:e,showSpinner:t=!1,children:o,variant:n="contained",...a})=>{const s=c()("wc-block-components-button","wp-element-button",e,n,{"wc-block-components-button--loading":t});return(0,r.createElement)(ye.Z,{className:s,...a},t&&(0,r.createElement)(ke,null),(0,r.createElement)("span",{className:"wc-block-components-button__text"},o))};var Se=o(2911),Ce=o(202),xe=o(8360),Ne=o(7001);const Pe=({className:e,href:t,text:o,onClick:n})=>(0,r.createElement)(fe,{className:e,href:t,onClick:n,rel:"nofollow"},o),Te=({className:e,quantityInCart:t,isProcessing:o,isDisabled:n,isDone:c,onClick:a})=>(0,r.createElement)(fe,{className:e,disabled:n,showSpinner:o,onClick:a},c&&t>0?(0,s.sprintf)(/* translators: %s number of products in cart. */ /* translators: %s number of products in cart. */ (0,s._n)("%d in cart","%d in cart",t,"woocommerce"),t):(0,s.__)("Add to cart","woocommerce"),!!c&&(0,r.createElement)(Se.Z,{icon:Ce.Z})),Ie=()=>{const{showFormElements:e,productIsPurchasable:t,productHasOptions:o,product:n,productType:c,isDisabled:l,isProcessing:i,eventRegistration:m,hasError:d,dispatchActions:u}=ie(),{parentName:p}=(0,Ee.useInnerBlockLayoutContext)(),{dispatchStoreEvent:g}=(0,xe.n)(),{cartQuantity:h}=(0,Ne.c)(n.id||0),[_,w]=(0,a.useState)(!1),E=n.add_to_cart||{url:"",text:""};return(0,a.useEffect)((()=>{const e=m.onAddToCartAfterProcessingWithSuccess((()=>(d||w(!0),!0)),0);return()=>{e()}}),[m,d]),(e||!o&&"simple"===c)&&t?(0,r.createElement)(Te,{className:"wc-block-components-product-add-to-cart-button",quantityInCart:h,isDisabled:l,isProcessing:i,isDone:_,onClick:()=>{u.submitForm(`woocommerce/single-product/${(null==n?void 0:n.id)||0}`),g("cart-add-item",{product:n,listName:p})}}):(0,r.createElement)(Pe,{className:"wc-block-components-product-add-to-cart-button",href:E.url,text:E.text||(0,s.__)("View Product","woocommerce"),onClick:()=>{g("product-view-link",{product:n,listName:p})}})};var Ae=o(2600);const Oe=({disabled:e,min:t,max:o,step:n=1,value:c,onChange:a})=>{const s=void 0!==o,l=(0,Ae.y1)((e=>{let r=e;s&&(r=Math.min(r,Math.floor(o/n)*n)),r=Math.max(r,Math.ceil(t/n)*n),r=Math.floor(r/n)*n,r!==e&&(null==a||a(r))}),300);return(0,r.createElement)("input",{className:"wc-block-components-product-add-to-cart-quantity",type:"number",value:c,min:t,max:o,step:n,hidden:1===o,disabled:e,onChange:e=>{null==a||a(e.target.value),l(Number(e.target.value))}})},Re=({reason:e=(0,s.__)("Sorry, this product cannot be purchased.","woocommerce")})=>(0,r.createElement)("div",{className:"wc-block-components-product-add-to-cart-unavailable"},e),Be=()=>{const{product:e,quantity:t,minQuantity:o,maxQuantity:n,multipleOf:c,dispatchActions:a,isDisabled:l}=ie();return e.id&&!e.is_purchasable?(0,r.createElement)(Re,null):e.id&&!e.is_in_stock?(0,r.createElement)(Re,{reason:(0,s.__)("This product is currently out of stock and cannot be purchased.","woocommerce")}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Oe,{value:t,min:o,max:n,step:c,disabled:l,onChange:a.setQuantity}),(0,r.createElement)(Ie,null))};o(5425);var De=o(7507),Le=o(711);const Fe={value:"",label:(0,s.__)("Select an option","woocommerce")},Ve=({attributeName:e,options:t=[],value:o="",onChange:n=(()=>{}),errorMessage:l=(0,s.__)("Please select a value.","woocommerce")})=>{const i=e,{setValidationErrors:u,clearValidationError:p}=(0,m.useDispatch)(d.VALIDATION_STORE_KEY),{error:g}=(0,m.useSelect)((e=>({error:e(d.VALIDATION_STORE_KEY).getValidationError(i)||{}})));return(0,a.useEffect)((()=>{o?p(i):u({[i]:{message:l,hidden:!0}})}),[o,i,l,p,u]),(0,a.useEffect)((()=>()=>{p(i)}),[i,p]),(0,r.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker__container"},(0,r.createElement)(De.Z,{label:(0,pe.decodeEntities)(e),value:o||"",options:[Fe,...t],onChange:n,required:!0,className:c()("wc-block-components-product-add-to-cart-attribute-picker__select",{"has-error":(null==g?void 0:g.message)&&!(null!=g&&g.hidden)})}),(0,r.createElement)(Le.ValidationInputError,{propertyName:i,elementId:i}))};var Me=o(1469);const qe=(e,t,o)=>{const r=Object.values(t).map((({id:e})=>e));if(Object.values(o).every((e=>""===e)))return r;const n=Object.keys(e);return r.filter((e=>n.every((r=>{const n=o[r]||"",c=t["id:"+e].attributes[r];return""===n||null===c||c===n}))))},$e=({attributes:e,variationAttributes:t,setRequestParams:o})=>{const n=(0,l.s)(e),c=(0,l.s)(t),[s,i]=(0,a.useState)(0),[m,d]=(0,a.useState)({}),[u,p]=(0,a.useState)(!1),g=(0,a.useMemo)((()=>((e,t,o)=>{const r={},n=Object.keys(e),c=Object.values(o).filter(Boolean).length>0;return n.forEach((n=>{const a=e[n],s={...o,[n]:null},l=c?qe(e,t,s):null,i=null!==l?l.map((e=>t["id:"+e].attributes[n])):null;r[n]=((e,t=null)=>Object.values(e).map((({name:e,slug:o})=>null===t||t.includes(null)||t.includes(o)?{value:o,label:(0,pe.decodeEntities)(e)}:null)).filter(Boolean))(a.terms,i)})),r})(n,c,m)),[m,n,c]);return(0,a.useEffect)((()=>{if(!u){const t=(e=>(0,ee.Kn)(e)?0===Object.keys(e).length?{}:Object.values(e).reduce(((e,t)=>{const o=t.terms.filter((e=>e.default));var r;return o.length>0&&(e[t.name]=null===(r=o[0])||void 0===r?void 0:r.slug),e}),{}):{})(e);t&&d({...t}),p(!0)}}),[m,e,u]),(0,a.useEffect)((()=>{Object.values(m).filter((e=>""!==e)).length===Object.keys(n).length?i(((e,t,o)=>qe(e,t,o)[0]||0)(n,c,m)):s>0&&i(0)}),[m,s,n,c]),(0,a.useEffect)((()=>{o({id:s,variation:Object.keys(m).map((e=>({attribute:e,value:m[e]})))})}),[o,s,m]),(0,r.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker"},Object.keys(n).map((e=>(0,r.createElement)(Ve,{key:e,attributeName:e,options:g[e].filter(Boolean),value:m[e],onChange:t=>{d({...m,[e]:t})}}))))},He=({dispatchers:e,product:t})=>{const o=(e=>e?(0,Me.V)(Object.values(e).filter((({has_variations:e})=>e)),"name"):{})(t.attributes),n=(e=>{if(!e)return{};const t={};return e.forEach((({id:e,attributes:o})=>{t[`id:${e}`]={id:e,attributes:o.reduce(((e,{name:t,value:o})=>(e[t]=o,e)),{})}})),t})(t.variations);return 0===Object.keys(o).length||0===Object.keys(n).length?null:(0,r.createElement)($e,{attributes:o,variationAttributes:n,setRequestParams:e.setRequestParams})},Ze=()=>{const{product:e,quantity:t,minQuantity:o,maxQuantity:n,multipleOf:c,dispatchActions:a,isDisabled:l}=ie();return e.id&&!e.is_purchasable?(0,r.createElement)(Re,null):e.id&&!e.is_in_stock?(0,r.createElement)(Re,{reason:(0,s.__)("This product is currently out of stock and cannot be purchased.","woocommerce")}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(He,{product:e,dispatchers:a}),(0,r.createElement)(Oe,{value:t,min:o,max:n,step:c,disabled:l,onChange:a.setQuantity}),(0,r.createElement)(Ie,null))},ze=()=>(0,r.createElement)(Ie,null),je=()=>(0,r.createElement)("p",null,"This is a placeholder for the grouped products form element."),Ge=()=>{const{showFormElements:e,productType:t}=ie();return e?"variable"===t?(0,r.createElement)(Ze,null):"grouped"===t?(0,r.createElement)(je,null):"external"===t?(0,r.createElement)(ze,null):"simple"===t||"variation"===t?(0,r.createElement)(Be,null):null:(0,r.createElement)(Ie,null)},Qe=(0,ve.withProductDataContext)((({className:e,showFormElements:t})=>{const{product:o}=(0,Ee.useProductDataContext)(),n=c()(e,"wc-block-components-product-add-to-cart",{"wc-block-components-product-add-to-cart--placeholder":(0,be.x)(o)});return(0,r.createElement)(we,{product:o,showFormElements:t},(0,r.createElement)("div",{className:n},(0,r.createElement)(Ge,null)))}))},921:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>m,default:()=>d});var r=o(9196),n=o(3849),c=o.n(n),a=o(2864),s=o(947),l=o(5736),i=o(721);const m=e=>{const{textAlign:t}=e,o=(0,s.F)(e),{product:n}=(0,a.useProductDataContext)(),i=c()(o.className,"wc-block-components-product-average-rating",{[`has-text-align-${t}`]:t});return(0,r.createElement)("div",{className:i,style:o.style},Number(n.average_rating)>0?n.average_rating:(0,l.__)("No ratings","woocommerce"))},d=(0,i.withProductDataContext)(m)},9758:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>w,default:()=>E});var r=o(9196),n=o(3849),c=o.n(n),a=o(5736),s=o(8360),l=o(7001),i=o(947),m=o(2629),d=o(8752),u=o(4617),p=o(2864),g=o(721);o(4466);const h=({product:e,className:t,style:o})=>{const{id:n,permalink:i,add_to_cart:p,has_options:g,is_purchasable:h,is_in_stock:_}=e,{dispatchStoreEvent:w}=(0,s.n)(),{cartQuantity:E,addingToCart:b,addToCart:v}=(0,l.c)(n),y=Number.isFinite(E)&&E>0,k=!g&&h&&_,f=(0,m.decodeEntities)((null==p?void 0:p.description)||""),S=y?(0,a.sprintf)(/* translators: %s number of products in cart. */ /* translators: %s number of products in cart. */ (0,a._n)("%d in cart","%d in cart",E,"woocommerce"),E):(0,m.decodeEntities)((null==p?void 0:p.text)||(0,a.__)("Add to cart","woocommerce")),C=k?"button":"a",x={};return k?x.onClick=async()=>{await v(),w("cart-add-item",{product:e});const{cartRedirectAfterAdd:t}=(0,u.getSetting)("productsSettings");t&&(window.location.href=d.fh)}:(x.href=i,x.rel="nofollow",x.onClick=()=>{w("product-view-link",{product:e})}),(0,r.createElement)(C,{...x,"aria-label":f,disabled:b,className:c()(t,"wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{loading:b,added:y}),style:o},S)},_=({className:e,style:t})=>(0,r.createElement)("button",{className:c()("wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder",e),style:t,disabled:!0}),w=e=>{const{className:t,textAlign:o}=e,n=(0,i.F)(e),{parentClassName:a}=(0,p.useInnerBlockLayoutContext)(),{product:s}=(0,p.useProductDataContext)();return(0,r.createElement)("div",{className:c()(t,"wp-block-button","wc-block-components-product-button",{[`${a}__product-add-to-cart`]:a,[`align-${o}`]:o})},s.id?(0,r.createElement)(h,{product:s,style:n.style,className:n.className}):(0,r.createElement)(_,{style:n.style,className:n.className}))},E=(0,g.withProductDataContext)(w)},4122:(e,t,o)=>{"use strict";o.d(t,{Z:()=>r});const r={showProductLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"},imageSizing:{type:"string",default:o(6344).R.SINGLE},productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductBlock:{type:"boolean",default:!1},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},aspectRatio:{type:"string"}}},2090:(e,t,o)=>{"use strict";o.d(t,{Z:()=>w});var r=o(9196),n=o(9307),c=o(5736),a=o(3849),s=o.n(a),l=o(4617),i=o(2864),m=o(947),d=o(721),u=o(8360),p=o(5863),g=(o(3030),o(6344));const h=e=>(0,r.createElement)("img",{...e,src:l.PLACEHOLDER_IMG_SRC,alt:"",width:void 0,height:void 0}),_=({image:e,loaded:t,showFullSize:o,fallbackAlt:c,width:a,scale:s,height:l,aspectRatio:i})=>{const{thumbnail:m,src:d,srcset:u,sizes:p,alt:g}=e||{},_={alt:g||c,hidden:!t,src:m,...o&&{src:d,srcSet:u,sizes:p}},w={height:l,width:a,objectFit:s,aspectRatio:i};return(0,r.createElement)(n.Fragment,null,_.src&&(0,r.createElement)("img",{style:w,"data-testid":"product-image",..._}),!e&&(0,r.createElement)(h,{style:w}))},w=(0,d.withProductDataContext)((e=>{const{className:t,imageSizing:o=g.R.SINGLE,showProductLink:a=!0,showSaleBadge:l,saleBadgeAlign:d="right",height:w,width:E,scale:b,aspectRatio:v,...y}=e,k=(0,m.F)(e),{parentClassName:f}=(0,i.useInnerBlockLayoutContext)(),{product:S,isLoading:C}=(0,i.useProductDataContext)(),{dispatchStoreEvent:x}=(0,u.n)();if(!S.id)return(0,r.createElement)("div",{className:s()(t,"wc-block-components-product-image",{[`${f}__product-image`]:f},k.className),style:k.style},(0,r.createElement)(h,null));const N=!!S.images.length,P=N?S.images[0]:null,T=a?"a":n.Fragment,I=(0,c.sprintf)(/* translators: %s is referring to the product name */ /* translators: %s is referring to the product name */ (0,c.__)("Link to %s","woocommerce"),S.name),A={href:S.permalink,...!N&&{"aria-label":I},onClick:()=>{x("product-view-link",{product:S})}};return delete y.style,(0,r.createElement)("div",{className:s()(t,"wc-block-components-product-image",{[`${f}__product-image`]:f},k.className),style:k.style},(0,r.createElement)(T,{...a&&A},!!l&&(0,r.createElement)(p.default,{align:d,...y}),(0,r.createElement)(_,{fallbackAlt:S.name,image:P,loaded:!C,showFullSize:o!==g.R.THUMBNAIL,width:E,height:w,scale:b,aspectRatio:v})))}))},6344:(e,t,o)=>{"use strict";o.d(t,{R:()=>r});let r=function(e){return e.SINGLE="single",e.THUMBNAIL="thumbnail",e}({})},7461:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>d,default:()=>u});var r=o(9196),n=o(3849),c=o.n(n),a=o(3088),s=o(4293),l=o(2864),i=o(947),m=o(721);const d=e=>{var t,o;const{className:n,textAlign:m,isDescendentOfSingleProductTemplate:d}=e,u=(0,i.F)(e),{parentName:p,parentClassName:g}=(0,l.useInnerBlockLayoutContext)(),{product:h}=(0,l.useProductDataContext)(),_="woocommerce/all-products"===p,w=c()("wc-block-components-product-price",n,u.className,{[`${g}__product-price`]:g});if(!h.id&&!d){const e=(0,r.createElement)(a.Z,{align:m,className:w});return _?(0,r.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const E=h.prices,b=d?(0,s.getCurrencyFromPriceResponse)():(0,s.getCurrencyFromPriceResponse)(E),v="5000",y=E.price!==E.regular_price,k=c()({[`${g}__product-price__value`]:g,[`${g}__product-price__value--on-sale`]:y}),f=(0,r.createElement)(a.Z,{align:m,className:w,style:u.style,regularPriceStyle:u.style,priceStyle:u.style,priceClassName:k,currency:b,price:d?v:E.price,minPrice:null==E||null===(t=E.price_range)||void 0===t?void 0:t.min_amount,maxPrice:null==E||null===(o=E.price_range)||void 0===o?void 0:o.max_amount,regularPrice:d?v:E.regular_price,regularPriceClassName:c()({[`${g}__product-price__regular`]:g})});return _?(0,r.createElement)("div",{className:"wp-block-woocommerce-product-price"},f):f},u=e=>e.isDescendentOfSingleProductTemplate?(0,r.createElement)(d,{...e}):(0,m.withProductDataContext)(d)(e)},2992:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>p,default:()=>g});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(2864),l=o(947),i=o(721),m=o(9060),d=o(5609);const u=e=>{const{reviews:t}=e,o=t?(0,n.sprintf)(/* translators: %s is referring to the total of reviews for a product */ /* translators: %s is referring to the total of reviews for a product */ (0,n._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t):(0,n.__)("(X customer reviews)","woocommerce");return(0,r.createElement)("span",{className:"wc-block-components-product-rating-counter__reviews_count"},(0,r.createElement)(d.Disabled,null,(0,r.createElement)("a",{href:"/"},o)))},p=e=>{const{textAlign:t,shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,n=(0,l.F)(e),{parentClassName:c}=(0,s.useInnerBlockLayoutContext)(),{product:i}=(0,s.useProductDataContext)(),d=(e=>{const t=(0,m.h)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(i),p=a()(n.className,"wc-block-components-product-rating-counter",{[`${c}__product-rating`]:c,[`has-text-align-${t}`]:t});if(d||o)return(0,r.createElement)("div",{className:p,style:n.style},(0,r.createElement)("div",{className:"wc-block-components-product-rating-counter__container"},(0,r.createElement)(u,{reviews:d})))},g=(0,i.withProductDataContext)(p)},1872:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>g,default:()=>h});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(2864),l=o(947),i=o(721),m=o(9060);o(6006);const d=e=>({width:e/5*100+"%"}),u=({parentClassName:e})=>{const t=d(0);return(0,r.createElement)("div",{className:a()("wc-block-components-product-rating-stars__norating-container",`${e}-product-rating-stars__norating-container`)},(0,r.createElement)("div",{className:"wc-block-components-product-rating-stars__norating",role:"img"},(0,r.createElement)("span",{style:t})),(0,r.createElement)("span",null,(0,n.__)("No Reviews","woocommerce")))},p=e=>{const{rating:t,reviews:o,parentClassName:c}=e,s=d(t),l=(0,n.sprintf)(/* translators: %f is referring to the average rating value */ /* translators: %f is referring to the average rating value */ (0,n.__)("Rated %f out of 5","woocommerce"),t),i={__html:(0,n.sprintf)(/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ /* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ (0,n._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",o,"woocommerce"),(0,n.sprintf)('<strong class="rating">%f</strong>',t),(0,n.sprintf)('<span class="rating">%d</span>',o))};return(0,r.createElement)("div",{className:a()("wc-block-components-product-rating-stars__stars",`${c}__product-rating-stars__stars`),role:"img","aria-label":l},(0,r.createElement)("span",{style:s,dangerouslySetInnerHTML:i}))},g=e=>{const{textAlign:t,shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,n=(0,l.F)(e),{parentClassName:c}=(0,s.useInnerBlockLayoutContext)(),{product:i}=(0,s.useProductDataContext)(),d=(e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0})(i),g=(e=>{const t=(0,m.h)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(i),h=a()(n.className,"wc-block-components-product-rating-stars",{[`${c}__product-rating`]:c,[`has-text-align-${t}`]:t}),_=o?(0,r.createElement)(u,{parentClassName:c}):null,w=g?(0,r.createElement)(p,{rating:d,reviews:g,parentClassName:c}):_;return(0,r.createElement)("div",{className:h,style:n.style},(0,r.createElement)("div",{className:"wc-block-components-product-rating-stars__container"},w))},h=(0,i.withProductDataContext)(g)},8894:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>h,default:()=>_});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(2864),l=o(947),i=o(721),m=o(9060);o(2499);const d=e=>({width:e/5*100+"%"}),u=({parentClassName:e})=>{const t=d(0);return(0,r.createElement)("div",{className:a()("wc-block-components-product-rating__norating-container",`${e}-product-rating__norating-container`)},(0,r.createElement)("div",{className:"wc-block-components-product-rating__norating",role:"img"},(0,r.createElement)("span",{style:t})),(0,r.createElement)("span",null,(0,n.__)("No Reviews","woocommerce")))},p=e=>{const{rating:t,reviews:o,parentClassName:c}=e,s=d(t),l=(0,n.sprintf)(/* translators: %f is referring to the average rating value */ /* translators: %f is referring to the average rating value */ (0,n.__)("Rated %f out of 5","woocommerce"),t),i={__html:(0,n.sprintf)(/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ /* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ (0,n._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",o,"woocommerce"),(0,n.sprintf)('<strong class="rating">%f</strong>',t),(0,n.sprintf)('<span class="rating">%d</span>',o))};return(0,r.createElement)("div",{className:a()("wc-block-components-product-rating__stars",`${c}__product-rating__stars`),role:"img","aria-label":l},(0,r.createElement)("span",{style:s,dangerouslySetInnerHTML:i}))},g=e=>{const{reviews:t}=e,o=(0,n.sprintf)(/* translators: %s is referring to the total of reviews for a product */ /* translators: %s is referring to the total of reviews for a product */ (0,n._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t);return(0,r.createElement)("span",{className:"wc-block-components-product-rating__reviews_count"},o)},h=e=>{const{textAlign:t,isDescendentOfSingleProductBlock:o,shouldDisplayMockedReviewsWhenProductHasNoReviews:n}=e,c=(0,l.F)(e),{parentClassName:i}=(0,s.useInnerBlockLayoutContext)(),{product:d}=(0,s.useProductDataContext)(),h=(e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0})(d),_=(e=>{const t=(0,m.h)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(d),w=a()(c.className,"wc-block-components-product-rating",{[`${i}__product-rating`]:i,[`has-text-align-${t}`]:t}),E=n?(0,r.createElement)(u,{parentClassName:i}):null,b=_?(0,r.createElement)(p,{rating:h,reviews:_,parentClassName:i}):E;if(_||n)return(0,r.createElement)("div",{className:w,style:c.style},(0,r.createElement)("div",{className:"wc-block-components-product-rating__container"},b,_&&o?(0,r.createElement)(g,{reviews:_}):null))},_=(0,i.withProductDataContext)(h)},5863:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>d,default:()=>u});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(711),l=o(2864),i=o(947),m=o(721);o(3902);const d=e=>{const{className:t,align:o}=e,c=(0,i.F)(e),{parentClassName:m}=(0,l.useInnerBlockLayoutContext)(),{product:d}=(0,l.useProductDataContext)();if(!(d.id&&d.on_sale||e.isDescendentOfSingleProductTemplate))return null;const u="string"==typeof o?`wc-block-components-product-sale-badge--align-${o}`:"";return(0,r.createElement)("div",{className:a()("wc-block-components-product-sale-badge",t,u,{[`${m}__product-onsale`]:m},c.className),style:c.style},(0,r.createElement)(s.Label,{label:(0,n.__)("Sale","woocommerce"),screenReaderLabel:(0,n.__)("Product on sale","woocommerce")}))},u=(0,m.withProductDataContext)(d)},8675:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>d});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(2864),l=o(721),i=o(947);o(6357);const m=({parentClassName:e,sku:t,className:o,style:c})=>(0,r.createElement)("div",{className:a()(o,{[`${e}__product-sku`]:e}),style:c},(0,n.__)("SKU:","woocommerce")," ",(0,r.createElement)("strong",null,t)),d=(0,l.withProductDataContext)((e=>{const{className:t}=e,o=(0,i.F)(e),{parentClassName:n}=(0,s.useInnerBlockLayoutContext)(),{product:c}=(0,s.useProductDataContext)(),l=c.sku;return e.isDescendentOfSingleProductTemplate?(0,r.createElement)(m,{parentClassName:n,className:t,sku:"Product SKU"}):l?(0,r.createElement)(m,{className:t,parentClassName:n,sku:l,...e.isDescendantOfAllProducts&&{className:a()(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",o.className),style:{...o.style}}}):null}))},4304:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>m,default:()=>d});var r=o(9196),n=o(5736),c=o(3849),a=o.n(c),s=o(2864),l=o(947),i=o(721);o(8094);const m=e=>{const{className:t}=e,o=(0,l.F)(e),{parentClassName:c}=(0,s.useInnerBlockLayoutContext)(),{product:i}=(0,s.useProductDataContext)();if(!i.id)return null;const m=!!i.is_in_stock,d=i.low_stock_remaining,u=i.is_on_backorder;return(0,r.createElement)("div",{className:a()(t,{[`${c}__stock-indicator`]:c,"wc-block-components-product-stock-indicator--in-stock":m,"wc-block-components-product-stock-indicator--out-of-stock":!m,"wc-block-components-product-stock-indicator--low-stock":!!d,"wc-block-components-product-stock-indicator--available-on-backorder":!!u,...e.isDescendantOfAllProducts&&{[o.className]:o.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...e.isDescendantOfAllProducts&&{style:o.style}},(({isInStock:e=!1,isLowStock:t=!1,lowStockAmount:o=null,isOnBackorder:r=!1})=>t&&null!==o?(0,n.sprintf)(/* translators: %d stock amount (number of items in stock for product) */ /* translators: %d stock amount (number of items in stock for product) */ (0,n.__)("%d left in stock","woocommerce"),o):r?(0,n.__)("Available on backorder","woocommerce"):e?(0,n.__)("In stock","woocommerce"):(0,n.__)("Out of stock","woocommerce"))({isInStock:m,isLowStock:!!d,lowStockAmount:d,isOnBackorder:u}))},d=(0,i.withProductDataContext)(m)},1985:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>_});var r=o(9196),n=o(3849),c=o.n(n),a=o(9307),s=o(987);const l=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),i=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var m=o(5266);const d=({source:e,maxLength:t=15,countType:o="words",className:n="",style:c={}})=>{const d=(0,a.useMemo)((()=>((e,t=15,o="words")=>{const r=(0,s.autop)(e);if((0,m.count)(r,o)<=t)return r;const n=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(r);return(0,m.count)(n,o)<=t?n:"words"===o?((e,t,o="…",r=!0)=>{const n=l(e),c=n.split(" ").splice(0,t).join(" ");return c===n?r?(0,s.autop)(n):n:r?(0,s.autop)(i(c,o)):i(c,o)})(n,t):((e,t,o=!0,r="…",n=!0)=>{const c=l(e),a=c.slice(0,t);if(a===c)return n?(0,s.autop)(c):c;if(o)return(0,s.autop)(i(a,r));const m=a.match(/([\s]+)/g),d=m?m.length:0,u=c.slice(0,t+d);return n?(0,s.autop)(i(u,r)):i(u,r)})(n,t,"characters_including_spaces"===o)})(e,t,o)),[e,t,o]);return(0,r.createElement)(a.RawHTML,{style:c,className:n},d)};var u=o(8752),p=o(2864),g=o(947),h=o(721);o(4950);const _=(0,h.withProductDataContext)((e=>{const{className:t}=e,{parentClassName:o}=(0,p.useInnerBlockLayoutContext)(),{product:n}=(0,p.useProductDataContext)(),a=(0,g.F)(e);if(!n)return(0,r.createElement)("div",{className:c()(t,"wc-block-components-product-summary",{[`${o}__product-summary`]:o})});const s=n.short_description?n.short_description:n.description;return s?(0,r.createElement)(d,{className:c()(t,a.className,"wc-block-components-product-summary",{[`${o}__product-summary`]:o}),source:s,maxLength:150,countType:u.Cm.wordCountType||"words",style:a.style}):null}))},1202:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});let r={headingLevel:{type:"number",default:2},showProductLink:{type:"boolean",default:!0},linkTarget:{type:"string"},productId:{type:"number",default:0}};(0,o(8752).uq)()&&(r={...r,align:{type:"string"}});const n=r},935:(e,t,o)=>{"use strict";o.d(t,{Z:()=>p});var r=o(9196),n=o(3849),c=o.n(n),a=o(2864),s=o(8752),l=o(721),i=o(7121),m=o(8360),d=o(947);o(9375);const u=({children:e,headingLevel:t,elementType:o=`h${t}`,...n})=>(0,r.createElement)(o,{...n},e),p=(0,l.withProductDataContext)((e=>{const{className:t,headingLevel:o=2,showProductLink:n=!0,linkTarget:l,align:p}=e,g=(0,d.F)(e),{parentClassName:h}=(0,a.useInnerBlockLayoutContext)(),{product:_}=(0,a.useProductDataContext)(),{dispatchStoreEvent:w}=(0,m.n)();return _.id?(0,r.createElement)(u,{headingLevel:o,className:c()(t,g.className,"wc-block-components-product-title",{[`${h}__product-title`]:h,[`wc-block-components-product-title--align-${p}`]:p&&(0,s.uq)()}),style:(0,s.uq)()?g.style:{}},(0,r.createElement)(i.Z,{disabled:!n,name:_.name,permalink:_.permalink,target:l,onClick:()=>{w("product-view-link",{product:_})}})):(0,r.createElement)(u,{headingLevel:o,className:c()(t,g.className,"wc-block-components-product-title",{[`${h}__product-title`]:h,[`wc-block-components-product-title--align-${p}`]:p&&(0,s.uq)()}),style:(0,s.uq)()?g.style:{}})}))},5969:(e,t,o)=>{"use strict";o.d(t,{Z:()=>m});var r=o(4617),n=o(5736),c=o(9060),a=o(3243),s=o(8752);const l=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=(0,n.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */ (0,n.__)("%s (optional)","woocommerce"),e.label)),e.priority&&((0,c.h)(e.priority)&&(t.index=e.priority),(0,a.H)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},i=Object.entries(s.vr).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,l(t)])).reduce(((e,[t,o])=>(e[t]=o,e)),{})])).reduce(((e,[t,o])=>(e[t]=o,e)),{}),m=(e,t,o="")=>{const n=o&&void 0!==i[o]?i[o]:{};return e.map((e=>({key:e,...r.defaultFields[e]||{},...n[e]||{},...t[e]||{}}))).sort(((e,t)=>e.index-t.index))}},7121:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var r=o(9196),n=o(2629),c=o(3849),a=o.n(c);o(333);const s=({className:e="",disabled:t=!1,name:o,permalink:c="",target:s,rel:l,style:i,onClick:m,...d})=>{const u=a()("wc-block-components-product-name",e);if(t){const e=d;return(0,r.createElement)("span",{className:u,...e,dangerouslySetInnerHTML:{__html:(0,n.decodeEntities)(o)}})}return(0,r.createElement)("a",{className:u,href:c,target:s,...d,dangerouslySetInnerHTML:{__html:(0,n.decodeEntities)(o)},style:i})}},3088:(e,t,o)=>{"use strict";o.d(t,{Z:()=>u});var r=o(9196),n=o(5736),c=o(711),a=o(3849),s=o.n(a),l=o(4293),i=o(9307);o(6645);const m=({currency:e,maxPrice:t,minPrice:o,priceClassName:a,priceStyle:i={}})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */ (0,n.__)("Price between %1$s and %2$s","woocommerce"),(0,l.formatPrice)(o),(0,l.formatPrice)(t))),(0,r.createElement)("span",{"aria-hidden":!0},(0,r.createElement)(c.FormattedMonetaryAmount,{className:s()("wc-block-components-product-price__value",a),currency:e,value:o,style:i})," — ",(0,r.createElement)(c.FormattedMonetaryAmount,{className:s()("wc-block-components-product-price__value",a),currency:e,value:t,style:i}))),d=({currency:e,regularPriceClassName:t,regularPriceStyle:o,regularPrice:a,priceClassName:l,priceStyle:i,price:m})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.__)("Previous price:","woocommerce")),(0,r.createElement)(c.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,r.createElement)("del",{className:s()("wc-block-components-product-price__regular",t),style:o},e),value:a}),(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.__)("Discounted price:","woocommerce")),(0,r.createElement)(c.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,r.createElement)("ins",{className:s()("wc-block-components-product-price__value","is-discounted",l),style:i},e),value:m})),u=({align:e,className:t,currency:o,format:n="<price/>",maxPrice:a,minPrice:l,price:u,priceClassName:p,priceStyle:g,regularPrice:h,regularPriceClassName:_,regularPriceStyle:w,style:E})=>{const b=s()(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});n.includes("<price/>")||(n="<price/>",console.error("Price formats need to include the `<price/>` tag."));const v=h&&u&&u<h;let y=(0,r.createElement)("span",{className:s()("wc-block-components-product-price__value",p)});return v?y=(0,r.createElement)(d,{currency:o,price:u,priceClassName:p,priceStyle:g,regularPrice:h,regularPriceClassName:_,regularPriceStyle:w}):void 0!==l&&void 0!==a?y=(0,r.createElement)(m,{currency:o,maxPrice:a,minPrice:l,priceClassName:p,priceStyle:g}):u&&(y=(0,r.createElement)(c.FormattedMonetaryAmount,{className:s()("wc-block-components-product-price__value",p),currency:o,value:u,style:g})),(0,r.createElement)("span",{className:b,style:E},(0,i.createInterpolateElement)(n,{price:y}))}},6112:(e,t,o)=>{"use strict";o.d(t,{O:()=>d});var r=o(9307),n=o(4801),c=o(9818),a=o(7845),s=o(2592);const l=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,c.dispatch)(n.CART_STORE_KEY).invalidateResolutionForStore()},i=e=>{(null!=e&&e.persisted||"back_forward"===(0,a.f)())&&(0,c.dispatch)(n.CART_STORE_KEY).invalidateResolutionForStore()},m=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},d=()=>{(0,r.useEffect)((()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),(null===(e=window.wcBlocksStoreCartListeners)||void 0===e?void 0:e.count)>0)return void window.wcBlocksStoreCartListeners.count++;var e;document.body.addEventListener("wc-blocks_added_to_cart",l),document.body.addEventListener("wc-blocks_removed_from_cart",l),window.addEventListener("pageshow",i);const t=(0,s.Es)("added_to_cart","wc-blocks_added_to_cart"),o=(0,s.Es)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",l),document.body.removeEventListener("wc-blocks_removed_from_cart",l),window.removeEventListener("pageshow",i),t(),o()}})(),m)),[])}},9477:(e,t,o)=>{"use strict";o.d(t,{b:()=>w});var r=o(9262),n=o.n(r),c=o(9307),a=o(4801),s=o(9818),l=o(2629),i=o(9040),m=o(8449),d=o(6112);const u={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},p={...u,email:""},g={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:a.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},h=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,l.decodeEntities)(t)]))),_={cartCoupons:a.EMPTY_CART_COUPONS,cartItems:a.EMPTY_CART_ITEMS,cartFees:a.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:a.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:g,cartIsLoading:!0,cartErrors:a.EMPTY_CART_ERRORS,billingAddress:p,shippingAddress:u,shippingRates:a.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:a.EMPTY_PAYMENT_METHODS,paymentRequirements:a.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:a.EMPTY_EXTENSIONS},w=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:o}=(0,m._)(),r=null==o?void 0:o.previewCart,{shouldSelect:l}=e,g=(0,c.useRef)();(0,d.O)();const w=(0,s.useSelect)(((e,{dispatch:o})=>{if(!l)return _;if(t)return{cartCoupons:r.coupons,cartItems:r.items,crossSellsProducts:r.cross_sells,cartFees:r.fees,cartItemsCount:r.items_count,cartItemsWeight:r.items_weight,cartNeedsPayment:r.needs_payment,cartNeedsShipping:r.needs_shipping,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:r.totals,cartIsLoading:!1,cartErrors:a.EMPTY_CART_ERRORS,billingData:p,billingAddress:p,shippingAddress:u,extensions:a.EMPTY_EXTENSIONS,shippingRates:r.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:r.has_calculated_shipping,paymentRequirements:r.paymentRequirements,receiveCart:"function"==typeof(null==r?void 0:r.receiveCart)?r.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==r?void 0:r.receiveCartContents)?r.receiveCartContents:()=>{}};const n=e(a.CART_STORE_KEY),c=n.getCartData(),s=n.getCartErrors(),m=n.getCartTotals(),d=!n.hasFinishedResolution("getCartData"),g=n.isCustomerDataUpdating(),{receiveCart:w,receiveCartContents:E}=o(a.CART_STORE_KEY),b=h(c.billingAddress),v=c.needsShipping?h(c.shippingAddress):b,y=c.fees.length>0?c.fees.map((e=>h(e))):a.EMPTY_CART_FEES;return{cartCoupons:c.coupons.length>0?c.coupons.map((e=>({...e,label:e.code}))):a.EMPTY_CART_COUPONS,cartItems:c.items,crossSellsProducts:c.crossSells,cartFees:y,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:m,cartIsLoading:d,cartErrors:s,billingData:(0,i.QI)(b),billingAddress:(0,i.QI)(b),shippingAddress:(0,i.QI)(v),extensions:c.extensions,shippingRates:c.shippingRates,isLoadingRates:g,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,receiveCart:w,receiveCartContents:E}}),[l]);return g.current&&n()(g.current,w)||(g.current=w),g.current}},7001:(e,t,o)=>{"use strict";o.d(t,{c:()=>i});var r=o(9307),n=o(9818),c=o(4801),a=o(2629),s=o(9477);const l=(e,t)=>{const o=e.find((({id:e})=>e===t));return o?o.quantity:0},i=e=>{const{addItemToCart:t}=(0,n.useDispatch)(c.CART_STORE_KEY),{cartItems:o,cartIsLoading:i}=(0,s.b)(),{createErrorNotice:m,removeNotice:d}=(0,n.useDispatch)("core/notices"),[u,p]=(0,r.useState)(!1),g=(0,r.useRef)(l(o,e));return(0,r.useEffect)((()=>{const t=l(o,e);t!==g.current&&(g.current=t)}),[o,e]),{cartQuantity:Number.isFinite(g.current)?g.current:0,addingToCart:u,cartIsLoading:i,addToCart:(o=1)=>(p(!0),t(e,o).then((()=>{d("add-to-cart")})).catch((e=>{m((0,a.decodeEntities)(e.message),{id:"add-to-cart",context:"wc/all-products",isDismissible:!0})})).finally((()=>{p(!1)})))}}},8360:(e,t,o)=>{"use strict";o.d(t,{n:()=>a});var r=o(2694),n=o(9818),c=o(9307);const a=()=>({dispatchStoreEvent:(0,c.useCallback)(((e,t={})=>{try{(0,r.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:(0,c.useCallback)(((e,t={})=>{try{(0,r.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:(0,n.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])})},8449:(e,t,o)=>{"use strict";o.d(t,{_:()=>c}),o(9196);var r=o(9307);o(9818);const n=(0,r.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),c=()=>(0,r.useContext)(n)},9530:(e,t,o)=>{"use strict";o.d(t,{s:()=>a});var r=o(9307),n=o(9127),c=o.n(n);function a(e){const t=(0,r.useRef)(e);return c()(e,t.current)||(t.current=e),t.current}},947:(e,t,o)=>{"use strict";o.d(t,{F:()=>i});var r=o(3849),n=o.n(r),c=o(7998),a=o(3243),s=o(3392),l=o(172);const i=e=>{const t=(e=>{const t=(0,c.Kn)(e)?e:{style:{}};let o=t.style;return(0,a.H)(o)&&(o=JSON.parse(o)||{}),(0,c.Kn)(o)||(o={}),{...t,style:o}})(e),o=(0,l.vc)(t),r=(0,l.l8)(t),i=(0,l.su)(t),m=(0,s.f)(t);return{className:n()(m.className,o.className,r.className,i.className),style:{...m.style,...o.style,...r.style,...i.style}}}},3392:(e,t,o)=>{"use strict";o.d(t,{f:()=>c});var r=o(7998),n=o(3243);const c=e=>{const t=(0,r.Kn)(e.style.typography)?e.style.typography:{},o=(0,n.H)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},9040:(e,t,o)=>{"use strict";o.d(t,{QI:()=>c});var r=o(5969),n=(o(6483),o(2629),o(8752));const c=e=>{const t=(0,r.Z)(n.Ju,{},e.country),o=Object.assign({},e);return t.forEach((({key:t="",hidden:r=!1})=>{r&&((e,t)=>e in t)(t,e)&&(o[t]="")})),o}},172:(e,t,o)=>{"use strict";o.d(t,{l8:()=>d,su:()=>u,vc:()=>m});var r=o(3849),n=o.n(r),c=o(7427),a=o(2289),s=o(7998);function l(e={}){const t={};return(0,a.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function i(e,t){return e&&t?`has-${(0,c.o)(t)}-${e}`:""}function m(e){var t,o,r,c,a,m,d;const{backgroundColor:u,textColor:p,gradient:g,style:h}=e,_=i("background-color",u),w=i("color",p),E=function(e){if(e)return`has-${e}-gradient-background`}(g),b=E||(null==h||null===(t=h.color)||void 0===t?void 0:t.gradient);return{className:n()(w,E,{[_]:!b&&!!_,"has-text-color":p||(null==h||null===(o=h.color)||void 0===o?void 0:o.text),"has-background":u||(null==h||null===(r=h.color)||void 0===r?void 0:r.background)||g||(null==h||null===(c=h.color)||void 0===c?void 0:c.gradient),"has-link-color":(0,s.Kn)(null==h||null===(a=h.elements)||void 0===a?void 0:a.link)?null==h||null===(m=h.elements)||void 0===m||null===(d=m.link)||void 0===d?void 0:d.color:void 0}),style:l({color:(null==h?void 0:h.color)||{}})}}function d(e){var t;const o=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:o,style:r}=e,c=o?i("border-color",o):"";return n()({"has-border-color":!!o||!(null==r||null===(t=r.border)||void 0===t||!t.color),[c]:!!c})}(e),style:l({border:o})}}function u(e){var t;return{className:void 0,style:l({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},7845:(e,t,o)=>{"use strict";o.d(t,{f:()=>r});const r=()=>window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""},1469:(e,t,o)=>{"use strict";o.d(t,{V:()=>r});const r=(e,t)=>e.reduce(((e,o)=>(e[String(t?o[t]:o)]=o,e)),{})},2592:(e,t,o)=>{"use strict";o.d(t,{Es:()=>a,Q9:()=>c});const r=window.CustomEvent||null,n=(e,{bubbles:t=!1,cancelable:o=!1,element:n,detail:c={}})=>{if(!r)return;n||(n=document.body);const a=new r(e,{bubbles:t,cancelable:o,detail:c});n.dispatchEvent(a)},c=({preserveCartData:e=!1})=>{n("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:e}})},a=(e,t,o=!1,r=!1)=>{if("function"!=typeof jQuery)return()=>{};const c=()=>{n(t,{bubbles:o,cancelable:r})};return jQuery(document).on(e,c),()=>jQuery(document).off(e,c)}},2684:(e,t,o)=>{"use strict";o.d(t,{K:()=>n,L:()=>r});const r=e=>e.is_purchasable||!1,n=e=>["simple","variable"].includes(e.type||"simple")},1925:(e,t,o)=>{"use strict";o.r(t),o.d(t,{metadata:()=>Io,name:()=>br});var r=o(9196),n=o(4981),c=o(2911),a=o(567),s=o(8752);const l=window.wp.blockEditor;var i=o(5736),m=o(3849),d=o.n(m);const u={category:"woocommerce-product-elements",keywords:[(0,i.__)("WooCommerce","woocommerce")],icon:{src:(0,r.createElement)(c.Z,{icon:a.Z,className:"wc-block-editor-components-block-icon"})},supports:{html:!1},ancestor:["woocommerce/all-products","woocommerce/single-product"],save:({attributes:e})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock||e.isDescendentOfSingleProductTemplate?null:(0,r.createElement)("div",{className:d()("is-loading",e.className)}),deprecated:[{attributes:{},save:()=>null}]};var p=o(1202),g=o(5609),h=o(4333),_=o(9307),w=o(444);function E({level:e}){const t={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return t.hasOwnProperty(e)?(0,r.createElement)(w.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(w.Path,{d:t[e]})):null}class b extends _.Component{createLevelControl(e,t,o){const n=e===t;return{icon:(0,r.createElement)(E,{level:e}),title:(0,i.sprintf)(/* translators: %s: heading level e.g: "2", "3", "4" */ /* translators: %s: heading level e.g: "2", "3", "4" */ (0,i.__)("Heading %d","woocommerce"),e),isActive:n,onClick:()=>o(e)}}render(){const{isCollapsed:e=!0,minLevel:t,maxLevel:o,selectedLevel:n,onChange:c}=this.props,a=Array.from({length:o-t+1},((e,o)=>o+t));return(0,r.createElement)(g.ToolbarGroup,{isCollapsed:e,icon:(0,r.createElement)(E,{level:n}),controls:a.map((e=>this.createLevelControl(e,n,c)))})}}const v=b;var y=o(935),k=o(4696);function f(e,t,o){const r=new Set(t.map((e=>e[o])));return e.filter((e=>!r.has(e[o])))}var S=o(2629),C=o(1469);const x={clear:(0,i.__)("Clear all selected items","woocommerce"),noItems:(0,i.__)("No items found.","woocommerce"), /* Translators: %s search term */ noResults:(0,i.__)("No results for %s","woocommerce"),search:(0,i.__)("Search for items","woocommerce"),selected:e=>(0,i.sprintf)(/* translators: Number of items selected from list. */ /* translators: Number of items selected from list. */ (0,i._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:(0,i.__)("Search results updated.","woocommerce")},N=(e,t=e)=>{const o=e.reduce(((e,t)=>{const o=t.parent||0;return e[o]||(e[o]=[]),e[o].push(t),e}),{}),r=(0,C.V)(t,"id"),n=["0"],c=(e={})=>e.parent?[...c(r[e.parent]),e.name]:e.name?[e.name]:[],a=e=>e.map((e=>{const t=o[e.id];return n.push(""+e.id),{...e,breadcrumbs:c(r[e.parent]),children:t&&t.length?a(t):[]}})),s=a(o[0]||[]);return Object.entries(o).forEach((([e,t])=>{n.includes(e)||s.push(...a(t||[]))})),s},P=(e,t)=>{if(!t)return e;const o=new RegExp(`(${t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"ig");return e.split(o).map(((e,t)=>o.test(e)?(0,r.createElement)("strong",{key:t},e):(0,r.createElement)(_.Fragment,{key:t},e)))},T=({label:e})=>(0,r.createElement)("span",{className:"woocommerce-search-list__item-count"},e),I=e=>{const{item:t,search:o}=e,n=t.breadcrumbs&&t.breadcrumbs.length;return(0,r.createElement)("span",{className:"woocommerce-search-list__item-label"},n?(0,r.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(c=t.breadcrumbs).length?c.slice(0,1).toString():2===c.length?c.slice(0,1).toString()+" › "+c.slice(-1).toString():c.slice(0,1).toString()+" … "+c.slice(-1).toString()):null,(0,r.createElement)("span",{className:"woocommerce-search-list__item-name"},P((0,S.decodeEntities)(t.name),o)));var c},A=({countLabel:e,className:t,depth:o=0,controlId:n="",item:c,isSelected:a,isSingle:s,onSelect:l,search:i="",selected:m,useExpandedPanelId:u,...p})=>{var h,w;const[E,b]=u,v=null!=e&&void 0!==c.count&&null!==c.count,y=!(null===(h=c.breadcrumbs)||void 0===h||!h.length),k=!(null===(w=c.children)||void 0===w||!w.length),C=E===c.id,x=d()(["woocommerce-search-list__item",`depth-${o}`,t],{"has-breadcrumbs":y,"has-children":k,"has-count":v,"is-expanded":C,"is-radio-button":s}),N=p.name||`search-list-item-${n}`,A=`${N}-${c.id}`,O=(0,_.useCallback)((()=>{b(C?-1:Number(c.id))}),[C,c.id,b]);return k?(0,r.createElement)("div",{className:x,onClick:O,onKeyDown:e=>"Enter"===e.key||" "===e.key?O():null,role:"treeitem",tabIndex:0},s?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("input",{type:"radio",id:A,name:N,value:c.value,onChange:l(c),onClick:e=>e.stopPropagation(),checked:a,className:"woocommerce-search-list__item-input",...p}),(0,r.createElement)(I,{item:c,search:i}),v?(0,r.createElement)(T,{label:e||c.count}):null):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.CheckboxControl,{className:"woocommerce-search-list__item-input",checked:a,...!a&&c.children.some((e=>m.find((t=>t.id===e.id))))?{indeterminate:!0}:{},label:P((0,S.decodeEntities)(c.name),i),onChange:()=>{a?l(f(m,c.children,"id"))():l(function(e,t,o){const r=f(t,e,"id");return[...e,...r]}(m,c.children))()},onClick:e=>e.stopPropagation()}),v?(0,r.createElement)(T,{label:e||c.count}):null)):(0,r.createElement)("label",{htmlFor:A,className:x},s?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("input",{...p,type:"radio",id:A,name:N,value:c.value,onChange:l(c),checked:a,className:"woocommerce-search-list__item-input"}),(0,r.createElement)(I,{item:c,search:i})):(0,r.createElement)(g.CheckboxControl,{...p,id:A,name:N,className:"woocommerce-search-list__item-input",value:(0,S.decodeEntities)(c.value),label:P((0,S.decodeEntities)(c.name),i),onChange:l(c),checked:a}),v?(0,r.createElement)(T,{label:e||c.count}):null)},O=A;var R=o(2720),B=o(837);o(1058);const D=({id:e,label:t,popoverContents:o,remove:n,screenReaderLabel:a,className:s=""})=>{const[l,m]=(0,_.useState)(!1),u=(0,h.useInstanceId)(D);if(a=a||t,!t)return null;t=(0,S.decodeEntities)(t);const p=d()("woocommerce-tag",s,{"has-remove":!!n}),w=`woocommerce-tag__label-${u}`,E=(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},a),(0,r.createElement)("span",{"aria-hidden":"true"},t));return(0,r.createElement)("span",{className:p},o?(0,r.createElement)(g.Button,{className:"woocommerce-tag__text",id:w,onClick:()=>m(!0)},E):(0,r.createElement)("span",{className:"woocommerce-tag__text",id:w},E),o&&l&&(0,r.createElement)(g.Popover,{onClose:()=>m(!1)},o),n&&(0,r.createElement)(g.Button,{className:"woocommerce-tag__remove",onClick:n(e),label:(0,i.sprintf)( // Translators: %s label. // Translators: %s label. (0,i.__)("Remove %s","woocommerce"),t),"aria-describedby":w},(0,r.createElement)(c.Z,{icon:B.Z,size:20,className:"clear-icon",role:"img"})))},L=D;o(9658);const F=e=>(0,r.createElement)(O,{...e}),V=e=>{const{list:t,selected:o,renderItem:n,depth:c=0,onSelect:a,instanceId:s,isSingle:l,search:i,useExpandedPanelId:m}=e,[d]=m;return t?(0,r.createElement)(_.Fragment,null,t.map((t=>{var u,p;const g=null!==(u=t.children)&&void 0!==u&&u.length&&!l?t.children.every((({id:e})=>o.find((t=>t.id===e)))):!!o.find((({id:e})=>e===t.id)),h=(null===(p=t.children)||void 0===p?void 0:p.length)&&d===t.id;return(0,r.createElement)(_.Fragment,{key:t.id},(0,r.createElement)("li",null,n({item:t,isSelected:g,onSelect:a,isSingle:l,selected:o,search:i,depth:c,useExpandedPanelId:m,controlId:s})),h?(0,r.createElement)(V,{...e,list:t.children,depth:c+1}):null)}))):null},M=({isLoading:e,isSingle:t,selected:o,messages:n,onChange:c,onRemove:a})=>{if(e||t||!o)return null;const s=o.length;return(0,r.createElement)("div",{className:"woocommerce-search-list__selected"},(0,r.createElement)("div",{className:"woocommerce-search-list__selected-header"},(0,r.createElement)("strong",null,n.selected(s)),s>0?(0,r.createElement)(g.Button,{variant:"link",isDestructive:!0,onClick:()=>c([]),"aria-label":n.clear},(0,i.__)("Clear all","woocommerce")):null),s>0?(0,r.createElement)("ul",null,o.map(((e,t)=>(0,r.createElement)("li",{key:t},(0,r.createElement)(L,{label:e.name,id:e.id,remove:a}))))):null)},q=({filteredList:e,search:t,onSelect:o,instanceId:n,useExpandedPanelId:a,...s})=>{const{messages:l,renderItem:m,selected:d,isSingle:u}=s,p=m||F;return 0===e.length?(0,r.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},(0,r.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},(0,r.createElement)(c.Z,{icon:R.Z,role:"img"})),(0,r.createElement)("span",{className:"woocommerce-search-list__not-found-text"},t?(0,i.sprintf)(l.noResults,t):l.noItems)):(0,r.createElement)("ul",{className:"woocommerce-search-list__list"},(0,r.createElement)(V,{useExpandedPanelId:a,list:e,selected:d,renderItem:p,onSelect:o,instanceId:n,isSingle:u,search:t}))},$=e=>{const{className:t="",isCompact:o,isHierarchical:n,isLoading:c,isSingle:a,list:s,messages:l=x,onChange:m,onSearch:u,selected:p,type:w="text",debouncedSpeak:E}=e,[b,v]=(0,_.useState)(""),y=(0,_.useState)(-1),k=(0,h.useInstanceId)($),f=(0,_.useMemo)((()=>({...x,...l})),[l]),S=(0,_.useMemo)((()=>((e,t,o)=>{if(!t)return o?N(e):e;const r=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),n=e.map((e=>!!r.test(e.name)&&e)).filter(Boolean);return o?N(n,e):n})(s,b,n)),[s,b,n]);(0,_.useEffect)((()=>{E&&E(f.updated)}),[E,f]),(0,_.useEffect)((()=>{"function"==typeof u&&u(b)}),[b,u]);const C=(0,_.useCallback)((e=>()=>{a&&m([]);const t=p.findIndex((({id:t})=>t===e));m([...p.slice(0,t),...p.slice(t+1)])}),[a,p,m]),P=(0,_.useCallback)((e=>()=>{Array.isArray(e)?m(e):-1===p.findIndex((({id:t})=>t===e.id))?m(a?[e]:[...p,e]):C(e.id)()}),[a,C,m,p]),T=(0,_.useCallback)((e=>{const[t]=p.filter((t=>!e.find((e=>t.id===e.id))));C(t.id)()}),[C,p]);return(0,r.createElement)("div",{className:d()("woocommerce-search-list",t,{"is-compact":o,"is-loading":c,"is-token":"token"===w})},"text"===w&&(0,r.createElement)(M,{...e,onRemove:C,messages:f}),(0,r.createElement)("div",{className:"woocommerce-search-list__search"},"text"===w?(0,r.createElement)(g.TextControl,{label:f.search,type:"search",value:b,onChange:e=>v(e)}):(0,r.createElement)(g.FormTokenField,{disabled:c,label:f.search,onChange:T,onInputChange:e=>v(e),suggestions:[],__experimentalValidateInput:()=>!1,value:c?[(0,i.__)("Loading…","woocommerce")]:p.map((e=>({...e,value:e.name}))),__experimentalShowHowTo:!1})),c?(0,r.createElement)("div",{className:"woocommerce-search-list__list"},(0,r.createElement)(g.Spinner,null)):(0,r.createElement)(q,{...e,search:b,filteredList:S,messages:f,onSelect:P,instanceId:k,useExpandedPanelId:y}))},H=((0,g.withSpokenMessages)($),e=>t=>{let{selected:o}=t;o=void 0===o?null:o;const n=null===o;return Array.isArray(o)?(0,r.createElement)(e,{...t}):(0,r.createElement)(e,{...t,selected:n?[]:[o]})});var Z=o(6483),z=o(6989),j=o.n(z),G=o(4617);const Q=({selected:e=[],search:t="",queryArgs:o={}})=>{const r=(({selected:e=[],search:t="",queryArgs:o={}})=>{const r=s.Cm.productCount>100,n={per_page:r?100:0,catalog_visibility:"any",search:t,orderby:"title",order:"asc"},c=[(0,Z.addQueryArgs)("/wc/store/v1/products",{...n,...o})];return r&&e.length&&c.push((0,Z.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:e,per_page:0})),c})({selected:e,search:t,queryArgs:o});return Promise.all(r.map((e=>j()({path:e})))).then((e=>{const t=((e,t)=>{const o=new Map;return e.filter((e=>{const r=t(e);return!o.has(r)&&(o.set(r,e),!0)}))})(e.flat(),(e=>e.id));return t.map((e=>({...e,parent:0})))})).catch((e=>{throw e}))};var W=o(2600);const Y=async e=>{if(!("json"in e))return{message:e.message,type:e.type||"general"};try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}};var K=o(7708),U=o(9127),J=o.n(U);const X=(0,h.createHigherOrderComponent)((e=>{class t extends _.Component{constructor(...e){super(...e),(0,K.Z)(this,"state",{error:null,loading:!1,variations:{}}),(0,K.Z)(this,"prevSelectedItem",void 0),(0,K.Z)(this,"loadVariations",(()=>{const{products:e}=this.props,{loading:t,variations:o}=this.state;if(t)return;const r=this.getExpandedProduct();if(!r||o[r])return;const n=e.find((e=>e.id===r));var c;null!=n&&n.variations&&0!==n.variations.length?(this.setState({loading:!0}),(c=r,j()({path:(0,Z.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:c})})).then((e=>{const t=e.map((e=>({...e,parent:r})));this.setState({variations:{...this.state.variations,[r]:t},loading:!1,error:null})})).catch((async e=>{const t=await Y(e);this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:t})}))):this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:null})}))}componentDidMount(){const{selected:e,showVariations:t}=this.props;e&&t&&this.loadVariations()}componentDidUpdate(e){const{isLoading:t,selected:o,showVariations:r}=this.props;r&&(!J()(e.selected,o)||e.isLoading&&!t)&&this.loadVariations()}isProductId(e){const{products:t}=this.props;return t.some((t=>t.id===e))}findParentProduct(e){var t;const{products:o}=this.props;return null===(t=o.filter((t=>t.variations&&t.variations.find((({id:t})=>t===e))))[0])||void 0===t?void 0:t.id}getExpandedProduct(){const{isLoading:e,selected:t,showVariations:o}=this.props;if(!o)return null;let r=t&&t.length?t[0]:null;return r?this.prevSelectedItem=r:!this.prevSelectedItem||e||this.isProductId(this.prevSelectedItem)||(r=this.prevSelectedItem),!e&&r?this.isProductId(r)?r:this.findParentProduct(r):null}render(){const{error:t,isLoading:o}=this.props,{error:n,loading:c,variations:a}=this.state;return(0,r.createElement)(e,{...this.props,error:n||t,expandedProduct:this.getExpandedProduct(),isLoading:o,variations:a,variationsLoading:c})}}return t}),"withProductVariations"),ee=X,te=e=>{const{id:t,name:o,parent:r}=e;return{id:t,name:o,parent:r,breadcrumbs:[],children:[],details:e,value:e.slug}},oe=window.wp.escapeHtml,re=({error:e})=>(0,r.createElement)("div",{className:"wc-block-error-message"},(({message:e,type:t})=>e?"general"===t?(0,r.createElement)("span",null,(0,i.__)("The following error was returned","woocommerce"),(0,r.createElement)("br",null),(0,r.createElement)("code",null,(0,oe.escapeHTML)(e))):"api"===t?(0,r.createElement)("span",null,(0,i.__)("The following error was returned from the API","woocommerce"),(0,r.createElement)("br",null),(0,r.createElement)("code",null,(0,oe.escapeHTML)(e))):e:(0,i.__)("An error has prevented the block from being updated.","woocommerce"))(e)),ne=({className:e,item:t,isSelected:o,isLoading:n,onSelect:c,disabled:a,...s})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(A,{...s,key:t.id,className:e,isSelected:o,item:t,onSelect:c,disabled:a}),o&&n&&(0,r.createElement)("div",{key:"loading",className:d()("woocommerce-search-list__item","woocommerce-product-attributes__item","depth-1","is-loading","is-not-active")},(0,r.createElement)(g.Spinner,null)));o(8550);const ce={list:(0,i.__)("Products","woocommerce"),noItems:(0,i.__)("Your store doesn't have any products.","woocommerce"),search:(0,i.__)("Search for a product to display","woocommerce"),updated:(0,i.__)("Product search results updated.","woocommerce")},ae=H((se=ee((0,h.withInstanceId)((e=>{const{expandedProduct:t=null,error:o,instanceId:n,isCompact:c=!1,isLoading:a,onChange:s,onSearch:l,products:m,renderItem:u,selected:p=[],showVariations:g=!1,variations:h,variationsLoading:_}=e;if(o)return(0,r.createElement)(re,{error:o});const w=[...m,...h&&t&&h[t]?h[t]:[]].map(te);return(0,r.createElement)($,{className:"woocommerce-products",list:w,isCompact:c,isLoading:a,isSingle:!0,selected:w.filter((({id:e})=>p.includes(Number(e)))),onChange:s,renderItem:u||(g?e=>{var t,o,c,s;const{item:l,search:m,depth:u=0,isSelected:p,onSelect:g}=e,h=null!==(t=l.details)&&void 0!==t&&t.variations&&Array.isArray(l.details.variations)?l.details.variations.length:0,w=d()("woocommerce-search-product__item","woocommerce-search-list__item",`depth-${u}`,"has-count",{"is-searching":m.length>0,"is-skip-level":0===u&&0!==l.parent,"is-variable":h>0});if(!l.breadcrumbs.length){var E,b,v,y,f;const t=(null===(E=l.details)||void 0===E?void 0:E.variations)&&l.details.variations.length>0;return(0,r.createElement)(ne,{...e,className:d()(w,{"is-selected":p}),isSelected:p,item:l,onSelect:()=>()=>{g(l)()},isLoading:a||_,countLabel:t?(0,i.sprintf)(/* translators: %1$d is the number of variations of a product product. */ /* translators: %1$d is the number of variations of a product product. */ (0,i.__)("%1$d variations","woocommerce"),null===(b=l.details)||void 0===b?void 0:b.variations.length):null,name:`products-${n}`,"aria-label":t?(0,i.sprintf)(/* translators: %1$s is the product name, %2$d is the number of variations of that product. */ /* translators: %1$s is the product name, %2$d is the number of variations of that product. */ (0,i._n)("%1$s, has %2$d variation","%1$s, has %2$d variations",null===(v=l.details)||void 0===v||null===(y=v.variations)||void 0===y?void 0:y.length,"woocommerce"),l.name,null===(f=l.details)||void 0===f?void 0:f.variations.length):void 0})}const S=(0,k.x)(null===(o=l.details)||void 0===o?void 0:o.variation)?e:{...e,item:{...e.item,name:null===(c=l.details)||void 0===c?void 0:c.variation},"aria-label":`${l.breadcrumbs[0]}: ${null===(s=l.details)||void 0===s?void 0:s.variation}`};return(0,r.createElement)(A,{...S,className:w,name:`variations-${n}`})}:()=>null),onSearch:l,messages:ce,isHierarchical:!0})}))),({selected:e,...t})=>{const[o,n]=(0,_.useState)(!0),[c,a]=(0,_.useState)(null),[l,i]=(0,_.useState)([]),m=s.Cm.productCount>100,d=async e=>{const t=await Y(e);a(t),n(!1)},u=(0,_.useRef)(e);(0,_.useEffect)((()=>{Q({selected:u.current}).then((e=>{i(e),n(!1)})).catch(d)}),[u]);const p=(0,W.y1)((t=>{Q({selected:e,search:t}).then((e=>{i(e),n(!1)})).catch(d)}),400),g=(0,_.useCallback)((e=>{n(!0),p(e)}),[n,p]);return(0,r.createElement)(se,{...t,selected:e,error:c,products:l,isLoading:o,onSearch:m?g:null})}));var se;o(5256);const le=function({className:e="",...t}){const o=d()("wc-block-text-toolbar-button",e);return(0,r.createElement)(g.Button,{className:o,...t})};var ie=o(2864);o(2648);const me=e=>t=>o=>{var n;const c=(0,ie.useProductDataContext)(),{attributes:a,setAttributes:s}=o,{productId:m}=a,[d,u]=(0,_.useState)(!m);return c.hasContext||Number.isFinite(null===(n=o.context)||void 0===n?void 0:n.queryId)?(0,r.createElement)(t,{...o}):(0,r.createElement)(r.Fragment,null,d?(0,r.createElement)(g.Placeholder,{icon:e.icon||"",label:e.label||"",className:"wc-atomic-blocks-product"},!!e.description&&(0,r.createElement)("div",null,e.description),(0,r.createElement)("div",{className:"wc-atomic-blocks-product__selection"},(0,r.createElement)(ae,{selected:m||0,showVariations:!0,onChange:(e=[])=>{s({productId:e[0]?e[0].id:0})}}),(0,r.createElement)(g.Button,{variant:"secondary",disabled:!m,onClick:()=>{u(!1)}},(0,i.__)("Done","woocommerce")))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(g.ToolbarGroup,null,(0,r.createElement)(le,{onClick:()=>u(!0)},(0,i.__)("Switch product…","woocommerce")))),(0,r.createElement)(t,{...o})))};var de=o(1191);const ue=(0,i.__)("Product Title","woocommerce"),pe=(0,r.createElement)(c.Z,{icon:de.Z,className:"wc-block-editor-components-block-icon"}),ge=(0,i.__)("Display the title of a product.","woocommerce");o(559);const he=({attributes:e,setAttributes:t})=>{const o=(0,l.useBlockProps)(),{headingLevel:n,showProductLink:c,align:a,linkTarget:m}=e;return(0,r.createElement)("div",{...o},(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(v,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:n,onChange:e=>t({headingLevel:e})}),(0,s.uq)()&&(0,r.createElement)(l.AlignmentToolbar,{value:a,onChange:e=>{t({align:e})}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Link settings","woocommerce")},(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Make title a link","woocommerce"),checked:c,onChange:()=>t({showProductLink:!c})}),c&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Open in new tab","woocommerce"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===m})))),(0,r.createElement)(g.Disabled,null,(0,r.createElement)(y.Z,{...e})))},_e=(0,s.uq)()?(0,h.compose)([me({icon:pe,label:ue,description:(0,i.__)("Choose a product to display its title.","woocommerce")})])(he):he,we={...u,apiVersion:2,title:ue,description:ge,icon:{src:pe},attributes:p.Z,edit:_e,save:({attributes:e})=>(0,r.createElement)("div",{...l.useBlockProps.save({className:d()("is-loading",e.className)})}),supports:{...u.supports,...(0,s.uq)()&&{typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0},color:{text:!0,background:!0,link:!1,gradients:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,__experimentalSkipSerialization:!0}},__experimentalSelector:".wc-block-components-product-title"}}};(0,n.registerBlockType)("woocommerce/product-title",we);var Ee=o(7461),be=o(9818);const ve=()=>({isDescendentOfSingleProductTemplate:(0,be.useSelect)((e=>{const t=e("core/edit-site"),o=null==t?void 0:t.getEditedPostId();return Boolean(null==o?void 0:o.includes("//single-product"))}),[])}),ye={...u.supports,...(0,s.uq)()&&{color:{text:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalSkipSerialization:!0,__experimentalLetterSpacing:!0},__experimentalSelector:".wp-block-woocommerce-product-price .wc-block-components-product-price"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}};var ke=o(1231);const fe=(0,i.__)("Product Price","woocommerce"),Se=(0,r.createElement)(c.Z,{icon:ke.Z,className:"wc-block-editor-components-block-icon"}),Ce=(0,i.__)("Display the price of a product.","woocommerce"),{ancestor:xe,...Ne}=u,Pe={...Ne,apiVersion:2,title:fe,description:Ce,usesContext:["query","queryId","postId"],icon:{src:Se},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},textAlign:{type:"string",default:""},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1},isDescendentOfSingleProductBlock:{type:"boolean",default:!1}},supports:ye,edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c={...e,...o},a=Number.isFinite(o.queryId);let{isDescendentOfSingleProductTemplate:s}=ve();return a&&(s=!1),(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:a,isDescendentOfSingleProductTemplate:s})),[a,s,t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e})}})),(0,r.createElement)("div",{...n},(0,r.createElement)(Ee.default,{...c})))}};(0,n.registerBlockType)("woocommerce/product-price",Pe);const Te=e=>"boolean"==typeof e;var Ie=o(2090),Ae=o(4351);const Oe=(0,i.__)("Product Image","woocommerce"),Re=(0,r.createElement)(c.Z,{icon:Ae.Z,className:"wc-block-editor-components-block-icon"}),Be=(0,i.__)("Display the main product image.","woocommerce");var De=o(6344);const Le={cover:(0,i.__)("Image is scaled and cropped to fill the entire space without being distorted.","woocommerce"),contain:(0,i.__)("Image is scaled to fill the space without clipping nor distorting.","woocommerce"),fill:(0,i.__)("Image will be stretched and distorted to completely fill the space.","woocommerce")},Fe=({scale:e,width:t,height:o,setAttributes:n})=>(0,r.createElement)(g.__experimentalToolsPanel,{className:"wc-block-product-image__tools-panel",label:(0,i.__)("Image size","woocommerce")},(0,r.createElement)(g.__experimentalUnitControl,{label:(0,i.__)("Height","woocommerce"),onChange:e=>{n({height:e})},value:o,units:[{value:"px",label:"px"}]}),(0,r.createElement)(g.__experimentalUnitControl,{label:(0,i.__)("Width","woocommerce"),onChange:e=>{n({width:e})},value:t,units:[{value:"px",label:"px"}]}),o&&(0,r.createElement)(g.__experimentalToolsPanelItem,{hasValue:()=>!0,label:(0,i.__)("Scale","woocommerce")},(0,r.createElement)(g.__experimentalToggleGroupControl,{label:(0,i.__)("Scale","woocommerce"),value:e,help:Le[e],onChange:e=>n({scale:e}),isBlock:!0},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"cover",label:(0,i.__)("Cover","woocommerce")}),(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"contain",label:(0,i.__)("Contain","woocommerce")}),(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"fill",label:(0,i.__)("Fill","woocommerce")}))))),Ve=me({icon:Re,label:Oe,description:Be})((({attributes:e,setAttributes:t,context:o})=>{const{showProductLink:n,imageSizing:c,showSaleBadge:a,saleBadgeAlign:s,width:m,height:d,scale:u}=e,p=(0,l.useBlockProps)({style:{width:m,height:d}}),h=Number.isFinite(o.queryId),w=(0,G.getSettingWithCoercion)("isBlockThemeEnabled",!1,Te);return(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:h})),[t,h]),(0,r.createElement)("div",{...p},(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(Fe,{scale:u,width:m,height:d,setAttributes:t}),(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Content","woocommerce")},(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Link to Product Page","woocommerce"),help:(0,i.__)("Links the image to the single product listing.","woocommerce"),checked:n,onChange:()=>t({showProductLink:!n})}),(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Show On-Sale Badge","woocommerce"),help:(0,i.__)("Display a “sale” badge if the product is on-sale.","woocommerce"),checked:a,onChange:()=>t({showSaleBadge:!a})}),a&&(0,r.createElement)(g.__experimentalToggleGroupControl,{label:(0,i.__)("Sale Badge Alignment","woocommerce"),value:s,onChange:e=>t({saleBadgeAlign:e})},(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"left",label:(0,i.__)("Left","woocommerce")}),(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"center",label:(0,i.__)("Center","woocommerce")}),(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:"right",label:(0,i.__)("Right","woocommerce")})),(0,r.createElement)(g.__experimentalToggleGroupControl,{label:(0,i.__)("Image Sizing","woocommerce"),help:w?null:(0,_.createInterpolateElement)((0,i.__)("Product image cropping can be modified in the <a>Customizer</a>.","woocommerce"),{a:(0,r.createElement)("a",{href:`${(0,G.getAdminLink)("customize.php")}?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images`,target:"_blank",rel:"noopener noreferrer"})}),value:c,onChange:e=>t({imageSizing:e})},(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:De.R.SINGLE,label:(0,i.__)("Full Size","woocommerce")}),(0,r.createElement)(g.__experimentalToggleGroupControlOption,{value:De.R.THUMBNAIL,label:(0,i.__)("Cropped","woocommerce")})))),(0,r.createElement)(g.Disabled,null,(0,r.createElement)(Ie.Z,{...e,...o})))})),Me={html:!1,...(0,s.uq)()&&{__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}},__experimentalSelector:".wc-block-components-product-image"}};var qe=o(4122);const $e={...u,apiVersion:2,name:"woocommerce/product-image",title:Oe,icon:{src:Re},keywords:["WooCommerce"],description:Be,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"],textdomain:"woocommerce",attributes:qe.Z,supports:Me,edit:Ve};(0,n.registerBlockType)("woocommerce/product-image",{...$e});var He=o(9060);const Ze=new Set,ze=({blockName:e,blockMetadata:t,blockSettings:o,isVariationBlock:r=!1,variationName:c,isAvailableOnPostEditor:a})=>{let s="";(0,be.subscribe)((()=>{var a;const l=s,i=(0,be.select)("core/edit-site");s=function(e){const t=(0,He.h)(e)?void 0:e;return null==t?void 0:t.split("//")[1]}(null==i?void 0:i.getEditedPostId());const m=l!==s,d=Boolean(s);if(!m||!d||!e)return;let u=Boolean((0,n.getBlockType)(e));if(u&&(null!==(a=s)&&void 0!==a&&a.includes("single-product")||null!=l&&l.includes("single-product"))&&(r&&c?(0,n.unregisterBlockVariation)(e,c):(0,n.unregisterBlockType)(e),u=!1),!u)if(r)(0,n.registerBlockVariation)(e,o);else{var p;const e=(0,k.x)(null==o?void 0:o.ancestor)?["woocommerce/single-product"]:null==o?void 0:o.ancestor;(0,n.registerBlockType)(t,{...o,ancestor:null!==(p=s)&&void 0!==p&&p.includes("single-product")?void 0:e})}}),"core/edit-site"),(0,be.subscribe)((()=>{!(Boolean(c)?Ze.has(c):Ze.has(e))&&a&&(r?(Ze.add(c),(0,n.registerBlockVariation)(e,o)):(Ze.add(e),(0,n.registerBlockType)(t,o)))}),"core/edit-post")};var je=o(8894);o(8011);const Ge=({blockClientId:e})=>{const{isDescendentOfSingleProductBlock:t}=(0,be.useSelect)((t=>{const{getBlockParentsByBlockName:o}=t("core/block-editor");return{isDescendentOfSingleProductBlock:o(null==e?void 0:e.replace("block-",""),["woocommerce/single-product"]).length>0}}),[e]);return{isDescendentOfSingleProductBlock:t}};var Qe=o(9425);(0,i.__)("Product Rating","woocommerce");const We=(0,r.createElement)(c.Z,{icon:Qe.Z,className:"wc-block-editor-components-block-icon"}),Ye=((0,i.__)("Display the average rating of a product.","woocommerce"),JSON.parse('{"name":"woocommerce/product-rating","version":"1.0.0","icon":"info","title":"Product Rating","description":"Display the average rating of a product.","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')),Ke={...(0,s.uq)()&&{color:{text:!0,background:!1,link:!1,__experimentalSkipSerialization:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-rating"},...!(0,s.uq)()&&"function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0}}};ze({blockName:"woocommerce/product-rating",blockMetadata:Ye,blockSettings:{...u,ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"],icon:{src:We},supports:Ke,edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=Ge({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,_.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(je.default,{...a})))}},isAvailableOnPostEditor:!0});var Ue=o(5697);const Je=JSON.parse('{"name":"woocommerce/product-rating-stars","version":"1.0.0","title":"Product Rating Stars","description":"Display the average rating of a product with stars","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true},"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');var Xe=o(1872);const et={...(0,s.uq)()&&{color:{text:!0,background:!1,link:!1,__experimentalSkipSerialization:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-rating"}};(0,n.registerBlockType)(Je,{icon:{src:(0,r.createElement)(c.Z,{icon:Ue.Z,className:"wc-block-editor-components-block-icon"})},supports:et,edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=Ge({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,_.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(Xe.default,{...a})))}});const tt=JSON.parse('{"name":"woocommerce/product-rating-counter","version":"1.0.0","title":"Product Rating Counter","description":"Display the review count of a product","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true},"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');var ot=o(2992);const rt={...(0,s.uq)()&&{color:{text:!1,background:!1,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-rating-counter"}};(0,n.registerBlockType)(tt,{icon:{src:(0,r.createElement)(c.Z,{icon:Ue.Z,className:"wc-block-editor-components-block-icon"})},supports:rt,edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating-counter"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=Ge({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,_.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(ot.default,{...a})))}});var nt=o(5574);const ct=JSON.parse('{"name":"woocommerce/product-average-rating","version":"1.0.0","title":"Product Average Rating (Beta)","description":"Display the average rating of a product","attributes":{"textAlign":{"type":"string"}},"category":"woocommerce","keywords":["WooCommerce"],"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');var at=o(921);const st={...(0,s.uq)()&&{color:{text:!0,background:!0,__experimentalSkipSerialization:!0},spacing:{margin:!0,padding:!0,__experimentalSkipSerialization:!0},typography:{fontSize:!0,__experimentalFontWeight:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-average-rating"}};(0,n.registerBlockType)(ct,{icon:{src:(0,r.createElement)(c.Z,{icon:nt.Z,className:"wc-block-editor-components-block-icon"})},supports:st,edit:e=>{const{attributes:t,setAttributes:o}=e,n=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-average-rating"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...n},(0,r.createElement)(at.default,{...t})))}});var lt=o(2069),it=o(9758);function mt({selectedWidth:e,setAttributes:t}){return(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Width settings","woocommerce")},(0,r.createElement)(g.ButtonGroup,{"aria-label":(0,i.__)("Button width","woocommerce")},[25,50,75,100].map((o=>(0,r.createElement)(g.Button,{key:o,isSmall:!0,variant:o===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=o)?void 0:r})}},o,"%")))))}const dt=JSON.parse('{"name":"woocommerce/product-button","version":"1.0.0","title":"Add to Cart Button","description":"Display a call to action button which either adds the product to the cart, or links to the product page.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["query","queryId","postId"],"textdomain":"woocommerce","attributes":{"productId":{"type":"number","default":0},"textAlign":{"type":"string","default":""},"width":{"type":"number"},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfQueryLoop":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"color":{"background":false,"link":true},"interactivity":true,"html":false,"typography":{"fontSize":true,"lineHeight":true}},"ancestor":["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"],"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"viewScript":["wc-product-button-interactivity-frontend"],"apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),ut={...dt.supports,...(0,s.uq)()&&{color:{text:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0,__experimentalSkipSerialization:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:".wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&!(0,s.uq)()&&{spacing:{margin:!0}}};(0,n.registerBlockType)(dt,{icon:{src:(0,r.createElement)(c.Z,{icon:lt.Z,className:"wc-block-editor-components-block-icon"})},attributes:{...dt.attributes},supports:{...ut},edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c=Number.isFinite(null==o?void 0:o.queryId),{width:a}=e;return(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:c})),[t,c]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,c&&(0,r.createElement)(l.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e||""})}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(mt,{selectedWidth:a,setAttributes:t})),(0,r.createElement)("div",{...n},(0,r.createElement)(g.Disabled,null,(0,r.createElement)(it.default,{...e,...o,className:d()(e.className,{[`has-custom-width wp-block-button__width-${a}`]:a})}))))},save:({attributes:e})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock?null:(0,r.createElement)("div",{...l.useBlockProps.save({className:d()("is-loading",e.className,{[`has-custom-width wp-block-button__width-${e.width}`]:e.width})})})});var pt=o(1985),gt=o(7255);const ht=(0,i.__)("Product Summary","woocommerce"),_t=(0,r.createElement)(c.Z,{icon:gt.Z,className:"wc-block-editor-components-block-icon"}),wt=(0,i.__)("Display a short description about a product.","woocommerce");o(3908);const Et=me({icon:_t,label:ht,description:wt})((({attributes:e})=>{const t=(0,l.useBlockProps)();return(0,r.createElement)("div",{...t},(0,r.createElement)(pt.default,{...e}))})),bt={...(0,s.uq)()&&{color:{background:!1},typography:{fontSize:!0},__experimentalSelector:".wc-block-components-product-summary"}},vt={...u,apiVersion:2,title:ht,description:wt,icon:{src:_t},attributes:{productId:{type:"number",default:0}},supports:bt,edit:Et,save:({attributes:e})=>(0,r.createElement)("div",{...l.useBlockProps.save({className:d()("is-loading",e.className)})})};(0,n.registerBlockType)("woocommerce/product-summary",vt);var yt=o(5863);var kt=o(7138);const ft=(0,i.__)("On-Sale Badge","woocommerce"),St=(0,r.createElement)(c.Z,{icon:kt.Z,className:"wc-block-editor-components-block-icon"}),Ct=(0,i.__)("Displays an on-sale badge if the product is on-sale.","woocommerce"),xt={html:!1,align:!0,...(0,s.uq)()&&{color:{gradients:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalSkipSerialization:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}},__experimentalSelector:".wc-block-components-product-sale-badge"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&!(0,s.uq)()&&{spacing:{margin:!0}}},Nt={...u,title:ft,description:Ct,icon:{src:St},apiVersion:2,supports:xt,attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1}},edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c={...e,...o},a=Number.isFinite(o.queryId),{isDescendentOfSingleProductTemplate:s}=ve();return(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:a,isDescendentOfSingleProductTemplate:s})),[t,a,s]),(0,r.createElement)("div",{...n},(0,r.createElement)(yt.default,{...c}))},usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template","woocommerce/product-gallery"]};(0,n.registerBlockType)("woocommerce/product-sale-badge",{...Nt});var Pt=o(5656);const Tt=e=>{const t=((0,ie.useProductDataContext)().product||{}).id||e.productId||0;return t&&1!==t?(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)("div",{className:"wc-block-single-product__edit-card"},(0,r.createElement)("div",{className:"wc-block-single-product__edit-card-title"},(0,r.createElement)("a",{href:`${G.ADMIN_URL}post.php?post=${t}&action=edit`,target:"_blank",rel:"noopener noreferrer"},(0,i.__)("Edit this product's details","woocommerce"),(0,r.createElement)(c.Z,{icon:Pt.Z,size:16}))),(0,r.createElement)("div",{className:"wc-block-single-product__edit-card-description"},(0,i.__)("Edit details such as title, price, description and more.","woocommerce")))):null};var It=o(8675);const At={...u.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,...(0,s.uq)()&&{__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0}},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}},Ot=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),Rt=(0,i.__)("Product SKU","woocommerce"),Bt=(0,r.createElement)(c.Z,{icon:Ot,className:"wc-block-editor-components-block-icon"}),Dt=(0,i.__)("Display the SKU of a product.","woocommerce"),{ancestor:Lt,...Ft}=u,Vt={...Ft,apiVersion:2,title:Rt,description:Dt,icon:{src:Bt},usesContext:["query","queryId","postId"],attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1},isDescendantOfAllProducts:{type:"boolean",default:!1},showProductSelector:{type:"boolean",default:!1}},ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template","woocommerce/product-meta"],edit:({attributes:e,setAttributes:t,context:o})=>{const{style:n,...c}=(0,l.useBlockProps)({className:"wc-block-components-product-sku wp-block-woocommerce-product-sku"}),a={...e,...o},s=Number.isFinite(o.queryId),{isDescendentOfSingleProductBlock:i}=Ge({blockClientId:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return s&&(m=!1),(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:s,isDescendentOfSingleProductTemplate:m,isDescendentOfSingleProductBlock:i})),[t,s,m,i]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Tt,null),(0,r.createElement)("div",{...c,style:e.isDescendantOfAllProducts?void 0:n},(0,r.createElement)(It.default,{...a})))},supports:At};(0,n.registerBlockType)("woocommerce/product-sku",{...Vt});var Mt=o(4304),qt=o(1918);const $t=(0,i.__)("Product Stock Indicator","woocommerce"),Ht=(0,r.createElement)(c.Z,{icon:qt.Z,className:"wc-block-editor-components-block-icon"}),Zt=(0,i.__)("Display product stock status.","woocommerce"),zt=me({icon:Ht,label:$t,description:Zt})((({attributes:e,setAttributes:t,context:o})=>{const{style:n,...c}=(0,l.useBlockProps)({className:"wc-block-components-product-stock-indicator"}),a={...e,...o},s=Number.isFinite(o.queryId);return(0,_.useEffect)((()=>t({isDescendentOfQueryLoop:s})),[t,s]),(0,r.createElement)("div",{...c,style:e.isDescendantOfAllProducts?void 0:n},(0,r.createElement)(Tt,null),(0,r.createElement)(Mt.default,{...a}))})),jt={...u.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,...(0,s.uq)()&&{__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0}},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}},Gt={...u,apiVersion:2,title:$t,description:Zt,icon:{src:Ht},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendantOfAllProducts:{type:"boolean",default:!1}},supports:jt,edit:zt,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"]};(0,n.registerBlockType)("woocommerce/product-stock-indicator",{...Gt});var Qt=o(2684),Wt=(o(354),o(495));const Yt=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})),Kt=(0,i.__)("Add to Cart","woocommerce"),Ut=(0,r.createElement)(c.Z,{icon:Yt,className:"wc-block-editor-components-block-icon"}),Jt=(0,i.__)("Displays an add to cart button. Optionally displays other add to cart form elements.","woocommerce"),Xt=me({icon:Ut,label:Kt,description:(0,i.__)("Choose a product to display its add to cart form.","woocommerce")})((({attributes:e,setAttributes:t})=>{const{product:o}=(0,ie.useProductDataContext)(),{className:n,showFormElements:c}=e;return(0,r.createElement)("div",{className:d()(n,"wc-block-components-product-add-to-cart")},(0,r.createElement)(Tt,{productId:o.id}),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Layout","woocommerce")},(0,Qt.K)(o)?(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Display form elements","woocommerce"),help:(0,i.__)("Depending on product type, allow customers to select a quantity, variations etc.","woocommerce"),checked:c,onChange:()=>t({showFormElements:!c})}):(0,r.createElement)(g.Notice,{className:"wc-block-components-product-add-to-cart-notice",isDismissible:!1,status:"info"},(0,i.__)("This product does not support the block based add to cart form. A link to the product page will be shown instead.","woocommerce")))),(0,r.createElement)(g.Disabled,null,(0,r.createElement)(Wt.Z,{...e})))})),eo={title:Kt,description:Jt,icon:{src:Ut},edit:Xt,attributes:o(6271).Z};(0,s.mA)("woocommerce/product-add-to-cart",{...u,...eo});const to=JSON.parse('{"name":"woocommerce/add-to-cart-form","version":"1.0.0","title":"Add to Cart with Options","description":"Display a button so the customer can add a product to their cart. Options will also be displayed depending on product type. e.g. quantity, variation.","attributes":{"isDescendentOfSingleProductBlock":{"type":"boolean","default":false}},"category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');o(4542);const oo=({numberOfLines:e=1,tag:t="div",maxWidth:o="100%"})=>{const n=Array.from({length:e},((e,t)=>(0,r.createElement)("span",{className:"wc-block-components-skeleton-text-line","aria-hidden":"true",key:t})));return(0,r.createElement)(t,{className:"wc-block-components-skeleton",style:{maxWidth:o}},n)};o(8091);o(6326);const ro={edit:e=>{const{setAttributes:t}=e,o=(0,l.useBlockProps)({className:"wc-block-add-to-cart-form"}),{isDescendentOfSingleProductBlock:n}=Ge({blockClientId:null==o?void 0:o.id});return(0,_.useEffect)((()=>{t({isDescendentOfSingleProductBlock:n})}),[t,n]),(0,r.createElement)("div",{...o},(0,r.createElement)(g.Tooltip,{text:"Customer will see product add-to-cart options in this space, dependent on the product type. ",position:"bottom right"},(0,r.createElement)("div",{className:"wc-block-editor-add-to-cart-form-container"},(0,r.createElement)(oo,{numberOfLines:3}),(0,r.createElement)(g.Disabled,null,(0,r.createElement)("div",{className:"quantity"},(0,r.createElement)("input",{type:"number",value:"1",className:"input-text qty text",readOnly:!0})),(0,r.createElement)("button",{className:"single_add_to_cart_button button alt wp-element-button"},(0,i.__)("Add to cart","woocommerce"))))))},icon:{src:(0,r.createElement)(c.Z,{icon:lt.Z,className:"wc-block-editor-components-block-icon"})},ancestor:["woocommerce/single-product"],save:()=>null};ze({blockName:to.name,blockMetadata:to,blockSettings:ro,isAvailableOnPostEditor:!0});var no=o(5973),co=o(7998);o(4807);const ao=()=>(0,r.createElement)("div",{className:"wc-block-editor-product-gallery"},(0,r.createElement)("img",{src:`${s.td}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"}),(0,r.createElement)("div",{className:"wc-block-editor-product-gallery__other-images"},[...Array(4).keys()].map((e=>(0,r.createElement)("img",{key:e,src:`${s.td}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"}))))),so=JSON.parse('{"name":"woocommerce/product-image-gallery","version":"1.0.0","title":"Product Image Gallery","icon":"gallery","description":"Display a product\'s images.","category":"woocommerce","supports":{"align":true,"multiple":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');o(7419);const lo="woocommerce/product-gallery";ze({blockName:so.name,blockMetadata:so,blockSettings:{icon:no.Z,edit:({context:e})=>{const t=(0,l.useBlockProps)();return(0,co.Qr)(e)?(0,r.createElement)("div",{...t},(0,r.createElement)(g.Disabled,null,(0,r.createElement)(ao,null))):(0,r.createElement)(r.Fragment,null)},transforms:{to:[{type:"block",blocks:[lo],transform:()=>(0,n.createBlock)(lo)}]}},isAvailableOnPostEditor:!1});const io=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 5.5H19C19.1326 5.5 19.2598 5.55268 19.3536 5.64645C19.4473 5.74021 19.5 5.86739 19.5 6V7.5C19.5 7.63261 19.4473 7.75979 19.3536 7.85355C19.2598 7.94732 19.1326 8 19 8H5C4.86739 8 4.74021 7.94732 4.64645 7.85355C4.55268 7.75979 4.5 7.63261 4.5 7.5V6C4.5 5.86739 4.55268 5.74021 4.64645 5.64645C4.74021 5.55268 4.86739 5.5 5 5.5V5.5ZM4 9.232C3.69597 9.05647 3.4435 8.804 3.26796 8.49997C3.09243 8.19594 3.00001 7.85106 3 7.5V6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4H19C19.5304 4 20.0391 4.21071 20.4142 4.58579C20.7893 4.96086 21 5.46957 21 6V7.5C21 7.85106 20.9076 8.19594 20.732 8.49997C20.5565 8.804 20.304 9.05647 20 9.232V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V9.232ZM5.5 9.5V18C5.5 18.1326 5.55268 18.2598 5.64645 18.3536C5.74021 18.4473 5.86739 18.5 6 18.5H18C18.1326 18.5 18.2598 18.4473 18.3536 18.3536C18.4473 18.2598 18.5 18.1326 18.5 18V9.5H5.5Z"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.25V11.75H16V13.25L8 13.25Z"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16.25V14.75H16V16.25H8Z"})),mo=JSON.parse('{"name":"woocommerce/product-details","version":"1.0.0","icon":"info","title":"Product Details","description":"Display a product\'s description, attributes, and reviews.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true,"spacing":{"margin":true}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),uo=({id:e,title:t,active:o})=>(0,r.createElement)("li",{className:d()(`${e}_tab`,{active:o}),id:`tab-title-${e}`,role:"tab","aria-controls":`tab-${e}`},(0,r.createElement)("a",{href:`#tab-${e}`},t)),po=({id:e,content:t})=>(0,r.createElement)("div",{className:`${e}_tab`,id:`tab-title-${e}`,role:"tab","aria-controls":`tab-${e}`},t),go=()=>{const e=(0,l.useBlockProps)(),t=[{id:"description",title:"Description",active:!0,content:(0,i.__)("This block lists description, attributes and reviews for a single product.","woocommerce")},{id:"additional_information",title:"Additional Information",active:!1},{id:"reviews",title:"Reviews",active:!1}],o=t.map((({id:e,title:t,active:o})=>(0,r.createElement)(uo,{key:e,id:e,title:t,active:o}))),n=t.map((({id:e,content:t})=>(0,r.createElement)(po,{key:e,id:e,content:t})));return(0,r.createElement)("div",{...e},(0,r.createElement)("ul",{className:"wc-tabs tabs",role:"tablist"},o),n)};o(8912);o(7049),ze({blockName:mo.name,blockMetadata:mo,blockSettings:{icon:{src:(0,r.createElement)(c.Z,{icon:io,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,o=(0,l.useBlockProps)({className:t});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...o},(0,r.createElement)(g.Disabled,null,(0,r.createElement)(go,null))))}},isAvailableOnPostEditor:!1});const ho=JSON.parse('{"name":"woocommerce/product-reviews","version":"1.0.0","icon":"admin-comments","title":"Product Reviews","description":"A block that shows the reviews for a product.","category":"woocommerce","keywords":["WooCommerce"],"supports":{},"attributes":{},"usesContext":["postId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),_o=()=>{const e=(0,l.useBlockProps)();return(0,r.createElement)("div",{...e},(0,r.createElement)(g.Notice,{className:"wc-block-editor-related-products__notice",status:"info",isDismissible:!1},(0,r.createElement)("p",null,(0,i.__)("The products reviews and the form to add a new review will be displayed here according to your theme. The look you see here is not representative of what is going to look like, this is just a placeholder.","woocommerce"))),(0,r.createElement)("h2",null,(0,i.__)("3 reviews for this product","woocommerce")),(0,r.createElement)("img",{src:`${s.td}block-placeholders/product-reviews.svg`,alt:"Placeholder"}),(0,r.createElement)("h3",null,(0,i.__)("Add a review","woocommerce")),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__form-container"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},(0,r.createElement)("span",null,(0,i.__)("Your rating *","woocommerce")),(0,r.createElement)("p",{className:"wp-block-woocommerce-product-reviews__editor__stars"})),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},(0,r.createElement)("span",null,(0,i.__)("Your review *","woocommerce")),(0,r.createElement)("textarea",null)),(0,r.createElement)("input",{type:"submit",className:"submit wp-block-button__link wp-element-button",value:(0,i.__)("Submit","woocommerce")})))};o(846),ze({blockName:ho.name,blockMetadata:ho,blockSettings:{edit:({attributes:e})=>{const{className:t}=e,o=(0,l.useBlockProps)({className:t});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...o},(0,r.createElement)(g.Disabled,null,(0,r.createElement)(_o,null))))}},isAvailableOnPostEditor:!1});const wo=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 19.375L4.5 7.625C4.5 7.55596 4.55596 7.5 4.625 7.5L16.375 7.5C16.444 7.5 16.5 7.55596 16.5 7.625L16.5 19.375C16.5 19.444 16.444 19.5 16.375 19.5L4.625 19.5C4.55596 19.5 4.5 19.444 4.5 19.375ZM4.625 21C3.72754 21 3 20.2725 3 19.375L3 7.625C3 6.72754 3.72754 6 4.625 6L16.375 6C17.2725 6 18 6.72754 18 7.625L18 19.375C18 20.2725 17.2725 21 16.375 21L4.625 21ZM19 3.75L8 3.75L8 2.25L19 2.25C20.5183 2.25 21.75 3.4796 21.75 4.99891L21.75 18L20.25 18L20.25 4.99891C20.25 4.30909 19.6909 3.75 19 3.75Z"}));function Eo(e,{blockDescription:t,blockIcon:o,blockTitle:r,variationName:c,scope:a}){(0,n.registerBlockVariation)(e,{description:t,name:c,title:r,isActive:e=>e.__woocommerceNamespace===c,icon:{src:o},attributes:{__woocommerceNamespace:c},scope:a})}const bo="woocommerce/product-query/product-title";Eo("core/post-title",{blockDescription:ge,blockIcon:(0,r.createElement)(g.Icon,{icon:de.Z}),blockTitle:ue,variationName:bo,scope:["block"]});var vo=o(6080);const yo="woocommerce/product-query/product-template";Eo("core/post-template",{blockDescription:(0,i.__)("Contains the block elements used to render a product, like its name, featured image, rating, and more.","woocommerce"),blockIcon:(0,r.createElement)(g.Icon,{icon:vo.Z}),blockTitle:(0,i.__)("Product template","woocommerce"),variationName:yo,scope:["block","inserter"]});const ko=(0,G.getSetting)("stockStatusOptions",[]),fo=((0,G.getSetting)("hideOutOfStockItems",!1)?Object.keys(function(e,t){const{[t]:o,...r}=e;return r}(ko,"outofstock")):Object.keys(ko),(0,G.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,Te),De.R.THUMBNAIL,"woocommerce/related-products"),So={namespace:fo,allowedControls:[],displayLayout:{type:"flex",columns:5},query:{perPage:5,pages:0,offset:0,postType:"product",order:"asc",orderBy:"title",author:"",search:"",exclude:[],sticky:"",inherit:!1},lock:{remove:!0,move:!0}},Co=(0,G.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,Te),xo=[["core/heading",{level:2,content:(0,i.__)("Related products","woocommerce"),style:{spacing:{margin:{top:"1rem",bottom:"1rem"}}}}],["core/post-template",{__woocommerceNamespace:yo,...Co&&{layout:{type:"grid",columnCount:5}}},[["woocommerce/product-image",{productId:0,imageSizing:"cropped"}],["core/post-title",{textAlign:"center",level:3,fontSize:"medium",isLink:!0,__woocommerceNamespace:bo},[]],["woocommerce/product-price",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]],["woocommerce/product-button",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]]]]];ze({blockName:"core/query",blockMetadata:{},blockSettings:{description:(0,i.__)("Display related products.","woocommerce"),name:"Related Products Controls",title:(0,i.__)("Related Products Controls","woocommerce"),isActive:e=>e.namespace===fo,icon:(0,r.createElement)(g.Icon,{icon:wo,className:"wc-block-editor-components-block-icon wc-block-editor-components-block-icon--stacks"}),attributes:So,allowedControls:[],innerBlocks:xo,scope:["block"]},isVariationBlock:!0,variationName:fo}),o(4218);const No=JSON.parse('{"name":"woocommerce/related-products","version":"1.0.0","title":"Related Products","icon":"product","description":"Display related products.","category":"woocommerce","supports":{"align":true,"reusable":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');ze({blockName:No.name,blockMetadata:No,blockSettings:{icon:qt.Z,edit:()=>{const e=[["core/query",So,xo]],t=(0,l.useBlockProps)();return(0,r.createElement)("div",{...t},(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(g.Notice,{className:"wc-block-editor-related-products__notice",status:"warning",isDismissible:!1},(0,r.createElement)("p",null,(0,i.__)("These products will vary depending on the main product in the page","woocommerce")))),(0,r.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return(0,r.createElement)("div",{...e},(0,r.createElement)(l.InnerBlocks.Content,null))}},isAvailableOnPostEditor:!1});const Po=(0,r.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{id:"icon/action/view_list_24px",fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 5.5H19C19.1326 5.5 19.2598 5.55268 19.3536 5.64645C19.4473 5.74021 19.5 5.86739 19.5 6V7.5C19.5 7.63261 19.4473 7.75979 19.3536 7.85355C19.2598 7.94732 19.1326 8 19 8H5C4.86739 8 4.74021 7.94732 4.64645 7.85355C4.55268 7.75979 4.5 7.63261 4.5 7.5V6C4.5 5.86739 4.55268 5.74021 4.64645 5.64645C4.74021 5.55268 4.86739 5.5 5 5.5V5.5ZM4 9.232C3.69597 9.05647 3.4435 8.804 3.26796 8.49997C3.09243 8.19594 3.00001 7.85106 3 7.5V6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4H19C19.5304 4 20.0391 4.21071 20.4142 4.58579C20.7893 4.96086 21 5.46957 21 6V7.5C21 7.85106 20.9076 8.19594 20.732 8.49997C20.5565 8.804 20.304 9.05647 20 9.232V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V9.232ZM5.5 9.5V18C5.5 18.1326 5.55268 18.2598 5.64645 18.3536C5.74021 18.4473 5.86739 18.5 6 18.5H18C18.1326 18.5 18.2598 18.4473 18.3536 18.3536C18.4473 18.2598 18.5 18.1326 18.5 18V9.5H5.5Z"}),(0,r.createElement)("circle",{cx:"9",cy:"14",r:"1"}),(0,r.createElement)("circle",{cx:"12",cy:"14",r:"1"}),(0,r.createElement)("circle",{cx:"15",cy:"14",r:"1"}));o(8378);const To=JSON.parse('{"name":"woocommerce/product-meta","version":"1.0.0","title":"Product Meta","icon":"product","description":"Display a product’s SKU, categories, tags, and more.","category":"woocommerce","supports":{"align":true,"reusable":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}');ze({blockName:To.name,blockMetadata:To,blockSettings:{edit:()=>{const e=[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["woocommerce/product-sku",{isDescendentOfSingleProductTemplate:ve()}],["core/post-terms",{prefix:(0,i.__)("Category: ","woocommerce"),term:"product_cat"}],["core/post-terms",{prefix:(0,i.__)("Tags: ","woocommerce"),term:"product_tag"}]]]],t=(0,l.useBlockProps)();return(0,r.createElement)("div",{...t},(0,r.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return(0,r.createElement)("div",{...e},(0,r.createElement)(l.InnerBlocks.Content,null))},icon:{src:(0,r.createElement)(c.Z,{icon:Po,className:"wc-block-editor-components-block-icon"})},ancestor:["woocommerce/single-product"]},isAvailableOnPostEditor:!0});const Io=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":1,"textdomain":"woocommerce","name":"woocommerce/all-products","title":"All Products","category":"woocommerce","keywords":["WooCommerce"],"description":"Display products from your store in a grid layout.","supports":{"align":["wide","full"],"html":false,"multiple":false},"attributes":{"columns":{"type":"number"},"rows":{"type":"number"},"alignButtons":{"type":"boolean"},"contentVisibility":{"type":"object"},"orderby":{"type":"string"},"layoutConfig":{"type":"array"},"isPreview":{"type":"boolean","default":false}}}'),Ao=(e,t)=>{const{className:o,contentVisibility:r}=t;return d()(e,o,{"has-image":r&&r.image,"has-title":r&&r.title,"has-rating":r&&r.rating,"has-price":r&&r.price,"has-button":r&&r.button})},{attributes:Oo}=Io,Ro={attributes:Object.assign({},Oo,{rows:{type:"number",default:1}}),save({attributes:e}){const t={"data-attributes":JSON.stringify(e)};return(0,r.createElement)("div",{className:Ao("wc-block-all-products",e),...t},(0,r.createElement)(l.InnerBlocks.Content,null))}},Bo=[Ro],Do=(e,t,o)=>o?Math.min(e,t)===e?t:Math.max(e,o)===e?o:e:Math.max(e,t)===t?e:t,Lo=({columns:e,rows:t,setAttributes:o,alignButtons:n,minColumns:c=1,maxColumns:a=6,minRows:s=1,maxRows:l=6})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.RangeControl,{label:(0,i.__)("Columns","woocommerce"),value:e,onChange:e=>{const t=Do(e,c,a);o({columns:Number.isNaN(t)?"":t})},min:c,max:a}),(0,r.createElement)(g.RangeControl,{label:(0,i.__)("Rows","woocommerce"),value:t,onChange:e=>{const t=Do(e,s,l);o({rows:Number.isNaN(t)?"":t})},min:s,max:l}),(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Align the last block to the bottom","woocommerce"),help:n?(0,i.__)("Align the last block to the bottom.","woocommerce"):(0,i.__)("The last inner block will follow other content.","woocommerce"),checked:n,onChange:()=>o({alignButtons:!n})})),Fo=window.wc.wcBlocksRegistry;o.p=s.VF,(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-price",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(5579)]).then(o.bind(o,7461))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-image",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(3706)]).then(o.bind(o,6790))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-title",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(6925)]).then(o.bind(o,2027))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-rating",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(7385)]).then(o.bind(o,8894))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-rating-stars",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(118)]).then(o.bind(o,1872))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-rating-counter",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(2918)]).then(o.bind(o,2992))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-average-rating",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(3037)]).then(o.bind(o,921))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-button",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(8771)]).then(o.bind(o,9758))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-summary",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(8185)]).then(o.bind(o,1985))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(5432)]).then(o.bind(o,5863))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-sku",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(9870)]).then(o.bind(o,8675))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(5445)]).then(o.bind(o,4304))))}),(0,Fo.registerBlockComponent)({blockName:"woocommerce/product-add-to-cart",component:(0,_.lazy)((()=>Promise.all([o.e(2869),o.e(5800)]).then(o.bind(o,3975))))});const Vo=e=>(0,Fo.getRegisteredBlockComponents)(e),Mo=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:(0,i.__)("Fly your WordPress banner with this beauty! Deck out your office space or add it to your kids walls. This banner will spruce up any space it’s hung!","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",price:"7.99",price_html:'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>7.99</span>',images:[{id:1,src:s.td+"previews/pennant.jpg",thumbnail:s.td+"previews/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,categories:[{id:1,name:"Decor",slug:"decor",link:"https://example.org"}],review_count:1,prices:{currency_code:"GBP",decimal_separator:".",thousand_separator:",",decimals:2,price_prefix:"£",price_suffix:"",price:"7.99",regular_price:"9.99",sale_price:"7.99",price_range:null},add_to_cart:{text:(0,i.__)("Add to cart","woocommerce"),description:(0,i.__)("Add to cart","woocommerce")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}],qo=[["woocommerce/product-image",{imageSizing:De.R.THUMBNAIL}],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],$o=e=>e&&0!==e.length?e.map((e=>{var t,o;return[e.name,{...e.attributes,product:void 0,children:e.innerBlocks.length>0?$o(e.innerBlocks):[],...e.name===dt.name&&{className:d()(e.attributes.className,{[`has-custom-width wp-block-button__width-${null===(t=e.attributes)||void 0===t?void 0:t.width}`]:null===(o=e.attributes)||void 0===o?void 0:o.width})},isDescendantOfAllProducts:!0}]})):[];var Ho=o(9262),Zo=o.n(Ho),zo=o(711);o(7842);const jo=({currentPage:e,displayFirstAndLastPages:t=!0,displayNextAndPreviousArrows:o=!0,pagesToDisplay:n=3,onPageChange:c,totalPages:a})=>{let{minIndex:s,maxIndex:l}=((e,t,o)=>{if(o<=2)return{minIndex:null,maxIndex:null};const r=e-1,n=Math.max(Math.floor(t-r/2),2),c=Math.min(Math.ceil(t+(r-(t-n))),o-1);return{minIndex:Math.max(Math.floor(t-(r-(c-t))),2),maxIndex:c}})(n,e,a);const m=t&&Boolean(1!==s),u=t&&Boolean(l!==a),p=t&&Boolean(s&&s>3),g=t&&Boolean(l&&l<a-2);m&&3===s&&(s-=1),u&&l===a-2&&(l+=1);const h=[];if(s&&l)for(let e=s;e<=l;e++)h.push(e);return(0,r.createElement)("div",{className:"wc-block-pagination wc-block-components-pagination"},(0,r.createElement)(zo.Label,{screenReaderLabel:(0,i.__)("Navigate to another page","woocommerce")}),o&&(0,r.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>c(e-1),title:(0,i.__)("Previous page","woocommerce"),disabled:e<=1},(0,r.createElement)(zo.Label,{label:"←",screenReaderLabel:(0,i.__)("Previous page","woocommerce")})),m&&(0,r.createElement)("button",{className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":1===e,"wc-block-components-pagination__page--active":1===e}),onClick:()=>c(1),disabled:1===e},(0,r.createElement)(zo.Label,{label:"1",screenReaderLabel:(0,i.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,i.__)("Page %d","woocommerce"),1)})),p&&(0,r.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},(0,i.__)("…","woocommerce")),h.map((t=>(0,r.createElement)("button",{key:t,className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":e===t,"wc-block-components-pagination__page--active":e===t}),onClick:e===t?void 0:()=>c(t),disabled:e===t},(0,r.createElement)(zo.Label,{label:t.toString(),screenReaderLabel:(0,i.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,i.__)("Page %d","woocommerce"),t)})))),g&&(0,r.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},(0,i.__)("…","woocommerce")),u&&(0,r.createElement)("button",{className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":e===a,"wc-block-components-pagination__page--active":e===a}),onClick:()=>c(a),disabled:e===a},(0,r.createElement)(zo.Label,{label:a.toString(),screenReaderLabel:(0,i.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,i.__)("Page %d","woocommerce"),a)})),o&&(0,r.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>c(e+1),title:(0,i.__)("Next page","woocommerce"),disabled:e>=a},(0,r.createElement)(zo.Label,{label:"→",screenReaderLabel:(0,i.__)("Next page","woocommerce")})))};function Go(e,t){const o=(0,_.useRef)();return(0,_.useEffect)((()=>{o.current===e||t&&!t(e,o.current)||(o.current=e)}),[e,t]),o.current}var Qo=o(4801),Wo=o(9530);const Yo=(0,_.createContext)("page"),Ko=()=>(0,_.useContext)(Yo),Uo=(Yo.Provider,(e,t,o)=>{const r=Ko();o=o||r;const n=(0,be.useSelect)((r=>r(Qo.QUERY_STATE_STORE_KEY).getValueForQueryKey(o,e,t)),[o,e]),{setQueryValue:c}=(0,be.useDispatch)(Qo.QUERY_STATE_STORE_KEY);return[n,(0,_.useCallback)((t=>{c(o,e,t)}),[o,e,c])]}),Jo=e=>{const t={namespace:"/wc/store/v1",resourceName:"products"},{results:o,isLoading:r}=(e=>{const{namespace:t,resourceName:o,resourceValues:r=[],query:n={},shouldSelect:c=!0}=e;if(!t||!o)throw new Error("The options object must have valid values for the namespace and the resource properties.");const a=(0,_.useRef)({results:[],isLoading:!0}),s=(0,Wo.s)(n),l=(0,Wo.s)(r),i=(()=>{const[,e]=(0,_.useState)();return(0,_.useCallback)((t=>{e((()=>{throw t}))}),[])})(),m=(0,be.useSelect)((e=>{if(!c)return null;const r=e(Qo.COLLECTIONS_STORE_KEY),n=[t,o,s,l],a=r.getCollectionError(...n);if(a){if(!(a instanceof Error))throw new Error("TypeError: `error` object is not an instance of Error constructor");i(a)}return{results:r.getCollection(...n),isLoading:!r.hasFinishedResolution("getCollection",n)}}),[t,o,l,s,c]);return null!==m&&(a.current=m),a.current})({...t,query:e}),{value:n}=((e,t)=>{const{namespace:o,resourceName:r,resourceValues:n=[],query:c={}}=t;if(!o||!r)throw new Error("The options object must have valid values for the namespace and the resource name properties.");const a=(0,Wo.s)(c),s=(0,Wo.s)(n),{value:l,isLoading:i=!0}=(0,be.useSelect)((t=>{const n=t(Qo.COLLECTIONS_STORE_KEY),c=[e,o,r,a,s];return{value:n.getCollectionHeader(...c),isLoading:n.hasFinishedResolution("getCollectionHeader",c)}}),[e,o,r,s,a]);return{value:l,isLoading:i}})("x-wp-total",{...t,query:e});return{products:o,totalProducts:parseInt(n,10),productsLoading:r}};var Xo=o(8360);o(2996);const er=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};var tr=o(5158),or=o(1117);const rr=()=>{const{parentClassName:e}=(0,ie.useInnerBlockLayoutContext)();return(0,r.createElement)("div",{className:`${e}__no-products`},(0,r.createElement)(c.Z,{className:`${e}__no-products-image`,icon:or.Z,size:100}),(0,r.createElement)("strong",{className:`${e}__no-products-title`},(0,i.__)("No products","woocommerce")),(0,r.createElement)("p",{className:`${e}__no-products-description`},(0,i.__)("There are currently no products available to display.","woocommerce")))};var nr=o(7637);const cr=({resetCallback:e=(()=>{})})=>{const{parentClassName:t}=(0,ie.useInnerBlockLayoutContext)();return(0,r.createElement)("div",{className:`${t}__no-products`},(0,r.createElement)(c.Z,{className:`${t}__no-products-image`,icon:nr.Z,size:100}),(0,r.createElement)("strong",{className:`${t}__no-products-title`},(0,i.__)("No products found","woocommerce")),(0,r.createElement)("p",{className:`${t}__no-products-description`},(0,i.__)("We were unable to find any results based on your search.","woocommerce")),(0,r.createElement)("button",{onClick:e},(0,i.__)("Reset Search","woocommerce")))};o(657);const ar=({onChange:e,value:t})=>(0,r.createElement)(zo.SortSelect,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",onChange:e,options:[{key:"menu_order",label:(0,i.__)("Default sorting","woocommerce")},{key:"popularity",label:(0,i.__)("Popularity","woocommerce")},{key:"rating",label:(0,i.__)("Average rating","woocommerce")},{key:"date",label:(0,i.__)("Latest","woocommerce")},{key:"price",label:(0,i.__)("Price: low to high","woocommerce")},{key:"price-desc",label:(0,i.__)("Price: high to low","woocommerce")}],screenReaderLabel:(0,i.__)("Order products by","woocommerce"),value:t}),sr=(e,t,o,n)=>{if(!o)return;const c=Vo(e);return o.map((([o,a={}],s)=>{let l=[];a.children&&a.children.length>0&&(l=sr(e,t,a.children,n));const i=c[o];if(!i)return null;const m=t.id||0,d=["layout",o,s,n,m];return(0,r.createElement)(_.Suspense,{key:d.join("_"),fallback:(0,r.createElement)("div",{className:"wc-block-placeholder"})},(0,r.createElement)(i,{...a,children:l,product:t}))}))},lr=(0,h.withInstanceId)((({product:e={},attributes:t,instanceId:o})=>{const{layoutConfig:n}=t,{parentClassName:c,parentName:a}=(0,ie.useInnerBlockLayoutContext)(),s=0===Object.keys(e).length,l=d()(`${c}__product`,"wc-block-layout",{"is-loading":s});return(0,r.createElement)("li",{className:l,"aria-hidden":s},sr(a,e,n,o))}));o(1438);const ir=e=>{switch(e){case"menu_order":case"popularity":case"rating":case"price":return{orderby:e,order:"asc"};case"price-desc":return{orderby:"price",order:"desc"};case"date":return{orderby:"date",order:"desc"}}},mr=({totalQuery:e,totalProducts:t},{totalQuery:o}={})=>!Zo()(e,o)&&Number.isFinite(t),dr=(e=>t=>{const o=(0,_.useRef)(null);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:o,"aria-hidden":!0}),(0,r.createElement)(e,{...t,scrollToTop:e=>{null!==o.current&&((e,t)=>{const{focusableSelector:o}=t||{};window&&Number.isFinite(window.innerHeight)&&(o?((e,t)=>{var o;const r=(null===(o=e.parentElement)||void 0===o?void 0:o.querySelectorAll(t))||[];if(r.length){const e=r[0];er(e),null==e||e.focus()}else er(e)})(e,o):er(e))})(o.current,e)}}))})((({attributes:e,currentPage:t,onPageChange:o,onSortChange:n,sortValue:c,scrollToTop:a})=>{const[s,l]=Uo("attributes",[]),[m,u]=Uo("stock_status",[]),[p,g]=Uo("rating",[]),[h,w]=Uo("min_price"),[E,b]=Uo("max_price"),[v]=((e,t)=>{const o=Ko();t=t||o;const[r,n]=(e=>{const t=Ko();e=e||t;const o=(0,be.useSelect)((t=>t(Qo.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)),[e]),{setValueForQueryContext:r}=(0,be.useDispatch)(Qo.QUERY_STATE_STORE_KEY);return[o,(0,_.useCallback)((t=>{r(e,t)}),[e,r])]})(t),c=(0,Wo.s)(r),a=(0,Wo.s)(e),s=Go(a),l=(0,_.useRef)(!1);return(0,_.useEffect)((()=>{J()(s,a)||(n(Object.assign({},c,a)),l.current=!0)}),[c,a,s,n]),l.current?[r,n]:[e,n]})((({sortValue:e,currentPage:t,attributes:o})=>{const{columns:r,rows:n}=o;return{...ir(e),catalog_visibility:"catalog",per_page:r*n,page:t}})({attributes:e,sortValue:c,currentPage:t})),{products:y,totalProducts:k,productsLoading:f}=Jo(v),{parentClassName:S,parentName:C}=(0,ie.useInnerBlockLayoutContext)(),x=(e=>{const{order:t,orderby:o,page:r,per_page:n,...c}=e;return c||{}})(v),{dispatchStoreEvent:N}=(0,Xo.n)(),P=Go({totalQuery:x,totalProducts:k},mr);(0,_.useEffect)((()=>{N("product-list-render",{products:y,listName:C})}),[y,C,N]),(0,_.useEffect)((()=>{Zo()(x,null==P?void 0:P.totalQuery)||(o(1),null!=P&&P.totalQuery&&(e=>{Number.isFinite(e)&&(0===e?(0,tr.speak)((0,i.__)("No products found","woocommerce")):(0,tr.speak)((0,i.sprintf)(/* translators: %s is an integer higher than 0 (1, 2, 3...) */ /* translators: %s is an integer higher than 0 (1, 2, 3...) */ (0,i._n)("%d product found","%d products found",e,"woocommerce"),e)))})(k))}),[null==P?void 0:P.totalQuery,k,o,x]);const{contentVisibility:T}=e,I=e.columns*e.rows,A=!Number.isFinite(k)&&Number.isFinite(null==P?void 0:P.totalProducts)&&Zo()(x,null==P?void 0:P.totalQuery)?Math.ceil(((null==P?void 0:P.totalProducts)||0)/I):Math.ceil(k/I),O=y.length?y:Array.from({length:I}),R=0!==y.length||f,B=s.length>0||m.length>0||p.length>0||Number.isFinite(h)||Number.isFinite(E);return(0,r.createElement)("div",{className:(()=>{const{columns:t,rows:o,alignButtons:r,align:n}=e,c=void 0!==n?"align"+n:"";return d()(S,c,"has-"+t+"-columns",{"has-multiple-rows":o>1,"has-aligned-buttons":r})})()},(null==T?void 0:T.orderBy)&&R&&(0,r.createElement)(ar,{onChange:n,value:c}),!R&&B&&(0,r.createElement)(cr,{resetCallback:()=>{l([]),u([]),g([]),w(null),b(null)}}),!R&&!B&&(0,r.createElement)(rr,null),R&&(0,r.createElement)("ul",{className:d()(`${S}__products`,{"is-loading-products":f})},O.map(((t={},o)=>(0,r.createElement)(lr,{key:t.id||o,attributes:e,product:t})))),A>1&&(0,r.createElement)(jo,{currentPage:t,onPageChange:e=>{a({focusableSelector:"a, button"}),o(e)},totalPages:A}))})),ur=({attributes:e})=>{const[t,o]=(0,_.useState)(1),[n,c]=(0,_.useState)(e.orderby);return(0,_.useEffect)((()=>{c(e.orderby)}),[e.orderby]),(0,r.createElement)(dr,{attributes:e,currentPage:t,onPageChange:e=>{o(e)},onSortChange:e=>{var t;const r=null==e||null===(t=e.target)||void 0===t?void 0:t.value;c(r),o(1)},sortValue:n})},pr=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 230 250",style:{width:"100%"}},(0,r.createElement)("title",null,"Grid Block Preview"),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"221.798",fill:"#E1E3E6",rx:"3"}));class gr extends _.Component{render(){const{attributes:e,urlParameterSuffix:t}=this.props;return e.isPreview?pr:(0,r.createElement)(ie.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},(0,r.createElement)(zo.StoreNoticesContainer,{context:"wc/all-products"}),(0,r.createElement)(ur,{attributes:e,urlParameterSuffix:t}))}}const hr=gr;o(953);class _r extends _.Component{constructor(...e){super(...e),(0,K.Z)(this,"state",{isEditing:!1,innerBlocks:[]}),(0,K.Z)(this,"blockMap",Vo("woocommerce/all-products")),(0,K.Z)(this,"componentDidMount",(()=>{const{block:e}=this.props;this.setState({innerBlocks:e.innerBlocks})})),(0,K.Z)(this,"getTitle",(()=>(0,i.__)("All Products","woocommerce"))),(0,K.Z)(this,"getIcon",(()=>(0,r.createElement)(c.Z,{icon:a.Z}))),(0,K.Z)(this,"togglePreview",(()=>{const{debouncedSpeak:e}=this.props;this.setState({isEditing:!this.state.isEditing}),this.state.isEditing||e((0,i.__)("Showing All Products block preview.","woocommerce"))})),(0,K.Z)(this,"getInspectorControls",(()=>{const{attributes:e,setAttributes:t}=this.props,{columns:o,rows:n,alignButtons:c}=e;return(0,r.createElement)(l.InspectorControls,{key:"inspector"},(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Layout Settings","woocommerce"),initialOpen:!0},(0,r.createElement)(Lo,{columns:o,rows:n,alignButtons:c,setAttributes:t,minColumns:(0,G.getSetting)("minColumns",1),maxColumns:(0,G.getSetting)("maxColumns",6),minRows:(0,G.getSetting)("minRows",1),maxRows:(0,G.getSetting)("maxRows",6)})),(0,r.createElement)(g.PanelBody,{title:(0,i.__)("Content Settings","woocommerce")},((e,t)=>{const{contentVisibility:o}=e;return(0,r.createElement)(g.ToggleControl,{label:(0,i.__)("Show Sorting Dropdown","woocommerce"),checked:o.orderBy,onChange:()=>t({contentVisibility:{...o,orderBy:!o.orderBy}})})})(e,t),((e,t)=>(0,r.createElement)(g.SelectControl,{label:(0,i.__)("Order Products By","woocommerce"),value:e.orderby,options:[{label:(0,i.__)("Default sorting (menu order)","woocommerce"),value:"menu_order"},{label:(0,i.__)("Popularity","woocommerce"),value:"popularity"},{label:(0,i.__)("Average rating","woocommerce"),value:"rating"},{label:(0,i.__)("Latest","woocommerce"),value:"date"},{label:(0,i.__)("Price: low to high","woocommerce"),value:"price"},{label:(0,i.__)("Price: high to low","woocommerce"),value:"price-desc"}],onChange:e=>t({orderby:e})}))(e,t)))})),(0,K.Z)(this,"getBlockControls",(()=>{const{isEditing:e}=this.state;return(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(g.ToolbarGroup,{controls:[{icon:"edit",title:(0,i.__)("Edit the layout of each product","woocommerce"),onClick:()=>this.togglePreview(),isActive:e}]}))})),(0,K.Z)(this,"renderEditMode",(()=>{const e={template:this.props.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(this.blockMap)};return 0!==this.props.attributes.layoutConfig.length&&(e.renderAppender=!1),(0,r.createElement)(g.Placeholder,{icon:this.getIcon(),label:this.getTitle()},(0,i.__)("Display all products from your store as a grid.","woocommerce"),(0,r.createElement)("div",{className:"wc-block-all-products-grid-item-template"},(0,r.createElement)(g.Tip,null,(0,i.__)("Edit the blocks inside the example below to change the content displayed for all products within the product grid.","woocommerce")),(0,r.createElement)(ie.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},(0,r.createElement)("div",{className:"wc-block-grid wc-block-layout has-1-columns"},(0,r.createElement)("ul",{className:"wc-block-grid__products"},(0,r.createElement)("li",{className:"wc-block-grid__product"},(0,r.createElement)(ie.ProductDataContextProvider,{product:Mo[0]},(0,r.createElement)(l.InnerBlocks,{...e})))))),(0,r.createElement)("div",{className:"wc-block-all-products__actions"},(0,r.createElement)(g.Button,{className:"wc-block-all-products__done-button",variant:"primary",onClick:()=>{const{block:e,setAttributes:t}=this.props;t({layoutConfig:$o(e.innerBlocks)}),this.setState({innerBlocks:e.innerBlocks}),this.togglePreview()}},(0,i.__)("Done","woocommerce")),(0,r.createElement)(g.Button,{className:"wc-block-all-products__cancel-button",variant:"tertiary",onClick:()=>{const{block:e,replaceInnerBlocks:t}=this.props,{innerBlocks:o}=this.state;t(e.clientId,o,!1),this.togglePreview()}},(0,i.__)("Cancel","woocommerce")),(0,r.createElement)(g.Button,{className:"wc-block-all-products__reset-button",icon:(0,r.createElement)(c.Z,{icon:a.Z}),label:(0,i.__)("Reset layout to default","woocommerce"),onClick:()=>{const{block:e,replaceInnerBlocks:t}=this.props,o=[];qo.map((([e,t])=>(o.push((0,n.createBlock)(e,t)),!0))),t(e.clientId,o,!1),this.setState({innerBlocks:e.innerBlocks})}},(0,i.__)("Reset Layout","woocommerce")))))})),(0,K.Z)(this,"renderViewMode",(()=>{const{attributes:e}=this.props,{layoutConfig:t}=e,o=t&&0!==t.length,n=this.getTitle(),c=this.getIcon();return o?(0,r.createElement)(g.Disabled,null,(0,r.createElement)(hr,{attributes:e})):((e,t)=>(0,r.createElement)(g.Placeholder,{className:"wc-block-products",icon:t,label:e},(0,i.__)("The content for this block is hidden due to block settings.","woocommerce")))(n,c)})),(0,K.Z)(this,"render",(()=>{const{attributes:e}=this.props,{isEditing:t}=this.state,o=this.getTitle(),n=this.getIcon();return 0===s.Cm.productCount?((e,t)=>(0,r.createElement)(g.Placeholder,{className:"wc-block-products",icon:t,label:e},(0,r.createElement)("p",null,(0,i.__)("You haven't published any products to list here yet.","woocommerce")),(0,r.createElement)(g.Button,{className:"wc-block-products__add-product-button",variant:"secondary",href:G.ADMIN_URL+"post-new.php?post_type=product",target:"_top"},(0,i.__)("Add new product","woocommerce")+" ",(0,r.createElement)(c.Z,{icon:Pt.Z})),(0,r.createElement)(g.Button,{className:"wc-block-products__read_more_button",variant:"tertiary",href:"https://woocommerce.com/document/managing-products/",target:"_blank"},(0,i.__)("Learn more","woocommerce"))))(o,n):(0,r.createElement)("div",{className:Ao("wc-block-all-products",e)},this.getBlockControls(),this.getInspectorControls(),t?this.renderEditMode():this.renderViewMode())}))}}const wr=(0,h.compose)(g.withSpokenMessages,(0,be.withSelect)(((e,{clientId:t})=>{const{getBlock:o}=e("core/block-editor");return{block:o(t)}})),(0,be.withDispatch)((e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}})))(_r),Er={columns:(0,G.getSetting)("defaultColumns",3),rows:(0,G.getSetting)("defaultRows",3),alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:qo,isPreview:!1},{name:br}=Io,vr={icon:{src:(0,r.createElement)(c.Z,{icon:a.Z,className:"wc-block-editor-components-block-icon"})},edit:wr,save:function({attributes:e}){const t={};Object.keys(e).sort().forEach((o=>{t[o]=e[o]}));const o={"data-attributes":JSON.stringify(t)};return(0,r.createElement)("div",{className:Ao("wc-block-all-products",e),...o},(0,r.createElement)(l.InnerBlocks.Content,null))},deprecated:Bo,defaults:Er};(0,n.registerBlockType)(br,vr)},702:(e,t,o)=>{"use strict";o.d(t,{Cm:()=>g,Ju:()=>f,Lo:()=>w,VF:()=>_,fh:()=>E,td:()=>h,vr:()=>y});var r,n,c,a,s,l,i,m,d,u,p=o(4617);const g=(0,p.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),h=g.pluginUrl+"assets/images/",_=g.pluginUrl+"assets/client/blocks/",w=g.buildPhase,E=(null===(r=p.STORE_PAGES.shop)||void 0===r||r.permalink,null===(n=p.STORE_PAGES.checkout)||void 0===n||n.id,null===(c=p.STORE_PAGES.checkout)||void 0===c||c.permalink,null===(a=p.STORE_PAGES.privacy)||void 0===a||a.permalink,null===(s=p.STORE_PAGES.privacy)||void 0===s||s.title,null===(l=p.STORE_PAGES.terms)||void 0===l||l.permalink,null===(i=p.STORE_PAGES.terms)||void 0===i||i.title,null===(m=p.STORE_PAGES.cart)||void 0===m||m.id,null===(d=p.STORE_PAGES.cart)||void 0===d?void 0:d.permalink),b=(null!==(u=p.STORE_PAGES.myaccount)&&void 0!==u&&u.permalink?p.STORE_PAGES.myaccount.permalink:(0,p.getSetting)("wpLoginUrl","/wp-login.php"),(0,p.getSetting)("localPickupEnabled",!1),(0,p.getSetting)("countries",{})),v=(0,p.getSetting)("countryData",{}),y=(Object.fromEntries(Object.keys(v).filter((e=>!0===v[e].allowBilling)).map((e=>[e,b[e]||""]))),Object.fromEntries(Object.keys(v).filter((e=>!0===v[e].allowBilling)).map((e=>[e,v[e].states||[]]))),Object.fromEntries(Object.keys(v).filter((e=>!0===v[e].allowShipping)).map((e=>[e,b[e]||""]))),Object.fromEntries(Object.keys(v).filter((e=>!0===v[e].allowShipping)).map((e=>[e,v[e].states||[]]))),Object.fromEntries(Object.keys(v).map((e=>[e,v[e].locale||[]])))),k={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],additional:[]},f=(0,p.getSetting)("addressFieldsLocations",k).address;(0,p.getSetting)("addressFieldsLocations",k).contact,(0,p.getSetting)("addressFieldsLocations",k).additional,(0,p.getSetting)("additionalFields",{}),(0,p.getSetting)("additionalContactFields",{}),(0,p.getSetting)("additionalAddressFields",{})},7188:(e,t,o)=>{"use strict";o.d(t,{mA:()=>c,uq:()=>a});var r=o(4981),n=o(702);const c=(e,t)=>{if(n.Lo>2)return(0,r.registerBlockType)(e,t)},a=()=>n.Lo>1},8752:(e,t,o)=>{"use strict";o.d(t,{Cm:()=>r.Cm,Ju:()=>r.Ju,VF:()=>r.VF,fh:()=>r.fh,mA:()=>n.mA,td:()=>r.td,uq:()=>n.uq,vr:()=>r.vr});var r=o(702),n=o(7188)},4696:(e,t,o)=>{"use strict";o.d(t,{x:()=>r});const r=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},2893:(e,t,o)=>{"use strict";o.d(t,{F:()=>r});const r=e=>null===e},9060:(e,t,o)=>{"use strict";o.d(t,{h:()=>r});const r=e=>"number"==typeof e},7998:(e,t,o)=>{"use strict";o.d(t,{$n:()=>c,Kn:()=>n,Qr:()=>a});var r=o(2893);const n=e=>!(0,r.F)(e)&&e instanceof Object&&e.constructor===Object;function c(e,t){return n(e)&&t in e}const a=e=>0===Object.keys(e).length},3243:(e,t,o)=>{"use strict";o.d(t,{H:()=>r});const r=e=>"string"==typeof e},8091:()=>{},6326:()=>{},5425:()=>{},354:()=>{},4466:()=>{},3030:()=>{},8912:()=>{},7049:()=>{},4807:()=>{},7419:()=>{},8378:()=>{},846:()=>{},6006:()=>{},8011:()=>{},2499:()=>{},4218:()=>{},3902:()=>{},2648:()=>{},6357:()=>{},8094:()=>{},3908:()=>{},4950:()=>{},559:()=>{},9375:()=>{},1029:()=>{},7842:()=>{},657:()=>{},1438:()=>{},333:()=>{},6645:()=>{},4542:()=>{},2996:()=>{},953:()=>{},8550:()=>{},9658:()=>{},1058:()=>{},5256:()=>{},7440:()=>{},9196:e=>{"use strict";e.exports=window.React},2819:e=>{"use strict";e.exports=window.lodash},711:e=>{"use strict";e.exports=window.wc.blocksComponents},4293:e=>{"use strict";e.exports=window.wc.priceFormat},4801:e=>{"use strict";e.exports=window.wc.wcBlocksData},2864:e=>{"use strict";e.exports=window.wc.wcBlocksSharedContext},721:e=>{"use strict";e.exports=window.wc.wcBlocksSharedHocs},4617:e=>{"use strict";e.exports=window.wc.wcSettings},5158:e=>{"use strict";e.exports=window.wp.a11y},6989:e=>{"use strict";e.exports=window.wp.apiFetch},987:e=>{"use strict";e.exports=window.wp.autop},4981:e=>{"use strict";e.exports=window.wp.blocks},5609:e=>{"use strict";e.exports=window.wp.components},4333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},7180:e=>{"use strict";e.exports=window.wp.deprecated},5904:e=>{"use strict";e.exports=window.wp.dom},9307:e=>{"use strict";e.exports=window.wp.element},2694:e=>{"use strict";e.exports=window.wp.hooks},2629:e=>{"use strict";e.exports=window.wp.htmlEntities},5736:e=>{"use strict";e.exports=window.wp.i18n},9127:e=>{"use strict";e.exports=window.wp.isShallowEqual},444:e=>{"use strict";e.exports=window.wp.primitives},2289:e=>{"use strict";e.exports=window.wp.styleEngine},6483:e=>{"use strict";e.exports=window.wp.url},2560:e=>{"use strict";e.exports=window.wp.warning},5266:e=>{"use strict";e.exports=window.wp.wordcount}},n={};function c(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,c),o.exports}c.m=r,e=[],c.O=(t,o,r,n)=>{if(!o){var a=1/0;for(m=0;m<e.length;m++){for(var[o,r,n]=e[m],s=!0,l=0;l<o.length;l++)(!1&n||a>=n)&&Object.keys(c.O).every((e=>c.O[e](o[l])))?o.splice(l--,1):(s=!1,n<a&&(a=n));if(s){e.splice(m--,1);var i=r();void 0!==i&&(t=i)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[o,r,n]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,o)=>(c.f[o](e,t),t)),[])),c.u=e=>({118:"product-rating-stars",2918:"product-rating-counter",3037:"product-average-rating",3706:"product-image",5432:"product-sale-badge",5445:"product-stock-indicator",5579:"product-price",5800:"product-add-to-cart",6925:"product-title",7385:"product-rating",8185:"product-summary",8771:"product-button",9870:"product-sku"}[e]+".js?ver="+{118:"c309570a4ed51c8aadd6",2918:"48da91f3a4f43cc1856f",3037:"16f9e46b4821269919cb",3706:"213abb99c33065c34edf",5432:"76114008b56f0f6bfe41",5445:"19dfd7fe35c4ad90775a",5579:"ad4b184ab360389bd50c",5800:"f55916002cb2b68fafcb",6925:"f734750c3a18f9b126f0",7385:"01cf86b4d6135c80dd8a",8185:"1ddd2165b15d53826031",8771:"f0d18131cc593f467322",9870:"7560125688a07d28e05c"}[e]),c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},o="webpackWcBlocksJsonp:",c.l=(e,r,n,a)=>{if(t[e])t[e].push(r);else{var s,l;if(void 0!==n)for(var i=document.getElementsByTagName("script"),m=0;m<i.length;m++){var d=i[m];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,c.nc&&s.setAttribute("nonce",c.nc),s.setAttribute("data-webpack",o+n),s.src=e),t[e]=[r];var u=(o,r)=>{s.onerror=s.onload=null,clearTimeout(p);var n=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),o)return o(r)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.j=86,(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var t=c.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&!e;)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{var e={86:0,5579:0,7385:0,118:0,2918:0,3037:0,8771:0,8185:0,5432:0,9870:0,5445:0};c.f.j=(t,o)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var a=c.p+c.u(t),s=new Error;c.l(a,(o=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,r[1](s)}}),"chunk-"+t,t)}},c.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,s,l]=o,i=0;if(a.some((t=>0!==e[t]))){for(r in s)c.o(s,r)&&(c.m[r]=s[r]);if(l)var m=l(c)}for(t&&t(o);i<a.length;i++)n=a[i],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return c.O(m)},o=self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=c.O(void 0,[2869],(()=>c(1925)));a=c.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["all-products"]=a})();
Submit
FILE
FOLDER
Name
Size
Permission
Action
active-filters
---
0755
add-to-cart-form
---
0755
all-products
---
0755
attribute-filter
---
0755
breadcrumbs
---
0755
cart-blocks
---
0755
catalog-sorting
---
0755
checkout
---
0755
checkout-blocks
---
0755
classic-shortcode
---
0755
customer-account
---
0755
featured-category
---
0755
featured-product
---
0755
filter-wrapper
---
0755
handpicked-products
---
0755
inner-blocks
---
0755
mini-cart
---
0755
mini-cart-contents-block
---
0755
order-confirmation-additional-fields
---
0755
order-confirmation-additional-fields-wrapper
---
0755
order-confirmation-additional-information
---
0755
order-confirmation-billing-address
---
0755
order-confirmation-billing-wrapper
---
0755
order-confirmation-downloads
---
0755
order-confirmation-downloads-wrapper
---
0755
order-confirmation-shipping-address
---
0755
order-confirmation-shipping-wrapper
---
0755
order-confirmation-status
---
0755
order-confirmation-summary
---
0755
order-confirmation-totals
---
0755
order-confirmation-totals-wrapper
---
0755
page-content-wrapper
---
0755
price-filter
---
0755
product-average-rating
---
0755
product-best-sellers
---
0755
product-button
---
0755
product-categories
---
0755
product-category
---
0755
product-collection
---
0755
product-collection-no-results
---
0755
product-details
---
0755
product-filter
---
0755
product-filter-active
---
0755
product-filter-attribute
---
0755
product-filter-price
---
0755
product-filter-rating
---
0755
product-filter-stock-status
---
0755
product-gallery
---
0755
product-gallery-large-image
---
0755
product-gallery-large-image-next-previous
---
0755
product-gallery-pager
---
0755
product-gallery-thumbnails
---
0755
product-image-gallery
---
0755
product-meta
---
0755
product-new
---
0755
product-rating
---
0755
product-rating-counter
---
0755
product-rating-stars
---
0755
product-results-count
---
0755
product-reviews
---
0755
product-tag
---
0755
product-template
---
0755
product-top-rated
---
0755
products-by-attribute
---
0755
rating-filter
---
0755
related-products
---
0755
single-product
---
0755
stock-filter
---
0755
store-notices
---
0755
1092-frontend.js
23302 bytes
0644
1720-style.js.LICENSE.txt
246 bytes
0644
3030-frontend.js
61060 bytes
0644
64-style.js.LICENSE.txt
124 bytes
0644
9178-style.js.LICENSE.txt
121 bytes
0644
9782-frontend.js
66111 bytes
0644
active-filters-frontend.asset.php
294 bytes
0644
active-filters-frontend.js
20346 bytes
0644
active-filters-rtl.css
10321 bytes
0644
active-filters-style.asset.php
357 bytes
0644
active-filters-style.js.LICENSE.txt
124 bytes
0644
active-filters-wrapper-frontend.js
20163 bytes
0644
active-filters-wrapper-rtl.css
9577 bytes
0644
active-filters-wrapper.css
9577 bytes
0644
active-filters.asset.php
357 bytes
0644
active-filters.css
10319 bytes
0644
active-filters.js
17489 bytes
0644
add-to-cart-form-rtl.css
1229 bytes
0644
add-to-cart-form-style.asset.php
208 bytes
0644
add-to-cart-form.css
1227 bytes
0644
all-products-frontend.asset.php
550 bytes
0644
all-products-frontend.js
33259 bytes
0644
all-products-rtl.css
40500 bytes
0644
all-products-style.asset.php
587 bytes
0644
all-products-style.js.LICENSE.txt
493 bytes
0644
all-products.asset.php
587 bytes
0644
all-products.css
40446 bytes
0644
all-products.js
154717 bytes
0644
all-reviews-rtl.css
10828 bytes
0644
all-reviews-style.asset.php
293 bytes
0644
all-reviews-style.js.LICENSE.txt
124 bytes
0644
all-reviews.asset.php
293 bytes
0644
all-reviews.css
10817 bytes
0644
all-reviews.js
25944 bytes
0644
attribute-filter-frontend.asset.php
366 bytes
0644
attribute-filter-frontend.js
64001 bytes
0644
attribute-filter-rtl.css
31009 bytes
0644
attribute-filter-style.asset.php
415 bytes
0644
attribute-filter-style.js.LICENSE.txt
246 bytes
0644
attribute-filter-wrapper-frontend.js
67356 bytes
0644
attribute-filter-wrapper-rtl.css
9320 bytes
0644
attribute-filter-wrapper.css
9314 bytes
0644
attribute-filter.asset.php
415 bytes
0644
attribute-filter.css
30987 bytes
0644
attribute-filter.js
36170 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss-rtl.css
20945 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss.css
20931 bytes
0644
blocks-checkout.asset.php
376 bytes
0644
blocks-checkout.js
103080 bytes
0644
blocks-components.asset.php
307 bytes
0644
blocks-components.js
99991 bytes
0644
breadcrumbs-rtl.css
366 bytes
0644
breadcrumbs-style.asset.php
212 bytes
0644
breadcrumbs.asset.php
212 bytes
0644
breadcrumbs.css
364 bytes
0644
breadcrumbs.js
5378 bytes
0644
cart-frontend.asset.php
584 bytes
0644
cart-frontend.js
102259 bytes
0644
cart-rtl.css
89562 bytes
0644
cart-style.asset.php
663 bytes
0644
cart-style.js.LICENSE.txt
435 bytes
0644
cart.asset.php
663 bytes
0644
cart.css
89489 bytes
0644
cart.js
153623 bytes
0644
catalog-sorting-rtl.css
491 bytes
0644
catalog-sorting-style.asset.php
197 bytes
0644
catalog-sorting.asset.php
197 bytes
0644
catalog-sorting.css
489 bytes
0644
catalog-sorting.js
3528 bytes
0644
checkout-frontend.asset.php
524 bytes
0644
checkout-frontend.js
111001 bytes
0644
checkout-rtl.css
86115 bytes
0644
checkout-style.asset.php
616 bytes
0644
checkout-style.js.LICENSE.txt
435 bytes
0644
checkout.asset.php
591 bytes
0644
checkout.css
86002 bytes
0644
checkout.js
176845 bytes
0644
classic-shortcode-rtl.css
325 bytes
0644
classic-shortcode-style.asset.php
222 bytes
0644
classic-shortcode-style.js.LICENSE.txt
124 bytes
0644
classic-shortcode.asset.php
222 bytes
0644
classic-shortcode.css
323 bytes
0644
classic-shortcode.js
13987 bytes
0644
customer-account-rtl.css
1047 bytes
0644
customer-account-style.asset.php
212 bytes
0644
customer-account-style.js.LICENSE.txt
124 bytes
0644
customer-account.asset.php
212 bytes
0644
customer-account.css
1045 bytes
0644
customer-account.js
8067 bytes
0644
featured-category-rtl.css
5137 bytes
0644
featured-category-style.asset.php
343 bytes
0644
featured-category-style.js.LICENSE.txt
124 bytes
0644
featured-category.asset.php
343 bytes
0644
featured-category.css
5135 bytes
0644
featured-category.js
45227 bytes
0644
featured-product-rtl.css
5553 bytes
0644
featured-product-style.asset.php
343 bytes
0644
featured-product-style.js.LICENSE.txt
124 bytes
0644
featured-product.asset.php
343 bytes
0644
featured-product.css
5551 bytes
0644
featured-product.js
45680 bytes
0644
filter-wrapper-frontend.asset.php
448 bytes
0644
filter-wrapper-frontend.js
43537 bytes
0644
filter-wrapper-rtl.css
744 bytes
0644
filter-wrapper-style.asset.php
480 bytes
0644
filter-wrapper.asset.php
180 bytes
0644
filter-wrapper.css
742 bytes
0644
filter-wrapper.js
6480 bytes
0644
handpicked-products-style.asset.php
315 bytes
0644
handpicked-products-style.js.LICENSE.txt
124 bytes
0644
handpicked-products.asset.php
315 bytes
0644
handpicked-products.js
26235 bytes
0644
legacy-template-rtl.css
323 bytes
0644
legacy-template-style.asset.php
253 bytes
0644
legacy-template-style.js.LICENSE.txt
124 bytes
0644
legacy-template.asset.php
253 bytes
0644
legacy-template.css
321 bytes
0644
legacy-template.js
26729 bytes
0644
mini-cart-component-frontend.asset.php
488 bytes
0644
mini-cart-component-frontend.js
98534 bytes
0644
mini-cart-contents-rtl.css
22100 bytes
0644
mini-cart-contents-style.asset.php
537 bytes
0644
mini-cart-contents-style.js.LICENSE.txt
246 bytes
0644
mini-cart-contents.asset.php
518 bytes
0644
mini-cart-contents.css
22081 bytes
0644
mini-cart-contents.js
62410 bytes
0644
mini-cart-frontend.asset.php
158 bytes
0644
mini-cart-frontend.js
6229 bytes
0644
mini-cart-rtl.css
12848 bytes
0644
mini-cart-style.asset.php
357 bytes
0644
mini-cart-style.js.LICENSE.txt
246 bytes
0644
mini-cart.asset.php
280 bytes
0644
mini-cart.css
12839 bytes
0644
mini-cart.js
16779 bytes
0644
order-confirmation-additional-fields-rtl.css
2436 bytes
0644
order-confirmation-additional-fields-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper-rtl.css
291 bytes
0644
order-confirmation-additional-fields-wrapper-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.css
289 bytes
0644
order-confirmation-additional-fields-wrapper.js
5038 bytes
0644
order-confirmation-additional-fields.asset.php
195 bytes
0644
order-confirmation-additional-fields.css
2432 bytes
0644
order-confirmation-additional-fields.js
5233 bytes
0644
order-confirmation-additional-information-rtl.css
383 bytes
0644
order-confirmation-additional-information-style.asset.php
180 bytes
0644
order-confirmation-additional-information.asset.php
180 bytes
0644
order-confirmation-additional-information.css
381 bytes
0644
order-confirmation-additional-information.js
3060 bytes
0644
order-confirmation-billing-address-rtl.css
1926 bytes
0644
order-confirmation-billing-address-style.asset.php
195 bytes
0644
order-confirmation-billing-address.asset.php
195 bytes
0644
order-confirmation-billing-address.css
1922 bytes
0644
order-confirmation-billing-address.js
5766 bytes
0644
order-confirmation-billing-wrapper-style.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.js
2901 bytes
0644
order-confirmation-downloads-rtl.css
1772 bytes
0644
order-confirmation-downloads-style.asset.php
197 bytes
0644
order-confirmation-downloads-wrapper-style.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper-style.js.LICENSE.txt
124 bytes
0644
order-confirmation-downloads-wrapper.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper.js
3110 bytes
0644
order-confirmation-downloads.asset.php
197 bytes
0644
order-confirmation-downloads.css
1770 bytes
0644
order-confirmation-downloads.js
5099 bytes
0644
order-confirmation-shipping-address-rtl.css
2496 bytes
0644
order-confirmation-shipping-address-style.asset.php
195 bytes
0644
order-confirmation-shipping-address.asset.php
195 bytes
0644
order-confirmation-shipping-address.css
2492 bytes
0644
order-confirmation-shipping-address.js
5767 bytes
0644
order-confirmation-shipping-wrapper-style.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.js
2928 bytes
0644
order-confirmation-status-rtl.css
723 bytes
0644
order-confirmation-status-style.asset.php
180 bytes
0644
order-confirmation-status.asset.php
180 bytes
0644
order-confirmation-status.css
722 bytes
0644
order-confirmation-status.js
3209 bytes
0644
order-confirmation-summary-rtl.css
1108 bytes
0644
order-confirmation-summary-style.asset.php
242 bytes
0644
order-confirmation-summary.asset.php
242 bytes
0644
order-confirmation-summary.css
1106 bytes
0644
order-confirmation-summary.js
5137 bytes
0644
order-confirmation-totals-rtl.css
2207 bytes
0644
order-confirmation-totals-style.asset.php
216 bytes
0644
order-confirmation-totals-wrapper-style.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.js
3606 bytes
0644
order-confirmation-totals.asset.php
216 bytes
0644
order-confirmation-totals.css
2204 bytes
0644
order-confirmation-totals.js
5967 bytes
0644
packages-style-rtl.css
49687 bytes
0644
packages-style-style.asset.php
362 bytes
0644
packages-style-style.js.LICENSE.txt
941 bytes
0644
packages-style.css
49638 bytes
0644
page-content-wrapper-style.asset.php
195 bytes
0644
page-content-wrapper.asset.php
195 bytes
0644
page-content-wrapper.js
4949 bytes
0644
price-filter-frontend.asset.php
257 bytes
0644
price-filter-frontend.js
23794 bytes
0644
price-filter-rtl.css
23971 bytes
0644
price-filter-style.asset.php
337 bytes
0644
price-filter-style.js.LICENSE.txt
124 bytes
0644
price-filter-wrapper-frontend.js
23327 bytes
0644
price-filter-wrapper-rtl.css
23227 bytes
0644
price-filter-wrapper.css
23200 bytes
0644
price-filter.asset.php
337 bytes
0644
price-filter.css
23942 bytes
0644
price-filter.js
22459 bytes
0644
price-format.asset.php
112 bytes
0644
price-format.js
1917 bytes
0644
product-add-to-cart-frontend.js
24721 bytes
0644
product-add-to-cart-rtl.css
7632 bytes
0644
product-add-to-cart.css
7622 bytes
0644
product-add-to-cart.js
25666 bytes
0644
product-average-rating-frontend.js
4426 bytes
0644
product-average-rating.js
3255 bytes
0644
product-best-sellers-style.asset.php
315 bytes
0644
product-best-sellers-style.js.LICENSE.txt
124 bytes
0644
product-best-sellers.asset.php
315 bytes
0644
product-best-sellers.js
25593 bytes
0644
product-button-frontend.js
13458 bytes
0644
product-button-interactivity-frontend.asset.php
279 bytes
0644
product-button-interactivity-frontend.js
24396 bytes
0644
product-button-rtl.css
5126 bytes
0644
product-button.css
5124 bytes
0644
product-button.js
12863 bytes
0644
product-categories-rtl.css
1968 bytes
0644
product-categories-style.asset.php
233 bytes
0644
product-categories.asset.php
233 bytes
0644
product-categories.css
1966 bytes
0644
product-categories.js
7123 bytes
0644
product-category-style.asset.php
315 bytes
0644
product-category-style.js.LICENSE.txt
124 bytes
0644
product-category.asset.php
315 bytes
0644
product-category.js
29673 bytes
0644
product-collection-frontend.asset.php
117 bytes
0644
product-collection-frontend.js
2278 bytes
0644
product-collection-no-results-style.asset.php
166 bytes
0644
product-collection-no-results.asset.php
166 bytes
0644
product-collection-no-results.js
3342 bytes
0644
product-collection-rtl.css
1021 bytes
0644
product-collection-style.asset.php
368 bytes
0644
product-collection-style.js.LICENSE.txt
124 bytes
0644
product-collection.asset.php
348 bytes
0644
product-collection.css
1015 bytes
0644
product-collection.js
57338 bytes
0644
product-details-rtl.css
2017 bytes
0644
product-details-style.asset.php
208 bytes
0644
product-details-style.js.LICENSE.txt
124 bytes
0644
product-details.css
2013 bytes
0644
product-filter-active-frontend.asset.php
132 bytes
0644
product-filter-active-frontend.js
1162 bytes
0644
product-filter-active-rtl.css
6205 bytes
0644
product-filter-active-style.asset.php
256 bytes
0644
product-filter-active-style.js.LICENSE.txt
124 bytes
0644
product-filter-active.asset.php
236 bytes
0644
product-filter-active.css
6205 bytes
0644
product-filter-active.js
6837 bytes
0644
product-filter-attribute-frontend.asset.php
132 bytes
0644
product-filter-attribute-frontend.js
2030 bytes
0644
product-filter-attribute-rtl.css
764 bytes
0644
product-filter-attribute-style.asset.php
348 bytes
0644
product-filter-attribute-style.js.LICENSE.txt
124 bytes
0644
product-filter-attribute.asset.php
328 bytes
0644
product-filter-attribute.css
761 bytes
0644
product-filter-attribute.js
25861 bytes
0644
product-filter-frontend.asset.php
132 bytes
0644
product-filter-frontend.js
383 bytes
0644
product-filter-price-frontend.asset.php
151 bytes
0644
product-filter-price-frontend.js
2300 bytes
0644
product-filter-price-rtl.css
6596 bytes
0644
product-filter-price-style.asset.php
309 bytes
0644
product-filter-price-style.js.LICENSE.txt
124 bytes
0644
product-filter-price.asset.php
289 bytes
0644
product-filter-price.css
6581 bytes
0644
product-filter-price.js
10217 bytes
0644
product-filter-rating-frontend.asset.php
132 bytes
0644
product-filter-rating-frontend.js
1696 bytes
0644
product-filter-rating-rtl.css
3899 bytes
0644
product-filter-rating-style.asset.php
324 bytes
0644
product-filter-rating-style.js.LICENSE.txt
124 bytes
0644
product-filter-rating.asset.php
304 bytes
0644
product-filter-rating.css
3893 bytes
0644
product-filter-rating.js
11036 bytes
0644
product-filter-stock-status-frontend.asset.php
132 bytes
0644
product-filter-stock-status-frontend.js
1990 bytes
0644
product-filter-stock-status-rtl.css
839 bytes
0644
product-filter-stock-status-style.asset.php
314 bytes
0644
product-filter-stock-status-style.js.LICENSE.txt
124 bytes
0644
product-filter-stock-status.asset.php
294 bytes
0644
product-filter-stock-status.css
835 bytes
0644
product-filter-stock-status.js
10948 bytes
0644
product-filter-style.asset.php
243 bytes
0644
product-filter.asset.php
223 bytes
0644
product-filter.js
8641 bytes
0644
product-gallery-frontend.asset.php
117 bytes
0644
product-gallery-frontend.js
3611 bytes
0644
product-gallery-large-image-frontend.asset.php
117 bytes
0644
product-gallery-large-image-frontend.js
1156 bytes
0644
product-gallery-large-image-next-previous-style.asset.php
208 bytes
0644
product-gallery-large-image-next-previous-style.js.LICENSE.txt
124 bytes
0644
product-gallery-large-image-next-previous.asset.php
208 bytes
0644
product-gallery-large-image-next-previous.js
10886 bytes
0644
product-gallery-large-image-style.asset.php
187 bytes
0644
product-gallery-large-image-style.js.LICENSE.txt
124 bytes
0644
product-gallery-large-image.asset.php
167 bytes
0644
product-gallery-large-image.js
6172 bytes
0644
product-gallery-pager-style.asset.php
208 bytes
0644
product-gallery-pager-style.js.LICENSE.txt
124 bytes
0644
product-gallery-pager.asset.php
208 bytes
0644
product-gallery-pager.js
7373 bytes
0644
product-gallery-rtl.css
13604 bytes
0644
product-gallery-style.asset.php
243 bytes
0644
product-gallery-style.js.LICENSE.txt
124 bytes
0644
product-gallery-thumbnails-style.asset.php
223 bytes
0644
product-gallery-thumbnails-style.js.LICENSE.txt
124 bytes
0644
product-gallery-thumbnails.asset.php
223 bytes
0644
product-gallery-thumbnails.js
11497 bytes
0644
product-gallery.asset.php
223 bytes
0644
product-gallery.css
13601 bytes
0644
product-gallery.js
33685 bytes
0644
product-image-frontend.js
7355 bytes
0644
product-image-gallery-rtl.css
619 bytes
0644
product-image-gallery-style.asset.php
198 bytes
0644
product-image-gallery.css
617 bytes
0644
product-image-rtl.css
4088 bytes
0644
product-image.css
4085 bytes
0644
product-image.js
6665 bytes
0644
product-new-style.asset.php
315 bytes
0644
product-new-style.js.LICENSE.txt
124 bytes
0644
product-new.asset.php
315 bytes
0644
product-new.js
27761 bytes
0644
product-on-sale-style.asset.php
315 bytes
0644
product-on-sale-style.js.LICENSE.txt
124 bytes
0644
product-on-sale.asset.php
315 bytes
0644
product-on-sale.js
26890 bytes
0644
product-price-frontend.js
8138 bytes
0644
product-price-rtl.css
1674 bytes
0644
product-price.css
1671 bytes
0644
product-price.js
6902 bytes
0644
product-query-rtl.css
655 bytes
0644
product-query-style.asset.php
313 bytes
0644
product-query-style.js.LICENSE.txt
124 bytes
0644
product-query.asset.php
313 bytes
0644
product-query.css
652 bytes
0644
product-query.js
38041 bytes
0644
product-rating-counter-frontend.js
5317 bytes
0644
product-rating-counter.js
4146 bytes
0644
product-rating-frontend.js
6951 bytes
0644
product-rating-rtl.css
428 bytes
0644
product-rating-stars-frontend.js
6540 bytes
0644
product-rating-stars-rtl.css
3053 bytes
0644
product-rating-stars.css
3050 bytes
0644
product-rating-stars.js
5304 bytes
0644
product-rating.css
426 bytes
0644
product-rating.js
5715 bytes
0644
product-results-count-rtl.css
323 bytes
0644
product-results-count-style.asset.php
180 bytes
0644
product-results-count.asset.php
180 bytes
0644
product-results-count.css
321 bytes
0644
product-results-count.js
3393 bytes
0644
product-reviews-rtl.css
1127 bytes
0644
product-reviews-style.asset.php
192 bytes
0644
product-reviews.css
1126 bytes
0644
product-sale-badge-frontend.js
4862 bytes
0644
product-sale-badge-rtl.css
954 bytes
0644
product-sale-badge.css
952 bytes
0644
product-sale-badge.js
3626 bytes
0644
product-search-rtl.css
1169 bytes
0644
product-search-style.asset.php
237 bytes
0644
product-search-style.js.LICENSE.txt
124 bytes
0644
product-search.asset.php
237 bytes
0644
product-search.css
1166 bytes
0644
product-search.js
7127 bytes
0644
product-sku-frontend.js
4943 bytes
0644
product-sku-rtl.css
326 bytes
0644
product-sku.css
324 bytes
0644
product-sku.js
3707 bytes
0644
product-stock-indicator-frontend.js
5529 bytes
0644
product-stock-indicator-rtl.css
321 bytes
0644
product-stock-indicator.css
319 bytes
0644
product-stock-indicator.js
4293 bytes
0644
product-summary-frontend.js
5711 bytes
0644
product-summary-rtl.css
1199 bytes
0644
product-summary.css
1197 bytes
0644
product-summary.js
4475 bytes
0644
product-tag-style.asset.php
297 bytes
0644
product-tag-style.js.LICENSE.txt
124 bytes
0644
product-tag.asset.php
297 bytes
0644
product-tag.js
27240 bytes
0644
product-template-rtl.css
2033 bytes
0644
product-template-style.asset.php
290 bytes
0644
product-template-style.js.LICENSE.txt
124 bytes
0644
product-template.asset.php
290 bytes
0644
product-template.css
2031 bytes
0644
product-template.js
9717 bytes
0644
product-title-frontend.js
5871 bytes
0644
product-title-rtl.css
1957 bytes
0644
product-title.css
1953 bytes
0644
product-title.js
5316 bytes
0644
product-top-rated-style.asset.php
315 bytes
0644
product-top-rated-style.js.LICENSE.txt
124 bytes
0644
product-top-rated.asset.php
315 bytes
0644
product-top-rated.js
27177 bytes
0644
products-by-attribute-style.asset.php
326 bytes
0644
products-by-attribute-style.js.LICENSE.txt
124 bytes
0644
products-by-attribute.asset.php
326 bytes
0644
products-by-attribute.js
29194 bytes
0644
rating-filter-frontend.asset.php
346 bytes
0644
rating-filter-frontend.js
60717 bytes
0644
rating-filter-rtl.css
31683 bytes
0644
rating-filter-style.asset.php
395 bytes
0644
rating-filter-style.js.LICENSE.txt
246 bytes
0644
rating-filter-wrapper-frontend.js
62814 bytes
0644
rating-filter-wrapper-rtl.css
9994 bytes
0644
rating-filter-wrapper.css
9987 bytes
0644
rating-filter.asset.php
395 bytes
0644
rating-filter.css
31660 bytes
0644
rating-filter.js
16488 bytes
0644
reviews-by-category-rtl.css
10828 bytes
0644
reviews-by-category-style.asset.php
337 bytes
0644
reviews-by-category-style.js.LICENSE.txt
124 bytes
0644
reviews-by-category.asset.php
337 bytes
0644
reviews-by-category.css
10817 bytes
0644
reviews-by-category.js
39700 bytes
0644
reviews-by-product-rtl.css
10828 bytes
0644
reviews-by-product-style.asset.php
337 bytes
0644
reviews-by-product-style.js.LICENSE.txt
124 bytes
0644
reviews-by-product.asset.php
337 bytes
0644
reviews-by-product.css
10817 bytes
0644
reviews-by-product.js
44079 bytes
0644
reviews-frontend.asset.php
220 bytes
0644
reviews-frontend.js
21140 bytes
0644
single-product-rtl.css
744 bytes
0644
single-product-style.asset.php
593 bytes
0644
single-product-style.js.LICENSE.txt
124 bytes
0644
single-product.asset.php
593 bytes
0644
single-product.css
742 bytes
0644
single-product.js
35557 bytes
0644
stock-filter-frontend.asset.php
366 bytes
0644
stock-filter-frontend.js
61076 bytes
0644
stock-filter-rtl.css
29858 bytes
0644
stock-filter-style.asset.php
415 bytes
0644
stock-filter-style.js.LICENSE.txt
246 bytes
0644
stock-filter-wrapper-frontend.js
63356 bytes
0644
stock-filter-wrapper-rtl.css
8169 bytes
0644
stock-filter-wrapper.css
8163 bytes
0644
stock-filter.asset.php
415 bytes
0644
stock-filter.css
29836 bytes
0644
stock-filter.js
18308 bytes
0644
store-notices-rtl.css
6370 bytes
0644
store-notices-style.asset.php
256 bytes
0644
store-notices-style.js.LICENSE.txt
246 bytes
0644
store-notices.asset.php
256 bytes
0644
store-notices.css
6363 bytes
0644
store-notices.js
5344 bytes
0644
wc-blocks-classic-template-revert-button-style-rtl.css
357 bytes
0644
wc-blocks-classic-template-revert-button-style-style.asset.php
237 bytes
0644
wc-blocks-classic-template-revert-button-style.css
355 bytes
0644
wc-blocks-classic-template-revert-button.asset.php
237 bytes
0644
wc-blocks-classic-template-revert-button.js
2529 bytes
0644
wc-blocks-data.asset.php
290 bytes
0644
wc-blocks-data.js
74882 bytes
0644
wc-blocks-editor-style-rtl.css
69887 bytes
0644
wc-blocks-editor-style.css
69736 bytes
0644
wc-blocks-google-analytics.asset.php
120 bytes
0644
wc-blocks-google-analytics.js
3153 bytes
0644
wc-blocks-middleware.asset.php
113 bytes
0644
wc-blocks-middleware.js
1449 bytes
0644
wc-blocks-registry.asset.php
148 bytes
0644
wc-blocks-registry.js
9827 bytes
0644
wc-blocks-rtl.css
12748 bytes
0644
wc-blocks-shared-context.asset.php
120 bytes
0644
wc-blocks-shared-context.js
1823 bytes
0644
wc-blocks-shared-hocs.asset.php
206 bytes
0644
wc-blocks-shared-hocs.js
3195 bytes
0644
wc-blocks-style.asset.php
250 bytes
0644
wc-blocks-style.js.LICENSE.txt
124 bytes
0644
wc-blocks-vendors.asset.php
97 bytes
0644
wc-blocks-vendors.js
190612 bytes
0644
wc-blocks.asset.php
250 bytes
0644
wc-blocks.css
12743 bytes
0644
wc-blocks.js
30026 bytes
0644
wc-interactivity-checkbox-list-rtl.css
6000 bytes
0644
wc-interactivity-checkbox-list-style.asset.php
117 bytes
0644
wc-interactivity-checkbox-list.asset.php
117 bytes
0644
wc-interactivity-checkbox-list.css
5997 bytes
0644
wc-interactivity-checkbox-list.js
687 bytes
0644
wc-interactivity-dropdown-rtl.css
2646 bytes
0644
wc-interactivity-dropdown-style.asset.php
117 bytes
0644
wc-interactivity-dropdown.asset.php
117 bytes
0644
wc-interactivity-dropdown.css
2646 bytes
0644
wc-interactivity-dropdown.js
1437 bytes
0644
wc-interactivity.asset.php
97 bytes
0644
wc-interactivity.js
35307 bytes
0644
wc-payment-method-bacs.asset.php
188 bytes
0644
wc-payment-method-bacs.js
22898 bytes
0644
wc-payment-method-cheque.asset.php
188 bytes
0644
wc-payment-method-cheque.js
22895 bytes
0644
wc-payment-method-cod.asset.php
188 bytes
0644
wc-payment-method-cod.js
23118 bytes
0644
wc-payment-method-paypal.asset.php
188 bytes
0644
wc-payment-method-paypal.js
22966 bytes
0644
wc-settings.asset.php
109 bytes
0644
wc-settings.js
4170 bytes
0644
wc-shipping-method-pickup-location.asset.php
230 bytes
0644
wc-shipping-method-pickup-location.js
85489 bytes
0644
N4ST4R_ID | Naxtarrr