!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{applyFilters:function(){return f},useDeepEffect:function(){return u},useDeepMemo:function(){return o},useSettingsSearch:function(){return s},useSyncedStateRef:function(){return i}});var r=window.vendor.React,n=window.lodash;const o=e=>{const t=(0,r.useRef)();return(0,n.isEqual)(e,t.current)||(t.current=e),t.current},u=(e,t)=>{(0,r.useEffect)(e,t.map(o))},i=e=>{const t=(0,r.useRef)(e),[n,o]=(0,r.useState)(e);return(0,r.useEffect)((()=>{t.current=n}),[n]),[t,n,o]};var c=window.divi.contextLibrary;const s=()=>{const e=(0,r.useContext)(c.settingsSearchContext);return{searchValue:e.searchValue,setSearchValue:e.setSearchValue,activeFilter:e.activeFilter,setActiveFilter:e.setActiveFilter}};var a=window.vendor.wp.hooks;function f(e,t,...r){return(0,a.applyFilters)(e,t,...r)}(window.divi=window.divi||{}).hooks=t}();