decidim-core 0.10.1 → 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -11
  3. data/app/assets/images/decidim/icons.svg +25 -6
  4. data/app/assets/javascripts/decidim/account_form.js.es6 +8 -8
  5. data/app/assets/javascripts/decidim/append_elements.js.es6 +1 -1
  6. data/app/assets/javascripts/decidim/append_redirect_url_to_modals.js.es6 +5 -5
  7. data/app/assets/javascripts/decidim/data_picker.js.es6 +10 -10
  8. data/app/assets/javascripts/decidim/editor.js.es6 +37 -22
  9. data/app/assets/javascripts/decidim/filters.js.es6 +1 -1
  10. data/app/assets/javascripts/decidim/form_filter.component.js.es6 +15 -15
  11. data/app/assets/javascripts/decidim/form_filter.component.test.js +29 -29
  12. data/app/assets/javascripts/decidim/impersonation.js.es6 +3 -3
  13. data/app/assets/javascripts/decidim/input_mentions.js.es6 +100 -0
  14. data/app/assets/javascripts/decidim/input_tags.js.es6 +12 -0
  15. data/app/assets/javascripts/decidim/{map.js.es6.erb → map.js.es6} +9 -9
  16. data/app/assets/javascripts/decidim/notifications.js.es6 +10 -10
  17. data/app/assets/javascripts/decidim/orders.js.es6 +5 -5
  18. data/app/assets/javascripts/decidim/user_registrations.js.es6 +4 -4
  19. data/app/assets/javascripts/decidim/widget.js.es6 +1 -1
  20. data/app/assets/javascripts/decidim.js.es6 +10 -0
  21. data/app/assets/stylesheets/decidim/application.scss.erb +1 -1
  22. data/app/assets/stylesheets/decidim/modules/_author-avatar.scss +39 -0
  23. data/app/assets/stylesheets/decidim/modules/_cards.scss +158 -3
  24. data/app/assets/stylesheets/decidim/modules/_definition-data.scss +6 -0
  25. data/app/assets/stylesheets/decidim/modules/_extra.scss +1 -3
  26. data/app/assets/stylesheets/decidim/modules/_icons.scss +14 -6
  27. data/app/assets/stylesheets/decidim/modules/_inline-filters.scss +61 -0
  28. data/app/assets/stylesheets/decidim/modules/_input-mentions.scss +124 -0
  29. data/app/assets/stylesheets/decidim/modules/_input-tags.scss +55 -0
  30. data/app/assets/stylesheets/decidim/modules/_modules.scss +3 -0
  31. data/app/assets/stylesheets/decidim/modules/_status-labels.scss +4 -0
  32. data/app/assets/stylesheets/decidim/modules/_typography.scss +16 -0
  33. data/app/assets/stylesheets/decidim/utils/_helpers.scss +29 -0
  34. data/app/assets/stylesheets/decidim/utils/_mixins.scss +6 -0
  35. data/app/cells/decidim/author_box/show.erb +10 -0
  36. data/app/cells/decidim/author_box_cell.rb +21 -0
  37. data/app/cells/decidim/card/show.erb +17 -0
  38. data/app/cells/decidim/card_cell.rb +29 -0
  39. data/app/cells/decidim/profile/profile_inline.erb +21 -0
  40. data/app/cells/decidim/profile/show.erb +13 -0
  41. data/app/cells/decidim/profile_cell.rb +17 -0
  42. data/app/commands/decidim/create_omniauth_registration.rb +3 -2
  43. data/app/commands/decidim/create_report.rb +1 -1
  44. data/app/commands/decidim/invite_user.rb +2 -0
  45. data/app/constraints/decidim/current_component.rb +41 -0
  46. data/app/controllers/concerns/decidim/action_authorization.rb +3 -3
  47. data/app/controllers/concerns/decidim/devise_controllers.rb +2 -1
  48. data/app/controllers/concerns/decidim/filter_resource.rb +1 -1
  49. data/app/controllers/concerns/decidim/form_factory.rb +1 -1
  50. data/app/controllers/concerns/decidim/impersonate_users.rb +6 -2
  51. data/app/controllers/concerns/decidim/needs_authorization.rb +2 -2
  52. data/app/controllers/concerns/decidim/participatory_space_context.rb +15 -0
  53. data/app/controllers/concerns/decidim/settings.rb +5 -5
  54. data/app/controllers/decidim/application_controller.rb +2 -1
  55. data/app/controllers/decidim/{features → components}/base_controller.rb +16 -8
  56. data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +3 -1
  57. data/app/controllers/decidim/devise/registrations_controller.rb +1 -3
  58. data/app/controllers/decidim/doorkeeper/authorizations_controller.rb +16 -0
  59. data/app/controllers/decidim/doorkeeper/credentials_controller.rb +46 -0
  60. data/app/controllers/decidim/doorkeeper/token_info_controller.rb +9 -0
  61. data/app/controllers/decidim/doorkeeper/tokens_controller.rb +9 -0
  62. data/app/controllers/decidim/widgets_controller.rb +1 -1
  63. data/app/forms/decidim/follow_form.rb +1 -1
  64. data/app/forms/decidim/form.rb +1 -1
  65. data/app/forms/decidim/omniauth_registration_form.rb +1 -0
  66. data/app/forms/decidim/registration_form.rb +5 -5
  67. data/app/helpers/decidim/card_helper.rb +16 -0
  68. data/app/helpers/decidim/component_path_helper.rb +36 -0
  69. data/app/helpers/decidim/icon_helper.rb +7 -7
  70. data/app/helpers/decidim/messaging/conversation_helper.rb +4 -3
  71. data/app/helpers/decidim/paginate_helper.rb +1 -1
  72. data/app/helpers/decidim/resource_helper.rb +2 -2
  73. data/app/jobs/decidim/export_job.rb +3 -3
  74. data/app/mailers/decidim/messaging/conversation_mailer.rb +0 -2
  75. data/app/middleware/decidim/current_organization.rb +2 -2
  76. data/app/models/decidim/abilities/admin_ability.rb +1 -1
  77. data/app/models/decidim/abilities/everyone_ability.rb +1 -1
  78. data/app/models/decidim/abilities/participatory_process_admin_ability.rb +2 -2
  79. data/app/models/decidim/abilities/participatory_process_collaborator_ability.rb +2 -2
  80. data/app/models/decidim/action_log.rb +7 -5
  81. data/app/models/decidim/area.rb +7 -0
  82. data/app/models/decidim/authorization.rb +14 -0
  83. data/app/models/decidim/{feature.rb → component.rb} +15 -15
  84. data/app/models/decidim/moderation.rb +1 -1
  85. data/app/models/decidim/oauth_application.rb +24 -0
  86. data/app/models/decidim/organization.rb +5 -0
  87. data/app/models/decidim/participatory_space_link.rb +20 -0
  88. data/app/models/decidim/participatory_space_private_user.rb +19 -0
  89. data/app/models/decidim/user.rb +7 -0
  90. data/app/presenters/decidim/admin_log/area_presenter.rb +38 -0
  91. data/app/presenters/decidim/admin_log/{feature_presenter.rb → component_presenter.rb} +5 -5
  92. data/app/presenters/decidim/admin_log/newsletter_resource_presenter.rb +1 -1
  93. data/app/presenters/decidim/admin_log/oauth_application_presenter.rb +50 -0
  94. data/app/presenters/decidim/admin_log/oauth_application_resource_presenter.rb +18 -0
  95. data/app/presenters/decidim/home_stats_presenter.rb +7 -7
  96. data/app/presenters/decidim/log/value_types/area_presenter.rb +1 -1
  97. data/app/presenters/decidim/log/value_types/area_type_presenter.rb +28 -0
  98. data/app/presenters/decidim/log/value_types/currency_presenter.rb +20 -0
  99. data/app/presenters/decidim/log/value_types/scope_presenter.rb +1 -1
  100. data/app/presenters/decidim/log/value_types/scope_type_presenter.rb +1 -1
  101. data/app/presenters/decidim/resource_locator_presenter.rb +3 -3
  102. data/app/services/decidim/action_authorizer.rb +9 -9
  103. data/app/services/decidim/action_logger.rb +9 -7
  104. data/app/services/decidim/email_notification_generator.rb +1 -1
  105. data/app/services/decidim/notification_generator_for_recipient.rb +1 -1
  106. data/app/services/decidim/resource_search.rb +8 -8
  107. data/app/services/decidim/settings_change.rb +5 -5
  108. data/app/services/decidim/static_map_generator.rb +1 -1
  109. data/app/types/decidim/core/attachment_type.rb +14 -0
  110. data/app/types/decidim/core/category_type.rb +16 -0
  111. data/app/types/decidim/core/coordinates_type.rb +19 -0
  112. data/app/types/decidim/core/scope_api_type.rb +16 -0
  113. data/app/uploaders/decidim/oauth_application_logo_uploader.rb +9 -0
  114. data/app/validators/geocoding_validator.rb +2 -2
  115. data/app/views/decidim/account/delete.html.erb +7 -7
  116. data/app/views/decidim/application/_collection.html.erb +1 -1
  117. data/app/views/decidim/application/_document.html.erb +1 -1
  118. data/app/views/decidim/application/_photos.html.erb +1 -1
  119. data/app/views/decidim/devise/invitations/edit.html.erb +1 -1
  120. data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
  121. data/app/views/decidim/devise/registrations/new.html.erb +1 -1
  122. data/app/views/decidim/devise/sessions/new.html.erb +2 -2
  123. data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +1 -1
  124. data/app/views/decidim/devise/shared/_omniauth_buttons_mini.html.erb +1 -1
  125. data/app/views/decidim/doorkeeper/authorizations/new.html.erb +58 -0
  126. data/app/views/decidim/messaging/conversations/_show.html.erb +1 -1
  127. data/app/views/decidim/messaging/conversations/index.html.erb +1 -1
  128. data/app/views/decidim/notifications/index.html.erb +1 -1
  129. data/app/views/decidim/notifications_settings/show.html.erb +2 -2
  130. data/app/views/decidim/own_user_groups/index.html.erb +3 -3
  131. data/app/views/decidim/scopes/_scopes_picker_input.html.erb +4 -4
  132. data/app/views/decidim/scopes/picker.html.erb +3 -3
  133. data/app/views/decidim/shared/_action_authorization_modal.html.erb +1 -1
  134. data/app/views/decidim/shared/_author.html.erb +1 -1
  135. data/app/views/decidim/shared/_author_reference.html.erb +1 -12
  136. data/app/views/decidim/shared/{_feature_announcement.html.erb → _component_announcement.html.erb} +2 -2
  137. data/app/views/decidim/shared/_embed_modal.html.erb +1 -1
  138. data/app/views/decidim/shared/_flag_modal.html.erb +5 -5
  139. data/app/views/decidim/shared/_login_modal.html.erb +3 -3
  140. data/app/views/decidim/shared/_private_participatory_space.html.erb +5 -0
  141. data/app/views/decidim/shared/_share_modal.html.erb +1 -1
  142. data/app/views/decidim/shared/_tags.html.erb +1 -1
  143. data/app/views/decidim/shared/_version_author.html.erb +1 -1
  144. data/app/views/decidim/widgets/_data_picker.html.erb +4 -4
  145. data/app/views/devise/mailer/confirmation_instructions.html.erb +3 -3
  146. data/app/views/devise/mailer/invite_private_user.html.erb +17 -0
  147. data/app/views/devise/mailer/invite_private_user.text.erb +15 -0
  148. data/app/views/devise/mailer/password_change.html.erb +2 -2
  149. data/app/views/devise/mailer/reset_password_instructions.html.erb +5 -5
  150. data/app/views/kaminari/decidim/_first_page.html.erb +2 -3
  151. data/app/views/kaminari/decidim/_gap.html.erb +2 -3
  152. data/app/views/kaminari/decidim/_last_page.html.erb +2 -3
  153. data/app/views/kaminari/decidim/_next_page.html.erb +2 -3
  154. data/app/views/kaminari/decidim/_page.html.erb +2 -3
  155. data/app/views/kaminari/decidim/_paginator.html.erb +1 -2
  156. data/app/views/kaminari/decidim/_prev_page.html.erb +2 -3
  157. data/app/views/layouts/decidim/_application.html.erb +4 -4
  158. data/app/views/layouts/decidim/_component_authorization_modals.html.erb +5 -0
  159. data/app/views/layouts/decidim/_cookie_warning.html.erb +2 -2
  160. data/app/views/layouts/decidim/_head.html.erb +4 -4
  161. data/app/views/layouts/decidim/_impersonation_warning.html.erb +4 -4
  162. data/app/views/layouts/decidim/_language_chooser.html.erb +1 -1
  163. data/app/views/layouts/decidim/_social_media_links.html.erb +5 -5
  164. data/app/views/layouts/decidim/_wrapper.html.erb +5 -5
  165. data/app/views/layouts/decidim/mailer.html.erb +1 -1
  166. data/app/views/layouts/decidim/widget.html.erb +5 -5
  167. data/app/views/pages/home/_hero.html.erb +1 -1
  168. data/app/views/pages/home.html.erb +6 -6
  169. data/config/locales/ca.yml +66 -27
  170. data/config/locales/en.yml +69 -30
  171. data/config/locales/es.yml +66 -27
  172. data/config/locales/eu.yml +69 -30
  173. data/config/locales/fi.yml +69 -30
  174. data/config/locales/fr.yml +85 -46
  175. data/config/locales/gl.yml +69 -30
  176. data/config/locales/it.yml +69 -30
  177. data/config/locales/nl.yml +122 -83
  178. data/config/locales/pl.yml +69 -30
  179. data/config/locales/pt-BR.yml +69 -30
  180. data/config/locales/pt.yml +69 -30
  181. data/config/locales/ru.yml +0 -7
  182. data/config/locales/sv.yml +69 -30
  183. data/config/locales/uk.yml +0 -13
  184. data/config/routes.rb +8 -0
  185. data/db/migrate/20180206183235_create_participatory_space_private_users.rb +15 -0
  186. data/db/migrate/20180221101934_fix_nickname_index.rb +5 -6
  187. data/db/migrate/20180226140756_add_version_to_action_logs.rb +5 -1
  188. data/db/migrate/20180227131727_create_participatory_space_links.rb +12 -0
  189. data/db/migrate/20180305132906_rename_features_to_components.rb +13 -0
  190. data/db/migrate/20180308113207_doorkeeper_models.rb +85 -0
  191. data/db/migrate/20180314085339_rename_maximum_votes_per_proposal_to_threshold_per_proposal.rb +2 -2
  192. data/db/migrate/{20180326075746_change_event_name_and_class_to_rename_to_publish_proposal_event.rb → 20180323102631_change_event_name_and_class_to_rename_to_publish_proposal_event.rb} +0 -0
  193. data/db/seeds.rb +12 -2
  194. data/lib/decidim/api/attachable_interface.rb +13 -0
  195. data/lib/decidim/api/authorable_interface.rb +13 -0
  196. data/lib/decidim/api/categorizable_interface.rb +13 -0
  197. data/lib/decidim/api/participatory_space_interface.rb +4 -4
  198. data/lib/decidim/api/scopable_interface.rb +13 -0
  199. data/lib/decidim/authorable.rb +8 -0
  200. data/lib/decidim/{feature_manifest.rb → component_manifest.rb} +24 -21
  201. data/lib/decidim/{feature_validator.rb → component_validator.rb} +6 -6
  202. data/lib/decidim/{features → components}/export_manifest.rb +4 -4
  203. data/lib/decidim/components/namer.rb +35 -0
  204. data/lib/decidim/components.rb +9 -0
  205. data/lib/decidim/content_parsers/user_parser.rb +1 -1
  206. data/lib/decidim/core/api.rb +13 -0
  207. data/lib/decidim/core/engine.rb +76 -3
  208. data/lib/decidim/core/test/factories.rb +43 -10
  209. data/lib/decidim/core/test/shared_examples/announcements_examples.rb +9 -9
  210. data/lib/decidim/core/test/shared_examples/attachable_interface_examples.rb +16 -0
  211. data/lib/decidim/core/test/shared_examples/authorable_interface_examples.rb +33 -0
  212. data/lib/decidim/core/test/shared_examples/categorizable_interface_examples.rb +19 -0
  213. data/lib/decidim/core/test/shared_examples/comments_examples.rb +3 -3
  214. data/lib/decidim/core/test/shared_examples/follows_examples.rb +1 -1
  215. data/lib/decidim/core/test/shared_examples/has_component.rb +21 -0
  216. data/lib/decidim/core/test/shared_examples/has_reference.rb +2 -2
  217. data/lib/decidim/core/test/shared_examples/localised_email.rb +1 -1
  218. data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +1 -1
  219. data/lib/decidim/core/test/shared_examples/reportable.rb +8 -6
  220. data/lib/decidim/core/test/shared_examples/reports_examples.rb +1 -1
  221. data/lib/decidim/core/test/shared_examples/scopable_interface_examples.rb +19 -0
  222. data/lib/decidim/core/test/shared_examples/scope_helper_examples.rb +8 -3
  223. data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -1
  224. data/lib/decidim/core/test/shared_examples/user_localised_email_examples.rb +1 -1
  225. data/lib/decidim/core/test.rb +1 -1
  226. data/lib/decidim/core/version.rb +1 -1
  227. data/lib/decidim/core.rb +35 -37
  228. data/lib/decidim/events/base_event.rb +5 -5
  229. data/lib/decidim/events/simple_event.rb +8 -8
  230. data/lib/decidim/form_builder.rb +48 -3
  231. data/lib/decidim/has_attachment_collections.rb +1 -1
  232. data/lib/decidim/has_attachments.rb +1 -1
  233. data/lib/decidim/has_category.rb +2 -2
  234. data/lib/decidim/has_component.rb +23 -0
  235. data/lib/decidim/has_private_users.rb +26 -0
  236. data/lib/decidim/has_reference.rb +3 -3
  237. data/lib/decidim/page_finder.rb +1 -1
  238. data/lib/decidim/participatory_space_manifest.rb +3 -3
  239. data/lib/decidim/participatory_space_resourceable.rb +80 -0
  240. data/lib/decidim/publicable.rb +2 -2
  241. data/lib/decidim/query_extensions.rb +2 -2
  242. data/lib/decidim/rectify_ext.rb +32 -0
  243. data/lib/decidim/reportable.rb +1 -1
  244. data/lib/decidim/resource_manifest.rb +13 -13
  245. data/lib/decidim/resourceable.rb +8 -8
  246. data/lib/decidim/scopable.rb +1 -1
  247. data/lib/decidim/{scopable_feature.rb → scopable_component.rb} +1 -1
  248. data/lib/decidim/settings_manifest.rb +1 -1
  249. data/lib/decidim/stats_registry.rb +1 -1
  250. data/lib/decidim/view_model.rb +9 -0
  251. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.fr.js +4 -1
  252. data/vendor/assets/javascripts/form_datepicker.js.es6 +10 -10
  253. data/vendor/assets/javascripts/quill.min.js +2 -2
  254. data/vendor/assets/javascripts/quill.min.js.map +1 -1
  255. data/vendor/assets/javascripts/tagsinput.js +683 -0
  256. data/vendor/assets/javascripts/tribute.js +1607 -0
  257. data/vendor/assets/stylesheets/quill.bubble.css +30 -16
  258. data/vendor/assets/stylesheets/quill.core.css +19 -9
  259. data/vendor/assets/stylesheets/quill.snow.css +30 -16
  260. data/vendor/assets/stylesheets/tagsinput.css +55 -0
  261. data/vendor/assets/stylesheets/tribute.css +27 -0
  262. metadata +164 -27
  263. data/app/constraints/decidim/current_feature.rb +0 -41
  264. data/app/helpers/decidim/feature_path_helper.rb +0 -36
  265. data/app/views/layouts/decidim/_feature_authorization_modals.html.erb +0 -5
  266. data/lib/decidim/core/test/shared_examples/has_feature.rb +0 -21
  267. data/lib/decidim/features/namer.rb +0 -35
  268. data/lib/decidim/features.rb +0 -9
  269. data/lib/decidim/has_feature.rb +0 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01e56f77ccf20b8ddcfcf1fcd95c6e54b8c1efa7e74cc39ce10cf1fc2ec88d7e
4
- data.tar.gz: 7a76192242cb60ff161a951871faf7342f6a624a0ff731d18cff42386fa2a984
3
+ metadata.gz: '04988393ef627300b548fae17f96330e2706f9373363431049f4e01f39020d96'
4
+ data.tar.gz: e3640fab8dc6b7cac5964379084a07ec4d1f9a928c04c232edd6e0e625838634
5
5
  SHA512:
6
- metadata.gz: 2eeded83213a6e70ac6e977c3171c17740650cc9d67fd29f8e7bdcaaa0dfcd9aedf6c80c16b6e422c7a8c99abf76f92a8151a4402c7290dc4e15fdbd5a7d0050
7
- data.tar.gz: add49243c68167217952334a5e5b43c35965caf8bb7b9123bcdb897c0a2b4912992ebc3c989bdd70ed21246393a2486d399166a444e094479d0e351066eedf14
6
+ metadata.gz: 79a768c70134e88953c2c4c54e5100ab08afaee729032cd1762ecb7596e4be61ee57b799b1bf6e9c7274a14e0bda45a52126fd367864a01e39d90d6f6b821acc
7
+ data.tar.gz: 60feb3c12b68ff1b290760c49bb83762ffe5922708d925ad4e6b421cfc9b6876001aa6879ed12b05ea0ca8b39ad37f6838abbc63b3bead6b970524e02371bcf7
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # Decidim
2
2
 
3
- Short description and motivation.
3
+ Core functionality in Decidim. Every single decidim functionality depends on this gem.
4
4
 
5
5
  ## Usage
6
6
 
7
- How to use my module.
7
+ You'll be using indirectly on any decidim application.
8
8
 
9
9
  ## Installation
10
10
 
11
- Add this line to your application's Gemfile:
11
+ Add `decidim` to your `Gemfile` and you'll be using it:
12
12
 
13
13
  ```ruby
14
14
  gem 'decidim'
@@ -20,16 +20,10 @@ And then execute:
20
20
  bundle
21
21
  ```
22
22
 
23
- Or install it yourself as:
24
-
25
- ```bash
26
- gem install decidim
27
- ```
28
-
29
23
  ## Contributing
30
24
 
31
- Contribution directions go here.
25
+ See [Decidim](https://github.com/decidim/decidim).
32
26
 
33
27
  ## License
34
28
 
35
- The gem is available as open source under the terms of the [AGPLv3 License](https://opensource.org/licenses/AGPL-3.0).
29
+ See [Decidim](https://github.com/decidim/decidim).
@@ -57,7 +57,8 @@
57
57
  <symbol viewBox="0 0 8 8" id="icon-chevron-left"><title>chevron-left</title> <path d="M4 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z" transform="translate(1)"/> </symbol>
58
58
  <symbol viewBox="0 0 8 8" id="icon-chevron-right"><title>chevron-right</title> <path d="M1.5 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z" transform="translate(1)"/> </symbol>
59
59
  <symbol viewBox="0 0 8 8" id="icon-chevron-top"><title>chevron-top</title> <path d="M4 0l-4 4 1.5 1.5 2.5-2.5 2.5 2.5 1.5-1.5-4-4z" transform="translate(0 1)"/> </symbol>
60
- <symbol viewBox="0 0 8 8" id="icon-circle-check"><title>circle-check</title> <path d="M4 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm2 1.78l.72.72-3.22 3.22-1.72-1.72.72-.72 1 1 2.5-2.5z"/> </symbol>
60
+ <symbol viewBox="0 0 8 8" id="icon-circle-check"><title>circle-check</title> <path d="M4 0C1.79 0 0 1.79 0 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm1.385 2L6 2.68 3.25 5.72 1.78 4.096l.615-.68.854.944L5.385 2z"/> </symbol>
61
+ <symbol viewBox="0 0 8 8" id="icon-circle-check-old"><title>circle-check-old</title> <path d="M4 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm2 1.78l.72.72-3.22 3.22-1.72-1.72.72-.72 1 1 2.5-2.5z"/> </symbol>
61
62
  <symbol viewBox="0 0 8 8" id="icon-circle-x"><title>circle-x</title> <path d="M4 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-1.5 1.78l1.5 1.5 1.5-1.5.72.72-1.5 1.5 1.5 1.5-.72.72-1.5-1.5-1.5 1.5-.72-.72 1.5-1.5-1.5-1.5.72-.72z"/> </symbol>
62
63
  <symbol viewBox="0 0 8 8" id="icon-clipboard"><title>clipboard</title> <path d="M3.5 0c-.28 0-.5.22-.5.5v.5h-.75c-.14 0-.25.11-.25.25v.75h3v-.75c0-.14-.11-.25-.25-.25h-.75v-.5c0-.28-.22-.5-.5-.5zm-3.25 1c-.14 0-.25.11-.25.25v6.5c0 .14.11.25.25.25h6.5c.14 0 .25-.11.25-.25v-6.5c0-.14-.11-.25-.25-.25h-.75v2h-5v-2h-.75z"/> </symbol>
63
64
  <symbol viewBox="0 0 8 8" id="icon-clock"><title>clock</title> <path d="M4 0c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 1c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm-.5 1v2.22l.16.13.5.5.34.38.72-.72-.38-.34-.34-.34v-1.81h-1z"/> </symbol>
@@ -130,7 +131,6 @@
130
131
  <symbol viewBox="0 0 8 8" id="icon-inbox"><title>inbox</title> <path d="M.19 0c-.11 0-.19.08-.19.19v7.63c0 .11.08.19.19.19h7.63c.11 0 .19-.08.19-.19v-7.63c0-.11-.08-.19-.19-.19h-7.63zm.81 2h6v3h-1l-1 1h-2l-1-1h-1v-3z"/> </symbol>
131
132
  <symbol viewBox="0 0 8 8" id="icon-infinity"><title>infinity</title> <path d="M2 0c-1.31 0-2 1.01-2 2s.69 2 2 2c.79 0 1.42-.56 2-1.22.58.66 1.19 1.22 2 1.22 1.31 0 2-1.01 2-2s-.69-2-2-2c-.81 0-1.42.56-2 1.22-.58-.66-1.21-1.22-2-1.22zm0 1c.42 0 .88.47 1.34 1-.46.53-.92 1-1.34 1-.74 0-1-.54-1-1 0-.46.26-1 1-1zm4 0c.74 0 1 .54 1 1 0 .46-.26 1-1 1-.43 0-.89-.47-1.34-1 .46-.53.91-1 1.34-1z" transform="translate(0 2)"/> </symbol>
132
133
  <symbol viewBox="0 0 8 8" id="icon-info"><title>info</title> <path d="M3 0c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-1.5 2.5c-.83 0-1.5.67-1.5 1.5h1c0-.28.22-.5.5-.5s.5.22.5.5-1 1.64-1 2.5c0 .86.67 1.5 1.5 1.5s1.5-.67 1.5-1.5h-1c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-.36 1-1.84 1-2.5 0-.81-.67-1.5-1.5-1.5z" transform="translate(2)"/> </symbol>
133
- <symbol viewBox="0 0 36.02 36.02" id="icon-information"><title>information</title><path d="M373,545.54a18,18,0,1,1,18-18A18,18,0,0,1,373,545.54Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,373,511.53Z" transform="translate(-354.99 -509.53)"/><path d="M377.73,536.41h-9.46a1,1,0,1,1,0-2h9.46A1,1,0,0,1,377.73,536.41Z" transform="translate(-354.99 -509.53)"/><path d="M375,525.54h-6.73a1,1,0,1,1,0-2H375A1,1,0,1,1,375,525.54Z" transform="translate(-354.99 -509.53)"/><path d="M375,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,375,535.41Z" transform="translate(-354.99 -509.53)"/><path d="M373,523a3,3,0,1,1,3-3A3,3,0,0,1,373,523Zm0-4a1,1,0,1,0,1,1A1,1,0,0,0,373,519Z" transform="translate(-354.99 -509.53)"/><path d="M371,535.41a1,1,0,0,1-1-1v-9.87a1,1,0,1,1,2,0v9.87A1,1,0,0,1,371,535.41Z" transform="translate(-354.99 -509.53)"/></symbol>
134
134
  <symbol viewBox="0 0 438.536 438.536" id="icon-instagram"><title>instagram</title><path d="M421.98 16.562C410.94 5.52 397.71 0 382.3 0H56.248C40.83 0 27.604 5.52 16.56 16.562 5.52 27.6 0 40.828 0 56.242V382.29c0 15.413 5.52 28.644 16.56 39.683 11.044 11.04 24.273 16.563 39.688 16.563h326.046c15.41 0 28.644-5.523 39.684-16.563 11.043-11.04 16.557-24.27 16.557-39.683V56.243c0-15.418-5.514-28.64-16.554-39.68zM157.463 158.025c17.224-16.652 37.924-24.982 62.097-24.982 24.36 0 45.152 8.33 62.38 24.982 17.228 16.655 25.837 36.785 25.837 60.386 0 23.6-8.61 43.73-25.837 60.38-17.228 16.66-38.014 24.99-62.38 24.99-24.173 0-44.87-8.33-62.098-24.99s-25.84-36.78-25.84-60.38 8.612-43.73 25.84-60.38zM388.865 370.59c0 4.944-1.718 9.082-5.14 12.415-3.434 3.33-7.52 4.996-12.283 4.996h-305.2c-4.948 0-9.09-1.66-12.42-4.99-3.332-3.323-4.997-7.47-4.997-12.413v-185.02H89.08c-3.805 11.994-5.708 24.463-5.708 37.403 0 36.552 13.322 67.714 39.97 93.51 26.65 25.786 58.72 38.685 96.216 38.685 24.744 0 47.583-5.903 68.527-17.703 20.937-11.81 37.486-27.84 49.676-48.113 12.19-20.274 18.28-42.4 18.28-66.38 0-12.94-1.91-25.408-5.712-37.404h38.548V370.59zm0-254.964c0 5.52-1.903 10.184-5.716 13.99-3.81 3.81-8.47 5.71-13.99 5.71h-49.68c-5.52 0-10.19-1.902-13.99-5.71-3.81-3.806-5.71-8.47-5.71-13.99V68.522c0-5.33 1.9-9.945 5.71-13.848 3.8-3.9 8.47-5.854 13.99-5.854h49.67c5.523 0 10.185 1.952 13.99 5.854 3.81 3.903 5.715 8.518 5.715 13.848v47.104z"/></symbol>
135
135
  <symbol viewBox="0 0 8 8" id="icon-italic"><title>italic</title> <path d="M2 0v1h1.63l-.06.13-2 5-.34.88h-1.22v1h5v-1h-1.63l.06-.13 2-5 .34-.88h1.22v-1h-5z"/> </symbol>
136
136
  <symbol viewBox="0 0 8 8" id="icon-justify-center"><title>justify-center</title> <path d="M0 0v1h8v-1h-8zm0 2v1h8v-1h-8zm0 2v1h8v-1h-8zm1 2v1h6v-1h-6z"/> </symbol>
@@ -181,9 +181,11 @@
181
181
  <symbol viewBox="0 0 8 8" id="icon-plus"><title>plus</title> <path d="M3 0v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2z"/> </symbol>
182
182
  <symbol viewBox="0 0 8 8" id="icon-power-standby"><title>power-standby</title> <path d="M3 0v4h1v-4h-1zm-1.28 1.44l-.38.31c-.81.64-1.34 1.64-1.34 2.75 0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5c0-1.11-.53-2.11-1.34-2.75l-.38-.31-.63.78.38.31c.58.46.97 1.17.97 1.97 0 1.39-1.11 2.5-2.5 2.5s-2.5-1.11-2.5-2.5c0-.8.36-1.51.94-1.97l.41-.31-.63-.78z"/> </symbol>
183
183
  <symbol viewBox="0 0 8 8" id="icon-print"><title>print</title> <path d="M2 0v2h4v-2h-4zm-1.91 3c-.06 0-.09.04-.09.09v2.81c0 .05.04.09.09.09h.91v-2h6v2h.91c.05 0 .09-.04.09-.09v-2.81c0-.06-.04-.09-.09-.09h-7.81zm1.91 2v3h4v-3h-4z"/> </symbol>
184
- <symbol viewBox="0 0 36.02 36.02" id="icon-process"><title>icono-process</title><path class="cls-1" d="M883.8,543.84a18,18,0,1,1,18-18A18,18,0,0,1,883.8,543.84Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,883.8,509.83Z" transform="translate(-865.8 -507.83)"/><path class="cls-1" d="M883.8,528.75a2.91,2.91,0,1,1,2.91-2.91A2.92,2.92,0,0,1,883.8,528.75Zm0-3.83a0.91,0.91,0,1,0,.91.92A0.92,0.92,0,0,0,883.8,524.92Z" transform="translate(-865.8 -507.83)"/><path class="cls-1" d="M883.8,521.18a2.91,2.91,0,1,1,2.91-2.91A2.92,2.92,0,0,1,883.8,521.18Zm0-3.83a0.91,0.91,0,1,0,.91.92A0.92,0.92,0,0,0,883.8,517.35Z" transform="translate(-865.8 -507.83)"/><path class="cls-1" d="M883.8,536.32a2.92,2.92,0,1,1,2.91-2.91A2.92,2.92,0,0,1,883.8,536.32Zm0-3.83a0.92,0.92,0,1,0,.91.92A0.92,0.92,0,0,0,883.8,532.49Z" transform="translate(-865.8 -507.83)"/><path class="cls-1" d="M881.52,526.85a4.79,4.79,0,1,1,0-9.59,1,1,0,0,1,0,2,2.79,2.79,0,1,0,0,5.59A1,1,0,0,1,881.52,526.85Z" transform="translate(-865.8 -507.83)"/><path class="cls-1" d="M886.09,534.47a1,1,0,0,1,0-2,2.79,2.79,0,0,0,0-5.59,1,1,0,0,1,0-2A4.79,4.79,0,0,1,886.09,534.47Z" transform="translate(-865.8 -507.83)"/></symbol>
184
+ <symbol viewBox="0 0 36.02 36.02" id="icon-process"><title>icono-process</title> <path d="M18 36.01c-9.941 0-18-8.059-18-18s8.059-18 18-18 18 8.059 18 18-8.059 18-18 18zm0-34c-8.837 0-16 7.163-16 16s7.163 16 16 16 16-7.163 16-16A16 16 0 0 0 18 2v.01z"/>
185
+ <path d="M15.608 19.423a2.91 2.91 0 1 1 3.975 1.066 2.92 2.92 0 0 1-3.975-1.066zm3.317-1.915a.91.91 0 1 0-.342 1.248.92.92 0 0 0 .342-1.248zM22.164 15.638a2.91 2.91 0 1 1 3.975 1.066 2.92 2.92 0 0 1-3.975-1.066zm3.316-1.915a.91.91 0 1 0-.341 1.248.92.92 0 0 0 .341-1.248zM9.052 23.208a2.92 2.92 0 1 1 5.048-2.937 2.92 2.92 0 0 1-5.048 2.937zm3.317-1.915a.92.92 0 1 0-1.604.903.92.92 0 0 0 1.604-.903z"/>
186
+ <path d="M16.113 16.499a4.795 4.795 0 0 1 8.305-4.795 1 1 0 1 1-1.732 1 2.795 2.795 0 0 0-4.84 2.795 1 1 0 1 1-1.733 1zM11.8 24.267a1 1 0 1 1 1.731-1 2.795 2.795 0 0 0 4.841-2.795 1 1 0 1 1 1.732-1 4.795 4.795 0 0 1-8.305 4.795z"/> </symbol>
185
187
  <symbol viewBox="0 0 8 8" id="icon-project"><title>project</title> <path d="M0 0v7h1v-7h-1zm7 0v7h1v-7h-1zm-5 1v1h2v-1h-2zm1 2v1h2v-1h-2zm1 2v1h2v-1h-2z"/> </symbol>
186
- <symbol viewBox="0 0 35 35" id="icon-proposals"><title>proposals</title><path d="M17.5 35A17.5 17.5 0 1 1 35 17.5 17.52 17.52 0 0 1 17.5 35zm0-33.06A15.56 15.56 0 1 0 33.06 17.5 15.57 15.57 0 0 0 17.5 1.94zm9.5 13.7H8a1 1 0 0 1 0-1.94h19a1 1 0 0 1 0 1.94zm0 3.68H8a1 1 0 0 1 0-1.94h19a1 1 0 0 1 0 1.94zM22.26 23H8a1 1 0 0 1 0-1.94h14.26a1 1 0 0 1 0 1.94z"/></symbol>
188
+ <symbol viewBox="0 0 35 35" id="icon-proposals-old"><title>proposals-old</title><path d="M17.5 35A17.5 17.5 0 1 1 35 17.5 17.52 17.52 0 0 1 17.5 35zm0-33.06A15.56 15.56 0 1 0 33.06 17.5 15.57 15.57 0 0 0 17.5 1.94zm9.5 13.7H8a1 1 0 0 1 0-1.94h19a1 1 0 0 1 0 1.94zm0 3.68H8a1 1 0 0 1 0-1.94h19a1 1 0 0 1 0 1.94zM22.26 23H8a1 1 0 0 1 0-1.94h14.26a1 1 0 0 1 0 1.94z"/></symbol>
187
189
  <symbol viewBox="0 0 8 8" id="icon-pulse"><title>pulse</title> <path d="M3.25 0l-.47 1.53-.78 2.56-.03-.06-.09-.34h-1.88v1h1.1600000000000001l.38 1.16.47 1.47.47-1.5.78-2.5.78 2.5.41 1.34.53-1.28.59-1.47.13.28h2.31v-1h-1.69l-.38-.75-.5-.97-.41 1.03-.47 1.19-.84-2.66-.47-1.53z"/> </symbol>
188
190
  <symbol viewBox="0 0 8 8" id="icon-puzzle-piece"><title>puzzle-piece</title> <path d="M3 0c-.28 0-.54.1-.72.28-.18.18-.28.44-.28.72 0 .28.18.48.28.72.03.06.03.16.03.28h-2.31v6h2.31c0-.12-.01-.22-.03-.28-.1-.24-.28-.44-.28-.72 0-.28.1-.54.28-.72.18-.18.44-.28.72-.28.28 0 .54.1.72.28.18.18.28.44.28.72 0 .28-.18.48-.28.72-.03.06-.03.16-.03.28h2.31v-2.31c.12 0 .22.01.28.03.24.1.44.28.72.28.28 0 .54-.1.72-.28.18-.18.28-.44.28-.72 0-.28-.1-.54-.28-.72-.18-.18-.44-.28-.72-.28-.28 0-.48.18-.72.28-.06.03-.16.03-.28.03v-2.31h-2.31c0-.12.01-.22.03-.28.1-.24.28-.44.28-.72 0-.28-.1-.54-.28-.72-.18-.18-.44-.28-.72-.28z"/> </symbol>
189
191
  <symbol viewBox="0 0 8 8" id="icon-question-mark"><title>question-mark</title> <path d="M2.47 0c-.85 0-1.48.26-1.88.66-.4.4-.54.9-.59 1.28l1 .13c.04-.25.12-.5.31-.69.19-.19.49-.38 1.16-.38.66 0 1.02.16 1.22.34.2.18.28.4.28.66 0 .83-.34 1.06-.84 1.5-.5.44-1.16 1.08-1.16 2.25v.25h1v-.25c0-.83.31-1.06.81-1.5.5-.44 1.19-1.08 1.19-2.25 0-.48-.17-1.02-.59-1.41-.43-.39-1.07-.59-1.91-.59zm-.5 7v1h1v-1h-1z" transform="translate(2)"/> </symbol>
@@ -220,7 +222,7 @@
220
222
  <symbol viewBox="0 0 8 8" id="icon-trash"><title>trash</title> <path d="M3 0c-.55 0-1 .45-1 1h-1c-.55 0-1 .45-1 1h7c0-.55-.45-1-1-1h-1c0-.55-.45-1-1-1h-1zm-2 3v4.81c0 .11.08.19.19.19h4.63c.11 0 .19-.08.19-.19v-4.81h-1v3.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-3.5h-1v3.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5v-3.5h-1z"/> </symbol>
221
223
  <symbol viewBox="0 0 449.956 449.956" id="icon-twitter"><title>twitter</title><path d="M449.956 85.657c-17.702 7.614-35.408 12.37-53.102 14.28 19.985-11.992 33.503-28.932 40.546-50.82-18.28 10.847-37.787 18.268-58.532 22.267-18.274-19.414-40.73-29.125-67.383-29.125-25.502 0-47.246 8.99-65.24 26.98-17.984 17.98-26.977 39.73-26.977 65.23 0 6.85.76 13.892 2.284 21.13-37.688-1.908-73.042-11.37-106.068-28.41-33.024-17.035-61.05-39.73-84.08-68.09-8.376 14.27-12.564 29.785-12.564 46.534 0 15.798 3.71 30.456 11.136 43.97 7.422 13.512 17.417 24.455 29.98 32.83-14.85-.57-28.743-4.474-41.684-11.707v1.14c0 22.27 6.995 41.825 20.983 58.675C53.245 247.395 70.9 258 92.215 262.38c-7.993 2.09-16.084 3.137-24.267 3.137-5.33 0-11.136-.475-17.416-1.42 5.9 18.46 16.75 33.633 32.546 45.535 15.8 11.896 33.69 18.028 53.677 18.418-33.498 26.262-71.66 39.393-114.486 39.393-8.19 0-15.61-.373-22.27-1.14C42.82 393.9 90.03 407.7 141.61 407.7c32.74 0 63.48-5.18 92.21-15.557 28.747-10.368 53.298-24.266 73.666-41.685 20.362-17.415 37.925-37.448 52.674-60.097 14.75-22.65 25.738-46.29 32.977-70.94 7.23-24.65 10.848-49.342 10.848-74.09 0-5.33-.096-9.325-.287-11.99 18.087-13.13 33.504-29.024 46.258-47.673z"/></symbol>
222
224
  <symbol viewBox="0 0 8 8" id="icon-underline"><title>underline</title> <path d="M1 0v4c0 1.1 1.12 2 2.5 2h.5c1.1 0 2-.9 2-2v-4h-1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4h-2zm-1 7v1h7v-1h-7z"/> </symbol>
223
- <symbol viewBox="0 0 12 12" id="icon-verified-badge"><title>verified-badge</title><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-10.000000, -10.000000)"><g transform="translate(10.000000, 10.000000)"><circle fill="#EC6A5B" cx="6" cy="6" r="6"></circle><polygon fill="#FFFFFF" points="5.94339623 7.68870417 4.01701324 8.59483494 4.28350974 6.48272604 2.82644308 4.93063676 4.91752996 4.53141244 5.94339623 2.66603774 6.9692625 4.53141244 9.06034938 4.93063676 7.60328272 6.48272604 7.86977921 8.59483494"></polygon></g></g> </symbol>
225
+ <symbol viewBox="0 0 12 12" id="icon-verified-badge"><title>verified-badge</title> <path d="M0 6a6 6 0 1 0 12 0A6 6 0 1 0 0 6m5.943 1.689l-1.926.906.267-2.112L2.826 4.93l2.092-.4 1.025-1.865L6.97 4.531l2.091.4-1.457 1.552.267 2.112z"/> </symbol>
224
226
  <symbol viewBox="0 0 8 8" id="icon-vertical-align-bottom"><title>vertical-align-bottom</title> <path d="M.09 0c-.06 0-.09.04-.09.09v4.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-4.81c0-.06-.04-.09-.09-.09h-1.81zm6 0c-.05 0-.09.04-.09.09v4.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-4.81c0-.06-.04-.09-.09-.09h-1.81zm-3 2c-.06 0-.09.04-.09.09v2.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-2.81c0-.06-.04-.09-.09-.09h-1.81zm-3.09 4v1h8v-1h-8z"/> </symbol>
225
227
  <symbol viewBox="0 0 8 8" id="icon-vertical-align-center"><title>vertical-align-center</title> <path d="M.09 0c-.06 0-.09.04-.09.09v1.91h2v-1.91c0-.06-.04-.09-.09-.09h-1.81zm6 0c-.05 0-.09.04-.09.09v1.91h2v-1.91c0-.06-.04-.09-.09-.09h-1.81zm-3 1c-.06 0-.09.04-.09.09v.91h2v-.91c0-.05-.04-.09-.09-.09h-1.81zm-3.09 2v1h8v-1h-8zm0 2v1.91c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-1.91h-2zm3 0v.91c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-.91h-2zm3 0v1.91c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-1.91h-2z"/> </symbol>
226
228
  <symbol viewBox="0 0 8 8" id="icon-vertical-align-top"><title>vertical-align-top</title> <path d="M0 0v1h8v-1h-8zm.09 2c-.06 0-.09.04-.09.09v4.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-4.81c0-.06-.04-.09-.09-.09h-1.81zm3 0c-.06 0-.09.04-.09.09v2.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-2.81c0-.06-.04-.09-.09-.09h-1.81zm3 0c-.05 0-.09.04-.09.09v4.81c0 .05.04.09.09.09h1.81c.05 0 .09-.04.09-.09v-4.81c0-.06-.04-.09-.09-.09h-1.81z"/> </symbol>
@@ -236,4 +238,21 @@
236
238
  <symbol viewBox="0 0 511.627 511.627" id="icon-youtube"><title>youtube</title><path d="M459.954 264.376c-2.47-11.233-7.95-20.653-16.416-28.264-8.474-7.61-18.227-12.085-29.27-13.418-35.02-3.806-87.837-5.708-158.457-5.708-70.61 0-123.34 1.903-158.17 5.708-11.222 1.333-21.03 5.807-29.402 13.418-8.375 7.614-13.895 17.035-16.56 28.264-4.95 22.083-7.424 55.39-7.424 99.93 0 45.3 2.475 78.61 7.423 99.93 2.478 11.226 7.95 20.654 16.42 28.262 8.47 7.614 18.226 11.99 29.264 13.134 35.026 3.997 87.847 5.996 158.46 5.996 70.61 0 123.44-2 158.454-5.996 11.044-1.143 20.75-5.52 29.127-13.134 8.378-7.607 13.898-17.036 16.56-28.26 4.95-22.084 7.427-55.392 7.427-99.93 0-45.3-2.48-78.613-7.425-99.932zm-294.93 28.842h-30.548v162.45h-28.55v-162.45h-29.98V266.38h89.08v26.838zm77.086 162.45H216.7v-15.42c-10.278 11.614-19.99 17.418-29.125 17.418-8.754 0-14.275-3.524-16.556-10.564-1.53-4.568-2.29-11.52-2.29-20.844v-111.63h25.41V418.55c0 6.09.09 9.422.29 9.994.57 3.997 2.57 5.995 5.99 5.995 5.14 0 10.566-4 16.274-12V314.62h25.41v141.04zm97.073-42.257c0 13.9-.855 23.42-2.56 28.56-3.244 10.46-9.996 15.7-20.273 15.7-9.137 0-17.986-5.23-26.556-15.693v13.7h-25.406V266.38h25.406v61.956c8.19-10.273 17.036-15.413 26.556-15.413 10.277 0 17.03 5.33 20.273 15.988 1.704 4.95 2.56 14.37 2.56 28.27v56.24zm96.502-23.4H384.58v24.84c0 13.134 4.375 19.697 13.132 19.697 6.28 0 10.09-3.422 11.42-10.28.376-1.902.57-7.706.57-17.412h25.982v3.71c0 9.33-.195 14.847-.572 16.564-.567 5.133-2.56 10.273-5.995 15.413-6.852 10.09-17.14 15.134-30.84 15.134-13.128 0-23.408-4.854-30.834-14.557-5.517-7.045-8.275-18.085-8.275-33.12v-49.4c0-15.037 2.662-26.077 7.987-33.12 7.427-9.705 17.61-14.558 30.557-14.558 12.755 0 22.85 4.852 30.263 14.557 5.146 7.04 7.71 18.08 7.71 33.12v29.41zm-133.05-53.96c-4.38 0-8.66 2.1-12.848 6.28v85.936c4.188 4.187 8.467 6.28 12.847 6.28 7.42 0 11.14-6.372 11.14-19.13V355.18c0-12.756-3.713-19.13-11.14-19.13zm94.793 0c-8.565 0-12.847 6.475-12.847 19.41v13.134h25.7V355.46c0-12.943-4.282-19.41-12.844-19.41zM148.473 113.92v77.375h28.55V113.92L211.563 0h-29.12l-19.41 75.09L142.757 0h-30.263c5.33 15.99 11.516 33.785 18.56 53.39 8.946 26.266 14.748 46.445 17.416 60.527zm101.347 79.37c13.134 0 23.22-4.853 30.262-14.56 5.332-7.043 7.994-18.274 7.994-33.69V95.076c0-15.225-2.67-26.363-7.994-33.406-7.043-9.708-17.128-14.562-30.262-14.562-12.756 0-22.75 4.854-29.98 14.56-5.327 7.044-7.992 18.182-7.992 33.407v49.965c0 15.225 2.662 26.457 7.992 33.69 7.233 9.707 17.223 14.56 29.98 14.56zM237.54 89.936c0-13.134 4.094-19.7 12.28-19.7s12.275 6.566 12.275 19.7v59.955c0 13.33-4.09 19.99-12.275 19.99s-12.28-6.66-12.28-19.982v-59.96zm90.788 103.354c9.523 0 19.328-5.9 29.413-17.704v15.703h25.99V48.82h-25.98V157.6c-5.713 8.185-11.134 12.274-16.28 12.274-3.43 0-5.43-2.093-5.996-6.28-.19-.38-.287-3.715-.287-9.994V48.822H309.2v112.492c0 9.705.766 16.84 2.285 21.41 2.477 7.044 8.09 10.567 16.844 10.567z"/></symbol>
237
239
  <symbol viewBox="0 0 8 8" id="icon-zoom-in"><title>zoom-in</title> <path d="M3.5 0c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5c.61 0 1.19-.16 1.69-.44a1 1 0 0 0 .09.13l1 1.03a1.02 1.02 0 1 0 1.44-1.44l-1.03-1a1 1 0 0 0-.13-.09c.27-.5.44-1.08.44-1.69 0-1.93-1.57-3.5-3.5-3.5zm0 1c1.39 0 2.5 1.11 2.5 2.5 0 .59-.2 1.14-.53 1.56-.01.01-.02.02-.03.03a1 1 0 0 0-.06.03 1 1 0 0 0-.25.28c-.44.37-1.01.59-1.63.59-1.39 0-2.5-1.11-2.5-2.5s1.11-2.5 2.5-2.5zm-.5 1v1h-1v1h1v1h1v-1h1v-1h-1v-1h-1z"/> </symbol>
238
240
  <symbol viewBox="0 0 8 8" id="icon-zoom-out"><title>zoom-out</title> <path d="M3.5 0c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5c.61 0 1.19-.16 1.69-.44a1 1 0 0 0 .09.13l1 1.03a1.02 1.02 0 1 0 1.44-1.44l-1.03-1a1 1 0 0 0-.13-.09c.27-.5.44-1.08.44-1.69 0-1.93-1.57-3.5-3.5-3.5zm0 1c1.39 0 2.5 1.11 2.5 2.5 0 .59-.2 1.14-.53 1.56-.01.01-.02.02-.03.03a1 1 0 0 0-.06.03 1 1 0 0 0-.25.28c-.44.37-1.01.59-1.63.59-1.39 0-2.5-1.11-2.5-2.5s1.11-2.5 2.5-2.5zm-1.5 2v1h3v-1h-3z"/> </symbol>
239
- </svg>
241
+ <symbol viewBox="0 0 34 34" id="icon-random-seed"> <title>random-seed</title> <path d="M17 34C7.611 34 0 26.389 0 17S7.611 0 17 0s17 7.611 17 17-7.611 17-17 17zm0-2c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C8.716 2 2 8.716 2 17c0 8.284 6.716 15 15 15zM9 7h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm2 2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11a2 2 0 0 0-2-2H11zm10.743 5.036a1.779 1.779 0 1 1 0-3.558 1.779 1.779 0 0 1 0 3.558zm-9.486 0a1.779 1.779 0 1 1 0-3.558 1.779 1.779 0 0 1 0 3.558zm0 9.486a1.779 1.779 0 1 1 0-3.558 1.779 1.779 0 0 1 0 3.558zm9.486 0a1.779 1.779 0 1 1 0-3.558 1.779 1.779 0 0 1 0 3.558zM17 18.779a1.779 1.779 0 1 1 0-3.558 1.779 1.779 0 0 1 0 3.558z"/> </symbol>
242
+ <symbol viewBox="0 0 34 34" id="icon-euro-outline"> <title>euro-outline</title> <path d="M10.57 15.302a8.323 8.323 0 0 1 8.17-6.738.9.9 0 1 1 0 1.8 6.523 6.523 0 0 0-6.328 4.938h5.503c.234 0 .424.403.424.9s-.19.9-.424.9h-5.693c.015.437.072.862.168 1.273h4.649a.9.9 0 1 1 0 1.8h-3.93a6.517 6.517 0 0 0 5.63 3.23.9.9 0 0 1 0 1.8 8.322 8.322 0 0 1-7.644-5.03H9.618a.9.9 0 1 1 0-1.8h.934a8.353 8.353 0 0 1-.13-1.273h-.88c-.234 0-.424-.403-.424-.9s.19-.9.424-.9h1.027zM17 34C7.611 34 0 26.389 0 17S7.611 0 17 0s17 7.611 17 17-7.611 17-17 17zm0-2c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C8.716 2 2 8.716 2 17c0 8.284 6.716 15 15 15z"/> </symbol>
243
+ <symbol viewBox="0 0 36 36" id="icon-datetime"> <title>datetime</title> <path d="M18 0c9.941 0 18 8.059 18 18s-8.059 18-18 18S0 27.941 0 18 8.059 0 18 0zm0 2C9.163 2 2 9.163 2 18s7.163 16 16 16 16-7.163 16-16S26.837 2 18 2zm0 17.193l6.66 5.856a1 1 0 1 1-1.32 1.502l-7-6.155a1 1 0 0 1-.34-.751V9a1 1 0 0 1 2 0v10.193z"/> </symbol>
244
+ <symbol viewBox="0 0 34 34" id="icon-members"> <title>members</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111c8.347 0 15.111-6.764 15.111-15.111 0-8.346-6.765-15.111-15.111-15.111zM17 0c9.39 0 17 7.61 17 17s-7.61 17-17 17S0 26.39 0 17C0 7.611 7.611 0 17 0zm8.162 12.43a3.561 3.561 0 1 0-7.123 0 3.561 3.561 0 0 0 7.123 0zm-1.89 0a1.672 1.672 0 1 1-3.344 0 1.672 1.672 0 0 1 3.345 0zm4.993 9.771a6.77 6.77 0 0 0-10.298-4.518.944.944 0 0 0 1.016 1.593 4.882 4.882 0 0 1 7.423 3.257.944.944 0 0 0 1.86-.332zM16.14 14.043a3.561 3.561 0 1 0-7.122 0 3.561 3.561 0 0 0 7.122 0zm-1.89 0a1.672 1.672 0 1 1-3.344 0 1.672 1.672 0 0 1 3.345 0zm4.994 9.771a6.772 6.772 0 0 0-13.297-.167.944.944 0 1 0 1.85.377 4.882 4.882 0 0 1 9.588.122.944.944 0 1 0 1.86-.332z"/> </symbol>
245
+ <symbol viewBox="0 0 34 34" id="icon-profile"><title>profile</title> <path d="M17 0c9.389 0 17 7.611 17 17 0 9.39-7.61 17-17 17S0 26.39 0 17C0 7.611 7.611 0 17 0zm0 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zm3.99 10.854a4.006 4.006 0 1 1-8.012 0 4.006 4.006 0 0 1 8.012 0zm-1.889 0a2.118 2.118 0 1 0-4.236 0 2.118 2.118 0 0 0 4.236 0zm5.526 11.467a.944.944 0 1 1-1.86.331 5.876 5.876 0 0 0-11.539-.146.944.944 0 0 1-1.85-.379 7.766 7.766 0 0 1 15.249.194z"/> </symbol>
246
+ <symbol viewBox="0 0 34 34" id="icon-videos"> <title>videos</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm-5.667 13.757l6.848 3.583-6.848 3.565v-7.148zm-1.18 7.763l.076-.04a.704.704 0 0 0-.076.04zm9.517-3.407l-.08-.036a.803.803 0 0 0 .08.036zm.844.14c.75-.447.716-1.504-.092-1.872l-9.395-4.915c-.721-.432-1.583.135-1.583.965v9.798c0 .83.862 1.397 1.629.94l9.393-4.889.048-.026zm2.153-6.92v10.41a.944.944 0 1 0 1.889 0v-10.41a.944.944 0 0 0-1.89 0z"/> </symbol>
247
+ <symbol viewBox="0 0 34 34" id="icon-consultation"><title>consultation</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm-2.327 14.005c.026-1.153.867-2.08 2.024-2.099h.137c1.901.032 2.584 2.347 1.065 3.915-.12.123-.951.935-1.16 1.17-.688.776-.982 1.563-.982 2.793a.944.944 0 1 0 1.89 0c0-.772.126-1.113.505-1.54.155-.174.942-.942 1.104-1.11 2.59-2.672 1.298-7.055-2.406-7.116h-.168c-2.232.036-3.85 1.817-3.898 3.945a.944.944 0 1 0 1.889.042zm2.029 10.327a1.168 1.168 0 1 0 0-2.336 1.168 1.168 0 0 0 0 2.336zm0-.945a.224.224 0 1 1 0-.447.224.224 0 0 1 0 .447z"/> </symbol>
248
+ <symbol viewBox="0 0 34 34" id="icon-sortition"><title>sortition</title> <path d="M17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm0 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zm11.865 10.74a3.15 3.15 0 1 1-6.3 0 3.15 3.15 0 0 1 6.3 0zm-1.89 0a1.26 1.26 0 1 0-2.521 0 1.26 1.26 0 0 0 2.522 0zM15.25 19.136a.944.944 0 0 1 1.89 0v1.792a5.71 5.71 0 1 1-11.423 0v-1.792a.944.944 0 0 1 1.89 0v1.792a3.822 3.822 0 1 0 7.643 0v-1.792zm5.841-6.974l.018.019a.941.941 0 0 1-.02 1.335l-2.514 2.44a.944.944 0 0 1-1.316-1.355l.843-.818a6.237 6.237 0 0 0-6.177 6.23.944.944 0 0 1-1.889 0c0-4.492 3.653-8.12 8.12-8.12h.041l-.958-.986a.944.944 0 0 1 1.355-1.316l2.497 2.571a.941.941 0 0 0-.66-.268h-2.234z"/> </symbol>
249
+ <symbol viewBox="0 0 34 34" id="icon-assemblies"> <title>assemblies</title> <path d="M31.593 20.937c.338-1.255.518-2.575.518-3.937 0-8.346-6.765-15.111-15.111-15.111S1.889 8.654 1.889 17c0 1.362.18 2.682.518 3.937a10.378 10.378 0 0 1 2.712-.36c2.422 0 4.717.835 6.55 2.328a10.348 10.348 0 0 1 5.177-1.383c1.95 0 3.786.542 5.357 1.49a10.338 10.338 0 0 1 6.678-2.434c.925 0 1.836.121 2.712.359zm-.606 1.793a8.487 8.487 0 0 0-2.106-.263 8.448 8.448 0 0 0-5.107 1.707 10.355 10.355 0 0 1 2.913 4.425 15.151 15.151 0 0 0 4.3-5.869zm-27.974 0c.9 2.195 2.302 4.13 4.062 5.665a10.357 10.357 0 0 1 2.982-4.345 8.45 8.45 0 0 0-4.938-1.583c-.718 0-1.424.089-2.106.263zm23.805 8.15a.94.94 0 0 1-.324.224A16.921 16.921 0 0 1 17 34C7.611 34 0 26.389 0 17S7.611 0 17 0s17 7.611 17 17c0 5.732-2.836 10.8-7.182 13.88zm-1.75-1.1a8.492 8.492 0 0 0-16.398-.17A15.04 15.04 0 0 0 17 32.11a15.04 15.04 0 0 0 8.067-2.331zm-3.042-14.33a5.18 5.18 0 1 1-10.36 0 5.18 5.18 0 0 1 10.36 0zm-1.89 0a3.291 3.291 0 1 0-6.582 0 3.291 3.291 0 0 0 6.583 0zm-11.333.944a3.062 3.062 0 1 1-6.124.001 3.062 3.062 0 0 1 6.124-.001zm-1.888 0a1.173 1.173 0 1 0-2.347 0 1.173 1.173 0 0 0 2.347 0zm18.28 0a3.063 3.063 0 1 1 6.127.002 3.063 3.063 0 0 1-6.126-.002zm1.89 0a1.174 1.174 0 1 0 2.348 0 1.174 1.174 0 0 0-2.348 0z"/> </symbol>
250
+ <symbol viewBox="0 0 34 34" id="icon-initiatives"> <title>initiatives</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zm4.722 18.082v-2.97a.944.944 0 1 0-1.889 0v2.97a.944.944 0 1 0 1.89 0zm-2.833 0v-2.97a.944.944 0 0 0-1.889 0v2.97a.944.944 0 1 0 1.889 0zm-3.778.488V8.5a.944.944 0 0 0-1.889 0v10.07a.944.944 0 0 0 1.89 0zM8.5 16.92c.814 0 1.593.78 1.593 1.594v.2c0 4.131 3.302 7.432 7.373 7.356 4.114 0 7.415-3.301 7.339-7.373V15.11a.944.944 0 0 0-1.889 0v3.603c.056 3.025-2.385 5.468-5.467 5.468-3.025.056-5.467-2.386-5.467-5.468v-.2c0-1.857-1.625-3.482-3.482-3.482a.944.944 0 0 0 0 1.889z"/> </symbol>
251
+ <symbol viewBox="0 0 34 34" id="icon-proposals"> <title>proposals</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zm5.658 12.891v9.634H11.342V9.586h6.008v4.25c0 .522.423.944.945.944h4.363zm-3.419-3.893l2.048 2.005h-2.048v-2.005zm-.944-3.19h-7.897a.944.944 0 0 0-.944.945v16.716c0 .522.422.945.944.945h13.204a.944.944 0 0 0 .945-.945V13.836a.944.944 0 0 0-.285-.676v.001c.092.089.163.194.21.309zm.66.27c.176.172.284.41.284.675v2.245zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0z"/> </symbol>
252
+ <symbol viewBox="0 0 34 34" id="icon-blog"> <title>blog</title> <path d="M17 1.889C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17 25.346 1.889 17 1.889zM17 0c9.389 0 17 7.611 17 17s-7.611 17-17 17S0 26.389 0 17 7.611 0 17 0zM9.444 16.15h11.334a.944.944 0 1 0 0-1.889H9.444a.944.944 0 1 0 0 1.89zm0-3.589h15.112a.944.944 0 1 0 0-1.888H9.444a.944.944 0 1 0 0 1.888zm0 7.178h15.112a.944.944 0 0 0 0-1.889H9.444a.944.944 0 0 0 0 1.89zm0 3.589h11.334a.944.944 0 0 0 0-1.889H9.444a.944.944 0 0 0 0 1.889z"/> </symbol>
253
+ <symbol viewBox="0 0 34 34" id="icon-information"> <title>information</title> <path d="M16.056 23.488h1.888v-8.377h-1.888v8.377zm-1.89 0v-8.377h-1.633a.944.944 0 1 1 0-1.889h6.356c.521 0 .944.423.944.945v9.321h1.634a.944.944 0 1 1 0 1.89h-8.934a.944.944 0 1 1 0-1.89h1.634zM17 34C7.611 34 0 26.389 0 17S7.611 0 17 0s17 7.611 17 17-7.611 17-17 17zm0-32.111C8.654 1.889 1.889 8.654 1.889 17S8.654 32.111 17 32.111 32.111 25.346 32.111 17A15.111 15.111 0 0 0 17 1.88v.009zm0 10.823a2.833 2.833 0 1 1 0-5.666 2.833 2.833 0 0 1 0 5.666zm0-3.778a.944.944 0 1 0 0 1.89.944.944 0 0 0 0-1.89z"/> </symbol>
254
+ <symbol viewBox="0 0 8 7" id="icon-arrow-thin-right"> <title>arrow-thin-right</title> <path d="M7.368 3.306L4.005.343a.2.2 0 0 1-.021-.274.183.183 0 0 1 .264-.023L8 3.352v.296L4.248 6.954a.183.183 0 0 1-.264-.023.2.2 0 0 1 .021-.274l3.363-2.963H.188A.191.191 0 0 1 0 3.5c0-.107.084-.194.188-.194h7.18z"/> </symbol>
255
+ <symbol viewBox="0 0 7 8" id="icon-arrow-thin-up"> <title>arrow-thin-up</title> <path d="M3.694.632l2.963 3.363a.2.2 0 0 0 .274.021.183.183 0 0 0 .023-.264L3.648 0h-.296L.046 3.752a.183.183 0 0 0 .023.264.2.2 0 0 0 .274-.021L3.306.632v7.18c0 .104.087.188.194.188a.191.191 0 0 0 .194-.188V.632z"/> </symbol>
256
+ <symbol viewBox="0 0 8 7" id="icon-arrow-thin-left"> <title>arrow-thin-left</title> <path d="M.632 3.306L3.995.343a.2.2 0 0 0 .021-.274.183.183 0 0 0-.264-.023L0 3.352v.296l3.752 3.306c.079.07.197.06.264-.023a.2.2 0 0 0-.021-.274L.632 3.694h7.18A.191.191 0 0 0 8 3.5a.191.191 0 0 0-.188-.194H.632z"/> </symbol>
257
+ <symbol viewBox="0 0 7 8" id="icon-arrow-thin-down"> <title>arrow-thin-down</title> <path d="M3.306 7.368L.343 4.005a.2.2 0 0 0-.274-.021.183.183 0 0 0-.023.264L3.352 8h.296l3.306-3.752a.183.183 0 0 0-.023-.264.2.2 0 0 0-.274.021L3.694 7.368V.188A.191.191 0 0 0 3.5 0a.191.191 0 0 0-.194.188v7.18z"/> </symbol>
258
+ </svg>
@@ -3,18 +3,18 @@
3
3
  * reason field to the hidden field in the form inside the modal.
4
4
  */
5
5
  $(() => {
6
- const $deleteAccountForm = $('.delete-account');
7
- const $deleteAccountModalForm = $('.delete-account-modal');
6
+ const $deleteAccountForm = $(".delete-account");
7
+ const $deleteAccountModalForm = $(".delete-account-modal");
8
8
 
9
9
  if ($deleteAccountForm.length > 0) {
10
- const $openModalButton = $('.open-modal-button');
11
- const $modal = $('#deleteConfirm');
10
+ const $openModalButton = $(".open-modal-button");
11
+ const $modal = $("#deleteConfirm");
12
12
 
13
- $openModalButton.on('click', (event) => {
13
+ $openModalButton.on("click", (event) => {
14
14
  try {
15
- const reasonValue = $deleteAccountForm.find('textarea#delete_account_delete_reason').val();
16
- $deleteAccountModalForm.find('input#delete_account_delete_reason').val(reasonValue);
17
- $modal.foundation('open');
15
+ const reasonValue = $deleteAccountForm.find("textarea#delete_account_delete_reason").val();
16
+ $deleteAccountModalForm.find("input#delete_account_delete_reason").val(reasonValue);
17
+ $modal.foundation("open");
18
18
  } catch (error) {
19
19
  console.error(error); // eslint-disable-line no-console
20
20
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  (function() {
4
4
  $(() => {
5
- let $appendableElements = $('.js-append');
5
+ let $appendableElements = $(".js-append");
6
6
  $appendableElements.appendAround();
7
7
  })
8
8
  }(window));
@@ -23,14 +23,14 @@
23
23
  */
24
24
  $(() => {
25
25
  const removeUrlParameter = (url, parameter) => {
26
- const urlParts = url.split('?');
26
+ const urlParts = url.split("?");
27
27
 
28
28
  if (urlParts.length >= 2) {
29
29
  // Get first part, and remove from array
30
30
  const urlBase = urlParts.shift();
31
31
 
32
32
  // Join it back up
33
- const queryString = urlParts.join('?');
33
+ const queryString = urlParts.join("?");
34
34
 
35
35
  const prefix = `${encodeURIComponent(parameter)}=`;
36
36
  const parts = queryString.split(/[&;]/g);
@@ -47,7 +47,7 @@ $(() => {
47
47
  return urlBase;
48
48
  }
49
49
 
50
- return `${urlBase}?${parts.join('&')}`;
50
+ return `${urlBase}?${parts.join("&")}`;
51
51
  }
52
52
 
53
53
  return url;
@@ -66,12 +66,12 @@ $(() => {
66
66
 
67
67
  $(`${target} a`).attr("href", (index, href) => {
68
68
  const querystring = jQuery.param({"redirect_url": redirectUrl});
69
- return href + (href.match(/\?/) ? '&' : '?') + querystring;
69
+ return href + (href.match(/\?/) ? "&" : "?") + querystring;
70
70
  });
71
71
  }
72
72
  });
73
73
 
74
- $(document).on('closed.zf.reveal', (event) => {
74
+ $(document).on("closed.zf.reveal", (event) => {
75
75
  $("#redirect_url", event.target).remove();
76
76
  $("a", event.target).attr("href", (index, href) => {
77
77
  if (href && href.indexOf("redirect_url") !== -1) {
@@ -16,7 +16,7 @@
16
16
  activate(picker) {
17
17
  let $element = $(picker);
18
18
  let input = "hidden",
19
- name = $element.data('picker-name'),
19
+ name = $element.data("picker-name"),
20
20
  values = $(".picker-values", $element);
21
21
 
22
22
  if ($element.hasClass("picker-multiple")) {
@@ -31,7 +31,7 @@
31
31
 
32
32
  $element.on("click", "a", (event) => {
33
33
  event.preventDefault();
34
- if ($element.hasClass('disabled')) {
34
+ if ($element.hasClass("disabled")) {
35
35
  return;
36
36
  }
37
37
  this._openPicker($element, event.target.parentNode);
@@ -78,7 +78,7 @@
78
78
 
79
79
  _openPicker($picker, div) {
80
80
  this._setCurrentPicker($picker, div);
81
- this._load($("a", div).attr('href'));
81
+ this._load($("a", div).attr("href"));
82
82
  }
83
83
 
84
84
  _setCurrentPicker($picker, div) {
@@ -90,7 +90,7 @@
90
90
  this.current = {
91
91
  multiple: $picker.hasClass("picker-multiple"),
92
92
  picker: $picker,
93
- name: $picker.data('picker-name'),
93
+ name: $picker.data("picker-name"),
94
94
  values: $picker.find(".picker-values"),
95
95
  div: currentDiv
96
96
  };
@@ -101,7 +101,7 @@
101
101
  let modalContent = $(".data_picker-modal-content", this.modal);
102
102
  modalContent.html(resp);
103
103
  this._handleLinks(modalContent);
104
- this.modal.foundation('open');
104
+ this.modal.foundation("open");
105
105
  });
106
106
  }
107
107
 
@@ -110,16 +110,16 @@
110
110
  let $link = $(link);
111
111
  $link.click((event) => {
112
112
  event.preventDefault();
113
- if ($link.data('data-close')) {
113
+ if ($link.data("data-close")) {
114
114
  return;
115
115
  }
116
116
 
117
- let chooseUrl = $link.attr('href');
117
+ let chooseUrl = $link.attr("href");
118
118
  if (chooseUrl) {
119
- if (typeof $link.data('picker-choose') === 'undefined') {
119
+ if (typeof $link.data("picker-choose") === "undefined") {
120
120
  this._load(chooseUrl);
121
121
  } else {
122
- this._choose({url: chooseUrl, value: $link.data('picker-value') || "", text: $link.data('picker-text') || ""});
122
+ this._choose({url: chooseUrl, value: $link.data("picker-value") || "", text: $link.data("picker-text") || ""});
123
123
  }
124
124
  }
125
125
  });
@@ -153,7 +153,7 @@
153
153
  if (user) {
154
154
  $input.trigger("change");
155
155
  this._removeErrors();
156
- this.modal.foundation('close');
156
+ this.modal.foundation("close");
157
157
  }
158
158
 
159
159
  // Unselect updated value and close modal
@@ -1,29 +1,29 @@
1
1
  // = require quill.min
2
2
  // = require_self
3
3
 
4
- $(() => {
5
- const $container = $('.editor-container');
6
- const quillFormats = ['bold', 'italic', 'link', 'underline', 'header', 'list', 'video'];
4
+ ((exports) => {
5
+ const quillFormats = ["bold", "italic", "link", "underline", "header", "list", "video"];
7
6
 
8
7
  const createQuillEditor = (container) => {
9
- const toolbar = $(container).data('toolbar');
8
+ const toolbar = $(container).data("toolbar");
9
+ const disabled = $(container).data("disabled");
10
10
 
11
11
  let quillToolbar = [
12
- ['bold', 'italic', 'underline'],
13
- [{ list: 'ordered' }, { list: 'bullet' }],
14
- ['link', 'clean']
12
+ ["bold", "italic", "underline"],
13
+ [{ list: "ordered" }, { list: "bullet" }],
14
+ ["link", "clean"]
15
15
  ];
16
16
 
17
- if (toolbar === 'full') {
17
+ if (toolbar === "full") {
18
18
  quillToolbar = [
19
19
  [{ header: [1, 2, 3, 4, 5, 6, false] }],
20
20
  ...quillToolbar,
21
- ['video']
21
+ ["video"]
22
22
  ];
23
- } else if (toolbar === 'basic') {
23
+ } else if (toolbar === "basic") {
24
24
  quillToolbar = [
25
25
  ...quillToolbar,
26
- ['video']
26
+ ["video"]
27
27
  ];
28
28
  }
29
29
 
@@ -33,25 +33,40 @@ $(() => {
33
33
  toolbar: quillToolbar
34
34
  },
35
35
  formats: quillFormats,
36
- theme: 'snow'
36
+ theme: "snow"
37
37
  });
38
38
 
39
- quill.on('text-change', () => {
39
+ if (disabled) {
40
+ quill.disable();
41
+ }
42
+
43
+ quill.on("text-change", () => {
40
44
  const text = quill.getText();
41
- if (text === '\n') {
42
- $input.val('');
45
+
46
+ // Triggers CustomEvent with the cursor position
47
+ // It is required in input_mentions.js
48
+ let event = new CustomEvent("quill-position", {
49
+ detail: quill.getSelection()
50
+ });
51
+ container.dispatchEvent(event);
52
+
53
+ if (text === "\n") {
54
+ $input.val("");
43
55
  } else {
44
56
  $input.val(quill.root.innerHTML);
45
57
  }
46
58
  });
47
59
 
48
- quill.root.innerHTML = $input.val() || '';
60
+ quill.root.innerHTML = $input.val() || "";
49
61
  };
50
62
 
51
- $container.each((idx, container) => {
52
- createQuillEditor(container);
53
- });
63
+ const quillEditor = () => {
64
+ $(".editor-container").each((idx, container) => {
65
+ createQuillEditor(container);
66
+ });
67
+ };
54
68
 
55
- window.Decidim = window.Decidim || {};
56
- window.Decidim.createQuillEditor = createQuillEditor;
57
- });
69
+ exports.Decidim = exports.Decidim || {};
70
+ exports.Decidim.quillEditor = quillEditor;
71
+ exports.Decidim.createQuillEditor = createQuillEditor;
72
+ })(window);
@@ -7,7 +7,7 @@
7
7
  const { Decidim: { FormFilterComponent } } = exports;
8
8
 
9
9
  $(() => {
10
- $('form.new_filter').each(function () {
10
+ $("form.new_filter").each(function () {
11
11
  const formFilter = new FormFilterComponent($(this));
12
12
 
13
13
  formFilter.mountComponent();
@@ -9,7 +9,7 @@
9
9
  class FormFilterComponent {
10
10
  constructor($form) {
11
11
  this.$form = $form;
12
- this.id = this.$form.attr('id') || this._getUID();
12
+ this.id = this.$form.attr("id") || this._getUID();
13
13
  this.mounted = false;
14
14
 
15
15
  this._onFormChange = this._onFormChange.bind(this);
@@ -31,7 +31,7 @@
31
31
  unmountComponent() {
32
32
  if (this.mounted) {
33
33
  this.mounted = false;
34
- this.$form.off('change', 'input, select', this._onFormChange);
34
+ this.$form.off("change", "input, select", this._onFormChange);
35
35
 
36
36
  exports.Decidim.History.unregisterCallback(`filters-${this.id}`)
37
37
  }
@@ -45,7 +45,7 @@
45
45
  mountComponent() {
46
46
  if (this.$form.length > 0 && !this.mounted) {
47
47
  this.mounted = true;
48
- this.$form.on('change', 'input, select', this._onFormChange);
48
+ this.$form.on("change", "input, select", this._onFormChange);
49
49
 
50
50
  exports.Decidim.History.registerCallback(`filters-${this.id}`, (state) => {
51
51
  this._onPopState(state);
@@ -116,8 +116,8 @@
116
116
  _parseLocationOrderValue() {
117
117
  const url = this._getLocation();
118
118
  const match = url.match(/order=([^&]*)/);
119
- const $orderMenu = this.$form.find('.order-by .menu');
120
- let order = $orderMenu.find('.menu a:first').data('order');
119
+ const $orderMenu = this.$form.find(".order-by .menu");
120
+ let order = $orderMenu.find(".menu a:first").data("order");
121
121
 
122
122
  if (match) {
123
123
  order = match[1];
@@ -132,15 +132,15 @@
132
132
  * @returns {Void} - Returns nothing.
133
133
  */
134
134
  _clearForm() {
135
- this.$form.find('input[type=checkbox]').attr('checked', false);
136
- this.$form.find('input[type=radio]').attr('checked', false);
137
- this.$form.find('.data-picker').each((_index, picker) => {
135
+ this.$form.find("input[type=checkbox]").attr("checked", false);
136
+ this.$form.find("input[type=radio]").attr("checked", false);
137
+ this.$form.find(".data-picker").each((_index, picker) => {
138
138
  exports.theDataPicker.clear(picker);
139
139
  });
140
140
 
141
141
  // This ensure the form is reset in a valid state where a fieldset of
142
142
  // radio buttons has the first selected.
143
- this.$form.find('fieldset input[type=radio]:first').each(function () {
143
+ this.$form.find("fieldset input[type=radio]:first").each(function () {
144
144
  // I need the this to iterate a jQuery collection
145
145
  $(this)[0].checked = true; // eslint-disable-line no-invalid-this
146
146
  });
@@ -158,7 +158,7 @@
158
158
  const filterParams = this._parseLocationFilterValues();
159
159
  const currentOrder = this._parseLocationOrderValue();
160
160
 
161
- this.$form.find('input.order_filter').val(currentOrder);
161
+ this.$form.find("input.order_filter").val(currentOrder);
162
162
 
163
163
  if (filterParams) {
164
164
  const fieldIds = Object.keys(filterParams);
@@ -195,7 +195,7 @@
195
195
 
196
196
  // Only one instance should submit the form on browser history navigation
197
197
  if (this.popStateSubmiter) {
198
- exports.Rails.fire(this.$form[0], 'submit');
198
+ exports.Rails.fire(this.$form[0], "submit");
199
199
  }
200
200
  }
201
201
 
@@ -205,15 +205,15 @@
205
205
  * @returns {Void} - Returns nothing.
206
206
  */
207
207
  _onFormChange() {
208
- const formAction = this.$form.attr('action');
208
+ const formAction = this.$form.attr("action");
209
209
  const params = this.$form.serialize();
210
210
 
211
- let newUrl = '';
211
+ let newUrl = "";
212
212
  let newState = {};
213
213
 
214
- exports.Rails.fire(this.$form[0], 'submit');
214
+ exports.Rails.fire(this.$form[0], "submit");
215
215
 
216
- if (formAction.indexOf('?') < 0) {
216
+ if (formAction.indexOf("?") < 0) {
217
217
  newUrl = `${formAction}?${params}`;
218
218
  } else {
219
219
  newUrl = `${formAction}&${params}`;