(()=>{"use strict";const e=window.wp.data,t={getPreviewIndex(e=r,t){var d,s;return null!==(s=null===(d=e.previewIndexes)||void 0===d?void 0:d.get(t))&&void 0!==s?s:0}},r={previewIndexes:new Map},d={actions:{setPreviewIndex:(e,t)=>({type:"SET_PREVIEW_INDEX",payload:{resultId:e,index:t}})},reducer:(e=r,t)=>{if("SET_PREVIEW_INDEX"===t.type)return Object.assign(Object.assign({},e),{previewIndexes:new Map(e.previewIndexes).set(t.payload.resultId,t.payload.index)})},selectors:t},s=(0,e.createReduxStore)("remote-data-blocks/store",d);(0,e.register)(s)})();