(()=>{var e={d:(n,t)=>{for(var i in t)e.o(t,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};(()=>{"use strict";e.r(n),e.d(n,{premiumHooksForPages:()=>t});var t={};e.r(t),e.d(t,{getPremiumCalendarItemView:()=>a,getPremiumItemsMinDroppableDay:()=>g,isItemTypeDraggable:()=>s,isPremiumItemInSegment:()=>c,isPremiumItemVisible:()=>u,onGetPremiumItemsMinDroppableDay:()=>f,onIsPremiumItemInSegment:()=>d,onIsPremiumItemTypeDraggable:()=>l,onIsPremiumItemVisible:()=>p,setPremiumCalendarItemView:()=>m});const i=window.wp.hooks,r=window.NelioContent.utils,o=()=>null;function a(e){return(0,i.applyFilters)("nelio-content_premium-hooks-for-pages_getPremiumCalendarItemView",o,e)}function m(e,n){(0,i.addFilter)("nelio-content_premium-hooks-for-pages_getPremiumCalendarItemView",`getPremium${(0,r.pascalCase)(e)}View`,(t,i)=>e===i?n:t)}function s(e){switch(e){case"post":case"task":case"social":return!0;case"external-event":case"internal-event":return!1;default:return function(e){return!!(0,i.applyFilters)("nelio-content_premium-hooks-for-pages_isPremiumItemTypeDraggable",!1,e)}(e)}}function l(e,n){(0,i.addFilter)("nelio-content_premium-hooks-for-pages_isPremiumItemTypeDraggable",`isPremium${(0,r.pascalCase)(e)}Draggable`,(t,i)=>e===i?n(t):t)}function u(e,n){return!!(0,i.applyFilters)("nelio-content_premium-hooks-for-pages_isPremiumItemVisibleInCalendar",!1,e,n)}function p(e,n){(0,i.addFilter)("nelio-content_premium-hooks-for-pages_isPremiumItemVisibleInCalendar",`isPremium${(0,r.pascalCase)(e)}VisibleInCalendar`,(t,i,r)=>e===i?n(t,r):t)}function c(e,n,t){return!!(0,i.applyFilters)("nelio-content_premium-hooks-for-pages_isPremiumItemInCalendarSegment",!1,e,n,t)}function d(e,n){(0,i.addFilter)("nelio-content_premium-hooks-for-pages_isPremiumItemInCalendarSegment",`isPremium${(0,r.pascalCase)(e)}InCalendarSegment`,(t,i,r,o)=>e===i?n(t,r,o):t)}function g(e,n){return(0,i.applyFilters)("nelio-content_premium-hooks-for-pages_getPremiumItemsMinDroppableDay",void 0,e,n)}function f(e,n){(0,i.addFilter)("nelio-content_premium-hooks-for-pages_getPremiumItemsMinDroppableDay",`getPremium${(0,r.pascalCase)(e)}sMinDroppableDay`,(t,i,r)=>e===i&&r?n(t,r):t)}})();var t=NelioContent="undefined"==typeof NelioContent?{}:NelioContent;for(var i in n)t[i]=n[i];n.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();