(()=>{"use strict";var __webpack_modules__={846:(__unused_webpack_module,exports,__webpack_require__)=>{exports.A=function(a){var b=a.size,c=void 0===b?24:b,d=a.onClick,f=(a.icon,a.className),g=function(a,b){if(null==a)return{};var c,d,e=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||(e[c]=a[c]);return e}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],0<=b.indexOf(c)||Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(a,_excluded),h=["gridicon","gridicons-calendar",f,!!function(a){return 0==a%18}(c)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return _react.default.createElement("svg",_extends({className:h,height:c,width:c,onClick:d},g,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),_react.default.createElement("g",null,_react.default.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v13a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 15H5V8h14v11z"})))};var a,_react=(a=__webpack_require__(609))&&a.__esModule?a:{default:a},_excluded=["size","onClick","icon","className"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c])Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}},609:module=>{module.exports=window.React}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}var external_React_=__webpack_require__(609);const external_wp_i18n_namespaceObject=window.wp.i18n,external_wp_hooks_namespaceObject=window.wp.hooks,external_wp_element_namespaceObject=window.wp.element;const icon=(0,external_wp_element_namespaceObject.forwardRef)((function({icon,size=24,...props},ref){return(0,external_wp_element_namespaceObject.cloneElement)(icon,{width:size,height:size,...props,ref})})),external_wp_primitives_namespaceObject=window.wp.primitives,chevron_right=(0,external_React_.createElement)(external_wp_primitives_namespaceObject.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,external_React_.createElement)(external_wp_primitives_namespaceObject.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var calendar=__webpack_require__(846);(0,external_wp_hooks_namespaceObject.addFilter)("woocommerce_admin_products_report_filters","woocommerce-bookings/admin/analytics",((filterConfig,variationsConfig)=>{let valueToPush={};return valueToPush.label=(0,external_wp_i18n_namespaceObject.__)("Bookable products","woocommerce-bookings"),valueToPush.value="bookings",filterConfig.forEach((function(obj){obj.filters&&obj.filters.push(valueToPush)})),filterConfig}),10),(0,external_wp_hooks_namespaceObject.addFilter)("experimental_woocommerce_tasklist_product_types","woocommerce-bookings",(productTypes=>[...productTypes,{key:"booking",title:(0,external_wp_i18n_namespaceObject.__)("Bookable Product","woocommerce-bookings"),content:(0,external_wp_i18n_namespaceObject.__)("An item that can be rented or reserved. Variations include cost, availability, and number of persons.","woocommerce-bookings"),before:(0,external_React_.createElement)(calendar.A,null),after:(0,external_React_.createElement)(icon,{icon:chevron_right})}]))})();
//# sourceMappingURL=admin-bookings-analytics.js.map