PATH:
home
/
letacommog
/
ldqm1
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
build
this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["handpicked-products"]=function(t){function e(e){for(var r,i,u=e[0],s=e[1],a=e[2],d=0,b=[];d<u.length;d++)i=u[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&b.push(o[i][0]),o[i]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r]);for(l&&l(e);b.length;)b.shift()();return c.push.apply(c,a||[]),n()}function n(){for(var t,e=0;e<c.length;e++){for(var n=c[e],r=!0,u=1;u<n.length;u++){var s=n[u];0!==o[s]&&(r=!1)}r&&(c.splice(e--,1),t=i(i.s=n[0]))}return t}var r={},o={24:0},c=[];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 u=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],s=u.push.bind(u);u.push=e,u=u.slice();for(var a=0;a<u.length;a++)e(u[a]);var l=s;return c.push([578,0]),n()}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},108:function(t,e){},109:function(t,e){},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){},13:function(t,e){!function(){t.exports=this.wp.apiFetch}()},130:function(t,e,n){"use strict";var r=n(0),o=n(1),c=n(4);n(2);e.a=function(t){var e=t.value,n=t.setAttributes;return Object(r.createElement)(c.SelectControl,{label:Object(o.__)("Order products by",'woocommerce'),value:e,options:[{label:Object(o.__)("Newness - newest first",'woocommerce'),value:"date"},{label:Object(o.__)("Price - low to high",'woocommerce'),value:"price_asc"},{label:Object(o.__)("Price - high to low",'woocommerce'),value:"price_desc"},{label:Object(o.__)("Rating - highest first",'woocommerce'),value:"rating"},{label:Object(o.__)("Sales - most first",'woocommerce'),value:"popularity"},{label:Object(o.__)("Title - alphabetical",'woocommerce'),value:"title"},{label:Object(o.__)("Menu Order",'woocommerce'),value:"menu_order"}],onChange:function(t){return n({orderby:t})}})}},14:function(t,e){!function(){t.exports=this.wp.blockEditor}()},15:function(t,e){!function(){t.exports=this.regeneratorRuntime}()},17:function(t,e){!function(){t.exports=this.wp.blocks}()},175:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n(5),c=Object(r.createElement)("img",{src:o.U+"img/grid.svg",alt:"Grid Preview",width:"230",height:"250",style:{width:"100%"}})},18:function(t,e){!function(){t.exports=this.wp.url}()},25:function(t,e){!function(){t.exports=this.wp.compose}()},3:function(t,e){!function(){t.exports=this.wc.wcSettings}()},301:function(t,e,n){"use strict";var r=n(10),o=n.n(r),c=n(15),i=n.n(c),u=n(37),s=n.n(u),a=n(21),l=n.n(a),d=n(24),b=n.n(d),p=n(19),f=n.n(p),g=n(22),h=n.n(g),O=n(23),j=n.n(O),m=n(12),y=n.n(m),w=n(0),v=n(6),k=n(25),_=(n(2),n(5)),S=n(40),E=n(43);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=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j()(this,n)}}var C=Object(k.createHigherOrderComponent)((function(t){var e=function(e){h()(c,e);var n,r=P(c);function c(){var t;return l()(this,c),(t=r.apply(this,arguments)).state={list:[],loading:!0},t.setError=t.setError.bind(f()(t)),t.debouncedOnSearch=Object(v.debounce)(t.onSearch.bind(f()(t)),400),t}return b()(c,[{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=s()(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,c=n.list,i=n.loading;return Object(w.createElement)(t,o()({},this.props,{error:r,products:c,isLoading:i,onSearch:_.v?function(t){e.setState({loading:!0}),e.debouncedOnSearch(t)}:null}))}}]),c}(w.Component);return e.defaultProps={selected:[]},e}),"withSearchedProducts");e.a=C},33:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},35:function(t,e){!function(){t.exports=this.moment}()},4:function(t,e){!function(){t.exports=this.wp.components}()},40:function(t,e,n){"use strict";n.d(e,"h",(function(){return b})),n.d(e,"e",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return j})),n.d(e,"g",(function(){return m})),n.d(e,"a",(function(){return y}));var r=n(8),o=n.n(r),c=n(18),i=n(13),u=n.n(i),s=n(6),a=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){o()(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 b=function(t){var e=t.selected,n=void 0===e?[]:e,r=t.search,o=void 0===r?"":r,i=t.queryArgs,l=function(t){var e=t.selected,n=void 0===e?[]:e,r=t.search,o=void 0===r?"":r,i=t.queryArgs,u=void 0===i?[]:i,s={per_page:a.v?100:0,catalog_visibility:"any",search:o,orderby:"title",order:"asc"},l=[Object(c.addQueryArgs)("/wc/store/products",d(d({},s),u))];return a.v&&n.length&&l.push(Object(c.addQueryArgs)("/wc/store/products",{catalog_visibility:"any",include:n})),l}({selected:n,search:o,queryArgs:void 0===i?[]:i});return Promise.all(l.map((function(t){return u()({path:t})}))).then((function(t){return Object(s.uniqBy)(Object(s.flatten)(t),"id").map((function(t){return d(d({},t),{},{parent:0})}))})).catch((function(t){throw t}))},p=function(t){return u()({path:"/wc/store/products/".concat(t)})},f=function(){return u()({path:"wc/store/products/attributes"})},g=function(t){return u()({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,o=[Object(c.addQueryArgs)("wc/store/products/tags",{per_page:a.y?100:0,orderby:a.y?"count":"name",order:a.y?"desc":"asc",search:r})];return a.y&&n.length&&o.push(Object(c.addQueryArgs)("wc/store/products/tags",{include:n})),o}({selected:void 0===e?[]:e,search:t.search});return Promise.all(n.map((function(t){return u()({path:t})}))).then((function(t){return Object(s.uniqBy)(Object(s.flatten)(t),"id")}))},O=function(t){return u()({path:Object(c.addQueryArgs)("wc/store/products/categories",d({per_page:0},t))})},j=function(t){return u()({path:"wc/store/products/categories/".concat(t)})},m=function(t){return u()({path:Object(c.addQueryArgs)("wc/store/products",{per_page:0,type:"variation",parent:t})})},y=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))}},43:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(15),o=n.n(r),c=n(37),i=n.n(c),u=function(){var t=i()(o.a.mark((function t(e){var n;return o.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),o=n(1),c=(n(2),n(47));e.a=function(t){var e,n,i,u=t.error;return Object(r.createElement)("div",{className:"wc-block-error-message"},(n=(e=u).message,i=e.type,n?"general"===i?Object(r.createElement)("span",null,Object(o.__)("The following error was returned",'woocommerce'),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(c.escapeHTML)(n))):"api"===i?Object(r.createElement)("span",null,Object(o.__)("The following error was returned from the API",'woocommerce'),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(c.escapeHTML)(n))):n:Object(o.__)("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 o})),n.d(e,"K",(function(){return c})),n.d(e,"Q",(function(){return i})),n.d(e,"A",(function(){return u})),n.d(e,"C",(function(){return s})),n.d(e,"m",(function(){return a})),n.d(e,"B",(function(){return l})),n.d(e,"E",(function(){return d})),n.d(e,"o",(function(){return b})),n.d(e,"D",(function(){return p})),n.d(e,"n",(function(){return f})),n.d(e,"G",(function(){return g})),n.d(e,"v",(function(){return h})),n.d(e,"y",(function(){return O})),n.d(e,"s",(function(){return j})),n.d(e,"t",(function(){return m})),n.d(e,"u",(function(){return y})),n.d(e,"k",(function(){return w})),n.d(e,"M",(function(){return v})),n.d(e,"R",(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,"J",(function(){return P})),n.d(e,"c",(function(){return C})),n.d(e,"w",(function(){return x})),n.d(e,"x",(function(){return A})),n.d(e,"U",(function(){return M})),n.d(e,"V",(function(){return B})),n.d(e,"L",(function(){return T})),n.d(e,"a",(function(){return R})),n.d(e,"O",(function(){return H})),n.d(e,"b",(function(){return I})),n.d(e,"N",(function(){return L})),n.d(e,"F",(function(){return V})),n.d(e,"i",(function(){return z})),n.d(e,"P",(function(){return Q})),n.d(e,"h",(function(){return q})),n.d(e,"j",(function(){return G})),n.d(e,"I",(function(){return W})),n.d(e,"H",(function(){return F})),n.d(e,"T",(function(){return J})),n.d(e,"S",(function(){return Y})),n.d(e,"d",(function(){return K})),n.d(e,"e",(function(){return X})),n.d(e,"f",(function(){return Z})),n.d(e,"g",(function(){return $})),n.d(e,"z",(function(){return tt})),n.d(e,"Y",(function(){return nt})),n.d(e,"Z",(function(){return rt})),n.d(e,"W",(function(){return ot})),n.d(e,"X",(function(){return ct}));var r=n(3),o=Object(r.getSetting)("currentUserIsAdmin",!1),c=Object(r.getSetting)("reviewRatingsEnabled",!0),i=Object(r.getSetting)("showAvatars",!0),u=Object(r.getSetting)("max_columns",6),s=Object(r.getSetting)("min_columns",1),a=Object(r.getSetting)("default_columns",3),l=Object(r.getSetting)("max_rows",6),d=Object(r.getSetting)("min_rows",1),b=Object(r.getSetting)("default_rows",3),p=Object(r.getSetting)("min_height",500),f=Object(r.getSetting)("default_height",500),g=Object(r.getSetting)("placeholderImgSrc",""),h=(Object(r.getSetting)("thumbnail_size",300),Object(r.getSetting)("isLargeCatalog")),O=Object(r.getSetting)("limitTags"),j=Object(r.getSetting)("hasProducts",!0),m=Object(r.getSetting)("hasTags",!0),y=Object(r.getSetting)("homeUrl",""),w=Object(r.getSetting)("couponsEnabled",!0),v=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),C=Object(r.getSetting)("attributes",[]),x=Object(r.getSetting)("isShippingCalculatorEnabled",!0),A=Object(r.getSetting)("isShippingCostHidden",!1),D=Object(r.getSetting)("woocommerceBlocksPhase",1),M=Object(r.getSetting)("wcBlocksAssetUrl",""),B=Object(r.getSetting)("wcBlocksBuildUrl",""),T=Object(r.getSetting)("shippingCountries",{}),R=Object(r.getSetting)("allowedCountries",{}),H=Object(r.getSetting)("shippingStates",{}),I=Object(r.getSetting)("allowedStates",{}),L=Object(r.getSetting)("shippingMethodsExist",!1),V=Object(r.getSetting)("paymentGatewaySortOrder",[]),z=Object(r.getSetting)("checkoutShowLoginReminder",!0),N={id:0,title:"",permalink:""},U=Object(r.getSetting)("storePages",{shop:N,cart:N,checkout:N,privacy:N,terms:N}),Q=U.shop.permalink,q=U.checkout.id,G=U.checkout.permalink,W=U.privacy.permalink,F=U.privacy.title,J=U.terms.permalink,Y=U.terms.title,K=U.cart.id,X=U.cart.permalink,Z=Object(r.getSetting)("checkoutAllowsGuest",!1),$=Object(r.getSetting)("checkoutAllowsSignup",!1),tt=Object(r.getSetting)("loginUrl","/wp-login.php"),et=n(17),nt=function(t,e){if(D>2)return Object(et.registerBlockType)(t,e)},rt=function(t,e){if(D>1)return Object(et.registerBlockType)(t,e)},ot=function(){return D>2},ct=function(){return D>1}},54:function(t,e){!function(){t.exports=this.wp.keycodes}()},578:function(t,e,n){t.exports=n(912)},579:function(t,e){},6:function(t,e){!function(){t.exports=this.lodash}()},61:function(t,e,n){"use strict";var r=n(8),o=n.n(r),c=n(27),i=n.n(c),u=n(9);n(2);function s(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,c=i()(t,["srcElement","size"]);return Object(u.isValidElement)(e)&&Object(u.cloneElement)(e,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({width:r,height:r},c))}},69:function(t,e){!function(){t.exports=this.wp.editor}()},75:function(t,e){!function(){t.exports=this.wp.hooks}()},77:function(t,e){!function(){t.exports=this.ReactDOM}()},78:function(t,e){!function(){t.exports=this.wp.dom}()},80:function(t,e,n){"use strict";var r=n(8),o=n.n(r),c=n(0),i=n(1),u=(n(2),n(4));function s(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.a=function(t){var e=t.onChange,n=t.settings,r=n.button,o=n.price,s=n.rating,l=n.title;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.ToggleControl,{label:Object(i.__)("Product title",'woocommerce'),help:l?Object(i.__)("Product title is visible.",'woocommerce'):Object(i.__)("Product title is hidden.",'woocommerce'),checked:l,onChange:function(){return e(a(a({},n),{},{title:!l}))}}),Object(c.createElement)(u.ToggleControl,{label:Object(i.__)("Product price",'woocommerce'),help:o?Object(i.__)("Product price is visible.",'woocommerce'):Object(i.__)("Product price is hidden.",'woocommerce'),checked:o,onChange:function(){return e(a(a({},n),{},{price:!o}))}}),Object(c.createElement)(u.ToggleControl,{label:Object(i.__)("Product rating",'woocommerce'),help:s?Object(i.__)("Product rating is visible.",'woocommerce'):Object(i.__)("Product rating is hidden.",'woocommerce'),checked:s,onChange:function(){return e(a(a({},n),{},{rating:!s}))}}),Object(c.createElement)(u.ToggleControl,{label:Object(i.__)("Add to Cart button",'woocommerce'),help:r?Object(i.__)("Add to Cart button is visible.",'woocommerce'):Object(i.__)("Add to Cart button is hidden.",'woocommerce'),checked:r,onChange:function(){return e(a(a({},n),{},{button:!r}))}}))}},83:function(t,e){!function(){t.exports=this.wp.viewport}()},89:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),o=n(7),c=n.n(o),i=n(11),u=n.n(i),s=n(5);function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,c=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw c}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=function(t){return function(e){var n=e.attributes,o=n.align,i=n.contentVisibility,l=c()(o?"align".concat(o):"",{"is-hidden-title":!i.title,"is-hidden-price":!i.price,"is-hidden-rating":!i.rating,"is-hidden-button":!i.button});return Object(r.createElement)(r.RawHTML,{className:l},function(t,e){var n=t.attributes,r=n.attributes,o=n.attrOperator,c=n.categories,i=n.catOperator,l=n.orderby,d=n.products,b=n.columns||s.m,p=n.rows||s.o,f=new Map;switch(f.set("limit",p*b),f.set("columns",b),c&&c.length&&(f.set("category",c.join(",")),i&&"all"===i&&f.set("cat_operator","AND")),r&&r.length&&(f.set("terms",r.map((function(t){return t.id})).join(",")),f.set("attribute",r[0].attr_slug),o&&"all"===o&&f.set("terms_operator","AND")),l&&("price_desc"===l?(f.set("orderby","price"),f.set("order","DESC")):"price_asc"===l?(f.set("orderby","price"),f.set("order","ASC")):"date"===l?(f.set("orderby","date"),f.set("order","DESC")):f.set("orderby",l)),e){case"woocommerce/product-best-sellers":f.set("best_selling","1");break;case"woocommerce/product-top-rated":f.set("orderby","rating");break;case"woocommerce/product-on-sale":f.set("on_sale","1");break;case"woocommerce/product-new":f.set("orderby","date"),f.set("order","DESC");break;case"woocommerce/handpicked-products":if(!d.length)return"";f.set("ids",d.join(",")),f.set("limit",d.length);break;case"woocommerce/product-category":if(!c||!c.length)return"";break;case"woocommerce/products-by-attribute":if(!r||!r.length)return""}var g,h="[products",O=a(f);try{for(O.s();!(g=O.n()).done;){var j=u()(g.value,2);h+=" "+j[0]+'="'+j[1]+'"'}}catch(t){O.e(t)}finally{O.f()}return h+="]"}(e,t))}}},9:function(t,e){!function(){t.exports=this.React}()},912:function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(1),c=n(17),i=n(5),u=n(61),s=n(58),a=Object(r.createElement)(s.a,{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:"M16.66 4.52l2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"})),l=(n(579),n(21)),d=n.n(l),b=n(24),p=n.n(b),f=n(22),g=n.n(f),h=n(23),O=n.n(h),j=n(12),m=n.n(j),y=n(14),w=n(69),v=n(4),k=(n(2),n(80)),_=n(50),S=n(301),E=n(49),P=function(t){var e=t.error,n=t.onChange,c=t.onSearch,i=t.selected,u=t.products,s=t.isLoading,a={clear:Object(o.__)("Clear all products",'woocommerce'),list:Object(o.__)("Products",'woocommerce'),noItems:Object(o.__)("Your store doesn't have any products.",'woocommerce'),search:Object(o.__)("Search for products to display",'woocommerce'),selected:function(t){return Object(o.sprintf)(Object(o._n)("%d product selected","%d products selected",t,'woocommerce'),t)},updated:Object(o.__)("Product search results updated.",'woocommerce')};return e?Object(r.createElement)(E.a,{error:e}):Object(r.createElement)(_.a,{className:"woocommerce-products",list:u,isLoading:s,selected:u.filter((function(t){var e=t.id;return i.includes(e)})),onSearch:c,onChange:n,messages:a})};P.defaultProps={selected:[],products:[],isLoading:!0};var C=Object(S.a)(P),x=n(130),A=n(175);function D(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=m()(t);if(e){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var M=function(t){g()(n,t);var e=D(n);function n(){return d()(this,n),e.apply(this,arguments)}return p()(n,[{key:"getInspectorControls",value:function(){var t=this.props,e=t.attributes,n=t.setAttributes,c=e.columns,u=e.contentVisibility,s=e.orderby,a=e.alignButtons;return Object(r.createElement)(y.InspectorControls,{key:"inspector"},Object(r.createElement)(v.PanelBody,{title:Object(o.__)("Layout",'woocommerce'),initialOpen:!0},Object(r.createElement)(v.RangeControl,{label:Object(o.__)("Columns",'woocommerce'),value:c,onChange:function(t){return n({columns:t})},min:i.C,max:i.A}),Object(r.createElement)(v.ToggleControl,{label:Object(o.__)("Align Buttons",'woocommerce'),help:a?Object(o.__)("Buttons are aligned vertically.",'woocommerce'):Object(o.__)("Buttons follow content.",'woocommerce'),checked:a,onChange:function(){return n({alignButtons:!a})}})),Object(r.createElement)(v.PanelBody,{title:Object(o.__)("Content",'woocommerce'),initialOpen:!0},Object(r.createElement)(k.a,{settings:u,onChange:function(t){return n({contentVisibility:t})}})),Object(r.createElement)(v.PanelBody,{title:Object(o.__)("Order By",'woocommerce'),initialOpen:!1},Object(r.createElement)(x.a,{setAttributes:n,value:s})),Object(r.createElement)(v.PanelBody,{title:Object(o.__)("Products",'woocommerce'),initialOpen:!1},Object(r.createElement)(C,{selected:e.products,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.map((function(t){return t.id}));n({products:e})}})))}},{key:"renderEditMode",value:function(){var t=this.props,e=t.attributes,n=t.debouncedSpeak,c=t.setAttributes;return Object(r.createElement)(v.Placeholder,{icon:Object(r.createElement)(u.a,{srcElement:a}),label:Object(o.__)("Hand-picked Products",'woocommerce'),className:"wc-block-products-grid wc-block-handpicked-products"},Object(o.__)("Display a selection of hand-picked products in a grid.",'woocommerce'),Object(r.createElement)("div",{className:"wc-block-handpicked-products__selection"},Object(r.createElement)(C,{selected:e.products,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=t.map((function(t){return t.id}));c({products:e})}}),Object(r.createElement)(v.Button,{isPrimary:!0,onClick:function(){c({editMode:!1}),n(Object(o.__)("Showing Hand-picked Products block preview.",'woocommerce'))}},Object(o.__)("Done",'woocommerce'))))}},{key:"render",value:function(){var t=this.props,e=t.attributes,n=t.name,c=t.setAttributes,i=e.editMode;return e.isPreview?A.a:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(y.BlockControls,null,Object(r.createElement)(v.Toolbar,{controls:[{icon:"edit",title:Object(o.__)("Edit"),onClick:function(){return c({editMode:!i})},isActive:i}]})),this.getInspectorControls(),i?this.renderEditMode():Object(r.createElement)(v.Disabled,null,Object(r.createElement)(w.ServerSideRender,{block:n,attributes:e})))}}]),n}(r.Component),B=Object(v.withSpokenMessages)(M),T=n(89);Object(c.registerBlockType)("woocommerce/handpicked-products",{title:Object(o.__)("Hand-picked Products",'woocommerce'),icon:{src:Object(r.createElement)(u.a,{srcElement:a}),foreground:"#96588a"},category:"woocommerce",keywords:[Object(o.__)("Handpicked Products",'woocommerce'),Object(o.__)("WooCommerce",'woocommerce')],description:Object(o.__)("Display a selection of hand-picked products in a grid.",'woocommerce'),supports:{align:["wide","full"],html:!1},example:{attributes:{isPreview:!0}},attributes:{align:{type:"string"},columns:{type:"number",default:i.m},editMode:{type:"boolean",default:!0},contentVisibility:{type:"object",default:{title:!0,price:!0,rating:!0,button:!0}},orderby:{type:"string",default:"date"},products:{type:"array",default:[]},alignButtons:{type:"boolean",default:!1},isPreview:{type:"boolean",default:!1}},deprecated:[{attributes:{align:{type:"string"},columns:{type:"number",default:i.m},editMode:{type:"boolean",default:!0},contentVisibility:{type:"object",default:{title:!0,price:!0,rating:!0,button:!0}},orderby:{type:"string",default:"date"},products:{type:"array",default:[]}},save:Object(T.a)("woocommerce/handpicked-products")}],edit:function(t){return Object(r.createElement)(B,t)},save:function(){return null}})},94:function(t,e){!function(){t.exports=this.wp.date}()}});
[+]
..
[-] featured-product.asset.php
[edit]
[-] reviews-by-product.asset.php
[edit]
[-] checkout.js
[edit]
[-] wc-payment-method-cheque.asset.php
[edit]
[-] single-product.asset.php
[edit]
[-] wc-shared-hocs.asset.php
[edit]
[-] products-by-attribute.js
[edit]
[-] wc-payment-method-stripe.js
[edit]
[-] reviews-by-category.js
[edit]
[-] vendors-style-rtl.css
[edit]
[-] checkout-frontend.asset.php
[edit]
[-] product-best-sellers.asset.php
[edit]
[-] price-filter.asset.php
[edit]
[-] reviews-frontend.js
[edit]
[-] wc-shared-context.js
[edit]
[-] wc-blocks-data.asset.php
[edit]
[-] cart.js
[edit]
[-] product-on-sale.js
[edit]
[-] all-products.js
[edit]
[-] attribute-filter-frontend.js
[edit]
[-] checkout.asset.php
[edit]
[-] style.css
[edit]
[-] product-tag.asset.php
[edit]
[-] wc-shared-context.asset.php
[edit]
[-] wc-blocks-middleware.js
[edit]
[-] cart.asset.php
[edit]
[-] products-by-attribute.asset.php
[edit]
[+]
atomic-block-components
[-] editor.css
[edit]
[+]
vendors~atomic-block-components
[-] price-filter-frontend.js
[edit]
[-] checkout-frontend.js
[edit]
[-] attribute-filter-frontend.asset.php
[edit]
[-] cart-frontend.js
[edit]
[-] wc-blocks-data.js
[edit]
[-] product-categories.js
[edit]
[-] wc-payment-method-paypal.asset.php
[edit]
[-] product-category.js
[edit]
[-] active-filters-frontend.js
[edit]
[-] product-new.asset.php
[edit]
[-] product-top-rated.asset.php
[edit]
[-] all-reviews.js
[edit]
[-] product-best-sellers.js
[edit]
[-] wc-blocks-registry.js
[edit]
[-] attribute-filter.asset.php
[edit]
[-] all-reviews.asset.php
[edit]
[-] reviews-frontend.asset.php
[edit]
[-] vendors.js
[edit]
[-] blocks.js
[edit]
[-] cart-frontend.asset.php
[edit]
[-] product-search.js
[edit]
[-] wc-payment-method-paypal.js
[edit]
[-] all-products-frontend.js
[edit]
[-] reviews-by-category.asset.php
[edit]
[-] featured-category.asset.php
[edit]
[-] featured-product.js
[edit]
[-] wc-payment-method-bacs.asset.php
[edit]
[-] active-filters.asset.php
[edit]
[-] featured-category.js
[edit]
[-] active-filters-frontend.asset.php
[edit]
[-] editor-rtl.css
[edit]
[-] wc-payment-method-cod.asset.php
[edit]
[-] single-product-frontend.asset.php
[edit]
[-] product-categories.asset.php
[edit]
[-] blocks.asset.php
[edit]
[-] all-products-frontend.asset.php
[edit]
[-] handpicked-products.asset.php
[edit]
[-] wc-blocks-middleware.asset.php
[edit]
[-] price-filter-frontend.asset.php
[edit]
[-] wc-blocks-registry.asset.php
[edit]
[-] product-search.asset.php
[edit]
[-] style-rtl.css
[edit]
[-] price-filter.js
[edit]
[-] active-filters.js
[edit]
[-] wc-payment-method-cheque.js
[edit]
[-] product-on-sale.asset.php
[edit]
[-] wc-payment-method-stripe.asset.php
[edit]
[-] all-products.asset.php
[edit]
[-] reviews-by-product.js
[edit]
[-] wc-settings.asset.php
[edit]
[-] product-tag.js
[edit]
[-] attribute-filter.js
[edit]
[-] product-category.asset.php
[edit]
[-] product-top-rated.js
[edit]
[-] single-product.js
[edit]
[-] handpicked-products.js
[edit]
[-] wc-payment-method-bacs.js
[edit]
[-] single-product-frontend.js
[edit]
[-] wc-payment-method-cod.js
[edit]
[-] wc-settings.js
[edit]
[-] vendors-style.css
[edit]
[-] product-new.js
[edit]
[-] wc-shared-hocs.js
[edit]