MyCommerceapi 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4055) hide show
  1. data/Gemfile +37 -0
  2. data/INSTALL +23 -0
  3. data/README.md +130 -0
  4. data/Rakefile +154 -0
  5. data/api/Gemfile +36 -0
  6. data/api/Gemfile.lock +252 -0
  7. data/api/LICENSE +26 -0
  8. data/api/README.md +16 -0
  9. data/api/Rakefile +53 -0
  10. data/api/app/controllers/admin/users_controller_decorator.rb +19 -0
  11. data/api/app/controllers/api/adjustments_controller.rb +13 -0
  12. data/api/app/controllers/api/base_controller.rb +183 -0
  13. data/api/app/controllers/api/checkout1_controller.rb +89 -0
  14. data/api/app/controllers/api/countries_controller.rb +3 -0
  15. data/api/app/controllers/api/images_controller.rb +15 -0
  16. data/api/app/controllers/api/inventory_units_controller.rb +19 -0
  17. data/api/app/controllers/api/line_items_controller.rb +37 -0
  18. data/api/app/controllers/api/mail_methods_controller.rb +10 -0
  19. data/api/app/controllers/api/option_types_controller.rb +24 -0
  20. data/api/app/controllers/api/orders_controller.rb +51 -0
  21. data/api/app/controllers/api/overview_controller.rb +132 -0
  22. data/api/app/controllers/api/payment_methods_controller.rb +24 -0
  23. data/api/app/controllers/api/payments_controller.rb +3 -0
  24. data/api/app/controllers/api/product_groups_controller.rb +14 -0
  25. data/api/app/controllers/api/products_controller.rb +14 -0
  26. data/api/app/controllers/api/promotions_controller.rb +14 -0
  27. data/api/app/controllers/api/properties_controller.rb +26 -0
  28. data/api/app/controllers/api/prototypes_controller.rb +24 -0
  29. data/api/app/controllers/api/reports_controller.rb +8 -0
  30. data/api/app/controllers/api/shipments_controller.rb +37 -0
  31. data/api/app/controllers/api/shipping_categories_controller.rb +13 -0
  32. data/api/app/controllers/api/shipping_methods_controller.rb +24 -0
  33. data/api/app/controllers/api/states_controller.rb +8 -0
  34. data/api/app/controllers/api/tax_categories_controller.rb +24 -0
  35. data/api/app/controllers/api/tax_rates_controller.rb +24 -0
  36. data/api/app/controllers/api/taxonomies_controller.rb +12 -0
  37. data/api/app/controllers/api/taxons_controller.rb +17 -0
  38. data/api/app/controllers/api/users_controller.rb +3 -0
  39. data/api/app/controllers/api/variants_controller.rb +24 -0
  40. data/api/app/controllers/api/zones_controller.rb +24 -0
  41. data/api/app/models/line_item_decorator.rb +7 -0
  42. data/api/app/models/order_decorator.rb +5 -0
  43. data/api/app/models/shipment_decorator.rb +5 -0
  44. data/api/app/models/user_decorator.rb +22 -0
  45. data/api/app/views/admin/users/_api_fields.html.erb +16 -0
  46. data/api/config/cucumber.yml +10 -0
  47. data/api/config/locales/en.yml +16 -0
  48. data/api/config/routes.rb +143 -0
  49. data/api/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  50. data/api/features/countries.feature +16 -0
  51. data/api/features/inventory_units.feature +19 -0
  52. data/api/features/line_items.feature +19 -0
  53. data/api/features/orders.feature +18 -0
  54. data/api/features/orders_description.feature +15 -0
  55. data/api/features/products.feature +29 -0
  56. data/api/features/shipment.feature +18 -0
  57. data/api/features/states.feature +16 -0
  58. data/api/features/step_definitions/api_steps.rb +31 -0
  59. data/api/features/step_definitions/orders_steps.rb +176 -0
  60. data/api/features/support/env.rb +23 -0
  61. data/api/features/support/factories.rb +0 -0
  62. data/api/features/support/hooks.rb +0 -0
  63. data/api/features/support/paths.rb +35 -0
  64. data/api/features/users.feature +19 -0
  65. data/api/lib/spree_api.rb +16 -0
  66. data/api/lib/spree_api_hooks.rb +3 -0
  67. data/api/lib/tasks/install.rake +23 -0
  68. data/api/rfcommerce_api.gemspec +26 -0
  69. data/api/spec/controllers/api/spree_base_controller_spec.rb +53 -0
  70. data/api/spec/models/user_spec.rb +27 -0
  71. data/api/spec/spec_helper.rb +29 -0
  72. data/api/spec/test_app/Gemfile +36 -0
  73. data/api/spec/test_app/Rakefile +7 -0
  74. data/api/spec/test_app/app/controllers/application_controller.rb +3 -0
  75. data/api/spec/test_app/app/helpers/application_helper.rb +2 -0
  76. data/api/spec/test_app/app/views/layouts/application.html.erb +14 -0
  77. data/api/spec/test_app/config.ru +4 -0
  78. data/api/spec/test_app/config/application.rb +42 -0
  79. data/api/spec/test_app/config/boot.rb +6 -0
  80. data/api/spec/test_app/config/database.yml +17 -0
  81. data/api/spec/test_app/config/environment.rb +5 -0
  82. data/api/spec/test_app/config/environments/cucumber.rb +38 -0
  83. data/api/spec/test_app/config/environments/development.rb +26 -0
  84. data/api/spec/test_app/config/environments/production.rb +49 -0
  85. data/api/spec/test_app/config/environments/test.rb +35 -0
  86. data/api/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  87. data/api/spec/test_app/config/initializers/inflections.rb +10 -0
  88. data/api/spec/test_app/config/initializers/mime_types.rb +5 -0
  89. data/api/spec/test_app/config/initializers/secret_token.rb +7 -0
  90. data/api/spec/test_app/config/initializers/session_store.rb +8 -0
  91. data/api/spec/test_app/config/locales/en.yml +5 -0
  92. data/api/spec/test_app/config/routes.rb +58 -0
  93. data/api/spec/test_app/db/cucumber.sqlite3 +0 -0
  94. data/api/spec/test_app/db/default/countries.yml +1583 -0
  95. data/api/spec/test_app/db/default/roles.yml +7 -0
  96. data/api/spec/test_app/db/default/states.yml +256 -0
  97. data/api/spec/test_app/db/default/zone_members.yml +169 -0
  98. data/api/spec/test_app/db/default/zones.yml +13 -0
  99. data/api/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  100. data/api/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  101. data/api/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  102. data/api/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  103. data/api/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  104. data/api/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  105. data/api/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  106. data/api/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  107. data/api/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  108. data/api/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  109. data/api/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  110. data/api/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  111. data/api/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  112. data/api/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  113. data/api/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  114. data/api/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  115. data/api/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  116. data/api/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  117. data/api/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  118. data/api/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  119. data/api/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  120. data/api/spec/test_app/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  121. data/api/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  122. data/api/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  123. data/api/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  124. data/api/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  125. data/api/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  126. data/api/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  127. data/api/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  128. data/api/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  129. data/api/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  130. data/api/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  131. data/api/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  132. data/api/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  133. data/api/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  134. data/api/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  135. data/api/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  136. data/api/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  137. data/api/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  138. data/api/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  139. data/api/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  140. data/api/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  141. data/api/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  142. data/api/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  143. data/api/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  144. data/api/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  145. data/api/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  146. data/api/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  147. data/api/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  148. data/api/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  149. data/api/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  150. data/api/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  151. data/api/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  152. data/api/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  153. data/api/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  154. data/api/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  155. data/api/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  156. data/api/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  157. data/api/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  158. data/api/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  159. data/api/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  160. data/api/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  161. data/api/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  162. data/api/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  163. data/api/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  164. data/api/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  165. data/api/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  166. data/api/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  167. data/api/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  168. data/api/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  169. data/api/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  170. data/api/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  171. data/api/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  172. data/api/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  173. data/api/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  174. data/api/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  175. data/api/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  176. data/api/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  177. data/api/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  178. data/api/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  179. data/api/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  180. data/api/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  181. data/api/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  182. data/api/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  183. data/api/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  184. data/api/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  185. data/api/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  186. data/api/spec/test_app/db/sample/users.rb +53 -0
  187. data/api/spec/test_app/db/schema.rb +542 -0
  188. data/api/spec/test_app/db/seeds.rb +3 -0
  189. data/api/spec/test_app/db/test.sqlite3 +0 -0
  190. data/api/spec/test_app/log/cucumber.log +1601 -0
  191. data/api/spec/test_app/log/development.log +0 -0
  192. data/api/spec/test_app/log/production.log +0 -0
  193. data/api/spec/test_app/log/server.log +0 -0
  194. data/api/spec/test_app/log/test.log +1601 -0
  195. data/api/spec/test_app/public/404.html +26 -0
  196. data/api/spec/test_app/public/422.html +26 -0
  197. data/api/spec/test_app/public/500.html +26 -0
  198. data/api/spec/test_app/public/favicon.ico +0 -0
  199. data/api/spec/test_app/public/images/add-to-cart.png +0 -0
  200. data/api/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  201. data/api/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  202. data/api/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  203. data/api/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  204. data/api/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  205. data/api/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  206. data/api/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  207. data/api/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  208. data/api/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  209. data/api/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  210. data/api/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  211. data/api/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  212. data/api/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  213. data/api/spec/test_app/public/images/admin/bg/header.png +0 -0
  214. data/api/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  215. data/api/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  216. data/api/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  217. data/api/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  218. data/api/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  219. data/api/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  220. data/api/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  221. data/api/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  222. data/api/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  223. data/api/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  224. data/api/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  225. data/api/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  226. data/api/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  227. data/api/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  228. data/api/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  229. data/api/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  230. data/api/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  231. data/api/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  232. data/api/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  233. data/api/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  234. data/api/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  235. data/api/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  236. data/api/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  237. data/api/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  238. data/api/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  239. data/api/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  240. data/api/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  241. data/api/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  242. data/api/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  243. data/api/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  244. data/api/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  245. data/api/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  246. data/api/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  247. data/api/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  248. data/api/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  249. data/api/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  250. data/api/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  251. data/api/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  252. data/api/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  253. data/api/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  254. data/api/spec/test_app/public/images/admin/icons/accept.png +0 -0
  255. data/api/spec/test_app/public/images/admin/icons/add.gif +0 -0
  256. data/api/spec/test_app/public/images/admin/icons/add.png +0 -0
  257. data/api/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  258. data/api/spec/test_app/public/images/admin/icons/cross.png +0 -0
  259. data/api/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  260. data/api/spec/test_app/public/images/admin/icons/delete.png +0 -0
  261. data/api/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  262. data/api/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  263. data/api/spec/test_app/public/images/admin/icons/edit.png +0 -0
  264. data/api/spec/test_app/public/images/admin/icons/email.png +0 -0
  265. data/api/spec/test_app/public/images/admin/icons/error.png +0 -0
  266. data/api/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  267. data/api/spec/test_app/public/images/admin/icons/feed.png +0 -0
  268. data/api/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  269. data/api/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  270. data/api/spec/test_app/public/images/admin/icons/search.gif +0 -0
  271. data/api/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  272. data/api/spec/test_app/public/images/admin/icons/stop.png +0 -0
  273. data/api/spec/test_app/public/images/admin/icons/tick.png +0 -0
  274. data/api/spec/test_app/public/images/admin/icons/up.gif +0 -0
  275. data/api/spec/test_app/public/images/admin/icons/xls.png +0 -0
  276. data/api/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  277. data/api/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  278. data/api/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  279. data/api/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  280. data/api/spec/test_app/public/images/ajax_loader.gif +0 -0
  281. data/api/spec/test_app/public/images/amex_cid.gif +0 -0
  282. data/api/spec/test_app/public/images/bg-button-hover.png +0 -0
  283. data/api/spec/test_app/public/images/bg-button-pressed.png +0 -0
  284. data/api/spec/test_app/public/images/bg-button.gif +0 -0
  285. data/api/spec/test_app/public/images/bg-button.png +0 -0
  286. data/api/spec/test_app/public/images/blue/left_01.png +0 -0
  287. data/api/spec/test_app/public/images/blue/right_01.png +0 -0
  288. data/api/spec/test_app/public/images/body-back.png +0 -0
  289. data/api/spec/test_app/public/images/bottom_shine.png +0 -0
  290. data/api/spec/test_app/public/images/breadcrumb.gif +0 -0
  291. data/api/spec/test_app/public/images/button-dark-hover.png +0 -0
  292. data/api/spec/test_app/public/images/button-dark.png +0 -0
  293. data/api/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  294. data/api/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  295. data/api/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  296. data/api/spec/test_app/public/images/buttons/bg-button.png +0 -0
  297. data/api/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  298. data/api/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  299. data/api/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  300. data/api/spec/test_app/public/images/buttons/button-dark.png +0 -0
  301. data/api/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  302. data/api/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  303. data/api/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  304. data/api/spec/test_app/public/images/buttons/left_01.png +0 -0
  305. data/api/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  306. data/api/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  307. data/api/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  308. data/api/spec/test_app/public/images/buttons/right_01.png +0 -0
  309. data/api/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  310. data/api/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  311. data/api/spec/test_app/public/images/buttons/top-shine.png +0 -0
  312. data/api/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  313. data/api/spec/test_app/public/images/cart-empty.png +0 -0
  314. data/api/spec/test_app/public/images/cart-empty_x32.png +0 -0
  315. data/api/spec/test_app/public/images/cart-full.png +0 -0
  316. data/api/spec/test_app/public/images/cart-full_x32.png +0 -0
  317. data/api/spec/test_app/public/images/checkout.png +0 -0
  318. data/api/spec/test_app/public/images/creditcard.gif +0 -0
  319. data/api/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  320. data/api/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  321. data/api/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  322. data/api/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  323. data/api/spec/test_app/public/images/datepicker/cal.gif +0 -0
  324. data/api/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  325. data/api/spec/test_app/public/images/discover_cid.gif +0 -0
  326. data/api/spec/test_app/public/images/drag-handle-green.png +0 -0
  327. data/api/spec/test_app/public/images/favicon.ico +0 -0
  328. data/api/spec/test_app/public/images/green/left_01.png +0 -0
  329. data/api/spec/test_app/public/images/green/right_01.png +0 -0
  330. data/api/spec/test_app/public/images/grid.png +0 -0
  331. data/api/spec/test_app/public/images/left_01.png +0 -0
  332. data/api/spec/test_app/public/images/left_01_small.png +0 -0
  333. data/api/spec/test_app/public/images/master_cid.jpg +0 -0
  334. data/api/spec/test_app/public/images/menu-current.png +0 -0
  335. data/api/spec/test_app/public/images/menu-hover.png +0 -0
  336. data/api/spec/test_app/public/images/noimage/mini.jpg +0 -0
  337. data/api/spec/test_app/public/images/noimage/product.jpg +0 -0
  338. data/api/spec/test_app/public/images/noimage/small.jpg +0 -0
  339. data/api/spec/test_app/public/images/openid-inputicon.gif +0 -0
  340. data/api/spec/test_app/public/images/orange/left_03.png +0 -0
  341. data/api/spec/test_app/public/images/orange/right_03.png +0 -0
  342. data/api/spec/test_app/public/images/progress.gif +0 -0
  343. data/api/spec/test_app/public/images/reorder.jpg +0 -0
  344. data/api/spec/test_app/public/images/right_01.png +0 -0
  345. data/api/spec/test_app/public/images/right_01_small.png +0 -0
  346. data/api/spec/test_app/public/images/separator.png +0 -0
  347. data/api/spec/test_app/public/images/shadow-top.png +0 -0
  348. data/api/spec/test_app/public/images/shadow_top.png +0 -0
  349. data/api/spec/test_app/public/images/spinner.gif +0 -0
  350. data/api/spec/test_app/public/images/spree.jpg +0 -0
  351. data/api/spec/test_app/public/images/spree/progress.gif +0 -0
  352. data/api/spec/test_app/public/images/spree/spinner.gif +0 -0
  353. data/api/spec/test_app/public/images/spree/spree.jpg +0 -0
  354. data/api/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  355. data/api/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  356. data/api/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  357. data/api/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  358. data/api/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  359. data/api/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  360. data/api/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  361. data/api/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  362. data/api/spec/test_app/public/images/steps/1.png +0 -0
  363. data/api/spec/test_app/public/images/steps/1_small.png +0 -0
  364. data/api/spec/test_app/public/images/steps/2.png +0 -0
  365. data/api/spec/test_app/public/images/steps/2_small.png +0 -0
  366. data/api/spec/test_app/public/images/steps/3.png +0 -0
  367. data/api/spec/test_app/public/images/steps/3_small.png +0 -0
  368. data/api/spec/test_app/public/images/steps/4.png +0 -0
  369. data/api/spec/test_app/public/images/steps/4_small.png +0 -0
  370. data/api/spec/test_app/public/images/steps/5.png +0 -0
  371. data/api/spec/test_app/public/images/steps/5_small.png +0 -0
  372. data/api/spec/test_app/public/images/steps/6.png +0 -0
  373. data/api/spec/test_app/public/images/steps/6_small.png +0 -0
  374. data/api/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  375. data/api/spec/test_app/public/images/tab_bottom.gif +0 -0
  376. data/api/spec/test_app/public/images/tile-header.png +0 -0
  377. data/api/spec/test_app/public/images/tile-slider.png +0 -0
  378. data/api/spec/test_app/public/images/top-shine.png +0 -0
  379. data/api/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  380. data/api/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  381. data/api/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  382. data/api/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  383. data/api/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  384. data/api/spec/test_app/public/images/update.png +0 -0
  385. data/api/spec/test_app/public/images/visa_cid.gif +0 -0
  386. data/api/spec/test_app/public/images/wrapper-back-2.png +0 -0
  387. data/api/spec/test_app/public/images/wrapper-back.png +0 -0
  388. data/api/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  389. data/api/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  390. data/api/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  391. data/api/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  392. data/api/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  393. data/api/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  394. data/api/spec/test_app/public/images/yui-sprite.png +0 -0
  395. data/api/spec/test_app/public/javascripts/additional-methods.js +236 -0
  396. data/api/spec/test_app/public/javascripts/admin.js +232 -0
  397. data/api/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  398. data/api/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  399. data/api/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  400. data/api/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  401. data/api/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  402. data/api/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  403. data/api/spec/test_app/public/javascripts/application.js +12 -0
  404. data/api/spec/test_app/public/javascripts/calculator.js +15 -0
  405. data/api/spec/test_app/public/javascripts/checkout.js +75 -0
  406. data/api/spec/test_app/public/javascripts/datepicker.js +1445 -0
  407. data/api/spec/test_app/public/javascripts/gateway.js +13 -0
  408. data/api/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  409. data/api/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  410. data/api/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  411. data/api/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  412. data/api/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  413. data/api/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  414. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  415. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  416. data/api/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  417. data/api/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  418. data/api/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  419. data/api/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  420. data/api/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  421. data/api/spec/test_app/public/javascripts/jquery.template.js +255 -0
  422. data/api/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  423. data/api/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  424. data/api/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  425. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  426. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  427. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  428. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  429. data/api/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  430. data/api/spec/test_app/public/javascripts/lang/af.js +40 -0
  431. data/api/spec/test_app/public/javascripts/lang/ar.js +50 -0
  432. data/api/spec/test_app/public/javascripts/lang/de.js +40 -0
  433. data/api/spec/test_app/public/javascripts/lang/du.js +40 -0
  434. data/api/spec/test_app/public/javascripts/lang/en.js +42 -0
  435. data/api/spec/test_app/public/javascripts/lang/es.js +41 -0
  436. data/api/spec/test_app/public/javascripts/lang/fi.js +40 -0
  437. data/api/spec/test_app/public/javascripts/lang/fr.js +44 -0
  438. data/api/spec/test_app/public/javascripts/lang/gr.js +40 -0
  439. data/api/spec/test_app/public/javascripts/lang/he.js +49 -0
  440. data/api/spec/test_app/public/javascripts/lang/it.js +13 -0
  441. data/api/spec/test_app/public/javascripts/lang/nl.js +40 -0
  442. data/api/spec/test_app/public/javascripts/lang/no.js +40 -0
  443. data/api/spec/test_app/public/javascripts/lang/pt.js +50 -0
  444. data/api/spec/test_app/public/javascripts/lang/ro.js +40 -0
  445. data/api/spec/test_app/public/javascripts/lang/ru.js +40 -0
  446. data/api/spec/test_app/public/javascripts/lang/sp.js +40 -0
  447. data/api/spec/test_app/public/javascripts/lang/sv.js +41 -0
  448. data/api/spec/test_app/public/javascripts/lang/ua.js +40 -0
  449. data/api/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  450. data/api/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  451. data/api/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  452. data/api/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  453. data/api/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  454. data/api/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  455. data/api/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  456. data/api/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  457. data/api/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  458. data/api/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  459. data/api/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  460. data/api/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  461. data/api/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  462. data/api/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  463. data/api/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  464. data/api/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  465. data/api/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  466. data/api/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  467. data/api/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  468. data/api/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  469. data/api/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  470. data/api/spec/test_app/public/javascripts/open_id.js +15 -0
  471. data/api/spec/test_app/public/javascripts/product.js +49 -0
  472. data/api/spec/test_app/public/javascripts/rails.js +127 -0
  473. data/api/spec/test_app/public/javascripts/taxonomy.js +201 -0
  474. data/api/spec/test_app/public/javascripts/zone.js +39 -0
  475. data/api/spec/test_app/public/robots.txt +5 -0
  476. data/api/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  477. data/api/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  478. data/api/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  479. data/api/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  480. data/api/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  481. data/api/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  482. data/api/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  483. data/api/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  484. data/api/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  485. data/api/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  486. data/api/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  487. data/api/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  488. data/api/spec/test_app/public/stylesheets/datepicker.css +263 -0
  489. data/api/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  490. data/api/spec/test_app/public/stylesheets/screen.css +916 -0
  491. data/api/spec/test_app/script/rails +6 -0
  492. data/auth/Gemfile +35 -0
  493. data/auth/Gemfile.lock +244 -0
  494. data/auth/LICENSE +26 -0
  495. data/auth/README.md +36 -0
  496. data/auth/Rakefile +54 -0
  497. data/auth/app/controllers/admin_controller_decorator.rb +7 -0
  498. data/auth/app/controllers/admin_orders_controller_decorator.rb +15 -0
  499. data/auth/app/controllers/admin_resource_controller_decorator.rb +3 -0
  500. data/auth/app/controllers/checkout_controller_decorator.rb +42 -0
  501. data/auth/app/controllers/orders_controller_decorator.rb +17 -0
  502. data/auth/app/controllers/resource_controller_decorator.rb +25 -0
  503. data/auth/app/controllers/spree/base_controller_decorator.rb +49 -0
  504. data/auth/app/controllers/user_passwords_controller.rb +20 -0
  505. data/auth/app/controllers/user_registrations_controller.rb +64 -0
  506. data/auth/app/controllers/user_sessions_controller.rb +81 -0
  507. data/auth/app/controllers/users_controller.rb +54 -0
  508. data/auth/app/helpers/users_helper.rb +13 -0
  509. data/auth/app/models/ability.rb +64 -0
  510. data/auth/app/models/order_decorator.rb +12 -0
  511. data/auth/app/models/spree_auth_configuration.rb +4 -0
  512. data/auth/app/models/spree_current_order_decorator.rb +14 -0
  513. data/auth/app/models/tokenized_permission.rb +3 -0
  514. data/auth/app/models/user.rb +85 -0
  515. data/auth/app/models/user_mailer.rb +13 -0
  516. data/auth/app/views/checkout/registration.html.erb +20 -0
  517. data/auth/app/views/layouts/admin/_login_nav.html.erb +8 -0
  518. data/auth/app/views/shared/_flashes.html.erb +9 -0
  519. data/auth/app/views/shared/_login.html.erb +20 -0
  520. data/auth/app/views/shared/_login_bar.html.erb +6 -0
  521. data/auth/app/views/shared/_user_form.html.erb +17 -0
  522. data/auth/app/views/shared/unauthorized.html.erb +0 -0
  523. data/auth/app/views/user_mailer/reset_password_instructions.text.erb +10 -0
  524. data/auth/app/views/user_passwords/edit.html.erb +15 -0
  525. data/auth/app/views/user_passwords/new.html.erb +13 -0
  526. data/auth/app/views/user_registrations/new.html.erb +23 -0
  527. data/auth/app/views/user_sessions/authorization_failure.html.erb +4 -0
  528. data/auth/app/views/user_sessions/new.html.erb +13 -0
  529. data/auth/app/views/users/edit.html.erb +11 -0
  530. data/auth/app/views/users/show.html.erb +50 -0
  531. data/auth/config.ru +4 -0
  532. data/auth/config/cucumber.yml +10 -0
  533. data/auth/config/initializers/devise.rb +136 -0
  534. data/auth/config/locales/en.yml +46 -0
  535. data/auth/config/routes.rb +28 -0
  536. data/auth/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  537. data/auth/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  538. data/auth/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  539. data/auth/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  540. data/auth/db/sample/users.rb +53 -0
  541. data/auth/features/account.feature +37 -0
  542. data/auth/features/admin_permissions.feature +22 -0
  543. data/auth/features/checkout.feature +171 -0
  544. data/auth/features/order.feature +14 -0
  545. data/auth/features/password_reset.feature +19 -0
  546. data/auth/features/sign_in.feature +34 -0
  547. data/auth/features/sign_out.feature +11 -0
  548. data/auth/features/sign_up.feature +20 -0
  549. data/auth/features/support/env.rb +4 -0
  550. data/auth/features/support/paths.rb +49 -0
  551. data/auth/features/user.feature +33 -0
  552. data/auth/lib/spree/auth/config.rb +22 -0
  553. data/auth/lib/spree/token_resource.rb +23 -0
  554. data/auth/lib/spree_auth.rb +29 -0
  555. data/auth/lib/spree_auth_hooks.rb +6 -0
  556. data/auth/lib/tasks/auth.rake +8 -0
  557. data/auth/lib/tasks/install.rake +23 -0
  558. data/auth/rfcommerce_auth.gemspec +28 -0
  559. data/auth/spec/controllers/admin_base_controller_spec.rb +19 -0
  560. data/auth/spec/controllers/checkout_controller_spec.rb +180 -0
  561. data/auth/spec/controllers/orders_controller_spec.rb +145 -0
  562. data/auth/spec/controllers/user_sessions_controller_spec.rb +32 -0
  563. data/auth/spec/controllers/users_controller_spec.rb +55 -0
  564. data/auth/spec/lib/token_resource_spec.rb +34 -0
  565. data/auth/spec/models/ability_spec.rb +186 -0
  566. data/auth/spec/models/order_spec.rb +45 -0
  567. data/auth/spec/models/user_spec.rb +47 -0
  568. data/auth/spec/spec_helper.rb +29 -0
  569. data/auth/spec/test_app/Gemfile +35 -0
  570. data/auth/spec/test_app/Rakefile +7 -0
  571. data/auth/spec/test_app/app/controllers/application_controller.rb +3 -0
  572. data/auth/spec/test_app/app/helpers/application_helper.rb +2 -0
  573. data/auth/spec/test_app/app/views/layouts/application.html.erb +14 -0
  574. data/auth/spec/test_app/config.ru +4 -0
  575. data/auth/spec/test_app/config/application.rb +42 -0
  576. data/auth/spec/test_app/config/boot.rb +6 -0
  577. data/auth/spec/test_app/config/database.yml +17 -0
  578. data/auth/spec/test_app/config/environment.rb +5 -0
  579. data/auth/spec/test_app/config/environments/cucumber.rb +38 -0
  580. data/auth/spec/test_app/config/environments/development.rb +26 -0
  581. data/auth/spec/test_app/config/environments/production.rb +49 -0
  582. data/auth/spec/test_app/config/environments/test.rb +35 -0
  583. data/auth/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  584. data/auth/spec/test_app/config/initializers/inflections.rb +10 -0
  585. data/auth/spec/test_app/config/initializers/mime_types.rb +5 -0
  586. data/auth/spec/test_app/config/initializers/secret_token.rb +7 -0
  587. data/auth/spec/test_app/config/initializers/session_store.rb +8 -0
  588. data/auth/spec/test_app/config/locales/en.yml +5 -0
  589. data/auth/spec/test_app/config/routes.rb +58 -0
  590. data/auth/spec/test_app/db/cucumber.sqlite3 +0 -0
  591. data/auth/spec/test_app/db/default/countries.yml +1583 -0
  592. data/auth/spec/test_app/db/default/roles.yml +7 -0
  593. data/auth/spec/test_app/db/default/states.yml +256 -0
  594. data/auth/spec/test_app/db/default/zone_members.yml +169 -0
  595. data/auth/spec/test_app/db/default/zones.yml +13 -0
  596. data/auth/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  597. data/auth/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  598. data/auth/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  599. data/auth/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  600. data/auth/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  601. data/auth/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  602. data/auth/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  603. data/auth/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  604. data/auth/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  605. data/auth/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  606. data/auth/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  607. data/auth/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  608. data/auth/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  609. data/auth/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  610. data/auth/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  611. data/auth/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  612. data/auth/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  613. data/auth/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  614. data/auth/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  615. data/auth/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  616. data/auth/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  617. data/auth/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  618. data/auth/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  619. data/auth/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  620. data/auth/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  621. data/auth/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  622. data/auth/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  623. data/auth/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  624. data/auth/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  625. data/auth/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  626. data/auth/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  627. data/auth/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  628. data/auth/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  629. data/auth/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  630. data/auth/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  631. data/auth/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  632. data/auth/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  633. data/auth/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  634. data/auth/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  635. data/auth/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  636. data/auth/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  637. data/auth/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  638. data/auth/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  639. data/auth/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  640. data/auth/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  641. data/auth/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  642. data/auth/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  643. data/auth/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  644. data/auth/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  645. data/auth/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  646. data/auth/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  647. data/auth/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  648. data/auth/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  649. data/auth/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  650. data/auth/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  651. data/auth/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  652. data/auth/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  653. data/auth/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  654. data/auth/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  655. data/auth/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  656. data/auth/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  657. data/auth/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  658. data/auth/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  659. data/auth/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  660. data/auth/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  661. data/auth/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  662. data/auth/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  663. data/auth/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  664. data/auth/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  665. data/auth/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  666. data/auth/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  667. data/auth/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  668. data/auth/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  669. data/auth/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  670. data/auth/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  671. data/auth/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  672. data/auth/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  673. data/auth/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  674. data/auth/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  675. data/auth/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  676. data/auth/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  677. data/auth/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  678. data/auth/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  679. data/auth/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  680. data/auth/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  681. data/auth/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  682. data/auth/spec/test_app/db/sample/users.rb +61 -0
  683. data/auth/spec/test_app/db/schema.rb +542 -0
  684. data/auth/spec/test_app/db/seeds.rb +3 -0
  685. data/auth/spec/test_app/db/test.sqlite3 +0 -0
  686. data/auth/spec/test_app/log/cucumber.log +1599 -0
  687. data/auth/spec/test_app/log/development.log +0 -0
  688. data/auth/spec/test_app/log/production.log +0 -0
  689. data/auth/spec/test_app/log/server.log +0 -0
  690. data/auth/spec/test_app/log/test.log +1599 -0
  691. data/auth/spec/test_app/public/404.html +26 -0
  692. data/auth/spec/test_app/public/422.html +26 -0
  693. data/auth/spec/test_app/public/500.html +26 -0
  694. data/auth/spec/test_app/public/favicon.ico +0 -0
  695. data/auth/spec/test_app/public/images/add-to-cart.png +0 -0
  696. data/auth/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  697. data/auth/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  698. data/auth/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  699. data/auth/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  700. data/auth/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  701. data/auth/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  702. data/auth/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  703. data/auth/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  704. data/auth/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  705. data/auth/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  706. data/auth/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  707. data/auth/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  708. data/auth/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  709. data/auth/spec/test_app/public/images/admin/bg/header.png +0 -0
  710. data/auth/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  711. data/auth/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  712. data/auth/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  713. data/auth/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  714. data/auth/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  715. data/auth/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  716. data/auth/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  717. data/auth/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  718. data/auth/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  719. data/auth/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  720. data/auth/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  721. data/auth/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  722. data/auth/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  723. data/auth/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  724. data/auth/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  725. data/auth/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  726. data/auth/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  727. data/auth/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  728. data/auth/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  729. data/auth/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  730. data/auth/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  731. data/auth/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  732. data/auth/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  733. data/auth/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  734. data/auth/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  735. data/auth/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  736. data/auth/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  737. data/auth/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  738. data/auth/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  739. data/auth/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  740. data/auth/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  741. data/auth/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  742. data/auth/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  743. data/auth/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  744. data/auth/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  745. data/auth/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  746. data/auth/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  747. data/auth/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  748. data/auth/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  749. data/auth/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  750. data/auth/spec/test_app/public/images/admin/icons/accept.png +0 -0
  751. data/auth/spec/test_app/public/images/admin/icons/add.gif +0 -0
  752. data/auth/spec/test_app/public/images/admin/icons/add.png +0 -0
  753. data/auth/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  754. data/auth/spec/test_app/public/images/admin/icons/cross.png +0 -0
  755. data/auth/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  756. data/auth/spec/test_app/public/images/admin/icons/delete.png +0 -0
  757. data/auth/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  758. data/auth/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  759. data/auth/spec/test_app/public/images/admin/icons/edit.png +0 -0
  760. data/auth/spec/test_app/public/images/admin/icons/email.png +0 -0
  761. data/auth/spec/test_app/public/images/admin/icons/error.png +0 -0
  762. data/auth/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  763. data/auth/spec/test_app/public/images/admin/icons/feed.png +0 -0
  764. data/auth/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  765. data/auth/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  766. data/auth/spec/test_app/public/images/admin/icons/search.gif +0 -0
  767. data/auth/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  768. data/auth/spec/test_app/public/images/admin/icons/stop.png +0 -0
  769. data/auth/spec/test_app/public/images/admin/icons/tick.png +0 -0
  770. data/auth/spec/test_app/public/images/admin/icons/up.gif +0 -0
  771. data/auth/spec/test_app/public/images/admin/icons/xls.png +0 -0
  772. data/auth/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  773. data/auth/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  774. data/auth/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  775. data/auth/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  776. data/auth/spec/test_app/public/images/ajax_loader.gif +0 -0
  777. data/auth/spec/test_app/public/images/amex_cid.gif +0 -0
  778. data/auth/spec/test_app/public/images/bg-button-hover.png +0 -0
  779. data/auth/spec/test_app/public/images/bg-button-pressed.png +0 -0
  780. data/auth/spec/test_app/public/images/bg-button.gif +0 -0
  781. data/auth/spec/test_app/public/images/bg-button.png +0 -0
  782. data/auth/spec/test_app/public/images/blue/left_01.png +0 -0
  783. data/auth/spec/test_app/public/images/blue/right_01.png +0 -0
  784. data/auth/spec/test_app/public/images/body-back.png +0 -0
  785. data/auth/spec/test_app/public/images/bottom_shine.png +0 -0
  786. data/auth/spec/test_app/public/images/breadcrumb.gif +0 -0
  787. data/auth/spec/test_app/public/images/button-dark-hover.png +0 -0
  788. data/auth/spec/test_app/public/images/button-dark.png +0 -0
  789. data/auth/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  790. data/auth/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  791. data/auth/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  792. data/auth/spec/test_app/public/images/buttons/bg-button.png +0 -0
  793. data/auth/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  794. data/auth/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  795. data/auth/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  796. data/auth/spec/test_app/public/images/buttons/button-dark.png +0 -0
  797. data/auth/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  798. data/auth/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  799. data/auth/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  800. data/auth/spec/test_app/public/images/buttons/left_01.png +0 -0
  801. data/auth/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  802. data/auth/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  803. data/auth/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  804. data/auth/spec/test_app/public/images/buttons/right_01.png +0 -0
  805. data/auth/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  806. data/auth/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  807. data/auth/spec/test_app/public/images/buttons/top-shine.png +0 -0
  808. data/auth/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  809. data/auth/spec/test_app/public/images/cart-empty.png +0 -0
  810. data/auth/spec/test_app/public/images/cart-empty_x32.png +0 -0
  811. data/auth/spec/test_app/public/images/cart-full.png +0 -0
  812. data/auth/spec/test_app/public/images/cart-full_x32.png +0 -0
  813. data/auth/spec/test_app/public/images/checkout.png +0 -0
  814. data/auth/spec/test_app/public/images/creditcard.gif +0 -0
  815. data/auth/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  816. data/auth/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  817. data/auth/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  818. data/auth/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  819. data/auth/spec/test_app/public/images/datepicker/cal.gif +0 -0
  820. data/auth/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  821. data/auth/spec/test_app/public/images/discover_cid.gif +0 -0
  822. data/auth/spec/test_app/public/images/drag-handle-green.png +0 -0
  823. data/auth/spec/test_app/public/images/favicon.ico +0 -0
  824. data/auth/spec/test_app/public/images/green/left_01.png +0 -0
  825. data/auth/spec/test_app/public/images/green/right_01.png +0 -0
  826. data/auth/spec/test_app/public/images/grid.png +0 -0
  827. data/auth/spec/test_app/public/images/left_01.png +0 -0
  828. data/auth/spec/test_app/public/images/left_01_small.png +0 -0
  829. data/auth/spec/test_app/public/images/master_cid.jpg +0 -0
  830. data/auth/spec/test_app/public/images/menu-current.png +0 -0
  831. data/auth/spec/test_app/public/images/menu-hover.png +0 -0
  832. data/auth/spec/test_app/public/images/noimage/mini.jpg +0 -0
  833. data/auth/spec/test_app/public/images/noimage/product.jpg +0 -0
  834. data/auth/spec/test_app/public/images/noimage/small.jpg +0 -0
  835. data/auth/spec/test_app/public/images/openid-inputicon.gif +0 -0
  836. data/auth/spec/test_app/public/images/orange/left_03.png +0 -0
  837. data/auth/spec/test_app/public/images/orange/right_03.png +0 -0
  838. data/auth/spec/test_app/public/images/progress.gif +0 -0
  839. data/auth/spec/test_app/public/images/reorder.jpg +0 -0
  840. data/auth/spec/test_app/public/images/right_01.png +0 -0
  841. data/auth/spec/test_app/public/images/right_01_small.png +0 -0
  842. data/auth/spec/test_app/public/images/separator.png +0 -0
  843. data/auth/spec/test_app/public/images/shadow-top.png +0 -0
  844. data/auth/spec/test_app/public/images/shadow_top.png +0 -0
  845. data/auth/spec/test_app/public/images/spinner.gif +0 -0
  846. data/auth/spec/test_app/public/images/spree.jpg +0 -0
  847. data/auth/spec/test_app/public/images/spree/progress.gif +0 -0
  848. data/auth/spec/test_app/public/images/spree/spinner.gif +0 -0
  849. data/auth/spec/test_app/public/images/spree/spree.jpg +0 -0
  850. data/auth/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  851. data/auth/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  852. data/auth/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  853. data/auth/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  854. data/auth/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  855. data/auth/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  856. data/auth/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  857. data/auth/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  858. data/auth/spec/test_app/public/images/steps/1.png +0 -0
  859. data/auth/spec/test_app/public/images/steps/1_small.png +0 -0
  860. data/auth/spec/test_app/public/images/steps/2.png +0 -0
  861. data/auth/spec/test_app/public/images/steps/2_small.png +0 -0
  862. data/auth/spec/test_app/public/images/steps/3.png +0 -0
  863. data/auth/spec/test_app/public/images/steps/3_small.png +0 -0
  864. data/auth/spec/test_app/public/images/steps/4.png +0 -0
  865. data/auth/spec/test_app/public/images/steps/4_small.png +0 -0
  866. data/auth/spec/test_app/public/images/steps/5.png +0 -0
  867. data/auth/spec/test_app/public/images/steps/5_small.png +0 -0
  868. data/auth/spec/test_app/public/images/steps/6.png +0 -0
  869. data/auth/spec/test_app/public/images/steps/6_small.png +0 -0
  870. data/auth/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  871. data/auth/spec/test_app/public/images/tab_bottom.gif +0 -0
  872. data/auth/spec/test_app/public/images/tile-header.png +0 -0
  873. data/auth/spec/test_app/public/images/tile-slider.png +0 -0
  874. data/auth/spec/test_app/public/images/top-shine.png +0 -0
  875. data/auth/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  876. data/auth/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  877. data/auth/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  878. data/auth/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  879. data/auth/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  880. data/auth/spec/test_app/public/images/update.png +0 -0
  881. data/auth/spec/test_app/public/images/visa_cid.gif +0 -0
  882. data/auth/spec/test_app/public/images/wrapper-back-2.png +0 -0
  883. data/auth/spec/test_app/public/images/wrapper-back.png +0 -0
  884. data/auth/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  885. data/auth/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  886. data/auth/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  887. data/auth/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  888. data/auth/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  889. data/auth/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  890. data/auth/spec/test_app/public/images/yui-sprite.png +0 -0
  891. data/auth/spec/test_app/public/javascripts/additional-methods.js +236 -0
  892. data/auth/spec/test_app/public/javascripts/admin.js +232 -0
  893. data/auth/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  894. data/auth/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  895. data/auth/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  896. data/auth/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  897. data/auth/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  898. data/auth/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  899. data/auth/spec/test_app/public/javascripts/application.js +12 -0
  900. data/auth/spec/test_app/public/javascripts/calculator.js +15 -0
  901. data/auth/spec/test_app/public/javascripts/checkout.js +75 -0
  902. data/auth/spec/test_app/public/javascripts/datepicker.js +1445 -0
  903. data/auth/spec/test_app/public/javascripts/gateway.js +13 -0
  904. data/auth/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  905. data/auth/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  906. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  907. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  908. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  909. data/auth/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  910. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  911. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  912. data/auth/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  913. data/auth/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  914. data/auth/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  915. data/auth/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  916. data/auth/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  917. data/auth/spec/test_app/public/javascripts/jquery.template.js +255 -0
  918. data/auth/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  919. data/auth/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  920. data/auth/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  921. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  922. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  923. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  924. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  925. data/auth/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  926. data/auth/spec/test_app/public/javascripts/lang/af.js +40 -0
  927. data/auth/spec/test_app/public/javascripts/lang/ar.js +50 -0
  928. data/auth/spec/test_app/public/javascripts/lang/de.js +40 -0
  929. data/auth/spec/test_app/public/javascripts/lang/du.js +40 -0
  930. data/auth/spec/test_app/public/javascripts/lang/en.js +42 -0
  931. data/auth/spec/test_app/public/javascripts/lang/es.js +41 -0
  932. data/auth/spec/test_app/public/javascripts/lang/fi.js +40 -0
  933. data/auth/spec/test_app/public/javascripts/lang/fr.js +44 -0
  934. data/auth/spec/test_app/public/javascripts/lang/gr.js +40 -0
  935. data/auth/spec/test_app/public/javascripts/lang/he.js +49 -0
  936. data/auth/spec/test_app/public/javascripts/lang/it.js +13 -0
  937. data/auth/spec/test_app/public/javascripts/lang/nl.js +40 -0
  938. data/auth/spec/test_app/public/javascripts/lang/no.js +40 -0
  939. data/auth/spec/test_app/public/javascripts/lang/pt.js +50 -0
  940. data/auth/spec/test_app/public/javascripts/lang/ro.js +40 -0
  941. data/auth/spec/test_app/public/javascripts/lang/ru.js +40 -0
  942. data/auth/spec/test_app/public/javascripts/lang/sp.js +40 -0
  943. data/auth/spec/test_app/public/javascripts/lang/sv.js +41 -0
  944. data/auth/spec/test_app/public/javascripts/lang/ua.js +40 -0
  945. data/auth/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  946. data/auth/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  947. data/auth/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  948. data/auth/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  949. data/auth/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  950. data/auth/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  951. data/auth/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  952. data/auth/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  953. data/auth/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  954. data/auth/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  955. data/auth/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  956. data/auth/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  957. data/auth/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  958. data/auth/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  959. data/auth/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  960. data/auth/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  961. data/auth/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  962. data/auth/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  963. data/auth/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  964. data/auth/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  965. data/auth/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  966. data/auth/spec/test_app/public/javascripts/open_id.js +15 -0
  967. data/auth/spec/test_app/public/javascripts/product.js +49 -0
  968. data/auth/spec/test_app/public/javascripts/rails.js +127 -0
  969. data/auth/spec/test_app/public/javascripts/taxonomy.js +201 -0
  970. data/auth/spec/test_app/public/javascripts/zone.js +39 -0
  971. data/auth/spec/test_app/public/robots.txt +5 -0
  972. data/auth/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  973. data/auth/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  974. data/auth/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  975. data/auth/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  976. data/auth/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  977. data/auth/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  978. data/auth/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  979. data/auth/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  980. data/auth/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  981. data/auth/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  982. data/auth/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  983. data/auth/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  984. data/auth/spec/test_app/public/stylesheets/datepicker.css +263 -0
  985. data/auth/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  986. data/auth/spec/test_app/public/stylesheets/screen.css +916 -0
  987. data/auth/spec/test_app/script/rails +6 -0
  988. data/core/Gemfile +34 -0
  989. data/core/Gemfile.lock +226 -0
  990. data/core/LICENSE +26 -0
  991. data/core/README.md +15 -0
  992. data/core/Rakefile +48 -0
  993. data/core/app/controllers/admin/adjustments_controller.rb +10 -0
  994. data/core/app/controllers/admin/base_controller.rb +63 -0
  995. data/core/app/controllers/admin/configurations_controller.rb +2 -0
  996. data/core/app/controllers/admin/general_settings_controller.rb +22 -0
  997. data/core/app/controllers/admin/images_controller.rb +49 -0
  998. data/core/app/controllers/admin/inventory_settings_controller.rb +13 -0
  999. data/core/app/controllers/admin/inventory_units_controller.rb +2 -0
  1000. data/core/app/controllers/admin/line_items_controller.rb +60 -0
  1001. data/core/app/controllers/admin/mail_methods_controller.rb +8 -0
  1002. data/core/app/controllers/admin/mail_settings_controller.rb +14 -0
  1003. data/core/app/controllers/admin/option_types_controller.rb +65 -0
  1004. data/core/app/controllers/admin/orders_controller.rb +136 -0
  1005. data/core/app/controllers/admin/overview_controller.rb +14 -0
  1006. data/core/app/controllers/admin/payment_methods_controller.rb +43 -0
  1007. data/core/app/controllers/admin/payments_controller.rb +107 -0
  1008. data/core/app/controllers/admin/product_groups_controller.rb +46 -0
  1009. data/core/app/controllers/admin/product_properties_controller.rb +10 -0
  1010. data/core/app/controllers/admin/product_scopes_controller.rb +35 -0
  1011. data/core/app/controllers/admin/products_controller.rb +113 -0
  1012. data/core/app/controllers/admin/products_controller.rb~ +114 -0
  1013. data/core/app/controllers/admin/properties_controller.rb +11 -0
  1014. data/core/app/controllers/admin/prototypes_controller.rb +26 -0
  1015. data/core/app/controllers/admin/reports_controller.rb +50 -0
  1016. data/core/app/controllers/admin/resource_controller.rb +232 -0
  1017. data/core/app/controllers/admin/return_authorizations_controller.rb +17 -0
  1018. data/core/app/controllers/admin/shipments_controller.rb +117 -0
  1019. data/core/app/controllers/admin/shipping_categories_controller.rb +2 -0
  1020. data/core/app/controllers/admin/shipping_methods_controller.rb +14 -0
  1021. data/core/app/controllers/admin/states_controller.rb +25 -0
  1022. data/core/app/controllers/admin/tax_categories_controller.rb +2 -0
  1023. data/core/app/controllers/admin/tax_rates_controller.rb +22 -0
  1024. data/core/app/controllers/admin/tax_settings_controller.rb +13 -0
  1025. data/core/app/controllers/admin/taxonomies_controller.rb +20 -0
  1026. data/core/app/controllers/admin/taxons_controller.rb +161 -0
  1027. data/core/app/controllers/admin/trackers_controller.rb +2 -0
  1028. data/core/app/controllers/admin/users_controller.rb +65 -0
  1029. data/core/app/controllers/admin/variants_controller.rb +51 -0
  1030. data/core/app/controllers/admin/zones_controller.rb +23 -0
  1031. data/core/app/controllers/checkout_controller.rb +97 -0
  1032. data/core/app/controllers/content_controller.rb +21 -0
  1033. data/core/app/controllers/locale_controller.rb +14 -0
  1034. data/core/app/controllers/orders_controller.rb +64 -0
  1035. data/core/app/controllers/products_controller.rb +39 -0
  1036. data/core/app/controllers/spree/base_controller.rb +4 -0
  1037. data/core/app/controllers/states_controller.rb +16 -0
  1038. data/core/app/controllers/taxons_controller.rb +22 -0
  1039. data/core/app/helpers/account_helper.rb +2 -0
  1040. data/core/app/helpers/admin/base_helper.rb +194 -0
  1041. data/core/app/helpers/admin/inventory_settings_helper.rb +5 -0
  1042. data/core/app/helpers/admin/navigation_helper.rb +162 -0
  1043. data/core/app/helpers/admin/orders_helper.rb +22 -0
  1044. data/core/app/helpers/admin/overview_helper.rb +12 -0
  1045. data/core/app/helpers/admin/payments_helper.rb +7 -0
  1046. data/core/app/helpers/admin/product_groups_helper.rb +11 -0
  1047. data/core/app/helpers/admin/product_properties_helper.rb +21 -0
  1048. data/core/app/helpers/admin/products_helper.rb +11 -0
  1049. data/core/app/helpers/admin/taxons_helper.rb +18 -0
  1050. data/core/app/helpers/admin/users_helper.rb +8 -0
  1051. data/core/app/helpers/admin/zones_helper.rb +11 -0
  1052. data/core/app/helpers/checkout_helper.rb +31 -0
  1053. data/core/app/helpers/hook_helper.rb +20 -0
  1054. data/core/app/helpers/orders_helper.rb +3 -0
  1055. data/core/app/helpers/products_helper.rb +30 -0
  1056. data/core/app/helpers/search_helper.rb +10 -0
  1057. data/core/app/helpers/spree/base_helper.rb +119 -0
  1058. data/core/app/helpers/taxons_helper.rb +32 -0
  1059. data/core/app/helpers/trackers_helper.rb +2 -0
  1060. data/core/app/mailers/order_mailer.rb +19 -0
  1061. data/core/app/mailers/shipment_mailer.rb +11 -0
  1062. data/core/app/models/address.rb +115 -0
  1063. data/core/app/models/adjustment.rb +47 -0
  1064. data/core/app/models/app_configuration.rb +44 -0
  1065. data/core/app/models/asset.rb +4 -0
  1066. data/core/app/models/billing_integration.rb +23 -0
  1067. data/core/app/models/calculator.rb +46 -0
  1068. data/core/app/models/calculator/flat_percent_item_total.rb +19 -0
  1069. data/core/app/models/calculator/flat_rate.rb +16 -0
  1070. data/core/app/models/calculator/flexi_rate.rb +32 -0
  1071. data/core/app/models/calculator/per_item.rb +16 -0
  1072. data/core/app/models/calculator/price_bucket.rb +30 -0
  1073. data/core/app/models/calculator/sales_tax.rb +48 -0
  1074. data/core/app/models/calculator/vat.rb +63 -0
  1075. data/core/app/models/configuration.rb +3 -0
  1076. data/core/app/models/country.rb +16 -0
  1077. data/core/app/models/creditcard.rb +267 -0
  1078. data/core/app/models/gateway.rb +48 -0
  1079. data/core/app/models/gateway/authorize_net.rb +19 -0
  1080. data/core/app/models/gateway/authorize_net_cim.rb +132 -0
  1081. data/core/app/models/gateway/beanstream.rb +187 -0
  1082. data/core/app/models/gateway/bogus.rb +80 -0
  1083. data/core/app/models/gateway/braintree.rb +88 -0
  1084. data/core/app/models/gateway/eway.rb +11 -0
  1085. data/core/app/models/gateway/linkpoint.rb +8 -0
  1086. data/core/app/models/gateway/pay_pal.rb +11 -0
  1087. data/core/app/models/gateway/sage_pay.rb +9 -0
  1088. data/core/app/models/image.rb +31 -0
  1089. data/core/app/models/inventory_unit.rb +119 -0
  1090. data/core/app/models/line_item.rb +95 -0
  1091. data/core/app/models/log_entry.rb +3 -0
  1092. data/core/app/models/mail_method.rb +23 -0
  1093. data/core/app/models/option_type.rb +9 -0
  1094. data/core/app/models/option_value.rb +5 -0
  1095. data/core/app/models/order.rb +484 -0
  1096. data/core/app/models/payment.rb +119 -0
  1097. data/core/app/models/payment_method.rb +56 -0
  1098. data/core/app/models/payment_method/check.rb +27 -0
  1099. data/core/app/models/preference.rb +51 -0
  1100. data/core/app/models/product.rb +258 -0
  1101. data/core/app/models/product_group.rb +216 -0
  1102. data/core/app/models/product_option_type.rb +5 -0
  1103. data/core/app/models/product_property.rb +15 -0
  1104. data/core/app/models/product_scope.rb +78 -0
  1105. data/core/app/models/property.rb +18 -0
  1106. data/core/app/models/prototype.rb +5 -0
  1107. data/core/app/models/return_authorization.rb +79 -0
  1108. data/core/app/models/role.rb +3 -0
  1109. data/core/app/models/shipment.rb +157 -0
  1110. data/core/app/models/shipping_category.rb +3 -0
  1111. data/core/app/models/shipping_method.rb +25 -0
  1112. data/core/app/models/spree/alert.rb +13 -0
  1113. data/core/app/models/state.rb +16 -0
  1114. data/core/app/models/state_event.rb +16 -0
  1115. data/core/app/models/tax_category.rb +15 -0
  1116. data/core/app/models/tax_rate.rb +16 -0
  1117. data/core/app/models/taxon.rb +52 -0
  1118. data/core/app/models/taxonomy.rb +20 -0
  1119. data/core/app/models/taxonomy.rb~ +22 -0
  1120. data/core/app/models/tracker.rb +5 -0
  1121. data/core/app/models/user.rb +21 -0
  1122. data/core/app/models/variant.rb +104 -0
  1123. data/core/app/models/zone.rb +84 -0
  1124. data/core/app/models/zone_member.rb +10 -0
  1125. data/core/app/stylesheets/_buttons.less +80 -0
  1126. data/core/app/stylesheets/_cart.less +24 -0
  1127. data/core/app/stylesheets/_checkout.less +76 -0
  1128. data/core/app/stylesheets/_checkout_progress.less +62 -0
  1129. data/core/app/stylesheets/_colors.less +16 -0
  1130. data/core/app/stylesheets/_forms.less +50 -0
  1131. data/core/app/stylesheets/_layout.less +77 -0
  1132. data/core/app/stylesheets/_messages.less +32 -0
  1133. data/core/app/stylesheets/_mixins.less +71 -0
  1134. data/core/app/stylesheets/_navigation.less +130 -0
  1135. data/core/app/stylesheets/_prices.less +18 -0
  1136. data/core/app/stylesheets/_product_details.less +56 -0
  1137. data/core/app/stylesheets/_product_lists.less +66 -0
  1138. data/core/app/stylesheets/_registration.less +24 -0
  1139. data/core/app/stylesheets/_reset.less +69 -0
  1140. data/core/app/stylesheets/_typography.less +158 -0
  1141. data/core/app/stylesheets/screen.less +13 -0
  1142. data/core/app/views/admin/adjustments/_adjustments_table.html.erb +24 -0
  1143. data/core/app/views/admin/adjustments/_form.html.erb +12 -0
  1144. data/core/app/views/admin/adjustments/edit.html.erb +13 -0
  1145. data/core/app/views/admin/adjustments/index.html.erb +4 -0
  1146. data/core/app/views/admin/adjustments/new.html.erb +14 -0
  1147. data/core/app/views/admin/configurations/index.html.erb +66 -0
  1148. data/core/app/views/admin/extensions/index.html.erb +23 -0
  1149. data/core/app/views/admin/general_settings/edit.html.erb +46 -0
  1150. data/core/app/views/admin/general_settings/show.html.erb +36 -0
  1151. data/core/app/views/admin/images/_form.html.erb +16 -0
  1152. data/core/app/views/admin/images/edit.html.erb +19 -0
  1153. data/core/app/views/admin/images/index.html.erb +69 -0
  1154. data/core/app/views/admin/images/new.html.erb +22 -0
  1155. data/core/app/views/admin/images/new.html.erb~ +22 -0
  1156. data/core/app/views/admin/inventory_settings/edit.html.erb +27 -0
  1157. data/core/app/views/admin/inventory_settings/show.html.erb +9 -0
  1158. data/core/app/views/admin/inventory_units/adjust.html.erb +33 -0
  1159. data/core/app/views/admin/mail_methods/_form.html.erb +96 -0
  1160. data/core/app/views/admin/mail_methods/edit.html.erb +9 -0
  1161. data/core/app/views/admin/mail_methods/index.html.erb +41 -0
  1162. data/core/app/views/admin/mail_methods/new.html.erb +9 -0
  1163. data/core/app/views/admin/option_types/_available.html.erb +27 -0
  1164. data/core/app/views/admin/option_types/_form.html.erb +11 -0
  1165. data/core/app/views/admin/option_types/_option_value_fields.html.erb +5 -0
  1166. data/core/app/views/admin/option_types/_selected.html.erb +26 -0
  1167. data/core/app/views/admin/option_types/available.js.erb +2 -0
  1168. data/core/app/views/admin/option_types/edit.html.erb +32 -0
  1169. data/core/app/views/admin/option_types/index.html.erb +33 -0
  1170. data/core/app/views/admin/option_types/new.erb +11 -0
  1171. data/core/app/views/admin/option_types/select.js.erb +3 -0
  1172. data/core/app/views/admin/option_types/selected.html.erb +6 -0
  1173. data/core/app/views/admin/orders/_add_product.html.erb +20 -0
  1174. data/core/app/views/admin/orders/_form.html.erb +67 -0
  1175. data/core/app/views/admin/orders/_line_item.html.erb +17 -0
  1176. data/core/app/views/admin/orders/_user_form.html.erb +42 -0
  1177. data/core/app/views/admin/orders/edit.html.erb +31 -0
  1178. data/core/app/views/admin/orders/history.html.erb +29 -0
  1179. data/core/app/views/admin/orders/index.html.erb +103 -0
  1180. data/core/app/views/admin/orders/new.html.erb +20 -0
  1181. data/core/app/views/admin/orders/show.html.erb +28 -0
  1182. data/core/app/views/admin/orders/user.html.erb +24 -0
  1183. data/core/app/views/admin/payment_methods/_form.html.erb +50 -0
  1184. data/core/app/views/admin/payment_methods/edit.html.erb +10 -0
  1185. data/core/app/views/admin/payment_methods/index.html.erb +49 -0
  1186. data/core/app/views/admin/payment_methods/new.html.erb +11 -0
  1187. data/core/app/views/admin/payments/_bill_address_form.html.erb +9 -0
  1188. data/core/app/views/admin/payments/_form.html.erb +15 -0
  1189. data/core/app/views/admin/payments/_list.html.erb +22 -0
  1190. data/core/app/views/admin/payments/_transaction_list.html.erb +24 -0
  1191. data/core/app/views/admin/payments/credit.html.erb +14 -0
  1192. data/core/app/views/admin/payments/index.html.erb +22 -0
  1193. data/core/app/views/admin/payments/new.html.erb +19 -0
  1194. data/core/app/views/admin/payments/show.html.erb +10 -0
  1195. data/core/app/views/admin/payments/source_forms/_check.html.erb +0 -0
  1196. data/core/app/views/admin/payments/source_forms/_gateway.html.erb +43 -0
  1197. data/core/app/views/admin/payments/source_views/_check.html.erb +0 -0
  1198. data/core/app/views/admin/payments/source_views/_gateway.html.erb +34 -0
  1199. data/core/app/views/admin/product_groups/_preview.html.erb +34 -0
  1200. data/core/app/views/admin/product_groups/_product_scope.html.erb +24 -0
  1201. data/core/app/views/admin/product_groups/edit.html.erb +56 -0
  1202. data/core/app/views/admin/product_groups/index.html.erb +37 -0
  1203. data/core/app/views/admin/product_groups/new.html.erb +12 -0
  1204. data/core/app/views/admin/product_groups/show.html.erb +32 -0
  1205. data/core/app/views/admin/product_groups/update.js.erb +8 -0
  1206. data/core/app/views/admin/product_properties/_product_property_fields.html.erb +11 -0
  1207. data/core/app/views/admin/product_properties/index.html.erb +55 -0
  1208. data/core/app/views/admin/product_scopes/_form.html.erb +106 -0
  1209. data/core/app/views/admin/product_scopes/create.js.erb +3 -0
  1210. data/core/app/views/admin/product_scopes/destroy.js.erb +3 -0
  1211. data/core/app/views/admin/product_scopes/new.html.erb +1 -0
  1212. data/core/app/views/admin/products/_form.html.erb +112 -0
  1213. data/core/app/views/admin/products/_option_types.html.erb +40 -0
  1214. data/core/app/views/admin/products/_properties_form.erb +7 -0
  1215. data/core/app/views/admin/products/edit.html.erb +10 -0
  1216. data/core/app/views/admin/products/edit.html.erb~ +10 -0
  1217. data/core/app/views/admin/products/index.html.erb +81 -0
  1218. data/core/app/views/admin/products/index.html.erb~ +81 -0
  1219. data/core/app/views/admin/products/new.erb +58 -0
  1220. data/core/app/views/admin/products/new.erb~ +53 -0
  1221. data/core/app/views/admin/products/show.html.erb +4 -0
  1222. data/core/app/views/admin/products/show.html.erb~ +4 -0
  1223. data/core/app/views/admin/properties/_form.html.erb +12 -0
  1224. data/core/app/views/admin/properties/edit.html.erb +10 -0
  1225. data/core/app/views/admin/properties/filtered.html.erb +1 -0
  1226. data/core/app/views/admin/properties/index.html.erb +40 -0
  1227. data/core/app/views/admin/properties/new.erb +11 -0
  1228. data/core/app/views/admin/prototypes/_form.html.erb +44 -0
  1229. data/core/app/views/admin/prototypes/available.html.erb +22 -0
  1230. data/core/app/views/admin/prototypes/edit.html.erb +9 -0
  1231. data/core/app/views/admin/prototypes/index.html.erb +37 -0
  1232. data/core/app/views/admin/prototypes/new.erb +11 -0
  1233. data/core/app/views/admin/prototypes/select.js.erb +4 -0
  1234. data/core/app/views/admin/reports/index.html.erb +19 -0
  1235. data/core/app/views/admin/reports/sales_total.html.erb +23 -0
  1236. data/core/app/views/admin/return_authorizations/_form.html.erb +78 -0
  1237. data/core/app/views/admin/return_authorizations/edit.html.erb +27 -0
  1238. data/core/app/views/admin/return_authorizations/index.html.erb +45 -0
  1239. data/core/app/views/admin/return_authorizations/new.html.erb +13 -0
  1240. data/core/app/views/admin/shared/_additional_field.html.erb +5 -0
  1241. data/core/app/views/admin/shared/_address.html.erb +5 -0
  1242. data/core/app/views/admin/shared/_address_form.html.erb +79 -0
  1243. data/core/app/views/admin/shared/_alert.html.erb +6 -0
  1244. data/core/app/views/admin/shared/_calculator_fields.html.erb +19 -0
  1245. data/core/app/views/admin/shared/_configuration_menu.html.erb +22 -0
  1246. data/core/app/views/admin/shared/_destroy.js.erb +16 -0
  1247. data/core/app/views/admin/shared/_edit_resource_links.html.erb +4 -0
  1248. data/core/app/views/admin/shared/_group_from_products_form.html.erb +12 -0
  1249. data/core/app/views/admin/shared/_new_adjustment_button.html.erb +8 -0
  1250. data/core/app/views/admin/shared/_new_resource_links.html.erb +4 -0
  1251. data/core/app/views/admin/shared/_order_details.html.erb +3 -0
  1252. data/core/app/views/admin/shared/_order_sub_menu.html.erb +0 -0
  1253. data/core/app/views/admin/shared/_order_tabs.html.erb +64 -0
  1254. data/core/app/views/admin/shared/_product_sub_menu.html.erb +11 -0
  1255. data/core/app/views/admin/shared/_product_tabs.html.erb +34 -0
  1256. data/core/app/views/admin/shared/_report_criteria.html.erb +15 -0
  1257. data/core/app/views/admin/shared/_show_resource_links.html.erb +5 -0
  1258. data/core/app/views/admin/shared/_tabs.html.erb +6 -0
  1259. data/core/app/views/admin/shared/_update_order_state.js +6 -0
  1260. data/core/app/views/admin/shipments/_form.html.erb +77 -0
  1261. data/core/app/views/admin/shipments/edit.html.erb +40 -0
  1262. data/core/app/views/admin/shipments/index.html.erb +47 -0
  1263. data/core/app/views/admin/shipments/new.html.erb +18 -0
  1264. data/core/app/views/admin/shipping_categories/_form.html.erb +6 -0
  1265. data/core/app/views/admin/shipping_categories/edit.html.erb +6 -0
  1266. data/core/app/views/admin/shipping_categories/index.html.erb +29 -0
  1267. data/core/app/views/admin/shipping_categories/new.html.erb +8 -0
  1268. data/core/app/views/admin/shipping_methods/_form.html.erb +26 -0
  1269. data/core/app/views/admin/shipping_methods/edit.html.erb +16 -0
  1270. data/core/app/views/admin/shipping_methods/index.html.erb +49 -0
  1271. data/core/app/views/admin/shipping_methods/new.html.erb +17 -0
  1272. data/core/app/views/admin/states/_form.html.erb +9 -0
  1273. data/core/app/views/admin/states/_state_list.html.erb +34 -0
  1274. data/core/app/views/admin/states/edit.html.erb +10 -0
  1275. data/core/app/views/admin/states/index.html.erb +16 -0
  1276. data/core/app/views/admin/states/new.erb +8 -0
  1277. data/core/app/views/admin/tax_categories/_form.html.erb +12 -0
  1278. data/core/app/views/admin/tax_categories/edit.html.erb +10 -0
  1279. data/core/app/views/admin/tax_categories/index.html.erb +44 -0
  1280. data/core/app/views/admin/tax_categories/new.html.erb +10 -0
  1281. data/core/app/views/admin/tax_categories/show.html.erb +1 -0
  1282. data/core/app/views/admin/tax_rates/_form.html.erb +16 -0
  1283. data/core/app/views/admin/tax_rates/edit.html.erb +6 -0
  1284. data/core/app/views/admin/tax_rates/index.html.erb +34 -0
  1285. data/core/app/views/admin/tax_rates/new.html.erb +8 -0
  1286. data/core/app/views/admin/tax_settings/edit.html.erb +17 -0
  1287. data/core/app/views/admin/tax_settings/show.html.erb +14 -0
  1288. data/core/app/views/admin/taxonomies/_form.html.erb +10 -0
  1289. data/core/app/views/admin/taxonomies/_form.html.erb~ +11 -0
  1290. data/core/app/views/admin/taxonomies/_js_head.html.erb +9 -0
  1291. data/core/app/views/admin/taxonomies/_list.html.erb +19 -0
  1292. data/core/app/views/admin/taxonomies/_list.html.erb~ +20 -0
  1293. data/core/app/views/admin/taxonomies/_taxon.html.erb +12 -0
  1294. data/core/app/views/admin/taxonomies/edit.erb +49 -0
  1295. data/core/app/views/admin/taxonomies/get_children.json.erb +9 -0
  1296. data/core/app/views/admin/taxonomies/index.html.erb +16 -0
  1297. data/core/app/views/admin/taxonomies/new.html.erb +12 -0
  1298. data/core/app/views/admin/taxons/_form.html.erb +23 -0
  1299. data/core/app/views/admin/taxons/_taxon_table.html.erb +23 -0
  1300. data/core/app/views/admin/taxons/available.js.erb +33 -0
  1301. data/core/app/views/admin/taxons/edit.html.erb +11 -0
  1302. data/core/app/views/admin/taxons/remove.html.erb +1 -0
  1303. data/core/app/views/admin/taxons/select.js.erb +2 -0
  1304. data/core/app/views/admin/taxons/selected.html.erb +43 -0
  1305. data/core/app/views/admin/trackers/_form.html.erb +26 -0
  1306. data/core/app/views/admin/trackers/edit.html.erb +8 -0
  1307. data/core/app/views/admin/trackers/index.html.erb +41 -0
  1308. data/core/app/views/admin/trackers/new.html.erb +9 -0
  1309. data/core/app/views/admin/users/_form.html.erb +35 -0
  1310. data/core/app/views/admin/users/edit.html.erb +14 -0
  1311. data/core/app/views/admin/users/index.html.erb +63 -0
  1312. data/core/app/views/admin/users/new.html.erb +14 -0
  1313. data/core/app/views/admin/users/show.html.erb +21 -0
  1314. data/core/app/views/admin/variants/_form.html.erb +40 -0
  1315. data/core/app/views/admin/variants/edit.html.erb +13 -0
  1316. data/core/app/views/admin/variants/index.html.erb +66 -0
  1317. data/core/app/views/admin/variants/new.erb +11 -0
  1318. data/core/app/views/admin/zones/_country_member.html.erb +5 -0
  1319. data/core/app/views/admin/zones/_form.html.erb +29 -0
  1320. data/core/app/views/admin/zones/_member_type.html.erb +15 -0
  1321. data/core/app/views/admin/zones/_state_member.html.erb +5 -0
  1322. data/core/app/views/admin/zones/_zone_member.html.erb +5 -0
  1323. data/core/app/views/admin/zones/edit.html.erb +10 -0
  1324. data/core/app/views/admin/zones/index.html.erb +41 -0
  1325. data/core/app/views/admin/zones/new.html.erb +10 -0
  1326. data/core/app/views/checkout/_address.html.erb +163 -0
  1327. data/core/app/views/checkout/_confirm.html.erb +11 -0
  1328. data/core/app/views/checkout/_delivery.html.erb +25 -0
  1329. data/core/app/views/checkout/_payment.html.erb +30 -0
  1330. data/core/app/views/checkout/_summary.html.erb +21 -0
  1331. data/core/app/views/checkout/edit.html.erb +20 -0
  1332. data/core/app/views/checkout/payment/_check.html.erb +0 -0
  1333. data/core/app/views/checkout/payment/_gateway.html.erb +31 -0
  1334. data/core/app/views/checkout/registration.html.erb +20 -0
  1335. data/core/app/views/content/cvv.html.erb +13 -0
  1336. data/core/app/views/layouts/admin.html.erb +75 -0
  1337. data/core/app/views/layouts/spree_application.html.erb +52 -0
  1338. data/core/app/views/order_mailer/cancel_email.text.erb +16 -0
  1339. data/core/app/views/order_mailer/confirm_email.text.erb +19 -0
  1340. data/core/app/views/orders/_form.html.erb +19 -0
  1341. data/core/app/views/orders/_line_item.html.erb +41 -0
  1342. data/core/app/views/orders/edit.html.erb +41 -0
  1343. data/core/app/views/orders/new.html.erb +9 -0
  1344. data/core/app/views/orders/show.html.erb +14 -0
  1345. data/core/app/views/products/_cart_form.html.erb +54 -0
  1346. data/core/app/views/products/_cart_form.html.erb~ +54 -0
  1347. data/core/app/views/products/_image.html.erb +5 -0
  1348. data/core/app/views/products/_image.html.erb~ +5 -0
  1349. data/core/app/views/products/_properties.html.erb +8 -0
  1350. data/core/app/views/products/_taxons.html.erb +16 -0
  1351. data/core/app/views/products/_thumbnails.html.erb +40 -0
  1352. data/core/app/views/products/index.html.erb +37 -0
  1353. data/core/app/views/products/show.html.erb +31 -0
  1354. data/core/app/views/shared/_additional_field.html.erb +7 -0
  1355. data/core/app/views/shared/_admin_head.html.erb +34 -0
  1356. data/core/app/views/shared/_basic_layout.html.erb +44 -0
  1357. data/core/app/views/shared/_edit_resource_links.html.erb +1 -0
  1358. data/core/app/views/shared/_end_soon.html.erb +43 -0
  1359. data/core/app/views/shared/_error_messages.html.erb +11 -0
  1360. data/core/app/views/shared/_filters.html.erb +27 -0
  1361. data/core/app/views/shared/_footer.html.erb +13 -0
  1362. data/core/app/views/shared/_google_analytics.html.erb +40 -0
  1363. data/core/app/views/shared/_head.html.erb +10 -0
  1364. data/core/app/views/shared/_method_error_message.html.erb +4 -0
  1365. data/core/app/views/shared/_nav_bar.html.erb +5 -0
  1366. data/core/app/views/shared/_new_release.html.erb +42 -0
  1367. data/core/app/views/shared/_new_resource_links.html.erb +1 -0
  1368. data/core/app/views/shared/_order_details.html.erb +50 -0
  1369. data/core/app/views/shared/_products.html.erb +42 -0
  1370. data/core/app/views/shared/_search.html.erb +9 -0
  1371. data/core/app/views/shared/_show_resource_links.html.erb +3 -0
  1372. data/core/app/views/shared/_store_menu.html.erb +3 -0
  1373. data/core/app/views/shared/_taxonomies.html.erb +19 -0
  1374. data/core/app/views/shared/_test_hook.html.erb +1 -0
  1375. data/core/app/views/shared/_upcoming_products.html.erb +42 -0
  1376. data/core/app/views/shipment_mailer/shipped_email.text.erb +15 -0
  1377. data/core/app/views/states/index.js.erb +1 -0
  1378. data/core/app/views/taxons/_taxon.html.erb +4 -0
  1379. data/core/app/views/taxons/show.html.erb +19 -0
  1380. data/core/config/cucumber.yml +10 -0
  1381. data/core/config/initializers/form_builder.rb +19 -0
  1382. data/core/config/initializers/load_unobtrusive_date_picker.rb +8 -0
  1383. data/core/config/initializers/spree.rb +29 -0
  1384. data/core/config/initializers/workarounds_for_ruby19.rb +72 -0
  1385. data/core/config/locales/en.yml +1015 -0
  1386. data/core/config/routes.rb +207 -0
  1387. data/core/db/default/countries.yml +1583 -0
  1388. data/core/db/default/roles.yml +7 -0
  1389. data/core/db/default/states.yml +256 -0
  1390. data/core/db/default/zone_members.yml +169 -0
  1391. data/core/db/default/zones.yml +13 -0
  1392. data/core/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  1393. data/core/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  1394. data/core/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  1395. data/core/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  1396. data/core/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  1397. data/core/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  1398. data/core/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  1399. data/core/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  1400. data/core/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  1401. data/core/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  1402. data/core/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  1403. data/core/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  1404. data/core/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  1405. data/core/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  1406. data/core/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  1407. data/core/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  1408. data/core/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  1409. data/core/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  1410. data/core/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  1411. data/core/db/migrate/20100105090147_add_cost_price.rb +9 -0
  1412. data/core/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  1413. data/core/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  1414. data/core/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  1415. data/core/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  1416. data/core/db/migrate/20100113203104_create_trackers.rb +14 -0
  1417. data/core/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  1418. data/core/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  1419. data/core/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  1420. data/core/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  1421. data/core/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  1422. data/core/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  1423. data/core/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  1424. data/core/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  1425. data/core/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  1426. data/core/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  1427. data/core/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  1428. data/core/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  1429. data/core/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  1430. data/core/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  1431. data/core/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  1432. data/core/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  1433. data/core/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  1434. data/core/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  1435. data/core/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  1436. data/core/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  1437. data/core/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  1438. data/core/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  1439. data/core/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  1440. data/core/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  1441. data/core/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  1442. data/core/db/migrate/20100811205836_drop_order_token.rb +11 -0
  1443. data/core/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  1444. data/core/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  1445. data/core/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  1446. data/core/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  1447. data/core/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  1448. data/core/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  1449. data/core/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  1450. data/core/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  1451. data/core/db/migrate/20100903203949_email_for_orders.rb +9 -0
  1452. data/core/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  1453. data/core/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  1454. data/core/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  1455. data/core/db/migrate/20101026184700_create_log_entries.rb +15 -0
  1456. data/core/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  1457. data/core/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  1458. data/core/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  1459. data/core/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  1460. data/core/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  1461. data/core/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  1462. data/core/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  1463. data/core/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  1464. data/core/db/migrate/20101026185022_update_order_state.rb +8 -0
  1465. data/core/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  1466. data/core/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  1467. data/core/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  1468. data/core/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  1469. data/core/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  1470. data/core/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  1471. data/core/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  1472. data/core/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  1473. data/core/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  1474. data/core/db/sample/users.rb +61 -0
  1475. data/core/db/seeds.rb +3 -0
  1476. data/core/features/admin/configuration/analytics_tracker.feature +27 -0
  1477. data/core/features/admin/configuration/general_settings.feature +22 -0
  1478. data/core/features/admin/configuration/inventory_settings.feature +15 -0
  1479. data/core/features/admin/configuration/mail_methods.feature +32 -0
  1480. data/core/features/admin/configuration/payment_methods.feature +41 -0
  1481. data/core/features/admin/configuration/shipping_methods.feature +21 -0
  1482. data/core/features/admin/configuration/states.feature +42 -0
  1483. data/core/features/admin/configuration/tax_categories.feature +40 -0
  1484. data/core/features/admin/configuration/taxonomies.feature +42 -0
  1485. data/core/features/admin/configuration/zones.feature +25 -0
  1486. data/core/features/admin/homepage.feature +45 -0
  1487. data/core/features/admin/orders/adjustments.feature +76 -0
  1488. data/core/features/admin/orders/customer_details.feature +45 -0
  1489. data/core/features/admin/orders/history.feature +10 -0
  1490. data/core/features/admin/orders/listing.feature +55 -0
  1491. data/core/features/admin/orders/order_details.feature +74 -0
  1492. data/core/features/admin/orders/payments.feature +84 -0
  1493. data/core/features/admin/orders/return_authorizations.feature +0 -0
  1494. data/core/features/admin/orders/shipments.feature +38 -0
  1495. data/core/features/admin/products/edit/images.feature +22 -0
  1496. data/core/features/admin/products/edit/option_types.feature +34 -0
  1497. data/core/features/admin/products/edit/product_details.feature +16 -0
  1498. data/core/features/admin/products/edit/product_properties.feature +57 -0
  1499. data/core/features/admin/products/edit/taxons.feature +26 -0
  1500. data/core/features/admin/products/edit/variants.feature +67 -0
  1501. data/core/features/admin/products/option_types.feature +37 -0
  1502. data/core/features/admin/products/product_groups.feature +244 -0
  1503. data/core/features/admin/products/products.feature +127 -0
  1504. data/core/features/admin/products/properties.feature +41 -0
  1505. data/core/features/admin/products/prototypes.feature +47 -0
  1506. data/core/features/admin/reports.feature +17 -0
  1507. data/core/features/admin/users.feature +77 -0
  1508. data/core/features/products.feature +73 -0
  1509. data/core/features/step_definitions/admin/configurations.rb +59 -0
  1510. data/core/features/step_definitions/admin/configurations/mail_methods.rb +11 -0
  1511. data/core/features/step_definitions/admin/configurations/payment_method.rb +13 -0
  1512. data/core/features/step_definitions/admin/configurations/tax_categories.rb +10 -0
  1513. data/core/features/step_definitions/admin/configurations/taxonomies.rb +8 -0
  1514. data/core/features/step_definitions/admin/option_types.rb +9 -0
  1515. data/core/features/step_definitions/admin/orders.rb +68 -0
  1516. data/core/features/step_definitions/admin/product_groups.rb +62 -0
  1517. data/core/features/step_definitions/admin/products.rb +39 -0
  1518. data/core/features/step_definitions/admin/products/images.rb +4 -0
  1519. data/core/features/step_definitions/admin/products/product_properties.rb +9 -0
  1520. data/core/features/step_definitions/admin/products/taxons.rb +19 -0
  1521. data/core/features/step_definitions/admin/properties.rb +16 -0
  1522. data/core/features/step_definitions/admin/prototypes.rb +9 -0
  1523. data/core/features/step_definitions/admin/reports.rb +23 -0
  1524. data/core/features/step_definitions/admin/users.rb +15 -0
  1525. data/core/features/step_definitions/orders/adjustments.rb +8 -0
  1526. data/core/features/step_definitions/orders/history.rb +19 -0
  1527. data/core/features/step_definitions/orders/order_details.rb +46 -0
  1528. data/core/features/step_definitions/orders/payments.rb +31 -0
  1529. data/core/features/step_definitions/orders/shipments.rb +9 -0
  1530. data/core/features/step_definitions/product.rb +134 -0
  1531. data/core/features/step_definitions/ror_ringer.jpeg +0 -0
  1532. data/core/features/support/env.rb +5 -0
  1533. data/core/features/support/paths.rb +42 -0
  1534. data/core/lib/custom_fixtures.rb +7 -0
  1535. data/core/lib/generators/spree_core/upgrade_generator.rb +23 -0
  1536. data/core/lib/generators/templates/config/initializers/%file_name%.rb.tt +1 -0
  1537. data/core/lib/generators/templates/config/locales/%current_locale%.yml.tt +2 -0
  1538. data/core/lib/generators/templates/config/routes.rb +3 -0
  1539. data/core/lib/middleware/seo_assist.rb +44 -0
  1540. data/core/lib/product_filters.rb +179 -0
  1541. data/core/lib/redirect_legacy_product_url.rb +13 -0
  1542. data/core/lib/scopes.rb +69 -0
  1543. data/core/lib/scopes/dynamic.rb +31 -0
  1544. data/core/lib/scopes/product.rb +266 -0
  1545. data/core/lib/scopes/variant.rb +18 -0
  1546. data/core/lib/spree/calculated_adjustments.rb +69 -0
  1547. data/core/lib/spree/config.rb +33 -0
  1548. data/core/lib/spree/current_order.rb +30 -0
  1549. data/core/lib/spree/file_utilz.rb +73 -0
  1550. data/core/lib/spree/gateway_error.rb +3 -0
  1551. data/core/lib/spree/mail_interceptor.rb +23 -0
  1552. data/core/lib/spree/mail_settings.rb +33 -0
  1553. data/core/lib/spree/preference_access.rb +27 -0
  1554. data/core/lib/spree/search/base.rb +64 -0
  1555. data/core/lib/spree_base.rb +116 -0
  1556. data/core/lib/spree_core.rb +94 -0
  1557. data/core/lib/spree_core/action_callbacks.rb +26 -0
  1558. data/core/lib/spree_core/authorize_net_cim_hack.rb +871 -0
  1559. data/core/lib/spree_core/delegate_belongs_to.rb +89 -0
  1560. data/core/lib/spree_core/enumerable_constants.rb +209 -0
  1561. data/core/lib/spree_core/ext/active_record.rb +15 -0
  1562. data/core/lib/spree_core/ext/array.rb +14 -0
  1563. data/core/lib/spree_core/ext/hash.rb +75 -0
  1564. data/core/lib/spree_core/ext/string.rb +10 -0
  1565. data/core/lib/spree_core/preferences/model_hooks.rb +293 -0
  1566. data/core/lib/spree_core/preferences/preference_definition.rb +53 -0
  1567. data/core/lib/spree_core/railtie.rb +63 -0
  1568. data/core/lib/spree_core/spree_custom_responder.rb +29 -0
  1569. data/core/lib/spree_core/spree_respond_with.rb +57 -0
  1570. data/core/lib/spree_core/ssl_requirement.rb +104 -0
  1571. data/core/lib/spree_core/testing_support/factories.rb +13 -0
  1572. data/core/lib/spree_core/testing_support/factories/address_factory.rb +20 -0
  1573. data/core/lib/spree_core/testing_support/factories/adjustment_factory.rb +6 -0
  1574. data/core/lib/spree_core/testing_support/factories/calculator_factory.rb +5 -0
  1575. data/core/lib/spree_core/testing_support/factories/configuraion_factory.rb +4 -0
  1576. data/core/lib/spree_core/testing_support/factories/country_factory.rb +7 -0
  1577. data/core/lib/spree_core/testing_support/factories/creditcard_factory.rb +11 -0
  1578. data/core/lib/spree_core/testing_support/factories/inventory_unit_factory.rb +7 -0
  1579. data/core/lib/spree_core/testing_support/factories/line_item_factory.rb +8 -0
  1580. data/core/lib/spree_core/testing_support/factories/mail_method_factory.rb +4 -0
  1581. data/core/lib/spree_core/testing_support/factories/options_factory.rb +10 -0
  1582. data/core/lib/spree_core/testing_support/factories/order_factory.rb +18 -0
  1583. data/core/lib/spree_core/testing_support/factories/payment_factory.rb +26 -0
  1584. data/core/lib/spree_core/testing_support/factories/payment_method_factory.rb +17 -0
  1585. data/core/lib/spree_core/testing_support/factories/product_factory.rb +16 -0
  1586. data/core/lib/spree_core/testing_support/factories/product_group_factory.rb +3 -0
  1587. data/core/lib/spree_core/testing_support/factories/product_option_type_factory.rb +4 -0
  1588. data/core/lib/spree_core/testing_support/factories/product_property_factory.rb +4 -0
  1589. data/core/lib/spree_core/testing_support/factories/product_scope_factory.rb +6 -0
  1590. data/core/lib/spree_core/testing_support/factories/property_factory.rb +4 -0
  1591. data/core/lib/spree_core/testing_support/factories/prototype_factory.rb +4 -0
  1592. data/core/lib/spree_core/testing_support/factories/return_authorization_factory.rb +8 -0
  1593. data/core/lib/spree_core/testing_support/factories/role_factory.rb +9 -0
  1594. data/core/lib/spree_core/testing_support/factories/shipment_factory.rb +9 -0
  1595. data/core/lib/spree_core/testing_support/factories/shipping_category_factory.rb +5 -0
  1596. data/core/lib/spree_core/testing_support/factories/shipping_method_factory.rb +11 -0
  1597. data/core/lib/spree_core/testing_support/factories/state_factory.rb +11 -0
  1598. data/core/lib/spree_core/testing_support/factories/tax_category_factory.rb +8 -0
  1599. data/core/lib/spree_core/testing_support/factories/tax_rate_factory.rb +5 -0
  1600. data/core/lib/spree_core/testing_support/factories/taxon_factory.rb +5 -0
  1601. data/core/lib/spree_core/testing_support/factories/taxonomy_factory.rb +3 -0
  1602. data/core/lib/spree_core/testing_support/factories/tracker_factory.rb +5 -0
  1603. data/core/lib/spree_core/testing_support/factories/user_factory.rb +15 -0
  1604. data/core/lib/spree_core/testing_support/factories/variant_factory.rb +14 -0
  1605. data/core/lib/spree_core/testing_support/factories/zone_factory.rb +18 -0
  1606. data/core/lib/spree_core/theme_support.rb +4 -0
  1607. data/core/lib/spree_core/theme_support/hook.rb +51 -0
  1608. data/core/lib/spree_core/theme_support/hook_listener.rb +68 -0
  1609. data/core/lib/spree_core/theme_support/hook_modifier.rb +35 -0
  1610. data/core/lib/spree_core/theme_support/more_patches.rb +118 -0
  1611. data/core/lib/spree_core/version.rb +5 -0
  1612. data/core/lib/store_helpers.rb +10 -0
  1613. data/core/lib/tasks/common.rb +30 -0
  1614. data/core/lib/tasks/core.rake +105 -0
  1615. data/core/lib/tasks/install.rake +26 -0
  1616. data/core/lib/tasks/rake_util.rb +19 -0
  1617. data/core/lib/tasks/taxon.rake +14 -0
  1618. data/core/lib/tasks/themes.rake +34 -0
  1619. data/core/public/images/add-to-cart.png +0 -0
  1620. data/core/public/images/admin/bg/active-tab.png +0 -0
  1621. data/core/public/images/admin/bg/admin_tab_back.png +0 -0
  1622. data/core/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  1623. data/core/public/images/admin/bg/content-back-blue.png +0 -0
  1624. data/core/public/images/admin/bg/content-back-green.png +0 -0
  1625. data/core/public/images/admin/bg/content-back.png +0 -0
  1626. data/core/public/images/admin/bg/flash-error.png +0 -0
  1627. data/core/public/images/admin/bg/flash-notice.png +0 -0
  1628. data/core/public/images/admin/bg/green-stripes.gif +0 -0
  1629. data/core/public/images/admin/bg/green-stripes.png +0 -0
  1630. data/core/public/images/admin/bg/grid_header_back.png +0 -0
  1631. data/core/public/images/admin/bg/grid_header_back_green.png +0 -0
  1632. data/core/public/images/admin/bg/header-bg.png +0 -0
  1633. data/core/public/images/admin/bg/header.png +0 -0
  1634. data/core/public/images/admin/bg/header_bg.jpg +0 -0
  1635. data/core/public/images/admin/bg/menu-current.png +0 -0
  1636. data/core/public/images/admin/bg/red-stripes.gif +0 -0
  1637. data/core/public/images/admin/bg/red-stripes.png +0 -0
  1638. data/core/public/images/admin/bg/spree_50.png +0 -0
  1639. data/core/public/images/admin/bg/subnav-divider.png +0 -0
  1640. data/core/public/images/admin/bg/subnav.png +0 -0
  1641. data/core/public/images/admin/bg/tab-back.png +0 -0
  1642. data/core/public/images/admin/buttons/blue/left_01.png +0 -0
  1643. data/core/public/images/admin/buttons/blue/right_01.png +0 -0
  1644. data/core/public/images/admin/buttons/drag-handle-green.png +0 -0
  1645. data/core/public/images/admin/buttons/green/left_01.png +0 -0
  1646. data/core/public/images/admin/buttons/green/right_01.png +0 -0
  1647. data/core/public/images/admin/buttons/left_01.png +0 -0
  1648. data/core/public/images/admin/buttons/left_01_small.png +0 -0
  1649. data/core/public/images/admin/buttons/orange/left_03.png +0 -0
  1650. data/core/public/images/admin/buttons/orange/right_03.png +0 -0
  1651. data/core/public/images/admin/buttons/right_01.png +0 -0
  1652. data/core/public/images/admin/buttons/right_01_small.png +0 -0
  1653. data/core/public/images/admin/icons/16x16/1.png +0 -0
  1654. data/core/public/images/admin/icons/16x16/10.png +0 -0
  1655. data/core/public/images/admin/icons/16x16/2.png +0 -0
  1656. data/core/public/images/admin/icons/16x16/3.png +0 -0
  1657. data/core/public/images/admin/icons/16x16/4.png +0 -0
  1658. data/core/public/images/admin/icons/16x16/5.png +0 -0
  1659. data/core/public/images/admin/icons/16x16/6.png +0 -0
  1660. data/core/public/images/admin/icons/16x16/7.png +0 -0
  1661. data/core/public/images/admin/icons/16x16/8.png +0 -0
  1662. data/core/public/images/admin/icons/16x16/9.png +0 -0
  1663. data/core/public/images/admin/icons/32x32/1.png +0 -0
  1664. data/core/public/images/admin/icons/32x32/10.png +0 -0
  1665. data/core/public/images/admin/icons/32x32/11.png +0 -0
  1666. data/core/public/images/admin/icons/32x32/2.png +0 -0
  1667. data/core/public/images/admin/icons/32x32/3.png +0 -0
  1668. data/core/public/images/admin/icons/32x32/4.png +0 -0
  1669. data/core/public/images/admin/icons/32x32/5.png +0 -0
  1670. data/core/public/images/admin/icons/32x32/6.png +0 -0
  1671. data/core/public/images/admin/icons/32x32/7.png +0 -0
  1672. data/core/public/images/admin/icons/32x32/8.png +0 -0
  1673. data/core/public/images/admin/icons/32x32/9.png +0 -0
  1674. data/core/public/images/admin/icons/accept.png +0 -0
  1675. data/core/public/images/admin/icons/add.gif +0 -0
  1676. data/core/public/images/admin/icons/add.png +0 -0
  1677. data/core/public/images/admin/icons/arrow-down.gif +0 -0
  1678. data/core/public/images/admin/icons/cross.png +0 -0
  1679. data/core/public/images/admin/icons/delete.gif +0 -0
  1680. data/core/public/images/admin/icons/delete.png +0 -0
  1681. data/core/public/images/admin/icons/drag.gif +0 -0
  1682. data/core/public/images/admin/icons/edit.gif +0 -0
  1683. data/core/public/images/admin/icons/edit.png +0 -0
  1684. data/core/public/images/admin/icons/email.png +0 -0
  1685. data/core/public/images/admin/icons/error.png +0 -0
  1686. data/core/public/images/admin/icons/exclamation.png +0 -0
  1687. data/core/public/images/admin/icons/feed.png +0 -0
  1688. data/core/public/images/admin/icons/pdf.png +0 -0
  1689. data/core/public/images/admin/icons/reorder.gif +0 -0
  1690. data/core/public/images/admin/icons/search.gif +0 -0
  1691. data/core/public/images/admin/icons/send-email.png +0 -0
  1692. data/core/public/images/admin/icons/stop.png +0 -0
  1693. data/core/public/images/admin/icons/tick.png +0 -0
  1694. data/core/public/images/admin/icons/up.gif +0 -0
  1695. data/core/public/images/admin/icons/xls.png +0 -0
  1696. data/core/public/images/admin/tabs/off-left.png +0 -0
  1697. data/core/public/images/admin/tabs/off-right.png +0 -0
  1698. data/core/public/images/admin/tabs/on-left.png +0 -0
  1699. data/core/public/images/admin/tabs/on-right.png +0 -0
  1700. data/core/public/images/ajax_loader.gif +0 -0
  1701. data/core/public/images/amex_cid.gif +0 -0
  1702. data/core/public/images/bg-button-hover.png +0 -0
  1703. data/core/public/images/bg-button-pressed.png +0 -0
  1704. data/core/public/images/bg-button.gif +0 -0
  1705. data/core/public/images/bg-button.png +0 -0
  1706. data/core/public/images/blue/left_01.png +0 -0
  1707. data/core/public/images/blue/right_01.png +0 -0
  1708. data/core/public/images/body-back.png +0 -0
  1709. data/core/public/images/bottom_shine.png +0 -0
  1710. data/core/public/images/breadcrumb.gif +0 -0
  1711. data/core/public/images/button-dark-hover.png +0 -0
  1712. data/core/public/images/button-dark.png +0 -0
  1713. data/core/public/images/buttons/bg-button-hover.png +0 -0
  1714. data/core/public/images/buttons/bg-button-pressed.png +0 -0
  1715. data/core/public/images/buttons/bg-button.gif +0 -0
  1716. data/core/public/images/buttons/bg-button.png +0 -0
  1717. data/core/public/images/buttons/blue/left_01.png +0 -0
  1718. data/core/public/images/buttons/blue/right_01.png +0 -0
  1719. data/core/public/images/buttons/button-dark-hover.png +0 -0
  1720. data/core/public/images/buttons/button-dark.png +0 -0
  1721. data/core/public/images/buttons/drag-handle-green.png +0 -0
  1722. data/core/public/images/buttons/green/left_01.png +0 -0
  1723. data/core/public/images/buttons/green/right_01.png +0 -0
  1724. data/core/public/images/buttons/left_01.png +0 -0
  1725. data/core/public/images/buttons/left_01_small.png +0 -0
  1726. data/core/public/images/buttons/orange/left_03.png +0 -0
  1727. data/core/public/images/buttons/orange/right_03.png +0 -0
  1728. data/core/public/images/buttons/right_01.png +0 -0
  1729. data/core/public/images/buttons/right_01_small.png +0 -0
  1730. data/core/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  1731. data/core/public/images/buttons/top-shine.png +0 -0
  1732. data/core/public/images/calendar_date_select/calendar.gif +0 -0
  1733. data/core/public/images/cart-empty.png +0 -0
  1734. data/core/public/images/cart-empty_x32.png +0 -0
  1735. data/core/public/images/cart-full.png +0 -0
  1736. data/core/public/images/cart-full_x32.png +0 -0
  1737. data/core/public/images/checkout.png +0 -0
  1738. data/core/public/images/creditcard.gif +0 -0
  1739. data/core/public/images/datepicker/backstripes.gif +0 -0
  1740. data/core/public/images/datepicker/bg_header.jpg +0 -0
  1741. data/core/public/images/datepicker/bullet1.gif +0 -0
  1742. data/core/public/images/datepicker/bullet2.gif +0 -0
  1743. data/core/public/images/datepicker/cal.gif +0 -0
  1744. data/core/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  1745. data/core/public/images/discover_cid.gif +0 -0
  1746. data/core/public/images/drag-handle-green.png +0 -0
  1747. data/core/public/images/favicon.ico +0 -0
  1748. data/core/public/images/green/left_01.png +0 -0
  1749. data/core/public/images/green/right_01.png +0 -0
  1750. data/core/public/images/grid.png +0 -0
  1751. data/core/public/images/left_01.png +0 -0
  1752. data/core/public/images/left_01_small.png +0 -0
  1753. data/core/public/images/master_cid.jpg +0 -0
  1754. data/core/public/images/menu-current.png +0 -0
  1755. data/core/public/images/menu-hover.png +0 -0
  1756. data/core/public/images/noimage/mini.jpg +0 -0
  1757. data/core/public/images/noimage/product.jpg +0 -0
  1758. data/core/public/images/noimage/small.jpg +0 -0
  1759. data/core/public/images/openid-inputicon.gif +0 -0
  1760. data/core/public/images/orange/left_03.png +0 -0
  1761. data/core/public/images/orange/right_03.png +0 -0
  1762. data/core/public/images/progress.gif +0 -0
  1763. data/core/public/images/reorder.jpg +0 -0
  1764. data/core/public/images/right_01.png +0 -0
  1765. data/core/public/images/right_01_small.png +0 -0
  1766. data/core/public/images/separator.png +0 -0
  1767. data/core/public/images/shadow-top.png +0 -0
  1768. data/core/public/images/shadow_top.png +0 -0
  1769. data/core/public/images/spinner.gif +0 -0
  1770. data/core/public/images/spree.jpg +0 -0
  1771. data/core/public/images/spree/progress.gif +0 -0
  1772. data/core/public/images/spree/spinner.gif +0 -0
  1773. data/core/public/images/spree/spree.jpg +0 -0
  1774. data/core/public/images/step-progress/completed-completed.gif +0 -0
  1775. data/core/public/images/step-progress/completed-current.gif +0 -0
  1776. data/core/public/images/step-progress/completed-first.gif +0 -0
  1777. data/core/public/images/step-progress/current-first.gif +0 -0
  1778. data/core/public/images/step-progress/current-incomplete.gif +0 -0
  1779. data/core/public/images/step-progress/current-right.gif +0 -0
  1780. data/core/public/images/step-progress/incomplete-incomplete.gif +0 -0
  1781. data/core/public/images/step-progress/incomplete-right.gif +0 -0
  1782. data/core/public/images/steps/1.png +0 -0
  1783. data/core/public/images/steps/1_small.png +0 -0
  1784. data/core/public/images/steps/2.png +0 -0
  1785. data/core/public/images/steps/2_small.png +0 -0
  1786. data/core/public/images/steps/3.png +0 -0
  1787. data/core/public/images/steps/3_small.png +0 -0
  1788. data/core/public/images/steps/4.png +0 -0
  1789. data/core/public/images/steps/4_small.png +0 -0
  1790. data/core/public/images/steps/5.png +0 -0
  1791. data/core/public/images/steps/5_small.png +0 -0
  1792. data/core/public/images/steps/6.png +0 -0
  1793. data/core/public/images/steps/6_small.png +0 -0
  1794. data/core/public/images/sxsw-ribbon-v1.png +0 -0
  1795. data/core/public/images/tab_bottom.gif +0 -0
  1796. data/core/public/images/tile-header.png +0 -0
  1797. data/core/public/images/tile-slider.png +0 -0
  1798. data/core/public/images/top-shine.png +0 -0
  1799. data/core/public/images/tree-nav-icons/bullet.gif +0 -0
  1800. data/core/public/images/tree-nav-icons/minus.gif +0 -0
  1801. data/core/public/images/tree-nav-icons/plus.gif +0 -0
  1802. data/core/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  1803. data/core/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  1804. data/core/public/images/update.png +0 -0
  1805. data/core/public/images/visa_cid.gif +0 -0
  1806. data/core/public/images/wrapper-back-2.png +0 -0
  1807. data/core/public/images/wrapper-back.png +0 -0
  1808. data/core/public/images/yui-menubaritem_submenuindicator.png +0 -0
  1809. data/core/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  1810. data/core/public/images/yui-menuitem_checkbox.png +0 -0
  1811. data/core/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  1812. data/core/public/images/yui-menuitem_submenuindicator.png +0 -0
  1813. data/core/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  1814. data/core/public/images/yui-sprite.png +0 -0
  1815. data/core/public/javascripts/additional-methods.js +236 -0
  1816. data/core/public/javascripts/admin.js +232 -0
  1817. data/core/public/javascripts/admin/address_states.js +25 -0
  1818. data/core/public/javascripts/admin/checkouts/edit.js +130 -0
  1819. data/core/public/javascripts/admin/orders/edit.js +23 -0
  1820. data/core/public/javascripts/admin/orders/edit_form.js +16 -0
  1821. data/core/public/javascripts/admin/payments/new.js +9 -0
  1822. data/core/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  1823. data/core/public/javascripts/application.js +12 -0
  1824. data/core/public/javascripts/calculator.js +15 -0
  1825. data/core/public/javascripts/checkout.js +75 -0
  1826. data/core/public/javascripts/datepicker.js +1445 -0
  1827. data/core/public/javascripts/gateway.js +13 -0
  1828. data/core/public/javascripts/jquery-1.4.2.min.js +154 -0
  1829. data/core/public/javascripts/jquery-ui.js +188 -0
  1830. data/core/public/javascripts/jquery.alerts/images/help.gif +0 -0
  1831. data/core/public/javascripts/jquery.alerts/images/important.gif +0 -0
  1832. data/core/public/javascripts/jquery.alerts/images/info.gif +0 -0
  1833. data/core/public/javascripts/jquery.alerts/images/title.gif +0 -0
  1834. data/core/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  1835. data/core/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  1836. data/core/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  1837. data/core/public/javascripts/jquery.autocomplete.min.js +13 -0
  1838. data/core/public/javascripts/jquery.cookie.js +96 -0
  1839. data/core/public/javascripts/jquery.delayedobserver.js +35 -0
  1840. data/core/public/javascripts/jquery.suggest.js +276 -0
  1841. data/core/public/javascripts/jquery.template.js +255 -0
  1842. data/core/public/javascripts/jquery.tokeninput.js +618 -0
  1843. data/core/public/javascripts/jquery.validate.min.js +16 -0
  1844. data/core/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  1845. data/core/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  1846. data/core/public/javascripts/jsTree/themes/apple/d.png +0 -0
  1847. data/core/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  1848. data/core/public/javascripts/jsTree/themes/apple/style.css +60 -0
  1849. data/core/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  1850. data/core/public/javascripts/lang/af.js +40 -0
  1851. data/core/public/javascripts/lang/ar.js +50 -0
  1852. data/core/public/javascripts/lang/de.js +40 -0
  1853. data/core/public/javascripts/lang/du.js +40 -0
  1854. data/core/public/javascripts/lang/en.js +42 -0
  1855. data/core/public/javascripts/lang/es.js +41 -0
  1856. data/core/public/javascripts/lang/fi.js +40 -0
  1857. data/core/public/javascripts/lang/fr.js +44 -0
  1858. data/core/public/javascripts/lang/gr.js +40 -0
  1859. data/core/public/javascripts/lang/he.js +49 -0
  1860. data/core/public/javascripts/lang/it.js +13 -0
  1861. data/core/public/javascripts/lang/nl.js +40 -0
  1862. data/core/public/javascripts/lang/no.js +40 -0
  1863. data/core/public/javascripts/lang/pt.js +50 -0
  1864. data/core/public/javascripts/lang/ro.js +40 -0
  1865. data/core/public/javascripts/lang/ru.js +40 -0
  1866. data/core/public/javascripts/lang/sp.js +40 -0
  1867. data/core/public/javascripts/lang/sv.js +41 -0
  1868. data/core/public/javascripts/lang/ua.js +40 -0
  1869. data/core/public/javascripts/localization/messages_cn.js +24 -0
  1870. data/core/public/javascripts/localization/messages_cs.js +23 -0
  1871. data/core/public/javascripts/localization/messages_da.js +21 -0
  1872. data/core/public/javascripts/localization/messages_de.js +21 -0
  1873. data/core/public/javascripts/localization/messages_es.js +24 -0
  1874. data/core/public/javascripts/localization/messages_fr.js +23 -0
  1875. data/core/public/javascripts/localization/messages_hu.js +21 -0
  1876. data/core/public/javascripts/localization/messages_it.js +26 -0
  1877. data/core/public/javascripts/localization/messages_kk.js +23 -0
  1878. data/core/public/javascripts/localization/messages_nl.js +23 -0
  1879. data/core/public/javascripts/localization/messages_no.js +23 -0
  1880. data/core/public/javascripts/localization/messages_pl.js +23 -0
  1881. data/core/public/javascripts/localization/messages_ptbr.js +30 -0
  1882. data/core/public/javascripts/localization/messages_ro.js +24 -0
  1883. data/core/public/javascripts/localization/messages_ru.js +23 -0
  1884. data/core/public/javascripts/localization/messages_se.js +23 -0
  1885. data/core/public/javascripts/localization/messages_sk.js +21 -0
  1886. data/core/public/javascripts/localization/messages_tr.js +24 -0
  1887. data/core/public/javascripts/localization/messages_tw.js +24 -0
  1888. data/core/public/javascripts/localization/messages_ua.js +24 -0
  1889. data/core/public/javascripts/nested-attribute.js +26 -0
  1890. data/core/public/javascripts/open_id.js +15 -0
  1891. data/core/public/javascripts/product.js +49 -0
  1892. data/core/public/javascripts/rails.js +127 -0
  1893. data/core/public/javascripts/taxonomy.js +201 -0
  1894. data/core/public/javascripts/zone.js +39 -0
  1895. data/core/public/stylesheets/admin/admin-forms.css +154 -0
  1896. data/core/public/stylesheets/admin/admin-reset.css +69 -0
  1897. data/core/public/stylesheets/admin/admin-tables.css +39 -0
  1898. data/core/public/stylesheets/admin/admin-typography.css +117 -0
  1899. data/core/public/stylesheets/admin/admin.css +614 -0
  1900. data/core/public/stylesheets/admin/autocomplete.css +73 -0
  1901. data/core/public/stylesheets/admin/dashboard.css +143 -0
  1902. data/core/public/stylesheets/admin/edit_checkouts.css +57 -0
  1903. data/core/public/stylesheets/admin/grids.css +314 -0
  1904. data/core/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  1905. data/core/public/stylesheets/admin/token-input.css +109 -0
  1906. data/core/public/stylesheets/admin/yui-includes.css +14 -0
  1907. data/core/public/stylesheets/datepicker.css +263 -0
  1908. data/core/public/stylesheets/jquery.autocomplete.css +48 -0
  1909. data/core/public/stylesheets/screen.css +916 -0
  1910. data/core/rfcommerce_core.gemspec +37 -0
  1911. data/core/spec/controllers/admin/base_controller_spec.rb +61 -0
  1912. data/core/spec/controllers/admin/general_settings_controller_spec.rb +17 -0
  1913. data/core/spec/controllers/admin/mail_methods_controller_spec.rb +26 -0
  1914. data/core/spec/controllers/admin/orders_controller_spec.rb +26 -0
  1915. data/core/spec/controllers/admin/products_controller_spec.rb +16 -0
  1916. data/core/spec/controllers/admin/users_controller_spec.rb +16 -0
  1917. data/core/spec/controllers/checkout_controller_spec.rb +144 -0
  1918. data/core/spec/controllers/content_controller_spec.rb +14 -0
  1919. data/core/spec/controllers/orders_controller_extension_spec.rb +62 -0
  1920. data/core/spec/controllers/orders_controller_spec.rb +82 -0
  1921. data/core/spec/lib/calculated_adjustments_spec.rb +54 -0
  1922. data/core/spec/lib/ext_spec.rb +53 -0
  1923. data/core/spec/lib/mail_interceptor_spec.rb +69 -0
  1924. data/core/spec/lib/mail_settings_spec.rb +82 -0
  1925. data/core/spec/models/address_spec.rb +135 -0
  1926. data/core/spec/models/adjustment_spec.rb +67 -0
  1927. data/core/spec/models/calculator/flat_percent_item_total_spec.rb +22 -0
  1928. data/core/spec/models/configuration_spec.rb +9 -0
  1929. data/core/spec/models/country_spec.rb +13 -0
  1930. data/core/spec/models/creditcard_spec.rb +487 -0
  1931. data/core/spec/models/gateway/authorize_net.rb +17 -0
  1932. data/core/spec/models/gateway/authorize_net_cim_spec.rb +18 -0
  1933. data/core/spec/models/gateway/authorize_net_spec.rb +17 -0
  1934. data/core/spec/models/gateway/braintree_spec.rb +192 -0
  1935. data/core/spec/models/inventory_unit_spec.rb +254 -0
  1936. data/core/spec/models/line_item_spec.rb +119 -0
  1937. data/core/spec/models/mail_method_spec.rb +26 -0
  1938. data/core/spec/models/order_spec.rb +579 -0
  1939. data/core/spec/models/payment_method_spec.rb +50 -0
  1940. data/core/spec/models/payment_spec.rb +147 -0
  1941. data/core/spec/models/product_group_spec.rb +36 -0
  1942. data/core/spec/models/product_option_type_spec.rb +9 -0
  1943. data/core/spec/models/product_property_spec.rb +9 -0
  1944. data/core/spec/models/product_scope_spec.rb +39 -0
  1945. data/core/spec/models/product_spec.rb +125 -0
  1946. data/core/spec/models/return_authorization_spec.rb +113 -0
  1947. data/core/spec/models/shipment_spec.rb +179 -0
  1948. data/core/spec/models/shipping_category_spec.rb +10 -0
  1949. data/core/spec/models/shipping_method_spec.rb +16 -0
  1950. data/core/spec/models/state_spec.rb +13 -0
  1951. data/core/spec/models/tax_category_spec.rb +28 -0
  1952. data/core/spec/models/tax_rate_spec.rb +34 -0
  1953. data/core/spec/models/taxon_spec.rb +38 -0
  1954. data/core/spec/models/taxonomy_spec.rb +14 -0
  1955. data/core/spec/models/tracer_spec.rb +9 -0
  1956. data/core/spec/models/user_spec.rb +9 -0
  1957. data/core/spec/models/variant_spec.rb +125 -0
  1958. data/core/spec/spec_helper.rb +47 -0
  1959. data/core/spec/test_app/Gemfile +34 -0
  1960. data/core/spec/test_app/Rakefile +7 -0
  1961. data/core/spec/test_app/app/controllers/application_controller.rb +3 -0
  1962. data/core/spec/test_app/app/helpers/application_helper.rb +2 -0
  1963. data/core/spec/test_app/app/views/layouts/application.html.erb +14 -0
  1964. data/core/spec/test_app/config.ru +4 -0
  1965. data/core/spec/test_app/config/application.rb +42 -0
  1966. data/core/spec/test_app/config/boot.rb +6 -0
  1967. data/core/spec/test_app/config/database.yml +17 -0
  1968. data/core/spec/test_app/config/environment.rb +5 -0
  1969. data/core/spec/test_app/config/environments/cucumber.rb +38 -0
  1970. data/core/spec/test_app/config/environments/development.rb +26 -0
  1971. data/core/spec/test_app/config/environments/production.rb +49 -0
  1972. data/core/spec/test_app/config/environments/test.rb +35 -0
  1973. data/core/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  1974. data/core/spec/test_app/config/initializers/inflections.rb +10 -0
  1975. data/core/spec/test_app/config/initializers/mime_types.rb +5 -0
  1976. data/core/spec/test_app/config/initializers/secret_token.rb +7 -0
  1977. data/core/spec/test_app/config/initializers/session_store.rb +8 -0
  1978. data/core/spec/test_app/config/locales/en.yml +5 -0
  1979. data/core/spec/test_app/config/routes.rb +58 -0
  1980. data/core/spec/test_app/db/cucumber.sqlite3 +0 -0
  1981. data/core/spec/test_app/db/default/countries.yml +1583 -0
  1982. data/core/spec/test_app/db/default/roles.yml +7 -0
  1983. data/core/spec/test_app/db/default/states.yml +256 -0
  1984. data/core/spec/test_app/db/default/zone_members.yml +169 -0
  1985. data/core/spec/test_app/db/default/zones.yml +13 -0
  1986. data/core/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  1987. data/core/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  1988. data/core/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  1989. data/core/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  1990. data/core/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  1991. data/core/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  1992. data/core/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  1993. data/core/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  1994. data/core/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  1995. data/core/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  1996. data/core/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  1997. data/core/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  1998. data/core/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  1999. data/core/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2000. data/core/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2001. data/core/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2002. data/core/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2003. data/core/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2004. data/core/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2005. data/core/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2006. data/core/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2007. data/core/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2008. data/core/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2009. data/core/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2010. data/core/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2011. data/core/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2012. data/core/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2013. data/core/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2014. data/core/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2015. data/core/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2016. data/core/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2017. data/core/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2018. data/core/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2019. data/core/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2020. data/core/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2021. data/core/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2022. data/core/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2023. data/core/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2024. data/core/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2025. data/core/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2026. data/core/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2027. data/core/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2028. data/core/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2029. data/core/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2030. data/core/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2031. data/core/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2032. data/core/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2033. data/core/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2034. data/core/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  2035. data/core/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  2036. data/core/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  2037. data/core/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  2038. data/core/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  2039. data/core/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  2040. data/core/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  2041. data/core/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  2042. data/core/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  2043. data/core/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  2044. data/core/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  2045. data/core/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  2046. data/core/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  2047. data/core/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  2048. data/core/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  2049. data/core/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  2050. data/core/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  2051. data/core/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  2052. data/core/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  2053. data/core/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  2054. data/core/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  2055. data/core/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  2056. data/core/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  2057. data/core/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  2058. data/core/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  2059. data/core/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  2060. data/core/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  2061. data/core/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  2062. data/core/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  2063. data/core/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  2064. data/core/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  2065. data/core/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  2066. data/core/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  2067. data/core/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  2068. data/core/spec/test_app/db/sample/users.rb +61 -0
  2069. data/core/spec/test_app/db/schema.rb +531 -0
  2070. data/core/spec/test_app/db/seeds.rb +3 -0
  2071. data/core/spec/test_app/db/test.sqlite3 +0 -0
  2072. data/core/spec/test_app/log/cucumber.log +1324 -0
  2073. data/core/spec/test_app/log/development.log +0 -0
  2074. data/core/spec/test_app/log/production.log +0 -0
  2075. data/core/spec/test_app/log/server.log +0 -0
  2076. data/core/spec/test_app/log/test.log +1324 -0
  2077. data/core/spec/test_app/public/404.html +26 -0
  2078. data/core/spec/test_app/public/422.html +26 -0
  2079. data/core/spec/test_app/public/500.html +26 -0
  2080. data/core/spec/test_app/public/favicon.ico +0 -0
  2081. data/core/spec/test_app/public/images/add-to-cart.png +0 -0
  2082. data/core/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  2083. data/core/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  2084. data/core/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  2085. data/core/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  2086. data/core/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  2087. data/core/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  2088. data/core/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  2089. data/core/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  2090. data/core/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  2091. data/core/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  2092. data/core/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  2093. data/core/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  2094. data/core/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  2095. data/core/spec/test_app/public/images/admin/bg/header.png +0 -0
  2096. data/core/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  2097. data/core/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  2098. data/core/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  2099. data/core/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  2100. data/core/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  2101. data/core/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  2102. data/core/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  2103. data/core/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  2104. data/core/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  2105. data/core/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  2106. data/core/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  2107. data/core/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  2108. data/core/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  2109. data/core/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  2110. data/core/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  2111. data/core/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  2112. data/core/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  2113. data/core/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  2114. data/core/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  2115. data/core/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  2116. data/core/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  2117. data/core/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  2118. data/core/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  2119. data/core/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  2120. data/core/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  2121. data/core/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  2122. data/core/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  2123. data/core/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  2124. data/core/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  2125. data/core/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  2126. data/core/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  2127. data/core/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  2128. data/core/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  2129. data/core/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  2130. data/core/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  2131. data/core/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  2132. data/core/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  2133. data/core/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  2134. data/core/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  2135. data/core/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  2136. data/core/spec/test_app/public/images/admin/icons/accept.png +0 -0
  2137. data/core/spec/test_app/public/images/admin/icons/add.gif +0 -0
  2138. data/core/spec/test_app/public/images/admin/icons/add.png +0 -0
  2139. data/core/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  2140. data/core/spec/test_app/public/images/admin/icons/cross.png +0 -0
  2141. data/core/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  2142. data/core/spec/test_app/public/images/admin/icons/delete.png +0 -0
  2143. data/core/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  2144. data/core/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  2145. data/core/spec/test_app/public/images/admin/icons/edit.png +0 -0
  2146. data/core/spec/test_app/public/images/admin/icons/email.png +0 -0
  2147. data/core/spec/test_app/public/images/admin/icons/error.png +0 -0
  2148. data/core/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  2149. data/core/spec/test_app/public/images/admin/icons/feed.png +0 -0
  2150. data/core/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  2151. data/core/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  2152. data/core/spec/test_app/public/images/admin/icons/search.gif +0 -0
  2153. data/core/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  2154. data/core/spec/test_app/public/images/admin/icons/stop.png +0 -0
  2155. data/core/spec/test_app/public/images/admin/icons/tick.png +0 -0
  2156. data/core/spec/test_app/public/images/admin/icons/up.gif +0 -0
  2157. data/core/spec/test_app/public/images/admin/icons/xls.png +0 -0
  2158. data/core/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  2159. data/core/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  2160. data/core/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  2161. data/core/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  2162. data/core/spec/test_app/public/images/ajax_loader.gif +0 -0
  2163. data/core/spec/test_app/public/images/amex_cid.gif +0 -0
  2164. data/core/spec/test_app/public/images/bg-button-hover.png +0 -0
  2165. data/core/spec/test_app/public/images/bg-button-pressed.png +0 -0
  2166. data/core/spec/test_app/public/images/bg-button.gif +0 -0
  2167. data/core/spec/test_app/public/images/bg-button.png +0 -0
  2168. data/core/spec/test_app/public/images/blue/left_01.png +0 -0
  2169. data/core/spec/test_app/public/images/blue/right_01.png +0 -0
  2170. data/core/spec/test_app/public/images/body-back.png +0 -0
  2171. data/core/spec/test_app/public/images/bottom_shine.png +0 -0
  2172. data/core/spec/test_app/public/images/breadcrumb.gif +0 -0
  2173. data/core/spec/test_app/public/images/button-dark-hover.png +0 -0
  2174. data/core/spec/test_app/public/images/button-dark.png +0 -0
  2175. data/core/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  2176. data/core/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  2177. data/core/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  2178. data/core/spec/test_app/public/images/buttons/bg-button.png +0 -0
  2179. data/core/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  2180. data/core/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  2181. data/core/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  2182. data/core/spec/test_app/public/images/buttons/button-dark.png +0 -0
  2183. data/core/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  2184. data/core/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  2185. data/core/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  2186. data/core/spec/test_app/public/images/buttons/left_01.png +0 -0
  2187. data/core/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  2188. data/core/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  2189. data/core/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  2190. data/core/spec/test_app/public/images/buttons/right_01.png +0 -0
  2191. data/core/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  2192. data/core/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  2193. data/core/spec/test_app/public/images/buttons/top-shine.png +0 -0
  2194. data/core/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  2195. data/core/spec/test_app/public/images/cart-empty.png +0 -0
  2196. data/core/spec/test_app/public/images/cart-empty_x32.png +0 -0
  2197. data/core/spec/test_app/public/images/cart-full.png +0 -0
  2198. data/core/spec/test_app/public/images/cart-full_x32.png +0 -0
  2199. data/core/spec/test_app/public/images/checkout.png +0 -0
  2200. data/core/spec/test_app/public/images/creditcard.gif +0 -0
  2201. data/core/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  2202. data/core/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  2203. data/core/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  2204. data/core/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  2205. data/core/spec/test_app/public/images/datepicker/cal.gif +0 -0
  2206. data/core/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  2207. data/core/spec/test_app/public/images/discover_cid.gif +0 -0
  2208. data/core/spec/test_app/public/images/drag-handle-green.png +0 -0
  2209. data/core/spec/test_app/public/images/favicon.ico +0 -0
  2210. data/core/spec/test_app/public/images/green/left_01.png +0 -0
  2211. data/core/spec/test_app/public/images/green/right_01.png +0 -0
  2212. data/core/spec/test_app/public/images/grid.png +0 -0
  2213. data/core/spec/test_app/public/images/left_01.png +0 -0
  2214. data/core/spec/test_app/public/images/left_01_small.png +0 -0
  2215. data/core/spec/test_app/public/images/master_cid.jpg +0 -0
  2216. data/core/spec/test_app/public/images/menu-current.png +0 -0
  2217. data/core/spec/test_app/public/images/menu-hover.png +0 -0
  2218. data/core/spec/test_app/public/images/noimage/mini.jpg +0 -0
  2219. data/core/spec/test_app/public/images/noimage/product.jpg +0 -0
  2220. data/core/spec/test_app/public/images/noimage/small.jpg +0 -0
  2221. data/core/spec/test_app/public/images/openid-inputicon.gif +0 -0
  2222. data/core/spec/test_app/public/images/orange/left_03.png +0 -0
  2223. data/core/spec/test_app/public/images/orange/right_03.png +0 -0
  2224. data/core/spec/test_app/public/images/progress.gif +0 -0
  2225. data/core/spec/test_app/public/images/reorder.jpg +0 -0
  2226. data/core/spec/test_app/public/images/right_01.png +0 -0
  2227. data/core/spec/test_app/public/images/right_01_small.png +0 -0
  2228. data/core/spec/test_app/public/images/separator.png +0 -0
  2229. data/core/spec/test_app/public/images/shadow-top.png +0 -0
  2230. data/core/spec/test_app/public/images/shadow_top.png +0 -0
  2231. data/core/spec/test_app/public/images/spinner.gif +0 -0
  2232. data/core/spec/test_app/public/images/spree.jpg +0 -0
  2233. data/core/spec/test_app/public/images/spree/progress.gif +0 -0
  2234. data/core/spec/test_app/public/images/spree/spinner.gif +0 -0
  2235. data/core/spec/test_app/public/images/spree/spree.jpg +0 -0
  2236. data/core/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  2237. data/core/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  2238. data/core/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  2239. data/core/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  2240. data/core/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  2241. data/core/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  2242. data/core/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  2243. data/core/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  2244. data/core/spec/test_app/public/images/steps/1.png +0 -0
  2245. data/core/spec/test_app/public/images/steps/1_small.png +0 -0
  2246. data/core/spec/test_app/public/images/steps/2.png +0 -0
  2247. data/core/spec/test_app/public/images/steps/2_small.png +0 -0
  2248. data/core/spec/test_app/public/images/steps/3.png +0 -0
  2249. data/core/spec/test_app/public/images/steps/3_small.png +0 -0
  2250. data/core/spec/test_app/public/images/steps/4.png +0 -0
  2251. data/core/spec/test_app/public/images/steps/4_small.png +0 -0
  2252. data/core/spec/test_app/public/images/steps/5.png +0 -0
  2253. data/core/spec/test_app/public/images/steps/5_small.png +0 -0
  2254. data/core/spec/test_app/public/images/steps/6.png +0 -0
  2255. data/core/spec/test_app/public/images/steps/6_small.png +0 -0
  2256. data/core/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  2257. data/core/spec/test_app/public/images/tab_bottom.gif +0 -0
  2258. data/core/spec/test_app/public/images/tile-header.png +0 -0
  2259. data/core/spec/test_app/public/images/tile-slider.png +0 -0
  2260. data/core/spec/test_app/public/images/top-shine.png +0 -0
  2261. data/core/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  2262. data/core/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  2263. data/core/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  2264. data/core/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  2265. data/core/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  2266. data/core/spec/test_app/public/images/update.png +0 -0
  2267. data/core/spec/test_app/public/images/visa_cid.gif +0 -0
  2268. data/core/spec/test_app/public/images/wrapper-back-2.png +0 -0
  2269. data/core/spec/test_app/public/images/wrapper-back.png +0 -0
  2270. data/core/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  2271. data/core/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  2272. data/core/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  2273. data/core/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  2274. data/core/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  2275. data/core/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  2276. data/core/spec/test_app/public/images/yui-sprite.png +0 -0
  2277. data/core/spec/test_app/public/javascripts/additional-methods.js +236 -0
  2278. data/core/spec/test_app/public/javascripts/admin.js +232 -0
  2279. data/core/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  2280. data/core/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  2281. data/core/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  2282. data/core/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  2283. data/core/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  2284. data/core/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  2285. data/core/spec/test_app/public/javascripts/application.js +12 -0
  2286. data/core/spec/test_app/public/javascripts/calculator.js +15 -0
  2287. data/core/spec/test_app/public/javascripts/checkout.js +75 -0
  2288. data/core/spec/test_app/public/javascripts/datepicker.js +1445 -0
  2289. data/core/spec/test_app/public/javascripts/gateway.js +13 -0
  2290. data/core/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  2291. data/core/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  2292. data/core/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  2293. data/core/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  2294. data/core/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  2295. data/core/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  2296. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  2297. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  2298. data/core/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  2299. data/core/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  2300. data/core/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  2301. data/core/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  2302. data/core/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  2303. data/core/spec/test_app/public/javascripts/jquery.template.js +255 -0
  2304. data/core/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  2305. data/core/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  2306. data/core/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  2307. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  2308. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  2309. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  2310. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  2311. data/core/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  2312. data/core/spec/test_app/public/javascripts/lang/af.js +40 -0
  2313. data/core/spec/test_app/public/javascripts/lang/ar.js +50 -0
  2314. data/core/spec/test_app/public/javascripts/lang/de.js +40 -0
  2315. data/core/spec/test_app/public/javascripts/lang/du.js +40 -0
  2316. data/core/spec/test_app/public/javascripts/lang/en.js +42 -0
  2317. data/core/spec/test_app/public/javascripts/lang/es.js +41 -0
  2318. data/core/spec/test_app/public/javascripts/lang/fi.js +40 -0
  2319. data/core/spec/test_app/public/javascripts/lang/fr.js +44 -0
  2320. data/core/spec/test_app/public/javascripts/lang/gr.js +40 -0
  2321. data/core/spec/test_app/public/javascripts/lang/he.js +49 -0
  2322. data/core/spec/test_app/public/javascripts/lang/it.js +13 -0
  2323. data/core/spec/test_app/public/javascripts/lang/nl.js +40 -0
  2324. data/core/spec/test_app/public/javascripts/lang/no.js +40 -0
  2325. data/core/spec/test_app/public/javascripts/lang/pt.js +50 -0
  2326. data/core/spec/test_app/public/javascripts/lang/ro.js +40 -0
  2327. data/core/spec/test_app/public/javascripts/lang/ru.js +40 -0
  2328. data/core/spec/test_app/public/javascripts/lang/sp.js +40 -0
  2329. data/core/spec/test_app/public/javascripts/lang/sv.js +41 -0
  2330. data/core/spec/test_app/public/javascripts/lang/ua.js +40 -0
  2331. data/core/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  2332. data/core/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  2333. data/core/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  2334. data/core/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  2335. data/core/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  2336. data/core/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  2337. data/core/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  2338. data/core/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  2339. data/core/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  2340. data/core/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  2341. data/core/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  2342. data/core/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  2343. data/core/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  2344. data/core/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  2345. data/core/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  2346. data/core/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  2347. data/core/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  2348. data/core/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  2349. data/core/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  2350. data/core/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  2351. data/core/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  2352. data/core/spec/test_app/public/javascripts/open_id.js +15 -0
  2353. data/core/spec/test_app/public/javascripts/product.js +49 -0
  2354. data/core/spec/test_app/public/javascripts/rails.js +127 -0
  2355. data/core/spec/test_app/public/javascripts/taxonomy.js +201 -0
  2356. data/core/spec/test_app/public/javascripts/zone.js +39 -0
  2357. data/core/spec/test_app/public/robots.txt +5 -0
  2358. data/core/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  2359. data/core/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  2360. data/core/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  2361. data/core/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  2362. data/core/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  2363. data/core/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  2364. data/core/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  2365. data/core/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  2366. data/core/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  2367. data/core/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  2368. data/core/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  2369. data/core/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  2370. data/core/spec/test_app/public/stylesheets/datepicker.css +263 -0
  2371. data/core/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  2372. data/core/spec/test_app/public/stylesheets/screen.css +916 -0
  2373. data/core/spec/test_app/script/rails +6 -0
  2374. data/dash/Gemfile +35 -0
  2375. data/dash/Gemfile.lock +233 -0
  2376. data/dash/LICENSE +26 -0
  2377. data/dash/README.md +14 -0
  2378. data/dash/Rakefile +50 -0
  2379. data/dash/app/controllers/admin/overview_controller.rb +152 -0
  2380. data/dash/app/views/admin/overview/index.html.erb +174 -0
  2381. data/dash/config/routes.rb +4 -0
  2382. data/dash/lib/spree_dash.rb +6 -0
  2383. data/dash/lib/tasks/install.rake +24 -0
  2384. data/dash/public/javascripts/dashboard.js +143 -0
  2385. data/dash/public/javascripts/jqPlot/excanvas.min.js +1 -0
  2386. data/dash/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  2387. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  2388. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  2389. data/dash/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  2390. data/dash/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  2391. data/dash/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  2392. data/dash/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  2393. data/dash/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  2394. data/dash/public/stylesheets/admin/dashboard.css +143 -0
  2395. data/dash/rfcommerce_dash.gemspec +27 -0
  2396. data/dash/spec/controllers/admin/overview_controller_spec.rb +16 -0
  2397. data/dash/spec/spec_helper.rb +30 -0
  2398. data/dash/spec/test_app/Gemfile +35 -0
  2399. data/dash/spec/test_app/Rakefile +7 -0
  2400. data/dash/spec/test_app/app/controllers/application_controller.rb +3 -0
  2401. data/dash/spec/test_app/app/helpers/application_helper.rb +2 -0
  2402. data/dash/spec/test_app/app/views/layouts/application.html.erb +14 -0
  2403. data/dash/spec/test_app/config.ru +4 -0
  2404. data/dash/spec/test_app/config/application.rb +42 -0
  2405. data/dash/spec/test_app/config/boot.rb +6 -0
  2406. data/dash/spec/test_app/config/database.yml +17 -0
  2407. data/dash/spec/test_app/config/environment.rb +5 -0
  2408. data/dash/spec/test_app/config/environments/cucumber.rb +38 -0
  2409. data/dash/spec/test_app/config/environments/development.rb +26 -0
  2410. data/dash/spec/test_app/config/environments/production.rb +49 -0
  2411. data/dash/spec/test_app/config/environments/test.rb +35 -0
  2412. data/dash/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  2413. data/dash/spec/test_app/config/initializers/inflections.rb +10 -0
  2414. data/dash/spec/test_app/config/initializers/mime_types.rb +5 -0
  2415. data/dash/spec/test_app/config/initializers/secret_token.rb +7 -0
  2416. data/dash/spec/test_app/config/initializers/session_store.rb +8 -0
  2417. data/dash/spec/test_app/config/locales/en.yml +5 -0
  2418. data/dash/spec/test_app/config/routes.rb +58 -0
  2419. data/dash/spec/test_app/db/cucumber.sqlite3 +0 -0
  2420. data/dash/spec/test_app/db/default/countries.yml +1583 -0
  2421. data/dash/spec/test_app/db/default/roles.yml +7 -0
  2422. data/dash/spec/test_app/db/default/states.yml +256 -0
  2423. data/dash/spec/test_app/db/default/zone_members.yml +169 -0
  2424. data/dash/spec/test_app/db/default/zones.yml +13 -0
  2425. data/dash/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  2426. data/dash/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  2427. data/dash/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  2428. data/dash/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  2429. data/dash/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  2430. data/dash/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  2431. data/dash/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  2432. data/dash/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  2433. data/dash/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  2434. data/dash/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  2435. data/dash/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  2436. data/dash/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  2437. data/dash/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  2438. data/dash/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2439. data/dash/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2440. data/dash/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2441. data/dash/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2442. data/dash/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2443. data/dash/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2444. data/dash/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2445. data/dash/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2446. data/dash/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2447. data/dash/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2448. data/dash/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2449. data/dash/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2450. data/dash/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2451. data/dash/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2452. data/dash/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2453. data/dash/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2454. data/dash/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2455. data/dash/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2456. data/dash/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2457. data/dash/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2458. data/dash/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2459. data/dash/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2460. data/dash/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2461. data/dash/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2462. data/dash/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2463. data/dash/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2464. data/dash/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2465. data/dash/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2466. data/dash/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2467. data/dash/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2468. data/dash/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2469. data/dash/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2470. data/dash/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2471. data/dash/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2472. data/dash/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2473. data/dash/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  2474. data/dash/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  2475. data/dash/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  2476. data/dash/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  2477. data/dash/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  2478. data/dash/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  2479. data/dash/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  2480. data/dash/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  2481. data/dash/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  2482. data/dash/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  2483. data/dash/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  2484. data/dash/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  2485. data/dash/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  2486. data/dash/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  2487. data/dash/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  2488. data/dash/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  2489. data/dash/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  2490. data/dash/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  2491. data/dash/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  2492. data/dash/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  2493. data/dash/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  2494. data/dash/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  2495. data/dash/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  2496. data/dash/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  2497. data/dash/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  2498. data/dash/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  2499. data/dash/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  2500. data/dash/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  2501. data/dash/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  2502. data/dash/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  2503. data/dash/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  2504. data/dash/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  2505. data/dash/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  2506. data/dash/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  2507. data/dash/spec/test_app/db/sample/users.rb +61 -0
  2508. data/dash/spec/test_app/db/schema.rb +531 -0
  2509. data/dash/spec/test_app/db/seeds.rb +3 -0
  2510. data/dash/spec/test_app/db/test.sqlite3 +0 -0
  2511. data/dash/spec/test_app/log/cucumber.log +1324 -0
  2512. data/dash/spec/test_app/log/development.log +0 -0
  2513. data/dash/spec/test_app/log/production.log +0 -0
  2514. data/dash/spec/test_app/log/server.log +0 -0
  2515. data/dash/spec/test_app/log/test.log +1324 -0
  2516. data/dash/spec/test_app/public/404.html +26 -0
  2517. data/dash/spec/test_app/public/422.html +26 -0
  2518. data/dash/spec/test_app/public/500.html +26 -0
  2519. data/dash/spec/test_app/public/favicon.ico +0 -0
  2520. data/dash/spec/test_app/public/images/add-to-cart.png +0 -0
  2521. data/dash/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  2522. data/dash/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  2523. data/dash/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  2524. data/dash/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  2525. data/dash/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  2526. data/dash/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  2527. data/dash/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  2528. data/dash/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  2529. data/dash/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  2530. data/dash/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  2531. data/dash/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  2532. data/dash/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  2533. data/dash/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  2534. data/dash/spec/test_app/public/images/admin/bg/header.png +0 -0
  2535. data/dash/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  2536. data/dash/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  2537. data/dash/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  2538. data/dash/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  2539. data/dash/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  2540. data/dash/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  2541. data/dash/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  2542. data/dash/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  2543. data/dash/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  2544. data/dash/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  2545. data/dash/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  2546. data/dash/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  2547. data/dash/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  2548. data/dash/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  2549. data/dash/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  2550. data/dash/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  2551. data/dash/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  2552. data/dash/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  2553. data/dash/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  2554. data/dash/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  2555. data/dash/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  2556. data/dash/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  2557. data/dash/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  2558. data/dash/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  2559. data/dash/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  2560. data/dash/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  2561. data/dash/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  2562. data/dash/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  2563. data/dash/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  2564. data/dash/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  2565. data/dash/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  2566. data/dash/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  2567. data/dash/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  2568. data/dash/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  2569. data/dash/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  2570. data/dash/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  2571. data/dash/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  2572. data/dash/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  2573. data/dash/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  2574. data/dash/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  2575. data/dash/spec/test_app/public/images/admin/icons/accept.png +0 -0
  2576. data/dash/spec/test_app/public/images/admin/icons/add.gif +0 -0
  2577. data/dash/spec/test_app/public/images/admin/icons/add.png +0 -0
  2578. data/dash/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  2579. data/dash/spec/test_app/public/images/admin/icons/cross.png +0 -0
  2580. data/dash/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  2581. data/dash/spec/test_app/public/images/admin/icons/delete.png +0 -0
  2582. data/dash/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  2583. data/dash/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  2584. data/dash/spec/test_app/public/images/admin/icons/edit.png +0 -0
  2585. data/dash/spec/test_app/public/images/admin/icons/email.png +0 -0
  2586. data/dash/spec/test_app/public/images/admin/icons/error.png +0 -0
  2587. data/dash/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  2588. data/dash/spec/test_app/public/images/admin/icons/feed.png +0 -0
  2589. data/dash/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  2590. data/dash/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  2591. data/dash/spec/test_app/public/images/admin/icons/search.gif +0 -0
  2592. data/dash/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  2593. data/dash/spec/test_app/public/images/admin/icons/stop.png +0 -0
  2594. data/dash/spec/test_app/public/images/admin/icons/tick.png +0 -0
  2595. data/dash/spec/test_app/public/images/admin/icons/up.gif +0 -0
  2596. data/dash/spec/test_app/public/images/admin/icons/xls.png +0 -0
  2597. data/dash/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  2598. data/dash/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  2599. data/dash/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  2600. data/dash/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  2601. data/dash/spec/test_app/public/images/ajax_loader.gif +0 -0
  2602. data/dash/spec/test_app/public/images/amex_cid.gif +0 -0
  2603. data/dash/spec/test_app/public/images/bg-button-hover.png +0 -0
  2604. data/dash/spec/test_app/public/images/bg-button-pressed.png +0 -0
  2605. data/dash/spec/test_app/public/images/bg-button.gif +0 -0
  2606. data/dash/spec/test_app/public/images/bg-button.png +0 -0
  2607. data/dash/spec/test_app/public/images/blue/left_01.png +0 -0
  2608. data/dash/spec/test_app/public/images/blue/right_01.png +0 -0
  2609. data/dash/spec/test_app/public/images/body-back.png +0 -0
  2610. data/dash/spec/test_app/public/images/bottom_shine.png +0 -0
  2611. data/dash/spec/test_app/public/images/breadcrumb.gif +0 -0
  2612. data/dash/spec/test_app/public/images/button-dark-hover.png +0 -0
  2613. data/dash/spec/test_app/public/images/button-dark.png +0 -0
  2614. data/dash/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  2615. data/dash/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  2616. data/dash/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  2617. data/dash/spec/test_app/public/images/buttons/bg-button.png +0 -0
  2618. data/dash/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  2619. data/dash/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  2620. data/dash/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  2621. data/dash/spec/test_app/public/images/buttons/button-dark.png +0 -0
  2622. data/dash/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  2623. data/dash/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  2624. data/dash/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  2625. data/dash/spec/test_app/public/images/buttons/left_01.png +0 -0
  2626. data/dash/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  2627. data/dash/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  2628. data/dash/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  2629. data/dash/spec/test_app/public/images/buttons/right_01.png +0 -0
  2630. data/dash/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  2631. data/dash/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  2632. data/dash/spec/test_app/public/images/buttons/top-shine.png +0 -0
  2633. data/dash/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  2634. data/dash/spec/test_app/public/images/cart-empty.png +0 -0
  2635. data/dash/spec/test_app/public/images/cart-empty_x32.png +0 -0
  2636. data/dash/spec/test_app/public/images/cart-full.png +0 -0
  2637. data/dash/spec/test_app/public/images/cart-full_x32.png +0 -0
  2638. data/dash/spec/test_app/public/images/checkout.png +0 -0
  2639. data/dash/spec/test_app/public/images/creditcard.gif +0 -0
  2640. data/dash/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  2641. data/dash/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  2642. data/dash/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  2643. data/dash/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  2644. data/dash/spec/test_app/public/images/datepicker/cal.gif +0 -0
  2645. data/dash/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  2646. data/dash/spec/test_app/public/images/discover_cid.gif +0 -0
  2647. data/dash/spec/test_app/public/images/drag-handle-green.png +0 -0
  2648. data/dash/spec/test_app/public/images/favicon.ico +0 -0
  2649. data/dash/spec/test_app/public/images/green/left_01.png +0 -0
  2650. data/dash/spec/test_app/public/images/green/right_01.png +0 -0
  2651. data/dash/spec/test_app/public/images/grid.png +0 -0
  2652. data/dash/spec/test_app/public/images/left_01.png +0 -0
  2653. data/dash/spec/test_app/public/images/left_01_small.png +0 -0
  2654. data/dash/spec/test_app/public/images/master_cid.jpg +0 -0
  2655. data/dash/spec/test_app/public/images/menu-current.png +0 -0
  2656. data/dash/spec/test_app/public/images/menu-hover.png +0 -0
  2657. data/dash/spec/test_app/public/images/noimage/mini.jpg +0 -0
  2658. data/dash/spec/test_app/public/images/noimage/product.jpg +0 -0
  2659. data/dash/spec/test_app/public/images/noimage/small.jpg +0 -0
  2660. data/dash/spec/test_app/public/images/openid-inputicon.gif +0 -0
  2661. data/dash/spec/test_app/public/images/orange/left_03.png +0 -0
  2662. data/dash/spec/test_app/public/images/orange/right_03.png +0 -0
  2663. data/dash/spec/test_app/public/images/progress.gif +0 -0
  2664. data/dash/spec/test_app/public/images/reorder.jpg +0 -0
  2665. data/dash/spec/test_app/public/images/right_01.png +0 -0
  2666. data/dash/spec/test_app/public/images/right_01_small.png +0 -0
  2667. data/dash/spec/test_app/public/images/separator.png +0 -0
  2668. data/dash/spec/test_app/public/images/shadow-top.png +0 -0
  2669. data/dash/spec/test_app/public/images/shadow_top.png +0 -0
  2670. data/dash/spec/test_app/public/images/spinner.gif +0 -0
  2671. data/dash/spec/test_app/public/images/spree.jpg +0 -0
  2672. data/dash/spec/test_app/public/images/spree/progress.gif +0 -0
  2673. data/dash/spec/test_app/public/images/spree/spinner.gif +0 -0
  2674. data/dash/spec/test_app/public/images/spree/spree.jpg +0 -0
  2675. data/dash/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  2676. data/dash/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  2677. data/dash/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  2678. data/dash/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  2679. data/dash/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  2680. data/dash/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  2681. data/dash/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  2682. data/dash/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  2683. data/dash/spec/test_app/public/images/steps/1.png +0 -0
  2684. data/dash/spec/test_app/public/images/steps/1_small.png +0 -0
  2685. data/dash/spec/test_app/public/images/steps/2.png +0 -0
  2686. data/dash/spec/test_app/public/images/steps/2_small.png +0 -0
  2687. data/dash/spec/test_app/public/images/steps/3.png +0 -0
  2688. data/dash/spec/test_app/public/images/steps/3_small.png +0 -0
  2689. data/dash/spec/test_app/public/images/steps/4.png +0 -0
  2690. data/dash/spec/test_app/public/images/steps/4_small.png +0 -0
  2691. data/dash/spec/test_app/public/images/steps/5.png +0 -0
  2692. data/dash/spec/test_app/public/images/steps/5_small.png +0 -0
  2693. data/dash/spec/test_app/public/images/steps/6.png +0 -0
  2694. data/dash/spec/test_app/public/images/steps/6_small.png +0 -0
  2695. data/dash/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  2696. data/dash/spec/test_app/public/images/tab_bottom.gif +0 -0
  2697. data/dash/spec/test_app/public/images/tile-header.png +0 -0
  2698. data/dash/spec/test_app/public/images/tile-slider.png +0 -0
  2699. data/dash/spec/test_app/public/images/top-shine.png +0 -0
  2700. data/dash/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  2701. data/dash/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  2702. data/dash/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  2703. data/dash/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  2704. data/dash/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  2705. data/dash/spec/test_app/public/images/update.png +0 -0
  2706. data/dash/spec/test_app/public/images/visa_cid.gif +0 -0
  2707. data/dash/spec/test_app/public/images/wrapper-back-2.png +0 -0
  2708. data/dash/spec/test_app/public/images/wrapper-back.png +0 -0
  2709. data/dash/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  2710. data/dash/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  2711. data/dash/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  2712. data/dash/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  2713. data/dash/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  2714. data/dash/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  2715. data/dash/spec/test_app/public/images/yui-sprite.png +0 -0
  2716. data/dash/spec/test_app/public/javascripts/additional-methods.js +236 -0
  2717. data/dash/spec/test_app/public/javascripts/admin.js +232 -0
  2718. data/dash/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  2719. data/dash/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  2720. data/dash/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  2721. data/dash/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  2722. data/dash/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  2723. data/dash/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  2724. data/dash/spec/test_app/public/javascripts/application.js +12 -0
  2725. data/dash/spec/test_app/public/javascripts/calculator.js +15 -0
  2726. data/dash/spec/test_app/public/javascripts/checkout.js +75 -0
  2727. data/dash/spec/test_app/public/javascripts/dashboard.js +143 -0
  2728. data/dash/spec/test_app/public/javascripts/datepicker.js +1445 -0
  2729. data/dash/spec/test_app/public/javascripts/gateway.js +13 -0
  2730. data/dash/spec/test_app/public/javascripts/jqPlot/excanvas.min.js +1 -0
  2731. data/dash/spec/test_app/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  2732. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  2733. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  2734. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  2735. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  2736. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  2737. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  2738. data/dash/spec/test_app/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  2739. data/dash/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  2740. data/dash/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  2741. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  2742. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  2743. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  2744. data/dash/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  2745. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  2746. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  2747. data/dash/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  2748. data/dash/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  2749. data/dash/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  2750. data/dash/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  2751. data/dash/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  2752. data/dash/spec/test_app/public/javascripts/jquery.template.js +255 -0
  2753. data/dash/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  2754. data/dash/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  2755. data/dash/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  2756. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  2757. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  2758. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  2759. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  2760. data/dash/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  2761. data/dash/spec/test_app/public/javascripts/lang/af.js +40 -0
  2762. data/dash/spec/test_app/public/javascripts/lang/ar.js +50 -0
  2763. data/dash/spec/test_app/public/javascripts/lang/de.js +40 -0
  2764. data/dash/spec/test_app/public/javascripts/lang/du.js +40 -0
  2765. data/dash/spec/test_app/public/javascripts/lang/en.js +42 -0
  2766. data/dash/spec/test_app/public/javascripts/lang/es.js +41 -0
  2767. data/dash/spec/test_app/public/javascripts/lang/fi.js +40 -0
  2768. data/dash/spec/test_app/public/javascripts/lang/fr.js +44 -0
  2769. data/dash/spec/test_app/public/javascripts/lang/gr.js +40 -0
  2770. data/dash/spec/test_app/public/javascripts/lang/he.js +49 -0
  2771. data/dash/spec/test_app/public/javascripts/lang/it.js +13 -0
  2772. data/dash/spec/test_app/public/javascripts/lang/nl.js +40 -0
  2773. data/dash/spec/test_app/public/javascripts/lang/no.js +40 -0
  2774. data/dash/spec/test_app/public/javascripts/lang/pt.js +50 -0
  2775. data/dash/spec/test_app/public/javascripts/lang/ro.js +40 -0
  2776. data/dash/spec/test_app/public/javascripts/lang/ru.js +40 -0
  2777. data/dash/spec/test_app/public/javascripts/lang/sp.js +40 -0
  2778. data/dash/spec/test_app/public/javascripts/lang/sv.js +41 -0
  2779. data/dash/spec/test_app/public/javascripts/lang/ua.js +40 -0
  2780. data/dash/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  2781. data/dash/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  2782. data/dash/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  2783. data/dash/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  2784. data/dash/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  2785. data/dash/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  2786. data/dash/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  2787. data/dash/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  2788. data/dash/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  2789. data/dash/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  2790. data/dash/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  2791. data/dash/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  2792. data/dash/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  2793. data/dash/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  2794. data/dash/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  2795. data/dash/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  2796. data/dash/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  2797. data/dash/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  2798. data/dash/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  2799. data/dash/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  2800. data/dash/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  2801. data/dash/spec/test_app/public/javascripts/open_id.js +15 -0
  2802. data/dash/spec/test_app/public/javascripts/product.js +49 -0
  2803. data/dash/spec/test_app/public/javascripts/rails.js +127 -0
  2804. data/dash/spec/test_app/public/javascripts/taxonomy.js +201 -0
  2805. data/dash/spec/test_app/public/javascripts/zone.js +39 -0
  2806. data/dash/spec/test_app/public/robots.txt +5 -0
  2807. data/dash/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  2808. data/dash/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  2809. data/dash/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  2810. data/dash/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  2811. data/dash/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  2812. data/dash/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  2813. data/dash/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  2814. data/dash/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  2815. data/dash/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  2816. data/dash/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  2817. data/dash/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  2818. data/dash/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  2819. data/dash/spec/test_app/public/stylesheets/datepicker.css +263 -0
  2820. data/dash/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  2821. data/dash/spec/test_app/public/stylesheets/screen.css +916 -0
  2822. data/dash/spec/test_app/script/rails +6 -0
  2823. data/features/step_definitions/async_steps.rb +19 -0
  2824. data/features/step_definitions/authentication_steps.rb +46 -0
  2825. data/features/step_definitions/checkout_steps.rb +76 -0
  2826. data/features/step_definitions/cukes_util.rb +123 -0
  2827. data/features/step_definitions/spree_steps.rb +15 -0
  2828. data/features/step_definitions/user_steps.rb +12 -0
  2829. data/features/step_definitions/web_steps.rb +218 -0
  2830. data/features/support/env.rb +74 -0
  2831. data/features/support/hooks.rb +6 -0
  2832. data/features/support/load_default_data.rb +10 -0
  2833. data/features/support/share_connections.rb +13 -0
  2834. data/features/support/stop.rb +12 -0
  2835. data/lib/generators/spree/extension_generator.rb +71 -0
  2836. data/lib/generators/spree/site_generator.rb +45 -0
  2837. data/lib/generators/spree/test_app_generator.rb +145 -0
  2838. data/lib/generators/templates/Gemfile +32 -0
  2839. data/lib/generators/templates/LICENSE +23 -0
  2840. data/lib/generators/templates/README.md +13 -0
  2841. data/lib/generators/templates/Rakefile.tt +75 -0
  2842. data/lib/generators/templates/Versionfile.tt +9 -0
  2843. data/lib/generators/templates/config/database.yml +17 -0
  2844. data/lib/generators/templates/config/database.yml.mysql +29 -0
  2845. data/lib/generators/templates/config/database.yml.sqlite3 +17 -0
  2846. data/lib/generators/templates/config/environments/cucumber.rb +38 -0
  2847. data/lib/generators/templates/extension.gemspec.tt +20 -0
  2848. data/lib/generators/templates/extension/extension.rb.tt +17 -0
  2849. data/lib/generators/templates/gitignore.tt +9 -0
  2850. data/lib/generators/templates/hooks.rb.tt +3 -0
  2851. data/lib/generators/templates/install.rake.tt +25 -0
  2852. data/lib/generators/templates/lib/tasks/%file_name%.rake.tt +1 -0
  2853. data/lib/generators/templates/routes.rb +3 -0
  2854. data/lib/generators/templates/spec_helper.rb +30 -0
  2855. data/lib/generators/templates/spree_site.rb +12 -0
  2856. data/lib/spree.rb +11 -0
  2857. data/lib/tasks/install.rake +29 -0
  2858. data/promo/Gemfile +36 -0
  2859. data/promo/Gemfile.lock +251 -0
  2860. data/promo/LICENSE +26 -0
  2861. data/promo/README.markdown +14 -0
  2862. data/promo/Rakefile +55 -0
  2863. data/promo/app/controllers/admin/promotion_rules_controller.rb +26 -0
  2864. data/promo/app/controllers/admin/promotions_controller.rb +21 -0
  2865. data/promo/app/controllers/orders_controller_decorator.rb +10 -0
  2866. data/promo/app/models/calculator/free_shipping.rb +24 -0
  2867. data/promo/app/models/promotion.rb +73 -0
  2868. data/promo/app/models/promotion/rules/first_order.rb +7 -0
  2869. data/promo/app/models/promotion/rules/item_total.rb +12 -0
  2870. data/promo/app/models/promotion/rules/product.rb +40 -0
  2871. data/promo/app/models/promotion/rules/user.rb +17 -0
  2872. data/promo/app/models/promotion_credit.rb +9 -0
  2873. data/promo/app/models/promotion_rule.rb +26 -0
  2874. data/promo/app/views/admin/promotion_rules/create.js.erb +6 -0
  2875. data/promo/app/views/admin/promotion_rules/destroy.js.erb +1 -0
  2876. data/promo/app/views/admin/promotions/_form.html.erb +46 -0
  2877. data/promo/app/views/admin/promotions/_promotion_rule.html.erb +8 -0
  2878. data/promo/app/views/admin/promotions/_tab.html.erb +1 -0
  2879. data/promo/app/views/admin/promotions/edit.html.erb +46 -0
  2880. data/promo/app/views/admin/promotions/index.html.erb +40 -0
  2881. data/promo/app/views/admin/promotions/new.html.erb +6 -0
  2882. data/promo/app/views/admin/promotions/rules/_first_order.html.erb +0 -0
  2883. data/promo/app/views/admin/promotions/rules/_item_total.html.erb +7 -0
  2884. data/promo/app/views/admin/promotions/rules/_product.html.erb +18 -0
  2885. data/promo/app/views/admin/promotions/rules/_user.html.erb +7 -0
  2886. data/promo/app/views/checkout/_coupon_code_field.html.erb +6 -0
  2887. data/promo/app/views/products/_promotions.html.erb +23 -0
  2888. data/promo/config/cucumber.yml +10 -0
  2889. data/promo/config/locales/en.yml +55 -0
  2890. data/promo/config/routes.rb +7 -0
  2891. data/promo/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  2892. data/promo/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  2893. data/promo/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  2894. data/promo/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  2895. data/promo/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  2896. data/promo/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  2897. data/promo/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  2898. data/promo/features/orders_total_promo.feature +89 -0
  2899. data/promo/features/step_definitions/promotions_steps.rb +4 -0
  2900. data/promo/features/support/env.rb +4 -0
  2901. data/promo/features/support/paths.rb +39 -0
  2902. data/promo/lib/spree_promo.rb +132 -0
  2903. data/promo/lib/spree_promo_hooks.rb +11 -0
  2904. data/promo/lib/tasks/install.rake +26 -0
  2905. data/promo/lib/tasks/promotions.rake +11 -0
  2906. data/promo/lib/tasks/promotions_extension_tasks.rake +17 -0
  2907. data/promo/public/javascripts/admin/promotions.js +26 -0
  2908. data/promo/public/stylesheets/admin/promotions.css +54 -0
  2909. data/promo/rfcommerce_promo.gemspec +26 -0
  2910. data/promo/spec/models/order_spec.rb +72 -0
  2911. data/promo/spec/models/promotion/rules/first_order_spec.rb +27 -0
  2912. data/promo/spec/models/promotion/rules/item_total_spec.rb +46 -0
  2913. data/promo/spec/models/promotion/rules/product_spec.rb +68 -0
  2914. data/promo/spec/models/promotion/rules/user_spec.rb +35 -0
  2915. data/promo/spec/models/promotion_rule_spec.rb +36 -0
  2916. data/promo/spec/models/promotion_spec.rb +146 -0
  2917. data/promo/spec/spec_helper.rb +17 -0
  2918. data/promo/spec/test_app/Gemfile +36 -0
  2919. data/promo/spec/test_app/Rakefile +7 -0
  2920. data/promo/spec/test_app/app/controllers/application_controller.rb +3 -0
  2921. data/promo/spec/test_app/app/helpers/application_helper.rb +2 -0
  2922. data/promo/spec/test_app/app/views/layouts/application.html.erb +14 -0
  2923. data/promo/spec/test_app/config.ru +4 -0
  2924. data/promo/spec/test_app/config/application.rb +42 -0
  2925. data/promo/spec/test_app/config/boot.rb +6 -0
  2926. data/promo/spec/test_app/config/database.yml +17 -0
  2927. data/promo/spec/test_app/config/environment.rb +5 -0
  2928. data/promo/spec/test_app/config/environments/cucumber.rb +38 -0
  2929. data/promo/spec/test_app/config/environments/development.rb +26 -0
  2930. data/promo/spec/test_app/config/environments/production.rb +49 -0
  2931. data/promo/spec/test_app/config/environments/test.rb +35 -0
  2932. data/promo/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  2933. data/promo/spec/test_app/config/initializers/inflections.rb +10 -0
  2934. data/promo/spec/test_app/config/initializers/mime_types.rb +5 -0
  2935. data/promo/spec/test_app/config/initializers/secret_token.rb +7 -0
  2936. data/promo/spec/test_app/config/initializers/session_store.rb +8 -0
  2937. data/promo/spec/test_app/config/locales/en.yml +5 -0
  2938. data/promo/spec/test_app/config/routes.rb +58 -0
  2939. data/promo/spec/test_app/db/cucumber.sqlite3 +0 -0
  2940. data/promo/spec/test_app/db/default/countries.yml +1583 -0
  2941. data/promo/spec/test_app/db/default/roles.yml +7 -0
  2942. data/promo/spec/test_app/db/default/states.yml +256 -0
  2943. data/promo/spec/test_app/db/default/zone_members.yml +169 -0
  2944. data/promo/spec/test_app/db/default/zones.yml +13 -0
  2945. data/promo/spec/test_app/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  2946. data/promo/spec/test_app/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  2947. data/promo/spec/test_app/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  2948. data/promo/spec/test_app/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  2949. data/promo/spec/test_app/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  2950. data/promo/spec/test_app/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  2951. data/promo/spec/test_app/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  2952. data/promo/spec/test_app/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  2953. data/promo/spec/test_app/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  2954. data/promo/spec/test_app/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  2955. data/promo/spec/test_app/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  2956. data/promo/spec/test_app/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  2957. data/promo/spec/test_app/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  2958. data/promo/spec/test_app/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  2959. data/promo/spec/test_app/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  2960. data/promo/spec/test_app/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  2961. data/promo/spec/test_app/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  2962. data/promo/spec/test_app/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  2963. data/promo/spec/test_app/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  2964. data/promo/spec/test_app/db/migrate/20100105090147_add_cost_price.rb +9 -0
  2965. data/promo/spec/test_app/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  2966. data/promo/spec/test_app/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  2967. data/promo/spec/test_app/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  2968. data/promo/spec/test_app/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  2969. data/promo/spec/test_app/db/migrate/20100113203104_create_trackers.rb +14 -0
  2970. data/promo/spec/test_app/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  2971. data/promo/spec/test_app/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  2972. data/promo/spec/test_app/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  2973. data/promo/spec/test_app/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  2974. data/promo/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  2975. data/promo/spec/test_app/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  2976. data/promo/spec/test_app/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  2977. data/promo/spec/test_app/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  2978. data/promo/spec/test_app/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  2979. data/promo/spec/test_app/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  2980. data/promo/spec/test_app/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  2981. data/promo/spec/test_app/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  2982. data/promo/spec/test_app/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  2983. data/promo/spec/test_app/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  2984. data/promo/spec/test_app/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  2985. data/promo/spec/test_app/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  2986. data/promo/spec/test_app/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  2987. data/promo/spec/test_app/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  2988. data/promo/spec/test_app/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  2989. data/promo/spec/test_app/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  2990. data/promo/spec/test_app/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  2991. data/promo/spec/test_app/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  2992. data/promo/spec/test_app/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  2993. data/promo/spec/test_app/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  2994. data/promo/spec/test_app/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  2995. data/promo/spec/test_app/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  2996. data/promo/spec/test_app/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  2997. data/promo/spec/test_app/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  2998. data/promo/spec/test_app/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  2999. data/promo/spec/test_app/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  3000. data/promo/spec/test_app/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  3001. data/promo/spec/test_app/db/migrate/20100811205836_drop_order_token.rb +11 -0
  3002. data/promo/spec/test_app/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  3003. data/promo/spec/test_app/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  3004. data/promo/spec/test_app/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  3005. data/promo/spec/test_app/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  3006. data/promo/spec/test_app/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  3007. data/promo/spec/test_app/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  3008. data/promo/spec/test_app/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  3009. data/promo/spec/test_app/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  3010. data/promo/spec/test_app/db/migrate/20100903203949_email_for_orders.rb +9 -0
  3011. data/promo/spec/test_app/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  3012. data/promo/spec/test_app/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  3013. data/promo/spec/test_app/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  3014. data/promo/spec/test_app/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  3015. data/promo/spec/test_app/db/migrate/20101026184700_create_log_entries.rb +15 -0
  3016. data/promo/spec/test_app/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  3017. data/promo/spec/test_app/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  3018. data/promo/spec/test_app/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  3019. data/promo/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  3020. data/promo/spec/test_app/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  3021. data/promo/spec/test_app/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  3022. data/promo/spec/test_app/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  3023. data/promo/spec/test_app/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  3024. data/promo/spec/test_app/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  3025. data/promo/spec/test_app/db/migrate/20101026185022_update_order_state.rb +8 -0
  3026. data/promo/spec/test_app/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  3027. data/promo/spec/test_app/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  3028. data/promo/spec/test_app/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  3029. data/promo/spec/test_app/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  3030. data/promo/spec/test_app/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  3031. data/promo/spec/test_app/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  3032. data/promo/spec/test_app/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  3033. data/promo/spec/test_app/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  3034. data/promo/spec/test_app/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  3035. data/promo/spec/test_app/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  3036. data/promo/spec/test_app/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  3037. data/promo/spec/test_app/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  3038. data/promo/spec/test_app/db/sample/users.rb +53 -0
  3039. data/promo/spec/test_app/db/schema.rb +572 -0
  3040. data/promo/spec/test_app/db/seeds.rb +3 -0
  3041. data/promo/spec/test_app/db/test.sqlite3 +0 -0
  3042. data/promo/spec/test_app/log/cucumber.log +1682 -0
  3043. data/promo/spec/test_app/log/development.log +0 -0
  3044. data/promo/spec/test_app/log/production.log +0 -0
  3045. data/promo/spec/test_app/log/server.log +0 -0
  3046. data/promo/spec/test_app/log/test.log +1682 -0
  3047. data/promo/spec/test_app/public/404.html +26 -0
  3048. data/promo/spec/test_app/public/422.html +26 -0
  3049. data/promo/spec/test_app/public/500.html +26 -0
  3050. data/promo/spec/test_app/public/favicon.ico +0 -0
  3051. data/promo/spec/test_app/public/images/add-to-cart.png +0 -0
  3052. data/promo/spec/test_app/public/images/admin/bg/active-tab.png +0 -0
  3053. data/promo/spec/test_app/public/images/admin/bg/admin_tab_back.png +0 -0
  3054. data/promo/spec/test_app/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  3055. data/promo/spec/test_app/public/images/admin/bg/content-back-blue.png +0 -0
  3056. data/promo/spec/test_app/public/images/admin/bg/content-back-green.png +0 -0
  3057. data/promo/spec/test_app/public/images/admin/bg/content-back.png +0 -0
  3058. data/promo/spec/test_app/public/images/admin/bg/flash-error.png +0 -0
  3059. data/promo/spec/test_app/public/images/admin/bg/flash-notice.png +0 -0
  3060. data/promo/spec/test_app/public/images/admin/bg/green-stripes.gif +0 -0
  3061. data/promo/spec/test_app/public/images/admin/bg/green-stripes.png +0 -0
  3062. data/promo/spec/test_app/public/images/admin/bg/grid_header_back.png +0 -0
  3063. data/promo/spec/test_app/public/images/admin/bg/grid_header_back_green.png +0 -0
  3064. data/promo/spec/test_app/public/images/admin/bg/header-bg.png +0 -0
  3065. data/promo/spec/test_app/public/images/admin/bg/header.png +0 -0
  3066. data/promo/spec/test_app/public/images/admin/bg/header_bg.jpg +0 -0
  3067. data/promo/spec/test_app/public/images/admin/bg/menu-current.png +0 -0
  3068. data/promo/spec/test_app/public/images/admin/bg/red-stripes.gif +0 -0
  3069. data/promo/spec/test_app/public/images/admin/bg/red-stripes.png +0 -0
  3070. data/promo/spec/test_app/public/images/admin/bg/spree_50.png +0 -0
  3071. data/promo/spec/test_app/public/images/admin/bg/subnav-divider.png +0 -0
  3072. data/promo/spec/test_app/public/images/admin/bg/subnav.png +0 -0
  3073. data/promo/spec/test_app/public/images/admin/bg/tab-back.png +0 -0
  3074. data/promo/spec/test_app/public/images/admin/buttons/blue/left_01.png +0 -0
  3075. data/promo/spec/test_app/public/images/admin/buttons/blue/right_01.png +0 -0
  3076. data/promo/spec/test_app/public/images/admin/buttons/drag-handle-green.png +0 -0
  3077. data/promo/spec/test_app/public/images/admin/buttons/green/left_01.png +0 -0
  3078. data/promo/spec/test_app/public/images/admin/buttons/green/right_01.png +0 -0
  3079. data/promo/spec/test_app/public/images/admin/buttons/left_01.png +0 -0
  3080. data/promo/spec/test_app/public/images/admin/buttons/left_01_small.png +0 -0
  3081. data/promo/spec/test_app/public/images/admin/buttons/orange/left_03.png +0 -0
  3082. data/promo/spec/test_app/public/images/admin/buttons/orange/right_03.png +0 -0
  3083. data/promo/spec/test_app/public/images/admin/buttons/right_01.png +0 -0
  3084. data/promo/spec/test_app/public/images/admin/buttons/right_01_small.png +0 -0
  3085. data/promo/spec/test_app/public/images/admin/icons/16x16/1.png +0 -0
  3086. data/promo/spec/test_app/public/images/admin/icons/16x16/10.png +0 -0
  3087. data/promo/spec/test_app/public/images/admin/icons/16x16/2.png +0 -0
  3088. data/promo/spec/test_app/public/images/admin/icons/16x16/3.png +0 -0
  3089. data/promo/spec/test_app/public/images/admin/icons/16x16/4.png +0 -0
  3090. data/promo/spec/test_app/public/images/admin/icons/16x16/5.png +0 -0
  3091. data/promo/spec/test_app/public/images/admin/icons/16x16/6.png +0 -0
  3092. data/promo/spec/test_app/public/images/admin/icons/16x16/7.png +0 -0
  3093. data/promo/spec/test_app/public/images/admin/icons/16x16/8.png +0 -0
  3094. data/promo/spec/test_app/public/images/admin/icons/16x16/9.png +0 -0
  3095. data/promo/spec/test_app/public/images/admin/icons/32x32/1.png +0 -0
  3096. data/promo/spec/test_app/public/images/admin/icons/32x32/10.png +0 -0
  3097. data/promo/spec/test_app/public/images/admin/icons/32x32/11.png +0 -0
  3098. data/promo/spec/test_app/public/images/admin/icons/32x32/2.png +0 -0
  3099. data/promo/spec/test_app/public/images/admin/icons/32x32/3.png +0 -0
  3100. data/promo/spec/test_app/public/images/admin/icons/32x32/4.png +0 -0
  3101. data/promo/spec/test_app/public/images/admin/icons/32x32/5.png +0 -0
  3102. data/promo/spec/test_app/public/images/admin/icons/32x32/6.png +0 -0
  3103. data/promo/spec/test_app/public/images/admin/icons/32x32/7.png +0 -0
  3104. data/promo/spec/test_app/public/images/admin/icons/32x32/8.png +0 -0
  3105. data/promo/spec/test_app/public/images/admin/icons/32x32/9.png +0 -0
  3106. data/promo/spec/test_app/public/images/admin/icons/accept.png +0 -0
  3107. data/promo/spec/test_app/public/images/admin/icons/add.gif +0 -0
  3108. data/promo/spec/test_app/public/images/admin/icons/add.png +0 -0
  3109. data/promo/spec/test_app/public/images/admin/icons/arrow-down.gif +0 -0
  3110. data/promo/spec/test_app/public/images/admin/icons/cross.png +0 -0
  3111. data/promo/spec/test_app/public/images/admin/icons/delete.gif +0 -0
  3112. data/promo/spec/test_app/public/images/admin/icons/delete.png +0 -0
  3113. data/promo/spec/test_app/public/images/admin/icons/drag.gif +0 -0
  3114. data/promo/spec/test_app/public/images/admin/icons/edit.gif +0 -0
  3115. data/promo/spec/test_app/public/images/admin/icons/edit.png +0 -0
  3116. data/promo/spec/test_app/public/images/admin/icons/email.png +0 -0
  3117. data/promo/spec/test_app/public/images/admin/icons/error.png +0 -0
  3118. data/promo/spec/test_app/public/images/admin/icons/exclamation.png +0 -0
  3119. data/promo/spec/test_app/public/images/admin/icons/feed.png +0 -0
  3120. data/promo/spec/test_app/public/images/admin/icons/pdf.png +0 -0
  3121. data/promo/spec/test_app/public/images/admin/icons/reorder.gif +0 -0
  3122. data/promo/spec/test_app/public/images/admin/icons/search.gif +0 -0
  3123. data/promo/spec/test_app/public/images/admin/icons/send-email.png +0 -0
  3124. data/promo/spec/test_app/public/images/admin/icons/stop.png +0 -0
  3125. data/promo/spec/test_app/public/images/admin/icons/tick.png +0 -0
  3126. data/promo/spec/test_app/public/images/admin/icons/up.gif +0 -0
  3127. data/promo/spec/test_app/public/images/admin/icons/xls.png +0 -0
  3128. data/promo/spec/test_app/public/images/admin/tabs/off-left.png +0 -0
  3129. data/promo/spec/test_app/public/images/admin/tabs/off-right.png +0 -0
  3130. data/promo/spec/test_app/public/images/admin/tabs/on-left.png +0 -0
  3131. data/promo/spec/test_app/public/images/admin/tabs/on-right.png +0 -0
  3132. data/promo/spec/test_app/public/images/ajax_loader.gif +0 -0
  3133. data/promo/spec/test_app/public/images/amex_cid.gif +0 -0
  3134. data/promo/spec/test_app/public/images/bg-button-hover.png +0 -0
  3135. data/promo/spec/test_app/public/images/bg-button-pressed.png +0 -0
  3136. data/promo/spec/test_app/public/images/bg-button.gif +0 -0
  3137. data/promo/spec/test_app/public/images/bg-button.png +0 -0
  3138. data/promo/spec/test_app/public/images/blue/left_01.png +0 -0
  3139. data/promo/spec/test_app/public/images/blue/right_01.png +0 -0
  3140. data/promo/spec/test_app/public/images/body-back.png +0 -0
  3141. data/promo/spec/test_app/public/images/bottom_shine.png +0 -0
  3142. data/promo/spec/test_app/public/images/breadcrumb.gif +0 -0
  3143. data/promo/spec/test_app/public/images/button-dark-hover.png +0 -0
  3144. data/promo/spec/test_app/public/images/button-dark.png +0 -0
  3145. data/promo/spec/test_app/public/images/buttons/bg-button-hover.png +0 -0
  3146. data/promo/spec/test_app/public/images/buttons/bg-button-pressed.png +0 -0
  3147. data/promo/spec/test_app/public/images/buttons/bg-button.gif +0 -0
  3148. data/promo/spec/test_app/public/images/buttons/bg-button.png +0 -0
  3149. data/promo/spec/test_app/public/images/buttons/blue/left_01.png +0 -0
  3150. data/promo/spec/test_app/public/images/buttons/blue/right_01.png +0 -0
  3151. data/promo/spec/test_app/public/images/buttons/button-dark-hover.png +0 -0
  3152. data/promo/spec/test_app/public/images/buttons/button-dark.png +0 -0
  3153. data/promo/spec/test_app/public/images/buttons/drag-handle-green.png +0 -0
  3154. data/promo/spec/test_app/public/images/buttons/green/left_01.png +0 -0
  3155. data/promo/spec/test_app/public/images/buttons/green/right_01.png +0 -0
  3156. data/promo/spec/test_app/public/images/buttons/left_01.png +0 -0
  3157. data/promo/spec/test_app/public/images/buttons/left_01_small.png +0 -0
  3158. data/promo/spec/test_app/public/images/buttons/orange/left_03.png +0 -0
  3159. data/promo/spec/test_app/public/images/buttons/orange/right_03.png +0 -0
  3160. data/promo/spec/test_app/public/images/buttons/right_01.png +0 -0
  3161. data/promo/spec/test_app/public/images/buttons/right_01_small.png +0 -0
  3162. data/promo/spec/test_app/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  3163. data/promo/spec/test_app/public/images/buttons/top-shine.png +0 -0
  3164. data/promo/spec/test_app/public/images/calendar_date_select/calendar.gif +0 -0
  3165. data/promo/spec/test_app/public/images/cart-empty.png +0 -0
  3166. data/promo/spec/test_app/public/images/cart-empty_x32.png +0 -0
  3167. data/promo/spec/test_app/public/images/cart-full.png +0 -0
  3168. data/promo/spec/test_app/public/images/cart-full_x32.png +0 -0
  3169. data/promo/spec/test_app/public/images/checkout.png +0 -0
  3170. data/promo/spec/test_app/public/images/creditcard.gif +0 -0
  3171. data/promo/spec/test_app/public/images/datepicker/backstripes.gif +0 -0
  3172. data/promo/spec/test_app/public/images/datepicker/bg_header.jpg +0 -0
  3173. data/promo/spec/test_app/public/images/datepicker/bullet1.gif +0 -0
  3174. data/promo/spec/test_app/public/images/datepicker/bullet2.gif +0 -0
  3175. data/promo/spec/test_app/public/images/datepicker/cal.gif +0 -0
  3176. data/promo/spec/test_app/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  3177. data/promo/spec/test_app/public/images/discover_cid.gif +0 -0
  3178. data/promo/spec/test_app/public/images/drag-handle-green.png +0 -0
  3179. data/promo/spec/test_app/public/images/favicon.ico +0 -0
  3180. data/promo/spec/test_app/public/images/green/left_01.png +0 -0
  3181. data/promo/spec/test_app/public/images/green/right_01.png +0 -0
  3182. data/promo/spec/test_app/public/images/grid.png +0 -0
  3183. data/promo/spec/test_app/public/images/left_01.png +0 -0
  3184. data/promo/spec/test_app/public/images/left_01_small.png +0 -0
  3185. data/promo/spec/test_app/public/images/master_cid.jpg +0 -0
  3186. data/promo/spec/test_app/public/images/menu-current.png +0 -0
  3187. data/promo/spec/test_app/public/images/menu-hover.png +0 -0
  3188. data/promo/spec/test_app/public/images/noimage/mini.jpg +0 -0
  3189. data/promo/spec/test_app/public/images/noimage/product.jpg +0 -0
  3190. data/promo/spec/test_app/public/images/noimage/small.jpg +0 -0
  3191. data/promo/spec/test_app/public/images/openid-inputicon.gif +0 -0
  3192. data/promo/spec/test_app/public/images/orange/left_03.png +0 -0
  3193. data/promo/spec/test_app/public/images/orange/right_03.png +0 -0
  3194. data/promo/spec/test_app/public/images/progress.gif +0 -0
  3195. data/promo/spec/test_app/public/images/reorder.jpg +0 -0
  3196. data/promo/spec/test_app/public/images/right_01.png +0 -0
  3197. data/promo/spec/test_app/public/images/right_01_small.png +0 -0
  3198. data/promo/spec/test_app/public/images/separator.png +0 -0
  3199. data/promo/spec/test_app/public/images/shadow-top.png +0 -0
  3200. data/promo/spec/test_app/public/images/shadow_top.png +0 -0
  3201. data/promo/spec/test_app/public/images/spinner.gif +0 -0
  3202. data/promo/spec/test_app/public/images/spree.jpg +0 -0
  3203. data/promo/spec/test_app/public/images/spree/progress.gif +0 -0
  3204. data/promo/spec/test_app/public/images/spree/spinner.gif +0 -0
  3205. data/promo/spec/test_app/public/images/spree/spree.jpg +0 -0
  3206. data/promo/spec/test_app/public/images/step-progress/completed-completed.gif +0 -0
  3207. data/promo/spec/test_app/public/images/step-progress/completed-current.gif +0 -0
  3208. data/promo/spec/test_app/public/images/step-progress/completed-first.gif +0 -0
  3209. data/promo/spec/test_app/public/images/step-progress/current-first.gif +0 -0
  3210. data/promo/spec/test_app/public/images/step-progress/current-incomplete.gif +0 -0
  3211. data/promo/spec/test_app/public/images/step-progress/current-right.gif +0 -0
  3212. data/promo/spec/test_app/public/images/step-progress/incomplete-incomplete.gif +0 -0
  3213. data/promo/spec/test_app/public/images/step-progress/incomplete-right.gif +0 -0
  3214. data/promo/spec/test_app/public/images/steps/1.png +0 -0
  3215. data/promo/spec/test_app/public/images/steps/1_small.png +0 -0
  3216. data/promo/spec/test_app/public/images/steps/2.png +0 -0
  3217. data/promo/spec/test_app/public/images/steps/2_small.png +0 -0
  3218. data/promo/spec/test_app/public/images/steps/3.png +0 -0
  3219. data/promo/spec/test_app/public/images/steps/3_small.png +0 -0
  3220. data/promo/spec/test_app/public/images/steps/4.png +0 -0
  3221. data/promo/spec/test_app/public/images/steps/4_small.png +0 -0
  3222. data/promo/spec/test_app/public/images/steps/5.png +0 -0
  3223. data/promo/spec/test_app/public/images/steps/5_small.png +0 -0
  3224. data/promo/spec/test_app/public/images/steps/6.png +0 -0
  3225. data/promo/spec/test_app/public/images/steps/6_small.png +0 -0
  3226. data/promo/spec/test_app/public/images/sxsw-ribbon-v1.png +0 -0
  3227. data/promo/spec/test_app/public/images/tab_bottom.gif +0 -0
  3228. data/promo/spec/test_app/public/images/tile-header.png +0 -0
  3229. data/promo/spec/test_app/public/images/tile-slider.png +0 -0
  3230. data/promo/spec/test_app/public/images/top-shine.png +0 -0
  3231. data/promo/spec/test_app/public/images/tree-nav-icons/bullet.gif +0 -0
  3232. data/promo/spec/test_app/public/images/tree-nav-icons/minus.gif +0 -0
  3233. data/promo/spec/test_app/public/images/tree-nav-icons/plus.gif +0 -0
  3234. data/promo/spec/test_app/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  3235. data/promo/spec/test_app/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  3236. data/promo/spec/test_app/public/images/update.png +0 -0
  3237. data/promo/spec/test_app/public/images/visa_cid.gif +0 -0
  3238. data/promo/spec/test_app/public/images/wrapper-back-2.png +0 -0
  3239. data/promo/spec/test_app/public/images/wrapper-back.png +0 -0
  3240. data/promo/spec/test_app/public/images/yui-menubaritem_submenuindicator.png +0 -0
  3241. data/promo/spec/test_app/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  3242. data/promo/spec/test_app/public/images/yui-menuitem_checkbox.png +0 -0
  3243. data/promo/spec/test_app/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  3244. data/promo/spec/test_app/public/images/yui-menuitem_submenuindicator.png +0 -0
  3245. data/promo/spec/test_app/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  3246. data/promo/spec/test_app/public/images/yui-sprite.png +0 -0
  3247. data/promo/spec/test_app/public/javascripts/additional-methods.js +236 -0
  3248. data/promo/spec/test_app/public/javascripts/admin.js +232 -0
  3249. data/promo/spec/test_app/public/javascripts/admin/address_states.js +25 -0
  3250. data/promo/spec/test_app/public/javascripts/admin/checkouts/edit.js +130 -0
  3251. data/promo/spec/test_app/public/javascripts/admin/orders/edit.js +23 -0
  3252. data/promo/spec/test_app/public/javascripts/admin/orders/edit_form.js +16 -0
  3253. data/promo/spec/test_app/public/javascripts/admin/payments/new.js +9 -0
  3254. data/promo/spec/test_app/public/javascripts/admin/promotions.js +26 -0
  3255. data/promo/spec/test_app/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  3256. data/promo/spec/test_app/public/javascripts/application.js +12 -0
  3257. data/promo/spec/test_app/public/javascripts/calculator.js +15 -0
  3258. data/promo/spec/test_app/public/javascripts/checkout.js +75 -0
  3259. data/promo/spec/test_app/public/javascripts/datepicker.js +1445 -0
  3260. data/promo/spec/test_app/public/javascripts/gateway.js +13 -0
  3261. data/promo/spec/test_app/public/javascripts/jquery-1.4.2.min.js +154 -0
  3262. data/promo/spec/test_app/public/javascripts/jquery-ui.js +188 -0
  3263. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/help.gif +0 -0
  3264. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/important.gif +0 -0
  3265. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/info.gif +0 -0
  3266. data/promo/spec/test_app/public/javascripts/jquery.alerts/images/title.gif +0 -0
  3267. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  3268. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  3269. data/promo/spec/test_app/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  3270. data/promo/spec/test_app/public/javascripts/jquery.autocomplete.min.js +13 -0
  3271. data/promo/spec/test_app/public/javascripts/jquery.cookie.js +96 -0
  3272. data/promo/spec/test_app/public/javascripts/jquery.delayedobserver.js +35 -0
  3273. data/promo/spec/test_app/public/javascripts/jquery.suggest.js +276 -0
  3274. data/promo/spec/test_app/public/javascripts/jquery.template.js +255 -0
  3275. data/promo/spec/test_app/public/javascripts/jquery.tokeninput.js +618 -0
  3276. data/promo/spec/test_app/public/javascripts/jquery.validate.min.js +16 -0
  3277. data/promo/spec/test_app/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  3278. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  3279. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/d.png +0 -0
  3280. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  3281. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/style.css +60 -0
  3282. data/promo/spec/test_app/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  3283. data/promo/spec/test_app/public/javascripts/lang/af.js +40 -0
  3284. data/promo/spec/test_app/public/javascripts/lang/ar.js +50 -0
  3285. data/promo/spec/test_app/public/javascripts/lang/de.js +40 -0
  3286. data/promo/spec/test_app/public/javascripts/lang/du.js +40 -0
  3287. data/promo/spec/test_app/public/javascripts/lang/en.js +42 -0
  3288. data/promo/spec/test_app/public/javascripts/lang/es.js +41 -0
  3289. data/promo/spec/test_app/public/javascripts/lang/fi.js +40 -0
  3290. data/promo/spec/test_app/public/javascripts/lang/fr.js +44 -0
  3291. data/promo/spec/test_app/public/javascripts/lang/gr.js +40 -0
  3292. data/promo/spec/test_app/public/javascripts/lang/he.js +49 -0
  3293. data/promo/spec/test_app/public/javascripts/lang/it.js +13 -0
  3294. data/promo/spec/test_app/public/javascripts/lang/nl.js +40 -0
  3295. data/promo/spec/test_app/public/javascripts/lang/no.js +40 -0
  3296. data/promo/spec/test_app/public/javascripts/lang/pt.js +50 -0
  3297. data/promo/spec/test_app/public/javascripts/lang/ro.js +40 -0
  3298. data/promo/spec/test_app/public/javascripts/lang/ru.js +40 -0
  3299. data/promo/spec/test_app/public/javascripts/lang/sp.js +40 -0
  3300. data/promo/spec/test_app/public/javascripts/lang/sv.js +41 -0
  3301. data/promo/spec/test_app/public/javascripts/lang/ua.js +40 -0
  3302. data/promo/spec/test_app/public/javascripts/localization/messages_cn.js +24 -0
  3303. data/promo/spec/test_app/public/javascripts/localization/messages_cs.js +23 -0
  3304. data/promo/spec/test_app/public/javascripts/localization/messages_da.js +21 -0
  3305. data/promo/spec/test_app/public/javascripts/localization/messages_de.js +21 -0
  3306. data/promo/spec/test_app/public/javascripts/localization/messages_es.js +24 -0
  3307. data/promo/spec/test_app/public/javascripts/localization/messages_fr.js +23 -0
  3308. data/promo/spec/test_app/public/javascripts/localization/messages_hu.js +21 -0
  3309. data/promo/spec/test_app/public/javascripts/localization/messages_it.js +26 -0
  3310. data/promo/spec/test_app/public/javascripts/localization/messages_kk.js +23 -0
  3311. data/promo/spec/test_app/public/javascripts/localization/messages_nl.js +23 -0
  3312. data/promo/spec/test_app/public/javascripts/localization/messages_no.js +23 -0
  3313. data/promo/spec/test_app/public/javascripts/localization/messages_pl.js +23 -0
  3314. data/promo/spec/test_app/public/javascripts/localization/messages_ptbr.js +30 -0
  3315. data/promo/spec/test_app/public/javascripts/localization/messages_ro.js +24 -0
  3316. data/promo/spec/test_app/public/javascripts/localization/messages_ru.js +23 -0
  3317. data/promo/spec/test_app/public/javascripts/localization/messages_se.js +23 -0
  3318. data/promo/spec/test_app/public/javascripts/localization/messages_sk.js +21 -0
  3319. data/promo/spec/test_app/public/javascripts/localization/messages_tr.js +24 -0
  3320. data/promo/spec/test_app/public/javascripts/localization/messages_tw.js +24 -0
  3321. data/promo/spec/test_app/public/javascripts/localization/messages_ua.js +24 -0
  3322. data/promo/spec/test_app/public/javascripts/nested-attribute.js +26 -0
  3323. data/promo/spec/test_app/public/javascripts/open_id.js +15 -0
  3324. data/promo/spec/test_app/public/javascripts/product.js +49 -0
  3325. data/promo/spec/test_app/public/javascripts/rails.js +127 -0
  3326. data/promo/spec/test_app/public/javascripts/taxonomy.js +201 -0
  3327. data/promo/spec/test_app/public/javascripts/zone.js +39 -0
  3328. data/promo/spec/test_app/public/robots.txt +5 -0
  3329. data/promo/spec/test_app/public/stylesheets/admin/admin-forms.css +154 -0
  3330. data/promo/spec/test_app/public/stylesheets/admin/admin-reset.css +69 -0
  3331. data/promo/spec/test_app/public/stylesheets/admin/admin-tables.css +39 -0
  3332. data/promo/spec/test_app/public/stylesheets/admin/admin-typography.css +117 -0
  3333. data/promo/spec/test_app/public/stylesheets/admin/admin.css +614 -0
  3334. data/promo/spec/test_app/public/stylesheets/admin/autocomplete.css +73 -0
  3335. data/promo/spec/test_app/public/stylesheets/admin/dashboard.css +143 -0
  3336. data/promo/spec/test_app/public/stylesheets/admin/edit_checkouts.css +57 -0
  3337. data/promo/spec/test_app/public/stylesheets/admin/grids.css +314 -0
  3338. data/promo/spec/test_app/public/stylesheets/admin/promotions.css +54 -0
  3339. data/promo/spec/test_app/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  3340. data/promo/spec/test_app/public/stylesheets/admin/token-input.css +109 -0
  3341. data/promo/spec/test_app/public/stylesheets/admin/yui-includes.css +14 -0
  3342. data/promo/spec/test_app/public/stylesheets/datepicker.css +263 -0
  3343. data/promo/spec/test_app/public/stylesheets/jquery.autocomplete.css +48 -0
  3344. data/promo/spec/test_app/public/stylesheets/screen.css +916 -0
  3345. data/promo/spec/test_app/script/rails +6 -0
  3346. data/sample/LICENSE +26 -0
  3347. data/sample/Rakefile +17 -0
  3348. data/sample/db/sample/addresses.yml +27 -0
  3349. data/sample/db/sample/adjustments.yml +24 -0
  3350. data/sample/db/sample/assets.yml +320 -0
  3351. data/sample/db/sample/assets/apache_baseball.png +0 -0
  3352. data/sample/db/sample/assets/ror_bag.jpeg +0 -0
  3353. data/sample/db/sample/assets/ror_baseball.jpeg +0 -0
  3354. data/sample/db/sample/assets/ror_baseball_back.jpeg +0 -0
  3355. data/sample/db/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
  3356. data/sample/db/sample/assets/ror_baseball_jersey_back_green.png +0 -0
  3357. data/sample/db/sample/assets/ror_baseball_jersey_back_red.png +0 -0
  3358. data/sample/db/sample/assets/ror_baseball_jersey_blue.png +0 -0
  3359. data/sample/db/sample/assets/ror_baseball_jersey_green.png +0 -0
  3360. data/sample/db/sample/assets/ror_baseball_jersey_red.png +0 -0
  3361. data/sample/db/sample/assets/ror_jr_spaghetti.jpeg +0 -0
  3362. data/sample/db/sample/assets/ror_mug.jpeg +0 -0
  3363. data/sample/db/sample/assets/ror_mug_back.jpeg +0 -0
  3364. data/sample/db/sample/assets/ror_ringer.jpeg +0 -0
  3365. data/sample/db/sample/assets/ror_ringer_back.jpeg +0 -0
  3366. data/sample/db/sample/assets/ror_stein.jpeg +0 -0
  3367. data/sample/db/sample/assets/ror_stein_back.jpeg +0 -0
  3368. data/sample/db/sample/assets/ror_tote.jpeg +0 -0
  3369. data/sample/db/sample/assets/ror_tote_back.jpeg +0 -0
  3370. data/sample/db/sample/assets/ruby_baseball.png +0 -0
  3371. data/sample/db/sample/calculators.yml +16 -0
  3372. data/sample/db/sample/inventory_units.rb +4 -0
  3373. data/sample/db/sample/line_items.yml +40 -0
  3374. data/sample/db/sample/option_types.yml +8 -0
  3375. data/sample/db/sample/option_values.yml +35 -0
  3376. data/sample/db/sample/orders.yml +20 -0
  3377. data/sample/db/sample/payment_methods.yml +30 -0
  3378. data/sample/db/sample/payments.rb +25 -0
  3379. data/sample/db/sample/preferences.yml +20 -0
  3380. data/sample/db/sample/product_groups.yml +9 -0
  3381. data/sample/db/sample/product_option_types.yml +8 -0
  3382. data/sample/db/sample/product_properties.yml +136 -0
  3383. data/sample/db/sample/product_scopes.yml +35 -0
  3384. data/sample/db/sample/products.rb +15 -0
  3385. data/sample/db/sample/products.yml +53 -0
  3386. data/sample/db/sample/properties.yml +39 -0
  3387. data/sample/db/sample/prototypes.yml +9 -0
  3388. data/sample/db/sample/shipments.yml +8 -0
  3389. data/sample/db/sample/shipping_categories.yml +2 -0
  3390. data/sample/db/sample/shipping_methods.yml +9 -0
  3391. data/sample/db/sample/tax_categories.yml +6 -0
  3392. data/sample/db/sample/taxonomies.yml +4 -0
  3393. data/sample/db/sample/taxons.rb +3 -0
  3394. data/sample/db/sample/taxons.yml +91 -0
  3395. data/sample/db/sample/update_memberships.rb +1 -0
  3396. data/sample/db/sample/users.yml +8 -0
  3397. data/sample/db/sample/variants.yml +133 -0
  3398. data/sample/lib/spree_sample.rb +6 -0
  3399. data/sample/lib/tasks/install.rake +24 -0
  3400. data/sample/rfcommerce_sample.gemspec +26 -0
  3401. data/sample/sandbox_template.rb +4 -0
  3402. data/sandbox/Gemfile +39 -0
  3403. data/sandbox/Gemfile.lock +99 -0
  3404. data/sandbox/README +256 -0
  3405. data/sandbox/Rakefile +22 -0
  3406. data/sandbox/app/controllers/application_controller.rb +3 -0
  3407. data/sandbox/app/helpers/application_helper.rb +2 -0
  3408. data/sandbox/app/views/layouts/application.html.erb +14 -0
  3409. data/sandbox/config.ru +4 -0
  3410. data/sandbox/config/application.rb +45 -0
  3411. data/sandbox/config/boot.rb +6 -0
  3412. data/sandbox/config/database.yml +22 -0
  3413. data/sandbox/config/environment.rb +5 -0
  3414. data/sandbox/config/environments/development.rb +26 -0
  3415. data/sandbox/config/environments/production.rb +49 -0
  3416. data/sandbox/config/environments/test.rb +35 -0
  3417. data/sandbox/config/initializers/backtrace_silencers.rb +7 -0
  3418. data/sandbox/config/initializers/inflections.rb +10 -0
  3419. data/sandbox/config/initializers/mime_types.rb +5 -0
  3420. data/sandbox/config/initializers/secret_token.rb +7 -0
  3421. data/sandbox/config/initializers/session_store.rb +8 -0
  3422. data/sandbox/config/locales/en.yml +5 -0
  3423. data/sandbox/config/routes.rb +58 -0
  3424. data/sandbox/db/default/countries.yml +1583 -0
  3425. data/sandbox/db/default/roles.yml +7 -0
  3426. data/sandbox/db/default/states.yml +256 -0
  3427. data/sandbox/db/default/zone_members.yml +169 -0
  3428. data/sandbox/db/default/zones.yml +13 -0
  3429. data/sandbox/db/development.sqlite3 +0 -0
  3430. data/sandbox/db/migrate/20090823005402_spree_zero_nine_zero.rb +442 -0
  3431. data/sandbox/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
  3432. data/sandbox/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +36 -0
  3433. data/sandbox/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
  3434. data/sandbox/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
  3435. data/sandbox/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
  3436. data/sandbox/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
  3437. data/sandbox/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
  3438. data/sandbox/db/migrate/20091016174634_change_preference_value_type.rb +10 -0
  3439. data/sandbox/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
  3440. data/sandbox/db/migrate/20091021133257_charge_refactoring.rb +35 -0
  3441. data/sandbox/db/migrate/20091104151730_add_some_indexes.rb +21 -0
  3442. data/sandbox/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
  3443. data/sandbox/db/migrate/20091209153045_state_for_shipments.rb +9 -0
  3444. data/sandbox/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
  3445. data/sandbox/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
  3446. data/sandbox/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
  3447. data/sandbox/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
  3448. data/sandbox/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
  3449. data/sandbox/db/migrate/20100105090147_add_cost_price.rb +9 -0
  3450. data/sandbox/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +21 -0
  3451. data/sandbox/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
  3452. data/sandbox/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
  3453. data/sandbox/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
  3454. data/sandbox/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
  3455. data/sandbox/db/migrate/20100113203104_create_trackers.rb +14 -0
  3456. data/sandbox/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
  3457. data/sandbox/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
  3458. data/sandbox/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
  3459. data/sandbox/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
  3460. data/sandbox/db/migrate/20100209025806_create_payment_methods.rb +20 -0
  3461. data/sandbox/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
  3462. data/sandbox/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
  3463. data/sandbox/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
  3464. data/sandbox/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
  3465. data/sandbox/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
  3466. data/sandbox/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
  3467. data/sandbox/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
  3468. data/sandbox/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
  3469. data/sandbox/db/migrate/20100317120946_add_alt_text_to_images.rb +9 -0
  3470. data/sandbox/db/migrate/20100419190933_rename_coupons_to_promotions.rb +10 -0
  3471. data/sandbox/db/migrate/20100419194457_fix_existing_coupon_credits.rb +9 -0
  3472. data/sandbox/db/migrate/20100426100726_create_promotion_rules.rb +24 -0
  3473. data/sandbox/db/migrate/20100427121301_add_display_to_payment_methods.rb +9 -0
  3474. data/sandbox/db/migrate/20100501084722_match_policy_for_promotions.rb +9 -0
  3475. data/sandbox/db/migrate/20100501095202_create_promotion_rules_users.rb +14 -0
  3476. data/sandbox/db/migrate/20100502163939_name_for_promotions.rb +9 -0
  3477. data/sandbox/db/migrate/20100504142133_add_addresses_checkouts_indexes.rb +16 -0
  3478. data/sandbox/db/migrate/20100506180619_add_icon_to_taxons.rb +18 -0
  3479. data/sandbox/db/migrate/20100506185838_add_description_to_taxons.rb +11 -0
  3480. data/sandbox/db/migrate/20100528155333_index_for_shipments_number.rb +9 -0
  3481. data/sandbox/db/migrate/20100528185820_add_index_on_users_persistence_token.rb +9 -0
  3482. data/sandbox/db/migrate/20100605152042_add_default_to_tax_categories.rb +9 -0
  3483. data/sandbox/db/migrate/20100624110730_add_display_to_shipping_methods.rb +9 -0
  3484. data/sandbox/db/migrate/20100624123336_rename_payment_method_display.rb +9 -0
  3485. data/sandbox/db/migrate/20100624175547_rename_preferences_field.rb +8 -0
  3486. data/sandbox/db/migrate/20100811163637_add_guest_flag.rb +13 -0
  3487. data/sandbox/db/migrate/20100811205836_drop_order_token.rb +11 -0
  3488. data/sandbox/db/migrate/20100812162326_payments_state_and_assigned_to_order_only.rb +11 -0
  3489. data/sandbox/db/migrate/20100813023502_create_address_keys_for_order.rb +15 -0
  3490. data/sandbox/db/migrate/20100813185745_payment_total_for_orders.rb +9 -0
  3491. data/sandbox/db/migrate/20100816212146_shipping_method_id_for_orders.rb +9 -0
  3492. data/sandbox/db/migrate/20100817152723_add_shipment_and_payment_state.rb +15 -0
  3493. data/sandbox/db/migrate/20100819170125_refactor_adjustments.rb +19 -0
  3494. data/sandbox/db/migrate/20100820135707_response_code_and_avs_response_for_payments.rb +11 -0
  3495. data/sandbox/db/migrate/20100901171814_change_guest_flag_to_anonymous.rb +13 -0
  3496. data/sandbox/db/migrate/20100903203949_email_for_orders.rb +9 -0
  3497. data/sandbox/db/migrate/20100923095305_update_calculable_type_for_promotions.rb +9 -0
  3498. data/sandbox/db/migrate/20100923162011_create_mail_methods.rb +12 -0
  3499. data/sandbox/db/migrate/20100929151905_rename_frozen_to_locked.rb +8 -0
  3500. data/sandbox/db/migrate/20101008190536_move_special_instructions_to_orders.rb +11 -0
  3501. data/sandbox/db/migrate/20101026184700_create_log_entries.rb +15 -0
  3502. data/sandbox/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +94 -0
  3503. data/sandbox/db/migrate/20101026184746_delete_in_progress_orders.rb +18 -0
  3504. data/sandbox/db/migrate/20101026184808_migrate_checkout_to_orders.rb +27 -0
  3505. data/sandbox/db/migrate/20101026184833_migrate_adjustments.rb +9 -0
  3506. data/sandbox/db/migrate/20101026184855_remove_shipped_state.rb +14 -0
  3507. data/sandbox/db/migrate/20101026184916_prevent_nil_payment_total.rb +8 -0
  3508. data/sandbox/db/migrate/20101026184932_prevent_nil_email.rb +9 -0
  3509. data/sandbox/db/migrate/20101026184950_rename_columns_for_devise.rb +39 -0
  3510. data/sandbox/db/migrate/20101026184959_generate_anonymous_users.rb +14 -0
  3511. data/sandbox/db/migrate/20101026185022_update_order_state.rb +8 -0
  3512. data/sandbox/db/migrate/20101026192225_cleanup_legacy_tables.rb +11 -0
  3513. data/sandbox/db/migrate/20101028151745_remove_number_and_cvv_from_credicard.rb +9 -0
  3514. data/sandbox/db/migrate/20101103212716_drop_anonymous_field_for_user.rb +8 -0
  3515. data/sandbox/db/migrate/20101111133551_renamed_rma_cancelled_state.rb +10 -0
  3516. data/sandbox/db/migrate/20101117031806_fix_problematic_index_names.rb +13 -0
  3517. data/sandbox/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  3518. data/sandbox/db/migrate/20101217012656_create_tokenized_permissions.rb +18 -0
  3519. data/sandbox/db/migrate/20101219201531_tokens_for_legacy_orders.rb +12 -0
  3520. data/sandbox/db/migrate/20101223215658_add_position_to_variants.rb +9 -0
  3521. data/sandbox/db/migrate/20110110130847_add_next_state_to_state_events.rb +9 -0
  3522. data/sandbox/db/migrate/20110111122537_add_position_to_option_types.rb +9 -0
  3523. data/sandbox/db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb +17 -0
  3524. data/sandbox/db/sample/addresses.yml +27 -0
  3525. data/sandbox/db/sample/adjustments.yml +24 -0
  3526. data/sandbox/db/sample/assets.yml +320 -0
  3527. data/sandbox/db/sample/assets/apache_baseball.png +0 -0
  3528. data/sandbox/db/sample/assets/ror_bag.jpeg +0 -0
  3529. data/sandbox/db/sample/assets/ror_baseball.jpeg +0 -0
  3530. data/sandbox/db/sample/assets/ror_baseball_back.jpeg +0 -0
  3531. data/sandbox/db/sample/assets/ror_baseball_jersey_back_blue.png +0 -0
  3532. data/sandbox/db/sample/assets/ror_baseball_jersey_back_green.png +0 -0
  3533. data/sandbox/db/sample/assets/ror_baseball_jersey_back_red.png +0 -0
  3534. data/sandbox/db/sample/assets/ror_baseball_jersey_blue.png +0 -0
  3535. data/sandbox/db/sample/assets/ror_baseball_jersey_green.png +0 -0
  3536. data/sandbox/db/sample/assets/ror_baseball_jersey_red.png +0 -0
  3537. data/sandbox/db/sample/assets/ror_jr_spaghetti.jpeg +0 -0
  3538. data/sandbox/db/sample/assets/ror_mug.jpeg +0 -0
  3539. data/sandbox/db/sample/assets/ror_mug_back.jpeg +0 -0
  3540. data/sandbox/db/sample/assets/ror_ringer.jpeg +0 -0
  3541. data/sandbox/db/sample/assets/ror_ringer_back.jpeg +0 -0
  3542. data/sandbox/db/sample/assets/ror_stein.jpeg +0 -0
  3543. data/sandbox/db/sample/assets/ror_stein_back.jpeg +0 -0
  3544. data/sandbox/db/sample/assets/ror_tote.jpeg +0 -0
  3545. data/sandbox/db/sample/assets/ror_tote_back.jpeg +0 -0
  3546. data/sandbox/db/sample/assets/ruby_baseball.png +0 -0
  3547. data/sandbox/db/sample/calculators.yml +16 -0
  3548. data/sandbox/db/sample/inventory_units.rb +4 -0
  3549. data/sandbox/db/sample/line_items.yml +40 -0
  3550. data/sandbox/db/sample/option_types.yml +8 -0
  3551. data/sandbox/db/sample/option_values.yml +35 -0
  3552. data/sandbox/db/sample/orders.yml +20 -0
  3553. data/sandbox/db/sample/payment_methods.yml +30 -0
  3554. data/sandbox/db/sample/payments.rb +25 -0
  3555. data/sandbox/db/sample/preferences.yml +20 -0
  3556. data/sandbox/db/sample/product_groups.yml +9 -0
  3557. data/sandbox/db/sample/product_option_types.yml +8 -0
  3558. data/sandbox/db/sample/product_properties.yml +136 -0
  3559. data/sandbox/db/sample/product_scopes.yml +35 -0
  3560. data/sandbox/db/sample/products.rb +15 -0
  3561. data/sandbox/db/sample/products.yml +53 -0
  3562. data/sandbox/db/sample/properties.yml +39 -0
  3563. data/sandbox/db/sample/prototypes.yml +9 -0
  3564. data/sandbox/db/sample/shipments.yml +8 -0
  3565. data/sandbox/db/sample/shipping_categories.yml +2 -0
  3566. data/sandbox/db/sample/shipping_methods.yml +9 -0
  3567. data/sandbox/db/sample/tax_categories.yml +6 -0
  3568. data/sandbox/db/sample/taxonomies.yml +4 -0
  3569. data/sandbox/db/sample/taxons.rb +3 -0
  3570. data/sandbox/db/sample/taxons.yml +91 -0
  3571. data/sandbox/db/sample/update_memberships.rb +1 -0
  3572. data/sandbox/db/sample/users.rb +53 -0
  3573. data/sandbox/db/sample/users.yml +8 -0
  3574. data/sandbox/db/sample/variants.yml +133 -0
  3575. data/sandbox/db/schema.rb +572 -0
  3576. data/sandbox/db/seeds.rb +3 -0
  3577. data/sandbox/doc/README_FOR_APP +2 -0
  3578. data/sandbox/lib/spree_site.rb +12 -0
  3579. data/sandbox/log/development.log +8406 -0
  3580. data/sandbox/log/production.log +0 -0
  3581. data/sandbox/log/server.log +0 -0
  3582. data/sandbox/log/test.log +0 -0
  3583. data/sandbox/public/404.html +26 -0
  3584. data/sandbox/public/422.html +26 -0
  3585. data/sandbox/public/500.html +26 -0
  3586. data/sandbox/public/assets/products/1/large/ror_tote.jpeg +0 -0
  3587. data/sandbox/public/assets/products/1/mini/ror_tote.jpeg +0 -0
  3588. data/sandbox/public/assets/products/1/original/ror_tote.jpeg +0 -0
  3589. data/sandbox/public/assets/products/1/product/ror_tote.jpeg +0 -0
  3590. data/sandbox/public/assets/products/1/small/ror_tote.jpeg +0 -0
  3591. data/sandbox/public/assets/products/10/large/ror_ringer_back.jpeg +0 -0
  3592. data/sandbox/public/assets/products/10/mini/ror_ringer_back.jpeg +0 -0
  3593. data/sandbox/public/assets/products/10/original/ror_ringer_back.jpeg +0 -0
  3594. data/sandbox/public/assets/products/10/product/ror_ringer_back.jpeg +0 -0
  3595. data/sandbox/public/assets/products/10/small/ror_ringer_back.jpeg +0 -0
  3596. data/sandbox/public/assets/products/1004/large/apache_baseball.png +0 -0
  3597. data/sandbox/public/assets/products/1004/mini/apache_baseball.png +0 -0
  3598. data/sandbox/public/assets/products/1004/original/apache_baseball.png +0 -0
  3599. data/sandbox/public/assets/products/1004/product/apache_baseball.png +0 -0
  3600. data/sandbox/public/assets/products/1004/small/apache_baseball.png +0 -0
  3601. data/sandbox/public/assets/products/1008/large/ruby_baseball.png +0 -0
  3602. data/sandbox/public/assets/products/1008/mini/ruby_baseball.png +0 -0
  3603. data/sandbox/public/assets/products/1008/original/ruby_baseball.png +0 -0
  3604. data/sandbox/public/assets/products/1008/product/ruby_baseball.png +0 -0
  3605. data/sandbox/public/assets/products/1008/small/ruby_baseball.png +0 -0
  3606. data/sandbox/public/assets/products/1009/large/ror_baseball_jersey_green.png +0 -0
  3607. data/sandbox/public/assets/products/1009/mini/ror_baseball_jersey_green.png +0 -0
  3608. data/sandbox/public/assets/products/1009/original/ror_baseball_jersey_green.png +0 -0
  3609. data/sandbox/public/assets/products/1009/product/ror_baseball_jersey_green.png +0 -0
  3610. data/sandbox/public/assets/products/1009/small/ror_baseball_jersey_green.png +0 -0
  3611. data/sandbox/public/assets/products/1010/large/ror_baseball_jersey_back_green.png +0 -0
  3612. data/sandbox/public/assets/products/1010/mini/ror_baseball_jersey_back_green.png +0 -0
  3613. data/sandbox/public/assets/products/1010/original/ror_baseball_jersey_back_green.png +0 -0
  3614. data/sandbox/public/assets/products/1010/product/ror_baseball_jersey_back_green.png +0 -0
  3615. data/sandbox/public/assets/products/1010/small/ror_baseball_jersey_back_green.png +0 -0
  3616. data/sandbox/public/assets/products/1011/large/ror_baseball_jersey_green.png +0 -0
  3617. data/sandbox/public/assets/products/1011/mini/ror_baseball_jersey_green.png +0 -0
  3618. data/sandbox/public/assets/products/1011/original/ror_baseball_jersey_green.png +0 -0
  3619. data/sandbox/public/assets/products/1011/product/ror_baseball_jersey_green.png +0 -0
  3620. data/sandbox/public/assets/products/1011/small/ror_baseball_jersey_green.png +0 -0
  3621. data/sandbox/public/assets/products/1012/large/ror_baseball_jersey_back_green.png +0 -0
  3622. data/sandbox/public/assets/products/1012/mini/ror_baseball_jersey_back_green.png +0 -0
  3623. data/sandbox/public/assets/products/1012/original/ror_baseball_jersey_back_green.png +0 -0
  3624. data/sandbox/public/assets/products/1012/product/ror_baseball_jersey_back_green.png +0 -0
  3625. data/sandbox/public/assets/products/1012/small/ror_baseball_jersey_back_green.png +0 -0
  3626. data/sandbox/public/assets/products/1013/large/ror_baseball_jersey_green.png +0 -0
  3627. data/sandbox/public/assets/products/1013/mini/ror_baseball_jersey_green.png +0 -0
  3628. data/sandbox/public/assets/products/1013/original/ror_baseball_jersey_green.png +0 -0
  3629. data/sandbox/public/assets/products/1013/product/ror_baseball_jersey_green.png +0 -0
  3630. data/sandbox/public/assets/products/1013/small/ror_baseball_jersey_green.png +0 -0
  3631. data/sandbox/public/assets/products/1014/large/ror_baseball_jersey_back_green.png +0 -0
  3632. data/sandbox/public/assets/products/1014/mini/ror_baseball_jersey_back_green.png +0 -0
  3633. data/sandbox/public/assets/products/1014/original/ror_baseball_jersey_back_green.png +0 -0
  3634. data/sandbox/public/assets/products/1014/product/ror_baseball_jersey_back_green.png +0 -0
  3635. data/sandbox/public/assets/products/1014/small/ror_baseball_jersey_back_green.png +0 -0
  3636. data/sandbox/public/assets/products/1015/large/ror_baseball_jersey_blue.png +0 -0
  3637. data/sandbox/public/assets/products/1015/mini/ror_baseball_jersey_blue.png +0 -0
  3638. data/sandbox/public/assets/products/1015/original/ror_baseball_jersey_blue.png +0 -0
  3639. data/sandbox/public/assets/products/1015/product/ror_baseball_jersey_blue.png +0 -0
  3640. data/sandbox/public/assets/products/1015/small/ror_baseball_jersey_blue.png +0 -0
  3641. data/sandbox/public/assets/products/1016/large/ror_baseball_jersey_back_blue.png +0 -0
  3642. data/sandbox/public/assets/products/1016/mini/ror_baseball_jersey_back_blue.png +0 -0
  3643. data/sandbox/public/assets/products/1016/original/ror_baseball_jersey_back_blue.png +0 -0
  3644. data/sandbox/public/assets/products/1016/product/ror_baseball_jersey_back_blue.png +0 -0
  3645. data/sandbox/public/assets/products/1016/small/ror_baseball_jersey_back_blue.png +0 -0
  3646. data/sandbox/public/assets/products/1017/large/ror_baseball_jersey_blue.png +0 -0
  3647. data/sandbox/public/assets/products/1017/mini/ror_baseball_jersey_blue.png +0 -0
  3648. data/sandbox/public/assets/products/1017/original/ror_baseball_jersey_blue.png +0 -0
  3649. data/sandbox/public/assets/products/1017/product/ror_baseball_jersey_blue.png +0 -0
  3650. data/sandbox/public/assets/products/1017/small/ror_baseball_jersey_blue.png +0 -0
  3651. data/sandbox/public/assets/products/1018/large/ror_baseball_jersey_back_blue.png +0 -0
  3652. data/sandbox/public/assets/products/1018/mini/ror_baseball_jersey_back_blue.png +0 -0
  3653. data/sandbox/public/assets/products/1018/original/ror_baseball_jersey_back_blue.png +0 -0
  3654. data/sandbox/public/assets/products/1018/product/ror_baseball_jersey_back_blue.png +0 -0
  3655. data/sandbox/public/assets/products/1018/small/ror_baseball_jersey_back_blue.png +0 -0
  3656. data/sandbox/public/assets/products/1019/large/ror_baseball_jersey_blue.png +0 -0
  3657. data/sandbox/public/assets/products/1019/mini/ror_baseball_jersey_blue.png +0 -0
  3658. data/sandbox/public/assets/products/1019/original/ror_baseball_jersey_blue.png +0 -0
  3659. data/sandbox/public/assets/products/1019/product/ror_baseball_jersey_blue.png +0 -0
  3660. data/sandbox/public/assets/products/1019/small/ror_baseball_jersey_blue.png +0 -0
  3661. data/sandbox/public/assets/products/1020/large/ror_baseball_jersey_back_blue.png +0 -0
  3662. data/sandbox/public/assets/products/1020/mini/ror_baseball_jersey_back_blue.png +0 -0
  3663. data/sandbox/public/assets/products/1020/original/ror_baseball_jersey_back_blue.png +0 -0
  3664. data/sandbox/public/assets/products/1020/product/ror_baseball_jersey_back_blue.png +0 -0
  3665. data/sandbox/public/assets/products/1020/small/ror_baseball_jersey_back_blue.png +0 -0
  3666. data/sandbox/public/assets/products/1021/large/ror_baseball_jersey_red.png +0 -0
  3667. data/sandbox/public/assets/products/1021/mini/ror_baseball_jersey_red.png +0 -0
  3668. data/sandbox/public/assets/products/1021/original/ror_baseball_jersey_red.png +0 -0
  3669. data/sandbox/public/assets/products/1021/product/ror_baseball_jersey_red.png +0 -0
  3670. data/sandbox/public/assets/products/1021/small/ror_baseball_jersey_red.png +0 -0
  3671. data/sandbox/public/assets/products/1022/large/ror_baseball_jersey_back_red.png +0 -0
  3672. data/sandbox/public/assets/products/1022/mini/ror_baseball_jersey_back_red.png +0 -0
  3673. data/sandbox/public/assets/products/1022/original/ror_baseball_jersey_back_red.png +0 -0
  3674. data/sandbox/public/assets/products/1022/product/ror_baseball_jersey_back_red.png +0 -0
  3675. data/sandbox/public/assets/products/1022/small/ror_baseball_jersey_back_red.png +0 -0
  3676. data/sandbox/public/assets/products/1023/large/ror_baseball_jersey_red.png +0 -0
  3677. data/sandbox/public/assets/products/1023/mini/ror_baseball_jersey_red.png +0 -0
  3678. data/sandbox/public/assets/products/1023/original/ror_baseball_jersey_red.png +0 -0
  3679. data/sandbox/public/assets/products/1023/product/ror_baseball_jersey_red.png +0 -0
  3680. data/sandbox/public/assets/products/1023/small/ror_baseball_jersey_red.png +0 -0
  3681. data/sandbox/public/assets/products/1024/large/ror_baseball_jersey_back_red.png +0 -0
  3682. data/sandbox/public/assets/products/1024/mini/ror_baseball_jersey_back_red.png +0 -0
  3683. data/sandbox/public/assets/products/1024/original/ror_baseball_jersey_back_red.png +0 -0
  3684. data/sandbox/public/assets/products/1024/product/ror_baseball_jersey_back_red.png +0 -0
  3685. data/sandbox/public/assets/products/1024/small/ror_baseball_jersey_back_red.png +0 -0
  3686. data/sandbox/public/assets/products/1025/large/ror_baseball_jersey_red.png +0 -0
  3687. data/sandbox/public/assets/products/1025/mini/ror_baseball_jersey_red.png +0 -0
  3688. data/sandbox/public/assets/products/1025/original/ror_baseball_jersey_red.png +0 -0
  3689. data/sandbox/public/assets/products/1025/product/ror_baseball_jersey_red.png +0 -0
  3690. data/sandbox/public/assets/products/1025/small/ror_baseball_jersey_red.png +0 -0
  3691. data/sandbox/public/assets/products/1026/large/ror_baseball_jersey_back_red.png +0 -0
  3692. data/sandbox/public/assets/products/1026/mini/ror_baseball_jersey_back_red.png +0 -0
  3693. data/sandbox/public/assets/products/1026/original/ror_baseball_jersey_back_red.png +0 -0
  3694. data/sandbox/public/assets/products/1026/product/ror_baseball_jersey_back_red.png +0 -0
  3695. data/sandbox/public/assets/products/1026/small/ror_baseball_jersey_back_red.png +0 -0
  3696. data/sandbox/public/assets/products/11/large/ror_stein.jpeg +0 -0
  3697. data/sandbox/public/assets/products/11/mini/ror_stein.jpeg +0 -0
  3698. data/sandbox/public/assets/products/11/original/ror_stein.jpeg +0 -0
  3699. data/sandbox/public/assets/products/11/product/ror_stein.jpeg +0 -0
  3700. data/sandbox/public/assets/products/11/small/ror_stein.jpeg +0 -0
  3701. data/sandbox/public/assets/products/12/large/ror_stein_back.jpeg +0 -0
  3702. data/sandbox/public/assets/products/12/mini/ror_stein_back.jpeg +0 -0
  3703. data/sandbox/public/assets/products/12/original/ror_stein_back.jpeg +0 -0
  3704. data/sandbox/public/assets/products/12/product/ror_stein_back.jpeg +0 -0
  3705. data/sandbox/public/assets/products/12/small/ror_stein_back.jpeg +0 -0
  3706. data/sandbox/public/assets/products/2/large/ror_tote_back.jpeg +0 -0
  3707. data/sandbox/public/assets/products/2/mini/ror_tote_back.jpeg +0 -0
  3708. data/sandbox/public/assets/products/2/original/ror_tote_back.jpeg +0 -0
  3709. data/sandbox/public/assets/products/2/product/ror_tote_back.jpeg +0 -0
  3710. data/sandbox/public/assets/products/2/small/ror_tote_back.jpeg +0 -0
  3711. data/sandbox/public/assets/products/3/large/ror_bag.jpeg +0 -0
  3712. data/sandbox/public/assets/products/3/mini/ror_bag.jpeg +0 -0
  3713. data/sandbox/public/assets/products/3/original/ror_bag.jpeg +0 -0
  3714. data/sandbox/public/assets/products/3/product/ror_bag.jpeg +0 -0
  3715. data/sandbox/public/assets/products/3/small/ror_bag.jpeg +0 -0
  3716. data/sandbox/public/assets/products/4/large/ror_baseball.jpeg +0 -0
  3717. data/sandbox/public/assets/products/4/mini/ror_baseball.jpeg +0 -0
  3718. data/sandbox/public/assets/products/4/original/ror_baseball.jpeg +0 -0
  3719. data/sandbox/public/assets/products/4/product/ror_baseball.jpeg +0 -0
  3720. data/sandbox/public/assets/products/4/small/ror_baseball.jpeg +0 -0
  3721. data/sandbox/public/assets/products/5/large/ror_baseball_back.jpeg +0 -0
  3722. data/sandbox/public/assets/products/5/mini/ror_baseball_back.jpeg +0 -0
  3723. data/sandbox/public/assets/products/5/original/ror_baseball_back.jpeg +0 -0
  3724. data/sandbox/public/assets/products/5/product/ror_baseball_back.jpeg +0 -0
  3725. data/sandbox/public/assets/products/5/small/ror_baseball_back.jpeg +0 -0
  3726. data/sandbox/public/assets/products/6/large/ror_jr_spaghetti.jpeg +0 -0
  3727. data/sandbox/public/assets/products/6/mini/ror_jr_spaghetti.jpeg +0 -0
  3728. data/sandbox/public/assets/products/6/original/ror_jr_spaghetti.jpeg +0 -0
  3729. data/sandbox/public/assets/products/6/product/ror_jr_spaghetti.jpeg +0 -0
  3730. data/sandbox/public/assets/products/6/small/ror_jr_spaghetti.jpeg +0 -0
  3731. data/sandbox/public/assets/products/7/large/ror_mug.jpeg +0 -0
  3732. data/sandbox/public/assets/products/7/mini/ror_mug.jpeg +0 -0
  3733. data/sandbox/public/assets/products/7/original/ror_mug.jpeg +0 -0
  3734. data/sandbox/public/assets/products/7/product/ror_mug.jpeg +0 -0
  3735. data/sandbox/public/assets/products/7/small/ror_mug.jpeg +0 -0
  3736. data/sandbox/public/assets/products/8/large/ror_mug_back.jpeg +0 -0
  3737. data/sandbox/public/assets/products/8/mini/ror_mug_back.jpeg +0 -0
  3738. data/sandbox/public/assets/products/8/original/ror_mug_back.jpeg +0 -0
  3739. data/sandbox/public/assets/products/8/product/ror_mug_back.jpeg +0 -0
  3740. data/sandbox/public/assets/products/8/small/ror_mug_back.jpeg +0 -0
  3741. data/sandbox/public/assets/products/9/large/ror_ringer.jpeg +0 -0
  3742. data/sandbox/public/assets/products/9/mini/ror_ringer.jpeg +0 -0
  3743. data/sandbox/public/assets/products/9/original/ror_ringer.jpeg +0 -0
  3744. data/sandbox/public/assets/products/9/product/ror_ringer.jpeg +0 -0
  3745. data/sandbox/public/assets/products/9/small/ror_ringer.jpeg +0 -0
  3746. data/sandbox/public/favicon.ico +0 -0
  3747. data/sandbox/public/images/add-to-cart.png +0 -0
  3748. data/sandbox/public/images/admin/bg/active-tab.png +0 -0
  3749. data/sandbox/public/images/admin/bg/admin_tab_back.png +0 -0
  3750. data/sandbox/public/images/admin/bg/admin_tab_selected_back.png +0 -0
  3751. data/sandbox/public/images/admin/bg/content-back-blue.png +0 -0
  3752. data/sandbox/public/images/admin/bg/content-back-green.png +0 -0
  3753. data/sandbox/public/images/admin/bg/content-back.png +0 -0
  3754. data/sandbox/public/images/admin/bg/flash-error.png +0 -0
  3755. data/sandbox/public/images/admin/bg/flash-notice.png +0 -0
  3756. data/sandbox/public/images/admin/bg/green-stripes.gif +0 -0
  3757. data/sandbox/public/images/admin/bg/green-stripes.png +0 -0
  3758. data/sandbox/public/images/admin/bg/grid_header_back.png +0 -0
  3759. data/sandbox/public/images/admin/bg/grid_header_back_green.png +0 -0
  3760. data/sandbox/public/images/admin/bg/header-bg.png +0 -0
  3761. data/sandbox/public/images/admin/bg/header.png +0 -0
  3762. data/sandbox/public/images/admin/bg/header_bg.jpg +0 -0
  3763. data/sandbox/public/images/admin/bg/menu-current.png +0 -0
  3764. data/sandbox/public/images/admin/bg/red-stripes.gif +0 -0
  3765. data/sandbox/public/images/admin/bg/red-stripes.png +0 -0
  3766. data/sandbox/public/images/admin/bg/spree_50.png +0 -0
  3767. data/sandbox/public/images/admin/bg/subnav-divider.png +0 -0
  3768. data/sandbox/public/images/admin/bg/subnav.png +0 -0
  3769. data/sandbox/public/images/admin/bg/tab-back.png +0 -0
  3770. data/sandbox/public/images/admin/buttons/blue/left_01.png +0 -0
  3771. data/sandbox/public/images/admin/buttons/blue/right_01.png +0 -0
  3772. data/sandbox/public/images/admin/buttons/drag-handle-green.png +0 -0
  3773. data/sandbox/public/images/admin/buttons/green/left_01.png +0 -0
  3774. data/sandbox/public/images/admin/buttons/green/right_01.png +0 -0
  3775. data/sandbox/public/images/admin/buttons/left_01.png +0 -0
  3776. data/sandbox/public/images/admin/buttons/left_01_small.png +0 -0
  3777. data/sandbox/public/images/admin/buttons/orange/left_03.png +0 -0
  3778. data/sandbox/public/images/admin/buttons/orange/right_03.png +0 -0
  3779. data/sandbox/public/images/admin/buttons/right_01.png +0 -0
  3780. data/sandbox/public/images/admin/buttons/right_01_small.png +0 -0
  3781. data/sandbox/public/images/admin/icons/16x16/1.png +0 -0
  3782. data/sandbox/public/images/admin/icons/16x16/10.png +0 -0
  3783. data/sandbox/public/images/admin/icons/16x16/2.png +0 -0
  3784. data/sandbox/public/images/admin/icons/16x16/3.png +0 -0
  3785. data/sandbox/public/images/admin/icons/16x16/4.png +0 -0
  3786. data/sandbox/public/images/admin/icons/16x16/5.png +0 -0
  3787. data/sandbox/public/images/admin/icons/16x16/6.png +0 -0
  3788. data/sandbox/public/images/admin/icons/16x16/7.png +0 -0
  3789. data/sandbox/public/images/admin/icons/16x16/8.png +0 -0
  3790. data/sandbox/public/images/admin/icons/16x16/9.png +0 -0
  3791. data/sandbox/public/images/admin/icons/32x32/1.png +0 -0
  3792. data/sandbox/public/images/admin/icons/32x32/10.png +0 -0
  3793. data/sandbox/public/images/admin/icons/32x32/11.png +0 -0
  3794. data/sandbox/public/images/admin/icons/32x32/2.png +0 -0
  3795. data/sandbox/public/images/admin/icons/32x32/3.png +0 -0
  3796. data/sandbox/public/images/admin/icons/32x32/4.png +0 -0
  3797. data/sandbox/public/images/admin/icons/32x32/5.png +0 -0
  3798. data/sandbox/public/images/admin/icons/32x32/6.png +0 -0
  3799. data/sandbox/public/images/admin/icons/32x32/7.png +0 -0
  3800. data/sandbox/public/images/admin/icons/32x32/8.png +0 -0
  3801. data/sandbox/public/images/admin/icons/32x32/9.png +0 -0
  3802. data/sandbox/public/images/admin/icons/accept.png +0 -0
  3803. data/sandbox/public/images/admin/icons/add.gif +0 -0
  3804. data/sandbox/public/images/admin/icons/add.png +0 -0
  3805. data/sandbox/public/images/admin/icons/arrow-down.gif +0 -0
  3806. data/sandbox/public/images/admin/icons/cross.png +0 -0
  3807. data/sandbox/public/images/admin/icons/delete.gif +0 -0
  3808. data/sandbox/public/images/admin/icons/delete.png +0 -0
  3809. data/sandbox/public/images/admin/icons/drag.gif +0 -0
  3810. data/sandbox/public/images/admin/icons/edit.gif +0 -0
  3811. data/sandbox/public/images/admin/icons/edit.png +0 -0
  3812. data/sandbox/public/images/admin/icons/email.png +0 -0
  3813. data/sandbox/public/images/admin/icons/error.png +0 -0
  3814. data/sandbox/public/images/admin/icons/exclamation.png +0 -0
  3815. data/sandbox/public/images/admin/icons/feed.png +0 -0
  3816. data/sandbox/public/images/admin/icons/pdf.png +0 -0
  3817. data/sandbox/public/images/admin/icons/reorder.gif +0 -0
  3818. data/sandbox/public/images/admin/icons/search.gif +0 -0
  3819. data/sandbox/public/images/admin/icons/send-email.png +0 -0
  3820. data/sandbox/public/images/admin/icons/stop.png +0 -0
  3821. data/sandbox/public/images/admin/icons/tick.png +0 -0
  3822. data/sandbox/public/images/admin/icons/up.gif +0 -0
  3823. data/sandbox/public/images/admin/icons/xls.png +0 -0
  3824. data/sandbox/public/images/admin/tabs/off-left.png +0 -0
  3825. data/sandbox/public/images/admin/tabs/off-right.png +0 -0
  3826. data/sandbox/public/images/admin/tabs/on-left.png +0 -0
  3827. data/sandbox/public/images/admin/tabs/on-right.png +0 -0
  3828. data/sandbox/public/images/ajax_loader.gif +0 -0
  3829. data/sandbox/public/images/amex_cid.gif +0 -0
  3830. data/sandbox/public/images/bg-button-hover.png +0 -0
  3831. data/sandbox/public/images/bg-button-pressed.png +0 -0
  3832. data/sandbox/public/images/bg-button.gif +0 -0
  3833. data/sandbox/public/images/bg-button.png +0 -0
  3834. data/sandbox/public/images/blue/left_01.png +0 -0
  3835. data/sandbox/public/images/blue/right_01.png +0 -0
  3836. data/sandbox/public/images/body-back.png +0 -0
  3837. data/sandbox/public/images/bottom_shine.png +0 -0
  3838. data/sandbox/public/images/breadcrumb.gif +0 -0
  3839. data/sandbox/public/images/button-dark-hover.png +0 -0
  3840. data/sandbox/public/images/button-dark.png +0 -0
  3841. data/sandbox/public/images/buttons/bg-button-hover.png +0 -0
  3842. data/sandbox/public/images/buttons/bg-button-pressed.png +0 -0
  3843. data/sandbox/public/images/buttons/bg-button.gif +0 -0
  3844. data/sandbox/public/images/buttons/bg-button.png +0 -0
  3845. data/sandbox/public/images/buttons/blue/left_01.png +0 -0
  3846. data/sandbox/public/images/buttons/blue/right_01.png +0 -0
  3847. data/sandbox/public/images/buttons/button-dark-hover.png +0 -0
  3848. data/sandbox/public/images/buttons/button-dark.png +0 -0
  3849. data/sandbox/public/images/buttons/drag-handle-green.png +0 -0
  3850. data/sandbox/public/images/buttons/green/left_01.png +0 -0
  3851. data/sandbox/public/images/buttons/green/right_01.png +0 -0
  3852. data/sandbox/public/images/buttons/left_01.png +0 -0
  3853. data/sandbox/public/images/buttons/left_01_small.png +0 -0
  3854. data/sandbox/public/images/buttons/orange/left_03.png +0 -0
  3855. data/sandbox/public/images/buttons/orange/right_03.png +0 -0
  3856. data/sandbox/public/images/buttons/right_01.png +0 -0
  3857. data/sandbox/public/images/buttons/right_01_small.png +0 -0
  3858. data/sandbox/public/images/buttons/sxsw-ribbon-v1.png +0 -0
  3859. data/sandbox/public/images/buttons/top-shine.png +0 -0
  3860. data/sandbox/public/images/calendar_date_select/calendar.gif +0 -0
  3861. data/sandbox/public/images/cart-empty.png +0 -0
  3862. data/sandbox/public/images/cart-empty_x32.png +0 -0
  3863. data/sandbox/public/images/cart-full.png +0 -0
  3864. data/sandbox/public/images/cart-full_x32.png +0 -0
  3865. data/sandbox/public/images/checkout.png +0 -0
  3866. data/sandbox/public/images/creditcard.gif +0 -0
  3867. data/sandbox/public/images/datepicker/backstripes.gif +0 -0
  3868. data/sandbox/public/images/datepicker/bg_header.jpg +0 -0
  3869. data/sandbox/public/images/datepicker/bullet1.gif +0 -0
  3870. data/sandbox/public/images/datepicker/bullet2.gif +0 -0
  3871. data/sandbox/public/images/datepicker/cal.gif +0 -0
  3872. data/sandbox/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
  3873. data/sandbox/public/images/discover_cid.gif +0 -0
  3874. data/sandbox/public/images/drag-handle-green.png +0 -0
  3875. data/sandbox/public/images/favicon.ico +0 -0
  3876. data/sandbox/public/images/green/left_01.png +0 -0
  3877. data/sandbox/public/images/green/right_01.png +0 -0
  3878. data/sandbox/public/images/grid.png +0 -0
  3879. data/sandbox/public/images/left_01.png +0 -0
  3880. data/sandbox/public/images/left_01_small.png +0 -0
  3881. data/sandbox/public/images/master_cid.jpg +0 -0
  3882. data/sandbox/public/images/menu-current.png +0 -0
  3883. data/sandbox/public/images/menu-hover.png +0 -0
  3884. data/sandbox/public/images/noimage/mini.jpg +0 -0
  3885. data/sandbox/public/images/noimage/product.jpg +0 -0
  3886. data/sandbox/public/images/noimage/small.jpg +0 -0
  3887. data/sandbox/public/images/openid-inputicon.gif +0 -0
  3888. data/sandbox/public/images/orange/left_03.png +0 -0
  3889. data/sandbox/public/images/orange/right_03.png +0 -0
  3890. data/sandbox/public/images/progress.gif +0 -0
  3891. data/sandbox/public/images/rails.png +0 -0
  3892. data/sandbox/public/images/reorder.jpg +0 -0
  3893. data/sandbox/public/images/right_01.png +0 -0
  3894. data/sandbox/public/images/right_01_small.png +0 -0
  3895. data/sandbox/public/images/separator.png +0 -0
  3896. data/sandbox/public/images/shadow-top.png +0 -0
  3897. data/sandbox/public/images/shadow_top.png +0 -0
  3898. data/sandbox/public/images/spinner.gif +0 -0
  3899. data/sandbox/public/images/spree.jpg +0 -0
  3900. data/sandbox/public/images/spree/progress.gif +0 -0
  3901. data/sandbox/public/images/spree/spinner.gif +0 -0
  3902. data/sandbox/public/images/spree/spree.jpg +0 -0
  3903. data/sandbox/public/images/step-progress/completed-completed.gif +0 -0
  3904. data/sandbox/public/images/step-progress/completed-current.gif +0 -0
  3905. data/sandbox/public/images/step-progress/completed-first.gif +0 -0
  3906. data/sandbox/public/images/step-progress/current-first.gif +0 -0
  3907. data/sandbox/public/images/step-progress/current-incomplete.gif +0 -0
  3908. data/sandbox/public/images/step-progress/current-right.gif +0 -0
  3909. data/sandbox/public/images/step-progress/incomplete-incomplete.gif +0 -0
  3910. data/sandbox/public/images/step-progress/incomplete-right.gif +0 -0
  3911. data/sandbox/public/images/steps/1.png +0 -0
  3912. data/sandbox/public/images/steps/1_small.png +0 -0
  3913. data/sandbox/public/images/steps/2.png +0 -0
  3914. data/sandbox/public/images/steps/2_small.png +0 -0
  3915. data/sandbox/public/images/steps/3.png +0 -0
  3916. data/sandbox/public/images/steps/3_small.png +0 -0
  3917. data/sandbox/public/images/steps/4.png +0 -0
  3918. data/sandbox/public/images/steps/4_small.png +0 -0
  3919. data/sandbox/public/images/steps/5.png +0 -0
  3920. data/sandbox/public/images/steps/5_small.png +0 -0
  3921. data/sandbox/public/images/steps/6.png +0 -0
  3922. data/sandbox/public/images/steps/6_small.png +0 -0
  3923. data/sandbox/public/images/sxsw-ribbon-v1.png +0 -0
  3924. data/sandbox/public/images/tab_bottom.gif +0 -0
  3925. data/sandbox/public/images/tile-header.png +0 -0
  3926. data/sandbox/public/images/tile-slider.png +0 -0
  3927. data/sandbox/public/images/top-shine.png +0 -0
  3928. data/sandbox/public/images/tree-nav-icons/bullet.gif +0 -0
  3929. data/sandbox/public/images/tree-nav-icons/minus.gif +0 -0
  3930. data/sandbox/public/images/tree-nav-icons/plus.gif +0 -0
  3931. data/sandbox/public/images/tree-nav-icons/treeview-loading.gif +0 -0
  3932. data/sandbox/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
  3933. data/sandbox/public/images/update.png +0 -0
  3934. data/sandbox/public/images/visa_cid.gif +0 -0
  3935. data/sandbox/public/images/wrapper-back-2.png +0 -0
  3936. data/sandbox/public/images/wrapper-back.png +0 -0
  3937. data/sandbox/public/images/yui-menubaritem_submenuindicator.png +0 -0
  3938. data/sandbox/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
  3939. data/sandbox/public/images/yui-menuitem_checkbox.png +0 -0
  3940. data/sandbox/public/images/yui-menuitem_checkbox_disabled.png +0 -0
  3941. data/sandbox/public/images/yui-menuitem_submenuindicator.png +0 -0
  3942. data/sandbox/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
  3943. data/sandbox/public/images/yui-sprite.png +0 -0
  3944. data/sandbox/public/javascripts/additional-methods.js +236 -0
  3945. data/sandbox/public/javascripts/admin.js +232 -0
  3946. data/sandbox/public/javascripts/admin/address_states.js +25 -0
  3947. data/sandbox/public/javascripts/admin/checkouts/edit.js +130 -0
  3948. data/sandbox/public/javascripts/admin/orders/edit.js +23 -0
  3949. data/sandbox/public/javascripts/admin/orders/edit_form.js +16 -0
  3950. data/sandbox/public/javascripts/admin/payments/new.js +9 -0
  3951. data/sandbox/public/javascripts/admin/promotions.js +26 -0
  3952. data/sandbox/public/javascripts/admin/unobtrusive_handlers.js +43 -0
  3953. data/sandbox/public/javascripts/application.js +12 -0
  3954. data/sandbox/public/javascripts/calculator.js +15 -0
  3955. data/sandbox/public/javascripts/checkout.js +75 -0
  3956. data/sandbox/public/javascripts/dashboard.js +143 -0
  3957. data/sandbox/public/javascripts/datepicker.js +1445 -0
  3958. data/sandbox/public/javascripts/gateway.js +13 -0
  3959. data/sandbox/public/javascripts/jqPlot/excanvas.min.js +1 -0
  3960. data/sandbox/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
  3961. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
  3962. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
  3963. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
  3964. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
  3965. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
  3966. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
  3967. data/sandbox/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
  3968. data/sandbox/public/javascripts/jquery-1.4.2.min.js +154 -0
  3969. data/sandbox/public/javascripts/jquery-ui.js +188 -0
  3970. data/sandbox/public/javascripts/jquery.alerts/images/help.gif +0 -0
  3971. data/sandbox/public/javascripts/jquery.alerts/images/important.gif +0 -0
  3972. data/sandbox/public/javascripts/jquery.alerts/images/info.gif +0 -0
  3973. data/sandbox/public/javascripts/jquery.alerts/images/title.gif +0 -0
  3974. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
  3975. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
  3976. data/sandbox/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
  3977. data/sandbox/public/javascripts/jquery.autocomplete.min.js +13 -0
  3978. data/sandbox/public/javascripts/jquery.cookie.js +96 -0
  3979. data/sandbox/public/javascripts/jquery.delayedobserver.js +35 -0
  3980. data/sandbox/public/javascripts/jquery.suggest.js +276 -0
  3981. data/sandbox/public/javascripts/jquery.template.js +255 -0
  3982. data/sandbox/public/javascripts/jquery.tokeninput.js +618 -0
  3983. data/sandbox/public/javascripts/jquery.validate.min.js +16 -0
  3984. data/sandbox/public/javascripts/jsTree/jquery.jstree.js +3510 -0
  3985. data/sandbox/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
  3986. data/sandbox/public/javascripts/jsTree/themes/apple/d.png +0 -0
  3987. data/sandbox/public/javascripts/jsTree/themes/apple/dot_for_ie.gif +0 -0
  3988. data/sandbox/public/javascripts/jsTree/themes/apple/style.css +60 -0
  3989. data/sandbox/public/javascripts/jsTree/themes/apple/throbber.gif +0 -0
  3990. data/sandbox/public/javascripts/lang/af.js +40 -0
  3991. data/sandbox/public/javascripts/lang/ar.js +50 -0
  3992. data/sandbox/public/javascripts/lang/de.js +40 -0
  3993. data/sandbox/public/javascripts/lang/du.js +40 -0
  3994. data/sandbox/public/javascripts/lang/en.js +42 -0
  3995. data/sandbox/public/javascripts/lang/es.js +41 -0
  3996. data/sandbox/public/javascripts/lang/fi.js +40 -0
  3997. data/sandbox/public/javascripts/lang/fr.js +44 -0
  3998. data/sandbox/public/javascripts/lang/gr.js +40 -0
  3999. data/sandbox/public/javascripts/lang/he.js +49 -0
  4000. data/sandbox/public/javascripts/lang/it.js +13 -0
  4001. data/sandbox/public/javascripts/lang/nl.js +40 -0
  4002. data/sandbox/public/javascripts/lang/no.js +40 -0
  4003. data/sandbox/public/javascripts/lang/pt.js +50 -0
  4004. data/sandbox/public/javascripts/lang/ro.js +40 -0
  4005. data/sandbox/public/javascripts/lang/ru.js +40 -0
  4006. data/sandbox/public/javascripts/lang/sp.js +40 -0
  4007. data/sandbox/public/javascripts/lang/sv.js +41 -0
  4008. data/sandbox/public/javascripts/lang/ua.js +40 -0
  4009. data/sandbox/public/javascripts/localization/messages_cn.js +24 -0
  4010. data/sandbox/public/javascripts/localization/messages_cs.js +23 -0
  4011. data/sandbox/public/javascripts/localization/messages_da.js +21 -0
  4012. data/sandbox/public/javascripts/localization/messages_de.js +21 -0
  4013. data/sandbox/public/javascripts/localization/messages_es.js +24 -0
  4014. data/sandbox/public/javascripts/localization/messages_fr.js +23 -0
  4015. data/sandbox/public/javascripts/localization/messages_hu.js +21 -0
  4016. data/sandbox/public/javascripts/localization/messages_it.js +26 -0
  4017. data/sandbox/public/javascripts/localization/messages_kk.js +23 -0
  4018. data/sandbox/public/javascripts/localization/messages_nl.js +23 -0
  4019. data/sandbox/public/javascripts/localization/messages_no.js +23 -0
  4020. data/sandbox/public/javascripts/localization/messages_pl.js +23 -0
  4021. data/sandbox/public/javascripts/localization/messages_ptbr.js +30 -0
  4022. data/sandbox/public/javascripts/localization/messages_ro.js +24 -0
  4023. data/sandbox/public/javascripts/localization/messages_ru.js +23 -0
  4024. data/sandbox/public/javascripts/localization/messages_se.js +23 -0
  4025. data/sandbox/public/javascripts/localization/messages_sk.js +21 -0
  4026. data/sandbox/public/javascripts/localization/messages_tr.js +24 -0
  4027. data/sandbox/public/javascripts/localization/messages_tw.js +24 -0
  4028. data/sandbox/public/javascripts/localization/messages_ua.js +24 -0
  4029. data/sandbox/public/javascripts/nested-attribute.js +26 -0
  4030. data/sandbox/public/javascripts/open_id.js +15 -0
  4031. data/sandbox/public/javascripts/product.js +49 -0
  4032. data/sandbox/public/javascripts/rails.js +127 -0
  4033. data/sandbox/public/javascripts/taxonomy.js +201 -0
  4034. data/sandbox/public/javascripts/zone.js +39 -0
  4035. data/sandbox/public/robots.txt +14 -0
  4036. data/sandbox/public/stylesheets/admin/admin-forms.css +154 -0
  4037. data/sandbox/public/stylesheets/admin/admin-reset.css +69 -0
  4038. data/sandbox/public/stylesheets/admin/admin-tables.css +39 -0
  4039. data/sandbox/public/stylesheets/admin/admin-typography.css +117 -0
  4040. data/sandbox/public/stylesheets/admin/admin.css +614 -0
  4041. data/sandbox/public/stylesheets/admin/autocomplete.css +73 -0
  4042. data/sandbox/public/stylesheets/admin/dashboard.css +143 -0
  4043. data/sandbox/public/stylesheets/admin/edit_checkouts.css +57 -0
  4044. data/sandbox/public/stylesheets/admin/grids.css +314 -0
  4045. data/sandbox/public/stylesheets/admin/promotions.css +54 -0
  4046. data/sandbox/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
  4047. data/sandbox/public/stylesheets/admin/token-input.css +109 -0
  4048. data/sandbox/public/stylesheets/admin/yui-includes.css +14 -0
  4049. data/sandbox/public/stylesheets/datepicker.css +263 -0
  4050. data/sandbox/public/stylesheets/jquery.autocomplete.css +48 -0
  4051. data/sandbox/public/stylesheets/screen.css +916 -0
  4052. data/sandbox/rfcommerce_sandbox.gemspec +26 -0
  4053. data/sandbox/script/rails +6 -0
  4054. data/sandbox/tmp/cache/C51/6F0/configuration_AppConfiguration +0 -0
  4055. metadata +4101 -0
@@ -0,0 +1,13 @@
1
+ $j(function() {
2
+ var original_gtwy_type = $j('#gtwy-type').attr('value');
3
+ $j('div#gateway-settings-warning').hide();
4
+ $j('#gtwy-type').change(function() {
5
+ if ($j('#gtwy-type').attr('value') == original_gtwy_type) {
6
+ $j('div.gateway-settings').show();
7
+ $j('div#gateway-settings-warning').hide();
8
+ } else {
9
+ $j('div.gateway-settings').hide();
10
+ $j('div#gateway-settings-warning').show();
11
+ }
12
+ });
13
+ })
@@ -0,0 +1,154 @@
1
+ /*!
2
+ * jQuery JavaScript Library v1.4.2
3
+ * http://jquery.com/
4
+ *
5
+ * Copyright 2010, John Resig
6
+ * Dual licensed under the MIT or GPL Version 2 licenses.
7
+ * http://jquery.org/license
8
+ *
9
+ * Includes Sizzle.js
10
+ * http://sizzlejs.com/
11
+ * Copyright 2010, The Dojo Foundation
12
+ * Released under the MIT, BSD, and GPL Licenses.
13
+ *
14
+ * Date: Sat Feb 13 22:33:48 2010 -0500
15
+ */
16
+ (function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
17
+ e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
18
+ j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
19
+ "&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
20
+ true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
21
+ Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
22
+ (d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
23
+ a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
24
+ "find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
25
+ function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
26
+ c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
27
+ L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
28
+ "isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
29
+ a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
30
+ d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
31
+ a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
32
+ !c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
33
+ true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
34
+ var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
35
+ parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
36
+ false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
37
+ s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
38
+ applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
39
+ else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
40
+ a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
41
+ w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
42
+ cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
43
+ i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
44
+ " ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
45
+ this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
46
+ e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
47
+ c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
48
+ a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
49
+ function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
50
+ k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
51
+ C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
52
+ null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
53
+ e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
54
+ f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
55
+ if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
56
+ fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
57
+ d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
58
+ "events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
59
+ a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
60
+ isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
61
+ {setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
62
+ if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
63
+ e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
64
+ "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
65
+ d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
66
+ !a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
67
+ toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
68
+ u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
69
+ function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
70
+ if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
71
+ e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
72
+ t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
73
+ g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
74
+ for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
75
+ 1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
76
+ CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
77
+ relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
78
+ l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
79
+ h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
80
+ CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
81
+ g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
82
+ text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
83
+ setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
84
+ h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
85
+ m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
86
+ "="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
87
+ h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
88
+ !h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
89
+ h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
90
+ q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
91
+ if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
92
+ (function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
93
+ function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
94
+ gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
95
+ c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
96
+ {},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
97
+ "string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
98
+ d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
99
+ a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
100
+ 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
101
+ a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
102
+ c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
103
+ wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
104
+ prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
105
+ this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
106
+ return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
107
+ ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
108
+ this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
109
+ u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
110
+ 1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
111
+ return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
112
+ ""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
113
+ c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
114
+ c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
115
+ function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
116
+ Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
117
+ "border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
118
+ a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
119
+ a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
120
+ "string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
121
+ serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
122
+ function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
123
+ global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
124
+ e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
125
+ "&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
126
+ false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
127
+ false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
128
+ c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
129
+ d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
130
+ g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
131
+ 1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
132
+ "json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
133
+ if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
134
+ this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
135
+ "olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
136
+ animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
137
+ j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
138
+ this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
139
+ "number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
140
+ c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
141
+ this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
142
+ this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
143
+ e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
144
+ c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
145
+ function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
146
+ this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
147
+ k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
148
+ f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
149
+ a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
150
+ c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
151
+ d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
152
+ f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
153
+ "pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
154
+ e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);
@@ -0,0 +1,188 @@
1
+ /*
2
+ * jQuery UI 1.7.2
3
+ *
4
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * http://docs.jquery.com/UI
9
+ */
10
+ jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/*
11
+ * jQuery UI Draggable 1.7.2
12
+ *
13
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
14
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
15
+ * and GPL (GPL-LICENSE.txt) licenses.
16
+ *
17
+ * http://docs.jquery.com/UI/Draggables
18
+ *
19
+ * Depends:
20
+ * ui.core.js
21
+ */
22
+ (function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,b)}})},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);;/*
23
+ * jQuery UI Droppable 1.7.2
24
+ *
25
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
26
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
27
+ * and GPL (GPL-LICENSE.txt) licenses.
28
+ *
29
+ * http://docs.jquery.com/UI/Droppables
30
+ *
31
+ * Depends:
32
+ * ui.core.js
33
+ * ui.draggable.js
34
+ */
35
+ (function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,c){if(b=="accept"){this.options.accept=c&&a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&&this._trigger("activate",c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&&this._trigger("deactivate",c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case"fit":return(g<e&&d<c&&p<n&&m<k);break;case"intersect":return(g<e+(q.helperProportions.width/2)&&d-(q.helperProportions.width/2)<c&&p<n+(q.helperProportions.height/2)&&m-(q.helperProportions.height/2)<k);break;case"pointer":var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case"touch":return((n>=p&&n<=k)||(m>=p&&m<=k)||(n<p&&m>k))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<b.length;d++){if(b[d].options.disabled||(e&&!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c<h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css("display")!="none";if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f=="mousedown"){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&&this.isover==1?"isout":(e&&this.isover==0?"isover":null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length){f=a.data(d[0],"droppable");f.greedyChild=(g=="isover"?1:0)}}if(f&&g=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,c);if(f&&g=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);;/*
36
+ * jQuery UI Sortable 1.7.2
37
+ *
38
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
39
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
40
+ * and GPL (GPL-LICENSE.txt) licenses.
41
+ *
42
+ * http://docs.jquery.com/UI/Sortables
43
+ *
44
+ * Depends:
45
+ * ui.core.js
46
+ */
47
+ (function(a){a.widget("ui.sortable",a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,"sortable-item")==c){d=a(this);return false}});if(a.data(e.target,"sortable-item")==c){d=a(e.target)}if(!d){return false}if(this.options.handle&&!f){var g=false;a(this.options.handle,d).find("*").andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",g.cursor)}if(g.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("activate",e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=c&&!a.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger("change",f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger("sort",f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))}});return c.join("&")},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)>n&&(k+o)<i&&(e+h)>f&&(e+h)<c;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>m[this.floating?"width":"height"])){return g}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&n<k+(this.helperProportions.height/2)&&j-(this.helperProportions.height/2)<i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&&c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&&f=="right")||b=="down")?2:1):(b&&(b=="down"?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&&f){return((f=="right"&&d)||(f=="left"&&!d))}else{return b&&((b=="down"&&c)||(b=="up"&&!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&&b){for(var d=h.length-1;d>=0;d--){var k=a(h[d]);for(var c=k.length-1;c>=0;c--){var f=a.data(k[c],"sortable");if(f&&f!=this&&!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper"),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var d=e.length-1;d>=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data(sortable-item)");for(var c=0;c<this.items.length;c++){for(var b=0;b<d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e>=0;e--){var m=a(l[e]);for(var d=m.length-1;d>=0;d--){var g=a.data(m[d],"sortable");if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e>=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d<n;d++){var o=a(c[d]);o.data("sortable-item",k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&&this.currentContainer&&e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d>=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c){f.style.visibility="hidden"}return f},update:function(f,g){if(c&&!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c>=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?"left":"top"];for(var b=this.items.length-1;b>=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?"left":"top"];if(Math.abs(f-e)<h){h=Math.abs(f-e);g=this.items[b]}}if(!g&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger("change",d,this._uiHash());this.containers[c]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger("over",d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper=="clone"?this.currentItem.clone():this.currentItem);if(!b.parents("body").length){a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(b[0].style.width==""||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==""||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static"){this._storedCSS[c]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!e){f.push(function(g){this._trigger("receive",g,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e){f.push(function(g){this._trigger("update",g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger("remove",g,this._uiHash())})}for(var c=this.containers.length-1;c>=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&&!e){f.push((function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger("update",h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c>=0;c--){if(!e){f.push((function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger("out",h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}return false}if(!e){this._trigger("beforeStop",d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery);;/*
48
+ * jQuery UI Effects 1.7.2
49
+ *
50
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
51
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
52
+ * and GPL (GPL-LICENSE.txt) licenses.
53
+ *
54
+ * http://docs.jquery.com/UI/Effects/
55
+ */
56
+ jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;/*
57
+ * jQuery UI Effects Blind 1.7.2
58
+ *
59
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
60
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
61
+ * and GPL (GPL-LICENSE.txt) licenses.
62
+ *
63
+ * http://docs.jquery.com/UI/Effects/Blind
64
+ *
65
+ * Depends:
66
+ * effects.core.js
67
+ */
68
+ (function(a){a.effects.blind=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.effects.setMode(d,b.options.mode||"hide");var g=b.options.direction||"vertical";a.effects.save(d,c);d.show();var j=a.effects.createWrapper(d).css({overflow:"hidden"});var e=(g=="vertical")?"height":"width";var i=(g=="vertical")?j.height():j.width();if(h=="show"){j.css(e,0)}var f={};f[e]=h=="show"?i:0;j.animate(f,b.duration,b.options.easing,function(){if(h=="hide"){d.hide()}a.effects.restore(d,c);a.effects.removeWrapper(d);if(b.callback){b.callback.apply(d[0],arguments)}d.dequeue()})})}})(jQuery);;/*
69
+ * jQuery UI Effects Bounce 1.7.2
70
+ *
71
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
72
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
73
+ * and GPL (GPL-LICENSE.txt) licenses.
74
+ *
75
+ * http://docs.jquery.com/UI/Effects/Bounce
76
+ *
77
+ * Depends:
78
+ * effects.core.js
79
+ */
80
+ (function(a){a.effects.bounce=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"up";var c=b.options.distance||20;var d=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var c=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,p=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var h={opacity:1};h[f]=(p=="pos"?"+=":"-=")+c;e.animate(h,g/2,b.options.easing);c=c/2;d--}for(var j=0;j<d;j++){var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing);c=(k=="hide")?c*2:c/2}if(k=="hide"){var h={opacity:0};h[f]=(p=="pos"?"-=":"+=")+c;e.animate(h,g/2,b.options.easing,function(){e.hide();a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}else{var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
81
+ * jQuery UI Effects Clip 1.7.2
82
+ *
83
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
84
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
85
+ * and GPL (GPL-LICENSE.txt) licenses.
86
+ *
87
+ * http://docs.jquery.com/UI/Effects/Clip
88
+ *
89
+ * Depends:
90
+ * effects.core.js
91
+ */
92
+ (function(a){a.effects.clip=function(b){return this.queue(function(){var f=a(this),j=["position","top","left","height","width"];var i=a.effects.setMode(f,b.options.mode||"hide");var k=b.options.direction||"vertical";a.effects.save(f,j);f.show();var c=a.effects.createWrapper(f).css({overflow:"hidden"});var e=f[0].tagName=="IMG"?c:f;var g={size:(k=="vertical")?"height":"width",position:(k=="vertical")?"top":"left"};var d=(k=="vertical")?e.height():e.width();if(i=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=i=="show"?d:0;h[g.position]=i=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){f.hide()}a.effects.restore(f,j);a.effects.removeWrapper(f);if(b.callback){b.callback.apply(f[0],arguments)}f.dequeue()}})})}})(jQuery);;/*
93
+ * jQuery UI Effects Drop 1.7.2
94
+ *
95
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
96
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
97
+ * and GPL (GPL-LICENSE.txt) licenses.
98
+ *
99
+ * http://docs.jquery.com/UI/Effects/Drop
100
+ *
101
+ * Depends:
102
+ * effects.core.js
103
+ */
104
+ (function(a){a.effects.drop=function(b){return this.queue(function(){var e=a(this),d=["position","top","left","opacity"];var i=a.effects.setMode(e,b.options.mode||"hide");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e);var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true})/2:e.outerWidth({margin:true})/2);if(i=="show"){e.css("opacity",0).css(f,c=="pos"?-j:j)}var g={opacity:i=="show"?1:0};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
105
+ * jQuery UI Effects Fold 1.7.2
106
+ *
107
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
108
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
109
+ * and GPL (GPL-LICENSE.txt) licenses.
110
+ *
111
+ * http://docs.jquery.com/UI/Effects/Fold
112
+ *
113
+ * Depends:
114
+ * effects.core.js
115
+ */
116
+ (function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),k=["position","top","left"];var h=a.effects.setMode(e,b.options.mode||"hide");var o=b.options.size||15;var n=!(!b.options.horizFirst);var g=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,k);e.show();var d=a.effects.createWrapper(e).css({overflow:"hidden"});var i=((h=="show")!=n);var f=i?["width","height"]:["height","width"];var c=i?[d.width(),d.height()]:[d.height(),d.width()];var j=/([0-9]+)%/.exec(o);if(j){o=parseInt(j[1],10)/100*c[h=="hide"?0:1]}if(h=="show"){d.css(n?{height:0,width:o}:{height:o,width:0})}var m={},l={};m[f[0]]=h=="show"?c[0]:o;l[f[1]]=h=="show"?c[1]:0;d.animate(m,g,b.options.easing).animate(l,g,b.options.easing,function(){if(h=="hide"){e.hide()}a.effects.restore(e,k);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);;/*
117
+ * jQuery UI Effects Highlight 1.7.2
118
+ *
119
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
120
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
121
+ * and GPL (GPL-LICENSE.txt) licenses.
122
+ *
123
+ * http://docs.jquery.com/UI/Effects/Highlight
124
+ *
125
+ * Depends:
126
+ * effects.core.js
127
+ */
128
+ (function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
129
+ * jQuery UI Effects Pulsate 1.7.2
130
+ *
131
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
132
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
133
+ * and GPL (GPL-LICENSE.txt) licenses.
134
+ *
135
+ * http://docs.jquery.com/UI/Effects/Pulsate
136
+ *
137
+ * Depends:
138
+ * effects.core.js
139
+ */
140
+ (function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing)}if(g=="hide"){d.animate({opacity:0},e,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);;/*
141
+ * jQuery UI Effects Scale 1.7.2
142
+ *
143
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
144
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
145
+ * and GPL (GPL-LICENSE.txt) licenses.
146
+ *
147
+ * http://docs.jquery.com/UI/Effects/Scale
148
+ *
149
+ * Depends:
150
+ * effects.core.js
151
+ */
152
+ (function(a){a.effects.puff=function(b){return this.queue(function(){var f=a(this);var c=a.extend(true,{},b.options);var h=a.effects.setMode(f,b.options.mode||"hide");var g=parseInt(b.options.percent,10)||150;c.fade=true;var e={height:f.height(),width:f.width()};var d=g/100;f.from=(h=="hide")?e:{height:e.height*d,width:e.width*d};c.from=f.from;c.percent=(h=="hide")?g:100;c.mode=h;f.effect("scale",c,b.duration,b.callback);f.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var g=a(this);var d=a.extend(true,{},b.options);var j=a.effects.setMode(g,b.options.mode||"effect");var h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:(j=="hide"?0:100));var i=b.options.direction||"both";var c=b.options.origin;if(j!="effect"){d.origin=c||["middle","center"];d.restore=true}var f={height:g.height(),width:g.width()};g.from=b.options.from||(j=="show"?{height:0,width:0}:f);var e={y:i!="horizontal"?(h/100):1,x:i!="vertical"?(h/100):1};g.to={height:f.height*e.y,width:f.width*e.x};if(b.options.fade){if(j=="show"){g.from.opacity=0;g.to.opacity=1}if(j=="hide"){g.from.opacity=1;g.to.opacity=0}}d.from=g.from;d.to=g.to;d.mode=j;g.effect("size",d,b.duration,b.callback);g.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),n=["position","top","left","width","height","overflow","opacity"];var m=["position","top","left","overflow","opacity"];var j=["width","height","overflow"];var p=["fontSize"];var k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var g=a.effects.setMode(c,b.options.mode||"effect");var i=b.options.restore||false;var e=b.options.scale||"both";var o=b.options.origin;var d={height:c.height(),width:c.width()};c.from=b.options.from||d;c.to=b.options.to||d;if(o){var h=a.effects.getBaseline(o,d);c.from.top=(d.height-c.from.height)*h.y;c.from.left=(d.width-c.from.width)*h.x;c.to.top=(d.height-c.to.height)*h.y;c.to.left=(d.width-c.to.width)*h.x}var l={from:{y:c.from.height/d.height,x:c.from.width/d.width},to:{y:c.to.height/d.height,x:c.to.width/d.width}};if(e=="box"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(k);c.from=a.effects.setTransition(c,k,l.from.y,c.from);c.to=a.effects.setTransition(c,k,l.to.y,c.to)}if(l.from.x!=l.to.x){n=n.concat(f);c.from=a.effects.setTransition(c,f,l.from.x,c.from);c.to=a.effects.setTransition(c,f,l.to.x,c.to)}}if(e=="content"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(p);c.from=a.effects.setTransition(c,p,l.from.y,c.from);c.to=a.effects.setTransition(c,p,l.to.y,c.to)}}a.effects.save(c,i?n:m);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(e=="content"||e=="both"){k=k.concat(["marginTop","marginBottom"]).concat(p);f=f.concat(["marginLeft","marginRight"]);j=n.concat(k).concat(f);c.find("*[width]").each(function(){child=a(this);if(i){a.effects.save(child,j)}var q={height:child.height(),width:child.width()};child.from={height:q.height*l.from.y,width:q.width*l.from.x};child.to={height:q.height*l.to.y,width:q.width*l.to.x};if(l.from.y!=l.to.y){child.from=a.effects.setTransition(child,k,l.from.y,child.from);child.to=a.effects.setTransition(child,k,l.to.y,child.to)}if(l.from.x!=l.to.x){child.from=a.effects.setTransition(child,f,l.from.x,child.from);child.to=a.effects.setTransition(child,f,l.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(i){a.effects.restore(child,j)}})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){c.hide()}a.effects.restore(c,i?n:m);a.effects.removeWrapper(c);if(b.callback){b.callback.apply(this,arguments)}c.dequeue()}})})}})(jQuery);;/*
153
+ * jQuery UI Effects Shake 1.7.2
154
+ *
155
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
156
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
157
+ * and GPL (GPL-LICENSE.txt) licenses.
158
+ *
159
+ * http://docs.jquery.com/UI/Effects/Shake
160
+ *
161
+ * Depends:
162
+ * effects.core.js
163
+ */
164
+ (function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var g=b.duration||b.options.duration||140;a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var h={},o={},m={};h[f]=(p=="pos"?"-=":"+=")+c;o[f]=(p=="pos"?"+=":"-=")+c*2;m[f]=(p=="pos"?"-=":"+=")+c*2;e.animate(h,g,b.options.easing);for(var j=1;j<d;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
165
+ * jQuery UI Effects Slide 1.7.2
166
+ *
167
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
168
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
169
+ * and GPL (GPL-LICENSE.txt) licenses.
170
+ *
171
+ * http://docs.jquery.com/UI/Effects/Slide
172
+ *
173
+ * Depends:
174
+ * effects.core.js
175
+ */
176
+ (function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
177
+ * jQuery UI Effects Transfer 1.7.2
178
+ *
179
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
180
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
181
+ * and GPL (GPL-LICENSE.txt) licenses.
182
+ *
183
+ * http://docs.jquery.com/UI/Effects/Transfer
184
+ *
185
+ * Depends:
186
+ * effects.core.js
187
+ */
188
+ (function(a){a.effects.transfer=function(b){return this.queue(function(){var f=a(this),h=a(b.options.to),e=h.offset(),g={top:e.top,left:e.left,height:h.innerHeight(),width:h.innerWidth()},d=f.offset(),c=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:d.top,left:d.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){c.remove();(b.callback&&b.callback.apply(f[0],arguments));f.dequeue()})})}})(jQuery);;
@@ -0,0 +1,57 @@
1
+ #popup_container {
2
+ font-family: Arial, sans-serif;
3
+ font-size: 12px;
4
+ min-width: 300px; /* Dialog will be no smaller than this */
5
+ max-width: 600px; /* Dialog will wrap after this width */
6
+ background: #FFF;
7
+ border: solid 5px #999;
8
+ color: #000;
9
+ -moz-border-radius: 5px;
10
+ -webkit-border-radius: 5px;
11
+ border-radius: 5px;
12
+ }
13
+
14
+ #popup_title {
15
+ font-size: 14px;
16
+ font-weight: bold;
17
+ text-align: center;
18
+ line-height: 1.75em;
19
+ color: #666;
20
+ background: #CCC url(images/title.gif) top repeat-x;
21
+ border: solid 1px #FFF;
22
+ border-bottom: solid 1px #999;
23
+ cursor: default;
24
+ padding: 0em;
25
+ margin: 0em;
26
+ }
27
+
28
+ #popup_content {
29
+ background: 16px 16px no-repeat url(images/info.gif);
30
+ padding: 1em 1.75em;
31
+ margin: 0em;
32
+ }
33
+
34
+ #popup_content.alert {
35
+ background-image: url(images/info.gif);
36
+ }
37
+
38
+ #popup_content.confirm {
39
+ background-image: url(images/important.gif);
40
+ }
41
+
42
+ #popup_content.prompt {
43
+ background-image: url(images/help.gif);
44
+ }
45
+
46
+ #popup_message {
47
+ padding-left: 48px;
48
+ }
49
+
50
+ #popup_panel {
51
+ text-align: center;
52
+ margin: 1em 0em 0em 1em;
53
+ }
54
+
55
+ #popup_prompt {
56
+ margin: .5em 0em;
57
+ }
@@ -0,0 +1,235 @@
1
+ // jQuery Alert Dialogs Plugin
2
+ //
3
+ // Version 1.1
4
+ //
5
+ // Cory S.N. LaViska
6
+ // A Beautiful Site (http://abeautifulsite.net/)
7
+ // 14 May 2009
8
+ //
9
+ // Visit http://abeautifulsite.net/notebook/87 for more information
10
+ //
11
+ // Usage:
12
+ // jAlert( message, [title, callback] )
13
+ // jConfirm( message, [title, callback] )
14
+ // jPrompt( message, [value, title, callback] )
15
+ //
16
+ // History:
17
+ //
18
+ // 1.00 - Released (29 December 2008)
19
+ //
20
+ // 1.01 - Fixed bug where unbinding would destroy all resize events
21
+ //
22
+ // License:
23
+ //
24
+ // This plugin is dual-licensed under the GNU General Public License and the MIT License and
25
+ // is copyright 2008 A Beautiful Site, LLC.
26
+ //
27
+ (function($) {
28
+
29
+ $.alerts = {
30
+
31
+ // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
32
+
33
+ verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
34
+ horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
35
+ repositionOnResize: true, // re-centers the dialog on window resize
36
+ overlayOpacity: .01, // transparency level of overlay
37
+ overlayColor: '#FFF', // base color of overlay
38
+ draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
39
+ okButton: '&nbsp;OK&nbsp;', // text for the OK button
40
+ cancelButton: '&nbsp;Cancel&nbsp;', // text for the Cancel button
41
+ dialogClass: null, // if specified, this class will be applied to all dialogs
42
+
43
+ // Public methods
44
+
45
+ alert: function(message, title, callback) {
46
+ if( title == null ) title = 'Alert';
47
+ $.alerts._show(title, message, null, 'alert', function(result) {
48
+ if( callback ) callback(result);
49
+ });
50
+ },
51
+
52
+ confirm: function(message, title, callback) {
53
+ if( title == null ) title = 'Confirm';
54
+ $.alerts._show(title, message, null, 'confirm', function(result) {
55
+ if( callback ) callback(result);
56
+ });
57
+ },
58
+
59
+ prompt: function(message, value, title, callback) {
60
+ if( title == null ) title = 'Prompt';
61
+ $.alerts._show(title, message, value, 'prompt', function(result) {
62
+ if( callback ) callback(result);
63
+ });
64
+ },
65
+
66
+ // Private methods
67
+
68
+ _show: function(title, msg, value, type, callback) {
69
+
70
+ $.alerts._hide();
71
+ $.alerts._overlay('show');
72
+
73
+ $("BODY").append(
74
+ '<div id="popup_container">' +
75
+ '<h1 id="popup_title"></h1>' +
76
+ '<div id="popup_content">' +
77
+ '<div id="popup_message"></div>' +
78
+ '</div>' +
79
+ '</div>');
80
+
81
+ if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass);
82
+
83
+ // IE6 Fix
84
+ var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed';
85
+
86
+ $("#popup_container").css({
87
+ position: pos,
88
+ zIndex: 99999,
89
+ padding: 0,
90
+ margin: 0
91
+ });
92
+
93
+ $("#popup_title").text(title);
94
+ $("#popup_content").addClass(type);
95
+ $("#popup_message").text(msg);
96
+ $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '<br />') );
97
+
98
+ $("#popup_container").css({
99
+ minWidth: $("#popup_container").outerWidth(),
100
+ maxWidth: $("#popup_container").outerWidth()
101
+ });
102
+
103
+ $.alerts._reposition();
104
+ $.alerts._maintainPosition(true);
105
+
106
+ switch( type ) {
107
+ case 'alert':
108
+ $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /></div>');
109
+ $("#popup_ok").click( function() {
110
+ $.alerts._hide();
111
+ callback(true);
112
+ });
113
+ $("#popup_ok").focus().keypress( function(e) {
114
+ if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click');
115
+ });
116
+ break;
117
+ case 'confirm':
118
+ $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
119
+ $("#popup_ok").click( function() {
120
+ $.alerts._hide();
121
+ if( callback ) callback(true);
122
+ });
123
+ $("#popup_cancel").click( function() {
124
+ $.alerts._hide();
125
+ if( callback ) callback(false);
126
+ });
127
+ $("#popup_ok").focus();
128
+ $("#popup_ok, #popup_cancel").keypress( function(e) {
129
+ if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
130
+ if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
131
+ });
132
+ break;
133
+ case 'prompt':
134
+ $("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
135
+ $("#popup_prompt").width( $("#popup_message").width() );
136
+ $("#popup_ok").click( function() {
137
+ var val = $("#popup_prompt").val();
138
+ $.alerts._hide();
139
+ if( callback ) callback( val );
140
+ });
141
+ $("#popup_cancel").click( function() {
142
+ $.alerts._hide();
143
+ if( callback ) callback( null );
144
+ });
145
+ $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) {
146
+ if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
147
+ if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
148
+ });
149
+ if( value ) $("#popup_prompt").val(value);
150
+ $("#popup_prompt").focus().select();
151
+ break;
152
+ }
153
+
154
+ // Make draggable
155
+ if( $.alerts.draggable ) {
156
+ try {
157
+ $("#popup_container").draggable({ handle: $("#popup_title") });
158
+ $("#popup_title").css({ cursor: 'move' });
159
+ } catch(e) { /* requires jQuery UI draggables */ }
160
+ }
161
+ },
162
+
163
+ _hide: function() {
164
+ $("#popup_container").remove();
165
+ $.alerts._overlay('hide');
166
+ $.alerts._maintainPosition(false);
167
+ },
168
+
169
+ _overlay: function(status) {
170
+ switch( status ) {
171
+ case 'show':
172
+ $.alerts._overlay('hide');
173
+ $("BODY").append('<div id="popup_overlay"></div>');
174
+ $("#popup_overlay").css({
175
+ position: 'absolute',
176
+ zIndex: 99998,
177
+ top: '0px',
178
+ left: '0px',
179
+ width: '100%',
180
+ height: $(document).height(),
181
+ background: $.alerts.overlayColor,
182
+ opacity: $.alerts.overlayOpacity
183
+ });
184
+ break;
185
+ case 'hide':
186
+ $("#popup_overlay").remove();
187
+ break;
188
+ }
189
+ },
190
+
191
+ _reposition: function() {
192
+ var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset;
193
+ var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset;
194
+ if( top < 0 ) top = 0;
195
+ if( left < 0 ) left = 0;
196
+
197
+ // IE6 fix
198
+ if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
199
+
200
+ $("#popup_container").css({
201
+ top: top + 'px',
202
+ left: left + 'px'
203
+ });
204
+ $("#popup_overlay").height( $(document).height() );
205
+ },
206
+
207
+ _maintainPosition: function(status) {
208
+ if( $.alerts.repositionOnResize ) {
209
+ switch(status) {
210
+ case true:
211
+ $(window).bind('resize', $.alerts._reposition);
212
+ break;
213
+ case false:
214
+ $(window).unbind('resize', $.alerts._reposition);
215
+ break;
216
+ }
217
+ }
218
+ }
219
+
220
+ }
221
+
222
+ // Shortuct functions
223
+ jAlert = function(message, title, callback) {
224
+ $.alerts.alert(message, title, callback);
225
+ }
226
+
227
+ jConfirm = function(message, title, callback) {
228
+ $.alerts.confirm(message, title, callback);
229
+ };
230
+
231
+ jPrompt = function(message, value, title, callback) {
232
+ $.alerts.prompt(message, value, title, callback);
233
+ };
234
+
235
+ })(jQuery);