workarea-storefront 3.4.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (686) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +52 -0
  3. data/README.md +19 -0
  4. data/Rakefile +23 -0
  5. data/app/assets/fonts/.keep +0 -0
  6. data/app/assets/images/workarea/core/test.jpg +0 -0
  7. data/app/assets/images/workarea/storefront/default_card.svg +1 -0
  8. data/app/assets/images/workarea/storefront/dialog_close.svg +1 -0
  9. data/app/assets/images/workarea/storefront/email/banner.png +0 -0
  10. data/app/assets/images/workarea/storefront/icons/facebook.svg +1 -0
  11. data/app/assets/images/workarea/storefront/icons/google_plus.svg +1 -0
  12. data/app/assets/images/workarea/storefront/icons/menu.svg +1 -0
  13. data/app/assets/images/workarea/storefront/icons/pinterest.svg +1 -0
  14. data/app/assets/images/workarea/storefront/icons/twitter.svg +1 -0
  15. data/app/assets/images/workarea/storefront/logo.png +0 -0
  16. data/app/assets/images/workarea/storefront/message_dismiss.svg +1 -0
  17. data/app/assets/images/workarea/storefront/message_error.svg +1 -0
  18. data/app/assets/images/workarea/storefront/message_info.svg +1 -0
  19. data/app/assets/images/workarea/storefront/message_success.svg +1 -0
  20. data/app/assets/images/workarea/storefront/message_warning.svg +1 -0
  21. data/app/assets/images/workarea/storefront/payment_icons/american_express.svg +1 -0
  22. data/app/assets/images/workarea/storefront/payment_icons/diner_s_club.svg +1 -0
  23. data/app/assets/images/workarea/storefront/payment_icons/discover.svg +1 -0
  24. data/app/assets/images/workarea/storefront/payment_icons/mastercard.svg +1 -0
  25. data/app/assets/images/workarea/storefront/payment_icons/visa.svg +1 -0
  26. data/app/assets/images/workarea/storefront/payment_method_icons.png +0 -0
  27. data/app/assets/images/workarea/storefront/style_guide_light_banner.png +0 -0
  28. data/app/assets/images/workarea/storefront/style_guide_product.jpg +0 -0
  29. data/app/assets/javascripts/jquery_ui/storefront/categorized_autocomplete.js +53 -0
  30. data/app/assets/javascripts/workarea/storefront/application.js.erb +162 -0
  31. data/app/assets/javascripts/workarea/storefront/config.js.erb +153 -0
  32. data/app/assets/javascripts/workarea/storefront/head.js.erb +18 -0
  33. data/app/assets/javascripts/workarea/storefront/modules/address_region_fields.js +91 -0
  34. data/app/assets/javascripts/workarea/storefront/modules/admin_toolbar.js +105 -0
  35. data/app/assets/javascripts/workarea/storefront/modules/alternate_image_buttons.js +78 -0
  36. data/app/assets/javascripts/workarea/storefront/modules/analytics.js +285 -0
  37. data/app/assets/javascripts/workarea/storefront/modules/authenticity_token.js +27 -0
  38. data/app/assets/javascripts/workarea/storefront/modules/back_to_top_button.js +47 -0
  39. data/app/assets/javascripts/workarea/storefront/modules/break_points.js +67 -0
  40. data/app/assets/javascripts/workarea/storefront/modules/cart_count.js +51 -0
  41. data/app/assets/javascripts/workarea/storefront/modules/checkout_addresses_forms.js +222 -0
  42. data/app/assets/javascripts/workarea/storefront/modules/checkout_primary_payments.js +66 -0
  43. data/app/assets/javascripts/workarea/storefront/modules/checkout_shipping_services.js +53 -0
  44. data/app/assets/javascripts/workarea/storefront/modules/current_user.js +28 -0
  45. data/app/assets/javascripts/workarea/storefront/modules/dialog.js +284 -0
  46. data/app/assets/javascripts/workarea/storefront/modules/dialog_buttons.js +78 -0
  47. data/app/assets/javascripts/workarea/storefront/modules/dialog_close_buttons.js +29 -0
  48. data/app/assets/javascripts/workarea/storefront/modules/dialog_forms.js +47 -0
  49. data/app/assets/javascripts/workarea/storefront/modules/forms.js +94 -0
  50. data/app/assets/javascripts/workarea/storefront/modules/loading.js +81 -0
  51. data/app/assets/javascripts/workarea/storefront/modules/log_out_link_placeholders.js +36 -0
  52. data/app/assets/javascripts/workarea/storefront/modules/messages.js +179 -0
  53. data/app/assets/javascripts/workarea/storefront/modules/mobile_filter_buttons.js +87 -0
  54. data/app/assets/javascripts/workarea/storefront/modules/mobile_nav_button.js +100 -0
  55. data/app/assets/javascripts/workarea/storefront/modules/option_buttons.js +40 -0
  56. data/app/assets/javascripts/workarea/storefront/modules/optional_fields.js +49 -0
  57. data/app/assets/javascripts/workarea/storefront/modules/pagination.js +284 -0
  58. data/app/assets/javascripts/workarea/storefront/modules/popup_buttons.js +42 -0
  59. data/app/assets/javascripts/workarea/storefront/modules/primary_nav_content.js +77 -0
  60. data/app/assets/javascripts/workarea/storefront/modules/product_details_sku_selects.js +94 -0
  61. data/app/assets/javascripts/workarea/storefront/modules/recent_views.js +25 -0
  62. data/app/assets/javascripts/workarea/storefront/modules/recommendations_placeholders.js +33 -0
  63. data/app/assets/javascripts/workarea/storefront/modules/scroll_to_buttons.js +37 -0
  64. data/app/assets/javascripts/workarea/storefront/modules/search_fields.js +59 -0
  65. data/app/assets/javascripts/workarea/storefront/modules/single_submit_forms.js +35 -0
  66. data/app/assets/javascripts/workarea/storefront/modules/traffic_referrer.js +33 -0
  67. data/app/assets/javascripts/workarea/storefront/modules/workarea_analytics.js +54 -0
  68. data/app/assets/javascripts/workarea/storefront/routes.js.erb +16 -0
  69. data/app/assets/javascripts/workarea/storefront/serviceworkers/pwa_cache.js.erb +31 -0
  70. data/app/assets/javascripts/workarea/storefront/serviceworkers/register_pwa_cache.js +5 -0
  71. data/app/assets/javascripts/workarea/storefront/templates/authenticity_token.jst.ejs +1 -0
  72. data/app/assets/javascripts/workarea/storefront/templates/back_to_top_button.jst.ejs +3 -0
  73. data/app/assets/javascripts/workarea/storefront/templates/button.jst.ejs +3 -0
  74. data/app/assets/javascripts/workarea/storefront/templates/loading.jst.ejs +1 -0
  75. data/app/assets/javascripts/workarea/storefront/templates/log_out_link.jst.ejs +1 -0
  76. data/app/assets/javascripts/workarea/storefront/templates/message.jst.ejs +10 -0
  77. data/app/assets/javascripts/workarea/storefront/templates/message_dismiss_action.jst.ejs +5 -0
  78. data/app/assets/javascripts/workarea/storefront/templates/mobile_filters_nav_close_button.jst.ejs +3 -0
  79. data/app/assets/javascripts/workarea/storefront/templates/optional_field_prompt.jst.ejs +1 -0
  80. data/app/assets/javascripts/workarea/storefront/templates/page_header_cart_count.jst.ejs +1 -0
  81. data/app/assets/javascripts/workarea/storefront/templates/pagination_button.jst.ejs +11 -0
  82. data/app/assets/javascripts/workarea/storefront/templates/same_as_shipping_button_property.jst.ejs +8 -0
  83. data/app/assets/javascripts/workarea/storefront/templates/saved_addresses_property.jst.ejs +21 -0
  84. data/app/assets/javascripts/workarea/storefront/templates/ui_menu_heading.jst.ejs +1 -0
  85. data/app/assets/javascripts/workarea/storefront/templates/ui_menu_item.jst.ejs +8 -0
  86. data/app/assets/stylesheets/jquery_ui/storefront/_ui_autocomplete.scss +17 -0
  87. data/app/assets/stylesheets/jquery_ui/storefront/_ui_dialog.scss +158 -0
  88. data/app/assets/stylesheets/jquery_ui/storefront/_ui_helper_hidden_accessible.scss +7 -0
  89. data/app/assets/stylesheets/jquery_ui/storefront/_ui_menu.scss +40 -0
  90. data/app/assets/stylesheets/jquery_ui/storefront/_ui_state_focus.scss +10 -0
  91. data/app/assets/stylesheets/jquery_ui/storefront/_ui_widget_overlay.scss +11 -0
  92. data/app/assets/stylesheets/workarea/storefront/application.scss.erb +138 -0
  93. data/app/assets/stylesheets/workarea/storefront/base/_forms.scss +113 -0
  94. data/app/assets/stylesheets/workarea/storefront/base/_images.scss +29 -0
  95. data/app/assets/stylesheets/workarea/storefront/base/_lists.scss +8 -0
  96. data/app/assets/stylesheets/workarea/storefront/base/_page.scss +27 -0
  97. data/app/assets/stylesheets/workarea/storefront/base/_tables.scss +15 -0
  98. data/app/assets/stylesheets/workarea/storefront/components/_admin_toolbar.scss +34 -0
  99. data/app/assets/stylesheets/workarea/storefront/components/_back_to_top_button.scss +23 -0
  100. data/app/assets/stylesheets/workarea/storefront/components/_box.scss +37 -0
  101. data/app/assets/stylesheets/workarea/storefront/components/_breadcrumbs.scss +27 -0
  102. data/app/assets/stylesheets/workarea/storefront/components/_button.scss +47 -0
  103. data/app/assets/stylesheets/workarea/storefront/components/_button_content_block.scss +9 -0
  104. data/app/assets/stylesheets/workarea/storefront/components/_button_property.scss +40 -0
  105. data/app/assets/stylesheets/workarea/storefront/components/_cart.scss +21 -0
  106. data/app/assets/stylesheets/workarea/storefront/components/_category_summary_content_block.scss +14 -0
  107. data/app/assets/stylesheets/workarea/storefront/components/_checkout_addresses.scss +17 -0
  108. data/app/assets/stylesheets/workarea/storefront/components/_checkout_payment.scss +48 -0
  109. data/app/assets/stylesheets/workarea/storefront/components/_checkout_progress.scss +42 -0
  110. data/app/assets/stylesheets/workarea/storefront/components/_checkout_shipping.scss +11 -0
  111. data/app/assets/stylesheets/workarea/storefront/components/_checkout_step_summary.scss +19 -0
  112. data/app/assets/stylesheets/workarea/storefront/components/_content_block.scss +39 -0
  113. data/app/assets/stylesheets/workarea/storefront/components/_data_card.scss +68 -0
  114. data/app/assets/stylesheets/workarea/storefront/components/_divider_content_block.scss +38 -0
  115. data/app/assets/stylesheets/workarea/storefront/components/_email_signup.scss +9 -0
  116. data/app/assets/stylesheets/workarea/storefront/components/_hero_content_block.scss +77 -0
  117. data/app/assets/stylesheets/workarea/storefront/components/_html_content_block.scss +5 -0
  118. data/app/assets/stylesheets/workarea/storefront/components/_image_and_text_content_block.scss +30 -0
  119. data/app/assets/stylesheets/workarea/storefront/components/_image_content_block.scss +16 -0
  120. data/app/assets/stylesheets/workarea/storefront/components/_image_group_content_block.scss +9 -0
  121. data/app/assets/stylesheets/workarea/storefront/components/_inline_form.scss +11 -0
  122. data/app/assets/stylesheets/workarea/storefront/components/_loading.scss +92 -0
  123. data/app/assets/stylesheets/workarea/storefront/components/_message.scss +120 -0
  124. data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters.scss +25 -0
  125. data/app/assets/stylesheets/workarea/storefront/components/_mobile_filters_nav.scss +31 -0
  126. data/app/assets/stylesheets/workarea/storefront/components/_mobile_nav.scss +67 -0
  127. data/app/assets/stylesheets/workarea/storefront/components/_option_button.scss +27 -0
  128. data/app/assets/stylesheets/workarea/storefront/components/_order_help_menu.scss +31 -0
  129. data/app/assets/stylesheets/workarea/storefront/components/_order_summary.scss +14 -0
  130. data/app/assets/stylesheets/workarea/storefront/components/_page_container.scss +26 -0
  131. data/app/assets/stylesheets/workarea/storefront/components/_page_content.scss +14 -0
  132. data/app/assets/stylesheets/workarea/storefront/components/_page_footer.scss +57 -0
  133. data/app/assets/stylesheets/workarea/storefront/components/_page_header.scss +79 -0
  134. data/app/assets/stylesheets/workarea/storefront/components/_page_messages.scss +36 -0
  135. data/app/assets/stylesheets/workarea/storefront/components/_pagination.scss +9 -0
  136. data/app/assets/stylesheets/workarea/storefront/components/_payment_icon.scss +19 -0
  137. data/app/assets/stylesheets/workarea/storefront/components/_personalized_recommendations_content_block.scss +10 -0
  138. data/app/assets/stylesheets/workarea/storefront/components/_primary_nav.scss +54 -0
  139. data/app/assets/stylesheets/workarea/storefront/components/_product_detail_container.scss +13 -0
  140. data/app/assets/stylesheets/workarea/storefront/components/_product_details.scss +84 -0
  141. data/app/assets/stylesheets/workarea/storefront/components/_product_insights_content_block.scss +10 -0
  142. data/app/assets/stylesheets/workarea/storefront/components/_product_list.scss +160 -0
  143. data/app/assets/stylesheets/workarea/storefront/components/_product_list_content_block.scss +10 -0
  144. data/app/assets/stylesheets/workarea/storefront/components/_product_prices.scss +32 -0
  145. data/app/assets/stylesheets/workarea/storefront/components/_product_summary.scss +53 -0
  146. data/app/assets/stylesheets/workarea/storefront/components/_property.scss +67 -0
  147. data/app/assets/stylesheets/workarea/storefront/components/_quote_content_block.scss +38 -0
  148. data/app/assets/stylesheets/workarea/storefront/components/_recent_views.scss +28 -0
  149. data/app/assets/stylesheets/workarea/storefront/components/_recommendations.scss +9 -0
  150. data/app/assets/stylesheets/workarea/storefront/components/_result_filters.scss +33 -0
  151. data/app/assets/stylesheets/workarea/storefront/components/_search_no_results.scss +21 -0
  152. data/app/assets/stylesheets/workarea/storefront/components/_search_results.scss +22 -0
  153. data/app/assets/stylesheets/workarea/storefront/components/_secondary_nav.scss +23 -0
  154. data/app/assets/stylesheets/workarea/storefront/components/_sitemap.scss +9 -0
  155. data/app/assets/stylesheets/workarea/storefront/components/_sitemap_pagination.scss +26 -0
  156. data/app/assets/stylesheets/workarea/storefront/components/_social_networks_content_block.scss +14 -0
  157. data/app/assets/stylesheets/workarea/storefront/components/_style_guide.scss +140 -0
  158. data/app/assets/stylesheets/workarea/storefront/components/_svg_icon.scss +57 -0
  159. data/app/assets/stylesheets/workarea/storefront/components/_table.scss +50 -0
  160. data/app/assets/stylesheets/workarea/storefront/components/_taxonomy_content_block.scss +87 -0
  161. data/app/assets/stylesheets/workarea/storefront/components/_text_box.scss +36 -0
  162. data/app/assets/stylesheets/workarea/storefront/components/_text_button.scss +17 -0
  163. data/app/assets/stylesheets/workarea/storefront/components/_text_content_block.scss +5 -0
  164. data/app/assets/stylesheets/workarea/storefront/components/_value.scss +46 -0
  165. data/app/assets/stylesheets/workarea/storefront/components/_video_and_text_content_block.scss +44 -0
  166. data/app/assets/stylesheets/workarea/storefront/components/_video_content_block.scss +21 -0
  167. data/app/assets/stylesheets/workarea/storefront/components/_view.scss +12 -0
  168. data/app/assets/stylesheets/workarea/storefront/email.scss +4 -0
  169. data/app/assets/stylesheets/workarea/storefront/email/_base.scss +52 -0
  170. data/app/assets/stylesheets/workarea/storefront/email/_components.scss +91 -0
  171. data/app/assets/stylesheets/workarea/storefront/email/_helpers.scss +69 -0
  172. data/app/assets/stylesheets/workarea/storefront/email/_settings.scss +22 -0
  173. data/app/assets/stylesheets/workarea/storefront/generic/_box_sizing.scss +20 -0
  174. data/app/assets/stylesheets/workarea/storefront/generic/_fonts.scss +24 -0
  175. data/app/assets/stylesheets/workarea/storefront/generic/_reset.scss +37 -0
  176. data/app/assets/stylesheets/workarea/storefront/objects/_button_reset.scss +17 -0
  177. data/app/assets/stylesheets/workarea/storefront/objects/_content_preview_visibility.scss +93 -0
  178. data/app/assets/stylesheets/workarea/storefront/objects/_content_wrapper.scss +18 -0
  179. data/app/assets/stylesheets/workarea/storefront/objects/_inline_list.scss +14 -0
  180. data/app/assets/stylesheets/workarea/storefront/objects/_list_reset.scss +10 -0
  181. data/app/assets/stylesheets/workarea/storefront/objects/_text_field_reset.scss +10 -0
  182. data/app/assets/stylesheets/workarea/storefront/settings/_breakpoints.scss.erb +8 -0
  183. data/app/assets/stylesheets/workarea/storefront/settings/_colors.scss +45 -0
  184. data/app/assets/stylesheets/workarea/storefront/settings/_global.scss +25 -0
  185. data/app/assets/stylesheets/workarea/storefront/settings/_grid.scss +36 -0
  186. data/app/assets/stylesheets/workarea/storefront/settings/_typography.scss +18 -0
  187. data/app/assets/stylesheets/workarea/storefront/settings/_z_indexes.scss +29 -0
  188. data/app/assets/stylesheets/workarea/storefront/tools/_center.scss +34 -0
  189. data/app/assets/stylesheets/workarea/storefront/tools/_focus_ring.scss +23 -0
  190. data/app/assets/stylesheets/workarea/storefront/tools/_respond_to.scss +31 -0
  191. data/app/assets/stylesheets/workarea/storefront/tools/_svg.scss +29 -0
  192. data/app/assets/stylesheets/workarea/storefront/trumps/_break_word.scss +9 -0
  193. data/app/assets/stylesheets/workarea/storefront/trumps/_clearfix.scss +13 -0
  194. data/app/assets/stylesheets/workarea/storefront/trumps/_hidden.scss +71 -0
  195. data/app/assets/stylesheets/workarea/storefront/trumps/_hidden_if_js_enabled.scss +10 -0
  196. data/app/assets/stylesheets/workarea/storefront/trumps/_image_replacement.scss +11 -0
  197. data/app/assets/stylesheets/workarea/storefront/trumps/_truncate.scss +10 -0
  198. data/app/assets/stylesheets/workarea/storefront/trumps/_visible.scss +70 -0
  199. data/app/assets/stylesheets/workarea/storefront/trumps/_visually_hidden.scss +14 -0
  200. data/app/assets/stylesheets/workarea/storefront/typography/_align.scss +15 -0
  201. data/app/assets/stylesheets/workarea/storefront/typography/_headings.scss +62 -0
  202. data/app/assets/stylesheets/workarea/storefront/typography/_links.scss +15 -0
  203. data/app/assets/stylesheets/workarea/storefront/typography/_text.scss +26 -0
  204. data/app/controllers/workarea/storefront/analytics_controller.rb +45 -0
  205. data/app/controllers/workarea/storefront/application_controller.rb +50 -0
  206. data/app/controllers/workarea/storefront/cart_items_controller.rb +99 -0
  207. data/app/controllers/workarea/storefront/carts_controller.rb +61 -0
  208. data/app/controllers/workarea/storefront/categories_controller.rb +11 -0
  209. data/app/controllers/workarea/storefront/check_inventory.rb +10 -0
  210. data/app/controllers/workarea/storefront/check_pricing_override.rb +17 -0
  211. data/app/controllers/workarea/storefront/checkout/addresses_controller.rb +58 -0
  212. data/app/controllers/workarea/storefront/checkout/payment_controller.rb +21 -0
  213. data/app/controllers/workarea/storefront/checkout/place_order_controller.rb +65 -0
  214. data/app/controllers/workarea/storefront/checkout/shipping_controller.rb +53 -0
  215. data/app/controllers/workarea/storefront/checkouts_controller.rb +102 -0
  216. data/app/controllers/workarea/storefront/contacts_controller.rb +28 -0
  217. data/app/controllers/workarea/storefront/content_areas_controller.rb +15 -0
  218. data/app/controllers/workarea/storefront/content_blocks_controller.rb +51 -0
  219. data/app/controllers/workarea/storefront/current_checkout.rb +114 -0
  220. data/app/controllers/workarea/storefront/email_signups_controller.rb +19 -0
  221. data/app/controllers/workarea/storefront/errors_controller.rb +58 -0
  222. data/app/controllers/workarea/storefront/http_caching.rb +33 -0
  223. data/app/controllers/workarea/storefront/menus_controller.rb +25 -0
  224. data/app/controllers/workarea/storefront/order_lookup.rb +20 -0
  225. data/app/controllers/workarea/storefront/orders_controller.rb +29 -0
  226. data/app/controllers/workarea/storefront/pages_controller.rb +23 -0
  227. data/app/controllers/workarea/storefront/products_controller.rb +25 -0
  228. data/app/controllers/workarea/storefront/recent_views_controller.rb +51 -0
  229. data/app/controllers/workarea/storefront/recommendations_controller.rb +11 -0
  230. data/app/controllers/workarea/storefront/searches_controller.rb +47 -0
  231. data/app/controllers/workarea/storefront/sitemaps_controller.rb +11 -0
  232. data/app/controllers/workarea/storefront/style_guides_controller.rb +6 -0
  233. data/app/controllers/workarea/storefront/user_activity.rb +17 -0
  234. data/app/controllers/workarea/storefront/users/accounts_controller.rb +91 -0
  235. data/app/controllers/workarea/storefront/users/addresses_controller.rb +49 -0
  236. data/app/controllers/workarea/storefront/users/credit_cards_controller.rb +75 -0
  237. data/app/controllers/workarea/storefront/users/logins_controller.rb +47 -0
  238. data/app/controllers/workarea/storefront/users/orders_controller.rb +30 -0
  239. data/app/controllers/workarea/storefront/users/passwords_controller.rb +65 -0
  240. data/app/helpers/workarea/storefront/admin_helper.rb +13 -0
  241. data/app/helpers/workarea/storefront/analytics_helper.rb +230 -0
  242. data/app/helpers/workarea/storefront/application_helper.rb +79 -0
  243. data/app/helpers/workarea/storefront/content_helper.rb +71 -0
  244. data/app/helpers/workarea/storefront/credit_cards_helper.rb +38 -0
  245. data/app/helpers/workarea/storefront/favicons_helper.rb +25 -0
  246. data/app/helpers/workarea/storefront/locales_helper.rb +27 -0
  247. data/app/helpers/workarea/storefront/navigation_helper.rb +97 -0
  248. data/app/helpers/workarea/storefront/pagination_helper.rb +22 -0
  249. data/app/helpers/workarea/storefront/products_helper.rb +43 -0
  250. data/app/helpers/workarea/storefront/recent_views_helper.rb +9 -0
  251. data/app/helpers/workarea/storefront/users_helper.rb +9 -0
  252. data/app/mailers/workarea/storefront/account_mailer.rb +21 -0
  253. data/app/mailers/workarea/storefront/application_mailer.rb +23 -0
  254. data/app/mailers/workarea/storefront/fulfillment_mailer.rb +47 -0
  255. data/app/mailers/workarea/storefront/inquiry_mailer.rb +10 -0
  256. data/app/mailers/workarea/storefront/order_mailer.rb +31 -0
  257. data/app/mailers/workarea/storefront/payment_mailer.rb +23 -0
  258. data/app/mailers/workarea/storefront/transactional_mailer.rb +17 -0
  259. data/app/view_models/workarea/storefront/cart_item_view_model.rb +11 -0
  260. data/app/view_models/workarea/storefront/cart_recommendations_view_model.rb +13 -0
  261. data/app/view_models/workarea/storefront/cart_view_model.rb +95 -0
  262. data/app/view_models/workarea/storefront/category_view_model.rb +119 -0
  263. data/app/view_models/workarea/storefront/checkout/addresses_view_model.rb +73 -0
  264. data/app/view_models/workarea/storefront/checkout/confirmation_view_model.rb +14 -0
  265. data/app/view_models/workarea/storefront/checkout/payment_view_model.rb +103 -0
  266. data/app/view_models/workarea/storefront/checkout/shipping_view_model.rb +13 -0
  267. data/app/view_models/workarea/storefront/checkout/summary_view_model.rb +89 -0
  268. data/app/view_models/workarea/storefront/checkout_content.rb +11 -0
  269. data/app/view_models/workarea/storefront/content_block_view_model.rb +62 -0
  270. data/app/view_models/workarea/storefront/content_blocks/category_summary_view_model.rb +52 -0
  271. data/app/view_models/workarea/storefront/content_blocks/hero_view_model.rb +23 -0
  272. data/app/view_models/workarea/storefront/content_blocks/image_group_view_model.rb +24 -0
  273. data/app/view_models/workarea/storefront/content_blocks/navigation_view_model.rb +32 -0
  274. data/app/view_models/workarea/storefront/content_blocks/product_insights_view_model.rb +46 -0
  275. data/app/view_models/workarea/storefront/content_blocks/product_list_view_model.rb +20 -0
  276. data/app/view_models/workarea/storefront/content_blocks/taxonomy_view_model.rb +17 -0
  277. data/app/view_models/workarea/storefront/content_blocks/video_view_model.rb +58 -0
  278. data/app/view_models/workarea/storefront/content_view_model.rb +11 -0
  279. data/app/view_models/workarea/storefront/credit_card_view_model.rb +7 -0
  280. data/app/view_models/workarea/storefront/detail_page_recommendations_view_model.rb +13 -0
  281. data/app/view_models/workarea/storefront/display_content.rb +56 -0
  282. data/app/view_models/workarea/storefront/email_recommendations_view_model.rb +13 -0
  283. data/app/view_models/workarea/storefront/email_signups_view_model.rb +18 -0
  284. data/app/view_models/workarea/storefront/fulfillment_item_view_model.rb +13 -0
  285. data/app/view_models/workarea/storefront/inquiry_view_model.rb +22 -0
  286. data/app/view_models/workarea/storefront/inventory_status_view_model.rb +27 -0
  287. data/app/view_models/workarea/storefront/menu_view_model.rb +7 -0
  288. data/app/view_models/workarea/storefront/option_set_view_model.rb +59 -0
  289. data/app/view_models/workarea/storefront/order_item_view_model.rb +83 -0
  290. data/app/view_models/workarea/storefront/order_pricing.rb +37 -0
  291. data/app/view_models/workarea/storefront/order_view_model.rb +144 -0
  292. data/app/view_models/workarea/storefront/package_view_model.rb +20 -0
  293. data/app/view_models/workarea/storefront/page_view_model.rb +11 -0
  294. data/app/view_models/workarea/storefront/pagination.rb +42 -0
  295. data/app/view_models/workarea/storefront/personalized_recommendations_view_model.rb +13 -0
  296. data/app/view_models/workarea/storefront/product_browsing.rb +33 -0
  297. data/app/view_models/workarea/storefront/product_templates/option_selects_view_model.rb +7 -0
  298. data/app/view_models/workarea/storefront/product_templates/option_thumbnails_view_model.rb +15 -0
  299. data/app/view_models/workarea/storefront/product_view_model.rb +183 -0
  300. data/app/view_models/workarea/storefront/product_view_model/cache_key.rb +44 -0
  301. data/app/view_models/workarea/storefront/product_view_model/image_collection.rb +58 -0
  302. data/app/view_models/workarea/storefront/product_view_model/option.rb +24 -0
  303. data/app/view_models/workarea/storefront/product_view_model/option_set.rb +97 -0
  304. data/app/view_models/workarea/storefront/product_view_model/sku_options.rb +53 -0
  305. data/app/view_models/workarea/storefront/recommendations_view_model.rb +39 -0
  306. data/app/view_models/workarea/storefront/refund_view_model.rb +16 -0
  307. data/app/view_models/workarea/storefront/search_content.rb +19 -0
  308. data/app/view_models/workarea/storefront/search_customization_content.rb +15 -0
  309. data/app/view_models/workarea/storefront/search_customization_view_model.rb +7 -0
  310. data/app/view_models/workarea/storefront/search_suggestion_view_model.rb +87 -0
  311. data/app/view_models/workarea/storefront/search_view_model.rb +50 -0
  312. data/app/view_models/workarea/storefront/shipping_view_model.rb +27 -0
  313. data/app/view_models/workarea/storefront/taxon_lookup.rb +37 -0
  314. data/app/view_models/workarea/storefront/user_activity_view_model.rb +41 -0
  315. data/app/view_models/workarea/storefront/user_view_model.rb +55 -0
  316. data/app/views/layouts/workarea/storefront/application.html.haml +175 -0
  317. data/app/views/layouts/workarea/storefront/checkout.html.haml +89 -0
  318. data/app/views/layouts/workarea/storefront/content_preview.html.haml +46 -0
  319. data/app/views/layouts/workarea/storefront/email.html.haml +193 -0
  320. data/app/views/layouts/workarea/storefront/empty.html.haml +48 -0
  321. data/app/views/layouts/workarea/storefront/navigation.html.haml +48 -0
  322. data/app/views/workarea/storefront/account_mailer/creation.html.haml +15 -0
  323. data/app/views/workarea/storefront/account_mailer/password_reset.html.haml +12 -0
  324. data/app/views/workarea/storefront/cart_items/create.html.haml +71 -0
  325. data/app/views/workarea/storefront/carts/_pricing.html.haml +14 -0
  326. data/app/views/workarea/storefront/carts/show.html.haml +183 -0
  327. data/app/views/workarea/storefront/categories/show.html.haml +103 -0
  328. data/app/views/workarea/storefront/checkouts/_checkout_progress.html.haml +6 -0
  329. data/app/views/workarea/storefront/checkouts/_summary.html.haml +102 -0
  330. data/app/views/workarea/storefront/checkouts/addresses.html.haml +56 -0
  331. data/app/views/workarea/storefront/checkouts/confirmation.html.haml +37 -0
  332. data/app/views/workarea/storefront/checkouts/payment.html.haml +184 -0
  333. data/app/views/workarea/storefront/checkouts/shipping.html.haml +39 -0
  334. data/app/views/workarea/storefront/checkouts/summary.html.haml +1 -0
  335. data/app/views/workarea/storefront/contacts/show.html.haml +41 -0
  336. data/app/views/workarea/storefront/content_areas/show.html.haml +6 -0
  337. data/app/views/workarea/storefront/content_blocks/_button.html.haml +5 -0
  338. data/app/views/workarea/storefront/content_blocks/_category_summary.html.haml +15 -0
  339. data/app/views/workarea/storefront/content_blocks/_divider.html.haml +2 -0
  340. data/app/views/workarea/storefront/content_blocks/_hero.html.haml +3 -0
  341. data/app/views/workarea/storefront/content_blocks/_html.html.haml +1 -0
  342. data/app/views/workarea/storefront/content_blocks/_image.html.haml +2 -0
  343. data/app/views/workarea/storefront/content_blocks/_image_and_text.html.haml +4 -0
  344. data/app/views/workarea/storefront/content_blocks/_image_group.html.haml +10 -0
  345. data/app/views/workarea/storefront/content_blocks/_product_insights.html.haml +10 -0
  346. data/app/views/workarea/storefront/content_blocks/_product_list.html.haml +10 -0
  347. data/app/views/workarea/storefront/content_blocks/_quote.html.haml +4 -0
  348. data/app/views/workarea/storefront/content_blocks/_recommendations.html.haml +1 -0
  349. data/app/views/workarea/storefront/content_blocks/_social_networks.html.haml +17 -0
  350. data/app/views/workarea/storefront/content_blocks/_taxonomy.html.haml +27 -0
  351. data/app/views/workarea/storefront/content_blocks/_text.html.haml +1 -0
  352. data/app/views/workarea/storefront/content_blocks/_three_column_taxonomy.html.haml +28 -0
  353. data/app/views/workarea/storefront/content_blocks/_two_column_taxonomy.html.haml +28 -0
  354. data/app/views/workarea/storefront/content_blocks/_video.html.haml +2 -0
  355. data/app/views/workarea/storefront/content_blocks/_video_and_text.html.haml +4 -0
  356. data/app/views/workarea/storefront/content_blocks/show.html.haml +1 -0
  357. data/app/views/workarea/storefront/email_signups/show.html.haml +12 -0
  358. data/app/views/workarea/storefront/errors/show.html.haml +12 -0
  359. data/app/views/workarea/storefront/facets/_range.html.haml +11 -0
  360. data/app/views/workarea/storefront/facets/_terms.html.haml +11 -0
  361. data/app/views/workarea/storefront/favicons/_tags.html.haml +8 -0
  362. data/app/views/workarea/storefront/fulfillment_mailer/canceled.html.haml +34 -0
  363. data/app/views/workarea/storefront/fulfillment_mailer/shipped.html.haml +92 -0
  364. data/app/views/workarea/storefront/inquiry_mailer/created.html.haml +27 -0
  365. data/app/views/workarea/storefront/mailers/_recommendations.html.haml +22 -0
  366. data/app/views/workarea/storefront/menus/index.html.haml +12 -0
  367. data/app/views/workarea/storefront/menus/show.html.haml +6 -0
  368. data/app/views/workarea/storefront/order_mailer/_summary.html.haml +209 -0
  369. data/app/views/workarea/storefront/order_mailer/confirmation.html.haml +15 -0
  370. data/app/views/workarea/storefront/order_mailer/reminder.html.haml +34 -0
  371. data/app/views/workarea/storefront/order_mailer/tenders/_credit_card.html.haml +4 -0
  372. data/app/views/workarea/storefront/order_mailer/tenders/_store_credit.html.haml +2 -0
  373. data/app/views/workarea/storefront/orders/_summary.html.haml +274 -0
  374. data/app/views/workarea/storefront/orders/index.html.haml +40 -0
  375. data/app/views/workarea/storefront/orders/show.html.haml +16 -0
  376. data/app/views/workarea/storefront/orders/tenders/_credit_card.html.haml +9 -0
  377. data/app/views/workarea/storefront/orders/tenders/_store_credit.html.haml +6 -0
  378. data/app/views/workarea/storefront/pages/accessibility.html.haml +53 -0
  379. data/app/views/workarea/storefront/pages/browser_config.xml.builder +9 -0
  380. data/app/views/workarea/storefront/pages/home_page.html.haml +20 -0
  381. data/app/views/workarea/storefront/pages/robots.text.erb +17 -0
  382. data/app/views/workarea/storefront/pages/show.html.haml +28 -0
  383. data/app/views/workarea/storefront/pages/templates/_generic.html.haml +1 -0
  384. data/app/views/workarea/storefront/pages/templates/_test.html.haml +1 -0
  385. data/app/views/workarea/storefront/pages/web_manifest.json.jbuilder +11 -0
  386. data/app/views/workarea/storefront/payment_mailer/refunded.html.haml +13 -0
  387. data/app/views/workarea/storefront/products/_price.html.haml +4 -0
  388. data/app/views/workarea/storefront/products/_pricing.html.haml +34 -0
  389. data/app/views/workarea/storefront/products/_summary.html.haml +12 -0
  390. data/app/views/workarea/storefront/products/details.html.haml +2 -0
  391. data/app/views/workarea/storefront/products/show.html.haml +48 -0
  392. data/app/views/workarea/storefront/products/templates/_generic.html.haml +69 -0
  393. data/app/views/workarea/storefront/products/templates/_option_selects.html.haml +70 -0
  394. data/app/views/workarea/storefront/products/templates/_option_thumbnails.html.haml +76 -0
  395. data/app/views/workarea/storefront/products/templates/_test.html.haml +1 -0
  396. data/app/views/workarea/storefront/recent_views/aside.html.haml +25 -0
  397. data/app/views/workarea/storefront/recent_views/narrow.html.haml +25 -0
  398. data/app/views/workarea/storefront/recent_views/show.html.haml +27 -0
  399. data/app/views/workarea/storefront/recommendations/show.html.haml +12 -0
  400. data/app/views/workarea/storefront/searches/index.json.jbuilder +1 -0
  401. data/app/views/workarea/storefront/searches/no_results.html.haml +31 -0
  402. data/app/views/workarea/storefront/searches/show.html.haml +99 -0
  403. data/app/views/workarea/storefront/shared/_address_fields.html.haml +105 -0
  404. data/app/views/workarea/storefront/shared/_left_navigation.html.haml +24 -0
  405. data/app/views/workarea/storefront/shared/_message.html.haml +4 -0
  406. data/app/views/workarea/storefront/sitemaps/_pagination.html.haml +37 -0
  407. data/app/views/workarea/storefront/sitemaps/show.html.haml +36 -0
  408. data/app/views/workarea/storefront/style_guides/_navigation.html.haml +11 -0
  409. data/app/views/workarea/storefront/style_guides/base/_forms.html.haml +82 -0
  410. data/app/views/workarea/storefront/style_guides/base/_tables.html.haml +63 -0
  411. data/app/views/workarea/storefront/style_guides/components/_box.html.haml +26 -0
  412. data/app/views/workarea/storefront/style_guides/components/_breadcrumbs.html.haml +12 -0
  413. data/app/views/workarea/storefront/style_guides/components/_button.html.haml +50 -0
  414. data/app/views/workarea/storefront/style_guides/components/_button_content_block.html.haml +20 -0
  415. data/app/views/workarea/storefront/style_guides/components/_button_property.html.haml +83 -0
  416. data/app/views/workarea/storefront/style_guides/components/_category_summary_content_block.html.haml +29 -0
  417. data/app/views/workarea/storefront/style_guides/components/_data_card.html.haml +215 -0
  418. data/app/views/workarea/storefront/style_guides/components/_divider_content_block.html.haml +40 -0
  419. data/app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml +29 -0
  420. data/app/views/workarea/storefront/style_guides/components/_html_content_block.html.haml +10 -0
  421. data/app/views/workarea/storefront/style_guides/components/_image_and_text_content_block.html.haml +28 -0
  422. data/app/views/workarea/storefront/style_guides/components/_image_content_block.html.haml +38 -0
  423. data/app/views/workarea/storefront/style_guides/components/_image_group_content_block.html.haml +17 -0
  424. data/app/views/workarea/storefront/style_guides/components/_inline_form.html.haml +18 -0
  425. data/app/views/workarea/storefront/style_guides/components/_loading.html.haml +106 -0
  426. data/app/views/workarea/storefront/style_guides/components/_message.html.haml +45 -0
  427. data/app/views/workarea/storefront/style_guides/components/_mobile_filters.html.haml +17 -0
  428. data/app/views/workarea/storefront/style_guides/components/_pagination.html.haml +24 -0
  429. data/app/views/workarea/storefront/style_guides/components/_payment_icon.html.haml +19 -0
  430. data/app/views/workarea/storefront/style_guides/components/_personalized_recommendations_content_block.html.haml +32 -0
  431. data/app/views/workarea/storefront/style_guides/components/_product_insights_content_block.html.haml +32 -0
  432. data/app/views/workarea/storefront/style_guides/components/_product_list.html.haml +302 -0
  433. data/app/views/workarea/storefront/style_guides/components/_product_list_content_block.html.haml +32 -0
  434. data/app/views/workarea/storefront/style_guides/components/_product_prices.html.haml +79 -0
  435. data/app/views/workarea/storefront/style_guides/components/_product_summary.html.haml +35 -0
  436. data/app/views/workarea/storefront/style_guides/components/_property.html.haml +93 -0
  437. data/app/views/workarea/storefront/style_guides/components/_quote_content_block.html.haml +18 -0
  438. data/app/views/workarea/storefront/style_guides/components/_recommendations.html.haml +34 -0
  439. data/app/views/workarea/storefront/style_guides/components/_social_networks_content_block.html.haml +20 -0
  440. data/app/views/workarea/storefront/style_guides/components/_svg_icon.html.haml +51 -0
  441. data/app/views/workarea/storefront/style_guides/components/_table.html.haml +112 -0
  442. data/app/views/workarea/storefront/style_guides/components/_taxonomy_content_block.html.haml +205 -0
  443. data/app/views/workarea/storefront/style_guides/components/_text_box.html.haml +73 -0
  444. data/app/views/workarea/storefront/style_guides/components/_text_button.html.haml +26 -0
  445. data/app/views/workarea/storefront/style_guides/components/_text_content_block.html.haml +10 -0
  446. data/app/views/workarea/storefront/style_guides/components/_ui_autocomplete.html.haml +11 -0
  447. data/app/views/workarea/storefront/style_guides/components/_ui_dialog.html.haml +5 -0
  448. data/app/views/workarea/storefront/style_guides/components/_ui_dialog_image.html.haml +5 -0
  449. data/app/views/workarea/storefront/style_guides/components/_ui_helper_hidden_accessible.html.haml +6 -0
  450. data/app/views/workarea/storefront/style_guides/components/_value.html.haml +70 -0
  451. data/app/views/workarea/storefront/style_guides/components/_video_and_text_content_block.html.haml +21 -0
  452. data/app/views/workarea/storefront/style_guides/components/_video_content_block.html.haml +11 -0
  453. data/app/views/workarea/storefront/style_guides/index.html.haml +87 -0
  454. data/app/views/workarea/storefront/style_guides/objects/_button_reset.html.haml +17 -0
  455. data/app/views/workarea/storefront/style_guides/objects/_inline_list.html.haml +20 -0
  456. data/app/views/workarea/storefront/style_guides/objects/_list_reset.html.haml +20 -0
  457. data/app/views/workarea/storefront/style_guides/objects/_text_field_reset.html.haml +11 -0
  458. data/app/views/workarea/storefront/style_guides/settings/_color_variables.html.haml +21 -0
  459. data/app/views/workarea/storefront/style_guides/show.html.haml +10 -0
  460. data/app/views/workarea/storefront/style_guides/trumps/_break_word.html.haml +15 -0
  461. data/app/views/workarea/storefront/style_guides/trumps/_clearfix.html.haml +21 -0
  462. data/app/views/workarea/storefront/style_guides/trumps/_hidden.html.haml +97 -0
  463. data/app/views/workarea/storefront/style_guides/trumps/_hidden_if_js_enabled.html.haml +17 -0
  464. data/app/views/workarea/storefront/style_guides/trumps/_image_replacement.html.haml +13 -0
  465. data/app/views/workarea/storefront/style_guides/trumps/_truncate.html.haml +13 -0
  466. data/app/views/workarea/storefront/style_guides/trumps/_visible.html.haml +97 -0
  467. data/app/views/workarea/storefront/style_guides/trumps/_visually_hidden.html.haml +17 -0
  468. data/app/views/workarea/storefront/style_guides/typography/_align.html.haml +25 -0
  469. data/app/views/workarea/storefront/style_guides/typography/_fonts.html.haml +9 -0
  470. data/app/views/workarea/storefront/style_guides/typography/_headings.html.haml +25 -0
  471. data/app/views/workarea/storefront/style_guides/typography/_links.html.haml +13 -0
  472. data/app/views/workarea/storefront/style_guides/typography/_text.html.haml +23 -0
  473. data/app/views/workarea/storefront/users/accounts/edit.html.haml +42 -0
  474. data/app/views/workarea/storefront/users/accounts/show.html.haml +118 -0
  475. data/app/views/workarea/storefront/users/addresses/edit.html.haml +24 -0
  476. data/app/views/workarea/storefront/users/addresses/new.html.haml +24 -0
  477. data/app/views/workarea/storefront/users/credit_cards/edit.html.haml +65 -0
  478. data/app/views/workarea/storefront/users/credit_cards/new.html.haml +58 -0
  479. data/app/views/workarea/storefront/users/current_user.json.jbuilder +8 -0
  480. data/app/views/workarea/storefront/users/logins/new.html.haml +51 -0
  481. data/app/views/workarea/storefront/users/orders/_summary.html.haml +23 -0
  482. data/app/views/workarea/storefront/users/orders/index.html.haml +21 -0
  483. data/app/views/workarea/storefront/users/orders/show.html.haml +19 -0
  484. data/app/views/workarea/storefront/users/passwords/change.html.haml +21 -0
  485. data/app/views/workarea/storefront/users/passwords/edit.html.haml +13 -0
  486. data/app/views/workarea/storefront/users/passwords/new.html.haml +24 -0
  487. data/bin/rails +18 -0
  488. data/config/locales/en.yml +403 -0
  489. data/config/routes.rb +110 -0
  490. data/lib/workarea/mailer_previews/storefront/account_mailer_preview.rb +16 -0
  491. data/lib/workarea/mailer_previews/storefront/fulfillment_mailer_preview.rb +27 -0
  492. data/lib/workarea/mailer_previews/storefront/inquiry_mailer_preview.rb +9 -0
  493. data/lib/workarea/mailer_previews/storefront/order_mailer_preview.rb +16 -0
  494. data/lib/workarea/mailer_previews/storefront/payment_mailer_preview.rb +9 -0
  495. data/lib/workarea/storefront.rb +7 -0
  496. data/lib/workarea/storefront/engine.rb +8 -0
  497. data/test/dummy/README.rdoc +28 -0
  498. data/test/dummy/Rakefile +6 -0
  499. data/test/dummy/app/assets/images/.keep +0 -0
  500. data/test/dummy/app/assets/javascripts/application.js +13 -0
  501. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  502. data/test/dummy/app/controllers/application_controller.rb +5 -0
  503. data/test/dummy/app/controllers/concerns/.keep +0 -0
  504. data/test/dummy/app/helpers/application_helper.rb +2 -0
  505. data/test/dummy/app/mailers/.keep +0 -0
  506. data/test/dummy/app/models/.keep +0 -0
  507. data/test/dummy/app/models/concerns/.keep +0 -0
  508. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  509. data/test/dummy/bin/bundle +3 -0
  510. data/test/dummy/bin/rails +5 -0
  511. data/test/dummy/bin/rake +4 -0
  512. data/test/dummy/bin/setup +34 -0
  513. data/test/dummy/bin/update +29 -0
  514. data/test/dummy/config.ru +4 -0
  515. data/test/dummy/config/application.rb +22 -0
  516. data/test/dummy/config/boot.rb +5 -0
  517. data/test/dummy/config/cable.yml +9 -0
  518. data/test/dummy/config/environment.rb +5 -0
  519. data/test/dummy/config/environments/development.rb +51 -0
  520. data/test/dummy/config/environments/production.rb +86 -0
  521. data/test/dummy/config/environments/test.rb +43 -0
  522. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  523. data/test/dummy/config/initializers/assets.rb +11 -0
  524. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  525. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  526. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  527. data/test/dummy/config/initializers/inflections.rb +16 -0
  528. data/test/dummy/config/initializers/mime_types.rb +4 -0
  529. data/test/dummy/config/initializers/new_framework_defaults.rb +17 -0
  530. data/test/dummy/config/initializers/session_store.rb +3 -0
  531. data/test/dummy/config/initializers/workarea.rb +8 -0
  532. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  533. data/test/dummy/config/locales/en.yml +23 -0
  534. data/test/dummy/config/puma.rb +47 -0
  535. data/test/dummy/config/routes.rb +8 -0
  536. data/test/dummy/config/secrets.yml +22 -0
  537. data/test/dummy/config/spring.rb +6 -0
  538. data/test/dummy/db/seeds.rb +10 -0
  539. data/test/dummy/lib/assets/.keep +0 -0
  540. data/test/dummy/log/.keep +0 -0
  541. data/test/dummy/public/404.html +67 -0
  542. data/test/dummy/public/422.html +67 -0
  543. data/test/dummy/public/500.html +66 -0
  544. data/test/dummy/public/favicon.ico +1 -0
  545. data/test/helpers/workarea/storefront/application_helper_test.rb +25 -0
  546. data/test/helpers/workarea/storefront/content_helper_test.rb +50 -0
  547. data/test/helpers/workarea/storefront/credit_cards_helper_test.rb +29 -0
  548. data/test/helpers/workarea/storefront/navigation_helper_test.rb +85 -0
  549. data/test/helpers/workarea/storefront/pagination_helper_test.rb +27 -0
  550. data/test/helpers/workarea/storefront/products_helper_test.rb +43 -0
  551. data/test/integration/workarea/storefront/accounts_integration_test.rb +128 -0
  552. data/test/integration/workarea/storefront/analytics_integration_test.rb +32 -0
  553. data/test/integration/workarea/storefront/browse_images_integration_test.rb +71 -0
  554. data/test/integration/workarea/storefront/cart_integration_test.rb +109 -0
  555. data/test/integration/workarea/storefront/cart_items_integration_test.rb +330 -0
  556. data/test/integration/workarea/storefront/categories_integration_test.rb +21 -0
  557. data/test/integration/workarea/storefront/checkout_side_effects_integration_test.rb +214 -0
  558. data/test/integration/workarea/storefront/checkout_with_pricing_override_integration_test.rb +168 -0
  559. data/test/integration/workarea/storefront/checkouts_integration_test.rb +267 -0
  560. data/test/integration/workarea/storefront/contact_form_integration_test.rb +33 -0
  561. data/test/integration/workarea/storefront/content_blocks_integration_test.rb +71 -0
  562. data/test/integration/workarea/storefront/current_checkout_integration_test.rb +30 -0
  563. data/test/integration/workarea/storefront/current_user_integration_test.rb +28 -0
  564. data/test/integration/workarea/storefront/email_signups_integration_test.rb +25 -0
  565. data/test/integration/workarea/storefront/errors_integration_test.rb +137 -0
  566. data/test/integration/workarea/storefront/favicons_integration_test.rb +16 -0
  567. data/test/integration/workarea/storefront/guest_browsing_integration_test.rb +24 -0
  568. data/test/integration/workarea/storefront/head_tags_integration_test.rb +127 -0
  569. data/test/integration/workarea/storefront/health_check_integration_test.rb +13 -0
  570. data/test/integration/workarea/storefront/host_integration_test.rb +32 -0
  571. data/test/integration/workarea/storefront/impersonations_integration_test.rb +128 -0
  572. data/test/integration/workarea/storefront/layout_integration_test.rb +29 -0
  573. data/test/integration/workarea/storefront/login_integration_test.rb +157 -0
  574. data/test/integration/workarea/storefront/order_data_integration_test.rb +264 -0
  575. data/test/integration/workarea/storefront/order_lookup_integration_test.rb +117 -0
  576. data/test/integration/workarea/storefront/pages_integration_test.rb +56 -0
  577. data/test/integration/workarea/storefront/place_order_integration_test.rb +140 -0
  578. data/test/integration/workarea/storefront/placing_order_integration_test.rb +92 -0
  579. data/test/integration/workarea/storefront/products_integration_test.rb +36 -0
  580. data/test/integration/workarea/storefront/search_integration_test.rb +128 -0
  581. data/test/integration/workarea/storefront/store_credit_integration_test.rb +121 -0
  582. data/test/integration/workarea/storefront/users/addresses_integration_test.rb +136 -0
  583. data/test/integration/workarea/storefront/users/credit_cards_integration_test.rb +96 -0
  584. data/test/integration/workarea/storefront/users/orders_integration_test.rb +15 -0
  585. data/test/integration/workarea/storefront/users/passwords_integration_test.rb +48 -0
  586. data/test/javascripts/address_region_fields_spec.js +46 -0
  587. data/test/javascripts/analytics_spec.js +91 -0
  588. data/test/javascripts/authenticity_token_spec.js +26 -0
  589. data/test/javascripts/back_to_top_button_spec.js +41 -0
  590. data/test/javascripts/break_points_spec.js +41 -0
  591. data/test/javascripts/checkout_primary_payments_spec.js +32 -0
  592. data/test/javascripts/dialog_spec.js +347 -0
  593. data/test/javascripts/fixtures/address_region_fields.html.haml +17 -0
  594. data/test/javascripts/fixtures/analytics_add_to_cart_form.html.haml +12 -0
  595. data/test/javascripts/fixtures/analytics_product_click.html.haml +7 -0
  596. data/test/javascripts/fixtures/authenticity_token.html.haml +2 -0
  597. data/test/javascripts/fixtures/back_to_top_button.html.haml +2 -0
  598. data/test/javascripts/fixtures/checkout_primary_payments.html.haml +12 -0
  599. data/test/javascripts/fixtures/dialog.html.haml +16 -0
  600. data/test/javascripts/fixtures/form.html.haml +10 -0
  601. data/test/javascripts/fixtures/optional_fields.html.haml +4 -0
  602. data/test/javascripts/fixtures/popup_button.html.haml +1 -0
  603. data/test/javascripts/fixtures/product_details_sku_select.html.haml +8 -0
  604. data/test/javascripts/fixtures/product_details_sku_select_without_sku_option_details.html.haml +7 -0
  605. data/test/javascripts/fixtures/scroll_to_element.html.haml +19 -0
  606. data/test/javascripts/forms_spec.js +85 -0
  607. data/test/javascripts/messages_spec.js +50 -0
  608. data/test/javascripts/optional_fields_spec.js +20 -0
  609. data/test/javascripts/popup_button_spec.js +19 -0
  610. data/test/javascripts/product_details_sku_selects_spec.js +154 -0
  611. data/test/javascripts/scroll_to_buttons_spec.js +46 -0
  612. data/test/javascripts/spec_helper.js +2 -0
  613. data/test/javascripts/traffic_referrer_spec.js +33 -0
  614. data/test/mailers/workarea/storefront/transactional_mailer_test.rb +29 -0
  615. data/test/performance/workarea/storefront/cart_performance_test.rb +52 -0
  616. data/test/performance/workarea/storefront/categories_performance_test.rb +26 -0
  617. data/test/performance/workarea/storefront/pages_performance_test.rb +31 -0
  618. data/test/performance/workarea/storefront/products_performance_test.rb +19 -0
  619. data/test/performance/workarea/storefront/search_performance_test.rb +27 -0
  620. data/test/system/workarea/storefront/accounts_system_test.rb +97 -0
  621. data/test/system/workarea/storefront/addresses_system_test.rb +60 -0
  622. data/test/system/workarea/storefront/analytics_system_test.rb +725 -0
  623. data/test/system/workarea/storefront/cart_items_system_test.rb +117 -0
  624. data/test/system/workarea/storefront/cart_system_test.rb +93 -0
  625. data/test/system/workarea/storefront/categories_system_test.rb +258 -0
  626. data/test/system/workarea/storefront/content_system_test.rb +114 -0
  627. data/test/system/workarea/storefront/credit_cards_system_test.rb +77 -0
  628. data/test/system/workarea/storefront/customer_service_system_test.rb +21 -0
  629. data/test/system/workarea/storefront/digital_products_system_test.rb +140 -0
  630. data/test/system/workarea/storefront/discounting_multiple_system_test.rb +87 -0
  631. data/test/system/workarea/storefront/discounting_system_test.rb +292 -0
  632. data/test/system/workarea/storefront/email_signup_system_test.rb +19 -0
  633. data/test/system/workarea/storefront/fulfillment_system_test.rb +78 -0
  634. data/test/system/workarea/storefront/guest_checkout_system_test.rb +426 -0
  635. data/test/system/workarea/storefront/logged_in_checkout_system_test.rb +336 -0
  636. data/test/system/workarea/storefront/login_system_test.rb +157 -0
  637. data/test/system/workarea/storefront/navigation_system_test.rb +73 -0
  638. data/test/system/workarea/storefront/no_js_system_test.rb +84 -0
  639. data/test/system/workarea/storefront/orders_system_test.rb +84 -0
  640. data/test/system/workarea/storefront/pages_system_test.rb +61 -0
  641. data/test/system/workarea/storefront/pagination_system_test.rb +129 -0
  642. data/test/system/workarea/storefront/passwords_system_test.rb +158 -0
  643. data/test/system/workarea/storefront/pricing_overrides_system_test.rb +45 -0
  644. data/test/system/workarea/storefront/products_system_test.rb +241 -0
  645. data/test/system/workarea/storefront/recommendations_system_test.rb +85 -0
  646. data/test/system/workarea/storefront/release_browsing_system_test.rb +73 -0
  647. data/test/system/workarea/storefront/search_system_test.rb +267 -0
  648. data/test/system/workarea/storefront/sitemap_system_test.rb +57 -0
  649. data/test/system/workarea/storefront/store_credit_system_test.rb +166 -0
  650. data/test/system/workarea/storefront/style_guides_system_test.rb +16 -0
  651. data/test/teaspoon_env.rb +10 -0
  652. data/test/test_helper.rb +10 -0
  653. data/test/view_models/workarea/storefront/cart_view_model_test.rb +36 -0
  654. data/test/view_models/workarea/storefront/category_view_model_test.rb +59 -0
  655. data/test/view_models/workarea/storefront/checkout/addresses_view_model_test.rb +16 -0
  656. data/test/view_models/workarea/storefront/checkout/payment_view_model_test.rb +76 -0
  657. data/test/view_models/workarea/storefront/checkout/summary_view_model_test.rb +29 -0
  658. data/test/view_models/workarea/storefront/content_block_view_model_test.rb +86 -0
  659. data/test/view_models/workarea/storefront/content_blocks/category_summary_view_model_test.rb +35 -0
  660. data/test/view_models/workarea/storefront/content_blocks/navigation_view_model_test.rb +53 -0
  661. data/test/view_models/workarea/storefront/content_blocks/product_insights_view_model_test.rb +73 -0
  662. data/test/view_models/workarea/storefront/content_blocks/product_list_view_model_test.rb +24 -0
  663. data/test/view_models/workarea/storefront/content_blocks/taxonomy_view_model_test.rb +81 -0
  664. data/test/view_models/workarea/storefront/content_blocks/video_view_model_test.rb +89 -0
  665. data/test/view_models/workarea/storefront/display_content_test.rb +105 -0
  666. data/test/view_models/workarea/storefront/fulfillment_item_view_model_test.rb +18 -0
  667. data/test/view_models/workarea/storefront/inventory_status_view_model_test.rb +39 -0
  668. data/test/view_models/workarea/storefront/option_set_view_model_test.rb +158 -0
  669. data/test/view_models/workarea/storefront/order_item_view_model_test.rb +49 -0
  670. data/test/view_models/workarea/storefront/order_view_model_test.rb +84 -0
  671. data/test/view_models/workarea/storefront/package_view_model_test.rb +32 -0
  672. data/test/view_models/workarea/storefront/product_templates/option_thumbnails_view_model_test.rb +25 -0
  673. data/test/view_models/workarea/storefront/product_view_model/cache_key_test.rb +16 -0
  674. data/test/view_models/workarea/storefront/product_view_model/image_collection_test.rb +93 -0
  675. data/test/view_models/workarea/storefront/product_view_model/option_set_test.rb +379 -0
  676. data/test/view_models/workarea/storefront/product_view_model/sku_options_test.rb +35 -0
  677. data/test/view_models/workarea/storefront/product_view_model_test.rb +235 -0
  678. data/test/view_models/workarea/storefront/recommendations_view_model_test.rb +62 -0
  679. data/test/view_models/workarea/storefront/refund_view_model_test.rb +23 -0
  680. data/test/view_models/workarea/storefront/search_suggestion_view_model_test.rb +42 -0
  681. data/test/view_models/workarea/storefront/search_view_model_test.rb +57 -0
  682. data/test/view_models/workarea/storefront/shipping_view_model_test.rb +29 -0
  683. data/test/view_models/workarea/storefront/user_activity_view_model_test.rb +65 -0
  684. data/test/view_models/workarea/storefront/user_view_model_test.rb +35 -0
  685. data/workarea-storefront.gemspec +16 -0
  686. metadata +742 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5d4a1bcbe82128b1d03b0d44635ae49b8140402beedd3270902770e347577713
4
+ data.tar.gz: 3f111a2d30c395e18be277df504cb24a92ee6dd444640f96a497234678c00e33
5
+ SHA512:
6
+ metadata.gz: b12f70b7d43d051924467419118f0ca67e64cb0b05344614be699091c65a33d9b2de023e5eabc587a7b7dcac9d2cef384f7d017a0b7ba66be73bb72da394280a
7
+ data.tar.gz: fa975ada077ffa6244f22b0d426a7ae37705657ef968906f4558622cb002bcc0d94e96d81ffcdc572be28cf5e9241580ce5f1816179b3c0be8eb12bf8d778276
data/LICENSE ADDED
@@ -0,0 +1,52 @@
1
+ WebLinc
2
+ Business Source License
3
+
4
+ Licensor: WebLinc Corporation, 22 S. 3rd Street, 2nd Floor, Philadelphia PA 19106
5
+
6
+ Licensed Work: Workarea Commerce Platform
7
+ The Licensed Work is (c) 2019 WebLinc Corporation
8
+
9
+ Additional Use Grant:
10
+ You may make production use of the Licensed Work without an additional license agreement with WebLinc so long as you do not use the Licensed Work for a Commerce Service.
11
+
12
+ A "Commerce Service" is a commercial offering that allows third parties (other than your employees and contractors) to access the functionality of the Licensed Work by creating or managing commerce functionality, the products, taxonomy, assets and/or content of which are controlled by such third parties.
13
+
14
+ For information about obtaining an additional license agreement with WebLinc, contact licensing@workarea.com.
15
+
16
+ Change Date: 2019-08-20
17
+
18
+ Change License: Version 2.0 or later of the GNU General Public License as published by the Free Software Foundation
19
+
20
+ Terms
21
+
22
+ The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
23
+
24
+ Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
25
+
26
+ If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
27
+
28
+ All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
29
+
30
+ You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
31
+
32
+ Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
33
+
34
+ This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License). TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE. MariaDB hereby grants you permission to use this License’s text to license your works and to refer to it using the trademark "Business Source License" as long as you comply with the Covenants of Licensor below.
35
+
36
+ Covenants of Licensor
37
+ In consideration of the right to use this License’s text and the "Business Source License" name and trademark, Licensor covenants to MariaDB, and to all other recipients of the licensed work to be provided by Licensor:
38
+
39
+ To specify as the Change License the GPL Version 2.0 or any later version, or a license that is compatible with GPL Version 2.0 or a later version, where "compatible" means that software provided under the Change License can be included in a program with software provided under GPL Version 2.0 or a later version. Licensor may specify additional Change Licenses without limitation.
40
+
41
+ To either: (a) specify an additional grant of rights to use that does not impose any additional restriction on the right granted in this License, as the Additional Use Grant; or (b) insert the text "None."
42
+
43
+ To specify a Change Date.
44
+
45
+ Not to modify this License in any other way.
46
+
47
+ Notice
48
+ The Business Source License (this document, or the "License") is not an Open Source license. However, the Licensed Work will eventually be made available under an Open Source License, as stated in this License.
49
+
50
+ For more information on the use of the Business Source License generally, please visit the Adopting and Developing Business Source License FAQ.
51
+
52
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. "Business Source License" is a trademark of MariaDB Corporation Ab.
@@ -0,0 +1,19 @@
1
+ Workarea Storefront
2
+ ================================================================================
3
+
4
+ Storefront of the Workarea platform.
5
+
6
+ Getting Started
7
+ --------------------------------------------------------------------------------
8
+
9
+ To use Workarea Store Front, install the `workarea` gem. See the `workarea` gem for installation instructions.
10
+
11
+ Workarea Platform Documentation
12
+ --------------------------------------------------------------------------------
13
+
14
+ See the `workarea` gem for Workarea platform documentation.
15
+
16
+ License
17
+ --------------------------------------------------------------------------------
18
+
19
+ Workarea Storefront is released under the [Business Software License](LICENSE)
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ Bundler::GemHelper.install_tasks
9
+
10
+ # Load the dummy app's rake tasks
11
+ APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
12
+ load 'rails/tasks/engine.rake'
13
+
14
+ desc 'Run the JavaScript tests'
15
+ ENV['TEASPOON_RAILS_ENV'] = File.expand_path('../test/dummy/config/environment', __FILE__)
16
+ task teaspoon: 'app:teaspoon'
17
+
18
+ desc 'Start a server at http://localhost:3000/teaspoon for JavaScript tests'
19
+ task :teaspoon_server do
20
+ Dir.chdir('test/dummy')
21
+ teaspoon_env = File.expand_path('../test/teaspoon_env.rb', __FILE__)
22
+ system "RAILS_ENV=test TEASPOON_ENV=#{teaspoon_env} rails s"
23
+ end
File without changes
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 471"><rect fill="#000c9d" width="750" height="471" rx="40"/><path fill="#9d9400" d="m48.71 153.58h110.32v99.68h-110.32z"/><g fill="#fff"><path d="m78.1 310.37v-3.795h-5.117v-11.27h-4.198l-.402 11.27h-11.443l10.58-25.07-3.967-1.725-11.673 27.14v3.45h16.445v9.66h4.658v-9.66h5.117m19.586-30.59c-4.03 0-7.878 1.38-11.213 4.6l2.588 2.933c2.645-2.473 5-3.68 8.395-3.68 4.197 0 7.532 2.357 7.532 6.727 0 4.773-3.737 6.958-7.532 6.958h-2.358l-.575 3.795h3.335c4.658 0 8.223 1.84 8.223 7.532 0 4.945-3.278 8.108-8.855 8.108-3.22 0-6.555-1.323-8.798-3.968l-3.22 2.645c2.99 3.68 7.705 5.233 12.133 5.233 8.165 0 13.742-5.175 13.742-12.02 0-6.152-4.37-9.372-9.03-9.717 4.197-.805 7.762-4.428 7.762-9.2 0-5.405-4.715-9.948-12.13-9.948m34.477 0c-5.347 0-8.912 1.898-12.08 5.693l3.335 2.53c2.53-2.933 4.658-4.198 8.568-4.198 4.427 0 7.07 2.76 7.07 7.188 0 6.497-3.22 10.81-18.17 25.13v3.91h23.518l.575-4.082h-18.63c13.05-11.903 17.71-17.825 17.71-25.07 0-6.325-4.428-11.1-11.903-11.1m48.738 36.34h-8.28v-35.65h-4.198l-11.73 7.245 2.07 3.393 9.09-5.463v30.475h-9.775v3.91h22.828v-3.91m69.59-5.75v-3.795h-5.117v-11.27h-4.198l-.402 11.27h-11.443l10.58-25.07-3.967-1.725-11.673 27.14v3.45h16.445v9.66h4.658v-9.66h5.117m19.585-30.59c-4.02 0-7.877 1.38-11.212 4.6l2.587 2.933c2.645-2.473 5-3.68 8.395-3.68 4.198 0 7.533 2.357 7.533 6.727 0 4.773-3.738 6.958-7.533 6.958h-2.357l-.575 3.795h3.335c4.657 0 8.222 1.84 8.222 7.532 0 4.945-3.277 8.108-8.855 8.108-3.22 0-6.555-1.323-8.797-3.968l-3.22 2.645c2.99 3.68 7.705 5.233 12.13 5.233 8.165 0 13.743-5.175 13.743-12.02 0-6.152-4.37-9.372-9.03-9.717 4.198-.805 7.763-4.428 7.763-9.2 0-5.405-4.715-9.948-12.133-9.948m34.478 0c-5.348 0-8.913 1.898-12.07 5.693l3.335 2.53c2.53-2.933 4.657-4.198 8.567-4.198 4.428 0 7.07 2.76 7.07 7.188 0 6.497-3.22 10.81-18.17 25.13v3.91h23.517l.575-4.082h-18.63c13.05-11.903 17.71-17.825 17.71-25.07 0-6.325-4.427-11.1-11.902-11.1m48.737 36.34h-8.28v-35.65h-4.197l-11.73 7.245 2.07 3.393 9.08-5.463v30.475h-9.775v3.91h22.827v-3.91m69.59-5.75v-3.795h-5.118v-11.27h-4.197l-.403 11.27h-11.442l10.58-25.07-3.968-1.725-11.672 27.14v3.45h16.445v9.66h4.657v-9.66h5.118m19.585-30.59c-4.02 0-7.878 1.38-11.213 4.6l2.588 2.933c2.645-2.473 5-3.68 8.395-3.68 4.197 0 7.532 2.357 7.532 6.727 0 4.773-3.737 6.958-7.532 6.958h-2.358l-.575 3.795h3.335c4.658 0 8.223 1.84 8.223 7.532 0 4.945-3.278 8.108-8.855 8.108-3.22 0-6.555-1.323-8.798-3.968l-3.22 2.645c2.99 3.68 7.705 5.233 12.133 5.233 8.165 0 13.742-5.175 13.742-12.02 0-6.152-4.37-9.372-9.03-9.717 4.197-.805 7.762-4.428 7.762-9.2 0-5.405-4.715-9.948-12.13-9.948m34.477 0c-5.347 0-8.912 1.898-12.07 5.693l3.335 2.53c2.53-2.933 4.658-4.198 8.568-4.198 4.427 0 7.07 2.76 7.07 7.188 0 6.497-3.22 10.81-18.17 25.13v3.91h23.518l.575-4.082h-18.63c13.05-11.903 17.71-17.825 17.71-25.07 0-6.325-4.428-11.1-11.903-11.1m48.738 36.34h-8.28v-35.65h-4.198l-11.73 7.245 2.07 3.393 9.08-5.463v30.475h-9.775v3.91h22.828v-3.91m69.59-5.75v-3.795h-5.118v-11.27h-4.197l-.402 11.27h-11.442l10.58-25.07-3.968-1.725-11.672 27.14v3.45h16.445v9.66h4.658v-9.66h5.118zm19.584-30.59c-4.02 0-7.877 1.38-11.212 4.6l2.588 2.933c2.645-2.473 5-3.68 8.395-3.68 4.198 0 7.533 2.357 7.533 6.727 0 4.773-3.737 6.958-7.532 6.958h-2.357l-.575 3.795h3.335c4.658 0 8.223 1.84 8.223 7.532 0 4.945-3.278 8.108-8.855 8.108-3.22 0-6.554-1.323-8.797-3.968l-3.22 2.645c2.99 3.68 7.705 5.233 12.133 5.233 8.165 0 13.742-5.175 13.742-12.02 0-6.152-4.37-9.372-9.03-9.717 4.198-.805 7.763-4.428 7.763-9.2 0-5.405-4.715-9.948-12.13-9.948zm34.478 0c-5.347 0-8.912 1.898-12.08 5.693l3.335 2.53c2.53-2.933 4.658-4.198 8.568-4.198 4.427 0 7.07 2.76 7.07 7.188 0 6.497-3.22 10.81-18.17 25.13v3.91h23.518l.575-4.082h-18.63c13.05-11.903 17.71-17.825 17.71-25.07 0-6.325-4.427-11.1-11.902-11.1zm48.738 36.34h-8.28v-35.65h-4.198l-11.73 7.245 2.07 3.393 9.09-5.463v30.475h-9.775v3.91h22.828v-3.91"/></g><g fill="#fff" fill-opacity=".784"><path d="m55.607 415.42h6.445v-22.245l-7.01 1.406v-3.593l6.973-1.406h3.945v25.84h6.446v3.32h-16.797v-3.32zm25.468 0h6.446v-22.245l-7.01 1.406v-3.593l6.972-1.406h3.945v25.84h6.445v3.32h-16.798v-3.32zm40.918 0h13.77v3.32h-18.516v-3.32q2.246-2.323 6.114-6.23 3.887-3.925 4.883-5.058 1.895-2.13 2.637-3.594.762-1.484.762-2.91 0-2.324-1.64-3.79-1.622-1.464-4.24-1.464-1.855 0-3.925.645-2.05.643-4.394 1.952v-3.985q2.382-.957 4.453-1.445 2.07-.488 3.79-.488 4.53 0 7.225 2.265 2.697 2.265 2.697 6.05 0 1.797-.684 3.418-.664 1.602-2.44 3.79-.49.565-3.107 3.28-2.617 2.696-7.383 7.56zm34.02-12.4q2.832.604 4.414 2.518 1.602 1.914 1.602 4.727 0 4.316-2.968 6.68-2.97 2.363-8.438 2.363-1.836 0-3.79-.372-1.932-.35-4-1.074v-3.808q1.64.957 3.594 1.445 1.953.487 4.082.487 3.71 0 5.644-1.465 1.953-1.464 1.953-4.257 0-2.58-1.817-4.02-1.797-1.464-5.02-1.464h-3.398v-3.242h3.555q2.91 0 4.453-1.152 1.543-1.172 1.543-3.36 0-2.246-1.6-3.437-1.584-1.21-4.552-1.21-1.62 0-3.476.35-1.855.352-4.082 1.094v-3.516q2.246-.625 4.2-.938 1.972-.312 3.71-.312 4.492 0 7.11 2.05 2.617 2.032 2.617 5.508 0 2.422-1.388 4.102-1.387 1.66-3.945 2.305zm26.289-13.44h15.488v3.32h-11.874v7.15q.86-.293 1.718-.43.86-.156 1.72-.156 4.88 0 7.733 2.676 2.853 2.675 2.853 7.246 0 4.707-2.93 7.324-2.93 2.598-8.262 2.598-1.835 0-3.75-.313-1.893-.312-3.925-.937v-3.965q1.758.957 3.633 1.426 1.875.467 3.965.467 3.38 0 5.352-1.777 1.972-1.777 1.972-4.824 0-3.047-1.972-4.825-1.973-1.776-5.352-1.776-1.582 0-3.164.352-1.563.35-3.204 1.093v-14.65zm33.867 15.314q-2.812 0-4.434 1.503-1.602 1.504-1.602 4.14 0 2.638 1.6 4.142 1.623 1.503 4.435 1.503 2.813 0 4.434-1.504 1.62-1.525 1.62-4.142 0-2.637-1.62-4.14-1.602-1.504-4.434-1.504zm-3.945-1.68q-2.54-.625-3.965-2.363-1.406-1.738-1.406-4.238 0-3.496 2.48-5.527 2.5-2.03 6.836-2.03 4.356 0 6.836 2.03 2.48 2.03 2.48 5.527 0 2.5-1.426 4.24-1.407 1.737-3.926 2.362 2.85.664 4.434 2.597 1.6 1.935 1.6 4.728 0 4.238-2.597 6.504-2.578 2.266-7.402 2.266t-7.422-2.266q-2.577-2.266-2.577-6.504 0-2.793 1.602-4.727 1.6-1.932 4.453-2.596zm-1.446-6.23q0 2.265 1.407 3.535 1.424 1.268 3.983 1.268 2.54 0 3.965-1.27 1.445-1.27 1.445-3.535t-1.445-3.535q-1.426-1.27-3.965-1.27-2.56 0-3.984 1.27-1.408 1.27-1.408 3.535z"/><path d="m308.84 414.45h6.445v-22.246l-7.01 1.406v-3.593l6.972-1.407h3.946v25.84h6.445v3.32h-16.797v-3.32m36.737-12.403q2.832.606 4.415 2.52 1.6 1.914 1.6 4.727 0 4.316-2.97 6.68-2.967 2.363-8.436 2.363-1.836 0-3.79-.37-1.933-.353-4-1.075v-3.81q1.64.958 3.595 1.446 1.953.49 4.082.49 3.71 0 5.644-1.465 1.954-1.465 1.954-4.258 0-2.578-1.816-4.02-1.797-1.464-5.02-1.464h-3.398v-3.244h3.555q2.91 0 4.453-1.152 1.543-1.172 1.543-3.36 0-2.245-1.6-3.437-1.583-1.21-4.552-1.21-1.62 0-3.476.35-1.856.352-4.082 1.095v-3.516q2.246-.625 4.2-.938 1.972-.312 3.71-.312 4.492 0 7.11 2.05 2.616 2.032 2.616 5.51 0 2.42-1.386 4.1-1.387 1.66-3.946 2.305zm16.916 12.403h13.768v3.32h-18.516v-3.32q2.247-2.324 6.114-6.23 3.886-3.926 4.883-5.06 1.893-2.128 2.635-3.593.762-1.484.762-2.91 0-2.324-1.64-3.79-1.622-1.464-4.24-1.464-1.854 0-3.925.645-2.05.645-4.394 1.954v-3.984q2.383-.957 4.453-1.446 2.07-.488 3.79-.488 4.53 0 7.226 2.266 2.696 2.265 2.696 6.05 0 1.797-.684 3.418-.664 1.602-2.44 3.79-.49.566-3.107 3.28-2.616 2.696-7.38 7.56zm22.752 0h6.446v-22.246l-7.01 1.406v-3.593l6.973-1.407h3.944v25.84h6.445v3.32h-16.798v-3.32zm49.47-12.403q2.832.606 4.414 2.52 1.6 1.914 1.6 4.727 0 4.316-2.968 6.68-2.97 2.363-8.438 2.363-1.835 0-3.79-.37-1.932-.353-4-1.075v-3.81q1.642.958 3.595 1.446 1.953.49 4.082.49 3.71 0 5.645-1.465 1.953-1.465 1.953-4.258 0-2.578-1.816-4.02-1.798-1.464-5.02-1.464h-3.4v-3.244h3.555q2.91 0 4.453-1.152 1.543-1.172 1.543-3.36 0-2.245-1.6-3.437-1.582-1.21-4.55-1.21-1.622 0-3.478.35-1.855.352-4.082 1.095v-3.516q2.246-.625 4.2-.938 1.972-.312 3.71-.312 4.493 0 7.11 2.05 2.617 2.032 2.617 5.51 0 2.42-1.387 4.1-1.386 1.66-3.945 2.305zm24.355-10l-9.96 15.567h9.96v-15.567m-1.035-3.437h4.96v19h4.16v3.28h-4.16v6.876h-3.924v-6.875h-13.164v-3.808l12.13-18.477zm15.705 0h15.487v3.32h-11.875v7.15q.86-.294 1.72-.43.858-.157 1.717-.157 4.882 0 7.734 2.676 2.85 2.676 2.85 7.246 0 4.707-2.928 7.324-2.93 2.598-8.262 2.598-1.836 0-3.75-.313-1.895-.312-3.926-.937v-3.965q1.758.957 3.633 1.426 1.876.47 3.966.47 3.38 0 5.35-1.778 1.974-1.777 1.974-4.824 0-3.047-1.973-4.824-1.972-1.778-5.35-1.778-1.583 0-3.165.352-1.563.352-3.203 1.094v-14.65m25.468 0h15.49v3.32h-11.877v7.15q.86-.294 1.72-.43.86-.157 1.718-.157 4.883 0 7.734 2.676 2.852 2.676 2.852 7.246 0 4.707-2.93 7.324-2.93 2.598-8.26 2.598-1.837 0-3.75-.313-1.896-.312-3.927-.937v-3.965q1.758.957 3.633 1.426 1.875.47 3.964.47 3.38 0 5.352-1.778 1.973-1.777 1.973-4.824 0-3.047-1.974-4.824-1.973-1.778-5.352-1.778-1.582 0-3.164.352-1.562.352-3.203 1.094v-14.65"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#000000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m211.9 197.4h-36.7v59.9h36.7v175.8h70.5v-176.6h49.2l5.2-59.1h-54.4c0 0 0-22.1 0-33.7 0-13.9 2.8-19.5 16.3-19.5 10.9 0 38.2 0 38.2 0v-61.3c0 0-40.2 0-48.8 0-52.5 0-76.1 23.1-76.1 67.3-.1 38.6-.1 47.2-.1 47.2"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m179.7 237.6v46.6h77c-3.1 20-23.3 58.7-77 58.7-46.3 0-84.1-38.5-84.1-85.9 0-47.4 37.8-85.9 84.1-85.9 26.4 0 44 11.3 54.1 21l36.8-35.5c-23.6-22.2-54.2-35.6-90.9-35.6-75 0-135.7 60.8-135.7 136 0 75.2 60.7 136 135.7 136 78.3 0 130.3-55.2 130.3-132.9 0-8.9-1-15.7-2.1-22.5h-128.2m288.3-.9h-38.7v-38.7h-38.6v38.7h-38.7v38.6h38.7v38.7h38.6v-38.7h38.7"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#000000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m266.6 76.5c-100.2 0-150.7 71.8-150.7 131.7 0 36.3 13.7 68.5 43.2 80.6 4.8 2 9.2.1 10.6-5.3 1-3.7 3.3-13 4.3-16.9 1.4-5.3.9-7.1-3-11.8-8.5-10-13.9-23-13.9-41.3 0-53.3 39.9-101 103.8-101 56.6 0 87.7 34.6 87.7 80.8 0 60.8-26.9 112.1-66.8 112.1-22.1 0-38.6-18.2-33.3-40.6 6.3-26.7 18.6-55.5 18.6-74.8 0-17.3-9.3-31.7-28.4-31.7-22.5 0-40.7 23.3-40.7 54.6 0 19.9 6.7 33.4 6.7 33.4s-23.1 97.8-27.1 114.9c-8.1 34.1-1.2 75.9-.6 80.1.3 2.5 3.6 3.1 5 1.2 2.1-2.7 28.9-35.9 38.1-69 2.6-9.4 14.8-58 14.8-58 7.3 14 28.7 26.3 51.5 26.3 67.8 0 113.8-61.8 113.8-144.5-.1-62.6-53.1-120.8-133.6-120.8"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m419.6 168.6c-11.7 5.2-24.2 8.7-37.4 10.2 13.4-8.1 23.8-20.8 28.6-36-12.6 7.5-26.5 12.9-41.3 15.8-11.9-12.6-28.8-20.6-47.5-20.6-42 0-72.9 39.2-63.4 79.9-54.1-2.7-102.1-28.6-134.2-68-17 29.2-8.8 67.5 20.1 86.9-10.7-.3-20.7-3.3-29.5-8.1-.7 30.2 20.9 58.4 52.2 64.6-9.2 2.5-19.2 3.1-29.4 1.1 8.3 25.9 32.3 44.7 60.8 45.2-27.4 21.4-61.8 31-96.4 27 28.8 18.5 63 29.2 99.8 29.2 120.8 0 189.1-102.1 185-193.6 12.9-9.1 23.9-20.5 32.6-33.6"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#000000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#FFFFFF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#FFFFFF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#FFFFFF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
@@ -0,0 +1 @@
1
+ <svg fill="#FFFFFF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m1 21h22l-11-19-11 19m12-3h-2v-2h2v2m0-4h-2v-4h2v4"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 752 471" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#2557d6" x="1" width="750" height="471" rx="40"/><path d="m1 221.19h36.02l8.123-19.51h18.18l8.101 19.51h70.88v-14.915l6.327 14.98h36.796l6.327-15.202v15.14h176.15l-.082-32.03h3.408c2.386.083 3.083.302 3.083 4.226v27.8h91.11v-7.455c7.349 3.92 18.779 7.455 33.819 7.455h38.33l8.203-19.51h18.18l8.02 19.51h73.86v-18.532l11.186 18.532h59.19v-122.51h-58.58v14.468l-8.202-14.468h-60.11v14.468l-7.532-14.468h-81.19c-13.59 0-25.536 1.889-35.19 7.153v-7.153h-56.03v7.153c-6.14-5.426-14.508-7.153-23.812-7.153h-204.69l-13.734 31.641-14.1-31.641h-64.47v14.468l-7.083-14.468h-54.983l-25.534 58.25v64.26h.003m227.4-17.67h-21.614l-.08-68.794-30.573 68.793h-18.512l-30.652-68.854v68.854h-42.884l-8.101-19.592h-43.9l-8.183 19.592h-22.9l37.756-87.84h31.33l35.859 83.16v-83.16h34.412l27.593 59.59 25.347-59.59h35.1v87.84h.003zm-159.62-37.823l-14.43-35.02-14.35 35.02h28.78m245.64 37.821h-70.43v-87.84h70.43v18.291h-49.35v15.833h48.17v18h-48.17v17.542h49.35v18.17m99.26-64.18c0 14-9.386 21.24-14.856 23.412 4.613 1.748 8.553 4.838 10.43 7.397 2.976 4.369 3.49 8.271 3.49 16.12v17.255h-21.266l-.08-11.08c0-5.285.508-12.886-3.328-17.11-3.081-3.09-7.777-3.76-15.368-3.76h-22.633v31.95h-21.08v-87.84h48.5c10.775 0 18.714.283 25.53 4.207 6.67 3.924 10.67 9.652 10.67 19.45m-26.652 13.04c-2.898 1.752-6.324 1.81-10.43 1.81h-25.613v-19.51h25.962c3.674 0 7.508.164 9.998 1.584 2.735 1.28 4.427 4 4.427 7.765 0 3.84-1.61 6.929-4.344 8.351m60.47 51.14h-21.513v-87.84h21.513v87.84m249.74 0h-29.879l-39.964-65.927v65.927h-42.94l-8.204-19.592h-43.799l-7.96 19.592h-24.673c-10.248 0-23.22-2.257-30.572-9.715-7.41-7.458-11.265-17.56-11.265-33.533 0-13.03 2.304-24.936 11.366-34.35 6.816-7.01 17.49-10.242 32.02-10.242h20.412v18.821h-19.984c-7.694 0-12.04 1.14-16.224 5.203-3.594 3.699-6.06 10.69-6.06 19.897 0 9.41 1.878 16.196 5.797 20.628 3.245 3.476 9.144 4.53 14.694 4.53h9.469l29.716-69.08h31.592l35.696 83.08v-83.08h32.1l37.06 61.17v-61.17h21.596v87.83zm-128.16-37.82l-14.591-35.02-14.51 35.02h29.1m181.89 178.07c-5.121 7.458-15.1 11.239-28.611 11.239h-40.718v-18.84h40.553c4.02 0 6.837-.527 8.532-2.175a7.71 7.71 0 0 0 2.493 -5.73c0-2.56-1.024-4.592-2.575-5.81-1.53-1.341-3.757-1.95-7.429-1.95-19.797-.67-44.495.609-44.495-27.19 0-12.743 8.125-26.16 30.25-26.16h41.998v-17.48h-39.02c-11.776 0-20.33 2.808-26.388 7.174v-7.175h-57.716c-9.23 0-20.06 2.279-25.19 7.175v-7.175h-103.07v7.175c-8.203-5.892-22.04-7.175-28.431-7.175h-67.983v7.175c-6.49-6.258-20.92-7.175-29.716-7.175h-76.08l-17.41 18.763-16.307-18.763h-113.66v122.59h111.52l17.94-19.06 16.9 19.06 68.74.061v-28.838h6.757c9.12.14 19.878-.226 29.368-4.31v33.08h56.697v-31.952h2.735c3.49 0 3.834.143 3.834 3.616v28.333h172.23c10.935 0 22.365-2.787 28.695-7.845v7.845h54.632c11.369 0 22.471-1.587 30.918-5.651v-22.838m-341.5-47.15c0 24.406-18.286 29.445-36.716 29.445h-26.307v29.469h-40.98l-25.962-29.08-26.981 29.08h-83.52v-87.86h84.8l25.941 28.799 26.819-28.799h67.37c16.732 0 35.532 4.613 35.532 28.945m-167.62 40.43h-51.839v-17.481h46.29v-17.926h-46.29v-15.973h52.86l23.06 25.604-24.08 25.776m83.53 10.06l-32.37-35.788 32.37-34.651v70.44m47.873-39.07h-27.25v-22.374h27.492c7.612 0 12.896 3.09 12.896 10.773 0 7.598-5.04 11.601-13.14 11.601zm142.74-40.37h70.37v18.17h-49.37v15.973h48.17v17.925h-48.17v17.481l49.37.08v18.23h-70.37v-87.86m-27.05 47.03c4.693 1.724 8.53 4.816 10.329 7.375 2.977 4.29 3.408 8.293 3.493 16.04v17.417h-21.17v-10.992c0-5.286.511-13.11-3.408-17.198-3.08-3.147-7.777-3.9-15.468-3.9h-22.533v32.09h-21.19v-87.86h48.678c10.674 0 18.448.47 25.369 4.146 6.654 4 10.839 9.488 10.839 19.51-.003 14.02-9.395 21.18-14.945 23.373zm-11.917-11.11c-2.82 1.667-6.308 1.81-10.41 1.81h-25.614v-19.733h25.962c3.754 0 7.51.08 10.06 1.587 2.732 1.423 4.366 4.144 4.366 7.903 0 3.76-1.634 6.788-4.366 8.433m190.34 5.597c4.106 4.23 6.306 9.572 6.306 18.614 0 18.9-11.858 27.723-33.12 27.723h-41.06v-18.84h40.9c4 0 6.836-.527 8.613-2.175 1.45-1.359 2.49-3.333 2.49-5.73 0-2.56-1.125-4.592-2.573-5.81-1.612-1.34-3.836-1.95-7.508-1.95-19.717-.67-44.41.61-44.41-27.19 0-12.744 8.04-26.16 30.14-26.16h42.27v18.7h-38.677c-3.834 0-6.327.143-8.447 1.587-2.31 1.422-3.166 3.534-3.166 6.32 0 3.315 1.96 5.57 4.613 6.545 2.224.77 4.613.996 8.205.996l11.35.305c11.446.278 19.303 2.249 24.08 7.07m83.66-23.52h-38.427c-3.836 0-6.385.143-8.532 1.587-2.224 1.423-3.081 3.534-3.081 6.322 0 3.314 1.878 5.569 4.61 6.544 2.225.77 4.614.996 8.126.996l11.427.304c11.531.284 19.228 2.258 23.921 7.07.855.67 1.368 1.422 1.956 2.175v-25" fill="#fff"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 750 471" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#0079be" width="750" height="471" rx="40"/><path d="m584.93 237.95c0-99.42-82.981-168.13-173.89-168.1h-78.24c-92-.033-167.73 68.71-167.73 168.1 0 90.93 75.73 165.64 167.73 165.2h78.24c90.91.436 173.89-74.29 173.89-165.2" fill="#fff"/><path d="m333.28 83.93c-84.07.027-152.19 68.31-152.21 152.58.02 84.26 68.14 152.53 152.21 152.56 84.09-.027 152.23-68.3 152.24-152.56-.012-84.27-68.15-152.55-152.24-152.58" fill="#0079be"/><path d="m237.07 236.1c.08-41.18 25.746-76.3 61.94-90.25v180.48c-36.19-13.947-61.861-49.04-61.94-90.23m131 90.28v-180.53c36.21 13.92 61.914 49.06 61.98 90.26-.066 41.21-25.773 76.32-61.98 90.27" fill="#fff"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 780 501"><g fill="none" fill-rule="evenodd"><path fill="#4d4d4d" d="m54.992 0c-30.365 0-54.992 24.63-54.992 55v390.99c0 30.38 24.619 55 54.992 55h670.02c30.365 0 54.992-24.63 54.992-55v-390.99c0-30.38-24.619-55-54.992-55h-670.02"/><path fill="#fff" d="m327.15 161.89c8.837 0 16.248 1.784 25.27 6.09v22.751c-8.544-7.863-15.955-11.154-25.756-11.154-19.264 0-34.414 15.02-34.414 34.05 0 20.07 14.681 34.2 35.37 34.2 9.312 0 16.586-3.12 24.8-10.857v22.763c-9.341 4.14-16.911 5.776-25.756 5.776-31.28 0-55.58-22.596-55.58-51.737 0-28.826 24.951-51.878 56.07-51.878m-97.11.627c11.546 0 22.11 3.72 30.943 10.994l-10.748 13.248c-5.35-5.646-10.41-8.03-16.564-8.03-8.853 0-15.3 4.745-15.3 10.989 0 5.354 3.619 8.188 15.944 12.482 23.365 8.04 30.29 15.176 30.29 30.926 0 19.19-14.976 32.553-36.32 32.553-15.63 0-26.994-5.795-36.458-18.872l13.268-12.03c4.73 8.61 12.622 13.222 22.42 13.222 9.163 0 15.947-5.952 15.947-13.984 0-4.164-2.055-7.734-6.158-10.258-2.066-1.195-6.158-2.977-14.2-5.647-19.291-6.538-25.91-13.527-25.91-27.19 0-16.225 14.214-28.41 32.846-28.41m234.72 1.728h22.437l28.08 66.59 28.446-66.59h22.267l-45.49 101.69h-11.05l-44.687-101.69m-397.35.152h30.15c33.31 0 56.53 20.382 56.53 49.641 0 14.59-7.104 28.696-19.12 38.06-10.11 7.901-21.626 11.445-37.574 11.445h-29.992v-99.14m96.13 0h20.54v99.14h-20.54v-99.14m411.73 0h58.25v16.8h-37.725v22h36.34v16.791h-36.34v26.762h37.726v16.785h-58.25v-99.14zm71.858 0h30.455c23.69 0 37.26 10.71 37.26 29.27 0 15.18-8.514 25.14-23.986 28.1l33.15 41.766h-25.26l-28.429-39.828h-2.678v39.828h-20.515v-99.14m20.515 15.616v30.03h6c13.12 0 20.07-5.362 20.07-15.328 0-9.648-6.954-14.697-19.745-14.697h-6.326m-579.72 1.183v65.56h5.512c13.273 0 21.656-2.394 28.11-7.88 7.103-5.955 11.376-15.465 11.376-24.98 0-9.499-4.273-18.725-11.376-24.681-6.785-5.78-14.837-8.02-28.11-8.02h-5.512"/><path fill="#f47216" d="m415.13 161.21c30.941 0 56.02 23.58 56.02 52.709v.033c0 29.13-25.08 52.742-56.02 52.742s-56.02-23.613-56.02-52.742v-.033c0-29.13 25.08-52.71 56.02-52.71m364.85 127.15c-26.05 18.33-221.08 149.34-558.75 212.62h503.76c30.365 0 54.992-24.63 54.992-55v-157.62"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 750 471" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#000" width="750" height="471" rx="40"/><path d="m434.01 235.5c0 99.14-80.37 179.5-179.51 179.5s-179.5-80.36-179.5-179.5c0-99.13 80.36-179.5 179.5-179.5 99.14 0 179.51 80.37 179.51 179.5" fill="#d9222a"/><path d="m495.49 55.996c-46.38 0-88.64 17.596-120.5 46.47a182.43 182.43 0 0 0 -18.125 18.996h36.27a181.8 181.8 0 0 1 13.684 19.013h-63.63a178.716 178.716 0 0 0 -10.341 19.008h84.31a179.19 179.19 0 0 1 7.6 19.004h-99.51a177.294 177.294 0 0 0 -5.217 19.009h109.94a180.428 180.428 0 0 1 4.041 38.008c0 19.933-3.254 39.11-9.254 57.02h-99.51a177.651 177.651 0 0 0 7.595 19.01h84.32a179.97 179.97 0 0 1 -10.346 19.012h-63.62c4.154 6.629 8.73 12.979 13.684 18.996h36.26a179.297 179.297 0 0 1 -18.13 19.012c31.86 28.867 74.12 46.45 120.5 46.45 99.14 0 179.51-80.36 179.51-179.5 0-99.13-80.37-179.5-179.51-179.5" fill="#ee9f2d"/><path d="m651.08 335.56c0-3.2 2.592-5.8 5.796-5.8s5.796 2.6 5.796 5.8c0 3.2-2.592 5.8-5.796 5.8a5.798 5.798 0 0 1 -5.796 -5.8m5.796 4.409a4.41 4.41 0 0 0 4.408 -4.409 4.404 4.404 0 0 0 -4.408 -4.404 4.398 4.398 0 0 0 -4.404 4.404 4.404 4.404 0 0 0 4.404 4.409m-.783-1.859h-1.188v-5.095h2.15c.45 0 .908 0 1.304.254.413.279.646.77.646 1.279 0 .57-.337 1.104-.883 1.312l.937 2.25h-1.316l-.78-2.02h-.87v2.02m0-2.891h.658c.246 0 .504.02.725-.1.196-.125.296-.359.296-.584 0-.195-.121-.42-.288-.516-.208-.13-.537-.1-.758-.1h-.633v1.3m-443.5-80.06c-2.045-.237-2.945-.3-4.35-.3-11.04 0-16.637 3.788-16.637 11.267 0 4.612 2.73 7.546 6.987 7.546 7.938 0 13.659-7.559 14-18.513m14.171 32.996h-16.15l.371-7.675c-4.925 6.067-11.496 8.95-20.425 8.95-10.562 0-17.804-8.25-17.804-20.23 0-18.02 12.596-28.54 34.22-28.54 2.208 0 5.04.2 7.941.57.605-2.442.763-3.487.763-4.8 0-4.908-3.396-6.738-12.5-6.738-9.533-.108-17.396 2.271-20.625 3.334.204-1.23 2.7-16.658 2.7-16.658 9.712-2.846 16.12-3.917 23.325-3.917 16.733 0 25.596 7.512 25.58 21.712.032 3.805-.597 8.5-1.58 14.671-1.692 10.73-5.32 33.717-5.817 39.32m-62.16 0h-19.488l11.163-69.996-24.925 69.996h-13.28l-1.64-69.6-11.734 69.6h-18.242l15.238-91.05h28.02l1.7 50.967 17.09-50.967h31.17l-15.07 91.05m354.98-32.996c-2.037-.237-2.942-.3-4.342-.3-11.04 0-16.633 3.788-16.633 11.267 0 4.612 2.725 7.546 6.983 7.546 7.938 0 13.663-7.559 13.992-18.513zm14.183 32.996h-16.14l.366-7.675c-4.925 6.067-11.5 8.95-20.42 8.95-10.567 0-17.8-8.25-17.8-20.23 0-18.02 12.587-28.54 34.21-28.54 2.208 0 5.04.2 7.933.57.604-2.442.763-3.487.763-4.8 0-4.908-3.392-6.738-12.496-6.738-9.533-.108-17.388 2.271-20.63 3.334.205-1.23 2.709-16.658 2.709-16.658 9.713-2.846 16.11-3.917 23.313-3.917 16.741 0 25.604 7.512 25.587 21.712.033 3.805-.596 8.5-1.58 14.671-1.682 10.73-5.32 33.717-5.812 39.32m-220.39-1.125c-5.334 1.68-9.492 2.4-14 2.4-9.963 0-15.4-5.725-15.4-16.267-.142-3.27 1.433-11.879 2.67-19.737 1.125-6.917 8.45-50.53 8.45-50.53h19.371l-2.262 11.209h11.7l-2.642 17.796h-11.742c-2.25 14.08-5.454 31.625-5.491 33.95 0 3.817 2.037 5.483 6.67 5.483 2.221 0 3.942-.225 5.255-.7l-2.58 16.396m59.39-.6c-6.654 2.033-13.07 3.02-19.879 3-21.683-.02-32.987-11.346-32.987-33.03 0-25.313 14.379-43.946 33.9-43.946 15.97 0 26.17 10.433 26.17 26.796 0 5.429-.7 10.729-2.387 18.212h-38.575c-1.304 10.742 5.57 15.217 16.837 15.217 6.934 0 13.188-1.43 20.14-4.663l-3.22 18.417zm-10.887-43.9c.108-1.542 2.054-13.217-9.01-13.217-6.17 0-10.583 4.704-12.379 13.217h21.392m-123.42-5.02c0 9.367 4.541 15.825 14.841 20.675 7.892 3.709 9.113 4.809 9.113 8.171 0 4.617-3.48 6.7-11.192 6.7-5.812 0-11.22-.908-17.458-2.92 0 0-2.563 16.32-2.68 17.1 4.43.966 8.38 1.862 20.28 2.191 20.562 0 30.06-7.83 30.06-24.75 0-10.175-3.975-16.15-13.737-20.633-8.171-3.75-9.109-4.588-9.109-8.05 0-4 3.238-6.05 9.538-6.05 3.825 0 9.05.408 14 1.113l2.775-17.18c-5.05-.8-12.696-1.442-17.15-1.442-21.8 0-29.346 11.387-29.28 25.06m229.09-23.12c5.413 0 10.459 1.42 17.413 4.92l3.187-19.762c-2.854-1.12-12.904-7.7-21.416-7.7-13.04 0-24.07 6.47-31.821 17.15-11.309-3.746-15.959 3.825-21.659 11.367l-5.062 1.179c.383-2.483.73-4.95.613-7.446h-17.896c-2.446 22.917-6.78 46.13-10.171 69.08l-.884 4.975h19.496c3.254-21.14 5.04-34.68 6.121-43.842l7.342-4.083c1.096-4.08 4.529-5.458 11.416-5.292a82.966 82.966 0 0 0 -1.383 15.184c0 24.22 13.07 39.31 34.05 39.31 5.404 0 10.04-.712 17.221-2.658l3.43-20.759c-6.46 3.18-11.76 4.675-16.56 4.675-11.328 0-18.18-8.362-18.18-22.18 0-20.05 10.196-34.11 24.746-34.11" fill="#000"/><path d="m170.21 282.74h-19.491l11.17-69.988-24.925 69.988h-13.282l-1.642-69.59-11.733 69.59h-18.243l15.238-91.04h28.02l.788 56.36 18.904-56.36h30.27l-15.07 91.04" fill="#fff"/><path d="m632.52 197.1l-4.32 26.308c-5.33-7.01-11.05-12.09-18.612-12.09-9.834 0-18.784 7.454-24.642 18.425-8.158-1.692-16.596-4.563-16.596-4.563l-.004.067c.658-6.133.92-9.875.862-11.146h-17.9c-2.437 22.917-6.77 46.13-10.158 69.07l-.892 4.975h19.492c2.633-17.1 4.65-31.29 6.133-42.55 6.659-6.02 9.992-11.267 16.721-10.917-2.979 7.205-4.725 15.505-4.725 24.02 0 18.513 9.367 30.725 23.534 30.725 7.141 0 12.62-2.462 17.966-8.17l-.912 6.883h18.433l14.842-91.04h-19.222m-24.37 73.942c-6.633 0-9.983-4.909-9.983-14.596 0-14.554 6.27-24.875 15.11-24.875 6.696 0 10.321 5.104 10.321 14.508 0 14.68-6.37 24.963-15.45 24.963" fill="#000"/><path d="m218.19 249.76c-2.042-.237-2.946-.3-4.346-.3-11.05 0-16.634 3.788-16.634 11.267 0 4.604 2.73 7.546 6.98 7.546 7.945 0 13.666-7.558 14-18.513m14.179 32.984h-16.15l.367-7.663c-4.921 6.05-11.5 8.95-20.421 8.95-10.567 0-17.804-8.25-17.804-20.229 0-18.03 12.591-28.542 34.22-28.542 2.209 0 5.04.2 7.938.571.604-2.442.762-3.487.762-4.808 0-4.908-3.391-6.73-12.496-6.73-9.537-.108-17.395 2.272-20.629 3.322.204-1.226 2.7-16.638 2.7-16.638 9.709-2.858 16.12-3.93 23.321-3.93 16.738 0 25.604 7.518 25.588 21.705.029 3.82-.605 8.512-1.584 14.675-1.687 10.725-5.32 33.725-5.812 39.32m261.38-88.59l-3.192 19.767c-6.95-3.496-12-4.921-17.408-4.921-14.55 0-24.75 14.06-24.75 34.11 0 13.821 6.858 22.18 18.18 22.18 4.8 0 10.1-1.492 16.554-4.676l-3.42 20.75c-7.184 1.959-11.817 2.671-17.226 2.671-20.975 0-34.05-15.08-34.05-39.31 0-32.55 18.06-55.3 43.888-55.3 8.508 0 18.563 3.608 21.42 4.729m31.443 55.608c-2.042-.237-2.942-.3-4.346-.3-11.04 0-16.634 3.788-16.634 11.267 0 4.604 2.73 7.546 6.984 7.546 7.937 0 13.662-7.558 13.996-18.513zm14.179 32.984h-16.15l.37-7.663c-4.924 6.05-11.5 8.95-20.42 8.95-10.563 0-17.804-8.25-17.804-20.229 0-18.03 12.595-28.542 34.21-28.542 2.213 0 5.04.2 7.942.571.6-2.442.762-3.487.762-4.808 0-4.908-3.391-6.73-12.496-6.73-9.533-.108-17.395 2.272-20.629 3.322.204-1.226 2.704-16.638 2.704-16.638 9.709-2.858 16.12-3.93 23.317-3.93 16.742 0 25.604 7.518 25.583 21.705.034 3.82-.595 8.512-1.579 14.675-1.683 10.725-5.325 33.725-5.812 39.32m-220.39-1.122c-5.338 1.68-9.496 2.41-14 2.41-9.963 0-15.4-5.726-15.4-16.267-.138-3.28 1.437-11.88 2.675-19.738 1.12-6.925 8.446-50.53 8.446-50.53h19.366l-2.258 11.212h9.942l-2.646 17.788h-9.975c-2.25 14.09-5.463 31.62-5.496 33.95 0 3.829 2.042 5.483 6.671 5.483 2.22 0 3.937-.217 5.254-.692l-2.579 16.388m59.39-.591c-6.65 2.033-13.08 3.01-19.88 3-21.683-.022-32.987-11.347-32.987-33.03 0-25.321 14.38-43.95 33.9-43.95 15.97 0 26.17 10.429 26.17 26.8 0 5.433-.7 10.733-2.382 18.212h-38.575c-1.305 10.742 5.57 15.221 16.837 15.221 6.93 0 13.188-1.433 20.14-4.675l-3.22 18.425zm-10.892-43.913c.117-1.538 2.058-13.217-9.01-13.217-6.166 0-10.579 4.717-12.375 13.217h21.388m-123.42-5c0 9.366 4.542 15.816 14.842 20.675 7.891 3.708 9.112 4.812 9.112 8.17 0 4.617-3.483 6.7-11.187 6.7-5.817 0-11.225-.908-17.467-2.92 0 0-2.554 16.32-2.67 17.1 4.42.966 8.374 1.85 20.274 2.191 20.567 0 30.06-7.829 30.06-24.746 0-10.179-3.971-16.15-13.738-20.637-8.167-3.758-9.112-4.583-9.112-8.05 0-4 3.245-6.06 9.541-6.06 3.821 0 9.05.42 14 1.125l2.771-17.18c-5.04-.8-12.691-1.441-17.15-1.441-21.804 0-29.345 11.379-29.28 25.07m398.45 50.629h-18.437l.917-6.892c-5.346 5.717-10.825 8.18-17.967 8.18-14.167 0-23.53-12.213-23.53-30.726 0-24.629 14.522-45.39 31.709-45.39 7.558 0 13.28 3.088 18.604 10.1l4.325-26.308h19.221l-14.842 91.04zm-28.745-17.11c9.08 0 15.45-10.283 15.45-24.954 0-9.404-3.63-14.508-10.325-14.508-8.838 0-15.12 10.317-15.12 24.875 0 9.687 3.358 14.587 9.992 14.587m-56.843-56.929c-2.44 22.917-6.774 46.13-10.162 69.06l-.891 4.975h19.491c6.971-45.28 8.659-54.12 19.588-53.01 1.742-9.266 4.983-17.383 7.4-21.479-8.163-1.7-12.721 2.913-18.688 11.675.471-3.787 1.334-7.466 1.163-11.225h-17.9m-160.42 0c-2.446 22.917-6.78 46.13-10.167 69.06l-.887 4.975h19.5c6.962-45.28 8.646-54.12 19.57-53.01 1.75-9.266 4.992-17.383 7.4-21.479-8.154-1.7-12.716 2.913-18.678 11.675.47-3.787 1.325-7.466 1.162-11.225h-17.9m254.57 68.24c0-3.213 2.596-5.8 5.796-5.8a5.79 5.79 0 0 1 5.795 5.8 5.797 5.797 0 0 1 -5.795 5.796 5.8 5.8 0 0 1 -5.796 -5.796zm5.796 4.404a4.403 4.403 0 0 0 4.404 -4.404 4.404 4.404 0 0 0 -4.404 -4.408 4.41 4.41 0 0 0 -4.409 4.408 4.41 4.41 0 0 0 4.409 4.404m-.784-1.87h-1.187v-5.084h2.154c.446 0 .908.008 1.296.254.416.283.654.767.654 1.275 0 .575-.338 1.113-.888 1.317l.942 2.237h-1.32l-.78-2.01h-.87v2.01m-.001-2.879h.654c.246 0 .513.017.73-.1.195-.125.295-.362.295-.587a.677 .677 0 0 0 -.287 -.525c-.204-.117-.542-.084-.763-.084h-.629v1.296" fill="#fff"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 750 471" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect fill="#0e4595" width="750" height="471" rx="40"/><path d="m278.2 334.23l33.36-195.76h53.36l-33.385 195.76h-53.34m246.11-191.54c-10.572-3.966-27.14-8.222-47.823-8.222-52.725 0-89.87 26.55-90.18 64.6-.298 28.13 26.513 43.822 46.753 53.19 20.77 9.594 27.752 15.714 27.654 24.283-.132 13.12-16.587 19.12-31.923 19.12-21.357 0-32.703-2.966-50.23-10.276l-6.876-3.111-7.49 43.824c12.464 5.464 35.51 10.198 59.44 10.443 56.09 0 92.5-26.25 92.92-66.882.2-22.268-14.02-39.22-44.8-53.19-18.65-9.06-30.07-15.1-29.951-24.268 0-8.137 9.667-16.839 30.556-16.839 17.45-.27 30.09 3.535 39.937 7.5l4.781 2.26 7.234-42.43m137.31-4.222h-41.23c-12.774 0-22.332 3.487-27.942 16.234l-79.25 179.4h56.03s9.161-24.12 11.233-29.418c6.124 0 60.55.084 68.34.084 1.596 6.853 6.491 29.334 6.491 29.334h49.51l-43.19-195.64zm-65.42 126.41c4.413-11.279 21.26-54.723 21.26-54.723-.316.522 4.38-11.334 7.08-18.684l3.606 16.879s10.217 46.728 12.352 56.53h-44.29m-363.29-126.41l-52.24 133.5-5.567-27.13c-9.725-31.27-40.03-65.16-73.898-82.12l47.766 171.2 56.46-.065 84-195.39h-56.52" fill="#fff"/><path d="m131.92 138.47h-86.04l-.681 4.073c66.938 16.204 111.23 55.36 129.62 102.41l-18.71-89.96c-3.23-12.395-12.597-16.09-24.19-16.526" fill="#f2ae14"/></g></svg>
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @external jQuery
3
+ */
4
+
5
+ /**
6
+ * @method
7
+ * @name categorizedAutocomplete
8
+ * @memberof external:jQuery
9
+ */
10
+ $.widget('workarea.categorizedAutocomplete', $.ui.autocomplete, {
11
+ _create: function () {
12
+ 'use strict';
13
+
14
+ this._super();
15
+
16
+ this.widget().menu(
17
+ 'option', 'items', '> :not(.ui-menu-heading)'
18
+ );
19
+ },
20
+
21
+ _renderItem: function ($ul, item) {
22
+ 'use strict';
23
+
24
+ var itemTemplate = JST['workarea/storefront/templates/ui_menu_item'];
25
+
26
+ return $(itemTemplate({ label: item.label, image: item.image })).appendTo($ul);
27
+ },
28
+
29
+ _renderMenu: function ($ul, items) {
30
+ 'use strict';
31
+
32
+ var widget = this,
33
+ categories = _.uniq(_.map(items, 'type')),
34
+ itemsByCategory = _.groupBy(items, 'type'),
35
+ categoryHeaderTemplate = JST['workarea/storefront/templates/ui_menu_heading'],
36
+
37
+ renderCategoryItem = function (item) {
38
+ widget._renderItemData($ul, item);
39
+ },
40
+
41
+ renderCategory = function (category) {
42
+ $ul.append(categoryHeaderTemplate({
43
+ categoryName: category
44
+ }));
45
+
46
+ _.forEach(
47
+ itemsByCategory[category], renderCategoryItem
48
+ );
49
+ };
50
+
51
+ _.forEach(categories, renderCategory);
52
+ }
53
+ });
@@ -0,0 +1,162 @@
1
+ <%
2
+ # Service Worker Registrations
3
+ %w(
4
+ workarea/storefront/serviceworkers/register_pwa_cache
5
+ ).each do |asset|
6
+ require_asset asset unless Rails.env.development?
7
+ end
8
+
9
+ # Plugin Service Worker Registrations
10
+ append_javascripts('storefront.serviceworker_registrations')
11
+
12
+ # Library Dependencies
13
+ %w(
14
+ webcomponentsjs-rails/MutationObserver
15
+ i18n
16
+ i18n/translations
17
+ local_time
18
+ lodash
19
+ jquery3
20
+ jquery-ui/core
21
+ jquery-ui/widget
22
+ jquery-ui/position
23
+ jquery-ui/widgets/mouse
24
+ jquery-ui/widgets/draggable
25
+ jquery-ui/widgets/resizable
26
+ jquery-ui/widgets/autocomplete
27
+ jquery-ui/widgets/button
28
+ jquery-ui/widgets/dialog
29
+ jquery-ui/widgets/menu
30
+ jquery.validate
31
+ jquery.validate.additional-methods
32
+ waypoints/noframework.waypoints
33
+ waypoints/shortcuts/sticky
34
+ jquery-unique-clone
35
+ jquery_ujs
36
+ ).each do |asset|
37
+ require_asset asset
38
+ end
39
+
40
+ # Plugin Library Dependencies
41
+ append_javascripts('storefront.dependencies')
42
+
43
+ # JST Templates
44
+ %w(
45
+ workarea/core/templates/lorem_ipsum_view
46
+ workarea/core/templates/reveal_password_button
47
+ workarea/storefront/templates/ui_menu_heading
48
+ workarea/storefront/templates/ui_menu_item
49
+ workarea/storefront/templates/loading
50
+ workarea/storefront/templates/message
51
+ workarea/storefront/templates/message_dismiss_action
52
+ workarea/storefront/templates/button
53
+ workarea/storefront/templates/same_as_shipping_button_property
54
+ workarea/storefront/templates/saved_addresses_property
55
+ workarea/storefront/templates/log_out_link
56
+ workarea/storefront/templates/page_header_cart_count
57
+ workarea/storefront/templates/pagination_button
58
+ workarea/storefront/templates/back_to_top_button
59
+ workarea/storefront/templates/authenticity_token
60
+ workarea/storefront/templates/mobile_filters_nav_close_button
61
+ workarea/storefront/templates/optional_field_prompt
62
+ ).each do |asset|
63
+ require_asset asset
64
+ end
65
+
66
+ # Plugin JST Templates
67
+ append_javascripts('storefront.templates')
68
+
69
+ # Library Extensions
70
+ %w(
71
+ jquery_ui/storefront/categorized_autocomplete
72
+ ).each do |asset|
73
+ require_asset asset
74
+ end
75
+
76
+ # Workarea Module Controller
77
+ require_asset 'workarea/core/workarea'
78
+
79
+ # Configuration
80
+ %w(
81
+ workarea/core/config
82
+ workarea/storefront/config
83
+ ).each do |asset|
84
+ require_asset asset
85
+ end
86
+
87
+ # Plugin Configuration
88
+ append_javascripts('storefront.config')
89
+
90
+ # Routing
91
+ %w(
92
+ workarea/core/routes
93
+ workarea/storefront/routes
94
+ ).each do |asset|
95
+ require_asset asset
96
+ end
97
+
98
+ # Modules
99
+ %w(
100
+ workarea/core/modules/transition_events
101
+ workarea/core/modules/environment
102
+ workarea/core/modules/cookie
103
+ workarea/core/modules/string
104
+ workarea/core/modules/url
105
+ workarea/core/modules/image
106
+ workarea/core/modules/deletion_forms
107
+ workarea/core/modules/form_submitting_controls
108
+ workarea/core/modules/jquery
109
+ workarea/core/modules/style_guide_empty_links
110
+ workarea/core/modules/style_guide_autocomplete_fields
111
+ workarea/core/modules/reveal_password
112
+ workarea/core/modules/local_time
113
+ workarea/storefront/modules/forms
114
+ workarea/storefront/modules/authenticity_token
115
+ workarea/storefront/modules/dialog
116
+ workarea/storefront/modules/dialog_buttons
117
+ workarea/storefront/modules/dialog_forms
118
+ workarea/storefront/modules/dialog_close_buttons
119
+ workarea/storefront/modules/loading
120
+ workarea/storefront/modules/messages
121
+ workarea/storefront/modules/pagination
122
+ workarea/storefront/modules/current_user
123
+ workarea/storefront/modules/break_points
124
+ workarea/storefront/modules/primary_nav_content
125
+ workarea/storefront/modules/product_details_sku_selects
126
+ workarea/storefront/modules/popup_buttons
127
+ workarea/storefront/modules/search_fields
128
+ workarea/storefront/modules/alternate_image_buttons
129
+ workarea/storefront/modules/scroll_to_buttons
130
+ workarea/storefront/modules/address_region_fields
131
+ workarea/storefront/modules/checkout_addresses_forms
132
+ workarea/storefront/modules/checkout_shipping_services
133
+ workarea/storefront/modules/checkout_primary_payments
134
+ workarea/storefront/modules/single_submit_forms
135
+ workarea/storefront/modules/log_out_link_placeholders
136
+ workarea/storefront/modules/admin_toolbar
137
+ workarea/storefront/modules/analytics
138
+ workarea/storefront/modules/cart_count
139
+ workarea/storefront/modules/recommendations_placeholders
140
+ workarea/storefront/modules/recent_views
141
+ workarea/storefront/modules/workarea_analytics
142
+ workarea/storefront/modules/mobile_nav_button
143
+ workarea/storefront/modules/back_to_top_button
144
+ workarea/storefront/modules/mobile_filter_buttons
145
+ workarea/storefront/modules/option_buttons
146
+ workarea/storefront/modules/optional_fields
147
+ workarea/storefront/modules/traffic_referrer
148
+ ).each do |asset|
149
+ require_asset asset
150
+ end
151
+
152
+ # Development Utilities
153
+ if Rails.env.test? || Rails.env.development?
154
+ require_asset 'workarea/core/modules/duplicate_id'
155
+ end
156
+
157
+ # Plugin Modules
158
+ append_javascripts('storefront.modules')
159
+ %>
160
+
161
+ // Initialize all modules
162
+ WORKAREA.initModules($(document));
@@ -0,0 +1,153 @@
1
+ /**
2
+ * @namespace WORKAREA
3
+ */
4
+
5
+ (function () {
6
+ 'use strict';
7
+
8
+ /**
9
+ * @namespace WORKAREA.config
10
+ * @property {object} breakPoints
11
+ * @property {object} dialog
12
+ * @property {object} loading
13
+ * @property {object} searchFieldsAutocomplete
14
+ * @property {object} popupButtons
15
+ * @property {object} deletionForms
16
+ * @property {object} creditCardNumberWhiteList
17
+ * @property {object} messages
18
+ * @property {object} scrollToButtons
19
+ * @property {object} pagination
20
+ * @property {object} forms
21
+ * @property {object} backToTopButton
22
+ */
23
+ WORKAREA.config.storefrontBreakPoints = {
24
+ // Store front breakpoints are configured in workarea/core/configuration.rb
25
+ sizes: {
26
+ <% Workarea.config.storefront_break_points.each do |name, size| %>
27
+ '<%= name %>': <%= size %>,
28
+ <% end %>
29
+ },
30
+
31
+ ie9Matches: [
32
+ 'small',
33
+ 'medium',
34
+ 'wide'
35
+ ]
36
+ };
37
+
38
+ WORKAREA.config.dialog = {
39
+ options: {
40
+ initModules: true,
41
+
42
+ uiDialogOptions: {
43
+ width: 'auto'
44
+ }
45
+ },
46
+
47
+ viewportBuffer: 5,
48
+
49
+ errorTemplate: {
50
+ path: 'workarea/storefront/templates/message',
51
+ data: {
52
+ messageModifier: 'error',
53
+ messageType: I18n.t('workarea.messages.error'),
54
+ messageText: I18n.t('workarea.messages.generic_error_text')
55
+ }
56
+ }
57
+ };
58
+
59
+ WORKAREA.config.loading = {
60
+ loadingDialogTemplate: {
61
+ path: 'workarea/storefront/templates/loading',
62
+ data: {
63
+ cssModifiers: ''
64
+ }
65
+ },
66
+
67
+ loadingDialogOptions: {
68
+ uiDialogOptions: {
69
+ width: 200,
70
+ minHeight: 10,
71
+ dialogClass: 'ui-dialog-loading'
72
+ }
73
+ },
74
+
75
+ loadingIndicatorTemplate: 'workarea/storefront/templates/loading',
76
+
77
+ loadingIndicatorOptions: {
78
+ delay: 300,
79
+ container: document.body,
80
+ insertionMethod: 'appendTo',
81
+ cssModifiers: ''
82
+ }
83
+ };
84
+
85
+ WORKAREA.config.searchFieldsAutocomplete = {
86
+ minLength: 2
87
+ };
88
+
89
+ WORKAREA.config.popupButtons = {
90
+ width: 768,
91
+ height: 480
92
+ };
93
+
94
+ WORKAREA.config.deletionForms = {
95
+ message: I18n.t('workarea.storefront.forms.confirmation_alert')
96
+ };
97
+
98
+ WORKAREA.config.creditCardNumberWhiteList = ['1', '2', '3'];
99
+
100
+ WORKAREA.config.messages = {
101
+ delay: 4000
102
+ };
103
+
104
+ WORKAREA.config.scrollToButtons = {
105
+ animationSpeed: 500,
106
+ topOffset: 40
107
+ };
108
+
109
+ WORKAREA.config.pagination = {
110
+ pagesToLoad: 5
111
+ };
112
+
113
+ WORKAREA.config.forms = {
114
+ errorLabelClasses: 'value__error'
115
+ };
116
+
117
+ WORKAREA.config.backToTopButton = {
118
+ waypointOffset: '-50%'
119
+ };
120
+
121
+ WORKAREA.config.checkoutShippingServices = {
122
+ requestTimeout: <%= Rails.env.test? ? '0' : '1' %>
123
+ }
124
+
125
+ /**
126
+ * jQuery Validation
127
+ */
128
+
129
+ $.validator.setDefaults({
130
+ meta: 'validation',
131
+ ignoreTitle: true,
132
+ errorClass: 'jquery-validation-error',
133
+ validClass: 'jquery-validation-valid',
134
+ });
135
+
136
+ $.extend($.validator.messages, I18n.t('validate'));
137
+
138
+ WORKAREA.config.validationErrorAnalyticsThrottle = 1000;
139
+
140
+ $.validator.addMethod('extendedCreditCard', function (value, element) {
141
+ if (_.includes(WORKAREA.config.creditCardNumberWhiteList, value)) {
142
+ return true;
143
+ } else {
144
+ return $.validator.methods.creditcard.call(this, value, element);
145
+ }
146
+ });
147
+
148
+ $.validator.addMethod('email', function (value, element) {
149
+ var re = /^[A-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[A-Z0-9-]+(\.[A-Z0-9-]+)+$/gi;
150
+
151
+ return this.optional(element) || re.test(value);
152
+ });
153
+ })();