"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290],{7972:(t,e,o)=>{o.d(e,{F:()=>c,n:()=>n});const n="core/ui",c="activeContextID"},8084:(t,e,o)=>{o.d(e,{$C:()=>I,RF:()=>_,WI:()=>R,_5:()=>h,jU:()=>S,o3:()=>w,x0:()=>b});var n=o(32091),c=o.n(n),r=o(50532),s=o.n(r),i=o(17243),a=o(78913);const u="GET_REGISTRY",l="AWAIT";function g(...t){const e=t.reduce((t,e)=>({...t,...e}),{}),o=k(t.reduce((t,e)=>[...t,...Object.keys(e)],[]));return c()(0===o.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${o.join(", ")}. Check your data stores for duplicates.`),e}const f=g,d=g;function p(...t){const e=[...t];let o;return"function"!=typeof e[0]&&(o=e.shift()),(t=o,n={})=>e.reduce((t,e)=>e(t,n),t)}const y=g,A=g,v=g;function m(t){return t}function w(...t){const e=v(...t.map(t=>t.initialState||{}));return{initialState:e,controls:d(...t.map(t=>t.controls||{})),actions:f(...t.map(t=>t.actions||{})),reducer:p(e,...t.map(t=>t.reducer||m)),resolvers:y(...t.map(t=>t.resolvers||{})),selectors:A(...t.map(t=>t.selectors||{}))}}const S={getRegistry:()=>({payload:{},type:u}),*await(t){return{payload:{value:t},type:l}}},h={[u]:(0,a.b)(t=>()=>t),[l]:({payload:t})=>t.value};function k(t){const e=[],o={};for(let n=0;n<t.length;n++){const c=t[n];o[c]=o[c]>=1?o[c]+1:1,o[c]>1&&e.push(c)}return e}const b={actions:S,controls:h,reducer:m};function R(t){return e=>C(t(e))}const C=s()(t=>(0,i.mapValues)(t,(t,e)=>(...o)=>{const n=t(...o);return c()(void 0!==n,`${e}(...) is not resolved`),n}));function _(t,{negate:e=!1}={}){return{safeSelector:(0,a.N)(o=>(n,...c)=>{const r=!e,s=!!e;try{return t(o,n,...c),r}catch{return s}}),dangerousSelector:(0,a.N)(e=>(o,...n)=>{t(e,o,...n)})}}function I(t,e){return c()("function"==typeof t,"a validator function is required."),c()("function"==typeof e,"an action creator function is required."),c()("Generator"!==t[Symbol.toStringTag]&&"GeneratorFunction"!==t[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...o)=>(t(...o),e(...o))}},52721:(t,e,o)=>{o.d(e,{w:()=>i});var n=o(35470),c=o(63696),r=o(85097);function s(){}function i(t,e){const o=(0,r.W)({sticky:!0}),i=(0,c.useRef)(),a=(0,c.useCallback)(t,e),u=(0,n.A)(o?a:s);return o&&(i.current=u),i.current}},52735:(t,e,o)=>{o.d(e,{A:()=>n});const n=(0,o(63696).createContext)(!1)},61609:(t,e,o)=>{o.d(e,{wA:()=>i.A,ws:()=>f.w,WM:()=>s.A});var n=o(29725),c=o(56805),r=o(78913),s=o(35470),i=o(63737),a=o(44319),u=o(31170),l=o(30043),g=o(66293),f=o(52721),d=o(8084),p=o(97241);const y=(0,n.I)({},o.g.wp?.data);y.combineStores=d.o3,y.commonActions=d.jU,y.commonControls=d._5,y.commonStore=d.x0,y.createReducer=function(t){return(0,p.Ay)(t)},y.useInViewSelect=f.w,y.controls=c.n,y.createRegistryControl=r.b,y.createRegistrySelector=r.N,y.useSelect=s.A,y.useDispatch=i.A,y.useRegistry=a.A,y.withSelect=u.A,y.withDispatch=l.A,y.RegistryProvider=g.Ay;const A=y;void 0===o.g.googlesitekit&&(o.g.googlesitekit={}),o.g.googlesitekit.data=A},85097:(t,e,o)=>{o.d(e,{W:()=>a});var n=o(79257),c=o(35470),r=o(63696),s=o(52735),i=o(7972);function a({sticky:t=!1}={}){const e=(0,r.useContext)(s.A),[o,a]=(0,r.useState)(!1),u=(0,c.A)(t=>t(i.n).getInViewResetCount()),l=(0,c.A)(t=>t(i.n).getValue("forceInView"));return(0,r.useEffect)(()=>{e.value&&!o&&a(!0)},[o,e,a]),(0,r.useEffect)(()=>{l&&a(!0)},[l]),(0,n.A)(()=>{a(!1)},[u]),!(!t||!o)||!!e.value}}},t=>{t.O(0,[660],()=>{return e=61609,t(t.s=e);var e});t.O()}]);