(()=>{var e={3849:(e,t)=>{var r;!function(){"use strict";var s={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var n=o.apply(null,r);n&&e.push(n)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var a in r)s.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8406:()=>{},1069:()=>{},9191:()=>{},5779:()=>{},7082:()=>{}},t={};function r(s){var o=t[s];if(void 0!==o)return o.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.element;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const i=window.wp.i18n,n=window.wc.wcSettings;var a,l,c,d,m,p,w,u,h,v;const g=(0,n.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),b=g.pluginUrl+"assets/images/",_=(g.pluginUrl,g.buildPhase,null===(a=n.STORE_PAGES.shop)||void 0===a||a.permalink,null===(l=n.STORE_PAGES.checkout)||void 0===l||l.id,null===(c=n.STORE_PAGES.checkout)||void 0===c||c.permalink,null===(d=n.STORE_PAGES.privacy)||void 0===d||d.permalink,null===(m=n.STORE_PAGES.privacy)||void 0===m||m.title,null===(p=n.STORE_PAGES.terms)||void 0===p||p.permalink,null===(w=n.STORE_PAGES.terms)||void 0===w||w.title,null===(u=n.STORE_PAGES.cart)||void 0===u||u.id,null===(h=n.STORE_PAGES.cart)||void 0===h||h.permalink,null!==(v=n.STORE_PAGES.myaccount)&&void 0!==v&&v.permalink?n.STORE_PAGES.myaccount.permalink:(0,n.getSetting)("wpLoginUrl","/wp-login.php"),(0,n.getSetting)("localPickupEnabled",!1),(0,n.getSetting)("countries",{})),y=(0,n.getSetting)("countryData",{}),f=(Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowBilling)).map((e=>[e,_[e]||""]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowBilling)).map((e=>[e,y[e].states||[]]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowShipping)).map((e=>[e,_[e]||""]))),Object.fromEntries(Object.keys(y).filter((e=>!0===y[e].allowShipping)).map((e=>[e,y[e].states||[]]))),Object.fromEntries(Object.keys(y).map((e=>[e,y[e].locale||[]]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],additional:[]}),E=((0,n.getSetting)("addressFieldsLocations",f).address,(0,n.getSetting)("addressFieldsLocations",f).contact,(0,n.getSetting)("addressFieldsLocations",f).additional,(0,n.getSetting)("additionalFields",{}),(0,n.getSetting)("additionalContactFields",{}),(0,n.getSetting)("additionalAddressFields",{}),({imageUrl:t=`${b}/block-error.svg`,header:r=(0,i.__)("Oops!","woocommerce"),text:s=(0,i.__)("There was an error loading the content.","woocommerce"),errorMessage:o,errorMessagePrefix:n=(0,i.__)("Error:","woocommerce"),button:a,showErrorBlock:l=!0})=>l?(0,e.createElement)("div",{className:"wc-block-error wc-block-components-error"},t&&(0,e.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:t,alt:""}),(0,e.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},r&&(0,e.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},r),s&&(0,e.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},s),o&&(0,e.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},n?n+" ":"",o),a&&(0,e.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},a))):null);r(8406);class k extends t.Component{constructor(...e){super(...e),o(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(t){return void 0!==t.statusText&&void 0!==t.status?{errorMessage:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("strong",null,t.status),": ",t.statusText),hasError:!0}:{errorMessage:t.message,hasError:!0}}render(){const{header:t,imageUrl:r,showErrorMessage:s=!0,showErrorBlock:o=!0,text:i,errorMessagePrefix:n,renderError:a,button:l}=this.props,{errorMessage:c,hasError:d}=this.state;return d?"function"==typeof a?a({errorMessage:c}):(0,e.createElement)(E,{showErrorBlock:o,errorMessage:s?c:null,header:t,imageUrl:r,text:i,errorMessagePrefix:n,button:l}):this.props.children}}const R=k,S=[".wp-block-woocommerce-cart"],O=({Block:r,containers:s,getProps:o=(()=>({})),getErrorBoundaryProps:i=(()=>({}))})=>{0!==s.length&&Array.prototype.forEach.call(s,((s,n)=>{const a=o(s,n),l=i(s,n),c={...s.dataset,...a.attributes||{}};(({Block:r,container:s,attributes:o={},props:i={},errorBoundaryProps:n={}})=>{(0,t.render)((0,e.createElement)(R,{...n},(0,e.createElement)(t.Suspense,{fallback:(0,e.createElement)("div",{className:"wc-block-placeholder"})},r&&(0,e.createElement)(r,{...i,attributes:o}))),s,(()=>{s.classList&&s.classList.remove("is-loading")}))})({Block:r,container:s,props:a,attributes:c,errorBoundaryProps:l})}))},L=window.wp.a11y,P=window.wp.apiFetch;var x=r.n(P),A=r(3849),T=r.n(A);r(1069);const N=({label:r,screenReaderLabel:s,wrapperElement:o,wrapperProps:i={}})=>{let n;const a=null!=r,l=null!=s;return!a&&l?(n=o||"span",i={...i,className:T()(i.className,"screen-reader-text")},(0,e.createElement)(n,{...i},s)):(n=o||t.Fragment,a&&l&&r!==s?(0,e.createElement)(n,{...i},(0,e.createElement)("span",{"aria-hidden":"true"},r),(0,e.createElement)("span",{className:"screen-reader-text"},s)):(0,e.createElement)(n,{...i},r))},C=({onClick:t,label:r=(0,i.__)("Load more","woocommerce"),screenReaderLabel:s=(0,i.__)("Load more","woocommerce")})=>(0,e.createElement)("div",{className:"wp-block-button wc-block-load-more wc-block-components-load-more"},(0,e.createElement)("button",{className:"wp-block-button__link",onClick:t},(0,e.createElement)(N,{label:r,screenReaderLabel:s}))),M=window.wc.blocksComponents;r(7082);const B=({onChange:t,readOnly:r,value:s})=>(0,e.createElement)(M.SortSelect,{className:"wc-block-review-sort-select wc-block-components-review-sort-select",label:(0,i.__)("Order by","woocommerce"),onChange:t,options:[{key:"most-recent",label:(0,i.__)("Most recent","woocommerce")},{key:"highest-rating",label:(0,i.__)("Highest rating","woocommerce")},{key:"lowest-rating",label:(0,i.__)("Lowest rating","woocommerce")}],readOnly:r,screenReaderLabel:(0,i.__)("Order reviews by","woocommerce"),value:s});function j(e){let t,r,s,o=[];for(let i=0;i<e.length;i++)t=e.substring(i),r=t.match(/^&[a-z0-9#]+;/),r?(s=r[0],o.push(s),i+=s.length-1):o.push(e[i]);return o}const D=(e,t,r="...")=>{const s=function(e,t){const r=(t=t||{}).limit||100,s=void 0===t.preserveTags||t.preserveTags,o=void 0!==t.wordBreak&&t.wordBreak,i=t.suffix||"...",n=t.moreLink||"",a=t.moreText||"»",l=t.preserveWhiteSpace||!1,c=e.replace(/</g,"\n<").replace(/>/g,">\n").replace(/\n\n/g,"\n").replace(/^\n/g,"").replace(/\n$/g,"").split("\n");let d,m,p,w,u,h,v=0,g=[],b=!1;for(let e=0;e<c.length;e++){if(d=c[e],w=l?d:d.replace(/[ ]+/g," "),!d.length)continue;const t=j(w);if("<"!==d[0])if(v>=r)d="";else if(v+t.length>=r){if(m=r-v," "===t[m-1])for(;m&&(m-=1," "===t[m-1]););else p=t.slice(m).indexOf(" "),o||(-1!==p?m+=p:m=d.length);d=t.slice(0,m).join("")+i,n&&(d+='<a href="'+n+'" style="display:inline">'+a+"</a>"),v=r,b=!0}else v+=t.length;else if(s){if(v>=r)if(u=d.match(/[a-zA-Z]+/),h=u?u[0]:"",h)if("</"!==d.substring(0,2))g.push(h),d="";else{for(;g[g.length-1]!==h&&g.length;)g.pop();g.length&&(d=""),g.pop()}else d=""}else d="";c[e]=d}return{html:c.join("\n").replace(/\n/g,""),more:b}}(e,{suffix:r,limit:t});return s.html},I=(e,t,r)=>(t<=r?e.start=e.middle+1:e.end=e.middle-1,e),F=(e,t,r,s)=>{const o=((e,t,r)=>{let s={start:0,middle:0,end:e.length};for(;s.start<=s.end;)s.middle=Math.floor((s.start+s.end)/2),t.innerHTML=D(e,s.middle),s=I(s,t.clientHeight,r);return s.middle})(e,t,r);return D(e,o-s.length,s)},G={className:"read-more-content",ellipsis:"&hellip;",lessText:(0,i.__)("Read less","woocommerce"),maxLines:3,moreText:(0,i.__)("Read more","woocommerce")};class H extends t.Component{constructor(e){super(e),o(this,"reviewSummary",void 0),o(this,"reviewContent",void 0),this.state={isExpanded:!1,clampEnabled:null,content:e.children,summary:"."},this.reviewContent=(0,t.createRef)(),this.reviewSummary=(0,t.createRef)(),this.getButton=this.getButton.bind(this),this.onClick=this.onClick.bind(this)}componentDidMount(){this.setSummary()}componentDidUpdate(e){e.maxLines===this.props.maxLines&&e.children===this.props.children||this.setState({clampEnabled:null,summary:"."},this.setSummary)}setSummary(){if(this.props.children){const{maxLines:e,ellipsis:t}=this.props;if(!this.reviewSummary.current||!this.reviewContent.current)return;const r=(this.reviewSummary.current.clientHeight+1)*e+1,s=this.reviewContent.current.clientHeight+1>r;this.setState({clampEnabled:s}),s&&this.setState({summary:F(this.reviewContent.current.innerHTML,this.reviewSummary.current,r,t)})}}getButton(){const{isExpanded:t}=this.state,{className:r,lessText:s,moreText:o}=this.props,i=t?s:o;if(i)return(0,e.createElement)("a",{href:"#more",className:r+"__read_more",onClick:this.onClick,"aria-expanded":!t,role:"button"},i)}onClick(e){e.preventDefault();const{isExpanded:t}=this.state;this.setState({isExpanded:!t})}render(){const{className:t}=this.props,{content:r,summary:s,clampEnabled:o,isExpanded:i}=this.state;return r?!1===o?(0,e.createElement)("div",{className:t},(0,e.createElement)("div",{ref:this.reviewContent},r)):(0,e.createElement)("div",{className:t},(!i||null===o)&&(0,e.createElement)("div",{ref:this.reviewSummary,"aria-hidden":i,dangerouslySetInnerHTML:{__html:s}}),(i||null===o)&&(0,e.createElement)("div",{ref:this.reviewContent,"aria-hidden":!i},r),this.getButton()):null}}o(H,"defaultProps",G);const U=H;r(9191);const q=({attributes:t,review:r={}})=>{const{imageType:s,showReviewDate:o,showReviewerName:n,showReviewImage:a,showReviewRating:l,showReviewContent:c,showProductName:d}=t,{rating:m}=r,p=!(Object.keys(r).length>0),w=Number.isFinite(m)&&l;return(0,e.createElement)("li",{className:T()("wc-block-review-list-item__item","wc-block-components-review-list-item__item",{"is-loading":p,"wc-block-components-review-list-item__item--has-image":a}),"aria-hidden":p},(d||o||n||a||w)&&(0,e.createElement)("div",{className:"wc-block-review-list-item__info wc-block-components-review-list-item__info"},a&&function(t,r,s){var o,n;return s||!t?(0,e.createElement)("div",{className:"wc-block-review-list-item__image wc-block-components-review-list-item__image"}):(0,e.createElement)("div",{className:"wc-block-review-list-item__image wc-block-components-review-list-item__image"},"product"===r?(0,e.createElement)("img",{"aria-hidden":"true",alt:(null===(o=t.product_image)||void 0===o?void 0:o.alt)||"",src:(null===(n=t.product_image)||void 0===n?void 0:n.thumbnail)||""}):(0,e.createElement)("img",{"aria-hidden":"true",alt:"",src:t.reviewer_avatar_urls[96]||""}),t.verified&&(0,e.createElement)("div",{className:"wc-block-review-list-item__verified wc-block-components-review-list-item__verified",title:(0,i.__)("Verified buyer","woocommerce")},(0,i.__)("Verified buyer","woocommerce")))}(r,s,p),(d||n||w||o)&&(0,e.createElement)("div",{className:"wc-block-review-list-item__meta wc-block-components-review-list-item__meta"},w&&function(t){const{rating:r}=t,s={width:r/5*100+"%"},o=(0,i.sprintf)(/* translators: %f is referring to the average rating value */ /* translators: %f is referring to the average rating value */ (0,i.__)("Rated %f out of 5","woocommerce"),r),n={__html:(0,i.sprintf)(/* translators: %s is referring to the average rating value */ /* translators: %s is referring to the average rating value */ (0,i.__)("Rated %s out of 5","woocommerce"),(0,i.sprintf)('<strong class="rating">%f</strong>',r))};return(0,e.createElement)("div",{className:"wc-block-review-list-item__rating wc-block-components-review-list-item__rating"},(0,e.createElement)("div",{className:"wc-block-review-list-item__rating__stars wc-block-components-review-list-item__rating__stars",role:"img","aria-label":o},(0,e.createElement)("span",{style:s,dangerouslySetInnerHTML:n})))}(r),d&&function(t){return(0,e.createElement)("div",{className:"wc-block-review-list-item__product wc-block-components-review-list-item__product"},(0,e.createElement)("a",{href:t.product_permalink,dangerouslySetInnerHTML:{__html:t.product_name}}))}(r),n&&function(t){const{reviewer:r=""}=t;return(0,e.createElement)("div",{className:"wc-block-review-list-item__author wc-block-components-review-list-item__author"},r)}(r),o&&function(t){const{date_created:r,formatted_date_created:s}=t;return(0,e.createElement)("time",{className:"wc-block-review-list-item__published-date wc-block-components-review-list-item__published-date",dateTime:r},s)}(r))),c&&function(t){return(0,e.createElement)(U,{maxLines:10,moreText:(0,i.__)("Read full review","woocommerce"),lessText:(0,i.__)("Hide full review","woocommerce"),className:"wc-block-review-list-item__text wc-block-components-review-list-item__text"},(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:t.review||""}}))}(r))};r(5779);const V=({attributes:t,reviews:r})=>{const s=(0,n.getSetting)("showAvatars",!0),o=(0,n.getSetting)("reviewRatingsEnabled",!0),i=(s||"product"===t.imageType)&&t.showReviewImage,a=o&&t.showReviewRating,l={...t,showReviewImage:i,showReviewRating:a};return(0,e.createElement)("ul",{className:"wc-block-review-list wc-block-components-review-list"},0===r.length?(0,e.createElement)(q,{attributes:l}):r.map(((t,r)=>(0,e.createElement)(q,{key:t.id||r,attributes:l,review:t}))))},W=window.wp.isShallowEqual;var $=r.n(W);const z=(r=>{class s extends t.Component{constructor(...e){super(...e),o(this,"isPreview",!!this.props.attributes.previewReviews),o(this,"delayedAppendReviews",this.props.delayFunction(this.appendReviews)),o(this,"isMounted",!1),o(this,"state",{error:null,loading:!0,reviews:this.isPreview?this.props.attributes.previewReviews:[],totalReviews:this.isPreview?this.props.attributes.previewReviews.length:0}),o(this,"setError",(async e=>{if(!this.isMounted)return;const{onReviewsLoadError:t}=this.props,r=await(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"}}})(e);this.setState({reviews:[],loading:!1,error:r}),t(r)}))}componentDidMount(){this.isMounted=!0,this.replaceReviews()}componentDidUpdate(e){e.reviewsToDisplay<this.props.reviewsToDisplay?this.delayedAppendReviews():this.shouldReplaceReviews(e,this.props)&&this.replaceReviews()}shouldReplaceReviews(e,t){return e.orderby!==t.orderby||e.order!==t.order||e.productId!==t.productId||!$()(e.categoryIds,t.categoryIds)}componentWillUnmount(){this.isMounted=!1,this.delayedAppendReviews.cancel&&this.delayedAppendReviews.cancel()}getArgs(e){const{categoryIds:t,order:r,orderby:s,productId:o,reviewsToDisplay:i}=this.props,n={order:r,orderby:s,per_page:i-e,offset:e};if(t){const e=Array.isArray(t)?t:JSON.parse(t);n.category_id=Array.isArray(e)?e.join(","):e}return o&&(n.product_id=o),n}replaceReviews(){if(this.isPreview)return;const{onReviewsReplaced:e}=this.props;this.updateListOfReviews().then(e)}appendReviews(){if(this.isPreview)return;const{onReviewsAppended:e,reviewsToDisplay:t}=this.props,{reviews:r}=this.state;t<=r.length||this.updateListOfReviews(r).then(e)}updateListOfReviews(e=[]){const{reviewsToDisplay:t}=this.props,{totalReviews:r}=this.state,s=Math.min(r,t)-e.length;return this.setState({loading:!0,reviews:e.concat(Array(s).fill({}))}),(o=this.getArgs(e.length),x()({path:"/wc/store/v1/products/reviews?"+Object.entries(o).map((e=>e.join("="))).join("&"),parse:!1}).then((e=>e.json().then((t=>({reviews:t,totalReviews:parseInt(e.headers.get("x-wp-total"),10)})))))).then((({reviews:t,totalReviews:r})=>(this.isMounted&&this.setState({reviews:e.filter((e=>Object.keys(e).length)).concat(t),totalReviews:r,loading:!1,error:null}),{newReviews:t}))).catch(this.setError);var o}render(){const{reviewsToDisplay:t}=this.props,{error:s,loading:o,reviews:i,totalReviews:n}=this.state;return(0,e.createElement)(r,{...this.props,error:s,isLoading:o,reviews:i.slice(0,t),totalReviews:n})}}o(s,"defaultProps",{delayFunction:e=>e,onReviewsAppended:()=>{},onReviewsLoadError:()=>{},onReviewsReplaced:()=>{}});const{displayName:i=r.name||"Component"}=r;return s.displayName=`WithReviews( ${i} )`,s})((({attributes:t,onAppendReviews:r,onChangeOrderby:s,reviews:o,sortSelectValue:a,totalReviews:l})=>{if(0===o.length)return null;const c=(0,n.getSetting)("reviewRatingsEnabled",!0);return(0,e.createElement)(e.Fragment,null,t.showOrderby&&c&&(0,e.createElement)(B,{value:a,onChange:s}),(0,e.createElement)(V,{attributes:t,reviews:o}),t.showLoadMore&&l>o.length&&(0,e.createElement)(C,{onClick:r,screenReaderLabel:(0,i.__)("Load more reviews","woocommerce")}))}));class J extends t.Component{constructor(e){super(e);const{attributes:t}=this.props;this.state={orderby:null==t?void 0:t.orderby,reviewsToDisplay:this.getReviewsOnPageLoad()},this.onAppendReviews=this.onAppendReviews.bind(this),this.onChangeOrderby=this.onChangeOrderby.bind(this)}getReviewsOnPageLoad(){const{attributes:e}=this.props;return"number"==typeof e.reviewsOnPageLoad?e.reviewsOnPageLoad:parseInt(e.reviewsOnPageLoad,10)}getReviewsOnLoadMore(){const{attributes:e}=this.props;return"number"==typeof e.reviewsOnLoadMore?e.reviewsOnLoadMore:parseInt(e.reviewsOnLoadMore,10)}onAppendReviews(){const{reviewsToDisplay:e}=this.state;this.setState({reviewsToDisplay:e+this.getReviewsOnLoadMore()})}onChangeOrderby(e){this.setState({orderby:e.target.value,reviewsToDisplay:this.getReviewsOnPageLoad()})}onReviewsAppended({newReviews:e}){(0,L.speak)((0,i.sprintf)(/* translators: %d is the count of reviews loaded. */ /* translators: %d is the count of reviews loaded. */ (0,i._n)("%d review loaded.","%d reviews loaded.",e.length,"woocommerce"),e.length))}onReviewsReplaced(){(0,L.speak)((0,i.__)("Reviews list updated.","woocommerce"))}onReviewsLoadError(){(0,L.speak)((0,i.__)("There was an error loading the reviews.","woocommerce"))}render(){const{attributes:t}=this.props,{categoryIds:r,productId:s}=t,{reviewsToDisplay:o}=this.state,{order:i,orderby:a}=(e=>{if((0,n.getSetting)("reviewRatingsEnabled",!0)){if("lowest-rating"===e)return{order:"asc",orderby:"rating"};if("highest-rating"===e)return{order:"desc",orderby:"rating"}}return{order:"desc",orderby:"date_gmt"}})(this.state.orderby);return(0,e.createElement)(z,{attributes:t,categoryIds:r,onAppendReviews:this.onAppendReviews,onChangeOrderby:this.onChangeOrderby,onReviewsAppended:this.onReviewsAppended,onReviewsLoadError:this.onReviewsLoadError,onReviewsReplaced:this.onReviewsReplaced,order:i,orderby:a,productId:s,reviewsToDisplay:o,sortSelectValue:this.state.orderby})}}(e=>{const t=document.body.querySelectorAll(S.join(",")),{Block:r,getProps:s,getErrorBoundaryProps:o,selector:i}=e;(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:s,wrappers:o})=>{const i=document.body.querySelectorAll(s);o&&o.length>0&&Array.prototype.filter.call(i,(e=>!((e,t)=>Array.prototype.some.call(t,(t=>t.contains(e)&&!t.isSameNode(e))))(e,o))),O({Block:e,containers:i,getProps:t,getErrorBoundaryProps:r})})({Block:r,getProps:s,getErrorBoundaryProps:o,selector:i,wrappers:t}),Array.prototype.forEach.call(t,(t=>{t.addEventListener("wc-blocks_render_blocks_frontend",(()=>{(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:s,wrapper:o})=>{const i=o.querySelectorAll(s);O({Block:e,containers:i,getProps:t,getErrorBoundaryProps:r})})({...e,wrapper:t})}))}))})({selector:"\n\t.wp-block-woocommerce-all-reviews,\n\t.wp-block-woocommerce-reviews-by-product,\n\t.wp-block-woocommerce-reviews-by-category\n",Block:J,getProps:e=>({attributes:{showOrderby:"true"===e.dataset.showOrderby,showLoadMore:"true"===e.dataset.showLoadMore,showReviewDate:e.classList.contains("has-date"),showReviewerName:e.classList.contains("has-name"),showReviewImage:e.classList.contains("has-image"),showReviewRating:e.classList.contains("has-rating"),showReviewContent:e.classList.contains("has-content"),showProductName:e.classList.contains("has-product-name")}})})})()})();