(()=>{"use strict";var e={d:(t,r)=>{for(var a in r)e.o(r,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:r[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{InnerBlockLayoutContextProvider:()=>o,ProductDataContextProvider:()=>l,useInnerBlockLayoutContext:()=>n,useProductDataContext:()=>s});const r=window.wp.element,a=(0,r.createContext)({parentName:"",parentClassName:"",isLoading:!1}),n=()=>(0,r.useContext)(a),o=({parentName:e="",parentClassName:t="",isLoading:n=!1,children:o})=>{const i={parentName:e,parentClassName:t,isLoading:n};return(0,r.createElement)(a.Provider,{value:i},o)},i={id:0,name:"",parent:0,type:"simple",variation:"",permalink:"",sku:"",short_description:"",description:"",on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:"0",regular_price:"0",sale_price:"0",price_range:null},price_html:"",average_rating:"0",review_count:0,images:[],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!1,is_in_stock:!1,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"Add to cart",description:"Add to cart",url:"",minimum:1,maximum:99,multiple_of:1}},c=(0,r.createContext)({product:i,hasContext:!1,isLoading:!1}),s=()=>(0,r.useContext)(c),l=({product:e=null,children:t,isLoading:a})=>{const n={product:e||i,isLoading:a,hasContext:!0};return(0,r.createElement)(c.Provider,{value:n},a?(0,r.createElement)("div",{className:"is-loading"},t):t)};(this.wc=this.wc||{}).wcBlocksSharedContext=t})();