Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

buhoi-ui

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buhoi-ui - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

lib/calendar/index.jsx

2

dist/bundle.js

@@ -1,2 +0,2 @@

module.exports=function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,n){"use strict";var r=n(45);e.exports=function(){return r.NO_OP}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},u=0;u<this.length;u++){var i=this[u][0];"number"==typeof i&&(r[i]=!0)}for(u=0;u<t.length;u++){var o=t[u];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),u=n(37),i=n(36),o=n(35),a=n(8);n(10);n.d(t,"createStore",function(){return r.a}),n.d(t,"combineReducers",function(){return u.a}),n.d(t,"bindActionCreators",function(){return i.a}),n.d(t,"applyMiddleware",function(){return o.a}),n.d(t,"compose",function(){return a.a})},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],u=d[r.id];if(u){u.refs++;for(var i=0;i<u.parts.length;i++)u.parts[i](r.parts[i]);for(;i<r.parts.length;i++)u.parts.push(c(r.parts[i],t))}else{for(var o=[],i=0;i<r.parts.length;i++)o.push(c(r.parts[i],t));d[r.id]={id:r.id,refs:1,parts:o}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var u=e[r],i=u[0],o=u[1],a=u[2],c=u[3],s={css:o,media:a,sourceMap:c};n[i]?n[i].parts.push(s):t.push(n[i]={id:i,parts:[s]})}return t}function u(e,t){var n=v(),r=S[S.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),S.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=S.indexOf(e);t>=0&&S.splice(t,1)}function o(e){var t=document.createElement("style");return t.type="text/css",u(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",u(e,t),t}function c(e,t){var n,r,u;if(t.singleton){var c=I++;n=T||(T=o(t)),r=s.bind(null,n,c,!1),u=s.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),r=f.bind(null,n),u=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=o(t),r=l.bind(null,n),u=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else u()}}function s(e,t,n,r){var u=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,u);else{var i=document.createTextNode(u),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function l(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var u=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(u),i&&URL.revokeObjectURL(i)}var d={},p=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},E=p(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),T=null,I=0,S=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=E()),void 0===t.insertAt&&(t.insertAt="bottom");var u=r(e);return n(u,t),function(e){for(var i=[],o=0;o<u.length;o++){var a=u[o],c=d[a.id];c.refs--,i.push(c)}if(e){n(r(e),t)}for(var o=0;o<i.length;o++){var c=i[o];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete d[c.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("buhoi-client")},function(e,t,n){"use strict";function r(e){return{type:"LIST_SET_QUERY",query:e}}function u(e,t,n){return{type:"LIST_SET_FILTER",field:e,value:t,invalidateList:n}}function i(e){return{type:"LIST_SET_GROUPING",field:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function o(e,t){return{type:"LIST_SET_SORTING",field:e,direction:t,invalidateList:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]}}function a(e){return{type:"LIST_SET_PAGE",index:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function c(e){return{type:"LIST_SET_PAGE_SIZE",size:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function s(e,t){return d("LIST_LOADING",e,t)}function l(){return{type:"LIST_INVALIDATE"}}var f=n(4),d=f.actions.read;e.exports={resetQuery:r,setFilter:u,setGrouping:i,setSorting:o,setPage:a,setPageSize:c,loadItems:s,invalidate:l}},function(e,t,n){"use strict";var r=n(33),u=r.a.Symbol;t.a=u},function(e,t,n){"use strict";function r(e){if(!n.i(o.a)(e)||n.i(u.a)(e)!=a)return!1;var t=n.i(i.a)(e);if(null===t)return!0;var r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==d}var u=n(27),i=n(29),o=n(34),a="[object Object]",c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=l.call(Object);t.a=r},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],u=t.slice(0,-1);return function(){return u.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}t.a=r},function(e,t,n){"use strict";function r(e,t,i){function c(){S===I&&(S=I.slice())}function s(){return T}function l(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return c(),S.push(e),function(){if(t){t=!1,c();var n=S.indexOf(e);S.splice(n,1)}}}function f(e){if(!n.i(u.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(_)throw new Error("Reducers may not dispatch actions.");try{_=!0,T=v(T,e)}finally{_=!1}for(var t=I=S,r=0;r<t.length;r++)t[r]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");v=e,f({type:a.INIT})}function p(){var e,t=l;return e={subscribe:function(e){function n(){e.next&&e.next(s())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[o.a]=function(){return this},e}var E;if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(r)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var v=e,T=t,I=[],S=I,_=!1;return f({type:a.INIT}),E={dispatch:f,subscribe:l,getState:s,replaceReducer:d},E[o.a]=p,E}var u=n(7),i=n(41),o=n.n(i);n.d(t,"b",function(){return a}),t.a=r;var a={INIT:"@@redux/INIT"}},function(e,t,n){"use strict"},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){function t(e){e.preventDefault(),y(f(v,S))}function n(e){e.preventDefault(),confirm("Подтвердите удаление.")&&y(d(v,I))}function r(e){e.preventDefault(),confirm("Подтвердите восстановление")&&y(p(v,I))}function u(e){e.preventDefault(),y(T())}var v=e.resource,I=e.id,S=e.fields,_=e.removable,h=e.restorable,y=e.dispatch,g=e.onFinish,m=e.Form,O=e.Loading,N=void 0===O?b:O,A=e.Error,G=void 0===A?D:A;return i(e)?(y(l(v,I)),U(16,R)):o(e)?U(16,N,null,null,L({},e)):a(e)?U(16,G,null,null,L({},e)):c(e)?(y(E()),U(16,R)):s(e)?(g(),U(16,R)):U(2,"form",null,[m(e),U(512,"input",null,null,{type:"submit",value:"сохранить"}),null!=I&&_?U(2,"button",null,"удалить",{onClick:n}):null,null!=I&&h?U(2,"button",null,"восстановить",{onClick:r}):null,U(2,"button",null,"отмена",{onClick:u})],{onSubmit:t})}function i(e){var t=e.id,n=e.fields,r=e.request,u=e.error;return null!=t&&null==n&&null==r&&null==u}function o(e){return e.request}function a(e){return e.error}function c(e){var t=e.id,n=e.fields;return null==t&&null==n}function s(e){return e.isEditingFinished}function l(e,t){return G("EDIT_LOADING",e+"/"+t)}function f(e,t){return C("EDIT_SAVING",e,t)}function d(e,t){return x("EDIT_REMOVING",e,t)}function p(e,t){return C("EDIT_RESTORING",e+".restore",{id:t})}function E(){return{type:"EDIT_INITIALIZE_FIELDS"}}function v(e,t){return{type:"EDIT_SET_FIELD",name:e,value:t}}function T(){return{type:"EDIT_CANCEL"}}function I(){return{type:"EDIT_RESET"}}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":return t.request;case"EDIT_LOADING_SUCCEEDED":case"EDIT_LOADING_FAILED":case"EDIT_RESET":return null;default:return e}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":return null;case"EDIT_LOADING_SUCCEEDED":return t.result;case"EDIT_LOADING_FAILED":return null;case"EDIT_INITIALIZE_FIELDS":return{};case"EDIT_SET_FIELD":return L({},e,r({},t.name,t.value));case"EDIT_RESET":return null;default:return e}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"EDIT_SAVING_STARTED":case"EDIT_SAVING_SUCCEEDED":return{};case"EDIT_SAVING_FAILED":return 400==t.error.statusCode?t.error.body:{};case"EDIT_RESET":return{};default:return e}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":case"EDIT_SAVING_STARTED":case"EDIT_REMOVING_STARTED":case"EDIT_RESTORING_STARTED":case"EDIT_LOADING_SUCCEEDED":case"EDIT_SAVING_SUCCEEDED":case"EDIT_REMOVING_SUCCEEDED":case"EDIT_RESTORING_SUCCEEDED":case"EDIT_RESET":return null;case"EDIT_LOADING_FAILED":case"EDIT_SAVING_FAILED":case"EDIT_REMOVING_FAILED":case"EDIT_RESTORING_FAILED":return 400!=t.error.statusCode?t.error:null;default:return e}}function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"EDIT_INITIALIZE_FIELDS":case"EDIT_LOADING_STARTED":case"EDIT_SAVING_STARTED":return!1;case"EDIT_SAVING_SUCCEEDED":case"EDIT_CANCEL":return!0;case"EDIT_RESET":case"EDIT_REMOVING_STARTED":return!1;case"EDIT_REMOVING_SUCCEEDED":return!0;case"EDIT_RESTORING_STARTED":return!1;case"EDIT_RESTORING_SUCCEEDED":return!0;default:return e}}function b(){return U(2,"p",null,"Loading...")}function D(e){var t=e.error;return U(2,"p",null,["Error: ",t.message])}var L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=n(2),O=m.combineReducers,N=n(4),A=N.actions,G=A.read,C=A.write,x=A.remove,R=n(0);e.exports=u,u.actions={setField:v,reset:I},u.reducer=O({request:S,fields:_,error:y,validationErrors:h,isEditingFinished:g});var U=Inferno.createVNode},function(e,t,n){"use strict";e.exports=n(19),e.exports.actions=n(5),e.exports.reducer=n(20)},function(e,t,n){"use strict";e.exports=n(21)},function(e,t,n){"use strict";function r(e){function t(e){8!=e.keyCode||r||E(o()),38==e.keyCode&&d>0&&(e.preventDefault(),E(c(d-1))),40==e.keyCode&&d<f.length-1&&(e.preventDefault(),E(c(d+1))),13==e.keyCode&&null!=d&&E(u(f[d]))}var n=e.resource,r=e.query,f=e.suggestedItems,d=e.selectedSuggestionIndex,p=e.selectedItems,E=e.dispatch;return l(2,"div","multiselect",[l(2,"div","input",[p.map(function(e){return l(2,"span",null,[e.name," ✕"],{onClick:function(){return E(i(e))}})}),l(512,"input",null,null,{type:"text",value:r,onKeyDown:t,onInput:function(e){return E(a(n,e.target.value))},onBlur:function(e){return E(s())},onFocus:function(e){return E(a(n,r))}})]),f?l(2,"div","suggestion",f.map(function(e,t){return l(2,"span",t==d?"selected":null,e.name,{onMouseDown:function(){return E(u(e))}})})):null])}function u(e){return{type:"MULTISELECT_ADD",item:e}}function i(e){return{type:"MULTISELECT_REMOVE",item:e}}function o(){return{type:"MULTISELECT_REMOVE_LAST"}}function a(e,t){return function(n){return n({type:"MULTISELECT_SUGGESTION_STARTED",query:t,request:e(t).then(function(e){return n(e.statusCode<400?{type:"MULTISELECT_SUGGESTION_SUCCEEDED",items:e.body}:{type:"MULTISELECT_SUGGESTION_FAILED",reason:e.body||e.statusCode})}).catch(function(e){return n({type:"MULTISELECT_SUGGESTION_ABORTED",reason:e})})})}}function c(e){return{type:"MULTISELECT_SELECT_SUGGESTION",index:e}}function s(){return{type:"MULTISELECT_FINISH_SUGGESTION"}}n(39),e.exports=r,e.exports.reducer=n(22);var l=Inferno.createVNode},function(e,t,n){"use strict";function r(e){function t(e){l(e.target.value)}var n=e.label,r=e.lines,u=e.minLines,i=void 0===u?5:u,o=e.value,a=e.error,s=e.sensitive,l=e.onChange,f=e.preventAutocomplete;return null==r?c(2,"label",null,[c(2,"span",null,n),f?c(512,"input",null,null,{type:"text",style:"display:none;"}):null,f?c(512,"input",null,null,{type:"password",style:"display:none;"}):null,c(512,"input",null,null,{type:s?"password":"text",defaultValue:o,onChange:t}),a?c(2,"span","validation-error",a):null]):c(2,"label",null,[c(2,"span",null,n),c(1024,"textarea",null,null,{defaultValue:o,onChange:t,rows:function(){return isNaN(Number(r))?o?Math.max(i,o.split(/\n\r?/).length):i:r}()}),a?c(2,"span","validation-error",a):null])}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];return"TEXT_INPUT_SET_VALUE"==t.type?t.value:e}function i(e){return{type:"TEXT_INPUT_SET_VALUE",value:e}}var o=n(2),a=o.combineReducers;e.exports=r,e.exports.reducer=a({value:u}),e.exports.actions={setValue:i},n(40);var c=Inferno.createVNode},function(e,t,n){var r=n(23);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.assign;n(17);var r=n(13),u=n(12),i=n(15),o=n(14),a=n(0),c=n(16),s={List:r,Edit:u,Multiselect:i,Menu:o,Same:a,TextInput:c};e.exports=s;Inferno.createVNode},function(e,t,n){"use strict";function r(e){var t=e.resource,n=e.defaultQuery,r=e.query,v=e.Query,_=void 0===v?s:v,h=e.Table,y=e.Loading,g=void 0===y?f:y,b=e.LoadingError,D=void 0===b?d:b,L=e.Empty,m=void 0===L?l:L,O=e.dispatch;if(!h)throw new Error("Table is required.");return u(e)?(O(T(n)),S(16,E,null,null,p({},e))):i(e)?(O(I(t,r)),S(16,E,null,null,p({},e))):o(e)?S(16,g,null,null,p({},e)):c(e)?S(16,m,null,null,p({},e)):a(e)?S(16,D,null,null,p({},e)):S(2,"div",null,[_(e),h(e)])}function u(e){return!e.query}function i(e){var t=e.items,n=e.request,r=e.error;return!(t||n||null!=r)}function o(e){return e.request}function a(e){return null!=e.error}function c(e){var t=e.items;return null!=t&&0==t.length}function s(){}function l(){return S(2,"p",null,"No data.")}function f(){return S(2,"p",null,"Loading...")}function d(e){var t=e.error;return t?S(2,"p",null,["Loading error: ",t.message]):S(2,"p",null,"Loading error")}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=n(0),v=n(5),T=v.resetQuery,I=v.loadItems;e.exports=r;var S=Inferno.createVNode},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case"LIST_SET_QUERY":return t.query?c({},f,t.query):f;case"LIST_SET_FILTER":return c({},e,{filtering:c({},e.filtering,r({},t.field,t.value))});case"LIST_SET_GROUPING":return c({},e,{grouping:{field:t.field}});case"LIST_SET_SORTING":return c({},e,{sorting:{field:t.field,direction:t.direction}});case"LIST_SET_PAGE":return c({},e,{paging:c({},e.paging,{index:t.index})});case"LIST_SET_PAGE_SIZE":return c({},e,{paging:c({},e.paging,{size:t.size})});default:return e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_SET_QUERY":case"LIST_INVALIDATE":return null;case"LIST_SET_FILTER":case"LIST_SET_GROUPING":case"LIST_SET_SORTING":return t.invalidate?null:e;case"LIST_LOADING_STARTED":return null;case"LIST_LOADING_SUCCEEDED":return t.result;case"LIST_LOADING_FAILED":case"LIST_LOADING_FORBIDDEN":return null;default:return e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_LOADING_STARTED":return t.request;case"LIST_LOADING_SUCCEEDED":case"LIST_LOADING_FAILED":case"LIST_LOADING_FORBIDDEN":return null;default:return e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_LOADING_STARTED":case"LIST_LOADING_SUCCEEDED":return null;case"LIST_LOADING_FAILED":return t.error;default:return e}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(2),l=s.combineReducers,f={filtering:{},grouping:{},sorting:{},paging:{}};e.exports=l({query:u,items:i,request:o,error:a})},function(e,t,n){"use strict";function r(e){function t(e,t){e.preventDefault(),u(i(t))}var n=e.route,r=e.items,u=e.dispatch;return n?a(2,"div","menu",r.map(function(e){return a(2,"a",n.url.includes(e.url)?"active":null,e.title,{href:e.url,onClick:function(n){return t(n,e.url)}})})):a(16,o)}var u=n(4),i=u.actions.navigateTo,o=n(0);n(38),e.exports=r;var a=Inferno.createVNode},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return t.query;default:return e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"MULTISELECT_ADD":return e.some(function(e){return e.id==t.item.id})?e:[].concat(r(e),[t.item]);case"MULTISELECT_REMOVE":return e.filter(function(e){return e.id!=t.item.id});case"MULTISELECT_REMOVE_LAST":return e.length>0?e.slice(0,-1):e;default:return e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return null;case"MULTISELECT_SUGGESTION_SUCCEEDED":return t.items;case"MULTISELECT_SUGGESTION_FAILED":case"MULTISELECT_SUGGESTION_ABORTED":case"MULTISELECT_FINISH_SUGGESTION":return null;default:return e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return null;case"MULTISELECT_SUGGESTION_SUCCEEDED":return 0;case"MULTISELECT_SUGGESTION_FAILED":case"MULTISELECT_SUGGESTION_ABORTED":return null;case"MULTISELECT_SELECT_SUGGESTION":return t.index;case"MULTISELECT_FINISH_SUGGESTION":return null;default:return e}}var c=n(2),s=c.combineReducers;e.exports=s({query:u,selectedItems:i,suggestedItems:o,selectedSuggestionIndex:a})},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"#root,body,html{height:100%;padding:0;margin:0}.validation-error{color:darkred}h2,p{margin:0}table{border-collapse:collapse}thead tr{border-bottom:1px solid gray}td{padding:2px 4px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".menu a{text-decoration:none;border-bottom:1px solid #000;padding:4px}.menu a.active,.menu a.active:visited,.menu a:hover,.menu a:visited:hover{background:#000;color:#fff}.menu a,.menu a:visited{color:#000;background:#fff}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".multiselect{margin-bottom:4px}.multiselect .input{width:100%;box-sizing:border-box;display:flex}.multiselect .input span{flex-shrink:0;border-bottom:1px dotted #000;margin-right:4px;cursor:pointer}.multiselect .input input{width:100%;box-sizing:border-box}.multiselect .suggestion span{padding-right:4px;cursor:pointer}.multiselect .suggestion .selected{background-color:#000;color:#fff}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"label input,label span,label textarea{box-sizing:border-box;display:inline-block;width:100%}",""])},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?c:a:s&&s in Object(e)?n.i(i.a)(e):n.i(o.a)(e)}var u=n(6),i=n(30),o=n(31),a="[object Null]",c="[object Undefined]",s=u.a?u.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(11))},function(e,t,n){"use strict";var r=n(32),u=n.i(r.a)(Object.getPrototypeOf,Object);t.a=u},function(e,t,n){"use strict";function r(e){var t=o.call(e,c),n=e[c];try{e[c]=void 0}catch(e){}var r=a.call(e);return t?e[c]=n:delete e[c],r}var u=n(6),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,c=u.a?u.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return i.call(e)}var u=Object.prototype,i=u.toString;t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";var r=n(28),u="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||u||Function("return this")();t.a=i},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),c=a.dispatch,s=[],l={getState:a.getState,dispatch:function(e){return c(e)}};return s=t.map(function(e){return e(l)}),c=u.a.apply(void 0,s)(a.dispatch),i({},a,{dispatch:c})}}}var u=n(8);t.a=r;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function u(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),u={},i=0;i<n.length;i++){var o=n[i],a=e[o];"function"==typeof a&&(u[o]=r(a,t))}return u}t.a=u},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function u(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:o.b.INIT}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.b.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function i(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];"function"==typeof e[o]&&(n[o]=e[o])}var a,c=Object.keys(n);try{u(n)}catch(e){a=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(a)throw a;for(var u=!1,i={},o=0;o<c.length;o++){var s=c[o],l=n[s],f=e[s],d=l(f,t);if(void 0===d){var p=r(s,t);throw new Error(p)}i[s]=d,u=u||d!==f}return u?i:e}}var o=n(9);n(7),n(10);t.a=i},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(25);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(26);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports=n(42)},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var u,i=n(43),o=function(e){return e&&e.__esModule?e:{default:e}}(i);u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=(0,o.default)(u);t.default=a}).call(t,n(11),n(44)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=require("inferno")}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=19)}([function(e,t,n){"use strict";var r=n(48);e.exports=function(){return r.NO_OP}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},u=0;u<this.length;u++){var o=this[u][0];"number"==typeof o&&(r[o]=!0)}for(u=0;u<t.length;u++){var i=t[u];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),u=n(39),o=n(38),i=n(37),a=n(8);n(10);n.d(t,"createStore",function(){return r.a}),n.d(t,"combineReducers",function(){return u.a}),n.d(t,"bindActionCreators",function(){return o.a}),n.d(t,"applyMiddleware",function(){return i.a}),n.d(t,"compose",function(){return a.a})},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],u=d[r.id];if(u){u.refs++;for(var o=0;o<u.parts.length;o++)u.parts[o](r.parts[o]);for(;o<r.parts.length;o++)u.parts.push(c(r.parts[o],t))}else{for(var i=[],o=0;o<r.parts.length;o++)i.push(c(r.parts[o],t));d[r.id]={id:r.id,refs:1,parts:i}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var u=e[r],o=u[0],i=u[1],a=u[2],c=u[3],l={css:i,media:a,sourceMap:c};n[o]?n[o].parts.push(l):t.push(n[o]={id:o,parts:[l]})}return t}function u(e,t){var n=v(),r=h[h.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function o(e){e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function i(e){var t=document.createElement("style");return t.type="text/css",u(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",u(e,t),t}function c(e,t){var n,r,u;if(t.singleton){var c=I++;n=T||(T=i(t)),r=l.bind(null,n,c,!1),u=l.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),r=f.bind(null,n),u=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=i(t),r=s.bind(null,n),u=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else u()}}function l(e,t,n,r){var u=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=S(t,u);else{var o=document.createTextNode(u),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var u=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(u),o&&URL.revokeObjectURL(o)}var d={},p=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},E=p(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),T=null,I=0,h=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=E()),void 0===t.insertAt&&(t.insertAt="bottom");var u=r(e);return n(u,t),function(e){for(var o=[],i=0;i<u.length;i++){var a=u[i],c=d[a.id];c.refs--,o.push(c)}if(e){n(r(e),t)}for(var i=0;i<o.length;i++){var c=o[i];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete d[c.id]}}}};var S=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=require("buhoi-client")},function(e,t,n){"use strict";function r(e){return{type:"LIST_SET_QUERY",query:e}}function u(e,t,n){return{type:"LIST_SET_FILTER",field:e,value:t,invalidateList:n}}function o(e){return{type:"LIST_SET_GROUPING",field:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function i(e,t){return{type:"LIST_SET_SORTING",field:e,direction:t,invalidateList:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]}}function a(e){return{type:"LIST_SET_PAGE",index:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function c(e){return{type:"LIST_SET_PAGE_SIZE",size:e,invalidateList:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}}function l(e,t){return d("LIST_LOADING",e,t)}function s(){return{type:"LIST_INVALIDATE"}}var f=n(4),d=f.actions.read;e.exports={resetQuery:r,setFilter:u,setGrouping:o,setSorting:i,setPage:a,setPageSize:c,loadItems:l,invalidate:s}},function(e,t,n){"use strict";var r=n(35),u=r.a.Symbol;t.a=u},function(e,t,n){"use strict";function r(e){if(!n.i(i.a)(e)||n.i(u.a)(e)!=a)return!1;var t=n.i(o.a)(e);if(null===t)return!0;var r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==d}var u=n(29),o=n(31),i=n(36),a="[object Object]",c=Function.prototype,l=Object.prototype,s=c.toString,f=l.hasOwnProperty,d=s.call(Object);t.a=r},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],u=t.slice(0,-1);return function(){return u.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}t.a=r},function(e,t,n){"use strict";function r(e,t,o){function c(){h===I&&(h=I.slice())}function l(){return T}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return c(),h.push(e),function(){if(t){t=!1,c();var n=h.indexOf(e);h.splice(n,1)}}}function f(e){if(!n.i(u.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(S)throw new Error("Reducers may not dispatch actions.");try{S=!0,T=v(T,e)}finally{S=!1}for(var t=I=h,r=0;r<t.length;r++)t[r]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");v=e,f({type:a.INIT})}function p(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(l())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[i.a]=function(){return this},e}var E;if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error("Expected the enhancer to be a function.");return o(r)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var v=e,T=t,I=[],h=I,S=!1;return f({type:a.INIT}),E={dispatch:f,subscribe:s,getState:l,replaceReducer:d},E[i.a]=p,E}var u=n(7),o=n(44),i=n.n(o);n.d(t,"b",function(){return a}),t.a=r;var a={INIT:"@@redux/INIT"}},function(e,t,n){"use strict"},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){function t(e){n(e.toDate())}var n=e.onChange,r=e.policy,i=void 0===r?"start":r;if(!e.value)return v(16,E);var a="start"==i?s(e.value).startOf("day"):s(e.value).endOf("day");return v(2,"div","calendar",[v(2,"div",null,[o({value:a,months:-1,handleChange:t}),v(2,"span",null,[" ",a.format("MMM YYYY")," "]),o({value:a,months:1,handleChange:t})]),v(2,"table",null,[v(2,"thead",null,v(2,"tr",null,p.map(function(e){return v(2,"th",null,e)}))),v(2,"tbody",null,u(a).map(function(e){return v(2,"tr",null,e.map(function(e){return e?v(2,"td",a.date()==e.date()?"selected":"selectable",e.format("D"),{onClick:function(){return t(e)}}):v(2,"td")}))}))])])}function u(e){for(var t=[],n=s(e).date(1);n.month()==e.month();){var r=[null,null,null,null,null,null,null];do{r[n.weekday()]=s(n),n.add({days:1})}while(n.month()==e.month()&&n.weekday());t.push(r)}return t}function o(e){var t=e.value,n=e.months,r=e.handleChange,u=s(t).add({months:n});return n>0?v(2,"button",null,["→ ",u.format("MMM")],{onClick:function(){return r(u)}}):v(2,"button",null,[u.format("MMM")," ←"],{onClick:function(){return r(u)}})}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments[1];switch(t.type){case"CALENDAR_SET_VALUE":return t.value;default:return e}}function a(e){return{type:"CALENDAR_SET_VALUE",value:e}}var c=n(2),l=c.combineReducers,s=n(49);n(40);var f=s.weekdaysMin(),d=s.localeData()._week.dow,p=f.map(function(e,t){return f[(t+d)%7]}),E=n(0);e.exports=r,e.exports.reducer=l({value:i}),e.exports.actions={setValue:a};var v=Inferno.createVNode},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){function t(e){e.preventDefault(),y(f(v,h))}function n(e){e.preventDefault(),confirm("Подтвердите удаление.")&&y(d(v,I))}function r(e){e.preventDefault(),confirm("Подтвердите восстановление")&&y(p(v,I))}function u(e){e.preventDefault(),y(T())}var v=e.resource,I=e.id,h=e.fields,S=e.removable,_=e.restorable,y=e.dispatch,g=e.onFinish,m=e.Form,O=e.Loading,N=void 0===O?b:O,A=e.Error,x=void 0===A?D:A;return o(e)?(y(s(v,I)),R(16,w)):i(e)?R(16,N,null,null,L({},e)):a(e)?R(16,x,null,null,L({},e)):c(e)?(y(E()),R(16,w)):l(e)?(g(),R(16,w)):R(2,"form",null,[m(e),R(512,"input",null,null,{type:"submit",value:"сохранить"}),null!=I&&S?R(2,"button",null,"удалить",{onClick:n}):null,null!=I&&_?R(2,"button",null,"восстановить",{onClick:r}):null,R(2,"button",null,"отмена",{onClick:u})],{onSubmit:t})}function o(e){var t=e.id,n=e.fields,r=e.request,u=e.error;return null!=t&&null==n&&null==r&&null==u}function i(e){return e.request}function a(e){return e.error}function c(e){var t=e.id,n=e.fields;return null==t&&null==n}function l(e){return e.isEditingFinished}function s(e,t){return x("EDIT_LOADING",e+"/"+t)}function f(e,t){return C("EDIT_SAVING",e,t)}function d(e,t){return G("EDIT_REMOVING",e,t)}function p(e,t){return C("EDIT_RESTORING",e+".restore",{id:t})}function E(){return{type:"EDIT_INITIALIZE_FIELDS"}}function v(e,t){return{type:"EDIT_SET_FIELD",name:e,value:t}}function T(){return{type:"EDIT_CANCEL"}}function I(){return{type:"EDIT_RESET"}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":return t.request;case"EDIT_LOADING_SUCCEEDED":case"EDIT_LOADING_FAILED":case"EDIT_RESET":return null;default:return e}}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":return null;case"EDIT_LOADING_SUCCEEDED":return t.result;case"EDIT_LOADING_FAILED":return null;case"EDIT_INITIALIZE_FIELDS":return{};case"EDIT_SET_FIELD":return L({},e,r({},t.name,t.value));case"EDIT_RESET":return null;default:return e}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"EDIT_SAVING_STARTED":case"EDIT_SAVING_SUCCEEDED":return{};case"EDIT_SAVING_FAILED":return 400==t.error.statusCode?t.error.body:{};case"EDIT_RESET":return{};default:return e}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"EDIT_LOADING_STARTED":case"EDIT_SAVING_STARTED":case"EDIT_REMOVING_STARTED":case"EDIT_RESTORING_STARTED":case"EDIT_LOADING_SUCCEEDED":case"EDIT_SAVING_SUCCEEDED":case"EDIT_REMOVING_SUCCEEDED":case"EDIT_RESTORING_SUCCEEDED":case"EDIT_RESET":return null;case"EDIT_LOADING_FAILED":case"EDIT_SAVING_FAILED":case"EDIT_REMOVING_FAILED":case"EDIT_RESTORING_FAILED":return 400!=t.error.statusCode?t.error:null;default:return e}}function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(arguments[1].type){case"EDIT_INITIALIZE_FIELDS":case"EDIT_LOADING_STARTED":case"EDIT_SAVING_STARTED":return!1;case"EDIT_SAVING_SUCCEEDED":case"EDIT_CANCEL":return!0;case"EDIT_RESET":case"EDIT_REMOVING_STARTED":return!1;case"EDIT_REMOVING_SUCCEEDED":return!0;case"EDIT_RESTORING_STARTED":return!1;case"EDIT_RESTORING_SUCCEEDED":return!0;default:return e}}function b(){return R(2,"p",null,"Loading...")}function D(e){var t=e.error;return R(2,"p",null,["Error: ",t.message])}var L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=n(2),O=m.combineReducers,N=n(4),A=N.actions,x=A.read,C=A.write,G=A.remove,w=n(0);e.exports=u,u.actions={setField:v,reset:I},u.reducer=O({request:h,fields:S,error:y,validationErrors:_,isEditingFinished:g});var R=Inferno.createVNode},function(e,t,n){"use strict";e.exports=n(20),e.exports.actions=n(5),e.exports.reducer=n(21)},function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";function r(e){function t(e){8!=e.keyCode||r||E(i()),38==e.keyCode&&d>0&&(e.preventDefault(),E(c(d-1))),40==e.keyCode&&d<f.length-1&&(e.preventDefault(),E(c(d+1))),13==e.keyCode&&null!=d&&E(u(f[d]))}var n=e.resource,r=e.query,f=e.suggestedItems,d=e.selectedSuggestionIndex,p=e.selectedItems,E=e.dispatch;return s(2,"div","multiselect",[s(2,"div","input",[p.map(function(e){return s(2,"span",null,[e.name," ✕"],{onClick:function(){return E(o(e))}})}),s(512,"input",null,null,{type:"text",value:r,onKeyDown:t,onInput:function(e){return E(a(n,e.target.value))},onBlur:function(e){return E(l())},onFocus:function(e){return E(a(n,r))}})]),f?s(2,"div","suggestion",f.map(function(e,t){return s(2,"span",t==d?"selected":null,e.name,{onMouseDown:function(){return E(u(e))}})})):null])}function u(e){return{type:"MULTISELECT_ADD",item:e}}function o(e){return{type:"MULTISELECT_REMOVE",item:e}}function i(){return{type:"MULTISELECT_REMOVE_LAST"}}function a(e,t){return function(n){return n({type:"MULTISELECT_SUGGESTION_STARTED",query:t,request:e(t).then(function(e){return n(e.statusCode<400?{type:"MULTISELECT_SUGGESTION_SUCCEEDED",items:e.body}:{type:"MULTISELECT_SUGGESTION_FAILED",reason:e.body||e.statusCode})}).catch(function(e){return n({type:"MULTISELECT_SUGGESTION_ABORTED",reason:e})})})}}function c(e){return{type:"MULTISELECT_SELECT_SUGGESTION",index:e}}function l(){return{type:"MULTISELECT_FINISH_SUGGESTION"}}n(42),e.exports=r,e.exports.reducer=n(23);var s=Inferno.createVNode},function(e,t,n){"use strict";function r(e){function t(e){s(e.target.value)}var n=e.label,r=e.lines,u=e.minLines,o=void 0===u?5:u,i=e.value,a=e.error,l=e.sensitive,s=e.onChange,f=e.preventAutocomplete;return null==r?c(2,"label",null,[c(2,"span",null,n),f?c(512,"input",null,null,{type:"text",style:"display:none;"}):null,f?c(512,"input",null,null,{type:"password",style:"display:none;"}):null,c(512,"input",null,null,{type:l?"password":"text",defaultValue:i,onChange:t}),a?c(2,"span","validation-error",a):null]):c(2,"label",null,[c(2,"span",null,n),c(1024,"textarea",null,null,{defaultValue:i,onChange:t,rows:function(){return isNaN(Number(r))?i?Math.max(o,i.split(/\n\r?/).length):o:r}()}),a?c(2,"span","validation-error",a):null])}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];return"TEXT_INPUT_SET_VALUE"==t.type?t.value:e}function o(e){return{type:"TEXT_INPUT_SET_VALUE",value:e}}var i=n(2),a=i.combineReducers;e.exports=r,e.exports.reducer=a({value:u}),e.exports.actions={setValue:o},n(43);var c=Inferno.createVNode},function(e,t,n){var r=n(25);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.assign;n(18);var r=n(12),u=n(14),o=n(13),i=n(16),a=n(15),c=n(0),l=n(17),s={Calendar:r,List:u,Edit:o,Multiselect:i,Menu:a,Same:c,TextInput:l};e.exports=s;Inferno.createVNode},function(e,t,n){"use strict";function r(e){var t=e.resource,n=e.defaultQuery,r=e.query,v=e.Query,S=void 0===v?l:v,_=e.Table,y=e.Loading,g=void 0===y?f:y,b=e.LoadingError,D=void 0===b?d:b,L=e.Empty,m=void 0===L?s:L,O=e.dispatch;if(!_)throw new Error("Table is required.");return u(e)?(O(T(n)),h(16,E,null,null,p({},e))):o(e)?(O(I(t,r)),h(16,E,null,null,p({},e))):i(e)?h(16,g,null,null,p({},e)):c(e)?h(16,m,null,null,p({},e)):a(e)?h(16,D,null,null,p({},e)):h(2,"div",null,[S(e),_(e)])}function u(e){return!e.query}function o(e){var t=e.items,n=e.request,r=e.error;return!(t||n||null!=r)}function i(e){return e.request}function a(e){return null!=e.error}function c(e){var t=e.items;return null!=t&&0==t.length}function l(){}function s(){return h(2,"p",null,"No data.")}function f(){return h(2,"p",null,"Loading...")}function d(e){var t=e.error;return t?h(2,"p",null,["Loading error: ",t.message]):h(2,"p",null,"Loading error")}var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=n(0),v=n(5),T=v.resetQuery,I=v.loadItems;e.exports=r;var h=Inferno.createVNode},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case"LIST_SET_QUERY":return t.query?c({},f,t.query):f;case"LIST_SET_FILTER":return c({},e,{filtering:c({},e.filtering,r({},t.field,t.value))});case"LIST_SET_GROUPING":return c({},e,{grouping:{field:t.field}});case"LIST_SET_SORTING":return c({},e,{sorting:{field:t.field,direction:t.direction}});case"LIST_SET_PAGE":return c({},e,{paging:c({},e.paging,{index:t.index})});case"LIST_SET_PAGE_SIZE":return c({},e,{paging:c({},e.paging,{size:t.size})});default:return e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_SET_QUERY":case"LIST_INVALIDATE":return null;case"LIST_SET_FILTER":case"LIST_SET_GROUPING":case"LIST_SET_SORTING":return t.invalidate?null:e;case"LIST_LOADING_STARTED":return null;case"LIST_LOADING_SUCCEEDED":return t.result;case"LIST_LOADING_FAILED":case"LIST_LOADING_FORBIDDEN":return null;default:return e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_LOADING_STARTED":return t.request;case"LIST_LOADING_SUCCEEDED":case"LIST_LOADING_FAILED":case"LIST_LOADING_FORBIDDEN":return null;default:return e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"LIST_LOADING_STARTED":case"LIST_LOADING_SUCCEEDED":return null;case"LIST_LOADING_FAILED":return t.error;default:return e}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(2),s=l.combineReducers,f={filtering:{},grouping:{},sorting:{},paging:{}};e.exports=s({query:u,items:o,request:i,error:a})},function(e,t,n){"use strict";function r(e){function t(e,t){e.preventDefault(),u(o(t))}var n=e.route,r=e.items,u=e.dispatch;return n?a(2,"div","menu",r.map(function(e){return a(2,"a",n.url.includes(e.url)?"active":null,e.title,{href:e.url,onClick:function(n){return t(n,e.url)}})})):a(16,i)}var u=n(4),o=u.actions.navigateTo,i=n(0);n(41),e.exports=r;var a=Inferno.createVNode},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return t.query;default:return e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"MULTISELECT_ADD":return e.some(function(e){return e.id==t.item.id})?e:[].concat(r(e),[t.item]);case"MULTISELECT_REMOVE":return e.filter(function(e){return e.id!=t.item.id});case"MULTISELECT_REMOVE_LAST":return e.length>0?e.slice(0,-1):e;default:return e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return null;case"MULTISELECT_SUGGESTION_SUCCEEDED":return t.items;case"MULTISELECT_SUGGESTION_FAILED":case"MULTISELECT_SUGGESTION_ABORTED":case"MULTISELECT_FINISH_SUGGESTION":return null;default:return e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];switch(t.type){case"MULTISELECT_SUGGESTION_STARTED":return null;case"MULTISELECT_SUGGESTION_SUCCEEDED":return 0;case"MULTISELECT_SUGGESTION_FAILED":case"MULTISELECT_SUGGESTION_ABORTED":return null;case"MULTISELECT_SELECT_SUGGESTION":return t.index;case"MULTISELECT_FINISH_SUGGESTION":return null;default:return e}}var c=n(2),l=c.combineReducers;e.exports=l({query:u,selectedItems:o,suggestedItems:i,selectedSuggestionIndex:a})},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".calendar{text-align:center;width:210px}.calendar .selectable:hover,.calendar .selected{background:#000;color:#fff;cursor:pointer}.calendar button:first-child{float:left}.calendar span{font-weight:700}.calendar button:last-child{float:right}.calendar table{table-layout:fixed}.calendar td,.calendar th{padding:2px 0;width:30px}.calendar td{text-align:center}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"#root,body,html{height:100%;padding:0;margin:0}.validation-error{color:darkred}h2,p{margin:0}table{border-collapse:collapse}thead tr{border-bottom:1px solid gray}td{padding:2px 4px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".menu a{text-decoration:none;border-bottom:1px solid #000;padding:4px}.menu a.active,.menu a.active:visited,.menu a:hover,.menu a:visited:hover{background:#000;color:#fff}.menu a,.menu a:visited{color:#000;background:#fff}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".multiselect{margin-bottom:4px}.multiselect .input{width:100%;box-sizing:border-box;display:flex}.multiselect .input span{flex-shrink:0;border-bottom:1px dotted #000;margin-right:4px;cursor:pointer}.multiselect .input input{width:100%;box-sizing:border-box}.multiselect .suggestion span{padding-right:4px;cursor:pointer}.multiselect .suggestion .selected{background-color:#000;color:#fff}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"label input,label span,label textarea{box-sizing:border-box;display:inline-block;width:100%}",""])},function(e,t,n){"use strict";function r(e){return null==e?void 0===e?c:a:l&&l in Object(e)?n.i(o.a)(e):n.i(i.a)(e)}var u=n(6),o=n(32),i=n(33),a="[object Null]",c="[object Undefined]",l=u.a?u.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(11))},function(e,t,n){"use strict";var r=n(34),u=n.i(r.a)(Object.getPrototypeOf,Object);t.a=u},function(e,t,n){"use strict";function r(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0}catch(e){}var r=a.call(e);return t?e[c]=n:delete e[c],r}var u=n(6),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=u.a?u.a.toStringTag:void 0;t.a=r},function(e,t,n){"use strict";function r(e){return o.call(e)}var u=Object.prototype,o=u.toString;t.a=r},function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t.a=r},function(e,t,n){"use strict";var r=n(30),u="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||u||Function("return this")();t.a=o},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var a=e(n,r,i),c=a.dispatch,l=[],s={getState:a.getState,dispatch:function(e){return c(e)}};return l=t.map(function(e){return e(s)}),c=u.a.apply(void 0,l)(a.dispatch),o({},a,{dispatch:c})}}}var u=n(8);t.a=r;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function u(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),u={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(u[i]=r(a,t))}return u}t.a=u},function(e,t,n){"use strict";function r(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function u(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:i.b.INIT}))throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.b.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.')})}function o(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=t[o];"function"==typeof e[i]&&(n[i]=e[i])}var a,c=Object.keys(n);try{u(n)}catch(e){a=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(a)throw a;for(var u=!1,o={},i=0;i<c.length;i++){var l=c[i],s=n[l],f=e[l],d=s(f,t);if(void 0===d){var p=r(l,t);throw new Error(p)}o[l]=d,u=u||d!==f}return u?o:e}}var i=n(9);n(7),n(10);t.a=o},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(26);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(28);"string"==typeof r&&(r=[[e.i,r,""]]);n(3)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports=n(45)},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var u,o=n(46),i=function(e){return e&&e.__esModule?e:{default:e}}(o);u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=(0,i.default)(u);t.default=a}).call(t,n(11),n(47)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=require("inferno")},function(e,t){e.exports=require("moment")}]);
//# sourceMappingURL=bundle.js.map
require('./generic.scss')
const Calendar = require('./calendar')
const List = require('./list')

@@ -11,2 +12,3 @@ const Edit = require('./edit')

const components = {
Calendar,
List,

@@ -26,3 +28,6 @@ Edit,

const reducer = combineReducers({ textInput: TextInput.reducer })
const reducer = combineReducers({
textInput: TextInput.reducer,
calendar: Calendar.reducer,
})

@@ -44,3 +49,3 @@ const store = createStore(reducer, applyMiddleware(logger.default))

function AllComponents ({ textInput, dispatch }) { // eslint-disable-line no-inner-declarations
function AllComponents ({ textInput, calendar, dispatch }) { // eslint-disable-line no-inner-declarations
return <div>

@@ -52,4 +57,8 @@ <TextInput

onChange={v => dispatch(TextInput.actions.setValue(v))} />
<Calendar
{...calendar}
policy="end"
onChange={v => dispatch(Calendar.actions.setValue(v))} />
</div>
}
}
{
"name": "buhoi-ui",
"version": "1.0.7",
"version": "1.0.8",
"description": "UI components for buhoi framework.",

@@ -32,2 +32,3 @@ "main": "./dist/bundle.js",

"lint-staged": "^3.4.0",
"moment": "^2.18.1",
"node-sass": "^4.5.0",

@@ -34,0 +35,0 @@ "npm-check": "^5.4.0",

@@ -12,2 +12,3 @@ const webpack = require('webpack')

'inferno': { commonjs2: 'inferno' },
'moment': { commonjs2: 'moment' },
'buhoi-client': { commonjs2: 'buhoi-client' },

@@ -14,0 +15,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc