PATH:
home
/
letacommog
/
broderie
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
build
this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["featured-product"]=function(t){function e(e){for(var r,i,a=e[0],u=e[1],s=e[2],d=0,p=[];d<a.length;d++)i=a[d],Object.prototype.hasOwnProperty.call(c,i)&&c[i]&&p.push(c[i][0]),c[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);for(l&&l(e);p.length;)p.shift()();return o.push.apply(o,s||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],r=!0,a=1;a<n.length;a++){var u=n[a];0!==c[u]&&(r=!1)}r&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var r={},c={23:0},o=[];function i(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="";var a=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=a.push.bind(a);a.push=e,a=a.slice();for(var s=0;s<a.length;s++)e(a[s]);var l=u;return o.push([843,0]),n()}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},110:function(t,e){},111:function(t,e){},112:function(t,e){},113:function(t,e){},114:function(t,e){},115:function(t,e){},116:function(t,e){},117:function(t,e){},118:function(t,e){},119:function(t,e){},120:function(t,e){},121:function(t,e){},122:function(t,e){},13:function(t,e){!function(){t.exports=this.wp.apiFetch}()},141:function(t,e,n){"use strict";var r=n(51),c=n.n(r),o=n(10),i=n.n(o),a=n(0),u=n(1),s=n(7),l=(n(2),n(50)),d=n(4),p=n(8),f=n.n(p),b=n(22),g=n.n(b),h=n(26),m=n.n(h),O=n(23),v=n.n(O),j=n(24),w=n.n(j),y=n(12),k=n.n(y),_=n(36);function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=k()(t);if(e){var c=k()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return w()(this,n)}}var E=Object(_.b)((function(t){var e=function(e){v()(r,e);var n=S(r);function r(){return g()(this,r),n.apply(this,arguments)}return m()(r,[{key:"render",value:function(){var e=this.props.selected;return Object(a.createElement)(t,i()({},this.props,{selected:Object(s.isNil)(e)?[]:[e]}))}}]),r}(a.Component);return e.defaultProps={selected:null},e}),"withTransformSingleSelectToMultipleSelect"),P=n(308),x=n(16),C=n.n(x),R=n(38),D=n.n(R),I=n(21),A=n.n(I),M=n(9),B=n.n(M),T=n(37),L=n.n(T),N=n(43),U=n(45);function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){B()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=k()(t);if(e){var c=k()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return w()(this,n)}}var H=Object(_.b)((function(t){var e=function(e){v()(r,e);var n=F(r);function r(){var t;g()(this,r);for(var e=arguments.length,c=new Array(e),o=0;o<e;o++)c[o]=arguments[o];return t=n.call.apply(n,[this].concat(c)),B()(A()(t),"state",{error:null,loading:!1,variations:{}}),B()(A()(t),"loadVariations",(function(){var e=t.props.products,n=t.state,r=n.loading,c=n.variations;if(!r){var o=t.getExpandedProduct();if(o&&!c[o]){var i=e.find((function(t){return t.id===o}));i.variations&&0!==i.variations.length?(t.setState({loading:!0}),Object(N.g)(o).then((function(e){var n=e.map((function(t){return V(V({},t),{},{parent:o})}));t.setState({variations:V(V({},t.state.variations),{},B()({},o,n)),loading:!1,error:null})})).catch(function(){var e=D()(C.a.mark((function e(n){var r;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(U.a)(n);case 2:r=e.sent,t.setState({variations:V(V({},t.state.variations),{},B()({},o,null)),loading:!1,error:r});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):t.setState({variations:V(V({},t.state.variations),{},B()({},o,null)),loading:!1,error:null})}}})),t}return m()(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.selected,n=t.showVariations;e&&n&&this.loadVariations()}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isLoading,r=e.selected;e.showVariations&&(!L()(t.selected,r)||t.isLoading&&!n)&&this.loadVariations()}},{key:"isProductId",value:function(t){return this.props.products.some((function(e){return e.id===t}))}},{key:"findParentProduct",value:function(t){return this.props.products.filter((function(e){return e.variations&&e.variations.find((function(e){return e.id===t}))}))[0].id}},{key:"getExpandedProduct",value:function(){var t=this.props,e=t.isLoading,n=t.selected;if(!t.showVariations)return null;var r=n&&n.length?n[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}},{key:"render",value:function(){var e=this.props,n=e.error,r=e.isLoading,c=this.state,o=c.error,u=c.loading,s=c.variations;return Object(a.createElement)(t,i()({},this.props,{error:o||n,expandedProduct:this.getExpandedProduct(),isLoading:r,variations:s,variationsLoading:u}))}}]),r}(a.Component);return B()(e,"defaultProps",{selected:[],showVariations:!1}),e}),"withProductVariations"),q=n(64),W=n(56),Q=Object(a.createElement)(W.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)("path",{fill:"#1E8CBE",d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),G=Object(a.createElement)(W.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)("path",{fill:"#757575",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),J=n(49);n(202);function Y(t,e){if(!e)return t;var n=new RegExp(Object(s.escapeRegExp)(e),"ig");return t.replace(n,"<strong>$&</strong>")}var $=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?Object(a.createElement)(q.a,{srcElement:Q}):Object(a.createElement)(q.a,{srcElement:G})},K={list:Object(u.__)("Products",'woocommerce'),noItems:Object(u.__)("Your store doesn't have any products.",'woocommerce'),search:Object(u.__)("Search for a product to display",'woocommerce'),updated:Object(u.__)("Product search results updated.",'woocommerce')},X=function(t){var e=t.expandedProduct,n=t.error,r=t.isLoading,o=t.onChange,p=t.onSearch,b=t.products,g=t.renderItem,h=t.selected,m=t.showVariations,O=t.variations,v=t.variationsLoading,j=function(t){var n=t.item,r=t.search,c=t.depth,o=void 0===c?0:c,p=t.isSelected,b=t.onSelect,g=n.variations&&Array.isArray(n.variations)?n.variations.length:0,h=f()("woocommerce-search-product__item","woocommerce-search-list__item","depth-".concat(o),{"is-searching":r.length>0,"is-skip-level":0===o&&0!==n.parent,"is-variable":g>0}),m=Object.assign({},t);delete m.isSingle;var O={role:"menuitemradio"};return n.breadcrumbs.length&&(O["aria-label"]="".concat(n.breadcrumbs[0],": ").concat(n.name)),g&&(O["aria-expanded"]=n.id===e),n.breadcrumbs.length?(Object(s.isEmpty)(n.variation)||(n.name=n.variation),Object(a.createElement)(l.b,i()({className:h},t,O))):[Object(a.createElement)(d.MenuItem,i()({key:"product-".concat(n.id),isSelected:p},m,O,{className:h,onClick:function(){b(n)()}}),Object(a.createElement)("span",{className:"woocommerce-search-list__item-state"},$(p)),Object(a.createElement)("span",{className:"woocommerce-search-list__item-label"},Object(a.createElement)("span",{className:"woocommerce-search-list__item-name",dangerouslySetInnerHTML:{__html:Y(n.name,r)}})),g?Object(a.createElement)("span",{className:"woocommerce-search-list__item-variation-count"},Object(u.sprintf)(Object(u._n)("%d variation","%d variations",g,'woocommerce'),g)):null),e===n.id&&g>0&&v&&Object(a.createElement)("div",{key:"loading",className:"woocommerce-search-list__item woocommerce-search-product__itemdepth-1 is-loading is-not-active"},Object(a.createElement)(d.Spinner,null))]};if(n)return Object(a.createElement)(J.a,{error:n});var w=O&&O[e]?O[e]:[],y=[].concat(c()(b),c()(w));return Object(a.createElement)(l.a,{className:"woocommerce-products",list:y,isLoading:r,isSingle:!0,selected:y.filter((function(t){var e=t.id;return h.includes(e)})),onChange:o,renderItem:g||(m?j:null),onSearch:p,messages:K,isHierarchical:!0})};X.defaultProps={expandedProduct:null,selected:[],showVariations:!1};e.a=E(Object(P.a)(H(X)))},143:function(t,e,n){"use strict";var r=n(0),c=n(56),o=Object(r.createElement)(c.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}));e.a=o},144:function(t,e){},15:function(t,e){!function(){t.exports=this.wp.blockEditor}()},16:function(t,e){!function(){t.exports=this.regeneratorRuntime}()},19:function(t,e){!function(){t.exports=this.wp.blocks}()},20:function(t,e){!function(){t.exports=this.wp.url}()},202:function(t,e){},3:function(t,e){!function(){t.exports=this.wc.wcSettings}()},308:function(t,e,n){"use strict";var r=n(10),c=n.n(r),o=n(16),i=n.n(o),a=n(38),u=n.n(a),s=n(22),l=n.n(s),d=n(26),p=n.n(d),f=n(21),b=n.n(f),g=n(23),h=n.n(g),m=n(24),O=n.n(m),v=n(12),j=n.n(v),w=n(0),y=n(7),k=n(36),_=(n(2),n(5)),S=n(43),E=n(45);function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var x=Object(k.b)((function(t){var e=function(e){h()(o,e);var n,r=P(o);function o(){var t;return l()(this,o),(t=r.apply(this,arguments)).state={list:[],loading:!0},t.setError=t.setError.bind(b()(t)),t.debouncedOnSearch=Object(y.debounce)(t.onSearch.bind(b()(t)),400),t}return p()(o,[{key:"componentDidMount",value:function(){var t=this,e=this.props.selected;Object(S.h)({selected:e}).then((function(e){t.setState({list:e,loading:!1})})).catch(this.setError)}},{key:"componentWillUnmount",value:function(){this.debouncedOnSearch.cancel()}},{key:"onSearch",value:function(t){var e=this,n=this.props.selected;Object(S.h)({selected:n,search:t}).then((function(t){e.setState({list:t,loading:!1})})).catch(this.setError)}},{key:"setError",value:(n=u()(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(E.a)(e);case 2:n=t.sent,this.setState({list:[],loading:!1,error:n});case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=this.state,r=n.error,o=n.list,i=n.loading;return Object(w.createElement)(t,c()({},this.props,{error:r,products:o,isLoading:i,onSearch:_.v?function(t){e.setState({loading:!0}),e.debouncedOnSearch(t)}:null}))}}]),o}(w.Component);return e.defaultProps={selected:[]},e}),"withSearchedProducts");e.a=x},32:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},34:function(t,e){!function(){t.exports=this.moment}()},35:function(t,e){!function(){t.exports=this.wp.data}()},37:function(t,e){!function(){t.exports=this.wp.isShallowEqual}()},4:function(t,e){!function(){t.exports=this.wp.components}()},43:function(t,e,n){"use strict";n.d(e,"h",(function(){return p})),n.d(e,"e",(function(){return f})),n.d(e,"b",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return O})),n.d(e,"g",(function(){return v})),n.d(e,"a",(function(){return j}));var r=n(9),c=n.n(r),o=n(20),i=n(13),a=n.n(i),u=n(7),s=n(5);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=function(t){var e=t.selected,n=void 0===e?[]:e,r=t.search,c=void 0===r?"":r,i=t.queryArgs,l=function(t){var e=t.selected,n=void 0===e?[]:e,r=t.search,c=void 0===r?"":r,i=t.queryArgs,a=void 0===i?[]:i,u={per_page:s.v?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/products",d(d({},u),a))];return s.v&&n.length&&l.push(Object(o.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:n})),l}({selected:n,search:c,queryArgs:void 0===i?[]:i});return Promise.all(l.map((function(t){return a()({path:t})}))).then((function(t){return Object(u.uniqBy)(Object(u.flatten)(t),"id").map((function(t){return d(d({},t),{},{parent:0})}))})).catch((function(t){throw t}))},f=function(t){return a()({path:"/wc/store/products/".concat(t)})},b=function(){return a()({path:"wc/store/products/attributes"})},g=function(t){return a()({path:"wc/store/products/attributes/".concat(t,"/terms")})},h=function(t){var e=t.selected,n=function(t){var e=t.selected,n=void 0===e?[]:e,r=t.search,c=[Object(o.addQueryArgs)("wc/store/products/tags",{per_page:s.x?100:0,orderby:s.x?"count":"name",order:s.x?"desc":"asc",search:r})];return s.x&&n.length&&c.push(Object(o.addQueryArgs)("wc/store/products/tags",{include:n})),c}({selected:void 0===e?[]:e,search:t.search});return Promise.all(n.map((function(t){return a()({path:t})}))).then((function(t){return Object(u.uniqBy)(Object(u.flatten)(t),"id")}))},m=function(t){return a()({path:Object(o.addQueryArgs)("wc/store/products/categories",d({per_page:0},t))})},O=function(t){return a()({path:"wc/store/products/categories/".concat(t)})},v=function(t){return a()({path:Object(o.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:t})})},j=function(t,e){if(!t.title.raw)return t.slug;var n=1===e.filter((function(e){return e.title.raw===t.title.raw})).length;return t.title.raw+(n?"":" - ".concat(t.slug))}},45:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(16),c=n.n(r),o=n(38),i=n.n(o),a=function(){var t=i()(c.a.mark((function t(e){var n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.json){t.next=11;break}return t.prev=1,t.next=4,e.json();case 4:return n=t.sent,t.abrupt("return",{message:n.message,type:n.type||"api"});case 8:return t.prev=8,t.t0=t.catch(1),t.abrupt("return",{message:t.t0.message,type:"general"});case 11:return t.abrupt("return",{message:e.message,type:e.type||"general"});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},47:function(t,e){!function(){t.exports=this.wp.escapeHtml}()},49:function(t,e,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(47));e.a=function(t){var e,n,i,a=t.error;return Object(r.createElement)("div",{className:"wc-block-error-message"},(n=(e=a).message,i=e.type,n?"general"===i?Object(r.createElement)("span",null,Object(c.__)("The following error was returned",'woocommerce'),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(o.escapeHTML)(n))):"api"===i?Object(r.createElement)("span",null,Object(c.__)("The following error was returned from the API",'woocommerce'),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(o.escapeHTML)(n))):n:Object(c.__)("An unknown error occurred which prevented the block from being updated.",'woocommerce')))}},5:function(t,e,n){"use strict";n.d(e,"l",(function(){return c})),n.d(e,"J",(function(){return o})),n.d(e,"P",(function(){return i})),n.d(e,"z",(function(){return a})),n.d(e,"B",(function(){return u})),n.d(e,"m",(function(){return s})),n.d(e,"A",(function(){return l})),n.d(e,"D",(function(){return d})),n.d(e,"o",(function(){return p})),n.d(e,"C",(function(){return f})),n.d(e,"n",(function(){return b})),n.d(e,"F",(function(){return g})),n.d(e,"v",(function(){return h})),n.d(e,"x",(function(){return m})),n.d(e,"s",(function(){return O})),n.d(e,"t",(function(){return v})),n.d(e,"u",(function(){return j})),n.d(e,"k",(function(){return w})),n.d(e,"L",(function(){return y})),n.d(e,"Q",(function(){return k})),n.d(e,"q",(function(){return _})),n.d(e,"r",(function(){return S})),n.d(e,"p",(function(){return E})),n.d(e,"I",(function(){return P})),n.d(e,"c",(function(){return x})),n.d(e,"w",(function(){return C})),n.d(e,"T",(function(){return D})),n.d(e,"U",(function(){return I})),n.d(e,"K",(function(){return A})),n.d(e,"a",(function(){return M})),n.d(e,"N",(function(){return B})),n.d(e,"b",(function(){return T})),n.d(e,"M",(function(){return L})),n.d(e,"E",(function(){return N})),n.d(e,"i",(function(){return U})),n.d(e,"O",(function(){return F})),n.d(e,"h",(function(){return H})),n.d(e,"j",(function(){return q})),n.d(e,"H",(function(){return W})),n.d(e,"G",(function(){return Q})),n.d(e,"S",(function(){return G})),n.d(e,"R",(function(){return J})),n.d(e,"d",(function(){return Y})),n.d(e,"e",(function(){return $})),n.d(e,"f",(function(){return K})),n.d(e,"g",(function(){return X})),n.d(e,"y",(function(){return Z})),n.d(e,"X",(function(){return et})),n.d(e,"Y",(function(){return nt})),n.d(e,"V",(function(){return rt})),n.d(e,"W",(function(){return ct}));var r=n(3),c=Object(r.getSetting)("currentUserIsAdmin",!1),o=Object(r.getSetting)("reviewRatingsEnabled",!0),i=Object(r.getSetting)("showAvatars",!0),a=Object(r.getSetting)("max_columns",6),u=Object(r.getSetting)("min_columns",1),s=Object(r.getSetting)("default_columns",3),l=Object(r.getSetting)("max_rows",6),d=Object(r.getSetting)("min_rows",1),p=Object(r.getSetting)("default_rows",3),f=Object(r.getSetting)("min_height",500),b=Object(r.getSetting)("default_height",500),g=Object(r.getSetting)("placeholderImgSrc",""),h=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),m=Object(r.getSetting)("limitTags"),O=Object(r.getSetting)("hasProducts",!0),v=Object(r.getSetting)("hasTags",!0),j=Object(r.getSetting)("homeUrl",""),w=Object(r.getSetting)("couponsEnabled",!0),y=Object(r.getSetting)("shippingEnabled",!0),k=Object(r.getSetting)("taxesEnabled",!0),_=Object(r.getSetting)("displayItemizedTaxes",!1),S=Object(r.getSetting)("hasDarkEditorStyleSupport",!1),E=(Object(r.getSetting)("displayShopPricesIncludingTax",!1),Object(r.getSetting)("displayCartPricesIncludingTax",!1)),P=Object(r.getSetting)("productCount",0),x=Object(r.getSetting)("attributes",[]),C=Object(r.getSetting)("isShippingCalculatorEnabled",!0),R=(Object(r.getSetting)("isShippingCostHidden",!1),Object(r.getSetting)("woocommerceBlocksPhase",1)),D=Object(r.getSetting)("wcBlocksAssetUrl",""),I=Object(r.getSetting)("wcBlocksBuildUrl",""),A=Object(r.getSetting)("shippingCountries",{}),M=Object(r.getSetting)("allowedCountries",{}),B=Object(r.getSetting)("shippingStates",{}),T=Object(r.getSetting)("allowedStates",{}),L=Object(r.getSetting)("shippingMethodsExist",!1),N=Object(r.getSetting)("paymentGatewaySortOrder",[]),U=Object(r.getSetting)("checkoutShowLoginReminder",!0),z={id:0,title:"",permalink:""},V=Object(r.getSetting)("storePages",{shop:z,cart:z,checkout:z,privacy:z,terms:z}),F=V.shop.permalink,H=V.checkout.id,q=V.checkout.permalink,W=V.privacy.permalink,Q=V.privacy.title,G=V.terms.permalink,J=V.terms.title,Y=V.cart.id,$=V.cart.permalink,K=Object(r.getSetting)("checkoutAllowsGuest",!1),X=Object(r.getSetting)("checkoutAllowsSignup",!1),Z=Object(r.getSetting)("loginUrl","/wp-login.php"),tt=n(19),et=function(t,e){if(R>2)return Object(tt.registerBlockType)(t,e)},nt=function(t,e){if(R>1)return Object(tt.registerBlockType)(t,e)},rt=function(){return R>2},ct=function(){return R>1}},546:function(t,e,n){"use strict";var r=n(10),c=n.n(r),o=n(16),i=n.n(o),a=n(38),u=n.n(a),s=n(22),l=n.n(s),d=n(26),p=n.n(d),f=n(21),b=n.n(f),g=n(23),h=n.n(g),m=n(24),O=n.n(m),v=n(12),j=n.n(v),w=n(9),y=n.n(w),k=n(0),_=n(36),S=n(43),E=n(45);function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var c=j()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return O()(this,n)}}var x=Object(_.b)((function(t){return function(e){h()(r,e);var n=P(r);function r(){var t;l()(this,r);for(var e=arguments.length,c=new Array(e),o=0;o<e;o++)c[o]=arguments[o];return t=n.call.apply(n,[this].concat(c)),y()(b()(t),"state",{error:null,loading:!1,product:"preview"===t.props.attributes.productId?t.props.attributes.previewProduct:null}),y()(b()(t),"loadProduct",(function(){var e=t.props.attributes.productId;"preview"!==e&&(e?(t.setState({loading:!0}),Object(S.e)(e).then((function(e){t.setState({product:e,loading:!1,error:null})})).catch(function(){var e=u()(i.a.mark((function e(n){var r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(E.a)(n);case 2:r=e.sent,t.setState({product:null,loading:!1,error:r});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())):t.setState({product:null,loading:!1,error:null}))})),t}return p()(r,[{key:"componentDidMount",value:function(){this.loadProduct()}},{key:"componentDidUpdate",value:function(t){t.attributes.productId!==this.props.attributes.productId&&this.loadProduct()}},{key:"render",value:function(){var e=this.state,n=e.error,r=e.loading,o=e.product;return Object(k.createElement)(t,c()({},this.props,{error:n,getProduct:this.loadProduct,isLoading:r,product:o}))}}]),r}(k.Component)}),"withProduct");e.a=x},55:function(t,e){!function(){t.exports=this.wp.keycodes}()},6:function(t,e){!function(){t.exports=this.React}()},64:function(t,e,n){"use strict";var r=n(9),c=n.n(r),o=n(31),i=n.n(o),a=n(6);n(2);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a=function(t){var e=t.srcElement,n=t.size,r=void 0===n?24:n,o=i()(t,["srcElement","size"]);return Object(a.isValidElement)(e)&&Object(a.cloneElement)(e,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){c()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({width:r,height:r},o))}},7:function(t,e){!function(){t.exports=this.lodash}()},75:function(t,e){!function(){t.exports=this.wp.dom}()},77:function(t,e){!function(){t.exports=this.wp.hooks}()},80:function(t,e){!function(){t.exports=this.ReactDOM}()},84:function(t,e){!function(){t.exports=this.wp.viewport}()},843:function(t,e,n){t.exports=n(931)},844:function(t,e){},845:function(t,e){},846:function(t,e,n){"use strict";var r=n(0),c=n(56),o=Object(r.createElement)(c.b,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}));e.a=o},847:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),c=n(5),o=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:Object(r.__)("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:c.T+"img/pennant.jpg",thumbnail:c.T+"img/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,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:Object(r.__)("Add to cart",'woocommerce'),description:Object(r.__)("Add to cart",'woocommerce')},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}]},931:function(t,e,n){"use strict";n.r(e);var r=n(0),c=n(1),o=n(15),i=n(19),a=n(5),u=n(64),s=n(846),l=(n(844),n(845),n(847)),d={attributes:{contentAlign:"center",dimRatio:50,editMode:!1,height:a.n,mediaSrc:"",showDesc:!0,productId:"preview",previewProduct:l.a[0]}},p=n(10),f=n.n(p),b=n(22),g=n.n(b),h=n(26),m=n.n(h),O=n(21),v=n.n(O),j=n(23),w=n.n(j),y=n(24),k=n.n(y),_=n(12),S=n.n(_),E=n(9),P=n.n(E),x=n(35),C=n(4),R=n(8),D=n.n(R),I=n(36),A=n(7),M=(n(2),n(141)),B=n(94),T=n(546);function L(t){return t&&t.images&&t.images.length&&t.images[0].src||""}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){P()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S()(t);if(e){var c=S()(this).constructor;n=Reflect.construct(r,arguments,c)}else n=r.apply(this,arguments);return k()(this,n)}}var V=Object(I.a)([T.a,Object(o.withColors)({overlayColor:"background-color"}),C.withSpokenMessages,Object(x.withSelect)((function(t,e,n){var r,c,o=e.clientId,i=n.dispatch,a=t("core/block-editor").getBlock(o),u=(null==a||null===(r=a.innerBlocks[0])||void 0===r?void 0:r.clientId)||"";return{updateBlockAttributes:function(t){u&&i("core/block-editor").updateBlockAttributes(u,t)},currentButtonAttributes:(null==a||null===(c=a.innerBlocks[0])||void 0===c?void 0:c.attributes)||{}}})),Object(I.b)((function(t){return function(e){w()(c,e);var n=z(c);function c(){var t;g()(this,c);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t=n.call.apply(n,[this].concat(r)),P()(v()(t),"state",{doUrlUpdate:!1}),P()(v()(t),"triggerUrlUpdate",(function(){t.setState({doUrlUpdate:!0})})),t}return m()(c,[{key:"componentDidUpdate",value:function(){var t=this.props,e=t.attributes,n=t.updateBlockAttributes,r=t.currentButtonAttributes,c=t.product;this.state.doUrlUpdate&&!e.editMode&&null!=c&&c.permalink&&null!=r&&r.url&&c.permalink!==r.url&&(n(U(U({},r),{},{url:c.permalink})),this.setState({doUrlUpdate:!1}))}},{key:"render",value:function(){return Object(r.createElement)(t,f()({triggerUrlUpdate:this.triggerUrlUpdate},this.props))}}]),c}(r.Component)}),"withUpdateButtonAttributes")])((function(t){var e,n,i,l,d=t.attributes,p=t.debouncedSpeak,f=t.error,b=t.getProduct,g=t.isLoading,h=t.isSelected,m=t.overlayColor,O=t.product,v=t.setAttributes,j=t.setOverlayColor,w=t.triggerUrlUpdate,y=void 0===w?function(){}:w,k=function(){var t=d.contentAlign,e=d.editMode,n=d.mediaId||function(t){return t&&t.images&&t.images.length&&t.images[0].id||0}(O);return Object(r.createElement)(o.BlockControls,null,Object(r.createElement)(o.AlignmentToolbar,{value:t,onChange:function(t){v({contentAlign:t})}}),Object(r.createElement)(o.MediaUploadCheck,null,Object(r.createElement)(C.Toolbar,null,Object(r.createElement)(o.MediaUpload,{onSelect:function(t){v({mediaId:t.id,mediaSrc:t.url})},allowedTypes:["image"],value:n,render:function(t){var e=t.open;return Object(r.createElement)(C.IconButton,{className:"components-toolbar__control",label:Object(c.__)("Edit media"),icon:"format-image",onClick:e,disabled:!O})}}))),Object(r.createElement)(C.Toolbar,{controls:[{icon:"edit",title:Object(c.__)("Edit"),onClick:function(){return v({editMode:!e})},isActive:e}]}))},_=function(){var t=D()("wp-block-button__link","is-style-fill");return"preview"===d.productId?Object(r.createElement)("div",{className:"wp-block-button aligncenter",style:{width:"100%"}},Object(r.createElement)(o.RichText.Content,{tagName:"a",className:t,href:O.permalink,title:d.linkText,style:{backgroundColor:"vivid-green-cyan",borderRadius:"5px"},value:d.linkText,target:O.permalink})):Object(r.createElement)(o.InnerBlocks,{template:[["core/button",{text:Object(c.__)("Shop now",'woocommerce'),url:O.permalink,align:"center"}]],templateLock:"all"})},S=d.editMode;return f?Object(r.createElement)(B.a,{className:"wc-block-featured-product-error",error:f,isLoading:g,onRetry:b}):S?Object(r.createElement)(r.Fragment,null,k(),Object(r.createElement)(C.Placeholder,{icon:Object(r.createElement)(u.a,{srcElement:s.a}),label:Object(c.__)("Featured Product",'woocommerce'),className:"wc-block-featured-product"},Object(c.__)("Visually highlight a product or variation and encourage prompt action",'woocommerce'),Object(r.createElement)("div",{className:"wc-block-featured-product__selection"},Object(r.createElement)(M.a,{selected:d.productId||0,showVariations:!0,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t[0]?t[0].id:0;v({productId:e,mediaId:0,mediaSrc:""}),y()}}),Object(r.createElement)(C.Button,{isPrimary:!0,onClick:function(){v({editMode:!1}),p(Object(c.__)("Showing Featured Product block preview.",'woocommerce'))}},Object(c.__)("Done",'woocommerce'))))):Object(r.createElement)(r.Fragment,null,k(),(e=d.mediaSrc||L(O),n=d.focalPoint,i=void 0===n?{x:.5,y:.5}:n,l="function"==typeof C.FocalPointPicker,Object(r.createElement)(o.InspectorControls,{key:"inspector"},Object(r.createElement)(C.PanelBody,{title:Object(c.__)("Content",'woocommerce')},Object(r.createElement)(C.ToggleControl,{label:Object(c.__)("Show description",'woocommerce'),checked:d.showDesc,onChange:function(){return v({showDesc:!d.showDesc})}}),Object(r.createElement)(C.ToggleControl,{label:Object(c.__)("Show price",'woocommerce'),checked:d.showPrice,onChange:function(){return v({showPrice:!d.showPrice})}})),Object(r.createElement)(o.PanelColorSettings,{title:Object(c.__)("Overlay",'woocommerce'),colorSettings:[{value:m.color,onChange:j,label:Object(c.__)("Overlay Color",'woocommerce')}]},!!e&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(C.RangeControl,{label:Object(c.__)("Background Opacity",'woocommerce'),value:d.dimRatio,onChange:function(t){return v({dimRatio:t})},min:0,max:100,step:10}),l&&Object(r.createElement)(C.FocalPointPicker,{label:Object(c.__)("Focal Point Picker"),url:e,value:i,onChange:function(t){return v({focalPoint:t})}}))))),O?function(){var t,e,n=d.className,c=d.contentAlign,o=d.dimRatio,i=d.focalPoint,u=d.height,s=d.showDesc,l=d.showPrice,p=D()("wc-block-featured-product",{"is-selected":h&&"preview"!==d.productId,"is-loading":!O&&g,"is-not-found":!O&&!g,"has-background-dim":0!==o},0===(t=o)||50===t?null:"has-background-dim-".concat(10*Math.round(t/10)),"center"!==c&&"has-".concat(c,"-content"),n),f=(e=d.mediaSrc||O,Object(A.isObject)(e)&&(e=L(e)),e?{backgroundImage:"url(".concat(e,")")}:{});if(m.color&&(f.backgroundColor=m.color),i){var b=100*i.x,j=100*i.y;f.backgroundPosition="".concat(b,"% ").concat(j,"%")}return Object(r.createElement)(C.ResizableBox,{className:p,size:{height:u},minHeight:a.C,enable:{bottom:!0},onResizeStop:function(t,e,n){v({height:parseInt(n.style.height,10)})},style:f},Object(r.createElement)("div",{className:"wc-block-featured-product__wrapper"},Object(r.createElement)("h2",{className:"wc-block-featured-product__title",dangerouslySetInnerHTML:{__html:O.name}}),!Object(A.isEmpty)(O.variation)&&Object(r.createElement)("h3",{className:"wc-block-featured-product__variation",dangerouslySetInnerHTML:{__html:O.variation}}),s&&Object(r.createElement)("div",{className:"wc-block-featured-product__description",dangerouslySetInnerHTML:{__html:O.short_description}}),l&&Object(r.createElement)("div",{className:"wc-block-featured-product__price",dangerouslySetInnerHTML:{__html:O.price_html}}),Object(r.createElement)("div",{className:"wc-block-featured-product__link"},_())))}():Object(r.createElement)(C.Placeholder,{className:"wc-block-featured-product",icon:Object(r.createElement)(u.a,{srcElement:s.a}),label:Object(c.__)("Featured Product",'woocommerce')},g?Object(r.createElement)(C.Spinner,null):Object(c.__)("No product is selected.",'woocommerce')))}));Object(i.registerBlockType)("woocommerce/featured-product",{title:Object(c.__)("Featured Product",'woocommerce'),icon:{src:Object(r.createElement)(u.a,{srcElement:s.a}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(c.__)("WooCommerce",'woocommerce')],description:Object(c.__)("Visually highlight a product or variation and encourage prompt action.",'woocommerce'),supports:{align:["wide","full"],html:!1},example:d,attributes:{contentAlign:{type:"string",default:"center"},dimRatio:{type:"number",default:50},editMode:{type:"boolean",default:!0},focalPoint:{type:"object"},height:{type:"number",default:a.n},mediaId:{type:"number",default:0},mediaSrc:{type:"string",default:""},overlayColor:{type:"string"},customOverlayColor:{type:"string"},linkText:{type:"string",default:Object(c.__)("Shop now",'woocommerce')},productId:{type:"number"},showDesc:{type:"boolean",default:!0},showPrice:{type:"boolean",default:!0},previewProduct:{type:"object",default:null}},edit:function(t){return Object(r.createElement)(V,t)},save:function(){return Object(r.createElement)(o.InnerBlocks.Content,null)}})},94:function(t,e,n){"use strict";var r=n(0),c=n(1),o=(n(2),n(64)),i=n(143),a=n(8),u=n.n(a),s=n(4),l=n(49);n(144);e.a=function(t){var e=t.className,n=t.error,a=t.isLoading,d=t.onRetry;return Object(r.createElement)(s.Placeholder,{icon:Object(r.createElement)(o.a,{srcElement:i.a}),label:Object(c.__)("Sorry, an error occurred",'woocommerce'),className:u()("wc-block-api-error",e)},Object(r.createElement)(l.a,{error:n}),d&&Object(r.createElement)(r.Fragment,null,a?Object(r.createElement)(s.Spinner,null):Object(r.createElement)(s.Button,{isDefault:!0,onClick:d},Object(c.__)("Retry",'woocommerce'))))}},95:function(t,e){!function(){t.exports=this.wp.date}()}});
[+]
..
[-] featured-product.asset.php
[edit]
[-] reviews-frontend.js
[edit]
[-] wc-payment-method-cheque.asset.php
[edit]
[-] cart-frontend.asset.php
[edit]
[-] wc-payment-method-cod.js
[edit]
[-] wc-shared-hocs.js
[edit]
[-] vendors-style.css
[edit]
[-] product-best-sellers.js
[edit]
[-] product-best-sellers.asset.php
[edit]
[-] single-product.js
[edit]
[-] single-product-frontend.asset.php
[edit]
[-] attribute-filter-frontend.js
[edit]
[-] active-filters-frontend.asset.php
[edit]
[-] reviews-by-product.asset.php
[edit]
[-] wc-payment-method-cheque.js
[edit]
[-] wc-settings.asset.php
[edit]
[-] wc-blocks-middleware.js
[edit]
[-] active-filters.js
[edit]
[+]
atomic-block-components
[-] featured-category.js
[edit]
[-] reviews-by-product.js
[edit]
[-] price-filter-frontend.asset.php
[edit]
[-] product-search.asset.php
[edit]
[-] product-top-rated.js
[edit]
[-] blocks.asset.php
[edit]
[-] cart.asset.php
[edit]
[-] vendors.js
[edit]
[-] active-filters-frontend.js
[edit]
[-] all-products-frontend.asset.php
[edit]
[-] attribute-filter-frontend.asset.php
[edit]
[-] wc-payment-method-bacs.asset.php
[edit]
[-] wc-payment-method-paypal.asset.php
[edit]
[-] all-products.asset.php
[edit]
[-] editor.css
[edit]
[-] attribute-filter.asset.php
[edit]
[-] wc-payment-method-cod.asset.php
[edit]
[-] product-category.js
[edit]
[-] active-filters.asset.php
[edit]
[-] handpicked-products.js
[edit]
[-] all-reviews.js
[edit]
[-] reviews-frontend.asset.php
[edit]
[-] featured-category.asset.php
[edit]
[-] all-products.js
[edit]
[-] all-products-frontend.js
[edit]
[-] product-categories.js
[edit]
[-] wc-payment-method-paypal.js
[edit]
[-] checkout.asset.php
[edit]
[-] product-on-sale.js
[edit]
[-] product-categories.asset.php
[edit]
[-] product-search.js
[edit]
[-] price-filter.js
[edit]
[-] editor-rtl.css
[edit]
[-] wc-blocks-registry.asset.php
[edit]
[-] wc-shared-context.js
[edit]
[-] reviews-by-category.js
[edit]
[-] wc-blocks-middleware.asset.php
[edit]
[-] product-top-rated.asset.php
[edit]
[-] wc-blocks-data.js
[edit]
[-] cart-frontend.js
[edit]
[-] products-by-attribute.asset.php
[edit]
[-] price-filter.asset.php
[edit]
[-] price-filter-frontend.js
[edit]
[-] all-reviews.asset.php
[edit]
[-] style.css
[edit]
[-] style-rtl.css
[edit]
[-] product-new.asset.php
[edit]
[-] wc-blocks-registry.js
[edit]
[-] featured-product.js
[edit]
[-] wc-shared-context.asset.php
[edit]
[-] reviews-by-category.asset.php
[edit]
[-] wc-payment-method-bacs.js
[edit]
[-] wc-blocks-data.asset.php
[edit]
[+]
vendors--atomic-block-components
[-] checkout-frontend.asset.php
[edit]
[-] wc-payment-method-stripe.asset.php
[edit]
[-] cart.js
[edit]
[-] attribute-filter.js
[edit]
[-] handpicked-products.asset.php
[edit]
[-] product-on-sale.asset.php
[edit]
[-] product-tag.asset.php
[edit]
[-] checkout-frontend.js
[edit]
[-] wc-shared-hocs.asset.php
[edit]
[-] wc-settings.js
[edit]
[-] wc-payment-method-stripe.js
[edit]
[-] products-by-attribute.js
[edit]
[-] product-category.asset.php
[edit]
[-] product-new.js
[edit]
[-] single-product.asset.php
[edit]
[-] single-product-frontend.js
[edit]
[-] product-tag.js
[edit]
[-] blocks.js
[edit]
[-] checkout.js
[edit]
[-] vendors-style-rtl.css
[edit]