UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

2 lines (1 loc) 1.25 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("immutable"),u=require("./getStateName.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=l(c),p=(e,t,r)=>{const n=Object.keys(t);if(!n.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";const i=u.getStateName(r);if(o.isImmutable?!o.isImmutable(e):!o.isCollection(e))return"The "+i+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+n.join('", "')+'".';if(o.isMap(e)){const a=e.filter((d,s)=>!Object.prototype.hasOwnProperty.call(t,s));if(a.size>0)return"Unexpected "+(a.size===1?"property":"properties")+' "'+[a.keys()].join('", "')+'" found in '+i+'. Expected to find one of the known reducer property names instead: "'+n.join('", "')+'". Unexpected properties will be ignored.'}return null};exports.getUnexpectedInvocationParameterMessage=p;