locomotivecms 3.1.2 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1076) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/app/api/locomotive/api/entities/content_type_entity.rb +1 -1
  4. data/app/api/locomotive/api/exception_rescuers.rb +1 -1
  5. data/app/api/locomotive/api/forms/content_type_form.rb +2 -1
  6. data/app/api/locomotive/api/resources/content_type_resource.rb +2 -0
  7. data/app/assets/javascripts/locomotive/views/editable_elements/iframe_view.js.coffee +13 -9
  8. data/app/assets/javascripts/locomotive/views/inputs/rte_view.js.coffee.erb +11 -6
  9. data/app/assets/stylesheets/locomotive/application.scss +1 -0
  10. data/app/assets/stylesheets/locomotive/new/_flags.scss.erb +21 -0
  11. data/app/assets/stylesheets/locomotive/old/form/_popover.scss +14 -10
  12. data/app/assets/stylesheets/locomotive/old/form/_select2.scss +2 -2
  13. data/app/helpers/locomotive/base_helper.rb +19 -7
  14. data/app/helpers/locomotive/content_types_helper.rb +1 -1
  15. data/app/helpers/locomotive/editable_elements_helper.rb +15 -0
  16. data/app/helpers/locomotive/my_account_helper.rb +6 -10
  17. data/app/helpers/locomotive/pages_helper.rb +2 -1
  18. data/app/helpers/locomotive/shared/pages_helper.rb +21 -26
  19. data/app/helpers/locomotive/sites_helper.rb +11 -10
  20. data/app/jobs/locomotive/send_pony_email_job.rb +37 -0
  21. data/app/models/locomotive/concerns/content_entry/counter.rb +13 -2
  22. data/app/models/locomotive/concerns/content_type/filter_fields.rb +26 -0
  23. data/app/models/locomotive/concerns/page/layout.rb +4 -0
  24. data/app/models/locomotive/concerns/page/to_steam.rb +20 -0
  25. data/app/models/locomotive/concerns/site/access_points.rb +1 -0
  26. data/app/models/locomotive/concerns/site/metafields.rb +1 -1
  27. data/app/models/locomotive/content_type.rb +1 -10
  28. data/app/models/locomotive/page.rb +1 -0
  29. data/app/models/locomotive/site.rb +0 -4
  30. data/app/policies/locomotive/site_policy.rb +2 -2
  31. data/app/services/locomotive/content_entry_service.rb +2 -3
  32. data/app/services/locomotive/page_parsing_service.rb +11 -7
  33. data/app/views/locomotive/current_site/_locale.html.slim +2 -2
  34. data/app/views/locomotive/current_site/form/_access_points.html.slim +1 -0
  35. data/app/views/locomotive/editable_elements/_edit.html.slim +1 -1
  36. data/app/views/locomotive/editable_elements/index_without_preview.html.slim +1 -1
  37. data/app/views/locomotive/layouts/account.html.slim +1 -2
  38. data/app/views/locomotive/layouts/application.html.slim +0 -10
  39. data/app/views/locomotive/pages/_header.html.slim +1 -1
  40. data/app/views/locomotive/shared/_head.html.slim +2 -2
  41. data/app/views/locomotive/shared/_locale_picker_link.html.slim +2 -1
  42. data/app/views/locomotive/shared/rte/_image_popover.html.slim +17 -15
  43. data/app/views/locomotive/shared/rte/_link_popover.html.slim +17 -15
  44. data/app/views/locomotive/shared/rte/_markdown_toolbar.html.slim +1 -1
  45. data/app/views/locomotive/shared/rte/_table_popover.html.slim +15 -13
  46. data/app/views/locomotive/shared/sidebar/_page.html.slim +6 -6
  47. data/app/views/locomotive/sites/_site.html.slim +1 -1
  48. data/config/locales/carrierwave.es.yml +4 -0
  49. data/config/locales/carrierwave.sv.yml +4 -0
  50. data/config/locales/carrierwave.uk.yml +4 -0
  51. data/config/locales/de.yml +10 -0
  52. data/config/locales/default.es.yml +13 -0
  53. data/config/locales/default.sv.yml +13 -0
  54. data/config/locales/default.uk.yml +13 -0
  55. data/config/locales/devise.es.yml +61 -0
  56. data/config/locales/devise.sv.yml +61 -0
  57. data/config/locales/devise.uk.yml +61 -0
  58. data/config/locales/es.yml +332 -0
  59. data/config/locales/flash.es.yml +82 -0
  60. data/config/locales/flash.sv.yml +82 -0
  61. data/config/locales/flash.uk.yml +82 -0
  62. data/config/locales/inputs.es.yml +19 -0
  63. data/config/locales/inputs.sv.yml +19 -0
  64. data/config/locales/inputs.uk.yml +19 -0
  65. data/config/locales/mongoid.es.yml +47 -0
  66. data/config/locales/mongoid.sv.yml +47 -0
  67. data/config/locales/mongoid.uk.yml +47 -0
  68. data/config/locales/pt-BR.yml +4 -0
  69. data/config/locales/ru.yml +4 -0
  70. data/config/locales/simple_form.en.yml +1 -0
  71. data/config/locales/simple_form.es.yml +153 -0
  72. data/config/locales/simple_form.fr.yml +1 -0
  73. data/config/locales/simple_form.sv.yml +153 -0
  74. data/config/locales/simple_form.uk.yml +153 -0
  75. data/config/locales/sv.yml +332 -0
  76. data/config/locales/uk.yml +332 -0
  77. data/config/locales/zh-CN.yml +5 -1
  78. data/lib/generators/locomotive/install/templates/locomotive.rb +2 -2
  79. data/lib/locomotive/middlewares/site.rb +4 -3
  80. data/lib/locomotive/steam/middlewares/page_editing.rb +10 -0
  81. data/lib/locomotive/steam/services/api_content_entry_service.rb +58 -0
  82. data/lib/locomotive/steam/services/api_entry_submission_service.rb +20 -18
  83. data/lib/locomotive/steam/services/async_email_service.rb +36 -0
  84. data/lib/locomotive/steam/services/liquid_parser_with_cache_service.rb +16 -0
  85. data/lib/locomotive/steam_adaptor.rb +8 -4
  86. data/lib/locomotive/version.rb +1 -1
  87. data/lib/tasks/locomotive.rake +5 -0
  88. data/spec/dummy/config/initializers/locomotive.rb +1 -1
  89. data/spec/lib/locomotive/steam/services/api_entry_submission_service_spec.rb +6 -3
  90. data/spec/lib/locomotive/steam/services/async_email_service_spec.rb +45 -0
  91. data/spec/models/locomotive/concerns/page/layout_spec.rb +26 -0
  92. data/spec/models/locomotive/concerns/site/metafields_spec.rb +1 -1
  93. data/spec/requests/locomotive/steam/cache_spec.rb +1 -1
  94. data/vendor/assets/components/locomotive_sources/backbone/LICENSE +22 -0
  95. data/vendor/assets/components/locomotive_sources/backbone/backbone-min.js +2 -0
  96. data/vendor/assets/components/locomotive_sources/backbone/backbone-min.map +1 -0
  97. data/vendor/assets/components/locomotive_sources/backbone/backbone.js +1894 -0
  98. data/vendor/assets/components/locomotive_sources/backbone/bower.json +8 -0
  99. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/Gruntfile.js +82 -0
  100. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/LICENSE +20 -0
  101. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/README.md +92 -0
  102. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bootstrap-tagsinput.jquery.json +27 -0
  103. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/bower.json +42 -0
  104. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.js +87 -0
  105. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js +7 -0
  106. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-angular.min.js.map +1 -0
  107. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput-typeahead.css +49 -0
  108. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.css +55 -0
  109. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.js +663 -0
  110. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.less +50 -0
  111. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js +7 -0
  112. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js.map +1 -0
  113. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/dist/bootstrap-tagsinput.zip +0 -0
  114. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.css +67 -0
  115. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app.js +15 -0
  116. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs2.js +74 -0
  117. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/app_bs3.js +95 -0
  118. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/cities.json +16 -0
  119. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/assets/citynames.json +16 -0
  120. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/bootstrap-2.3.2.html +666 -0
  121. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/examples/index.html +742 -0
  122. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/karma.conf.js +20 -0
  123. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/package.json +47 -0
  124. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-angular.js +87 -0
  125. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput-typeahead.css +49 -0
  126. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.css +55 -0
  127. data/vendor/assets/components/locomotive_sources/bootstrap-tagsinput/src/bootstrap-tagsinput.js +663 -0
  128. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/CONTRIBUTING.md +38 -0
  129. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/Gruntfile.js +191 -0
  130. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/LICENSE +21 -0
  131. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/README.md +37 -0
  132. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/bower.json +35 -0
  133. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker-standalone.css +103 -0
  134. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css +373 -0
  135. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css +5 -0
  136. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js +9 -0
  137. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/component.json +9 -0
  138. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/composer.json +28 -0
  139. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ChangeLog.md +222 -0
  140. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/ContributorsGuide.md +126 -0
  141. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Events.md +96 -0
  142. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Extras.md +95 -0
  143. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/FAQ.md +22 -0
  144. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Functions.md +670 -0
  145. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Installing.md +161 -0
  146. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Options.md +473 -0
  147. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Changelog.md +6 -0
  148. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/Version 4 Contributors guide.md +6 -0
  149. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/docs/index.md +592 -0
  150. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/mkdocs.yml +17 -0
  151. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/package.json +43 -0
  152. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2552 -0
  153. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less +352 -0
  154. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/less/bootstrap-datetimepicker-build.less +17 -0
  155. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.CSS.nuspec +34 -0
  156. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/Bootstrap.v3.Datetimepicker.nuspec +34 -0
  157. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/NuGet.exe +0 -0
  158. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/nuget/install.ps1 +2 -0
  159. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +343 -0
  160. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
  161. data/vendor/assets/components/locomotive_sources/eonasdan-bootstrap-datetimepicker/tasks/bump_version.js +88 -0
  162. data/vendor/assets/components/locomotive_sources/jquery-timeago/CNAME +1 -0
  163. data/vendor/assets/components/locomotive_sources/jquery-timeago/CONTRIBUTING.md +37 -0
  164. data/vendor/assets/components/locomotive_sources/jquery-timeago/LICENSE.txt +22 -0
  165. data/vendor/assets/components/locomotive_sources/jquery-timeago/README.markdown +119 -0
  166. data/vendor/assets/components/locomotive_sources/jquery-timeago/Rakefile +22 -0
  167. data/vendor/assets/components/locomotive_sources/jquery-timeago/bower.json +12 -0
  168. data/vendor/assets/components/locomotive_sources/jquery-timeago/clock.png +0 -0
  169. data/vendor/assets/components/locomotive_sources/jquery-timeago/composer.json +32 -0
  170. data/vendor/assets/components/locomotive_sources/jquery-timeago/contrib/timeago-koext.js +14 -0
  171. data/vendor/assets/components/locomotive_sources/jquery-timeago/index.html +221 -0
  172. data/vendor/assets/components/locomotive_sources/jquery-timeago/jquery.timeago.js +225 -0
  173. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/README.md +27 -0
  174. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.af.js +20 -0
  175. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ar.js +96 -0
  176. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.bg.js +18 -0
  177. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.bs.js +49 -0
  178. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ca.js +18 -0
  179. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.cs.js +24 -0
  180. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.cy.js +20 -0
  181. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.da.js +18 -0
  182. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.de.js +18 -0
  183. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.dv.js +22 -0
  184. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.el.js +18 -0
  185. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.en-short.js +20 -0
  186. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.en.js +20 -0
  187. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.es-short.js +20 -0
  188. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.es.js +18 -0
  189. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.et.js +18 -0
  190. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.eu.js +17 -0
  191. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fa-short.js +20 -0
  192. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fa.js +22 -0
  193. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fi.js +28 -0
  194. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fr-short.js +16 -0
  195. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.fr.js +17 -0
  196. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.gl.js +18 -0
  197. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.he.js +16 -0
  198. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hr.js +49 -0
  199. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hu.js +18 -0
  200. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.hy.js +18 -0
  201. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.id.js +18 -0
  202. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.is.js +19 -0
  203. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.it-short.js +20 -0
  204. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.it.js +16 -0
  205. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ja.js +19 -0
  206. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.jv.js +18 -0
  207. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ko.js +20 -0
  208. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ky.js +34 -0
  209. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.lt.js +20 -0
  210. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.lv.js +20 -0
  211. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.mk.js +20 -0
  212. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.nl.js +20 -0
  213. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.no.js +18 -0
  214. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pl.js +31 -0
  215. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-br-short.js +20 -0
  216. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-br.js +18 -0
  217. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt-short.js +20 -0
  218. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.pt.js +16 -0
  219. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ro.js +18 -0
  220. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.rs.js +49 -0
  221. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.ru.js +34 -0
  222. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.rw.js +20 -0
  223. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.si.js +18 -0
  224. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sk.js +18 -0
  225. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sl.js +40 -0
  226. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sr.js +49 -0
  227. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.sv.js +18 -0
  228. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.th.js +20 -0
  229. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.tr.js +16 -0
  230. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.uk.js +34 -0
  231. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.uz.js +19 -0
  232. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.vi.js +20 -0
  233. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.zh-CN.js +20 -0
  234. data/vendor/assets/components/locomotive_sources/jquery-timeago/locales/jquery.timeago.zh-TW.js +20 -0
  235. data/vendor/assets/components/locomotive_sources/jquery-timeago/package.json +37 -0
  236. data/vendor/assets/components/locomotive_sources/jquery-timeago/timeago.jquery.json +30 -0
  237. data/vendor/assets/components/locomotive_sources/jquery/MIT-LICENSE.txt +21 -0
  238. data/vendor/assets/components/locomotive_sources/jquery/bower.json +28 -0
  239. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.js +9210 -0
  240. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.js +5 -0
  241. data/vendor/assets/components/locomotive_sources/jquery/dist/jquery.min.map +1 -0
  242. data/vendor/assets/components/locomotive_sources/jquery/src/ajax.js +786 -0
  243. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/jsonp.js +89 -0
  244. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/load.js +75 -0
  245. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseJSON.js +13 -0
  246. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/parseXML.js +28 -0
  247. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/script.js +64 -0
  248. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/nonce.js +5 -0
  249. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/var/rquery.js +3 -0
  250. data/vendor/assets/components/locomotive_sources/jquery/src/ajax/xhr.js +136 -0
  251. data/vendor/assets/components/locomotive_sources/jquery/src/attributes.js +11 -0
  252. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/attr.js +141 -0
  253. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/classes.js +158 -0
  254. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/prop.js +94 -0
  255. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/support.js +35 -0
  256. data/vendor/assets/components/locomotive_sources/jquery/src/attributes/val.js +161 -0
  257. data/vendor/assets/components/locomotive_sources/jquery/src/callbacks.js +205 -0
  258. data/vendor/assets/components/locomotive_sources/jquery/src/core.js +502 -0
  259. data/vendor/assets/components/locomotive_sources/jquery/src/core/access.js +60 -0
  260. data/vendor/assets/components/locomotive_sources/jquery/src/core/init.js +123 -0
  261. data/vendor/assets/components/locomotive_sources/jquery/src/core/parseHTML.js +39 -0
  262. data/vendor/assets/components/locomotive_sources/jquery/src/core/ready.js +97 -0
  263. data/vendor/assets/components/locomotive_sources/jquery/src/core/var/rsingleTag.js +4 -0
  264. data/vendor/assets/components/locomotive_sources/jquery/src/css.js +450 -0
  265. data/vendor/assets/components/locomotive_sources/jquery/src/css/addGetHookIf.js +22 -0
  266. data/vendor/assets/components/locomotive_sources/jquery/src/css/curCSS.js +57 -0
  267. data/vendor/assets/components/locomotive_sources/jquery/src/css/defaultDisplay.js +70 -0
  268. data/vendor/assets/components/locomotive_sources/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  269. data/vendor/assets/components/locomotive_sources/jquery/src/css/support.js +96 -0
  270. data/vendor/assets/components/locomotive_sources/jquery/src/css/swap.js +28 -0
  271. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/cssExpand.js +3 -0
  272. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/getStyles.js +12 -0
  273. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/isHidden.js +13 -0
  274. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rmargin.js +3 -0
  275. data/vendor/assets/components/locomotive_sources/jquery/src/css/var/rnumnonpx.js +5 -0
  276. data/vendor/assets/components/locomotive_sources/jquery/src/data.js +178 -0
  277. data/vendor/assets/components/locomotive_sources/jquery/src/data/Data.js +181 -0
  278. data/vendor/assets/components/locomotive_sources/jquery/src/data/accepts.js +20 -0
  279. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_priv.js +5 -0
  280. data/vendor/assets/components/locomotive_sources/jquery/src/data/var/data_user.js +5 -0
  281. data/vendor/assets/components/locomotive_sources/jquery/src/deferred.js +149 -0
  282. data/vendor/assets/components/locomotive_sources/jquery/src/deprecated.js +13 -0
  283. data/vendor/assets/components/locomotive_sources/jquery/src/dimensions.js +50 -0
  284. data/vendor/assets/components/locomotive_sources/jquery/src/effects.js +648 -0
  285. data/vendor/assets/components/locomotive_sources/jquery/src/effects/Tween.js +114 -0
  286. data/vendor/assets/components/locomotive_sources/jquery/src/effects/animatedSelector.js +13 -0
  287. data/vendor/assets/components/locomotive_sources/jquery/src/event.js +868 -0
  288. data/vendor/assets/components/locomotive_sources/jquery/src/event/ajax.js +13 -0
  289. data/vendor/assets/components/locomotive_sources/jquery/src/event/alias.js +39 -0
  290. data/vendor/assets/components/locomotive_sources/jquery/src/event/support.js +9 -0
  291. data/vendor/assets/components/locomotive_sources/jquery/src/exports/amd.js +24 -0
  292. data/vendor/assets/components/locomotive_sources/jquery/src/exports/global.js +32 -0
  293. data/vendor/assets/components/locomotive_sources/jquery/src/intro.js +44 -0
  294. data/vendor/assets/components/locomotive_sources/jquery/src/jquery.js +37 -0
  295. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation.js +580 -0
  296. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/_evalUrl.js +18 -0
  297. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/support.js +32 -0
  298. data/vendor/assets/components/locomotive_sources/jquery/src/manipulation/var/rcheckableType.js +3 -0
  299. data/vendor/assets/components/locomotive_sources/jquery/src/offset.js +207 -0
  300. data/vendor/assets/components/locomotive_sources/jquery/src/outro.js +1 -0
  301. data/vendor/assets/components/locomotive_sources/jquery/src/queue.js +142 -0
  302. data/vendor/assets/components/locomotive_sources/jquery/src/queue/delay.js +22 -0
  303. data/vendor/assets/components/locomotive_sources/jquery/src/selector-native.js +172 -0
  304. data/vendor/assets/components/locomotive_sources/jquery/src/selector-sizzle.js +14 -0
  305. data/vendor/assets/components/locomotive_sources/jquery/src/selector.js +1 -0
  306. data/vendor/assets/components/locomotive_sources/jquery/src/serialize.js +111 -0
  307. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.js +2067 -0
  308. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  309. data/vendor/assets/components/locomotive_sources/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  310. data/vendor/assets/components/locomotive_sources/jquery/src/traversing.js +199 -0
  311. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/findFilter.js +100 -0
  312. data/vendor/assets/components/locomotive_sources/jquery/src/traversing/var/rneedsContext.js +6 -0
  313. data/vendor/assets/components/locomotive_sources/jquery/src/var/arr.js +3 -0
  314. data/vendor/assets/components/locomotive_sources/jquery/src/var/class2type.js +4 -0
  315. data/vendor/assets/components/locomotive_sources/jquery/src/var/concat.js +5 -0
  316. data/vendor/assets/components/locomotive_sources/jquery/src/var/hasOwn.js +5 -0
  317. data/vendor/assets/components/locomotive_sources/jquery/src/var/indexOf.js +5 -0
  318. data/vendor/assets/components/locomotive_sources/jquery/src/var/pnum.js +3 -0
  319. data/vendor/assets/components/locomotive_sources/jquery/src/var/push.js +5 -0
  320. data/vendor/assets/components/locomotive_sources/jquery/src/var/rnotwhite.js +3 -0
  321. data/vendor/assets/components/locomotive_sources/jquery/src/var/slice.js +5 -0
  322. data/vendor/assets/components/locomotive_sources/jquery/src/var/strundefined.js +3 -0
  323. data/vendor/assets/components/locomotive_sources/jquery/src/var/support.js +4 -0
  324. data/vendor/assets/components/locomotive_sources/jquery/src/var/toString.js +5 -0
  325. data/vendor/assets/components/locomotive_sources/jquery/src/wrap.js +79 -0
  326. data/vendor/assets/components/locomotive_sources/moment-timezone/LICENSE +20 -0
  327. data/vendor/assets/components/locomotive_sources/moment-timezone/README.md +36 -0
  328. data/vendor/assets/components/locomotive_sources/moment-timezone/bower.json +18 -0
  329. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.js +1189 -0
  330. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data-2010-2020.min.js +7 -0
  331. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.js +1189 -0
  332. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone-with-data.min.js +7 -0
  333. data/vendor/assets/components/locomotive_sources/moment-timezone/builds/moment-timezone.min.js +6 -0
  334. data/vendor/assets/components/locomotive_sources/moment-timezone/changelog.md +101 -0
  335. data/vendor/assets/components/locomotive_sources/moment-timezone/composer.json +43 -0
  336. data/vendor/assets/components/locomotive_sources/moment-timezone/data/meta/latest.json +5012 -0
  337. data/vendor/assets/components/locomotive_sources/moment-timezone/data/packed/latest.json +590 -0
  338. data/vendor/assets/components/locomotive_sources/moment-timezone/data/unpacked/latest.json +124081 -0
  339. data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone-utils.js +316 -0
  340. data/vendor/assets/components/locomotive_sources/moment-timezone/moment-timezone.js +599 -0
  341. data/vendor/assets/components/locomotive_sources/moment/CHANGELOG.md +496 -0
  342. data/vendor/assets/components/locomotive_sources/moment/LICENSE +22 -0
  343. data/vendor/assets/components/locomotive_sources/moment/README.md +58 -0
  344. data/vendor/assets/components/locomotive_sources/moment/bower.json +22 -0
  345. data/vendor/assets/components/locomotive_sources/moment/locale/af.js +73 -0
  346. data/vendor/assets/components/locomotive_sources/moment/locale/ar-ma.js +59 -0
  347. data/vendor/assets/components/locomotive_sources/moment/locale/ar-sa.js +103 -0
  348. data/vendor/assets/components/locomotive_sources/moment/locale/ar-tn.js +57 -0
  349. data/vendor/assets/components/locomotive_sources/moment/locale/ar.js +136 -0
  350. data/vendor/assets/components/locomotive_sources/moment/locale/az.js +104 -0
  351. data/vendor/assets/components/locomotive_sources/moment/locale/be.js +134 -0
  352. data/vendor/assets/components/locomotive_sources/moment/locale/bg.js +90 -0
  353. data/vendor/assets/components/locomotive_sources/moment/locale/bn.js +113 -0
  354. data/vendor/assets/components/locomotive_sources/moment/locale/bo.js +110 -0
  355. data/vendor/assets/components/locomotive_sources/moment/locale/br.js +107 -0
  356. data/vendor/assets/components/locomotive_sources/moment/locale/bs.js +141 -0
  357. data/vendor/assets/components/locomotive_sources/moment/locale/ca.js +79 -0
  358. data/vendor/assets/components/locomotive_sources/moment/locale/cs.js +171 -0
  359. data/vendor/assets/components/locomotive_sources/moment/locale/cv.js +63 -0
  360. data/vendor/assets/components/locomotive_sources/moment/locale/cy.js +79 -0
  361. data/vendor/assets/components/locomotive_sources/moment/locale/da.js +60 -0
  362. data/vendor/assets/components/locomotive_sources/moment/locale/de-at.js +77 -0
  363. data/vendor/assets/components/locomotive_sources/moment/locale/de.js +76 -0
  364. data/vendor/assets/components/locomotive_sources/moment/locale/dv.js +99 -0
  365. data/vendor/assets/components/locomotive_sources/moment/locale/el.js +98 -0
  366. data/vendor/assets/components/locomotive_sources/moment/locale/en-au.js +66 -0
  367. data/vendor/assets/components/locomotive_sources/moment/locale/en-ca.js +63 -0
  368. data/vendor/assets/components/locomotive_sources/moment/locale/en-gb.js +67 -0
  369. data/vendor/assets/components/locomotive_sources/moment/locale/en-ie.js +67 -0
  370. data/vendor/assets/components/locomotive_sources/moment/locale/en-nz.js +66 -0
  371. data/vendor/assets/components/locomotive_sources/moment/locale/eo.js +73 -0
  372. data/vendor/assets/components/locomotive_sources/moment/locale/es.js +79 -0
  373. data/vendor/assets/components/locomotive_sources/moment/locale/et.js +80 -0
  374. data/vendor/assets/components/locomotive_sources/moment/locale/eu.js +64 -0
  375. data/vendor/assets/components/locomotive_sources/moment/locale/fa.js +105 -0
  376. data/vendor/assets/components/locomotive_sources/moment/locale/fi.js +107 -0
  377. data/vendor/assets/components/locomotive_sources/moment/locale/fo.js +60 -0
  378. data/vendor/assets/components/locomotive_sources/moment/locale/fr-ca.js +58 -0
  379. data/vendor/assets/components/locomotive_sources/moment/locale/fr-ch.js +62 -0
  380. data/vendor/assets/components/locomotive_sources/moment/locale/fr.js +62 -0
  381. data/vendor/assets/components/locomotive_sources/moment/locale/fy.js +71 -0
  382. data/vendor/assets/components/locomotive_sources/moment/locale/gd.js +76 -0
  383. data/vendor/assets/components/locomotive_sources/moment/locale/gl.js +75 -0
  384. data/vendor/assets/components/locomotive_sources/moment/locale/he.js +82 -0
  385. data/vendor/assets/components/locomotive_sources/moment/locale/hi.js +123 -0
  386. data/vendor/assets/components/locomotive_sources/moment/locale/hr.js +143 -0
  387. data/vendor/assets/components/locomotive_sources/moment/locale/hu.js +109 -0
  388. data/vendor/assets/components/locomotive_sources/moment/locale/hy-am.js +95 -0
  389. data/vendor/assets/components/locomotive_sources/moment/locale/id.js +83 -0
  390. data/vendor/assets/components/locomotive_sources/moment/locale/is.js +127 -0
  391. data/vendor/assets/components/locomotive_sources/moment/locale/it.js +70 -0
  392. data/vendor/assets/components/locomotive_sources/moment/locale/ja.js +65 -0
  393. data/vendor/assets/components/locomotive_sources/moment/locale/jv.js +83 -0
  394. data/vendor/assets/components/locomotive_sources/moment/locale/ka.js +89 -0
  395. data/vendor/assets/components/locomotive_sources/moment/locale/kk.js +87 -0
  396. data/vendor/assets/components/locomotive_sources/moment/locale/km.js +58 -0
  397. data/vendor/assets/components/locomotive_sources/moment/locale/ko.js +68 -0
  398. data/vendor/assets/components/locomotive_sources/moment/locale/lb.js +134 -0
  399. data/vendor/assets/components/locomotive_sources/moment/locale/lo.js +69 -0
  400. data/vendor/assets/components/locomotive_sources/moment/locale/lt.js +115 -0
  401. data/vendor/assets/components/locomotive_sources/moment/locale/lv.js +96 -0
  402. data/vendor/assets/components/locomotive_sources/moment/locale/me.js +109 -0
  403. data/vendor/assets/components/locomotive_sources/moment/locale/mk.js +90 -0
  404. data/vendor/assets/components/locomotive_sources/moment/locale/ml.js +71 -0
  405. data/vendor/assets/components/locomotive_sources/moment/locale/mr.js +158 -0
  406. data/vendor/assets/components/locomotive_sources/moment/locale/ms-my.js +82 -0
  407. data/vendor/assets/components/locomotive_sources/moment/locale/ms.js +82 -0
  408. data/vendor/assets/components/locomotive_sources/moment/locale/my.js +93 -0
  409. data/vendor/assets/components/locomotive_sources/moment/locale/nb.js +61 -0
  410. data/vendor/assets/components/locomotive_sources/moment/locale/ne.js +121 -0
  411. data/vendor/assets/components/locomotive_sources/moment/locale/nl.js +71 -0
  412. data/vendor/assets/components/locomotive_sources/moment/locale/nn.js +60 -0
  413. data/vendor/assets/components/locomotive_sources/moment/locale/pl.js +105 -0
  414. data/vendor/assets/components/locomotive_sources/moment/locale/pt-br.js +60 -0
  415. data/vendor/assets/components/locomotive_sources/moment/locale/pt.js +64 -0
  416. data/vendor/assets/components/locomotive_sources/moment/locale/ro.js +74 -0
  417. data/vendor/assets/components/locomotive_sources/moment/locale/ru.js +166 -0
  418. data/vendor/assets/components/locomotive_sources/moment/locale/se.js +61 -0
  419. data/vendor/assets/components/locomotive_sources/moment/locale/si.js +66 -0
  420. data/vendor/assets/components/locomotive_sources/moment/locale/sk.js +150 -0
  421. data/vendor/assets/components/locomotive_sources/moment/locale/sl.js +160 -0
  422. data/vendor/assets/components/locomotive_sources/moment/locale/sq.js +69 -0
  423. data/vendor/assets/components/locomotive_sources/moment/locale/sr-cyrl.js +108 -0
  424. data/vendor/assets/components/locomotive_sources/moment/locale/sr.js +108 -0
  425. data/vendor/assets/components/locomotive_sources/moment/locale/sv.js +67 -0
  426. data/vendor/assets/components/locomotive_sources/moment/locale/sw.js +58 -0
  427. data/vendor/assets/components/locomotive_sources/moment/locale/ta.js +129 -0
  428. data/vendor/assets/components/locomotive_sources/moment/locale/te.js +88 -0
  429. data/vendor/assets/components/locomotive_sources/moment/locale/th.js +65 -0
  430. data/vendor/assets/components/locomotive_sources/moment/locale/tl-ph.js +62 -0
  431. data/vendor/assets/components/locomotive_sources/moment/locale/tlh.js +119 -0
  432. data/vendor/assets/components/locomotive_sources/moment/locale/tr.js +90 -0
  433. data/vendor/assets/components/locomotive_sources/moment/locale/tzl.js +87 -0
  434. data/vendor/assets/components/locomotive_sources/moment/locale/tzm-latn.js +58 -0
  435. data/vendor/assets/components/locomotive_sources/moment/locale/tzm.js +58 -0
  436. data/vendor/assets/components/locomotive_sources/moment/locale/uk.js +146 -0
  437. data/vendor/assets/components/locomotive_sources/moment/locale/uz.js +58 -0
  438. data/vendor/assets/components/locomotive_sources/moment/locale/vi.js +66 -0
  439. data/vendor/assets/components/locomotive_sources/moment/locale/zh-cn.js +127 -0
  440. data/vendor/assets/components/locomotive_sources/moment/locale/zh-tw.js +101 -0
  441. data/vendor/assets/components/locomotive_sources/moment/min/locales.js +7548 -0
  442. data/vendor/assets/components/locomotive_sources/moment/min/locales.min.js +72 -0
  443. data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.js +11144 -0
  444. data/vendor/assets/components/locomotive_sources/moment/min/moment-with-locales.min.js +74 -0
  445. data/vendor/assets/components/locomotive_sources/moment/min/moment.min.js +7 -0
  446. data/vendor/assets/components/locomotive_sources/moment/min/tests.js +46196 -0
  447. data/vendor/assets/components/locomotive_sources/moment/moment.js +3606 -0
  448. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/check-overflow.js +34 -0
  449. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/date-from-array.js +21 -0
  450. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-anything.js +101 -0
  451. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-array.js +136 -0
  452. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-object.js +16 -0
  453. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-array.js +50 -0
  454. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string-and-format.js +104 -0
  455. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/from-string.js +120 -0
  456. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/local.js +5 -0
  457. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/parsing-flags.js +22 -0
  458. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/utc.js +5 -0
  459. data/vendor/assets/components/locomotive_sources/moment/src/lib/create/valid.js +37 -0
  460. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/abs.js +18 -0
  461. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/add-subtract.js +21 -0
  462. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/as.js +55 -0
  463. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/bubble.js +61 -0
  464. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/constructor.js +41 -0
  465. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/create.js +117 -0
  466. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/duration.js +12 -0
  467. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/get.js +25 -0
  468. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/humanize.js +64 -0
  469. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/iso-string.js +52 -0
  470. data/vendor/assets/components/locomotive_sources/moment/src/lib/duration/prototype.js +48 -0
  471. data/vendor/assets/components/locomotive_sources/moment/src/lib/format/format.js +92 -0
  472. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/calendar.js +15 -0
  473. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/constructor.js +2 -0
  474. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/en.js +15 -0
  475. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/formats.js +23 -0
  476. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/invalid.js +5 -0
  477. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/lists.js +48 -0
  478. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locale.js +35 -0
  479. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/locales.js +118 -0
  480. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/ordinal.js +7 -0
  481. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/pre-post-format.js +3 -0
  482. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/prototype.js +76 -0
  483. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/relative.js +29 -0
  484. data/vendor/assets/components/locomotive_sources/moment/src/lib/locale/set.js +16 -0
  485. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/add-subtract.js +52 -0
  486. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/calendar.js +21 -0
  487. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/clone.js +5 -0
  488. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/compare.js +57 -0
  489. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/constructor.js +74 -0
  490. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/creation-data.js +9 -0
  491. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/diff.js +61 -0
  492. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/format.js +28 -0
  493. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/from.js +17 -0
  494. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/get-set.js +43 -0
  495. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/locale.js +34 -0
  496. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/min-max.js +63 -0
  497. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/moment.js +28 -0
  498. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/now.js +3 -0
  499. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/prototype.js +149 -0
  500. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/start-end-of.js +52 -0
  501. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to-type.js +34 -0
  502. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/to.js +17 -0
  503. data/vendor/assets/components/locomotive_sources/moment/src/lib/moment/valid.js +15 -0
  504. data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/regex.js +54 -0
  505. data/vendor/assets/components/locomotive_sources/moment/src/lib/parse/token.js +32 -0
  506. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/aliases.js +29 -0
  507. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/constants.js +9 -0
  508. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-month.js +32 -0
  509. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-week.js +162 -0
  510. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/day-of-year.js +32 -0
  511. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/hour.js +129 -0
  512. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/millisecond.js +64 -0
  513. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/minute.js +24 -0
  514. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/month.js +209 -0
  515. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/offset.js +219 -0
  516. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/quarter.js +27 -0
  517. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/second.js +24 -0
  518. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timestamp.js +20 -0
  519. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/timezone.js +16 -0
  520. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/units.js +20 -0
  521. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-calendar-utils.js +65 -0
  522. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week-year.js +101 -0
  523. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/week.js +61 -0
  524. data/vendor/assets/components/locomotive_sources/moment/src/lib/units/year.js +70 -0
  525. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-ceil.js +7 -0
  526. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/abs-floor.js +7 -0
  527. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/compare-arrays.js +16 -0
  528. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/defaults.js +10 -0
  529. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/deprecate.js +33 -0
  530. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/extend.js +19 -0
  531. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/has-own-prop.js +3 -0
  532. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/hooks.js +13 -0
  533. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-array.js +3 -0
  534. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-date.js +3 -0
  535. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-function.js +3 -0
  536. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/is-undefined.js +3 -0
  537. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/map.js +7 -0
  538. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/to-int.js +12 -0
  539. data/vendor/assets/components/locomotive_sources/moment/src/lib/utils/zero-fill.js +7 -0
  540. data/vendor/assets/components/locomotive_sources/moment/src/locale/af.js +63 -0
  541. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-ma.js +50 -0
  542. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-sa.js +94 -0
  543. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar-tn.js +48 -0
  544. data/vendor/assets/components/locomotive_sources/moment/src/locale/ar.js +127 -0
  545. data/vendor/assets/components/locomotive_sources/moment/src/locale/az.js +95 -0
  546. data/vendor/assets/components/locomotive_sources/moment/src/locale/be.js +125 -0
  547. data/vendor/assets/components/locomotive_sources/moment/src/locale/bg.js +81 -0
  548. data/vendor/assets/components/locomotive_sources/moment/src/locale/bn.js +104 -0
  549. data/vendor/assets/components/locomotive_sources/moment/src/locale/bo.js +101 -0
  550. data/vendor/assets/components/locomotive_sources/moment/src/locale/br.js +98 -0
  551. data/vendor/assets/components/locomotive_sources/moment/src/locale/bs.js +132 -0
  552. data/vendor/assets/components/locomotive_sources/moment/src/locale/ca.js +70 -0
  553. data/vendor/assets/components/locomotive_sources/moment/src/locale/cs.js +162 -0
  554. data/vendor/assets/components/locomotive_sources/moment/src/locale/cv.js +53 -0
  555. data/vendor/assets/components/locomotive_sources/moment/src/locale/cy.js +70 -0
  556. data/vendor/assets/components/locomotive_sources/moment/src/locale/da.js +51 -0
  557. data/vendor/assets/components/locomotive_sources/moment/src/locale/de-at.js +67 -0
  558. data/vendor/assets/components/locomotive_sources/moment/src/locale/de.js +66 -0
  559. data/vendor/assets/components/locomotive_sources/moment/src/locale/dv.js +89 -0
  560. data/vendor/assets/components/locomotive_sources/moment/src/locale/el.js +86 -0
  561. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-au.js +57 -0
  562. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ca.js +54 -0
  563. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-gb.js +58 -0
  564. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-ie.js +58 -0
  565. data/vendor/assets/components/locomotive_sources/moment/src/locale/en-nz.js +56 -0
  566. data/vendor/assets/components/locomotive_sources/moment/src/locale/eo.js +64 -0
  567. data/vendor/assets/components/locomotive_sources/moment/src/locale/es.js +70 -0
  568. data/vendor/assets/components/locomotive_sources/moment/src/locale/et.js +71 -0
  569. data/vendor/assets/components/locomotive_sources/moment/src/locale/eu.js +55 -0
  570. data/vendor/assets/components/locomotive_sources/moment/src/locale/fa.js +96 -0
  571. data/vendor/assets/components/locomotive_sources/moment/src/locale/fi.js +98 -0
  572. data/vendor/assets/components/locomotive_sources/moment/src/locale/fo.js +51 -0
  573. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ca.js +49 -0
  574. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr-ch.js +53 -0
  575. data/vendor/assets/components/locomotive_sources/moment/src/locale/fr.js +53 -0
  576. data/vendor/assets/components/locomotive_sources/moment/src/locale/fy.js +62 -0
  577. data/vendor/assets/components/locomotive_sources/moment/src/locale/gd.js +67 -0
  578. data/vendor/assets/components/locomotive_sources/moment/src/locale/gl.js +66 -0
  579. data/vendor/assets/components/locomotive_sources/moment/src/locale/he.js +73 -0
  580. data/vendor/assets/components/locomotive_sources/moment/src/locale/hi.js +114 -0
  581. data/vendor/assets/components/locomotive_sources/moment/src/locale/hr.js +134 -0
  582. data/vendor/assets/components/locomotive_sources/moment/src/locale/hu.js +100 -0
  583. data/vendor/assets/components/locomotive_sources/moment/src/locale/hy-am.js +86 -0
  584. data/vendor/assets/components/locomotive_sources/moment/src/locale/id.js +74 -0
  585. data/vendor/assets/components/locomotive_sources/moment/src/locale/is.js +118 -0
  586. data/vendor/assets/components/locomotive_sources/moment/src/locale/it.js +61 -0
  587. data/vendor/assets/components/locomotive_sources/moment/src/locale/ja.js +56 -0
  588. data/vendor/assets/components/locomotive_sources/moment/src/locale/jv.js +73 -0
  589. data/vendor/assets/components/locomotive_sources/moment/src/locale/ka.js +80 -0
  590. data/vendor/assets/components/locomotive_sources/moment/src/locale/kk.js +77 -0
  591. data/vendor/assets/components/locomotive_sources/moment/src/locale/km.js +49 -0
  592. data/vendor/assets/components/locomotive_sources/moment/src/locale/ko.js +59 -0
  593. data/vendor/assets/components/locomotive_sources/moment/src/locale/lb.js +125 -0
  594. data/vendor/assets/components/locomotive_sources/moment/src/locale/lo.js +60 -0
  595. data/vendor/assets/components/locomotive_sources/moment/src/locale/lt.js +106 -0
  596. data/vendor/assets/components/locomotive_sources/moment/src/locale/lv.js +87 -0
  597. data/vendor/assets/components/locomotive_sources/moment/src/locale/me.js +99 -0
  598. data/vendor/assets/components/locomotive_sources/moment/src/locale/mk.js +81 -0
  599. data/vendor/assets/components/locomotive_sources/moment/src/locale/ml.js +62 -0
  600. data/vendor/assets/components/locomotive_sources/moment/src/locale/mr.js +149 -0
  601. data/vendor/assets/components/locomotive_sources/moment/src/locale/ms-my.js +73 -0
  602. data/vendor/assets/components/locomotive_sources/moment/src/locale/ms.js +73 -0
  603. data/vendor/assets/components/locomotive_sources/moment/src/locale/my.js +84 -0
  604. data/vendor/assets/components/locomotive_sources/moment/src/locale/nb.js +52 -0
  605. data/vendor/assets/components/locomotive_sources/moment/src/locale/ne.js +112 -0
  606. data/vendor/assets/components/locomotive_sources/moment/src/locale/nl.js +62 -0
  607. data/vendor/assets/components/locomotive_sources/moment/src/locale/nn.js +51 -0
  608. data/vendor/assets/components/locomotive_sources/moment/src/locale/pl.js +95 -0
  609. data/vendor/assets/components/locomotive_sources/moment/src/locale/pt-br.js +51 -0
  610. data/vendor/assets/components/locomotive_sources/moment/src/locale/pt.js +55 -0
  611. data/vendor/assets/components/locomotive_sources/moment/src/locale/ro.js +65 -0
  612. data/vendor/assets/components/locomotive_sources/moment/src/locale/ru.js +156 -0
  613. data/vendor/assets/components/locomotive_sources/moment/src/locale/se.js +51 -0
  614. data/vendor/assets/components/locomotive_sources/moment/src/locale/si.js +56 -0
  615. data/vendor/assets/components/locomotive_sources/moment/src/locale/sk.js +141 -0
  616. data/vendor/assets/components/locomotive_sources/moment/src/locale/sl.js +150 -0
  617. data/vendor/assets/components/locomotive_sources/moment/src/locale/sq.js +60 -0
  618. data/vendor/assets/components/locomotive_sources/moment/src/locale/sr-cyrl.js +99 -0
  619. data/vendor/assets/components/locomotive_sources/moment/src/locale/sr.js +99 -0
  620. data/vendor/assets/components/locomotive_sources/moment/src/locale/sv.js +58 -0
  621. data/vendor/assets/components/locomotive_sources/moment/src/locale/sw.js +49 -0
  622. data/vendor/assets/components/locomotive_sources/moment/src/locale/ta.js +120 -0
  623. data/vendor/assets/components/locomotive_sources/moment/src/locale/te.js +78 -0
  624. data/vendor/assets/components/locomotive_sources/moment/src/locale/th.js +56 -0
  625. data/vendor/assets/components/locomotive_sources/moment/src/locale/tl-ph.js +53 -0
  626. data/vendor/assets/components/locomotive_sources/moment/src/locale/tlh.js +109 -0
  627. data/vendor/assets/components/locomotive_sources/moment/src/locale/tr.js +81 -0
  628. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzl.js +78 -0
  629. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm-latn.js +49 -0
  630. data/vendor/assets/components/locomotive_sources/moment/src/locale/tzm.js +49 -0
  631. data/vendor/assets/components/locomotive_sources/moment/src/locale/uk.js +137 -0
  632. data/vendor/assets/components/locomotive_sources/moment/src/locale/uz.js +49 -0
  633. data/vendor/assets/components/locomotive_sources/moment/src/locale/vi.js +57 -0
  634. data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-cn.js +118 -0
  635. data/vendor/assets/components/locomotive_sources/moment/src/locale/zh-tw.js +91 -0
  636. data/vendor/assets/components/locomotive_sources/moment/src/moment.js +71 -0
  637. data/vendor/assets/components/locomotive_sources/moment/templates/amd-named.js +7 -0
  638. data/vendor/assets/components/locomotive_sources/moment/templates/amd.js +7 -0
  639. data/vendor/assets/components/locomotive_sources/moment/templates/default.js +5 -0
  640. data/vendor/assets/components/locomotive_sources/moment/templates/globals.js +5 -0
  641. data/vendor/assets/components/locomotive_sources/moment/templates/locale-header.js +6 -0
  642. data/vendor/assets/components/locomotive_sources/moment/templates/test-header.js +6 -0
  643. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/Gemfile +3 -0
  644. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/Gruntfile.js +110 -0
  645. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/LICENSE +8 -0
  646. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/README.md +91 -0
  647. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.3.2.html +4 -0
  648. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.1.html +4 -0
  649. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.2.html +4 -0
  650. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.3.html +4 -0
  651. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.4.html +4 -0
  652. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.4.5.html +4 -0
  653. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.5.1.html +4 -0
  654. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/3.5.2.html +4 -0
  655. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_config.yml +13 -0
  656. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/footer-links.html +9 -0
  657. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/footer.html +10 -0
  658. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/head.html +13 -0
  659. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/navbar.html +21 -0
  660. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_includes/select2-select.html +55 -0
  661. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_layouts/default.html +489 -0
  662. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_layouts/minimal.html +7 -0
  663. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_extends.sass +4 -0
  664. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_mixins.sass +9 -0
  665. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_select2-result-repository.sass +40 -0
  666. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/_sass/_variables.sass +1 -0
  667. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/bootstrap.min.css +5 -0
  668. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/gh-pages.sass +103 -0
  669. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/css/select2-bootstrap.css +495 -0
  670. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/favicon.ico +0 -0
  671. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.eot +0 -0
  672. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.svg +288 -0
  673. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.ttf +0 -0
  674. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.woff +0 -0
  675. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/fonts/glyphicons-halflings-regular.woff2 +0 -0
  676. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/index.html +77 -0
  677. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/js/bootstrap.min.js +7 -0
  678. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/js/respond.min.js +5 -0
  679. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/_jekyll/master.html +4 -0
  680. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/bower.json +20 -0
  681. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/compass/stylesheets/select2-bootstrap.scss +1 -0
  682. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.3.2.html +1668 -0
  683. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.1.html +1662 -0
  684. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.2.html +1662 -0
  685. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.3.html +1662 -0
  686. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.4.html +1662 -0
  687. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.4.5.html +1662 -0
  688. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.5.1.html +1662 -0
  689. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/3.5.2.html +1662 -0
  690. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/bootstrap.min.css +5 -0
  691. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/gh-pages.css +142 -0
  692. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/css/select2-bootstrap.css +495 -0
  693. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/favicon.ico +0 -0
  694. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.eot +0 -0
  695. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.svg +288 -0
  696. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
  697. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.woff +0 -0
  698. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
  699. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/index.html +293 -0
  700. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/js/bootstrap.min.js +7 -0
  701. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/js/respond.min.js +5 -0
  702. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/docs/master.html +1662 -0
  703. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/build.less +3 -0
  704. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/build.scss +3 -0
  705. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap-css.rb +11 -0
  706. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap.less +480 -0
  707. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap.scss +480 -0
  708. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/lib/select2-bootstrap/version.rb +9 -0
  709. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/package.json +48 -0
  710. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap-css.gemspec +22 -0
  711. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap.css +495 -0
  712. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/select2-bootstrap.min.css +1 -0
  713. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/less_test.js +25 -0
  714. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/scss_test.js +25 -0
  715. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/support/less.patch +416 -0
  716. data/vendor/assets/components/locomotive_sources/select2-bootstrap-css/test/support/scss.patch +4 -0
  717. data/vendor/assets/components/locomotive_sources/select2/CONTRIBUTING.md +204 -0
  718. data/vendor/assets/components/locomotive_sources/select2/Gruntfile.js +370 -0
  719. data/vendor/assets/components/locomotive_sources/select2/LICENSE.md +21 -0
  720. data/vendor/assets/components/locomotive_sources/select2/README.md +105 -0
  721. data/vendor/assets/components/locomotive_sources/select2/bower.json +12 -0
  722. data/vendor/assets/components/locomotive_sources/select2/component.json +19 -0
  723. data/vendor/assets/components/locomotive_sources/select2/composer.json +25 -0
  724. data/vendor/assets/components/locomotive_sources/select2/dist/css/select2.css +482 -0
  725. data/vendor/assets/components/locomotive_sources/select2/dist/css/select2.min.css +1 -0
  726. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ar.js +3 -0
  727. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/az.js +3 -0
  728. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/bg.js +3 -0
  729. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ca.js +3 -0
  730. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/cs.js +3 -0
  731. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/da.js +3 -0
  732. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/de.js +3 -0
  733. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/en.js +3 -0
  734. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/es.js +3 -0
  735. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/et.js +3 -0
  736. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/eu.js +3 -0
  737. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fa.js +3 -0
  738. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fi.js +3 -0
  739. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/fr.js +3 -0
  740. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/gl.js +3 -0
  741. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/he.js +3 -0
  742. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hi.js +3 -0
  743. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hr.js +3 -0
  744. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/hu.js +3 -0
  745. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/id.js +3 -0
  746. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/is.js +3 -0
  747. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/it.js +3 -0
  748. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ja.js +3 -0
  749. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ko.js +3 -0
  750. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/lt.js +3 -0
  751. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/lv.js +3 -0
  752. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/mk.js +3 -0
  753. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ms.js +3 -0
  754. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/nb.js +3 -0
  755. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/nl.js +3 -0
  756. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pl.js +3 -0
  757. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pt-BR.js +3 -0
  758. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/pt.js +3 -0
  759. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ro.js +3 -0
  760. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/ru.js +3 -0
  761. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sk.js +3 -0
  762. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sr-Cyrl.js +3 -0
  763. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sr.js +3 -0
  764. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/sv.js +3 -0
  765. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/th.js +3 -0
  766. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/tr.js +3 -0
  767. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/uk.js +3 -0
  768. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/vi.js +3 -0
  769. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/zh-CN.js +3 -0
  770. data/vendor/assets/components/locomotive_sources/select2/dist/js/i18n/zh-TW.js +3 -0
  771. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.full.js +6281 -0
  772. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.full.min.js +3 -0
  773. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.js +5571 -0
  774. data/vendor/assets/components/locomotive_sources/select2/dist/js/select2.min.js +2 -0
  775. data/vendor/assets/components/locomotive_sources/select2/docs/README.md +38 -0
  776. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/basics.html +65 -0
  777. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/data.html +128 -0
  778. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/disabled-mode.html +43 -0
  779. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/disabled-results.html +32 -0
  780. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/hide-search.html +25 -0
  781. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/localization-rtl-diacritics.html +90 -0
  782. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/matcher.html +43 -0
  783. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/multiple-max.html +28 -0
  784. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/placeholders.html +37 -0
  785. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/programmatic-control.html +156 -0
  786. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/tags.html +33 -0
  787. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/themes-templating-responsive-design.html +111 -0
  788. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/examples/tokenizer.html +36 -0
  789. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/footer.html +20 -0
  790. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/ga.html +9 -0
  791. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/head.html +19 -0
  792. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/js-source-states.html +62 -0
  793. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/announcements-4.0.html +26 -0
  794. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/examples.html +96 -0
  795. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/options-old.html +55 -0
  796. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/nav/options.html +77 -0
  797. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/navigation.html +53 -0
  798. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/notice-previous.html +7 -0
  799. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/adapters.html +209 -0
  800. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/backwards-compatibility.html +200 -0
  801. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/core-options.html +790 -0
  802. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/dropdown.html +308 -0
  803. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/events.html +50 -0
  804. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options-old/setting-default-options.html +37 -0
  805. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility.html +10 -0
  806. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/initial-selection.html +50 -0
  807. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/introduction.html +18 -0
  808. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/matcher.html +50 -0
  809. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/query-function.html +50 -0
  810. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/compatibility/text-input.html +32 -0
  811. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core.html +9 -0
  812. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/amd-support.html +38 -0
  813. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/data-attributes.html +72 -0
  814. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/core/options.html +58 -0
  815. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data.html +9 -0
  816. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/ajax.html +109 -0
  817. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/array.html +53 -0
  818. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/data/select.html +57 -0
  819. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown.html +9 -0
  820. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/filtering.html +23 -0
  821. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/placement.html +29 -0
  822. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/dropdown/selections.html +17 -0
  823. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events.html +8 -0
  824. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events/internal.html +9 -0
  825. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/events/jquery.html +29 -0
  826. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/introduction.html +9 -0
  827. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/not-written.html +3 -0
  828. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections.html +10 -0
  829. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/clearing-selections.html +17 -0
  830. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/multiple.html +17 -0
  831. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/placeholder.html +53 -0
  832. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/options/selections/templating.html +23 -0
  833. data/vendor/assets/components/locomotive_sources/select2/docs/_includes/social-buttons.html +10 -0
  834. data/vendor/assets/components/locomotive_sources/select2/docs/_layouts/default.html +57 -0
  835. data/vendor/assets/components/locomotive_sources/select2/docs/_layouts/home.html +23 -0
  836. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_alert.scss +47 -0
  837. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_anchorjs.scss +27 -0
  838. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_buttons.scss +20 -0
  839. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_code.scss +16 -0
  840. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_examples.scss +90 -0
  841. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_featurette.scss +16 -0
  842. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_footer.scss +42 -0
  843. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_hamburger.scss +49 -0
  844. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_home.scss +31 -0
  845. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_jumbotron.scss +24 -0
  846. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_layout.scss +14 -0
  847. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_nav.scss +58 -0
  848. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_prettify.scss +51 -0
  849. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_result-repository.scss +62 -0
  850. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_sidenav.scss +152 -0
  851. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_social.scss +35 -0
  852. data/vendor/assets/components/locomotive_sources/select2/docs/_sass/_typography.scss +6 -0
  853. data/vendor/assets/components/locomotive_sources/select2/docs/announcements-4.0.html +752 -0
  854. data/vendor/assets/components/locomotive_sources/select2/docs/community.html +154 -0
  855. data/vendor/assets/components/locomotive_sources/select2/docs/css/s2-docs.scss +19 -0
  856. data/vendor/assets/components/locomotive_sources/select2/docs/examples.html +254 -0
  857. data/vendor/assets/components/locomotive_sources/select2/docs/images/logo.png +0 -0
  858. data/vendor/assets/components/locomotive_sources/select2/docs/index.html +238 -0
  859. data/vendor/assets/components/locomotive_sources/select2/docs/options-old.html +37 -0
  860. data/vendor/assets/components/locomotive_sources/select2/docs/options.html +37 -0
  861. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/css/bootstrap.min.css +5 -0
  862. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/css/font-awesome.min.css +4 -0
  863. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/FontAwesome.otf +0 -0
  864. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.eot +0 -0
  865. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.svg +655 -0
  866. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.ttf +0 -0
  867. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.woff +0 -0
  868. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/fonts/fontawesome-webfont.woff2 +0 -0
  869. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ak.png +0 -0
  870. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/al.png +0 -0
  871. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ar.png +0 -0
  872. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/az.png +0 -0
  873. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ca.png +0 -0
  874. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/co.png +0 -0
  875. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ct.png +0 -0
  876. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/de.png +0 -0
  877. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/fl.png +0 -0
  878. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ga.png +0 -0
  879. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/hi.png +0 -0
  880. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ia.png +0 -0
  881. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/id.png +0 -0
  882. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/il.png +0 -0
  883. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/in.png +0 -0
  884. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ks.png +0 -0
  885. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ky.png +0 -0
  886. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/la.png +0 -0
  887. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ma.png +0 -0
  888. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/md.png +0 -0
  889. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/me.png +0 -0
  890. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mi.png +0 -0
  891. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mn.png +0 -0
  892. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mo.png +0 -0
  893. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ms.png +0 -0
  894. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/mt.png +0 -0
  895. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nc.png +0 -0
  896. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nd.png +0 -0
  897. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ne.png +0 -0
  898. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nh.png +0 -0
  899. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nj.png +0 -0
  900. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nm.png +0 -0
  901. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/nv.png +0 -0
  902. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ny.png +0 -0
  903. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/oh.png +0 -0
  904. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ok.png +0 -0
  905. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/or.png +0 -0
  906. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/pa.png +0 -0
  907. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ri.png +0 -0
  908. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/sc.png +0 -0
  909. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/sd.png +0 -0
  910. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/tn.png +0 -0
  911. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/tx.png +0 -0
  912. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/ut.png +0 -0
  913. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/va.png +0 -0
  914. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/vt.png +0 -0
  915. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wa.png +0 -0
  916. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wi.png +0 -0
  917. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wv.png +0 -0
  918. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/images/flags/wy.png +0 -0
  919. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/anchor.min.js +6 -0
  920. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/bootstrap.min.js +6 -0
  921. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/jquery.min.js +4 -0
  922. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/placeholders.jquery.min.js +2 -0
  923. data/vendor/assets/components/locomotive_sources/select2/docs/vendor/js/prettify.min.js +28 -0
  924. data/vendor/assets/components/locomotive_sources/select2/package.json +66 -0
  925. data/vendor/assets/components/locomotive_sources/select2/select2.jquery.json +32 -0
  926. data/vendor/assets/components/locomotive_sources/select2/src/js/banner.end.js +6 -0
  927. data/vendor/assets/components/locomotive_sources/select2/src/js/banner.start.js +6 -0
  928. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.mousewheel.shim.js +6 -0
  929. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.select2.js +58 -0
  930. data/vendor/assets/components/locomotive_sources/select2/src/js/jquery.shim.js +14 -0
  931. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/containerCss.js +56 -0
  932. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/dropdownCss.js +56 -0
  933. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/initSelection.js +42 -0
  934. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/inputData.js +127 -0
  935. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/matcher.js +42 -0
  936. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/query.js +26 -0
  937. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/compat/utils.js +43 -0
  938. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/core.js +545 -0
  939. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/ajax.js +101 -0
  940. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/array.js +79 -0
  941. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/base.js +40 -0
  942. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/maximumInputLength.js +31 -0
  943. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/maximumSelectionLength.js +31 -0
  944. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/minimumInputLength.js +30 -0
  945. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/select.js +285 -0
  946. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/tags.js +119 -0
  947. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/data/tokenizer.js +93 -0
  948. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/defaults.js +396 -0
  949. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/diacritics.js +847 -0
  950. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown.js +42 -0
  951. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/attachBody.js +216 -0
  952. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/attachContainer.js +18 -0
  953. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/closeOnSelect.js +32 -0
  954. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/hidePlaceholder.js +42 -0
  955. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/infiniteScroll.js +89 -0
  956. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/minimumResultsForSearch.js +39 -0
  957. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/search.js +95 -0
  958. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/selectOnClose.js +40 -0
  959. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/dropdown/stopPropagation.js +38 -0
  960. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ar.js +36 -0
  961. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/az.js +27 -0
  962. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/bg.js +47 -0
  963. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ca.js +52 -0
  964. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/cs.js +61 -0
  965. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/da.js +40 -0
  966. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/de.js +37 -0
  967. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/en.js +44 -0
  968. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/es.js +52 -0
  969. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/et.js +53 -0
  970. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/eu.js +51 -0
  971. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fa.js +38 -0
  972. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fi.js +27 -0
  973. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/fr.js +46 -0
  974. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/gl.js +51 -0
  975. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/he.js +56 -0
  976. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hi.js +39 -0
  977. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hr.js +44 -0
  978. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/hu.js +27 -0
  979. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/id.js +30 -0
  980. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/is.js +41 -0
  981. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/it.js +48 -0
  982. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ja.js +36 -0
  983. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ko.js +36 -0
  984. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/lt.js +51 -0
  985. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/lv.js +51 -0
  986. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/mk.js +47 -0
  987. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ms.js +30 -0
  988. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/nb.js +35 -0
  989. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/nl.js +43 -0
  990. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pl.js +45 -0
  991. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pt-BR.js +46 -0
  992. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/pt.js +40 -0
  993. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ro.js +48 -0
  994. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/ru.js +58 -0
  995. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sk.js +56 -0
  996. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sr-Cyrl.js +55 -0
  997. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sr.js +55 -0
  998. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/sv.js +37 -0
  999. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/th.js +33 -0
  1000. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/tr.js +33 -0
  1001. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/uk.js +43 -0
  1002. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/vi.js +37 -0
  1003. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/zh-CN.js +36 -0
  1004. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/i18n/zh-TW.js +33 -0
  1005. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/keys.js +25 -0
  1006. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/options.js +122 -0
  1007. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/results.js +516 -0
  1008. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/allowClear.js +97 -0
  1009. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/base.js +158 -0
  1010. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/clickMask.js +29 -0
  1011. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/eventRelay.js +45 -0
  1012. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/multiple.js +109 -0
  1013. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/placeholder.js +49 -0
  1014. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/search.js +222 -0
  1015. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/single.js +93 -0
  1016. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/selection/stopPropagation.js +38 -0
  1017. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/translation.js +36 -0
  1018. data/vendor/assets/components/locomotive_sources/select2/src/js/select2/utils.js +262 -0
  1019. data/vendor/assets/components/locomotive_sources/select2/src/js/wrapper.end.js +12 -0
  1020. data/vendor/assets/components/locomotive_sources/select2/src/js/wrapper.start.js +23 -0
  1021. data/vendor/assets/components/locomotive_sources/select2/src/scss/_dropdown.scss +73 -0
  1022. data/vendor/assets/components/locomotive_sources/select2/src/scss/_multiple.scss +35 -0
  1023. data/vendor/assets/components/locomotive_sources/select2/src/scss/_single.scss +34 -0
  1024. data/vendor/assets/components/locomotive_sources/select2/src/scss/core.scss +48 -0
  1025. data/vendor/assets/components/locomotive_sources/select2/src/scss/mixins/_gradients.scss +13 -0
  1026. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_defaults.scss +34 -0
  1027. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_multiple.scss +93 -0
  1028. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/_single.scss +124 -0
  1029. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/classic/layout.scss +64 -0
  1030. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/_multiple.scss +94 -0
  1031. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/_single.scss +83 -0
  1032. data/vendor/assets/components/locomotive_sources/select2/src/scss/theme/default/layout.scss +97 -0
  1033. data/vendor/assets/components/locomotive_sources/select2/tests/a11y/search-tests.js +51 -0
  1034. data/vendor/assets/components/locomotive_sources/select2/tests/a11y/selection-tests.js +154 -0
  1035. data/vendor/assets/components/locomotive_sources/select2/tests/data/array-tests.js +290 -0
  1036. data/vendor/assets/components/locomotive_sources/select2/tests/data/base-tests.js +29 -0
  1037. data/vendor/assets/components/locomotive_sources/select2/tests/data/inputData-tests.js +158 -0
  1038. data/vendor/assets/components/locomotive_sources/select2/tests/data/maximumInputLength-tests.js +138 -0
  1039. data/vendor/assets/components/locomotive_sources/select2/tests/data/maximumSelectionLength-tests.js +202 -0
  1040. data/vendor/assets/components/locomotive_sources/select2/tests/data/minimumInputLength-tests.js +138 -0
  1041. data/vendor/assets/components/locomotive_sources/select2/tests/data/select-tests.js +457 -0
  1042. data/vendor/assets/components/locomotive_sources/select2/tests/data/tags-tests.js +241 -0
  1043. data/vendor/assets/components/locomotive_sources/select2/tests/data/tokenizer-tests.js +171 -0
  1044. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/dropdownCss-tests.js +104 -0
  1045. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/selectOnClose-tests.js +137 -0
  1046. data/vendor/assets/components/locomotive_sources/select2/tests/dropdown/stopPropagation-tests.js +33 -0
  1047. data/vendor/assets/components/locomotive_sources/select2/tests/helpers.js +46 -0
  1048. data/vendor/assets/components/locomotive_sources/select2/tests/integration.html +19 -0
  1049. data/vendor/assets/components/locomotive_sources/select2/tests/integration/select2-methods.js +139 -0
  1050. data/vendor/assets/components/locomotive_sources/select2/tests/options/data-tests.js +44 -0
  1051. data/vendor/assets/components/locomotive_sources/select2/tests/options/deprecated-tests.js +250 -0
  1052. data/vendor/assets/components/locomotive_sources/select2/tests/options/translation-tests.js +28 -0
  1053. data/vendor/assets/components/locomotive_sources/select2/tests/options/width-tests.js +66 -0
  1054. data/vendor/assets/components/locomotive_sources/select2/tests/selection/allowClear-tests.js +218 -0
  1055. data/vendor/assets/components/locomotive_sources/select2/tests/selection/containerCss-tests.js +104 -0
  1056. data/vendor/assets/components/locomotive_sources/select2/tests/selection/multiple-tests.js +149 -0
  1057. data/vendor/assets/components/locomotive_sources/select2/tests/selection/placeholder-tests.js +74 -0
  1058. data/vendor/assets/components/locomotive_sources/select2/tests/selection/search-tests.js +139 -0
  1059. data/vendor/assets/components/locomotive_sources/select2/tests/selection/single-tests.js +117 -0
  1060. data/vendor/assets/components/locomotive_sources/select2/tests/selection/stopPropagation-tests.js +33 -0
  1061. data/vendor/assets/components/locomotive_sources/select2/tests/unit.html +91 -0
  1062. data/vendor/assets/components/locomotive_sources/select2/tests/utils/decorator-tests.js +189 -0
  1063. data/vendor/assets/components/locomotive_sources/select2/tests/utils/escapeMarkup-tests.js +36 -0
  1064. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/jquery-1.7.2.js +9404 -0
  1065. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/qunit-1.14.0.css +237 -0
  1066. data/vendor/assets/components/locomotive_sources/select2/tests/vendor/qunit-1.14.0.js +2288 -0
  1067. data/vendor/assets/components/locomotive_sources/select2/vendor/jquery-2.1.0.js +9111 -0
  1068. data/vendor/assets/components/locomotive_sources/underscore/LICENSE +23 -0
  1069. data/vendor/assets/components/locomotive_sources/underscore/README.md +22 -0
  1070. data/vendor/assets/components/locomotive_sources/underscore/bower.json +7 -0
  1071. data/vendor/assets/components/locomotive_sources/underscore/underscore-min.js +6 -0
  1072. data/vendor/assets/components/locomotive_sources/underscore/underscore-min.map +1 -0
  1073. data/vendor/assets/components/locomotive_sources/underscore/underscore.js +1548 -0
  1074. data/vendor/assets/javascripts/locomotive/datepicker_i18n.js.erb +1 -1
  1075. data/vendor/assets/javascripts/locomotive/wysihtml5/parser_rules/advanced.js +10 -1
  1076. metadata +1020 -6
@@ -0,0 +1,663 @@
1
+ (function ($) {
2
+ "use strict";
3
+
4
+ var defaultOptions = {
5
+ tagClass: function(item) {
6
+ return 'label label-info';
7
+ },
8
+ itemValue: function(item) {
9
+ return item ? item.toString() : item;
10
+ },
11
+ itemText: function(item) {
12
+ return this.itemValue(item);
13
+ },
14
+ itemTitle: function(item) {
15
+ return null;
16
+ },
17
+ freeInput: true,
18
+ addOnBlur: true,
19
+ maxTags: undefined,
20
+ maxChars: undefined,
21
+ confirmKeys: [13, 44],
22
+ delimiter: ',',
23
+ delimiterRegex: null,
24
+ cancelConfirmKeysOnEmpty: false,
25
+ onTagExists: function(item, $tag) {
26
+ $tag.hide().fadeIn();
27
+ },
28
+ trimValue: false,
29
+ allowDuplicates: false
30
+ };
31
+
32
+ /**
33
+ * Constructor function
34
+ */
35
+ function TagsInput(element, options) {
36
+ this.isInit = true;
37
+ this.itemsArray = [];
38
+
39
+ this.$element = $(element);
40
+ this.$element.hide();
41
+
42
+ this.isSelect = (element.tagName === 'SELECT');
43
+ this.multiple = (this.isSelect && element.hasAttribute('multiple'));
44
+ this.objectItems = options && options.itemValue;
45
+ this.placeholderText = element.hasAttribute('placeholder') ? this.$element.attr('placeholder') : '';
46
+ this.inputSize = Math.max(1, this.placeholderText.length);
47
+
48
+ this.$container = $('<div class="bootstrap-tagsinput"></div>');
49
+ this.$input = $('<input type="text" placeholder="' + this.placeholderText + '"/>').appendTo(this.$container);
50
+
51
+ this.$element.before(this.$container);
52
+
53
+ this.build(options);
54
+ this.isInit = false;
55
+ }
56
+
57
+ TagsInput.prototype = {
58
+ constructor: TagsInput,
59
+
60
+ /**
61
+ * Adds the given item as a new tag. Pass true to dontPushVal to prevent
62
+ * updating the elements val()
63
+ */
64
+ add: function(item, dontPushVal, options) {
65
+ var self = this;
66
+
67
+ if (self.options.maxTags && self.itemsArray.length >= self.options.maxTags)
68
+ return;
69
+
70
+ // Ignore falsey values, except false
71
+ if (item !== false && !item)
72
+ return;
73
+
74
+ // Trim value
75
+ if (typeof item === "string" && self.options.trimValue) {
76
+ item = $.trim(item);
77
+ }
78
+
79
+ // Throw an error when trying to add an object while the itemValue option was not set
80
+ if (typeof item === "object" && !self.objectItems)
81
+ throw("Can't add objects when itemValue option is not set");
82
+
83
+ // Ignore strings only containg whitespace
84
+ if (item.toString().match(/^\s*$/))
85
+ return;
86
+
87
+ // If SELECT but not multiple, remove current tag
88
+ if (self.isSelect && !self.multiple && self.itemsArray.length > 0)
89
+ self.remove(self.itemsArray[0]);
90
+
91
+ if (typeof item === "string" && this.$element[0].tagName === 'INPUT') {
92
+ var delimiter = (self.options.delimiterRegex) ? self.options.delimiterRegex : self.options.delimiter;
93
+ var items = item.split(delimiter);
94
+ if (items.length > 1) {
95
+ for (var i = 0; i < items.length; i++) {
96
+ this.add(items[i], true);
97
+ }
98
+
99
+ if (!dontPushVal)
100
+ self.pushVal();
101
+ return;
102
+ }
103
+ }
104
+
105
+ var itemValue = self.options.itemValue(item),
106
+ itemText = self.options.itemText(item),
107
+ tagClass = self.options.tagClass(item),
108
+ itemTitle = self.options.itemTitle(item);
109
+
110
+ // Ignore items allready added
111
+ var existing = $.grep(self.itemsArray, function(item) { return self.options.itemValue(item) === itemValue; } )[0];
112
+ if (existing && !self.options.allowDuplicates) {
113
+ // Invoke onTagExists
114
+ if (self.options.onTagExists) {
115
+ var $existingTag = $(".tag", self.$container).filter(function() { return $(this).data("item") === existing; });
116
+ self.options.onTagExists(item, $existingTag);
117
+ }
118
+ return;
119
+ }
120
+
121
+ // if length greater than limit
122
+ if (self.items().toString().length + item.length + 1 > self.options.maxInputLength)
123
+ return;
124
+
125
+ // raise beforeItemAdd arg
126
+ var beforeItemAddEvent = $.Event('beforeItemAdd', { item: item, cancel: false, options: options});
127
+ self.$element.trigger(beforeItemAddEvent);
128
+ if (beforeItemAddEvent.cancel)
129
+ return;
130
+
131
+ // register item in internal array and map
132
+ self.itemsArray.push(item);
133
+
134
+ // add a tag element
135
+
136
+ var $tag = $('<span class="tag ' + htmlEncode(tagClass) + (itemTitle !== null ? ('" title="' + itemTitle) : '') + '">' + htmlEncode(itemText) + '<span data-role="remove"></span></span>');
137
+ $tag.data('item', item);
138
+ self.findInputWrapper().before($tag);
139
+ $tag.after(' ');
140
+
141
+ // Check to see if the tag exists in its raw or uri-encoded form
142
+ var optionExists = (
143
+ $('option[value="' + encodeURIComponent(itemValue) + '"]', self.$element).length ||
144
+ $('option[value="' + htmlEncode(itemValue) + '"]', self.$element).length
145
+ );
146
+
147
+ // add <option /> if item represents a value not present in one of the <select />'s options
148
+ if (self.isSelect && !optionExists) {
149
+ var $option = $('<option selected>' + htmlEncode(itemText) + '</option>');
150
+ $option.data('item', item);
151
+ $option.attr('value', itemValue);
152
+ self.$element.append($option);
153
+ }
154
+
155
+ if (!dontPushVal)
156
+ self.pushVal();
157
+
158
+ // Add class when reached maxTags
159
+ if (self.options.maxTags === self.itemsArray.length || self.items().toString().length === self.options.maxInputLength)
160
+ self.$container.addClass('bootstrap-tagsinput-max');
161
+
162
+ // If using typeahead, once the tag has been added, clear the typeahead value so it does not stick around in the input.
163
+ if ($('.typeahead, .twitter-typeahead', self.$container).length) {
164
+ self.$input.typeahead('val', '');
165
+ }
166
+
167
+ if (this.isInit) {
168
+ self.$element.trigger($.Event('itemAddedOnInit', { item: item, options: options }));
169
+ } else {
170
+ self.$element.trigger($.Event('itemAdded', { item: item, options: options }));
171
+ }
172
+ },
173
+
174
+ /**
175
+ * Removes the given item. Pass true to dontPushVal to prevent updating the
176
+ * elements val()
177
+ */
178
+ remove: function(item, dontPushVal, options) {
179
+ var self = this;
180
+
181
+ if (self.objectItems) {
182
+ if (typeof item === "object")
183
+ item = $.grep(self.itemsArray, function(other) { return self.options.itemValue(other) == self.options.itemValue(item); } );
184
+ else
185
+ item = $.grep(self.itemsArray, function(other) { return self.options.itemValue(other) == item; } );
186
+
187
+ item = item[item.length-1];
188
+ }
189
+
190
+ if (item) {
191
+ var beforeItemRemoveEvent = $.Event('beforeItemRemove', { item: item, cancel: false, options: options });
192
+ self.$element.trigger(beforeItemRemoveEvent);
193
+ if (beforeItemRemoveEvent.cancel)
194
+ return;
195
+
196
+ $('.tag', self.$container).filter(function() { return $(this).data('item') === item; }).remove();
197
+ $('option', self.$element).filter(function() { return $(this).data('item') === item; }).remove();
198
+ if($.inArray(item, self.itemsArray) !== -1)
199
+ self.itemsArray.splice($.inArray(item, self.itemsArray), 1);
200
+ }
201
+
202
+ if (!dontPushVal)
203
+ self.pushVal();
204
+
205
+ // Remove class when reached maxTags
206
+ if (self.options.maxTags > self.itemsArray.length)
207
+ self.$container.removeClass('bootstrap-tagsinput-max');
208
+
209
+ self.$element.trigger($.Event('itemRemoved', { item: item, options: options }));
210
+ },
211
+
212
+ /**
213
+ * Removes all items
214
+ */
215
+ removeAll: function() {
216
+ var self = this;
217
+
218
+ $('.tag', self.$container).remove();
219
+ $('option', self.$element).remove();
220
+
221
+ while(self.itemsArray.length > 0)
222
+ self.itemsArray.pop();
223
+
224
+ self.pushVal();
225
+ },
226
+
227
+ /**
228
+ * Refreshes the tags so they match the text/value of their corresponding
229
+ * item.
230
+ */
231
+ refresh: function() {
232
+ var self = this;
233
+ $('.tag', self.$container).each(function() {
234
+ var $tag = $(this),
235
+ item = $tag.data('item'),
236
+ itemValue = self.options.itemValue(item),
237
+ itemText = self.options.itemText(item),
238
+ tagClass = self.options.tagClass(item);
239
+
240
+ // Update tag's class and inner text
241
+ $tag.attr('class', null);
242
+ $tag.addClass('tag ' + htmlEncode(tagClass));
243
+ $tag.contents().filter(function() {
244
+ return this.nodeType == 3;
245
+ })[0].nodeValue = htmlEncode(itemText);
246
+
247
+ if (self.isSelect) {
248
+ var option = $('option', self.$element).filter(function() { return $(this).data('item') === item; });
249
+ option.attr('value', itemValue);
250
+ }
251
+ });
252
+ },
253
+
254
+ /**
255
+ * Returns the items added as tags
256
+ */
257
+ items: function() {
258
+ return this.itemsArray;
259
+ },
260
+
261
+ /**
262
+ * Assembly value by retrieving the value of each item, and set it on the
263
+ * element.
264
+ */
265
+ pushVal: function() {
266
+ var self = this,
267
+ val = $.map(self.items(), function(item) {
268
+ return self.options.itemValue(item).toString();
269
+ });
270
+
271
+ self.$element.val(val, true).trigger('change');
272
+ },
273
+
274
+ /**
275
+ * Initializes the tags input behaviour on the element
276
+ */
277
+ build: function(options) {
278
+ var self = this;
279
+
280
+ self.options = $.extend({}, defaultOptions, options);
281
+ // When itemValue is set, freeInput should always be false
282
+ if (self.objectItems)
283
+ self.options.freeInput = false;
284
+
285
+ makeOptionItemFunction(self.options, 'itemValue');
286
+ makeOptionItemFunction(self.options, 'itemText');
287
+ makeOptionFunction(self.options, 'tagClass');
288
+
289
+ // Typeahead Bootstrap version 2.3.2
290
+ if (self.options.typeahead) {
291
+ var typeahead = self.options.typeahead || {};
292
+
293
+ makeOptionFunction(typeahead, 'source');
294
+
295
+ self.$input.typeahead($.extend({}, typeahead, {
296
+ source: function (query, process) {
297
+ function processItems(items) {
298
+ var texts = [];
299
+
300
+ for (var i = 0; i < items.length; i++) {
301
+ var text = self.options.itemText(items[i]);
302
+ map[text] = items[i];
303
+ texts.push(text);
304
+ }
305
+ process(texts);
306
+ }
307
+
308
+ this.map = {};
309
+ var map = this.map,
310
+ data = typeahead.source(query);
311
+
312
+ if ($.isFunction(data.success)) {
313
+ // support for Angular callbacks
314
+ data.success(processItems);
315
+ } else if ($.isFunction(data.then)) {
316
+ // support for Angular promises
317
+ data.then(processItems);
318
+ } else {
319
+ // support for functions and jquery promises
320
+ $.when(data)
321
+ .then(processItems);
322
+ }
323
+ },
324
+ updater: function (text) {
325
+ self.add(this.map[text]);
326
+ return this.map[text];
327
+ },
328
+ matcher: function (text) {
329
+ return (text.toLowerCase().indexOf(this.query.trim().toLowerCase()) !== -1);
330
+ },
331
+ sorter: function (texts) {
332
+ return texts.sort();
333
+ },
334
+ highlighter: function (text) {
335
+ var regex = new RegExp( '(' + this.query + ')', 'gi' );
336
+ return text.replace( regex, "<strong>$1</strong>" );
337
+ }
338
+ }));
339
+ }
340
+
341
+ // typeahead.js
342
+ if (self.options.typeaheadjs) {
343
+ var typeaheadConfig = null;
344
+ var typeaheadDatasets = {};
345
+
346
+ // Determine if main configurations were passed or simply a dataset
347
+ var typeaheadjs = self.options.typeaheadjs;
348
+ if ($.isArray(typeaheadjs)) {
349
+ typeaheadConfig = typeaheadjs[0];
350
+ typeaheadDatasets = typeaheadjs[1];
351
+ } else {
352
+ typeaheadDatasets = typeaheadjs;
353
+ }
354
+
355
+ self.$input.typeahead(typeaheadConfig, typeaheadDatasets).on('typeahead:selected', $.proxy(function (obj, datum) {
356
+ if (typeaheadDatasets.valueKey)
357
+ self.add(datum[typeaheadDatasets.valueKey]);
358
+ else
359
+ self.add(datum);
360
+ self.$input.typeahead('val', '');
361
+ }, self));
362
+ }
363
+
364
+ self.$container.on('click', $.proxy(function(event) {
365
+ if (! self.$element.attr('disabled')) {
366
+ self.$input.removeAttr('disabled');
367
+ }
368
+ self.$input.focus();
369
+ }, self));
370
+
371
+ if (self.options.addOnBlur && self.options.freeInput) {
372
+ self.$input.on('focusout', $.proxy(function(event) {
373
+ // HACK: only process on focusout when no typeahead opened, to
374
+ // avoid adding the typeahead text as tag
375
+ if ($('.typeahead, .twitter-typeahead', self.$container).length === 0) {
376
+ self.add(self.$input.val());
377
+ self.$input.val('');
378
+ }
379
+ }, self));
380
+ }
381
+
382
+
383
+ self.$container.on('keydown', 'input', $.proxy(function(event) {
384
+ var $input = $(event.target),
385
+ $inputWrapper = self.findInputWrapper();
386
+
387
+ if (self.$element.attr('disabled')) {
388
+ self.$input.attr('disabled', 'disabled');
389
+ return;
390
+ }
391
+
392
+ switch (event.which) {
393
+ // BACKSPACE
394
+ case 8:
395
+ if (doGetCaretPosition($input[0]) === 0) {
396
+ var prev = $inputWrapper.prev();
397
+ if (prev.length) {
398
+ self.remove(prev.data('item'));
399
+ }
400
+ }
401
+ break;
402
+
403
+ // DELETE
404
+ case 46:
405
+ if (doGetCaretPosition($input[0]) === 0) {
406
+ var next = $inputWrapper.next();
407
+ if (next.length) {
408
+ self.remove(next.data('item'));
409
+ }
410
+ }
411
+ break;
412
+
413
+ // LEFT ARROW
414
+ case 37:
415
+ // Try to move the input before the previous tag
416
+ var $prevTag = $inputWrapper.prev();
417
+ if ($input.val().length === 0 && $prevTag[0]) {
418
+ $prevTag.before($inputWrapper);
419
+ $input.focus();
420
+ }
421
+ break;
422
+ // RIGHT ARROW
423
+ case 39:
424
+ // Try to move the input after the next tag
425
+ var $nextTag = $inputWrapper.next();
426
+ if ($input.val().length === 0 && $nextTag[0]) {
427
+ $nextTag.after($inputWrapper);
428
+ $input.focus();
429
+ }
430
+ break;
431
+ default:
432
+ // ignore
433
+ }
434
+
435
+ // Reset internal input's size
436
+ var textLength = $input.val().length,
437
+ wordSpace = Math.ceil(textLength / 5),
438
+ size = textLength + wordSpace + 1;
439
+ $input.attr('size', Math.max(this.inputSize, $input.val().length));
440
+ }, self));
441
+
442
+ self.$container.on('keypress', 'input', $.proxy(function(event) {
443
+ var $input = $(event.target);
444
+
445
+ if (self.$element.attr('disabled')) {
446
+ self.$input.attr('disabled', 'disabled');
447
+ return;
448
+ }
449
+
450
+ var text = $input.val(),
451
+ maxLengthReached = self.options.maxChars && text.length >= self.options.maxChars;
452
+ if (self.options.freeInput && (keyCombinationInList(event, self.options.confirmKeys) || maxLengthReached)) {
453
+ // Only attempt to add a tag if there is data in the field
454
+ if (text.length !== 0) {
455
+ self.add(maxLengthReached ? text.substr(0, self.options.maxChars) : text);
456
+ $input.val('');
457
+ }
458
+
459
+ // If the field is empty, let the event triggered fire as usual
460
+ if (self.options.cancelConfirmKeysOnEmpty === false) {
461
+ event.preventDefault();
462
+ }
463
+ }
464
+
465
+ // Reset internal input's size
466
+ var textLength = $input.val().length,
467
+ wordSpace = Math.ceil(textLength / 5),
468
+ size = textLength + wordSpace + 1;
469
+ $input.attr('size', Math.max(this.inputSize, $input.val().length));
470
+ }, self));
471
+
472
+ // Remove icon clicked
473
+ self.$container.on('click', '[data-role=remove]', $.proxy(function(event) {
474
+ if (self.$element.attr('disabled')) {
475
+ return;
476
+ }
477
+ self.remove($(event.target).closest('.tag').data('item'));
478
+ }, self));
479
+
480
+ // Only add existing value as tags when using strings as tags
481
+ if (self.options.itemValue === defaultOptions.itemValue) {
482
+ if (self.$element[0].tagName === 'INPUT') {
483
+ self.add(self.$element.val());
484
+ } else {
485
+ $('option', self.$element).each(function() {
486
+ self.add($(this).attr('value'), true);
487
+ });
488
+ }
489
+ }
490
+ },
491
+
492
+ /**
493
+ * Removes all tagsinput behaviour and unregsiter all event handlers
494
+ */
495
+ destroy: function() {
496
+ var self = this;
497
+
498
+ // Unbind events
499
+ self.$container.off('keypress', 'input');
500
+ self.$container.off('click', '[role=remove]');
501
+
502
+ self.$container.remove();
503
+ self.$element.removeData('tagsinput');
504
+ self.$element.show();
505
+ },
506
+
507
+ /**
508
+ * Sets focus on the tagsinput
509
+ */
510
+ focus: function() {
511
+ this.$input.focus();
512
+ },
513
+
514
+ /**
515
+ * Returns the internal input element
516
+ */
517
+ input: function() {
518
+ return this.$input;
519
+ },
520
+
521
+ /**
522
+ * Returns the element which is wrapped around the internal input. This
523
+ * is normally the $container, but typeahead.js moves the $input element.
524
+ */
525
+ findInputWrapper: function() {
526
+ var elt = this.$input[0],
527
+ container = this.$container[0];
528
+ while(elt && elt.parentNode !== container)
529
+ elt = elt.parentNode;
530
+
531
+ return $(elt);
532
+ }
533
+ };
534
+
535
+ /**
536
+ * Register JQuery plugin
537
+ */
538
+ $.fn.tagsinput = function(arg1, arg2, arg3) {
539
+ var results = [];
540
+
541
+ this.each(function() {
542
+ var tagsinput = $(this).data('tagsinput');
543
+ // Initialize a new tags input
544
+ if (!tagsinput) {
545
+ tagsinput = new TagsInput(this, arg1);
546
+ $(this).data('tagsinput', tagsinput);
547
+ results.push(tagsinput);
548
+
549
+ if (this.tagName === 'SELECT') {
550
+ $('option', $(this)).attr('selected', 'selected');
551
+ }
552
+
553
+ // Init tags from $(this).val()
554
+ $(this).val($(this).val());
555
+ } else if (!arg1 && !arg2) {
556
+ // tagsinput already exists
557
+ // no function, trying to init
558
+ results.push(tagsinput);
559
+ } else if(tagsinput[arg1] !== undefined) {
560
+ // Invoke function on existing tags input
561
+ if(tagsinput[arg1].length === 3 && arg3 !== undefined){
562
+ var retVal = tagsinput[arg1](arg2, null, arg3);
563
+ }else{
564
+ var retVal = tagsinput[arg1](arg2);
565
+ }
566
+ if (retVal !== undefined)
567
+ results.push(retVal);
568
+ }
569
+ });
570
+
571
+ if ( typeof arg1 == 'string') {
572
+ // Return the results from the invoked function calls
573
+ return results.length > 1 ? results : results[0];
574
+ } else {
575
+ return results;
576
+ }
577
+ };
578
+
579
+ $.fn.tagsinput.Constructor = TagsInput;
580
+
581
+ /**
582
+ * Most options support both a string or number as well as a function as
583
+ * option value. This function makes sure that the option with the given
584
+ * key in the given options is wrapped in a function
585
+ */
586
+ function makeOptionItemFunction(options, key) {
587
+ if (typeof options[key] !== 'function') {
588
+ var propertyName = options[key];
589
+ options[key] = function(item) { return item[propertyName]; };
590
+ }
591
+ }
592
+ function makeOptionFunction(options, key) {
593
+ if (typeof options[key] !== 'function') {
594
+ var value = options[key];
595
+ options[key] = function() { return value; };
596
+ }
597
+ }
598
+ /**
599
+ * HtmlEncodes the given value
600
+ */
601
+ var htmlEncodeContainer = $('<div />');
602
+ function htmlEncode(value) {
603
+ if (value) {
604
+ return htmlEncodeContainer.text(value).html();
605
+ } else {
606
+ return '';
607
+ }
608
+ }
609
+
610
+ /**
611
+ * Returns the position of the caret in the given input field
612
+ * http://flightschool.acylt.com/devnotes/caret-position-woes/
613
+ */
614
+ function doGetCaretPosition(oField) {
615
+ var iCaretPos = 0;
616
+ if (document.selection) {
617
+ oField.focus ();
618
+ var oSel = document.selection.createRange();
619
+ oSel.moveStart ('character', -oField.value.length);
620
+ iCaretPos = oSel.text.length;
621
+ } else if (oField.selectionStart || oField.selectionStart == '0') {
622
+ iCaretPos = oField.selectionStart;
623
+ }
624
+ return (iCaretPos);
625
+ }
626
+
627
+ /**
628
+ * Returns boolean indicates whether user has pressed an expected key combination.
629
+ * @param object keyPressEvent: JavaScript event object, refer
630
+ * http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
631
+ * @param object lookupList: expected key combinations, as in:
632
+ * [13, {which: 188, shiftKey: true}]
633
+ */
634
+ function keyCombinationInList(keyPressEvent, lookupList) {
635
+ var found = false;
636
+ $.each(lookupList, function (index, keyCombination) {
637
+ if (typeof (keyCombination) === 'number' && keyPressEvent.which === keyCombination) {
638
+ found = true;
639
+ return false;
640
+ }
641
+
642
+ if (keyPressEvent.which === keyCombination.which) {
643
+ var alt = !keyCombination.hasOwnProperty('altKey') || keyPressEvent.altKey === keyCombination.altKey,
644
+ shift = !keyCombination.hasOwnProperty('shiftKey') || keyPressEvent.shiftKey === keyCombination.shiftKey,
645
+ ctrl = !keyCombination.hasOwnProperty('ctrlKey') || keyPressEvent.ctrlKey === keyCombination.ctrlKey;
646
+ if (alt && shift && ctrl) {
647
+ found = true;
648
+ return false;
649
+ }
650
+ }
651
+ });
652
+
653
+ return found;
654
+ }
655
+
656
+ /**
657
+ * Initialize tagsinput behaviour on inputs and selects which have
658
+ * data-role=tagsinput
659
+ */
660
+ $(function() {
661
+ $("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput();
662
+ });
663
+ })(window.jQuery);