react-tags-rails 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 270927bb43962ea477a4a4ea32c61693db352b46
4
+ data.tar.gz: 93045b5e22ed7fdbc4f076ef241881a2d5156d4d
5
+ SHA512:
6
+ metadata.gz: 62458507fdba8a5a4e7c4aec93729987edd2663af1559d58869a4ad196094c9d1c2ee1364b26c2a4a635287f2e6f031c86999569fffe765664a04567493ee5e9
7
+ data.tar.gz: 9265ec520c1db241563bfb23c51a00aee0cfd650b9361d0e3141cf7cb8813bc66158c08c8be2f48a239042504c140778ef4834be6f2115ad205bddbf1bc39f2a
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in react-tags-rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Brandon Braun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # react-tags-rails
2
+
3
+ [React-Tags](https://github.com/prakhar1989/react-tags) for Rails
4
+
5
+ ## Installation
6
+
7
+ Add these line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'react-dnd-html5-backend-rails'
11
+ gem 'react-dnd-rails'
12
+ gem 'react-tags-rails'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install react-tags-rails
22
+
23
+ ## Usage
24
+
25
+ Require React-Tags, ReactDnD, and ReactDnDHTML5Backend
26
+
27
+ ```js
28
+ //= require ReactDnDHTML5Backend.min.js
29
+ //= require ReactDnD.min.js
30
+ //= require reactTags.min.js
31
+ ```
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/bmb330/react-tags-rails](https://github.com/bmb330/react-tags-rails).
42
+
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
47
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "react/tags/rails"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,10 @@
1
+ require "react/tags/rails/version"
2
+
3
+ module React
4
+ module Tags
5
+ module Rails
6
+ class Engine < ::Rails::Engine
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ module React
2
+ module Tags
3
+ module Rails
4
+ VERSION = "2.2.6"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'react/tags/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "react-tags-rails"
8
+ spec.version = React::Tags::Rails::VERSION
9
+ spec.authors = ["Brandon Braun"]
10
+ spec.email = ["brandon.braun@gmail.com"]
11
+
12
+ spec.summary = %q{React-Tags for Rails}
13
+ spec.description = %q{React-Tags for Rails Asset Pipeline}
14
+ spec.homepage = "https://github.com/bmb330/react-tags-rails"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ #if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ #else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ #end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.11"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec", "~> 3.0"
33
+ spec.add_dependency "rails", ">= 4.0"
34
+ spec.add_dependency "react-dnd-rails"
35
+ end
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDnD"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDnD","ReactDOM"],e):"object"==typeof exports?exports.ReactTags=e(require("React"),require("ReactDnD"),require("ReactDOM")):t.ReactTags=e(t.React,t.ReactDnD,t.ReactDOM)}(this,function(t,e,r){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";var n=r(27),o=(r(141),r(47)),i=r(46),a=r(45),s=a.DragDropContext,u=r(84),c=r(75),p={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},f={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions"},l=n.createClass({displayName:"ReactTags",propTypes:{tags:n.PropTypes.array,placeholder:n.PropTypes.string,labelField:n.PropTypes.string,suggestions:n.PropTypes.array,delimeters:n.PropTypes.array,autofocus:n.PropTypes.bool,inline:n.PropTypes.bool,handleDelete:n.PropTypes.func.isRequired,handleAddition:n.PropTypes.func.isRequired,handleDrag:n.PropTypes.func,allowDeleteFromEmptyInput:n.PropTypes.bool,handleInputChange:n.PropTypes.func,minQueryLength:n.PropTypes.number,shouldRenderSuggestions:n.PropTypes.func,removeComponent:n.PropTypes.func,autocomplete:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.number]),readOnly:n.PropTypes.bool,classNames:n.PropTypes.object},getDefaultProps:function(){return{placeholder:"Add new tag",tags:[],suggestions:[],delimeters:[p.ENTER,p.TAB],autofocus:!0,inline:!0,allowDeleteFromEmptyInput:!0,minQueryLength:2,autocomplete:!1,readOnly:!1}},componentWillMount:function(){this.setState({classNames:c({},f,this.props.classNames)})},componentDidMount:function(){this.props.autofocus&&!this.props.readOnly&&this.refs.input.focus()},getInitialState:function(){return{suggestions:this.props.suggestions,query:"",selectedIndex:-1,selectionMode:!1}},filteredSuggestions:function(t,e){return e.filter(function(e){return 0===e.toLowerCase().indexOf(t.toLowerCase())})},componentWillReceiveProps:function(t){var e=this.filteredSuggestions(this.state.query,t.suggestions);this.setState({suggestions:e,classNames:c({},f,t.classNames)})},handleDelete:function(t,e){this.props.handleDelete(t),this.setState({query:""})},handleChange:function(t){this.props.handleInputChange&&this.props.handleInputChange(t.target.value.trim());var e=t.target.value.trim(),r=this.filteredSuggestions(e,this.props.suggestions);this.setState({query:e,suggestions:r})},handleKeyDown:function(t){var e=this.state,r=e.query,n=e.selectedIndex,o=e.suggestions;if(t.keyCode===p.ESCAPE&&(t.preventDefault(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimeters.indexOf(t.keyCode)&&(t.keyCode===p.TAB&&""===r||t.preventDefault(),""!==r&&(this.state.selectionMode&&(r=this.state.suggestions[this.state.selectedIndex]),this.addTag(r))),t.keyCode===p.BACKSPACE&&""==r&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1),t.keyCode===p.UP_ARROW){t.preventDefault();var n=this.state.selectedIndex;0>=n?this.setState({selectedIndex:this.state.suggestions.length-1,selectionMode:!0}):this.setState({selectedIndex:n-1,selectionMode:!0})}t.keyCode===p.DOWN_ARROW&&(t.preventDefault(),this.setState({selectedIndex:(this.state.selectedIndex+1)%o.length,selectionMode:!0}))},addTag:function(t){var e=this.refs.input;if(this.props.autocomplete){var r=this.filteredSuggestions(t,this.props.suggestions);(1===this.props.autocomplete&&1===r.length||this.props.autocomplete===!0&&r.length)&&(t=r[0])}this.props.handleAddition(t),this.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.value="",e.focus()},handleSuggestionClick:function(t,e){this.addTag(this.state.suggestions[t])},handleSuggestionHover:function(t,e){this.setState({selectedIndex:t,selectionMode:!0})},moveTag:function(t,e){var r=this.props.tags,n=r.filter(function(e){return e.id===t})[0],o=r.filter(function(t){return t.id===e})[0],i=r.indexOf(n),a=r.indexOf(o);this.props.handleDrag(n,i,a)},render:function(){var t=this.props.handleDrag?this.moveTag:null,e=this.props.tags.map(function(e,r){return n.createElement(o,{key:r,tag:e,labelField:this.props.labelField,onDelete:this.handleDelete.bind(this,r),moveTag:t,removeComponent:this.props.removeComponent,readOnly:this.props.readOnly,classNames:this.state.classNames})}.bind(this)),r=this.state.query.trim(),a=this.state.selectedIndex,s=this.state.suggestions,u=this.props.placeholder,c=this.props.readOnly?null:n.createElement("div",{className:this.state.classNames.tagInput},n.createElement("input",{ref:"input",type:"text",placeholder:u,"aria-label":u,onChange:this.handleChange,onKeyDown:this.handleKeyDown}),n.createElement(i,{query:r,suggestions:s,selectedIndex:a,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,classNames:this.state.classNames}));return n.createElement("div",{className:this.state.classNames.tags},n.createElement("div",{className:this.state.classNames.selected},e,this.props.inline&&c),!this.props.inline&&c)}});t.exports={WithContext:s(u)(l),WithOutContext:l,Keys:p}},function(t,e){function r(t){return!!t&&"object"==typeof t}t.exports=r},function(t,e){function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=r},function(t,e,r){var n=r(18),o=r(6),i=r(1),a="[object Array]",s=Object.prototype,u=s.toString,c=n(Array,"isArray"),p=c||function(t){return i(t)&&o(t.length)&&u.call(t)==a};t.exports=p},function(t,e){function r(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!=t||null==t}t.exports=r},function(t,e,r){function n(t){return null!=t&&i(o(t))}var o=r(62),i=r(6);t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=9007199254740991;t.exports=r},function(t,e,r){var n=r(22),o=r(23),i=n(o,"Map");t.exports=i},function(t,e,r){function n(t){return i(t)&&o(t)&&s.call(t,"callee")&&!u.call(t,"callee")}var o=r(5),i=r(1),a=Object.prototype,s=a.hasOwnProperty,u=a.propertyIsEnumerable;t.exports=n},function(t,e,r){function n(t,e){for(var r=t.length;r--;)if(o(t[r][0],e))return r;return-1}var o=r(11);t.exports=n},function(t,e,r){var n=r(22),o=n(Object,"create");t.exports=o},function(t,e){function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,r){function n(t){return i(t)&&o(t)}var o=r(43),i=r(26);t.exports=n},function(t,e){function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=r},function(t,e,r){function n(t,e){if("function"!=typeof t)throw new TypeError(a);return e=s(void 0===e?t.length-1:i(e),0),function(){for(var r=arguments,n=-1,i=s(r.length-e,0),a=Array(i);++n<i;)a[n]=r[e+n];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var u=Array(e+1);for(n=-1;++n<e;)u[n]=r[n];return u[e]=a,o(t,this,u)}}var o=r(36),i=r(136),a="Expected a function",s=Math.max;t.exports=n},function(t,e,r){function n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var o=r(29),i=r(17),a=Number.POSITIVE_INFINITY;n.prototype=o(i.prototype),n.prototype.constructor=n,t.exports=n},function(t,e,r){function n(t,e,r){this.__wrapped__=t,this.__actions__=r||[],this.__chain__=!!e}var o=r(29),i=r(17);n.prototype=o(i.prototype),n.prototype.constructor=n,t.exports=n},function(t,e){function r(){}t.exports=r},function(t,e,r){function n(t,e){var r=null==t?void 0:t[e];return o(r)?r:void 0}var o=r(71);t.exports=n},function(t,e){function r(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?o:e,t>-1&&t%1==0&&e>t}var n=/^\d+$/,o=9007199254740991;t.exports=r},function(t,e,r){function n(t){if(null==t)return[];u(t)||(t=Object(t));var e=t.length;e=e&&s(e)&&(i(t)||o(t))&&e||0;for(var r=t.constructor,n=-1,c="function"==typeof r&&r.prototype===t,f=Array(e),l=e>0;++n<e;)f[n]=n+"";for(var h in t)l&&a(h,e)||"constructor"==h&&(c||!p.call(t,h))||f.push(h);return f}var o=r(8),i=r(3),a=r(19),s=r(6),u=r(2),c=Object.prototype,p=c.hasOwnProperty;t.exports=n},function(t,e){"use strict";e.__esModule=!0;var r="__NATIVE_FILE__";e.FILE=r;var n="__NATIVE_URL__";e.URL=n;var o="__NATIVE_TEXT__";e.TEXT=o},function(t,e,r){function n(t,e){var r=t[e];return o(r)?r:void 0}var o=r(130);t.exports=n},function(t,e,r){(function(t,n){var o=r(106),i={"function":!0,object:!0},a=i[typeof e]&&e&&!e.nodeType?e:void 0,s=i[typeof t]&&t&&!t.nodeType?t:void 0,u=o(a&&s&&"object"==typeof n&&n),c=o(i[typeof self]&&self),p=o(i[typeof window]&&window),f=o(i[typeof this]&&this),l=u||p!==(f&&f.window)&&p||c||f||Function("return this")();t.exports=l}).call(e,r(140)(t),function(){return this}())},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){function n(t){var e=o(t)?u.call(t):"";return e==i||e==a}var o=r(13),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;t.exports=n},function(t,e){function r(t){return!!t&&"object"==typeof t}t.exports=r},function(e,r){e.exports=t},function(t,e){function r(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}t.exports=r},function(t,e,r){var n=r(2),o=function(){function t(){}return function(e){if(n(e)){t.prototype=e;var r=new t;t.prototype=void 0}return r||{}}}();t.exports=o},function(t,e,r){var n=r(65),o=r(77),i=n?function(t){return n.get(t)}:o;t.exports=i},function(t,e,r){function n(t){for(var e=t.name+"",r=o[e],n=r?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==t)return i.name}return e}var o=r(66);t.exports=n},function(t,e,r){function n(t){return i(t)&&o(t.length)&&!!N[P.call(t)]}var o=r(6),i=r(1),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",p="[object Error]",f="[object Function]",l="[object Map]",h="[object Number]",d="[object Object]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",x="[object ArrayBuffer]",D="[object Float32Array]",_="[object Float64Array]",T="[object Int8Array]",b="[object Int16Array]",O="[object Int32Array]",S="[object Uint8Array]",E="[object Uint8ClampedArray]",w="[object Uint16Array]",C="[object Uint32Array]",N={};N[D]=N[_]=N[T]=N[b]=N[O]=N[S]=N[E]=N[w]=N[C]=!0,N[a]=N[s]=N[x]=N[u]=N[c]=N[p]=N[f]=N[l]=N[h]=N[d]=N[g]=N[v]=N[y]=N[m]=!1;var I=Object.prototype,P=I.toString;t.exports=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var o=r(134),i=n(o),a=i["default"](function(){return/firefox/i.test(navigator.userAgent)});e.isFirefox=a;var s=i["default"](function(){return Boolean(window.safari)});e.isSafari=s},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r(121),i=r(122),a=r(123),s=r(124),u=r(125);n.prototype.clear=o,n.prototype["delete"]=i,n.prototype.get=a,n.prototype.has=s,n.prototype.set=u,t.exports=n},function(t,e,r){function n(t){var e=-1,r=t?t.length:0;for(this.__data__=new o;++e<r;)this.push(t[e])}var o=r(34),i=r(105);n.prototype.push=i,t.exports=n},function(t,e){function r(t,e,r){var n=r.length;switch(n){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}t.exports=r},function(t,e,r){function n(t,e){return!!t.length&&o(t,e,0)>-1}var o=r(99);t.exports=n},function(t,e){function r(t,e,r){for(var n=-1,o=t.length;++n<o;)if(r(e,t[n]))return!0;return!1}t.exports=r},function(t,e,r){function n(t,e){var r=t.__data__;if(o(e)){var n=r.__data__,a="string"==typeof e?n.string:n.hash;return a[e]===i}return r.has(e)}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t,e){return o?void 0!==t[e]:a.call(t,e)}var o=r(10),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e){function r(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?n:e,t>-1&&t%1==0&&e>t}var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e,r){function n(t){return o(t)&&s.call(t,"callee")&&(!c.call(t,"callee")||u.call(t)==i)}var o=r(12),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;t.exports=n},function(t,e,r){function n(t){return null!=t&&a(o(t))&&!i(t)}var o=r(110),i=r(25),a=r(44);t.exports=n},function(t,e){function r(t){return"number"==typeof t&&t>-1&&t%1==0&&n>=t}var n=9007199254740991;t.exports=r},function(t,r){t.exports=e},function(t,e,r){"use strict";var n=r(27),o=n.createClass({displayName:"Suggestions",propTypes:{query:n.PropTypes.string.isRequired,selectedIndex:n.PropTypes.number.isRequired,suggestions:n.PropTypes.array.isRequired,handleClick:n.PropTypes.func.isRequired,handleHover:n.PropTypes.func.isRequired,minQueryLength:n.PropTypes.number,shouldRenderSuggestions:n.PropTypes.func,classNames:n.PropTypes.object},markIt:function(t,e){var r=e.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&"),n=RegExp(r,"gi");return{__html:t.replace(n,"<mark>$&</mark>")}},shouldRenderSuggestions:function(t){var e=this.props,r=e.minQueryLength||2;return e.query.length<r},render:function(){var t=this.props,e=this.props.suggestions.map(function(e,r){return n.createElement("li",{key:r,onClick:t.handleClick.bind(null,r),onMouseOver:t.handleHover.bind(null,r),className:r==t.selectedIndex?"active":""},n.createElement("span",{dangerouslySetInnerHTML:this.markIt(e,t.query)}))}.bind(this));return 0===e.length||null!=this.props.shouldRenderSuggestions&&this.shouldRenderSuggestions(t.query)||this.props.shouldRenderSuggestions(t.query)?null:n.createElement("div",{className:this.props.classNames.suggestions},n.createElement("ul",null," ",e," "))}});t.exports=o},function(t,e,r){"use strict";function n(t,e){return{connectDragSource:t.dragSource(),isDragging:e.isDragging()}}function o(t,e){return{connectDropTarget:t.dropTarget()}}var i=r(27),a=r(45),s=a.DragSource,u=a.DropTarget,c=r(49),p={TAG:"tag"},f={beginDrag:function(t){return{id:t.tag.id}},canDrag:function(t){return!t.readOnly}},l={hover:function(t,e){var r=e.getItem().id;r!==t.id&&t.moveTag(r,t.tag.id)},canDrop:function(t){return!t.readOnly}},h=i.createClass({displayName:"Tag",propTypes:{labelField:i.PropTypes.string,onDelete:i.PropTypes.func.isRequired,tag:i.PropTypes.object.isRequired,moveTag:i.PropTypes.func,removeComponent:i.PropTypes.func,classNames:i.PropTypes.object},getDefaultProps:function(){return{labelField:"text"}},render:function(){var t=this.props.tag[this.props.labelField],e=this.props,r=e.connectDragSource,n=e.isDragging,o=e.connectDropTarget,a=e.readOnly,s=this.props.removeComponent,u=i.createClass({displayName:"RemoveComponent",render:function(){return a?i.createElement("span",null):s?i.createElement(s,this.props):i.createElement("a",this.props,"x")}}),c=i.createElement("span",{style:{opacity:n?0:1},className:this.props.classNames.tag},t,i.createElement(u,{className:this.props.classNames.remove,onClick:this.props.onDelete}));return this.props.moveTag?r(o(c)):c}});t.exports=c(s(p.TAG,f,n),u(p.TAG,l,o))(h)},function(t,e,r){function n(t){if(u(t)&&!s(t)&&!(t instanceof o)){if(t instanceof i)return t;if(f.call(t,"__chain__")&&f.call(t,"__wrapped__"))return c(t)}return new i(t)}var o=r(15),i=r(16),a=r(17),s=r(3),u=r(1),c=r(69),p=Object.prototype,f=p.hasOwnProperty;n.prototype=a.prototype,t.exports=n},function(t,e,r){var n=r(61),o=n();t.exports=o},function(t,e){function r(t,e){if("function"!=typeof t)throw new TypeError(n);return e=o(void 0===e?t.length-1:+e||0,0),function(){for(var r=arguments,n=-1,i=o(r.length-e,0),a=Array(i);++n<i;)a[n]=r[e+n];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var s=Array(e+1);for(n=-1;++n<e;)s[n]=r[n];return s[e]=a,t.apply(this,s)}}var n="Expected a function",o=Math.max;t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=t.length;++r<n&&e(t[r],r,t)!==!1;);return t}t.exports=r},function(t,e){function r(t,e,r){r||(r={});for(var n=-1,o=e.length;++n<o;){var i=e[n];r[i]=t[i]}return r}t.exports=r},function(t,e,r){var n=r(60),o=n();t.exports=o},function(t,e,r){function n(t,e){return o(t,e,i)}var o=r(53),i=r(20);t.exports=n},function(t,e,r){function n(t,e,r,l,h){if(!u(t))return t;var d=s(e)&&(a(e)||p(e)),g=d?void 0:f(e);return o(g||e,function(o,a){if(g&&(a=o,o=e[a]),c(o))l||(l=[]),h||(h=[]),i(t,e,a,n,r,l,h);else{var s=t[a],u=r?r(s,o,a,t,e):void 0,p=void 0===u;p&&(u=o),void 0===u&&(!d||a in t)||!p&&(u===u?u===s:s!==s)||(t[a]=u)}}),t}var o=r(51),i=r(56),a=r(3),s=r(5),u=r(2),c=r(1),p=r(32),f=r(74);t.exports=n},function(t,e,r){function n(t,e,r,n,f,l,h){for(var d=l.length,g=e[r];d--;)if(l[d]==g)return void(t[r]=h[d]);var v=t[r],y=f?f(v,g,r,t,e):void 0,m=void 0===y;m&&(y=g,s(g)&&(a(g)||c(g))?y=a(v)?v:s(v)?o(v):[]:u(g)||i(g)?y=i(v)?p(v):u(v)?v:{}:m=!1),l.push(g),h.push(y),m?t[r]=n(y,g,f,l,h):(y===y?y!==v:v===v)&&(t[r]=y)}var o=r(28),i=r(8),a=r(3),s=r(5),u=r(72),c=r(32),p=r(73);t.exports=n},function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}t.exports=r},function(t,e,r){function n(t,e,r){if("function"!=typeof t)return o;if(void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 3:return function(r,n,o){return t.call(e,r,n,o)};case 4:return function(r,n,o,i){return t.call(e,r,n,o,i)};case 5:return function(r,n,o,i,a){return t.call(e,r,n,o,i,a)}}return function(){return t.apply(e,arguments)}}var o=r(76);t.exports=n},function(t,e,r){function n(t){return a(function(e,r){var n=-1,a=null==e?0:r.length,s=a>2?r[a-2]:void 0,u=a>2?r[2]:void 0,c=a>1?r[a-1]:void 0;for("function"==typeof s?(s=o(s,c,5),a-=2):(s="function"==typeof c?c:void 0,a-=s?1:0),u&&i(r[0],r[1],u)&&(s=3>a?void 0:s,a=1);++n<a;){var p=r[n];p&&t(e,p,s)}return e})}var o=r(58),i=r(63),a=r(50);t.exports=n},function(t,e,r){function n(t){return function(e,r,n){for(var i=o(e),a=n(e),s=a.length,u=t?s:-1;t?u--:++u<s;){var c=a[u];if(r(i[c],c,i)===!1)break}return e}}var o=r(68);t.exports=n},function(t,e,r){function n(t){return function(){for(var e,r=arguments.length,n=t?r:-1,g=0,v=Array(r);t?n--:++n<r;){var y=v[g++]=arguments[n];if("function"!=typeof y)throw new TypeError(d);!e&&o.prototype.thru&&"wrapper"==a(y)&&(e=new o([],!0))}for(n=e?-1:r;++n<r;){y=v[n];var m=a(y),x="wrapper"==m?i(y):void 0;e=x&&u(x[0])&&x[1]==(f|c|p|l)&&!x[4].length&&1==x[9]?e[a(x[0])].apply(e,x[3]):1==y.length&&u(y)?e[m]():e.thru(y)}return function(){var t=arguments,n=t[0];if(e&&1==t.length&&s(n)&&n.length>=h)return e.plant(n).value();for(var o=0,i=r?v[o].apply(this,t):n;++o<r;)i=v[o].call(this,i);return i}}}var o=r(16),i=r(30),a=r(31),s=r(3),u=r(64),c=8,p=32,f=128,l=256,h=200,d="Expected a function";t.exports=n},function(t,e,r){var n=r(57),o=n("length");t.exports=o},function(t,e,r){function n(t,e,r){if(!a(r))return!1;var n=typeof e;if("number"==n?o(r)&&i(e,r.length):"string"==n&&e in r){var s=r[e];return t===t?t===s:s!==s}return!1}var o=r(5),i=r(19),a=r(2);t.exports=n},function(t,e,r){function n(t){var e=a(t),r=s[e];if("function"!=typeof r||!(e in o.prototype))return!1;if(t===r)return!0;var n=i(r);return!!n&&t===n[0]}var o=r(15),i=r(30),a=r(31),s=r(48);t.exports=n},function(t,e,r){(function(e){var n=r(18),o=n(e,"WeakMap"),i=o&&new o;t.exports=i}).call(e,function(){return this}())},function(t,e){var r={};t.exports=r},function(t,e,r){function n(t){for(var e=u(t),r=e.length,n=r&&t.length,c=!!n&&s(n)&&(i(t)||o(t)),f=-1,l=[];++f<r;){var h=e[f];(c&&a(h,n)||p.call(t,h))&&l.push(h)}return l}var o=r(8),i=r(3),a=r(19),s=r(6),u=r(20),c=Object.prototype,p=c.hasOwnProperty;t.exports=n},function(t,e,r){function n(t){return o(t)?t:Object(t)}var o=r(2);t.exports=n},function(t,e,r){function n(t){return t instanceof o?t.clone():new i(t.__wrapped__,t.__chain__,a(t.__actions__))}var o=r(15),i=r(16),a=r(28);t.exports=n},function(t,e,r){function n(t){return o(t)&&s.call(t)==i}var o=r(2),i="[object Function]",a=Object.prototype,s=a.toString;t.exports=n},function(t,e,r){function n(t){return null==t?!1:o(t)?p.test(u.call(t)):i(t)&&a.test(t)}var o=r(70),i=r(1),a=/^\[object .+?Constructor\]$/,s=Object.prototype,u=Function.prototype.toString,c=s.hasOwnProperty,p=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){var e;if(!a(t)||p.call(t)!=s||i(t)||!c.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var r;return o(t,function(t,e){r=e}),void 0===r||c.call(t,r)}var o=r(54),i=r(8),a=r(1),s="[object Object]",u=Object.prototype,c=u.hasOwnProperty,p=u.toString;t.exports=n},function(t,e,r){function n(t){return o(t,i(t))}var o=r(52),i=r(20);t.exports=n},function(t,e,r){var n=r(18),o=r(5),i=r(2),a=r(67),s=n(Object,"keys"),u=s?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&o(t)?a(t):i(t)?s(t):[]}:a;t.exports=u},function(t,e,r){var n=r(55),o=r(59),i=o(n);t.exports=i},function(t,e){function r(t){return t}t.exports=r},function(t,e){function r(){}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=r(138),a=n(i),s=r(139),u=n(s),c=function(){function t(){o(this,t),this.entered=[]}return t.prototype.enter=function(t){var e=this.entered.length;return this.entered=a["default"](this.entered.filter(function(e){return document.documentElement.contains(e)&&(!e.contains||e.contains(t))}),[t]),0===e&&this.entered.length>0},t.prototype.leave=function(t){var e=this.entered.length;return this.entered=u["default"](this.entered.filter(function(t){return document.documentElement.contains(t)}),t),e>0&&0===this.entered.length},t.prototype.reset=function(){this.entered=[]},t}();e["default"]=c,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=r(129),s=o(a),u=r(85),c=o(u),p=r(78),f=o(p),l=r(33),h=r(82),d=r(81),g=r(21),v=n(g),y=function(){function t(e){i(this,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new f["default"],this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this)}return t.prototype.setup=function(){if("undefined"!=typeof window){if(this.constructor.isSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.constructor.isSetUp=!0,this.addEventListeners(window)}},t.prototype.teardown=function(){"undefined"!=typeof window&&(this.constructor.isSetUp=!1,this.removeEventListeners(window),this.clearCurrentDragSourceNode())},t.prototype.addEventListeners=function(t){t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.removeEventListeners=function(t){t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0)},t.prototype.connectDragPreview=function(t,e,r){var n=this;return this.sourcePreviewNodeOptions[t]=r,this.sourcePreviewNodes[t]=e,function(){delete n.sourcePreviewNodes[t],delete n.sourcePreviewNodeOptions[t]}},t.prototype.connectDragSource=function(t,e,r){var n=this;this.sourceNodes[t]=e,this.sourceNodeOptions[t]=r;var o=function(e){return n.handleDragStart(e,t)},i=function(e){return n.handleSelectStart(e,t)};return e.setAttribute("draggable",!0),e.addEventListener("dragstart",o),e.addEventListener("selectstart",i),function(){delete n.sourceNodes[t],delete n.sourceNodeOptions[t],e.removeEventListener("dragstart",o),e.removeEventListener("selectstart",i),e.setAttribute("draggable",!1)}},t.prototype.connectDropTarget=function(t,e){var r=this,n=function(e){return r.handleDragEnter(e,t)},o=function(e){return r.handleDragOver(e,t)},i=function(e){return r.handleDrop(e,t)};return e.addEventListener("dragenter",n),e.addEventListener("dragover",o),e.addEventListener("drop",i),function(){e.removeEventListener("dragenter",n),e.removeEventListener("dragover",o),e.removeEventListener("drop",i)}},t.prototype.getCurrentSourceNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions[t];return s["default"](e||{},{dropEffect:"move"})},t.prototype.getCurrentDropEffect=function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect},t.prototype.getCurrentSourcePreviewNodeOptions=function(){var t=this.monitor.getSourceId(),e=this.sourcePreviewNodeOptions[t];return s["default"](e||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})},t.prototype.getSourceClientOffset=function(t){return h.getNodeClientOffset(this.sourceNodes[t])},t.prototype.isDraggingNativeItem=function(){var t=this.monitor.getItemType();return Object.keys(v).some(function(e){return v[e]===t})},t.prototype.beginDragNativeItem=function(t){this.clearCurrentDragSourceNode();var e=d.createNativeDragSource(t);this.currentNativeSource=new e,this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),l.isFirefox()&&window.addEventListener("mousemove",this.endDragNativeItem,!0)},t.prototype.endDragNativeItem=function(){this.isDraggingNativeItem()&&(l.isFirefox()&&window.removeEventListener("mousemove",this.endDragNativeItem,!0),this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},t.prototype.endDragIfSourceWasRemovedFromDOM=function(){var t=this.currentDragSourceNode;document.body.contains(t)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.setCurrentDragSourceNode=function(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.currentDragSourceNodeOffset=h.getNodeClientOffset(t),this.currentDragSourceNodeOffsetChanged=!1,window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t.prototype.clearCurrentDragSourceNode=function(){return this.currentDragSourceNode?(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0):!1},t.prototype.checkIfCurrentDragSourceRectChanged=function(){var t=this.currentDragSourceNode;return t?this.currentDragSourceNodeOffsetChanged?!0:(this.currentDragSourceNodeOffsetChanged=!c["default"](h.getNodeClientOffset(t),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged):!1},t.prototype.handleTopDragStartCapture=function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},t.prototype.handleDragStart=function(t,e){this.dragStartSourceIds.unshift(e)},t.prototype.handleTopDragStart=function(t){var e=this,r=this.dragStartSourceIds;this.dragStartSourceIds=null;var n=h.getEventClientOffset(t);this.actions.beginDrag(r,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});var o=t.dataTransfer,i=d.matchNativeItemType(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var a=this.monitor.getSourceId(),s=this.sourceNodes[a],u=this.sourcePreviewNodes[a]||s,c=this.getCurrentSourcePreviewNodeOptions(),p=c.anchorX,f=c.anchorY,l={anchorX:p,anchorY:f},g=h.getDragPreviewOffset(s,u,n,l);o.setDragImage(u,g.x,g.y)}try{o.setData("application/json",{})}catch(v){}this.setCurrentDragSourceNode(t.target);var y=this.getCurrentSourcePreviewNodeOptions(),m=y.captureDraggingState;m?this.actions.publishDragSource():setTimeout(function(){return e.actions.publishDragSource()})}else if(i)this.beginDragNativeItem(i);else{if(!(o.types||t.target.hasAttribute&&t.target.hasAttribute("draggable")))return;t.preventDefault()}},t.prototype.handleTopDragEndCapture=function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()},t.prototype.handleTopDragEnterCapture=function(t){this.dragEnterTargetIds=[];var e=this.enterLeaveCounter.enter(t.target);if(e&&!this.monitor.isDragging()){var r=t.dataTransfer,n=d.matchNativeItemType(r);n&&this.beginDragNativeItem(n)}},t.prototype.handleDragEnter=function(t,e){this.dragEnterTargetIds.unshift(e)},t.prototype.handleTopDragEnter=function(t){var e=this,r=this.dragEnterTargetIds;if(this.dragEnterTargetIds=[],this.monitor.isDragging()){l.isFirefox()||this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n&&(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect())}},t.prototype.handleTopDragOverCapture=function(){this.dragOverTargetIds=[]},t.prototype.handleDragOver=function(t,e){this.dragOverTargetIds.unshift(e)},t.prototype.handleTopDragOver=function(t){var e=this,r=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer.dropEffect="none");this.actions.hover(r,{clientOffset:h.getEventClientOffset(t)});var n=r.some(function(t){return e.monitor.canDropOnTarget(t)});n?(t.preventDefault(),t.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(t.preventDefault(),t.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(t.preventDefault(),t.dataTransfer.dropEffect="move")},t.prototype.handleTopDragLeaveCapture=function(t){this.isDraggingNativeItem()&&t.preventDefault();var e=this.enterLeaveCounter.leave(t.target);e&&this.isDraggingNativeItem()&&this.endDragNativeItem()},t.prototype.handleTopDropCapture=function(t){this.dropTargetIds=[],t.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(t.dataTransfer),
2
+ this.enterLeaveCounter.reset()},t.prototype.handleDrop=function(t,e){this.dropTargetIds.unshift(e)},t.prototype.handleTopDrop=function(t){var e=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:h.getEventClientOffset(t)}),this.actions.drop(),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()},t.prototype.handleSelectStart=function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},t}();e["default"]=y,t.exports=e["default"]},function(t,e){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var n=function(){function t(e,n){r(this,t);for(var o=e.length,i=[],a=0;o>a;a++)i.push(a);i.sort(function(t,r){return e[t]<e[r]?-1:1});for(var s=[],u=[],c=[],p=void 0,f=void 0,a=0;o-1>a;a++)p=e[a+1]-e[a],f=n[a+1]-n[a],u.push(p),s.push(f),c.push(f/p);for(var l=[c[0]],a=0;a<u.length-1;a++){var h=c[a],d=c[a+1];if(0>=h*d)l.push(0);else{p=u[a];var g=u[a+1],v=p+g;l.push(3*v/((v+g)/h+(v+p)/d))}}l.push(c[c.length-1]);for(var y=[],m=[],x=void 0,a=0;a<l.length-1;a++){x=c[a];var D=l[a],_=1/u[a],v=D+l[a+1]-x-x;y.push((x-D-v)*_),m.push(v*_*_)}this.xs=e,this.ys=n,this.c1s=l,this.c2s=y,this.c3s=m}return t.prototype.interpolate=function(t){var e=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=e.length-1;if(t===e[a])return r[a];for(var s=0,u=i.length-1,c=void 0;u>=s;){c=Math.floor(.5*(s+u));var p=e[c];if(t>p)s=c+1;else{if(!(p>t))return r[c];u=c-1}}a=Math.max(0,u);var f=t-e[a],l=f*f;return r[a]+n[a]*f+o[a]*l+i[a]*f*l},t}();e["default"]=n,t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e,r){var n=e.reduce(function(e,r){return e||t.getData(r)},null);return null!=n?n:r}function s(t){var e=l[t],r=e.exposeProperty,n=e.matchesTypes,a=e.getData;return function(){function t(){o(this,t),this.item=Object.defineProperties({},i({},r,{get:function(){return console.warn("Browser doesn't allow reading \""+r+'" until the drop event.'),null},configurable:!0,enumerable:!0}))}return t.prototype.mutateItemByReadingDataTransfer=function(t){delete this.item[r],this.item[r]=a(t,n)},t.prototype.canDrag=function(){return!0},t.prototype.beginDrag=function(){return this.item},t.prototype.isDragging=function(t,e){return e===t.getSourceId()},t.prototype.endDrag=function(){},t}()}function u(t){var e=Array.prototype.slice.call(t.types||[]);return Object.keys(l).filter(function(t){var r=l[t].matchesTypes;return r.some(function(t){return e.indexOf(t)>-1})})[0]||null}e.__esModule=!0;var c;e.createNativeDragSource=s,e.matchNativeItemType=u;var p=r(21),f=n(p),l=(c={},i(c,f.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(t){return Array.prototype.slice.call(t.files)}}),i(c,f.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(t,e){return a(t,e,"").split("\n")}}),i(c,f.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(t,e){return a(t,e,"")}}),c)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t){var e=t.nodeType===p?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,o=r.left;return{x:o,y:n}}function i(t){return{x:t.clientX,y:t.clientY}}function a(t,e,r,n){var i="IMG"===e.nodeName&&(s.isFirefox()||!document.documentElement.contains(e)),a=i?t:e,u=o(a),p={x:r.x-u.x,y:r.y-u.y},f=t.offsetWidth,l=t.offsetHeight,h=n.anchorX,d=n.anchorY,g=i?e.width:f,v=i?e.height:l;s.isSafari()&&i?(v/=window.devicePixelRatio,g/=window.devicePixelRatio):s.isFirefox()&&!i&&(v*=window.devicePixelRatio,g*=window.devicePixelRatio);var y=new c["default"]([0,.5,1],[p.x,p.x/f*g,p.x+g-f]),m=new c["default"]([0,.5,1],[p.y,p.y/l*v,p.y+v-l]),x=y.interpolate(h),D=m.interpolate(d);return s.isSafari()&&i&&(D+=(window.devicePixelRatio-1)*v),{x:x,y:D}}e.__esModule=!0,e.getNodeClientOffset=o,e.getEventClientOffset=i,e.getDragPreviewOffset=a;var s=r(33),u=r(80),c=n(u),p=1},function(t,e){"use strict";function r(){return n||(n=new Image,n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),n}e.__esModule=!0,e["default"]=r;var n=void 0;t.exports=e["default"]},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return new s["default"](t)}e.__esModule=!0,e["default"]=i;var a=r(79),s=o(a),u=r(83),c=o(u),p=r(21),f=n(p);e.NativeTypes=f,e.getEmptyImage=c["default"]},function(t,e){"use strict";function r(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++){if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;var a=t[r[i]],s=e[r[i]];if(a!==s)return!1}return!0}e.__esModule=!0,e["default"]=r,t.exports=e["default"]},function(t,e,r){function n(){}var o=r(10),i=Object.prototype;n.prototype=o?o(null):i,t.exports=n},function(t,e,r){var n=r(23),o=n.Reflect;t.exports=o},function(t,e,r){var n=r(22),o=r(23),i=n(o,"Set");t.exports=i},function(t,e){function r(t,e){for(var r=-1,n=t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}t.exports=r},function(t,e,r){function n(t,e,r,n){return void 0===t||o(t,i[r])&&!a.call(n,r)?e:t}var o=r(11),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){var n=t[e];a.call(t,e)&&o(n,r)&&(void 0!==r||e in t)||(t[e]=r)}var o=r(11),i=Object.prototype,a=i.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);if(0>r)return!1;var n=t.length-1;return r==n?t.pop():a.call(t,r,1),!0}var o=r(9),i=Array.prototype,a=i.splice;t.exports=n},function(t,e,r){function n(t,e){var r=o(t,e);return 0>r?void 0:t[r][1]}var o=r(9);t.exports=n},function(t,e,r){function n(t,e){return o(t,e)>-1}var o=r(9);t.exports=n},function(t,e,r){function n(t,e,r){var n=o(t,e);0>n?t.push([e,r]):t[n][1]=r}var o=r(9);t.exports=n},function(t,e,r){function n(t,e,r,n){var f=-1,l=i,h=!0,d=t.length,g=[],v=e.length;if(!d)return g;r&&(e=s(e,u(r))),n?(l=a,h=!1):e.length>=p&&(l=c,h=!1,e=new o(e));t:for(;++f<d;){var y=t[f],m=r?r(y):y;if(h&&m===m){for(var x=v;x--;)if(e[x]===m)continue t;g.push(y)}else l(e,m,n)||g.push(y)}return g}var o=r(35),i=r(37),a=r(38),s=r(89),u=r(103),c=r(39),p=200;t.exports=n},function(t,e,r){function n(t,e,r,a,s){var u=-1,c=t.length;for(r||(r=i),s||(s=[]);++u<c;){var p=t[u];e>0&&r(p)?e>1?n(p,e-1,r,a,s):o(s,p):a||(s[s.length]=p)}return s}var o=r(90),i=r(116);t.exports=n},function(t,e,r){function n(t,e,r){if(e!==e)return o(t,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}var o=r(115);t.exports=n},function(t,e,r){function n(t){t=null==t?t:Object(t);var e=[];for(var r in t)e.push(r);return e}var o=r(87),i=r(120),a=Object.prototype,s=o?o.enumerate:void 0,u=a.propertyIsEnumerable;s&&!u.call({valueOf:1},"valueOf")&&(n=function(t){return i(s(t))}),t.exports=n},function(t,e){function r(t){return function(e){return null==e?void 0:e[t]}}t.exports=r},function(t,e){function r(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}t.exports=r},function(t,e){function r(t){return function(e){return t(e)}}t.exports=r},function(t,e,r){function n(t,e,r){var n=-1,f=i,l=t.length,h=!0,d=[],g=d;if(r)h=!1,f=a;else if(l>=p){var v=e?null:u(t);if(v)return c(v);h=!1,f=s,g=new o}else g=e?[]:d;t:for(;++n<l;){var y=t[n],m=e?e(y):y;if(h&&m===m){for(var x=g.length;x--;)if(g[x]===m)continue t;e&&g.push(m),d.push(y)}else f(g,m,r)||(g!==d&&g.push(m),d.push(y))}return d}var o=r(35),i=r(37),a=r(38),s=r(39),u=r(109),c=r(126),p=200;t.exports=n},function(t,e,r){function n(t){var e=this.__data__;if(o(t)){var r=e.__data__,n="string"==typeof t?r.string:r.hash;n[t]=i}else e.set(t,i)}var o=r(4),i="__lodash_hash_undefined__";t.exports=n},function(t,e){function r(t){return t&&t.Object===Object?t:null}t.exports=r},function(t,e,r){function n(t,e,r,n){r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],u=n?n(r[s],t[s],s,r,t):t[s];o(r,s,u)}return r}var o=r(92);t.exports=n},function(t,e,r){function n(t){return i(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a="function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=3>i?void 0:a,i=1),e=Object(e);++n<i;){var u=r[n];u&&t(e,u,n,a)}return e})}var o=r(118),i=r(14);t.exports=n},function(t,e,r){var n=r(88),o=r(135),i=n&&2===new n([1,2]).size?function(t){return new n(t)}:o;t.exports=i},function(t,e,r){var n=r(101),o=n("length");t.exports=o},function(t,e,r){function n(t,e){return o(t,e)&&delete t[e]}var o=r(40);t.exports=n},function(t,e,r){function n(t,e){if(o){var r=t[e];return r===i?void 0:r}return s.call(t,e)?t[e]:void 0}var o=r(10),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e,r){t[e]=o&&void 0===r?i:r}var o=r(10),i="__lodash_hash_undefined__";t.exports=n},function(t,e,r){function n(t){var e=t?t.length:void 0;return s(e)&&(a(t)||u(t)||i(t))?o(e,String):null}var o=r(102),i=r(42),a=r(24),s=r(44),u=r(131);t.exports=n},function(t,e){function r(t,e,r){for(var n=t.length,o=e+(r?0:-1);r?o--:++o<n;){var i=t[o];if(i!==i)return o}return-1}t.exports=r},function(t,e,r){function n(t){return a(t)&&(i(t)||o(t))}var o=r(42),i=r(24),a=r(12);t.exports=n},function(t,e){function r(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(r){}return e}t.exports=r},function(t,e,r){function n(t,e,r){if(!s(r))return!1;var n=typeof e;return("number"==n?i(r)&&a(e,r.length):"string"==n&&e in r)?o(r[e],t):!1}var o=r(11),i=r(43),a=r(41),s=r(13);t.exports=n},function(t,e){function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}var n=Object.prototype;t.exports=r},function(t,e){function r(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}t.exports=r},function(t,e,r){function n(){this.__data__={hash:new o,map:i?new i:[],string:new o}}var o=r(86),i=r(7);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return s(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map["delete"](t):i(e.map,t)}var o=r(7),i=r(93),a=r(111),s=r(4);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return s(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.get(t):i(e.map,t)}var o=r(7),i=r(94),a=r(112),s=r(4);t.exports=n},function(t,e,r){function n(t){var e=this.__data__;return s(t)?a("string"==typeof t?e.string:e.hash,t):o?e.map.has(t):i(e.map,t)}var o=r(7),i=r(95),a=r(40),s=r(4);t.exports=n},function(t,e,r){function n(t,e){var r=this.__data__;return s(t)?a("string"==typeof t?r.string:r.hash,t,e):o?r.map.set(t,e):i(r.map,t,e),this}var o=r(7),i=r(96),a=r(113),s=r(4);t.exports=n},function(t,e){function r(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}t.exports=r},function(t,e){function r(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var n=Function.prototype.toString;t.exports=r},function(t,e,r){var n=r(107),o=r(108),i=r(133),a=o(function(t,e,r,o){n(e,i(e),t,o)});t.exports=a},function(t,e,r){var n=r(36),o=r(91),i=r(128),a=r(14),s=a(function(t){return t.push(void 0,o),n(i,void 0,t)});t.exports=s},function(t,e,r){function n(t){if(!a(t))return!1;var e=o(t)||i(t)?h:c;return e.test(s(t))}var o=r(25),i=r(117),a=r(13),s=r(127),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,p=Object.prototype,f=Function.prototype.toString,l=p.hasOwnProperty,h=RegExp("^"+f.call(l).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},function(t,e,r){function n(t){return"string"==typeof t||!o(t)&&i(t)&&u.call(t)==a}var o=r(24),i=r(26),a="[object String]",s=Object.prototype,u=s.toString;t.exports=n},function(t,e,r){function n(t){return"symbol"==typeof t||o(t)&&s.call(t)==i}var o=r(26),i="[object Symbol]",a=Object.prototype,s=a.toString;t.exports=n},function(t,e,r){function n(t){for(var e=-1,r=s(t),n=o(t),u=n.length,p=i(t),f=!!p,l=p||[],h=l.length;++e<u;){var d=n[e];f&&("length"==d||a(d,h))||"constructor"==d&&(r||!c.call(t,d))||l.push(d)}return l}var o=r(100),i=r(114),a=r(41),s=r(119),u=Object.prototype,c=u.hasOwnProperty;t.exports=n},function(t,e,r){function n(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(i);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(n.Cache||o),r}var o=r(34),i="Expected a function";n.Cache=o,t.exports=n},function(t,e){function r(){}t.exports=r},function(t,e,r){function n(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=0>t?-1:1;return e*a}var r=t%1;return t===t?r?t-r:t:0}var o=r(137),i=1/0,a=1.7976931348623157e308;t.exports=n},function(t,e,r){function n(t){if("number"==typeof t)return t;if(a(t))return s;if(i(t)){var e=o(t.valueOf)?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var r=p.test(t);return r||f.test(t)?l(t.slice(2),r?2:8):c.test(t)?s:+t}var o=r(25),i=r(13),a=r(132),s=NaN,u=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=n},function(t,e,r){var n=r(98),o=r(104),i=r(12),a=r(14),s=a(function(t){return o(n(t,1,i,!0))});t.exports=s},function(t,e,r){var n=r(97),o=r(12),i=r(14),a=i(function(t,e){return o(t)?n(t,e):[]});t.exports=a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){t.exports=r}])});
metadata ADDED
@@ -0,0 +1,127 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: react-tags-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.6
5
+ platform: ruby
6
+ authors:
7
+ - Brandon Braun
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: react-dnd-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: React-Tags for Rails Asset Pipeline
84
+ email:
85
+ - brandon.braun@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - Gemfile
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
97
+ - bin/console
98
+ - bin/setup
99
+ - lib/react/tags/rails.rb
100
+ - lib/react/tags/rails/version.rb
101
+ - react-tags-rails.gemspec
102
+ - vendor/assets/javascript/reactTags.min.js
103
+ homepage: https://github.com/bmb330/react-tags-rails
104
+ licenses:
105
+ - MIT
106
+ metadata: {}
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 2.5.1
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: React-Tags for Rails
127
+ test_files: []