"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[290],{7972:(t,e,o)=>{o.d(e,{F:()=>r,n:()=>n});const n="core/ui",r="activeContextID"},8084:(t,e,o)=>{o.d(e,{$C:()=>I,RF:()=>_,WI:()=>R,_5:()=>h,jU:()=>S,o3:()=>m,x0:()=>b});var n=o(32091),r=o.n(n),c=o(50532),s=o.n(c),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 r()(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 d=g,f=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,w=g;function v(t){return t}function m(...t){const e=w(...t.map(t=>t.initialState||{}));return{initialState:e,controls:f(...t.map(t=>t.controls||{})),actions:d(...t.map(t=>t.actions||{})),reducer:p(e,...t.map(t=>t.reducer||v)),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 r=t[n];o[r]=o[r]>=1?o[r]+1:1,o[r]>1&&e.push(r)}return e}const b={actions:S,controls:h,reducer:v};function R(t){return e=>C(t(e))}const C=s()(t=>(0,i.mapValues)(t,(t,e)=>(...o)=>{const n=t(...o);return r()(void 0!==n,`${e}(...) is not resolved`),n}));function _(t,{negate:e=!1}={}){return{safeSelector:(0,a.N)(o=>(n,...r)=>{const c=!e,s=!!e;try{return t(o,n,...r),c}catch{return s}}),dangerousSelector:(0,a.N)(e=>(o,...n)=>{t(e,o,...n)})}}function I(t,e){return r()("function"==typeof t,"a validator function is required."),r()("function"==typeof e,"an action creator function is required."),r()("Generator"!==t[Symbol.toStringTag]&&"GeneratorFunction"!==t[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...o)=>(t(...o),e(...o))}},49057:(t,e,o)=>{o.d(e,{Ay:()=>A,wA:()=>i.A,ws:()=>d.w,WM:()=>s.A});var n=o(29725),r=o(56805),c=o(78913),s=o(35470),i=o(63737),a=o(44319),u=o(31170),l=o(30043),g=o(66293),d=o(52721),f=o(8084),p=o(97241);const y=(0,n.I)({},o.g.wp?.data);y.combineStores=f.o3,y.commonActions=f.jU,y.commonControls=f._5,y.commonStore=f.x0,y.createReducer=function(t){return(0,p.Ay)(t)},y.useInViewSelect=d.w,y.controls=r.n,y.createRegistryControl=c.b,y.createRegistrySelector=c.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},52696:(t,e,o)=>{o.d(e,{WM:()=>n.WM,wA:()=>n.wA,ws:()=>n.ws});var n=o(49057);void 0===o.g.googlesitekit&&(o.g.googlesitekit={}),o.g.googlesitekit.data=n.Ay},52721:(t,e,o)=>{o.d(e,{w:()=>i});var n=o(35470),r=o(63696),c=o(85097);function s(){}function i(t,e){const o=(0,c.W)({sticky:!0}),i=(0,r.useRef)(),a=(0,r.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)},85097:(t,e,o)=>{o.d(e,{W:()=>a});var n=o(79257),r=o(35470),c=o(63696),s=o(52735),i=o(7972);function a({sticky:t=!1}={}){const e=(0,c.useContext)(s.A),[o,a]=(0,c.useState)(!1),u=(0,r.A)(t=>t(i.n).getInViewResetCount()),l=(0,r.A)(t=>t(i.n).getValue("forceInView"));return(0,c.useEffect)(()=>{e.value&&!o&&a(!0)},[o,e,a]),(0,c.useEffect)(()=>{l&&a(!0)},[l]),(0,n.A)(()=>{a(!1)},[u]),!(!t||!o)||!!e.value}}},t=>{t.O(0,[660],()=>{return e=52696,t(t.s=e);var e});t.O()}]);