Form Builder | Create Responsive Contact Forms - Version 1.0.1

Version Description

Download this release

Release Info

Developer umarbajwa
Plugin Icon 128x128 Form Builder | Create Responsive Contact Forms
Version 1.0.1
Comparing to
See all releases

Version 1.0.1

Files changed (106) hide show
  1. admin/assets/css/bootstrap-theme.min.css +6 -0
  2. admin/assets/css/bootstrap.min.css +6 -0
  3. admin/assets/css/entry/datatables.min.css +24 -0
  4. admin/assets/css/entry/entry-manager.css +251 -0
  5. admin/assets/css/index.php +0 -0
  6. admin/assets/css/notification/notification-manager.css +150 -0
  7. admin/assets/css/style.css +338 -0
  8. admin/assets/css/style/style-manager.css +20 -0
  9. admin/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  10. admin/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  11. admin/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  12. admin/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  13. admin/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  14. admin/assets/img/index.php +0 -0
  15. admin/assets/img/wp_rls_delete_form_img.png +0 -0
  16. admin/assets/img/wp_rls_edit_form_img.png +0 -0
  17. admin/assets/img/wp_rls_preview_slider_img.png.png +0 -0
  18. admin/assets/img/wp_smf_delete_form_img.png +0 -0
  19. admin/assets/img/wp_smf_edit_form_img.png +0 -0
  20. admin/assets/img/wp_smf_preview_slider_img.png.png +0 -0
  21. admin/assets/index.php +0 -0
  22. admin/assets/js/backbone.min.js +10 -0
  23. admin/assets/js/bootstrap.min.js +7 -0
  24. admin/assets/js/entry/datatables.min.js +335 -0
  25. admin/assets/js/entry/entry-manager.js +132 -0
  26. admin/assets/js/index.php +0 -0
  27. admin/assets/js/notification/notification-manager.js +435 -0
  28. admin/assets/js/script.js +1517 -0
  29. admin/assets/js/style/style-manager.js +1418 -0
  30. admin/assets/js/underscore-min.js +6 -0
  31. admin/core/class/class-smuzform-admin.php +595 -0
  32. admin/core/class/class-smuzform-entry-model.php +161 -0
  33. admin/core/class/class-smuzform-entry.php +245 -0
  34. admin/core/class/class-smuzform-model.php +160 -0
  35. admin/core/class/class-smuzform-notification-manager.php +385 -0
  36. admin/core/class/class-smuzform-notification-model.php +121 -0
  37. admin/core/class/class-smuzform-style-manager.php +12 -0
  38. admin/core/index.php +0 -0
  39. admin/core/lib/phpUserAgentStringParser.php +320 -0
  40. admin/index.php +0 -0
  41. admin/views/backbone-views.php +31 -0
  42. admin/views/backbone/form-field-settings-rules.php +81 -0
  43. admin/views/backbone/form-field-settings.php +342 -0
  44. admin/views/backbone/form-fields-preview.php +271 -0
  45. admin/views/backbone/form-navbar.php +48 -0
  46. admin/views/backbone/form-settings.php +79 -0
  47. admin/views/entry/datatable.php +9 -0
  48. admin/views/entry/edit-entry.php +174 -0
  49. admin/views/entry/settings-page.php +63 -0
  50. admin/views/forms-main.php +281 -0
  51. admin/views/index.php +0 -0
  52. admin/views/notification/backbone/add-new.php +26 -0
  53. admin/views/notification/backbone/collection.php +230 -0
  54. admin/views/notification/backbone/rule-builder.php +81 -0
  55. admin/views/notification/confirmation-email/html-message.php +75 -0
  56. admin/views/notification/emails/all-fields.php +50 -0
  57. admin/views/notification/emails/html/all.php +53 -0
  58. admin/views/notification/emails/html/html-message.php +77 -0
  59. admin/views/notification/emails/single-checkbox.php +7 -0
  60. admin/views/notification/emails/single.php +80 -0
  61. admin/views/notification/settings-page.php +38 -0
  62. admin/views/settings-page.php +79 -0
  63. admin/views/settings-preview.php +41 -0
  64. admin/views/settings-tabs.php +15 -0
  65. admin/views/style/backbone/form-preview.php +45 -0
  66. admin/views/style/backbone/form-style.php +14 -0
  67. admin/views/style/backbone/incsettings.php +13 -0
  68. admin/views/style/backbone/settings/cont.php +57 -0
  69. admin/views/style/backbone/settings/description.php +57 -0
  70. admin/views/style/backbone/settings/field-input.php +135 -0
  71. admin/views/style/backbone/settings/field-label.php +66 -0
  72. admin/views/style/backbone/settings/heading.php +57 -0
  73. admin/views/style/backbone/settings/submit-btn.php +144 -0
  74. admin/views/style/settings-page.php +76 -0
  75. admin/views/tab-field-settings.php +1 -0
  76. admin/views/tab-fields.php +231 -0
  77. admin/views/tab-form-settings.php +1 -0
  78. config.php +52 -0
  79. core_functions.php +191 -0
  80. forms.php +77 -0
  81. index.php +0 -0
  82. public/assets/css/form-style.css +315 -0
  83. public/assets/css/index.php +0 -0
  84. public/assets/img/index.php +0 -0
  85. public/assets/index.php +0 -0
  86. public/assets/js/index.php +0 -0
  87. public/assets/js/jquery-validate.js +8 -0
  88. public/assets/js/smuzforms.js +386 -0
  89. public/core/class/WPSimpleNonce.php +94 -0
  90. public/core/class/class-smuzform-form.php +1026 -0
  91. public/core/class/class-smuzform-public-render.php +49 -0
  92. public/core/class/class-smuzform-public-storage.php +692 -0
  93. public/core/class/class-smuzform-public.php +70 -0
  94. public/core/index.php +0 -0
  95. public/index.php +0 -0
  96. public/views/css/skeleton.css +9 -0
  97. public/views/form/html-submit-view.php +65 -0
  98. public/views/form/multipage/render-fields.php +118 -0
  99. public/views/form/multipage/render.php +91 -0
  100. public/views/form/render-advanced-fields.php +153 -0
  101. public/views/form/render-html-fields.php +7 -0
  102. public/views/form/render-no-script.php +150 -0
  103. public/views/form/render.php +181 -0
  104. public/views/form/select-county-list.php +249 -0
  105. public/views/index.php +0 -0
  106. readme.txt +223 -0
admin/assets/css/bootstrap-theme.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)}
6
+ /*# sourceMappingURL=bootstrap-theme.min.css.map */
admin/assets/css/bootstrap.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
6
+ /*# sourceMappingURL=bootstrap.min.css.map */
admin/assets/css/entry/datatables.min.css ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * This combined file was created by the DataTables downloader builder:
3
+ * https://datatables.net/download
4
+ *
5
+ * To rebuild or modify this file with the latest versions of the included
6
+ * software please visit:
7
+ * https://datatables.net/download/#bs/dt-1.10.11,b-1.1.2,b-colvis-1.1.2,b-html5-1.1.2,b-print-1.1.2,cr-1.3.1,se-1.1.2
8
+ *
9
+ * Included libraries:
10
+ * DataTables 1.10.11, Buttons 1.1.2, Column visibility 1.1.2, HTML5 export 1.1.2, Print view 1.1.2, ColReorder 1.3.1, Select 1.1.2
11
+ */
12
+
13
+ table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:'Glyphicons Halflings';opacity:0.5}table.dataTable thead .sorting:after{opacity:0.2;content:"\e150"}table.dataTable thead .sorting_asc:after{content:"\e155"}table.dataTable thead .sorting_desc:after{content:"\e156"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody table thead .sorting:after,div.dataTables_scrollBody table thead .sorting_asc:after,div.dataTables_scrollBody table thead .sorting_desc:after{display:none}div.dataTables_scrollBody table tbody tr:first-child th,div.dataTables_scrollBody table tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable{border-collapse:separate !important}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:0}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:last-child{padding-right:0}
14
+
15
+
16
+ div.dt-button-info{position:fixed;top:50%;left:50%;width:400px;margin-top:-100px;margin-left:-200px;background-color:white;border:2px solid #111;box-shadow:3px 3px 8px rgba(0,0,0,0.3);border-radius:3px;text-align:center;z-index:21}div.dt-button-info h2{padding:0.5em;margin:0;font-weight:normal;border-bottom:1px solid #ddd;background-color:#f3f3f3}div.dt-button-info>div{padding:1em}ul.dt-button-collection.dropdown-menu{display:block;z-index:2002;-webkit-column-gap:8px;-moz-column-gap:8px;-ms-column-gap:8px;-o-column-gap:8px;column-gap:8px}ul.dt-button-collection.dropdown-menu.fixed{position:fixed;top:50%;left:50%;margin-left:-75px;border-radius:0}ul.dt-button-collection.dropdown-menu.fixed.two-column{margin-left:-150px}ul.dt-button-collection.dropdown-menu.fixed.three-column{margin-left:-225px}ul.dt-button-collection.dropdown-menu.fixed.four-column{margin-left:-300px}ul.dt-button-collection.dropdown-menu>*{-webkit-column-break-inside:avoid;break-inside:avoid}ul.dt-button-collection.dropdown-menu.two-column{width:300px;padding-bottom:1px;-webkit-column-count:2;-moz-column-count:2;-ms-column-count:2;-o-column-count:2;column-count:2}ul.dt-button-collection.dropdown-menu.three-column{width:450px;padding-bottom:1px;-webkit-column-count:3;-moz-column-count:3;-ms-column-count:3;-o-column-count:3;column-count:3}ul.dt-button-collection.dropdown-menu.four-column{width:600px;padding-bottom:1px;-webkit-column-count:4;-moz-column-count:4;-ms-column-count:4;-o-column-count:4;column-count:4}div.dt-button-background{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2001}@media screen and (max-width: 767px){div.dt-buttons{float:none;width:100%;text-align:center;margin-bottom:0.5em}div.dt-buttons a.btn{float:none}}
17
+
18
+
19
+ table.DTCR_clonedTable.dataTable{position:absolute !important;background-color:rgba(255,255,255,0.7);z-index:202}div.DTCR_pointer{width:1px;background-color:#337ab7;z-index:201}
20
+
21
+
22
+ table.dataTable tbody>tr.selected,table.dataTable tbody>tr>.selected{background-color:#08C}table.dataTable.stripe tbody>tr.odd.selected,table.dataTable.stripe tbody>tr.odd>.selected,table.dataTable.display tbody>tr.odd.selected,table.dataTable.display tbody>tr.odd>.selected{background-color:#0085c7}table.dataTable.hover tbody>tr.selected:hover,table.dataTable.hover tbody>tr>.selected:hover,table.dataTable.display tbody>tr.selected:hover,table.dataTable.display tbody>tr>.selected:hover{background-color:#0083c5}table.dataTable.order-column tbody>tr.selected>.sorting_1,table.dataTable.order-column tbody>tr.selected>.sorting_2,table.dataTable.order-column tbody>tr.selected>.sorting_3,table.dataTable.order-column tbody>tr>.selected,table.dataTable.display tbody>tr.selected>.sorting_1,table.dataTable.display tbody>tr.selected>.sorting_2,table.dataTable.display tbody>tr.selected>.sorting_3,table.dataTable.display tbody>tr>.selected{background-color:#0085c8}table.dataTable.display tbody>tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_1{background-color:#0081c1}table.dataTable.display tbody>tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_2{background-color:#0082c2}table.dataTable.display tbody>tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.odd.selected>.sorting_3{background-color:#0083c4}table.dataTable.display tbody>tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_1{background-color:#0085c8}table.dataTable.display tbody>tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_2{background-color:#0086ca}table.dataTable.display tbody>tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody>tr.even.selected>.sorting_3{background-color:#0087cb}table.dataTable.display tbody>tr.odd>.selected,table.dataTable.order-column.stripe tbody>tr.odd>.selected{background-color:#0081c1}table.dataTable.display tbody>tr.even>.selected,table.dataTable.order-column.stripe tbody>tr.even>.selected{background-color:#0085c8}table.dataTable.display tbody>tr.selected:hover>.sorting_1,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_1{background-color:#007dbb}table.dataTable.display tbody>tr.selected:hover>.sorting_2,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_2{background-color:#007ebd}table.dataTable.display tbody>tr.selected:hover>.sorting_3,table.dataTable.order-column.hover tbody>tr.selected:hover>.sorting_3{background-color:#007fbf}table.dataTable.display tbody>tr:hover>.selected,table.dataTable.display tbody>tr>.selected:hover,table.dataTable.order-column.hover tbody>tr:hover>.selected,table.dataTable.order-column.hover tbody>tr>.selected:hover{background-color:#007dbb}table.dataTable td.select-checkbox{position:relative}table.dataTable td.select-checkbox:before,table.dataTable td.select-checkbox:after{display:block;position:absolute;top:1.2em;left:50%;width:12px;height:12px;box-sizing:border-box}table.dataTable td.select-checkbox:before{content:' ';margin-top:-6px;margin-left:-6px;border:1px solid black;border-radius:3px}table.dataTable tr.selected td.select-checkbox:after{content:'\2714';margin-top:-11px;margin-left:-4px;text-align:center;text-shadow:1px 1px #B0BED9, -1px -1px #B0BED9, 1px -1px #B0BED9, -1px 1px #B0BED9}div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:0.5em}@media screen and (max-width: 640px){div.dataTables_wrapper span.select-info,div.dataTables_wrapper span.select-item{margin-left:0;display:block}}table.dataTable tbody tr.selected,table.dataTable tbody th.selected,table.dataTable tbody td.selected{color:white}table.dataTable tbody tr.selected a,table.dataTable tbody th.selected a,table.dataTable tbody td.selected a{color:#a2d4ed}
23
+
24
+
admin/assets/css/entry/entry-manager.css ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Template-specific stuff
2
+ *
3
+ * Customizations just for the template; these are not necessary for anything
4
+ * with disabling the responsiveness.
5
+ */
6
+
7
+ /* Account for fixed navbar */
8
+ body {
9
+ min-width: 1200px;
10
+ }
11
+
12
+ /* Finesse the page header spacing */
13
+ .page-header {
14
+ margin-bottom: 30px;
15
+ }
16
+ .page-header .lead {
17
+ margin-bottom: 10px;
18
+ }
19
+
20
+
21
+ /* Non-responsive overrides
22
+ *
23
+ * Utilitze the following CSS to disable the responsive-ness of the container,
24
+ * grid system, and navbar.
25
+ */
26
+
27
+ /* Reset the container */
28
+ .container {
29
+ width: 1200px;
30
+ max-width: none !important;
31
+ }
32
+
33
+ /* Demonstrate the grids */
34
+ .col-xs-4 {
35
+ padding-top: 15px;
36
+ padding-bottom: 15px;
37
+ background-color: #eee;
38
+ background-color: rgba(86,61,124,.15);
39
+ border: 1px solid #ddd;
40
+ border: 1px solid rgba(86,61,124,.2);
41
+ }
42
+
43
+ .container .navbar-header,
44
+ .container .navbar-collapse {
45
+ margin-right: 0;
46
+ margin-left: 0;
47
+ }
48
+
49
+ /* Always float the navbar header */
50
+ .navbar-header {
51
+ float: left;
52
+ }
53
+
54
+ /* Undo the collapsing navbar */
55
+ .navbar-collapse {
56
+ display: block !important;
57
+ height: auto !important;
58
+ padding-bottom: 0;
59
+ overflow: visible !important;
60
+ }
61
+
62
+ .navbar-toggle {
63
+ display: none;
64
+ }
65
+ .navbar-collapse {
66
+ border-top: 0;
67
+ }
68
+
69
+ .navbar-brand {
70
+ margin-left: -15px;
71
+ }
72
+
73
+ /* Always apply the floated nav */
74
+ .navbar-nav {
75
+ float: left;
76
+ margin: 0;
77
+ }
78
+ .navbar-nav > li {
79
+ float: left;
80
+ }
81
+ .navbar-nav > li > a {
82
+ padding: 15px;
83
+ }
84
+
85
+ /* Redeclare since we override the float above */
86
+ .navbar-nav.navbar-right {
87
+ float: right;
88
+ }
89
+
90
+ /* Undo custom dropdowns */
91
+ .navbar .navbar-nav .open .dropdown-menu {
92
+ position: absolute;
93
+ float: left;
94
+ background-color: #fff;
95
+ border: 1px solid #ccc;
96
+ border: 1px solid rgba(0, 0, 0, .15);
97
+ border-width: 0 1px 1px;
98
+ border-radius: 0 0 4px 4px;
99
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
100
+ box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
101
+ }
102
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a {
103
+ color: #333;
104
+ }
105
+ .navbar .navbar-nav .open .dropdown-menu > li > a:hover,
106
+ .navbar .navbar-nav .open .dropdown-menu > li > a:focus,
107
+ .navbar .navbar-nav .open .dropdown-menu > .active > a,
108
+ .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
109
+ .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
110
+ color: #fff !important;
111
+ background-color: #428bca !important;
112
+ }
113
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a,
114
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
115
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
116
+ color: #999 !important;
117
+ background-color: transparent !important;
118
+ }
119
+
120
+ #smuzform-cont {
121
+ background-color: #fff;
122
+ }
123
+
124
+ .row {
125
+ width: 91.8%;
126
+ margin: 25px;
127
+ }
128
+
129
+ .contInfoCard {
130
+ background-color: #fff;
131
+ height: 240px;
132
+ border-radius: 50%;
133
+ text-align: center;
134
+ box-shadow: 0 1px 3px 0 rgba(0,0,0,0.4);
135
+ }
136
+
137
+ .contInfoInlineCont {
138
+ position: relative;
139
+ top: 40%;
140
+ transform: translateY(-50%);
141
+ }
142
+
143
+ .entryCountCard {
144
+ position: relative;
145
+ left: 400px;
146
+ }
147
+
148
+ #entriesCountHeading {
149
+ color: green;
150
+ font-size: 60px;
151
+ }
152
+
153
+ #entryDataTable {
154
+ width: 100% !important;
155
+ }
156
+
157
+ #entryDataTable thead tr th {
158
+ font-size: 20px;
159
+ background-color: #32373c;
160
+ color: #fff;
161
+ padding: 10px;
162
+ width: 200px !important;
163
+ }
164
+
165
+ #entryDataTable tbody tr td {
166
+
167
+ font-size: 14.4px;
168
+ padding: 5px;
169
+ width: 200px !important;
170
+ max-width: 200px;
171
+ }
172
+
173
+
174
+ #entryDataTable_wrapper {
175
+ width: 90%;
176
+ }
177
+
178
+ .dt-buttons.btn-group { display: inline; }
179
+ .col-sm-6 .dataTables_filter { display: none; }
180
+ #entryDataTable_length { top: 10px;
181
+ left: -40px; position: relative; }
182
+
183
+ .dt-buttons.btn-group .btn-default {
184
+ color: #fff;
185
+ background-color: #5cb85c;
186
+ border-color: #4cae4c;
187
+ }
188
+
189
+ .dt-buttons.btn-group .btn-default:hover {
190
+ color: #fff;
191
+ background-color: #449d44;
192
+ border-color: #398439;
193
+
194
+ }
195
+
196
+ table{
197
+ margin: 0 auto;
198
+ width: 100%;
199
+ clear: both;
200
+ border-collapse: collapse;
201
+ table-layout: fixed;
202
+ word-wrap:break-word;
203
+ }
204
+
205
+ .entryEditorMainRow {
206
+ width: 83% !important;
207
+ }
208
+
209
+ .fieldDataEntryEditor {
210
+ width: 60%;
211
+ font-size: 13px;
212
+ margin: 25px;
213
+ }
214
+
215
+ .fieldDataEntryEditor .fieldLabel {
216
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
217
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
218
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
219
+ padding: 10px;
220
+ background: #bbdefb;
221
+ color: #000;
222
+ margin-bottom: 0px;
223
+ }
224
+
225
+ .fieldDataEntryEditor .fieldValue {
226
+ background: #f9f9f9;
227
+ padding: 10px;
228
+ overflow-y: auto;
229
+ }
230
+
231
+ .fieldDataEntryEditor .fieldLabel strong{
232
+ font-weight: 900;
233
+ font-size: 18px;
234
+ }
235
+
236
+ .InfoContEntryEditor {
237
+ width: 30%;
238
+ }
239
+
240
+ @media print {
241
+ #adminmenumain { display: none; }
242
+ #formInfoContEntryEditor { display: none; }
243
+ .navBarActionsLi { display: none; }
244
+ .InfoContEntryEditor,.fieldDataEntryEditor{ clear: both !important; float: left !important; }
245
+ .fieldDataEntryEditor {
246
+ width: 100%;
247
+ font-size: 13px;
248
+ margin: 0px;
249
+ }
250
+ #smuzform-cont{ border: 0px; margin: 0px; }
251
+ }
admin/assets/css/index.php ADDED
File without changes
admin/assets/css/notification/notification-manager.css ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Non-responsive overrides
2
+ *
3
+ * Utilitze the following CSS to disable the responsive-ness of the container,
4
+ * grid system, and navbar.
5
+ */
6
+
7
+ /* Reset the container */
8
+ .container {
9
+ width: 1200px;
10
+ max-width: none !important;
11
+ }
12
+
13
+ /* Demonstrate the grids */
14
+ .col-xs-4 {
15
+ padding-top: 15px;
16
+ padding-bottom: 15px;
17
+ background-color: #eee;
18
+ background-color: rgba(86,61,124,.15);
19
+ border: 1px solid #ddd;
20
+ border: 1px solid rgba(86,61,124,.2);
21
+ }
22
+
23
+ .container .navbar-header,
24
+ .container .navbar-collapse {
25
+ margin-right: 0;
26
+ margin-left: 0;
27
+ }
28
+
29
+ /* Always float the navbar header */
30
+ .navbar-header {
31
+ float: left;
32
+ }
33
+
34
+ /* Undo the collapsing navbar */
35
+ .navbar-collapse {
36
+ display: block !important;
37
+ height: auto !important;
38
+ padding-bottom: 0;
39
+ overflow: visible !important;
40
+ }
41
+
42
+ .navbar-toggle {
43
+ display: none;
44
+ }
45
+ .navbar-collapse {
46
+ border-top: 0;
47
+ }
48
+
49
+ .navbar-brand {
50
+ margin-left: -15px;
51
+ }
52
+
53
+ /* Always apply the floated nav */
54
+ .navbar-nav {
55
+ float: left;
56
+ margin: 0;
57
+ }
58
+ .navbar-nav > li {
59
+ float: left;
60
+ }
61
+ .navbar-nav > li > a {
62
+ padding: 15px;
63
+ }
64
+
65
+ /* Redeclare since we override the float above */
66
+ .navbar-nav.navbar-right {
67
+ float: right;
68
+ }
69
+
70
+ /* Undo custom dropdowns */
71
+ .navbar .navbar-nav .open .dropdown-menu {
72
+ position: absolute;
73
+ float: left;
74
+ background-color: #fff;
75
+ border: 1px solid #ccc;
76
+ border: 1px solid rgba(0, 0, 0, .15);
77
+ border-width: 0 1px 1px;
78
+ border-radius: 0 0 4px 4px;
79
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
80
+ box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
81
+ }
82
+ .navbar-default .navbar-nav .open .dropdown-menu > li > a {
83
+ color: #333;
84
+ }
85
+ .navbar .navbar-nav .open .dropdown-menu > li > a:hover,
86
+ .navbar .navbar-nav .open .dropdown-menu > li > a:focus,
87
+ .navbar .navbar-nav .open .dropdown-menu > .active > a,
88
+ .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
89
+ .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
90
+ color: #fff !important;
91
+ background-color: #428bca !important;
92
+ }
93
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a,
94
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
95
+ .navbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
96
+ color: #999 !important;
97
+ background-color: transparent !important;
98
+ }
99
+
100
+ #smuzform-cont {
101
+
102
+ }
103
+
104
+ #addNewNotificationButton, #saveNotificationButton {
105
+ height: 50px;
106
+ text-align: center;
107
+ vertical-align: middle;
108
+ display: table-cell;
109
+ width: 250px;
110
+ font-size: 18px;
111
+ font-weight: bold;
112
+ margin-left: 10px;
113
+ }
114
+
115
+ #addNewNotificationButtonCont, #notificationTypeSelectCont {
116
+ width: 600px;
117
+ margin: 25px;
118
+ }
119
+
120
+ #notificationTypeSelect {
121
+ width: 300px;
122
+ height: 50px;
123
+ font-size: 18px;
124
+ }
125
+
126
+ label[for="notificationTypeSelect"] {
127
+ margin-right: 10px;
128
+ font-size: 18px;
129
+ }
130
+
131
+ .panel-group {
132
+ width: 87%;
133
+ }
134
+
135
+ .inlineLabel {
136
+ margin-right: 10px;
137
+ width: 100px;
138
+ }
139
+
140
+ .inlineField {
141
+ width: 300px !important;
142
+ }
143
+
144
+ textarea#emailTemplate {
145
+ font-family: Monaco,monospace;
146
+ }
147
+
148
+ #emailRightSidebarCont {
149
+ width: 65%;
150
+ }
admin/assets/css/style.css ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .sk-circle{margin:40px auto;width:40px;height:40px;position:relative}.sk-circle .sk-child{width:100%;height:100%;position:absolute;left:0;top:0}.sk-circle .sk-child:before{content:'';display:block;margin:0 auto;width:15%;height:15%;background-color:#333;border-radius:100%;-webkit-animation:sk-circleBounceDelay 1.2s infinite ease-in-out both;animation:sk-circleBounceDelay 1.2s infinite ease-in-out both}.sk-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-circle .sk-circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-circle .sk-circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-circle .sk-circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-circle .sk-circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-circle .sk-circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-circle .sk-circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-circle .sk-circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-circle .sk-circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-circle .sk-circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-circle .sk-circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-circle .sk-circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-circleBounceDelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-circleBounceDelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}
2
+
3
+ /**
4
+ remember to change color #f6f6f6
5
+ **/
6
+ #smuzform-cont {
7
+
8
+
9
+ margin: 0 auto;
10
+ margin-top: 25px;
11
+ border: 1px rgb(221, 221, 221) solid;
12
+ max-width: 1048px;
13
+ box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
14
+ -moz-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
15
+ -webkit-box-shadow: 0px 0px 3px 0px rgba(119, 119, 119, 0.5);
16
+ background-color: #FFEBD1;
17
+
18
+
19
+ }
20
+
21
+
22
+ #smuzform-cont .navbar-header {
23
+ width: 88% !important;
24
+ }
25
+
26
+ #smuzform-cont .navbar-header li{
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ .navBarActionsLi a{
32
+ cursor: pointer;
33
+ font-size: 18px;
34
+ color: #000 !important;
35
+ font-weight: 900;
36
+ }
37
+
38
+ .navBarActionsLi a:hover {
39
+ color: #fff !important;
40
+ }
41
+
42
+ #smuzform-cont .container {
43
+
44
+ }
45
+
46
+
47
+ #inline-preview-cont {
48
+
49
+ margin-top: 25px;
50
+ margin-left: 10px;
51
+ }
52
+
53
+ .fieldWrap button {
54
+ margin-left: 4px;
55
+ padding: 4px 8px;
56
+ position: relative;
57
+ top: -3px;
58
+ text-decoration: none;
59
+ border: none;
60
+ border: 1px solid #ccc;
61
+ -webkit-border-radius: 2px;
62
+ border-radius: 2px;
63
+ background: #f7f7f7;
64
+ text-shadow: none;
65
+ font-weight: 600;
66
+ font-size: 13px;
67
+ width: 120px;
68
+ }
69
+
70
+ .fieldWrap button:hover {
71
+ color: #fff;
72
+ -webkit-transition-property: border,background,color;
73
+ transition-property: border,background,color;
74
+ -webkit-transition-duration: .05s;
75
+ transition-duration: .05s;
76
+ -webkit-transition-timing-function: ease-in-out;
77
+ transition-timing-function: ease-in-out;
78
+ background-color: #0073ab;
79
+ }
80
+
81
+ .mainnavbar {
82
+
83
+ background-color: #7F93A5;
84
+ border-color: transparent;
85
+ border-radius: 0px;
86
+ margin-bottom: 0px;
87
+
88
+ }
89
+
90
+ .mainnavbar .navbar-brand {
91
+
92
+ color: #fff;
93
+
94
+ }
95
+ .smuzform-settings {
96
+
97
+ background-color: #FFEBD1;
98
+ border-color: rgb(250, 235, 204);
99
+ padding-right: 0;
100
+
101
+ }
102
+
103
+ .smuzform-preview {
104
+ background: #fff;
105
+ width: 655px;
106
+ }
107
+
108
+ #fields {
109
+
110
+ list-style: none;
111
+ margin-top: 15px;
112
+
113
+ }
114
+
115
+ #fields .field {
116
+
117
+ width: 40%;
118
+ float: left;
119
+ }
120
+
121
+ .form-group {
122
+ padding: 5px;
123
+ }
124
+
125
+ li.selected {
126
+ border: 2px dotted #5b9dd9;
127
+
128
+ cursor: move;
129
+ }
130
+
131
+ .selected .removeMeField {
132
+
133
+ display: block !important;
134
+ width: 30px;
135
+
136
+ }
137
+
138
+ #noFieldsMessage p:after {
139
+ content: "No Fields in the form. You should Add some fields by clicking on the field buttons.";
140
+ }
141
+
142
+ ul.collection-list {
143
+ margin: 0;
144
+ padding: 0;
145
+ list-style-type: none;
146
+ outline: none;
147
+ cursor: pointer;
148
+ }
149
+
150
+ .form-inline .form-group{
151
+ margin-right: 40px;
152
+ }
153
+
154
+ .form-inline .checkbox {
155
+ display: block;
156
+ }
157
+
158
+
159
+ .field-cont-type label, .field-cont-size label, .field-cont-options-label, .form-cont-lang label, .form-cont-placement label {
160
+ display: block;
161
+ }
162
+
163
+ label.required:after {
164
+ content:"*";
165
+ color:red;
166
+ }
167
+
168
+ .fieldLineBreakView {
169
+ padding: 5px;
170
+ }
171
+
172
+ .fieldSize-small {
173
+ width: 25%;
174
+ }
175
+
176
+ .fieldSize-medium {
177
+ width: 50%;
178
+ }
179
+
180
+ .fieldSize-large {
181
+ width: 100%;
182
+ }
183
+
184
+ .createFormBtn, .saveFormBtn {
185
+
186
+ background-color: #ddd;
187
+ padding: 0;
188
+ margin: 0;
189
+ width: 107%;
190
+ margin-left: -25px;
191
+ padding-bottom: 25px;
192
+ padding-top: 25px;
193
+ }
194
+
195
+ #saveForm {
196
+ text-align: center;
197
+ width: 200px;
198
+ height: 50px;
199
+ line-height: 50px;
200
+ position: relative;
201
+ left: 35%;
202
+ color: #000;
203
+ background-color: #58927B;
204
+ font-weight: bold;
205
+ font-size: 16px;
206
+ }
207
+
208
+ #saveForm:hover {
209
+ background-color: #6DA08B;
210
+ }
211
+
212
+ #serverModalCont {
213
+ position: absolute;
214
+ top: 0;
215
+ left: 0;
216
+ width: 100%;
217
+ height: 100%;
218
+ background-color: black;
219
+ opacity: 0.8;
220
+ z-index: 99999;
221
+ display: none;
222
+ }
223
+
224
+ #serverModalCont p{
225
+ position: relative;
226
+ top: 50%;
227
+ left: 50%;
228
+ color: #fff;
229
+ font-size: 25px;
230
+ font-weight: bold;
231
+ }
232
+
233
+ #wpfooter{
234
+ margin-top: 25px;
235
+ color: #000;
236
+ }
237
+
238
+ #wpcontent {
239
+ background-color: #fff;
240
+ }
241
+
242
+ .nameFieldLabelInline {
243
+ font-weight: normal;
244
+ margin-top: -30px;
245
+ }
246
+
247
+ .nameFieldRow, .addressFieldRow {
248
+ margin-right: 0px;
249
+ margin-left: 0px;
250
+ }
251
+
252
+ .nameFieldRow .form-group {
253
+ padding: 0px;
254
+ margin-bottom: 0px;
255
+ padding-right: 10px;
256
+ }
257
+
258
+ .addressFieldRow .form-group {
259
+ padding: 0px;
260
+ margin-bottom: 0px;
261
+ padding-right: 10px;
262
+ }
263
+
264
+ #formFieldsCont input {
265
+ cursor: pointer !important;
266
+ }
267
+
268
+ input[type=number] {
269
+ height: 34px;
270
+ }
271
+
272
+ .headingFieldFeature {
273
+ padding: 5px 0px 5px 0 ;
274
+ clear: both;
275
+ }
276
+
277
+ .ruleInlineCont {
278
+ margin-top: 10px;
279
+ }
280
+
281
+ .ruleInlineCont input, .ruleInlineCont select, .ruleInlineCont strong {
282
+ margin-right: 5px;
283
+ }
284
+
285
+ #ruleFields, #ruleFieldAction {
286
+ width: 45%;
287
+ }
288
+
289
+ #ruleFieldLogicValue {
290
+ width: 60%;
291
+ }
292
+
293
+ #ruleFieldAction {
294
+ width: 30%;
295
+ }
296
+
297
+ #fieldSettingsCont {
298
+ margin-right: 4px;
299
+ }
300
+
301
+ #fieldSettingsForm input[type="text"], #fieldSettingsForm input[type="number"], #fieldSettingsForm input[type="select"]{
302
+ font-size: 12px;
303
+ height: 30px;
304
+ }
305
+
306
+ #formSettingsForm input[type="text"], #formSettingsForm input[type="number"], #formSettingsForm input[type="select"]{
307
+ font-size: 12px;
308
+ height: 30px;
309
+ }
310
+
311
+ #formShortcodeFunc, #formShortcode {
312
+ font-family: monospace;
313
+ }
314
+
315
+ #fieldRulesCont {
316
+ margin-top: 15px;
317
+ }
318
+
319
+ textarea#customHtmlSource {
320
+ font-family: Monaco,monospace;
321
+ }
322
+
323
+ .smuzform-settings .nav-tabs {
324
+ margin-top: 15px;
325
+ }
326
+
327
+ .form-title{
328
+ font-weight: bold;
329
+ }
330
+
331
+ .loadingSpinner {
332
+ position: absolute;
333
+ top: 46%;
334
+ left: 60%;
335
+ }
336
+ .loadingSpinner .sk-child:before {
337
+ background-color: #ffffff;
338
+ }
admin/assets/css/style/style-manager.css ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .smuzform-style-settings {
2
+ padding: 0;
3
+ margin: 0;
4
+ margin-top: 30px;
5
+ padding-right: 10px;
6
+ }
7
+
8
+ #formStyleCont input[type="text"], #formStyleCont input[type="number"], #formStyleCont input[type="select"] {
9
+ font-size: 12px;
10
+ height: 30px;
11
+ }
12
+
13
+ #formStyleCont .wp-picker-container {
14
+ display: block;
15
+ }
16
+
17
+ .smuzform-preview {
18
+ background: #fff;
19
+ width: 650px;
20
+ }
admin/assets/fonts/glyphicons-halflings-regular.eot ADDED
Binary file
admin/assets/fonts/glyphicons-halflings-regular.svg ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata></metadata>
5
+ <defs>
6
+ <font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
7
+ <font-face units-per-em="1200" ascent="960" descent="-240" />
8
+ <missing-glyph horiz-adv-x="500" />
9
+ <glyph horiz-adv-x="0" />
10
+ <glyph horiz-adv-x="400" />
11
+ <glyph unicode=" " />
12
+ <glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
13
+ <glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
14
+ <glyph unicode="&#xa0;" />
15
+ <glyph unicode="&#xa5;" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
16
+ <glyph unicode="&#x2000;" horiz-adv-x="650" />
17
+ <glyph unicode="&#x2001;" horiz-adv-x="1300" />
18
+ <glyph unicode="&#x2002;" horiz-adv-x="650" />
19
+ <glyph unicode="&#x2003;" horiz-adv-x="1300" />
20
+ <glyph unicode="&#x2004;" horiz-adv-x="433" />
21
+ <glyph unicode="&#x2005;" horiz-adv-x="325" />
22
+ <glyph unicode="&#x2006;" horiz-adv-x="216" />
23
+ <glyph unicode="&#x2007;" horiz-adv-x="216" />
24
+ <glyph unicode="&#x2008;" horiz-adv-x="162" />
25
+ <glyph unicode="&#x2009;" horiz-adv-x="260" />
26
+ <glyph unicode="&#x200a;" horiz-adv-x="72" />
27
+ <glyph unicode="&#x202f;" horiz-adv-x="260" />
28
+ <glyph unicode="&#x205f;" horiz-adv-x="325" />
29
+ <glyph unicode="&#x20ac;" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
30
+ <glyph unicode="&#x20bd;" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
31
+ <glyph unicode="&#x2212;" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
32
+ <glyph unicode="&#x231b;" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
33
+ <glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
34
+ <glyph unicode="&#x2601;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
35
+ <glyph unicode="&#x26fa;" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
36
+ <glyph unicode="&#x2709;" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
37
+ <glyph unicode="&#x270f;" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
38
+ <glyph unicode="&#xe001;" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
39
+ <glyph unicode="&#xe002;" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
40
+ <glyph unicode="&#xe003;" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
41
+ <glyph unicode="&#xe005;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
42
+ <glyph unicode="&#xe006;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
43
+ <glyph unicode="&#xe007;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
44
+ <glyph unicode="&#xe008;" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
45
+ <glyph unicode="&#xe009;" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
46
+ <glyph unicode="&#xe010;" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
47
+ <glyph unicode="&#xe011;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
48
+ <glyph unicode="&#xe012;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
49
+ <glyph unicode="&#xe013;" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
50
+ <glyph unicode="&#xe014;" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
51
+ <glyph unicode="&#xe015;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
52
+ <glyph unicode="&#xe016;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
53
+ <glyph unicode="&#xe017;" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
54
+ <glyph unicode="&#xe018;" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
55
+ <glyph unicode="&#xe019;" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
56
+ <glyph unicode="&#xe020;" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
57
+ <glyph unicode="&#xe021;" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
58
+ <glyph unicode="&#xe022;" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
59
+ <glyph unicode="&#xe023;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
60
+ <glyph unicode="&#xe024;" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
61
+ <glyph unicode="&#xe025;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
62
+ <glyph unicode="&#xe026;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
63
+ <glyph unicode="&#xe027;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
64
+ <glyph unicode="&#xe028;" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
65
+ <glyph unicode="&#xe029;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
66
+ <glyph unicode="&#xe030;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
67
+ <glyph unicode="&#xe031;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
68
+ <glyph unicode="&#xe032;" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
69
+ <glyph unicode="&#xe033;" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
70
+ <glyph unicode="&#xe034;" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
71
+ <glyph unicode="&#xe035;" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
72
+ <glyph unicode="&#xe036;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
73
+ <glyph unicode="&#xe037;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
74
+ <glyph unicode="&#xe038;" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
75
+ <glyph unicode="&#xe039;" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
76
+ <glyph unicode="&#xe040;" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
77
+ <glyph unicode="&#xe041;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
78
+ <glyph unicode="&#xe042;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
79
+ <glyph unicode="&#xe043;" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
80
+ <glyph unicode="&#xe044;" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
81
+ <glyph unicode="&#xe045;" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
82
+ <glyph unicode="&#xe046;" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
83
+ <glyph unicode="&#xe047;" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
84
+ <glyph unicode="&#xe048;" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
85
+ <glyph unicode="&#xe049;" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
86
+ <glyph unicode="&#xe050;" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
87
+ <glyph unicode="&#xe051;" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
88
+ <glyph unicode="&#xe052;" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
89
+ <glyph unicode="&#xe053;" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
90
+ <glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
91
+ <glyph unicode="&#xe055;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
92
+ <glyph unicode="&#xe056;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
93
+ <glyph unicode="&#xe057;" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
94
+ <glyph unicode="&#xe058;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
95
+ <glyph unicode="&#xe059;" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
96
+ <glyph unicode="&#xe060;" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
97
+ <glyph unicode="&#xe062;" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
98
+ <glyph unicode="&#xe063;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
99
+ <glyph unicode="&#xe064;" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
100
+ <glyph unicode="&#xe065;" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
101
+ <glyph unicode="&#xe066;" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
102
+ <glyph unicode="&#xe067;" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
103
+ <glyph unicode="&#xe068;" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
104
+ <glyph unicode="&#xe069;" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
105
+ <glyph unicode="&#xe070;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
106
+ <glyph unicode="&#xe071;" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
107
+ <glyph unicode="&#xe072;" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
108
+ <glyph unicode="&#xe073;" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
109
+ <glyph unicode="&#xe074;" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
110
+ <glyph unicode="&#xe075;" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
111
+ <glyph unicode="&#xe076;" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
112
+ <glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
113
+ <glyph unicode="&#xe078;" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
114
+ <glyph unicode="&#xe079;" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
115
+ <glyph unicode="&#xe080;" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
116
+ <glyph unicode="&#xe081;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
117
+ <glyph unicode="&#xe082;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
118
+ <glyph unicode="&#xe083;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
119
+ <glyph unicode="&#xe084;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
120
+ <glyph unicode="&#xe085;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
121
+ <glyph unicode="&#xe086;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
122
+ <glyph unicode="&#xe087;" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
123
+ <glyph unicode="&#xe088;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
124
+ <glyph unicode="&#xe089;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
125
+ <glyph unicode="&#xe090;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
126
+ <glyph unicode="&#xe091;" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
127
+ <glyph unicode="&#xe092;" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
128
+ <glyph unicode="&#xe093;" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
129
+ <glyph unicode="&#xe094;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
130
+ <glyph unicode="&#xe095;" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
131
+ <glyph unicode="&#xe096;" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
132
+ <glyph unicode="&#xe097;" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
133
+ <glyph unicode="&#xe101;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
134
+ <glyph unicode="&#xe102;" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
135
+ <glyph unicode="&#xe103;" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
136
+ <glyph unicode="&#xe104;" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
137
+ <glyph unicode="&#xe105;" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
138
+ <glyph unicode="&#xe106;" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
139
+ <glyph unicode="&#xe107;" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
140
+ <glyph unicode="&#xe108;" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
141
+ <glyph unicode="&#xe109;" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
142
+ <glyph unicode="&#xe110;" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
143
+ <glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
144
+ <glyph unicode="&#xe112;" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
145
+ <glyph unicode="&#xe113;" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
146
+ <glyph unicode="&#xe114;" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
147
+ <glyph unicode="&#xe115;" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
148
+ <glyph unicode="&#xe116;" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
149
+ <glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
150
+ <glyph unicode="&#xe118;" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
151
+ <glyph unicode="&#xe119;" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
152
+ <glyph unicode="&#xe120;" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
153
+ <glyph unicode="&#xe121;" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
154
+ <glyph unicode="&#xe122;" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
155
+ <glyph unicode="&#xe123;" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
156
+ <glyph unicode="&#xe124;" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
157
+ <glyph unicode="&#xe125;" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
158
+ <glyph unicode="&#xe126;" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
159
+ <glyph unicode="&#xe127;" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
160
+ <glyph unicode="&#xe128;" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
161
+ <glyph unicode="&#xe129;" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
162
+ <glyph unicode="&#xe130;" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
163
+ <glyph unicode="&#xe131;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
164
+ <glyph unicode="&#xe132;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
165
+ <glyph unicode="&#xe133;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
166
+ <glyph unicode="&#xe134;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
167
+ <glyph unicode="&#xe135;" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
168
+ <glyph unicode="&#xe136;" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
169
+ <glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
170
+ <glyph unicode="&#xe138;" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
171
+ <glyph unicode="&#xe139;" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
172
+ <glyph unicode="&#xe140;" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
173
+ <glyph unicode="&#xe141;" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
174
+ <glyph unicode="&#xe142;" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
175
+ <glyph unicode="&#xe143;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
176
+ <glyph unicode="&#xe144;" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
177
+ <glyph unicode="&#xe145;" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
178
+ <glyph unicode="&#xe146;" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
179
+ <glyph unicode="&#xe148;" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
180
+ <glyph unicode="&#xe149;" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
181
+ <glyph unicode="&#xe150;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
182
+ <glyph unicode="&#xe151;" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
183
+ <glyph unicode="&#xe152;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
184
+ <glyph unicode="&#xe153;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
185
+ <glyph unicode="&#xe154;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
186
+ <glyph unicode="&#xe155;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
187
+ <glyph unicode="&#xe156;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
188
+ <glyph unicode="&#xe157;" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
189
+ <glyph unicode="&#xe158;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
190
+ <glyph unicode="&#xe159;" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
191
+ <glyph unicode="&#xe160;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
192
+ <glyph unicode="&#xe161;" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
193
+ <glyph unicode="&#xe162;" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
194
+ <glyph unicode="&#xe163;" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
195
+ <glyph unicode="&#xe164;" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
196
+ <glyph unicode="&#xe165;" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
197
+ <glyph unicode="&#xe166;" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
198
+ <glyph unicode="&#xe167;" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
199
+ <glyph unicode="&#xe168;" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
200
+ <glyph unicode="&#xe169;" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
201
+ <glyph unicode="&#xe170;" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
202
+ <glyph unicode="&#xe171;" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
203
+ <glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
204
+ <glyph unicode="&#xe173;" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
205
+ <glyph unicode="&#xe174;" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
206
+ <glyph unicode="&#xe175;" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
207
+ <glyph unicode="&#xe176;" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
208
+ <glyph unicode="&#xe177;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
209
+ <glyph unicode="&#xe178;" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
210
+ <glyph unicode="&#xe179;" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
211
+ <glyph unicode="&#xe180;" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
212
+ <glyph unicode="&#xe181;" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
213
+ <glyph unicode="&#xe182;" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
214
+ <glyph unicode="&#xe183;" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
215
+ <glyph unicode="&#xe184;" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
216
+ <glyph unicode="&#xe185;" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
217
+ <glyph unicode="&#xe186;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
218
+ <glyph unicode="&#xe187;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
219
+ <glyph unicode="&#xe188;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
220
+ <glyph unicode="&#xe189;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
221
+ <glyph unicode="&#xe190;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
222
+ <glyph unicode="&#xe191;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
223
+ <glyph unicode="&#xe192;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
224
+ <glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
225
+ <glyph unicode="&#xe194;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
226
+ <glyph unicode="&#xe195;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
227
+ <glyph unicode="&#xe197;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
228
+ <glyph unicode="&#xe198;" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
229
+ <glyph unicode="&#xe199;" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
230
+ <glyph unicode="&#xe200;" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
231
+ <glyph unicode="&#xe201;" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
232
+ <glyph unicode="&#xe202;" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
233
+ <glyph unicode="&#xe203;" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
234
+ <glyph unicode="&#xe204;" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
235
+ <glyph unicode="&#xe205;" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
236
+ <glyph unicode="&#xe206;" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
237
+ <glyph unicode="&#xe209;" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
238
+ <glyph unicode="&#xe210;" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
239
+ <glyph unicode="&#xe211;" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
240
+ <glyph unicode="&#xe212;" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
241
+ <glyph unicode="&#xe213;" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
242
+ <glyph unicode="&#xe214;" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
243
+ <glyph unicode="&#xe215;" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
244
+ <glyph unicode="&#xe216;" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
245
+ <glyph unicode="&#xe218;" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
246
+ <glyph unicode="&#xe219;" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
247
+ <glyph unicode="&#xe221;" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
248
+ <glyph unicode="&#xe223;" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
249
+ <glyph unicode="&#xe224;" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
250
+ <glyph unicode="&#xe225;" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
251
+ <glyph unicode="&#xe226;" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
252
+ <glyph unicode="&#xe227;" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
253
+ <glyph unicode="&#xe230;" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
254
+ <glyph unicode="&#xe231;" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
255
+ <glyph unicode="&#xe232;" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
256
+ <glyph unicode="&#xe233;" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
257
+ <glyph unicode="&#xe234;" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
258
+ <glyph unicode="&#xe235;" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
259
+ <glyph unicode="&#xe236;" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
260
+ <glyph unicode="&#xe237;" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
261
+ <glyph unicode="&#xe238;" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
262
+ <glyph unicode="&#xe239;" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
263
+ <glyph unicode="&#xe240;" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
264
+ <glyph unicode="&#xe241;" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
265
+ <glyph unicode="&#xe242;" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
266
+ <glyph unicode="&#xe243;" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
267
+ <glyph unicode="&#xe244;" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
268
+ <glyph unicode="&#xe245;" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
269
+ <glyph unicode="&#xe246;" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
270
+ <glyph unicode="&#xe247;" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
271
+ <glyph unicode="&#xe248;" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
272
+ <glyph unicode="&#xe249;" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
273
+ <glyph unicode="&#xe250;" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
274
+ <glyph unicode="&#xe251;" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
275
+ <glyph unicode="&#xe252;" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
276
+ <glyph unicode="&#xe253;" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
277
+ <glyph unicode="&#xe254;" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
278
+ <glyph unicode="&#xe255;" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
279
+ <glyph unicode="&#xe256;" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
280
+ <glyph unicode="&#xe257;" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
281
+ <glyph unicode="&#xe258;" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
282
+ <glyph unicode="&#xe259;" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
283
+ <glyph unicode="&#xe260;" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
284
+ <glyph unicode="&#xf8ff;" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
285
+ <glyph unicode="&#x1f511;" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
286
+ <glyph unicode="&#x1f6aa;" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
287
+ </font>
288
+ </defs></svg>
admin/assets/fonts/glyphicons-halflings-regular.ttf ADDED
Binary file
admin/assets/fonts/glyphicons-halflings-regular.woff ADDED
Binary file
admin/assets/fonts/glyphicons-halflings-regular.woff2 ADDED
Binary file
admin/assets/img/index.php ADDED
File without changes
admin/assets/img/wp_rls_delete_form_img.png ADDED
Binary file
admin/assets/img/wp_rls_edit_form_img.png ADDED
Binary file
admin/assets/img/wp_rls_preview_slider_img.png.png ADDED
Binary file
admin/assets/img/wp_smf_delete_form_img.png ADDED
Binary file
admin/assets/img/wp_smf_edit_form_img.png ADDED
Binary file
admin/assets/img/wp_smf_preview_slider_img.png.png ADDED
Binary file
admin/assets/index.php ADDED
File without changes
admin/assets/js/backbone.min.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ (function(t){var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,n){e.Backbone=t(e,n,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore"),r;try{r=require("jquery")}catch(n){}t(e,exports,i,r)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,r){var n=t.Backbone;var s=Array.prototype.slice;e.VERSION="1.3.2";e.$=r;e.noConflict=function(){t.Backbone=n;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],o(t,this),n)};case 4:return function(t,n,s){return i[e](this[r],o(t,this),n,s)};default:return function(){var t=s.call(arguments);t.unshift(this[r]);return i[e].apply(i,t)}}};var h=function(t,e,r){i.each(e,function(e,n){if(i[n])t.prototype[n]=a(e,n,r)})};var o=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return u(t);if(i.isString(t))return function(e){return e.get(t)};return t};var u=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var l=e.Events={};var c=/\s+/;var f=function(t,e,r,n,s){var a=0,h;if(r&&typeof r==="object"){if(n!==void 0&&"context"in s&&s.context===void 0)s.context=n;for(h=i.keys(r);a<h.length;a++){e=f(t,e,h[a],r[h[a]],s)}}else if(r&&c.test(r)){for(h=r.split(c);a<h.length;a++){e=t(e,h[a],n,s)}}else{e=t(e,r,n,s)}return e};l.on=function(t,e,i){return d(this,t,e,i)};var d=function(t,e,i,r,n){t._events=f(v,t._events||{},e,i,{context:r,ctx:t,listening:n});if(n){var s=t._listeners||(t._listeners={});s[n.id]=n}return t};l.listenTo=function(t,e,r){if(!t)return this;var n=t._listenId||(t._listenId=i.uniqueId("l"));var s=this._listeningTo||(this._listeningTo={});var a=s[n];if(!a){var h=this._listenId||(this._listenId=i.uniqueId("l"));a=s[n]={obj:t,objId:n,id:h,listeningTo:s,count:0}}d(t,e,r,this,a);return this};var v=function(t,e,i,r){if(i){var n=t[e]||(t[e]=[]);var s=r.context,a=r.ctx,h=r.listening;if(h)h.count++;n.push({callback:i,context:s,ctx:s||a,listening:h})}return t};l.off=function(t,e,i){if(!this._events)return this;this._events=f(g,this._events,t,e,{context:i,listeners:this._listeners});return this};l.stopListening=function(t,e,r){var n=this._listeningTo;if(!n)return this;var s=t?[t._listenId]:i.keys(n);for(var a=0;a<s.length;a++){var h=n[s[a]];if(!h)break;h.obj.off(e,r,this)}return this};var g=function(t,e,r,n){if(!t)return;var s=0,a;var h=n.context,o=n.listeners;if(!e&&!r&&!h){var u=i.keys(o);for(;s<u.length;s++){a=o[u[s]];delete o[a.id];delete a.listeningTo[a.objId]}return}var l=e?[e]:i.keys(t);for(;s<l.length;s++){e=l[s];var c=t[e];if(!c)break;var f=[];for(var d=0;d<c.length;d++){var v=c[d];if(r&&r!==v.callback&&r!==v.callback._callback||h&&h!==v.context){f.push(v)}else{a=v.listening;if(a&&--a.count===0){delete o[a.id];delete a.listeningTo[a.objId]}}}if(f.length){t[e]=f}else{delete t[e]}}return t};l.once=function(t,e,r){var n=f(p,{},t,e,i.bind(this.off,this));return this.on(n,e,r)};l.listenToOnce=function(t,e,r){var n=f(p,{},e,r,i.bind(this.stopListening,this,t));return this.listenTo(t,n)};var p=function(t,e,r,n){if(r){var s=t[e]=i.once(function(){n(e,s);r.apply(this,arguments)});s._callback=r}return t};l.trigger=function(t){if(!this._events)return this;var e=Math.max(0,arguments.length-1);var i=Array(e);for(var r=0;r<e;r++)i[r]=arguments[r+1];f(m,this._events,t,void 0,i);return this};var m=function(t,e,i,r){if(t){var n=t[e];var s=t.all;if(n&&s)s=s.slice();if(n)_(n,r);if(s)_(s,[e].concat(r))}return t};var _=function(t,e){var i,r=-1,n=t.length,s=e[0],a=e[1],h=e[2];switch(e.length){case 0:while(++r<n)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<n)(i=t[r]).callback.call(i.ctx,s);return;case 2:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a);return;case 3:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a,h);return;default:while(++r<n)(i=t[r]).callback.apply(i.ctx,e);return}};l.bind=l.on;l.unbind=l.off;i.extend(e,l);var y=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId(this.cidPrefix);this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};var n=i.result(this,"defaults");r=i.defaults(i.extend({},n,r),n);this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(y.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(t==null)return this;var n;if(typeof t==="object"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;var s=r.unset;var a=r.silent;var h=[];var o=this._changing;this._changing=true;if(!o){this._previousAttributes=i.clone(this.attributes);this.changed={}}var u=this.attributes;var l=this.changed;var c=this._previousAttributes;for(var f in n){e=n[f];if(!i.isEqual(u[f],e))h.push(f);if(!i.isEqual(c[f],e)){l[f]=e}else{delete l[f]}s?delete u[f]:u[f]=e}if(this.idAttribute in n)this.id=this.get(this.idAttribute);if(!a){if(h.length)this._pending=r;for(var d=0;d<h.length;d++){this.trigger("change:"+h[d],this,u[h[d]],r)}}if(o)return this;if(!a){while(this._pending){r=this._pending;this._pending=false;this.trigger("change",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e=this._changing?this._previousAttributes:this.attributes;var r={};for(var n in t){var s=t[n];if(i.isEqual(e[n],s))continue;r[n]=s}return i.size(r)?r:false},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:true},t);var e=this;var r=t.success;t.success=function(i){var n=t.parse?e.parse(i,t):i;if(!e.set(n,t))return false;if(r)r.call(t.context,e,i,t);e.trigger("sync",e,i,t)};B(this,t);return this.sync("read",this,t)},save:function(t,e,r){var n;if(t==null||typeof t==="object"){n=t;r=e}else{(n={})[t]=e}r=i.extend({validate:true,parse:true},r);var s=r.wait;if(n&&!s){if(!this.set(n,r))return false}else if(!this._validate(n,r)){return false}var a=this;var h=r.success;var o=this.attributes;r.success=function(t){a.attributes=o;var e=r.parse?a.parse(t,r):t;if(s)e=i.extend({},n,e);if(e&&!a.set(e,r))return false;if(h)h.call(r.context,a,t,r);a.trigger("sync",a,t,r)};B(this,r);if(n&&s)this.attributes=i.extend({},o,n);var u=this.isNew()?"create":r.patch?"patch":"update";if(u==="patch"&&!r.attrs)r.attrs=n;var l=this.sync(u,this,r);this.attributes=o;return l},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var n=t.wait;var s=function(){e.stopListening();e.trigger("destroy",e,e.collection,t)};t.success=function(i){if(n)s();if(r)r.call(t.context,e,i,t);if(!e.isNew())e.trigger("sync",e,i,t)};var a=false;if(this.isNew()){i.defer(t.success)}else{B(this,t);a=this.sync("delete",this,t)}if(!n)s();return a},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||F();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger("invalid",this,r,i.extend(e,{validationError:r}));return false}});var b={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};h(y,b,"attributes");var x=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var w={add:true,remove:true,merge:true};var E={add:true,remove:false};var I=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var r=Array(t.length-i);var n=e.length;var s;for(s=0;s<r.length;s++)r[s]=t[s+i];for(s=0;s<n;s++)t[s+i]=e[s];for(s=0;s<r.length;s++)t[s+n+i]=r[s]};i.extend(x.prototype,l,{model:y,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,E))},remove:function(t,e){e=i.extend({},e);var r=!i.isArray(t);t=r?[t]:t.slice();var n=this._removeModels(t,e);if(!e.silent&&n.length){e.changes={added:[],merged:[],removed:n};this.trigger("update",this,e)}return r?n[0]:n},set:function(t,e){if(t==null)return;e=i.extend({},w,e);if(e.parse&&!this._isModel(t)){t=this.parse(t,e)||[]}var r=!i.isArray(t);t=r?[t]:t.slice();var n=e.at;if(n!=null)n=+n;if(n>this.length)n=this.length;if(n<0)n+=this.length+1;var s=[];var a=[];var h=[];var o=[];var u={};var l=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&n==null&&e.sort!==false;var g=i.isString(this.comparator)?this.comparator:null;var p,m;for(m=0;m<t.length;m++){p=t[m];var _=this.get(p);if(_){if(c&&p!==_){var y=this._isModel(p)?p.attributes:p;if(e.parse)y=_.parse(y,e);_.set(y,e);h.push(_);if(v&&!d)d=_.hasChanged(g)}if(!u[_.cid]){u[_.cid]=true;s.push(_)}t[m]=_}else if(l){p=t[m]=this._prepareModel(p,e);if(p){a.push(p);this._addReference(p,e);u[p.cid]=true;s.push(p)}}}if(f){for(m=0;m<this.length;m++){p=this.models[m];if(!u[p.cid])o.push(p)}if(o.length)this._removeModels(o,e)}var b=false;var x=!v&&l&&f;if(s.length&&x){b=this.length!==s.length||i.some(this.models,function(t,e){return t!==s[e]});this.models.length=0;I(this.models,s,0);this.length=this.models.length}else if(a.length){if(v)d=true;I(this.models,a,n==null?this.length:n);this.length=this.models.length}if(d)this.sort({silent:true});if(!e.silent){for(m=0;m<a.length;m++){if(n!=null)e.index=n+m;p=a[m];p.trigger("add",p,this,e)}if(d||b)this.trigger("sort",this,e);if(a.length||o.length||h.length){e.changes={added:a,removed:o,merged:h};this.trigger("update",this,e)}}return r?t[0]:t},reset:function(t,e){e=e?i.clone(e):{};for(var r=0;r<this.models.length;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger("reset",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return this.get(t)!=null},at:function(t){if(t<0)t+=this.length;return this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,true)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;if(i.isFunction(e))e=i.bind(e,this);if(r===1||i.isString(e)){this.models=this.sortBy(e)}else{this.models.sort(e)}if(!t.silent)this.trigger("sort",this,t);return this},pluck:function(t){return this.map(t+"")},fetch:function(t){t=i.extend({parse:true},t);var e=t.success;var r=this;t.success=function(i){var n=t.reset?"reset":"set";r[n](i,t);if(e)e.call(t.context,r,i,t);r.trigger("sync",r,i,t)};B(this,t);return this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};var r=e.wait;t=this._prepareModel(t,e);if(!t)return false;if(!r)this.add(t,e);var n=this;var s=e.success;e.success=function(t,e,i){if(r)n.add(t,i);if(s)s.call(i.context,t,e,i)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(this._isModel(t)){if(!t.collection)t.collection=this;return t}e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger("invalid",this,r.validationError,e);return false},_removeModels:function(t,e){var i=[];for(var r=0;r<t.length;r++){var n=this.get(t[r]);if(!n)continue;var s=this.indexOf(n);this.models.splice(s,1);this.length--;delete this._byId[n.cid];var a=this.modelId(n.attributes);if(a!=null)delete this._byId[a];if(!e.silent){e.index=s;n.trigger("remove",n,this,e)}i.push(n);this._removeReference(n,e)}return i},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);if(i!=null)this._byId[i]=t;t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);if(i!=null)delete this._byId[i];if(this===t.collection)delete t.collection;t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if(e){if((t==="add"||t==="remove")&&i!==this)return;if(t==="destroy")this.remove(e,r);if(t==="change"){var n=this.modelId(e.previousAttributes());var s=this.modelId(e.attributes);if(n!==s){if(n!=null)delete this._byId[n];if(s!=null)this._byId[s]=e}}}this.trigger.apply(this,arguments)}});var S={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};h(x,S,"models");var k=e.View=function(t){this.cid=i.uniqueId("view");i.extend(this,i.pick(t,P));this._ensureElement();this.initialize.apply(this,arguments)};var T=/^(\S+)\s*(.*)$/;var P=["model","collection","el","id","attributes","className","tagName","events"];i.extend(k.prototype,l,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this._removeElement();this.stopListening();return this},_removeElement:function(){this.$el.remove()},setElement:function(t){this.undelegateEvents();this._setElement(t);this.delegateEvents();return this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0]},delegateEvents:function(t){t||(t=i.result(this,"events"));if(!t)return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[r];if(!r)continue;var n=e.match(T);this.delegate(n[1],n[2],i.bind(r,this))}return this},delegate:function(t,e,i){this.$el.on(t+".delegateEvents"+this.cid,e,i);return this},undelegateEvents:function(){if(this.$el)this.$el.off(".delegateEvents"+this.cid);return this},undelegate:function(t,e,i){this.$el.off(t+".delegateEvents"+this.cid,e,i);return this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,"attributes"));if(this.id)t.id=i.result(this,"id");if(this.className)t["class"]=i.result(this,"className");this.setElement(this._createElement(i.result(this,"tagName")));this._setAttributes(t)}else{this.setElement(i.result(this,"el"))}},_setAttributes:function(t){this.$el.attr(t)}});e.sync=function(t,r,n){var s=H[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:s,dataType:"json"};if(!n.url){a.url=i.result(r,"url")||F()}if(n.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(n.attrs||r.toJSON(n))}if(n.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(n.emulateHTTP&&(s==="PUT"||s==="DELETE"||s==="PATCH")){a.type="POST";if(n.emulateJSON)a.data._method=s;var h=n.beforeSend;n.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",s);if(h)return h.apply(this,arguments)}}if(a.type!=="GET"&&!n.emulateJSON){a.processData=false}var o=n.error;n.error=function(t,e,i){n.textStatus=e;n.errorThrown=i;if(o)o.call(n.context,t,e,i)};var u=n.xhr=e.ajax(i.extend(a,n));r.trigger("request",r,u,n);return u};var H={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var A=/\((.*?)\)/g;var C=/(\(\?)?:\w+/g;var R=/\*\w+/g;var j=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,l,{initialize:function(){},route:function(t,r,n){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){n=r;r=""}if(!n)n=this[r];var s=this;e.history.route(t,function(i){var a=s._extractParameters(t,i);if(s.execute(n,a,r)!==false){s.trigger.apply(s,["route:"+r].concat(a));s.trigger("route",r,a);e.history.trigger("route",s,r,a)}});return this},execute:function(t,e,i){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(j,"\\$&").replace(A,"(?:$1)?").replace(C,function(t,e){return e?t:"([^/?]+)"}).replace(R,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];this.checkUrl=i.bind(this.checkUrl,this);if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var M=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var U=/#.*$/;N.started=false;i.extend(N.prototype,l,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname);var e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return t.charAt(0)==="/"?t.slice(1):t},getFragment:function(t){if(t==null){if(this._usePushState||!this._wantsHashChange){t=this.getPath()}else{t=this.getHash()}}return t.replace(M,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=("/"+this.root+"/").replace(O,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";this.location.replace(e+"#"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe");this.iframe.src="javascript:0";this.iframe.style.display="none";this.iframe.tabIndex=-1;var r=document.body;var n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open();n.document.close();n.location.hash="#"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState){s("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s("hashchange",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};if(this._usePushState){t("popstate",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t("hashchange",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||"");var i=this.root;if(t===""||t.charAt(0)==="?"){i=i.slice(0,-1)||"/"}var r=i+t;t=this.decodeFragment(t.replace(U,""));if(this.fragment===t)return;this.fragment=t;if(this._usePushState){this.history[e.replace?"replaceState":"pushState"]({},document.title,r)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;if(!e.replace){n.document.open();n.document.close()}this._updateHash(n.location,t,e.replace)}}else{return this.location.assign(r)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else{t.hash="#"+e}}});e.history=new N;var q=function(t,e){var r=this;var n;if(t&&i.has(t,"constructor")){n=t.constructor}else{n=function(){return r.apply(this,arguments)}}i.extend(n,r,e);n.prototype=i.create(r.prototype,t);n.prototype.constructor=n;n.__super__=r.prototype;return n};y.extend=x.extend=$.extend=k.extend=N.extend=q;var F=function(){throw new Error('A "url" property or function must be specified')};var B=function(t,e){var i=e.error;e.error=function(r){if(i)i.call(e.context,t,r,e);t.trigger("error",t,r,e)}};return e});
2
+ //# sourceMappingURL=backbone-min.map
3
+ /*!
4
+ * Backbone.CollectionView, v1.1.0
5
+ * Copyright (c)2013 Rotunda Software, LLC.
6
+ * Distributed under MIT license
7
+ * http://github.com/rotundasoftware/backbone-collection-view
8
+ */
9
+
10
+ !function(a,b){"function"==typeof define&&define.amd?define(["underscore","backbone","jquery"],b):"undefined"!=typeof exports?module.exports=b(require("underscore"),require("backbone"),require("backbone").$):b(a._,a.Backbone,a.jQuery||a.Zepto||a.$)}(this,function(a,b,c){function d(b){var c=[];if(!a.isArray(b))throw new Error("Option declarations must be an array.");return a.each(b,function(b){var d,e,f;if(e=!1,f=void 0,a.isString(b))d=b;else{if(!a.isObject(b))throw new Error("Each element in the option declarations array must be either a string or an object.");d=a.first(a.keys(b)),f=a.clone(b[d])}"!"===d[d.length-1]&&(e=!0,d=d.slice(0,d.length-1)),c.push({name:d,required:e,defaultValue:f})}),c}var e=b.View,f="model",g=["collection","modelView","modelViewOptions","itemTemplate","itemTemplateFunction","detachedRendering"],h={background:"transparent",border:"none","box-shadow":"none"};return b.CollectionView=b.View.extend({tagName:"ul",events:{"mousedown > li, tbody > tr > td":"_listItem_onMousedown","dblclick > li, tbody > tr > td":"_listItem_onDoubleClick",click:"_listBackground_onClick","click ul.collection-view, table.collection-view":"_listBackground_onClick",keydown:"_onKeydown"},spawnMessages:{focus:"focus"},passMessages:{"*":"."},initializationOptions:[{collection:null},{modelView:null},{modelViewOptions:{}},{itemTemplate:null},{itemTemplateFunction:null},{selectable:!0},{clickToSelect:!0},{selectableModelsFilter:null},{visibleModelsFilter:null},{sortableModelsFilter:null},{selectMultiple:!1},{clickToToggle:!1},{processKeyEvents:!0},{sortable:!1},{sortableOptions:null},{reuseModelViews:!0},{detachedRendering:!1},{emptyListCaption:null}],initialize:function(a){b.ViewOptions.add(this,"initializationOptions"),this.setOptions(a),this.collection||(this.collection=new b.Collection),this._hasBeenRendered=!1,this._isBackboneCourierAvailable()&&b.Courier.add(this),this.$el.data("view",this),this.$el.addClass("collection-view collection-list"),this.selectable&&this.$el.addClass("selectable"),this.processKeyEvents&&this.$el.attr("tabindex",0),this.selectedItems=[],this._updateItemTemplate(),this.collection&&this._registerCollectionEvents(),this.viewManager=new ChildViewContainer},onOptionsChanged:function(b,c){var d=this,e=!1;a.each(a.keys(b),function(f){var h=b[f],i=c[f];switch(f){case"collection":h!==i&&(d.stopListening(i),d._registerCollectionEvents());break;case"selectMultiple":!h&&d.selectedItems.length>1&&d.setSelectedModel(a.first(d.selectedItems),{by:"cid"});break;case"selectable":!h&&d.selectedItems.length>0&&d.setSelectedModels([]);break;case"sortable":b.sortable?d._setupSortable():d.$el.sortable("destroy");break;case"selectableModelsFilter":d.reapplyFilter("selectableModels");break;case"sortableOptions":d.$el.sortable("destroy"),d._setupSortable();break;case"sortableModelsFilter":d.reapplyFilter("sortableModels");break;case"visibleModelsFilter":d.reapplyFilter("visibleModels");break;case"itemTemplate":d._updateItemTemplate();break;case"processKeyEvents":h&&d.$el.attr("tabindex",0);break;case"modelView":d.viewManager.each(function(a){d.viewManager.remove(a),a.remove()})}a.contains(g,f)&&(e=!0)}),this._hasBeenRendered&&e&&this.render()},setOption:function(a,b){var c={};c[a]=b,this.setOptions(c)},getSelectedModel:function(b){return this.selectedItems.length?a.first(this.getSelectedModels(b)):null},getSelectedModels:function(b){var d=this;b=a.extend({},{by:f},b);var e=b.by,g=[];switch(e){case"id":a.each(this.selectedItems,function(a){g.push(d.collection.get(a).id)});break;case"cid":g=g.concat(this.selectedItems);break;case"offset":var h=0,i=this._getVisibleItemEls();i.each(function(){var a=c(this);a.is(".selected")&&g.push(h),h++});break;case"model":a.each(this.selectedItems,function(a){g.push(d.collection.get(a))});break;case"view":a.each(this.selectedItems,function(a){g.push(d.viewManager.findByModel(d.collection.get(a)))});break;default:throw new Error("Invalid referenceBy option: "+e)}return g},setSelectedModels:function(b,d){if(!a.isArray(b))throw"Invalid parameter value";if(this.selectable||!(b.length>0)){d=a.extend({},{silent:!1,by:f},d);var e=d.by,g=[];switch(e){case"cid":g=b;break;case"id":this.collection.each(function(c){a.contains(b,c.id)&&g.push(c.cid)});break;case"model":g=a.pluck(b,"cid");break;case"view":a.each(b,function(a){g.push(a.model.cid)});break;case"offset":var h=0,i=this._getVisibleItemEls();i.each(function(){var d=c(this);a.contains(b,h)&&g.push(d.attr("data-model-cid")),h++});break;default:throw new Error("Invalid referenceBy option: "+e)}var j=this.getSelectedModels(),k=a.clone(this.selectedItems);this.selectedItems=this._convertStringsToInts(g),this._validateSelection();var l=this.getSelectedModels();this._containSameElements(k,this.selectedItems)||(this._addSelectedClassToSelectedItems(k),d.silent||(this._isBackboneCourierAvailable()?this.spawn("selectionChanged",{selectedModels:l,oldSelectedModels:j}):this.trigger("selectionChanged",l,j)),this.updateDependentControls())}},setSelectedModel:function(a,b){a||0===a?this.setSelectedModels([a],b):this.setSelectedModels([],b)},render:function(){this._hasBeenRendered=!0,this.selectable&&this._saveSelection();var b;b=this._getContainerEl();var c=this.viewManager;this.viewManager=new ChildViewContainer,c.each(function(a){this.reuseModelViews&&this.collection.get(a.model.cid)?a.$el.detach():a.remove()},this),b.empty();var d;this.detachedRendering&&(d=document.createDocumentFragment()),this.collection.each(function(e){var f=c.findByModelCid(e.cid);(!this.reuseModelViews||a.isUndefined(f))&&(f=this._createNewModelView(e,this._getModelViewOptions(e))),this._insertAndRenderModelView(f,d||b)},this),this.detachedRendering&&b.append(d),this.sortable&&this._setupSortable(),this._showEmptyListCaptionIfAppropriate(),this._isBackboneCourierAvailable()?this.spawn("render"):this.trigger("render"),this.selectable&&(this._restoreSelection(),this.updateDependentControls()),this.forceRerenderOnNextSortEvent=!1},_showEmptyListCaptionIfAppropriate:function(){if(this._removeEmptyListCaption(),this.emptyListCaption){var b=this._getVisibleItemEls();if(0===b.length){var d;d=a.isFunction(this.emptyListCaption)?this.emptyListCaption():this.emptyListCaption;var e,f=c("<var class='empty-list-caption'>"+d+"</var>");e=this._isRenderedAsList()?f.wrapAll("<li class='not-sortable'></li>").parent().css(h):f.wrapAll("<tr class='not-sortable'><td colspan='1000'></td></tr>").parent().parent().css(h),this._getContainerEl().append(e)}}},_removeEmptyListCaption:function(){this._isRenderedAsList()?this._getContainerEl().find("> li > var.empty-list-caption").parent().remove():this._getContainerEl().find("> tr > td > var.empty-list-caption").parent().parent().remove()},_insertAndRenderModelView:function(b,c,d){var e=this._wrapModelView(b);if(11===c.nodeType)c.appendChild(e.get(0));else{var f=c.children().length;!a.isUndefined(d)&&d>=0&&f>d?c.children().eq(d).before(e):(!a.isUndefined(d)&&d>f&&(this.forceRerenderOnNextSortEvent=!0),c.append(e))}var g=b.render();g===!1&&(e.hide(),e.addClass("not-visible"));var h=!1;a.isFunction(this.visibleModelsFilter)&&(h=!this.visibleModelsFilter(b.model)),1===e.children().length?e.toggle(!h):b.$el.toggle(!h),e.toggleClass("not-visible",h),!h&&this.emptyListCaption&&this._removeEmptyListCaption(),this.viewManager.add(b)},updateDependentControls:function(){this._isBackboneCourierAvailable()?this.spawn("updateDependentControls",{selectedModels:this.getSelectedModels()}):this.trigger("updateDependentControls",this.getSelectedModels())},remove:function(){this.viewManager.each(function(a){a.remove()}),b.View.prototype.remove.apply(this,arguments)},reapplyFilter:function(b){var c=this;if(!a.contains(["selectableModels","sortableModels","visibleModels"],b))throw new Error("Invalid filter identifier supplied to reapplyFilter: "+b);switch(b){case"visibleModels":c.viewManager.each(function(a){var b=c.visibleModelsFilter&&!c.visibleModelsFilter.call(c,a.model);a.$el.toggleClass("not-visible",b),c._modelViewHasWrapperLI(a)?a.$el.closest("li").toggleClass("not-visible",b).toggle(!b):a.$el.toggle(!b)}),this._showEmptyListCaptionIfAppropriate();break;case"sortableModels":c.$el.sortable("destroy"),c.viewManager.each(function(a){var b=c.sortableModelsFilter&&!c.sortableModelsFilter.call(c,a.model);a.$el.toggleClass("not-sortable",b),c._modelViewHasWrapperLI(a)&&a.$el.closest("li").toggleClass("not-sortable",b)}),c._setupSortable();break;case"selectableModels":c.viewManager.each(function(a){var b=c.selectableModelsFilter&&!c.selectableModelsFilter.call(c,a.model);a.$el.toggleClass("not-selectable",b),c._modelViewHasWrapperLI(a)&&a.$el.closest("li").toggleClass("not-selectable",b)}),c._validateSelection()}},_removeModelView:function(a){this.selectable&&this._saveSelection(),this.viewManager.remove(a),this._modelViewHasWrapperLI(a)&&a.$el.parent().remove(),a.remove(),this.selectable&&this._restoreSelection(),this._showEmptyListCaptionIfAppropriate()},_validateSelectionAndRender:function(){this._validateSelection(),this.render()},_registerCollectionEvents:function(){this.listenTo(this.collection,"add",function(a){var b;this._hasBeenRendered&&(b=this._createNewModelView(a,this._getModelViewOptions(a)),this._insertAndRenderModelView(b,this._getContainerEl(),this.collection.indexOf(a))),this._isBackboneCourierAvailable()?this.spawn("add",b):this.trigger("add",b)}),this.listenTo(this.collection,"remove",function(a){var b;this._hasBeenRendered&&(b=this.viewManager.findByModelCid(a.cid),this._removeModelView(b)),this._isBackboneCourierAvailable()?this.spawn("remove"):this.trigger("remove")}),this.listenTo(this.collection,"reset",function(){this._hasBeenRendered&&this.render(),this._isBackboneCourierAvailable()?this.spawn("reset"):this.trigger("reset")}),this.listenTo(this.collection,"sort",function(a,b){this._hasBeenRendered&&(b.add!==!0||this.forceRerenderOnNextSortEvent)&&this.render(),this._isBackboneCourierAvailable()?this.spawn("sort"):this.trigger("sort")})},_getContainerEl:function(){if(this._isRenderedAsTable()){var a=this.$el.find("> tbody");if(a.length>0)return a}return this.$el},_getClickedItemId:function(a){var b=null,d=c(a.currentTarget);if(d.closest(".collection-view").get(0)===this.$el.get(0)){var e=d.closest("[data-model-cid]");return e.length>0&&(b=e.attr("data-model-cid"),c.isNumeric(b)&&(b=parseInt(b,10))),b}},_updateItemTemplate:function(){var b;if(this.itemTemplate){if(0===c(this.itemTemplate).length)throw"Could not find item template from selector: "+this.itemTemplate;b=c(this.itemTemplate).html()}else b=this.$(".item-template").html();b&&(this.itemTemplateFunction=a.template(b))},_validateSelection:function(){var b=a.pluck(this.collection.models,"cid");this.selectedItems=a.intersection(b,this.selectedItems),a.isFunction(this.selectableModelsFilter)&&(this.selectedItems=a.filter(this.selectedItems,function(a){return this.selectableModelsFilter.call(this,this.collection.get(a))},this))},_saveSelection:function(){if(!this.selectable)throw"Attempt to save selection on non-selectable list";this.savedSelection={items:a.clone(this.selectedItems),offset:this.getSelectedModel({by:"offset"})}},_restoreSelection:function(){if(!this.savedSelection)throw"Attempt to restore selection but no selection has been saved!";this.setSelectedModels([],{silent:!0}),this.savedSelection.items.length>0&&(this.setSelectedModels(this.savedSelection.items,{by:"cid",silent:!0}),0===this.selectedItems.length&&this.setSelectedModel(this.savedSelection.offset,{by:"offset"}),this.selectedItems.length!==this.savedSelection.items.length&&(this._isBackboneCourierAvailable()?this.spawn("selectionChanged",{selectedModels:this.getSelectedModels(),oldSelectedModels:[]}):this.trigger("selectionChanged",this.getSelectedModels(),[]))),delete this.savedSelection},_addSelectedClassToSelectedItems:function(b){a.isUndefined(b)&&(b=[]);var c=b;c=a.without(c,this.selectedItems),a.each(c,function(a){this._getContainerEl().find("[data-model-cid="+a+"]").removeClass("selected"),this._isRenderedAsList()&&this._getContainerEl().find("li[data-model-cid="+a+"] > *").removeClass("selected")},this);var d=this.selectedItems;d=a.without(d,b),a.each(d,function(a){this._getContainerEl().find("[data-model-cid="+a+"]").addClass("selected"),this._isRenderedAsList()&&this._getContainerEl().find("li[data-model-cid="+a+"] > *").addClass("selected")},this)},_reorderCollectionBasedOnHTML:function(){var a=this;this._getContainerEl().children().each(function(){var b=c(this).attr("data-model-cid");if(b){var d=a.collection.get(b);d&&(a.collection.remove(d,{silent:!0}),a.collection.add(d,{silent:!0,sort:!a.collection.comparator}))}}),this._isBackboneCourierAvailable()?this.spawn("reorder"):this.collection.trigger("reorder"),this.collection.comparator&&this.collection.sort()},_getModelViewConstructor:function(a){return this.modelView||e},_getModelViewOptions:function(b){var c=this.modelViewOptions;return a.isFunction(c)&&(c=c(b)),a.extend({model:b},c)},_createNewModelView:function(b,c){var d=this._getModelViewConstructor(b);if(a.isUndefined(d))throw"Could not find modelView constructor for model";var e=new d(c);return e.collectionListView=e.collectionView=this,e},_wrapModelView:function(b){var c,d=this;return this._isRenderedAsTable()?(c=b.$el,b.$el.attr("data-model-cid",b.model.cid)):this._isRenderedAsList()&&(b.$el.is("li")?(c=b.$el,b.$el.attr("data-model-cid",b.model.cid)):c=b.$el.wrapAll("<li data-model-cid='"+b.model.cid+"'></li>").parent()),a.isFunction(this.sortableModelsFilter)&&(this.sortableModelsFilter.call(d,b.model)||(c.addClass("not-sortable"),b.$el.addClass("not-selectable"))),a.isFunction(this.selectableModelsFilter)&&(this.selectableModelsFilter.call(d,b.model)||(c.addClass("not-selectable"),b.$el.addClass("not-selectable"))),c},_convertStringsToInts:function(b){return a.map(b,function(b){if(!a.isString(b))return b;var c=parseInt(b,10);return c==b?c:b})},_containSameElements:function(b,c){if(b.length!=c.length)return!1;var d=a.intersection(b,c).length;return d==b.length},_isRenderedAsTable:function(){return"table"===this.$el.prop("tagName").toLowerCase()},_isRenderedAsList:function(){return!this._isRenderedAsTable()},_modelViewHasWrapperLI:function(a){return this._isRenderedAsList()&&!a.$el.is("li")},_getVisibleItemEls:function(){var a=[];return a=this._getContainerEl().find("> [data-model-cid]:not(.not-visible)")},_charCodes:{upArrow:38,downArrow:40},_isBackboneCourierAvailable:function(){return!a.isUndefined(b.Courier)},_setupSortable:function(){var b=a.extend({axis:"y",distance:10,forcePlaceholderSize:!0,items:this._isRenderedAsTable()?"> tbody > tr:not(.not-sortable)":"> li:not(.not-sortable)",start:a.bind(this._sortStart,this),change:a.bind(this._sortChange,this),stop:a.bind(this._sortStop,this),receive:a.bind(this._receive,this),over:a.bind(this._over,this)},a.result(this,"sortableOptions"));this.$el=this.$el.sortable(b)},_sortStart:function(a,b){var c=this.collection.get(b.item.attr("data-model-cid"));this._isBackboneCourierAvailable()?this.spawn("sortStart",{modelBeingSorted:c}):this.trigger("sortStart",c)},_sortChange:function(a,b){var c=this.collection.get(b.item.attr("data-model-cid"));this._isBackboneCourierAvailable()?this.spawn("sortChange",{modelBeingSorted:c}):this.trigger("sortChange",c)},_sortStop:function(a,b){var c=this.collection.get(b.item.attr("data-model-cid")),d=this._getContainerEl(),e=d.children().index(b.item);-1==e&&c&&this.collection.remove(c),c&&(this._reorderCollectionBasedOnHTML(),this.updateDependentControls(),this._isBackboneCourierAvailable()?this.spawn("sortStop",{modelBeingSorted:c,newIndex:e}):this.trigger("sortStop",c,e))},_receive:function(a,b){var c=b.sender,d=c.data("view");if(d&&d.collection){var e=this._getContainerEl().children().index(b.item),f=d.collection.get(b.item.attr("data-model-cid"));d.collection.remove(f),this.collection.add(f,{at:e}),f.collection=this.collection,this.setSelectedModel(f)}},_over:function(a,b){this._getContainerEl().find("> var.empty-list-caption").hide()},_onKeydown:function(a){if(!this.processKeyEvents)return!0;var b=!1;if(1==this.getSelectedModels({by:"offset"}).length){var c=this.getSelectedModel({by:"offset"});a.which===this._charCodes.upArrow&&0!==c?(this.setSelectedModel(c-1,{by:"offset"}),b=!0):a.which===this._charCodes.downArrow&&c!==this.collection.length-1&&(this.setSelectedModel(c+1,{by:"offset"}),b=!0)}return!b},_listItem_onMousedown:function(b){if(this.selectable&&this.clickToSelect){var c=this._getClickedItemId(b);if(c){if(a.isFunction(this.selectableModelsFilter)&&!this.selectableModelsFilter.call(this,this.collection.get(c)))return;if(this.selectMultiple&&b.shiftKey){var d=-1;this.selectedItems.length>0&&this.collection.find(function(b){return d++,a.contains(this.selectedItems,b.cid)},this);var e=-1;this.collection.find(function(a){return e++,a.cid==c},this);for(var f=-1==d?e:d,g=Math.min(e,f),h=Math.max(e,f),i=[],j=g;h>=j;j++)i.push(this.collection.at(j).cid);if(this.setSelectedModels(i,{by:"cid"}),document.selection&&document.selection.empty)document.selection.empty();else if(window.getSelection){var k=window.getSelection();k&&k.removeAllRanges&&k.removeAllRanges()}}else(this.selectMultiple||a.contains(this.selectedItems,c))&&(this.clickToToggle||b.metaKey||b.ctrlKey)?a.contains(this.selectedItems,c)?this.setSelectedModels(a.without(this.selectedItems,c),{by:"cid"}):this.setSelectedModels(a.union(this.selectedItems,[c]),{by:"cid"}):this.setSelectedModels([c],{by:"cid"})}else this.setSelectedModels([])}},_listItem_onDoubleClick:function(a){var b=this._getClickedItemId(a);if(b){var c=this.collection.get(b);this._isBackboneCourierAvailable()?this.spawn("doubleClick",{clickedModel:c}):this.trigger("doubleClick",c)}},_listBackground_onClick:function(a){this.selectable&&c(a.target).is(".collection-view")&&this.setSelectedModels([])}},{setDefaultModelViewConstructor:function(a){e=a}}),b.ViewOptions={},b.ViewOptions.add=function(b,c){a.isUndefined(c)&&(c="options"),b.setOptions=function(b){var e=this,f={},g={},h=a.result(this,c);if(!a.isUndefined(h)){var i=d(h);a.each(i,function(c){if(thisOptionName=c.name,thisOptionRequired=c.required,thisOptionDefaultValue=c.defaultValue,thisOptionRequired&&(!b||!a.contains(a.keys(b),thisOptionName)&&a.isUndefined(e[thisOptionName])||a.isUndefined(b[thisOptionName])))throw new Error('Required option "'+thisOptionName+'" was not supplied.');b&&thisOptionName in b?(a.isUndefined(e[thisOptionName])||(g[thisOptionName]=e[thisOptionName],f[thisOptionName]=b[thisOptionName]),e[thisOptionName]=b[thisOptionName]):!a.isUndefined(thisOptionDefaultValue)&&a.isUndefined(e[thisOptionName])&&(e[thisOptionName]=thisOptionDefaultValue)})}a.keys(f).length>0&&(a.isFunction(e.onOptionsChanged)?e.onOptionsChanged(f,g):a.isFunction(e._onOptionsChanged)&&e._onOptionsChanged(f,g))},b.getOptions=function(){var b=a.result(this,c);if(a.isUndefined(b))return[];var e=d(b),f=a.pluck(e,"name");return a.pick(this,f)}},ChildViewContainer=function(a,b){var c=function(a){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),b.each(a,this.add,this)};b.extend(c.prototype,{add:function(a,b){var c=a.cid;this._views[c]=a,a.model&&(this._indexByModel[a.model.cid]=c),b&&(this._indexByCustom[b]=c),this._updateLength()},findByModel:function(a){return this.findByModelCid(a.cid)},findByModelCid:function(a){var b=this._indexByModel[a];return this.findByCid(b)},findByCustom:function(a){var b=this._indexByCustom[a];return this.findByCid(b)},findByIndex:function(a){return b.values(this._views)[a]},findByCid:function(a){return this._views[a]},findIndexByCid:function(a){var c=-1,d=b.find(this._views,function(b){return c++,b.model.cid==a?b:void 0});return d?c:-1},remove:function(a){var c=a.cid;a.model&&delete this._indexByModel[a.model.cid],b.any(this._indexByCustom,function(a,b){return a===c?(delete this._indexByCustom[b],!0):void 0},this),delete this._views[c],this._updateLength()},call:function(a){this.apply(a,b.tail(arguments))},apply:function(a,c){b.each(this._views,function(d){b.isFunction(d[a])&&d[a].apply(d,c||[])})},_updateLength:function(){this.length=b.size(this._views)}});var d=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];return b.each(d,function(a){c.prototype[a]=function(){var c=b.values(this._views),d=[c].concat(b.toArray(arguments));return b[a].apply(b,d)}}),c}(b,a),b.CollectionView});
admin/assets/js/bootstrap.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under the MIT license
5
+ */
6
+ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");
7
+ d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
admin/assets/js/entry/datatables.min.js ADDED
@@ -0,0 +1,335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * This combined file was created by the DataTables downloader builder:
3
+ * https://datatables.net/download
4
+ *
5
+ * To rebuild or modify this file with the latest versions of the included
6
+ * software please visit:
7
+ * https://datatables.net/download/#bs-3.3.6/dt-1.10.11,b-1.1.2,b-colvis-1.1.2,b-html5-1.1.2,b-print-1.1.2,cr-1.3.1,se-1.1.2
8
+ *
9
+ * Included libraries:
10
+ * Bootstrap 3.3.6, DataTables 1.10.11, Buttons 1.1.2, Column visibility 1.1.2, HTML5 export 1.1.2, Print view 1.1.2, ColReorder 1.3.1, Select 1.1.2
11
+ */
12
+
13
+ /*!
14
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
15
+ * Copyright 2011-2015 Twitter, Inc.
16
+ * Licensed under the MIT license
17
+ */
18
+ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");
19
+ d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
20
+
21
+ /*!
22
+ DataTables 1.10.11
23
+ ©2008-2015 SpryMedia Ltd - datatables.net/license
24
+ */
25
+ (function(h){"function"===typeof define&&define.amd?define(["jquery"],function(D){return h(D,window,document)}):"object"===typeof exports?module.exports=function(D,I){D||(D=window);I||(I="undefined"!==typeof window?require("jquery"):require("jquery")(D));return h(I,D,D.document)}:h(jQuery,window,document)})(function(h,D,I,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),
26
+ d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function K(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),K(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&E(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&E(a,a,"sZeroRecords","sLoadingRecords");
27
+ a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
28
+ a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&K(m.models.oSearch,a[b])}function fb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;b&&!h.isArray(b)&&(a.aDataSort=[b])}function gb(a){if(!m.__browser){var b={};m.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,
29
+ width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function hb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&
30
+ (g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:I.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);ja(a,d,h(b).data())}function ja(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=
31
+ (e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),K(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),E(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),E(b,c,"aDataSort"));var g=b.mData,j=Q(g),i=b.mRender?Q(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&
32
+ (c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return R(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):
33
+ !a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function U(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&ka(a);u(a,null,"column-sizing",[a])}function Z(a,b){var c=la(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function $(a,b){var c=la(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}
34
+ function aa(a){return h(F(a.aoColumns,"nTh")).filter(":visible").length}function la(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ia(a){var b=a.aoColumns,c=a.aoData,d=m.ext.type.detect,e,f,g,j,i,h,l,q,t;e=0;for(f=b.length;e<f;e++)if(l=b[e],t=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){t[i]===k&&(t[i]=B(a,i,e,"type"));q=d[g](t[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=
35
+ q;break}}l.sType||(l.sType="string")}}function ib(a,b,c,d){var e,f,g,j,i,n,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var q=n.targets!==k?n.targets:n.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ga(a);d(q[f],n)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}
36
+ function N(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ja(a,e,c,d);return e}function ma(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ka(a,e);return N(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,
37
+ i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(L(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function jb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function La(a){return h.map(a.match(/(\\.|[^\.])+/g)||
38
+ [""],function(a){return a.replace(/\\./g,".")})}function Q(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=Q(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=La(f);for(var i=0,n=j.length;i<n;i++){f=j[i].match(ba);g=
39
+ j[i].match(V);if(f){j[i]=j[i].replace(ba,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(n=a.length;i<n;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(V,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function R(a){if(h.isPlainObject(a))return R(a._);if(null===a)return function(){};if("function"===
40
+ typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=La(e),f;f=e[e.length-1];for(var g,j,i=0,n=e.length-1;i<n;i++){g=e[i].match(ba);j=e[i].match(V);if(g){e[i]=e[i].replace(ba,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(n=d.length;j<n;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(V,""),a=a[e[i]](d));if(null===a[e[i]]||
41
+ a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(V))a[f.replace(V,"")](d);else a[f.replace(ba,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ma(a){return F(a.aoData,"_aData")}function na(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function oa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function ca(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);
42
+ c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;Na(a,e)}}function Ka(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,n,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],t=function(a,b){if("string"===typeof a){var c=a.indexOf("@");
43
+ -1!==c&&(c=a.substring(c+1),R(a)(d,b.getAttribute(c)))}},S=function(a){if(c===k||c===i)j=l[i],n=h.trim(a.innerHTML),j&&j._bAttrSrc?(R(j.mData._)(d,n),t(j.mData.sort,a),t(j.mData.type,a),t(j.mData.filter,a)):q?(j._setter||(j._setter=R(j.mData)),j._setter(d,n)):d[i]=n;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)S(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)S(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&R(a.rowId)(d,b);return{data:d,cells:e}}
44
+ function Ja(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,n,l,q;if(null===e.nTr){j=c||I.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;Na(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){n=a.aoColumns[l];i=c?d[l]:I.createElement(n.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||n.mRender||n.mData!==l)&&(!h.isPlainObject(n.mData)||n.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");n.sClass&&(i.className+=" "+n.sClass);n.bVisible&&!c?j.appendChild(i):!n.bVisible&&c&&i.parentNode.removeChild(i);
45
+ n.fnCreatedCell&&n.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}u(a,"aoRowCreatedCallback",null,[j,f,b])}e.nTr.setAttribute("role","row")}function Na(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?pa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function kb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===
46
+ h("th, td",g).length,n=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Pa(a,"header")(a,d,f,n);i&&da(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);
47
+ if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function ea(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,n;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(n=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);
48
+ for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+n]!==k&&g[d][f].cell==g[d][f+n].cell;){for(c=0;c<i;c++)j[d+c][f+n]=1;n++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",n)}}}}function O(a){var b=u(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=
49
+ -1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!lb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==e){var t=d[c%e];q._sRowStripe!=t&&(h(l).removeClass(q._sRowStripe).addClass(t),q._sRowStripe=t)}u(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:
50
+ f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];u(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);u(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));u(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;
51
+ c.bSort&&mb(a);d?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,t=0;t<f.length;t++){g=null;j=f[t];if("<"==j){i=h("<div/>")[0];
52
+ n=f[t+1];if("'"==n||'"'==n){l="";for(q=2;f[t+q]!=n;)l+=f[t+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;t+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=ob(a);else if("f"==j&&d.bFilter)g=pb(a);else if("r"==j&&d.bProcessing)g=qb(a);else if("t"==j)g=rb(a);else if("i"==j&&d.bInfo)g=sb(a);else if("p"==
53
+ j&&d.bPaginate)g=tb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q<n;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function da(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,n,l,q,t;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");
54
+ q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;n=g;t=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][n+j]={cell:e,unique:t},a[f+g].nTr=d}e=e.nextSibling}}}function qa(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],da(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function ra(a,b,c){u(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},
55
+ e=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){u(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var n=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&n?n:h.extend(!0,b,n);delete g.data}n={data:b,success:function(b){var c=b.error||b.sError;c&&L(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=u(a,null,"xhr",
56
+ [a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?L(a,0,"Invalid JSON response",1):4===b.readyState&&L(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;u(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(n,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(n,g)),g.data=f)}function lb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,
57
+ !0),ra(a,ub(a),function(b){vb(a,b)}),!1):!0}function ub(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,n,l,q=W(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var k=function(a,b){j.push({name:a,value:b})};k("sEcho",a.iDraw);k("iColumns",c);k("sColumns",F(b,"sName").join(","));k("iDisplayStart",g);k("iDisplayLength",i);var S={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)n=b[g],
58
+ l=f[g],i="function"==typeof n.mData?"function":n.mData,S.columns.push({data:i,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),k("mDataProp_"+g,i),d.bFilter&&(k("sSearch_"+g,l.sSearch),k("bRegex_"+g,l.bRegex),k("bSearchable_"+g,n.bSearchable)),d.bSort&&k("bSortable_"+g,n.bSortable);d.bFilter&&(k("sSearch",e.sSearch),k("bRegex",e.bRegex));d.bSort&&(h.each(q,function(a,b){S.order.push({column:b.col,dir:b.dir});k("iSortCol_"+a,b.col);k("sSortDir_"+
59
+ a,b.dir)}),k("iSortingCols",q.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:S:b?j:S}function vb(a,b){var c=sa(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}na(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)N(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;O(a);a._bInitComplete||
60
+ ta(a,b);a.bAjaxDataGet=!0;C(a,!1)}function sa(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?Q(c)(b):b}function pb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?
61
+ "":this.value;b!=e.sSearch&&(fa(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,O(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",g?ua(f,g):f).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==I.activeElement&&i.val(e.sSearch)}catch(d){}});
62
+ return b[0]}function fa(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){wb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)xb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);yb(a)}else f(b);a.bFiltered=!0;u(a,null,"search",[a])}function yb(a){for(var b=
63
+ m.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,n=c.length;i<n;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function xb(a,b,c,d,e,f){if(""!==b)for(var g=a.aiDisplay,d=Qa(b,d,e,f),e=g.length-1;0<=e;e--)b=a.aoData[g[e]]._aFilterData[c],d.test(b)||g.splice(e,1)}function wb(a,b,c,d,e,f){var d=Qa(b,d,e,f),e=a.oPreviousSearch.sSearch,f=a.aiDisplayMaster,g;0!==m.ext.search.length&&(c=!0);g=zb(a);if(0>=b.length)a.aiDisplay=f.slice();
64
+ else{if(g||c||e.length>b.length||0!==b.indexOf(e)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)d.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Qa(a,b,c,d){a=b?a:va(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function va(a){return a.replace(Zb,"\\$1")}function zb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=
65
+ m.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(wa.innerHTML=i,i=$b?wa.textContent:wa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function Ab(a){return{search:a.sSearch,smart:a.bSmart,
66
+ regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Bb(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function sb(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Cb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Cb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,
67
+ d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Db(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Db(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,
68
+ c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ga(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){nb(a);kb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=x(f.sWidth));u(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?ra(a,[],function(c){var f=sa(a,c);for(b=0;b<f.length;b++)N(a,f[b]);
69
+ a.iInitDisplayStart=d;T(a);C(a,!1);ta(a,c)},a):(C(a,!1),ta(a))}else setTimeout(function(){ga(a)},200)}function ta(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&U(a);u(a,null,"plugin-init",[a,b]);u(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);u(a,null,"length",[a,c])}function ob(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),
70
+ g=0,j=f.length;g<j;g++)e[0][g]=new Option(d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).bind("change.DT",function(){Ra(a,h(this).val());O(a)});h(a.nTable).bind("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function tb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},
71
+ b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ta(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===
72
+ e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:L(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(u(a,null,"page",[a]),c&&O(a));return b}function qb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",
73
+ b?"block":"none");u(a,null,"processing",[a,b])}function rb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:x(d):"100%"}).append(h("<div/>",
74
+ {"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:x(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:x(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",
75
+ 0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],t=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(t.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=t;a.aoDrawCallback.push({fn:ka,sName:"scrolling"});return i[0]}function ka(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"),
76
+ j=a.nScrollBody,l=h(j),q=j.style,t=h(a.nScrollFoot).children("div"),m=t.children("table"),o=h(a.nTHead),G=h(a.nTable),p=G[0],r=p.style,u=a.nTFoot?h(a.nTFoot):null,Eb=a.oBrowser,Ua=Eb.bScrollOversize,s=F(a.aoColumns,"nTh"),P,v,w,y,z=[],A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};v=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==v&&a.scrollBarVis!==k)a.scrollBarVis=v,U(a);else{a.scrollBarVis=v;G.children("thead, tfoot").remove();
77
+ u&&(w=u.clone().prependTo(G),P=u.find("tr"),w=w.find("tr"));y=o.clone().prependTo(G);o=o.find("tr");v=y.find("tr");y.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(qa(a,y),function(b,c){D=Z(a,b);c.style.width=a.aoColumns[D].sWidth});u&&J(function(a){a.style.width=""},w);f=G.outerWidth();if(""===c){r.width="100%";if(Ua&&(G.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=x(G.outerWidth()-b);f=G.outerWidth()}else""!==d&&(r.width=
78
+ x(d),f=G.outerWidth());J(E,v);J(function(a){B.push(a.innerHTML);z.push(x(h(a).css("width")))},v);J(function(a,b){if(h.inArray(a,s)!==-1)a.style.width=z[b]},o);h(v).height(0);u&&(J(E,w),J(function(a){C.push(a.innerHTML);A.push(x(h(a).css("width")))},w),J(function(a,b){a.style.width=A[b]},P),h(w).height(0));J(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+B[b]+"</div>";a.style.width=z[b]},v);u&&J(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+
79
+ C[b]+"</div>";a.style.width=A[b]},w);if(G.outerWidth()<f){P=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(Ua&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=x(P-b);(""===c||""!==d)&&L(a,1,"Possible column misalignment",6)}else P="100%";q.width=x(P);g.width=x(P);u&&(a.nScrollFoot.style.width=x(P));!e&&Ua&&(q.height=x(p.offsetHeight+b));c=G.outerWidth();n[0].style.width=x(c);i.width=x(c);d=G.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+
80
+ (Eb.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=x(c),t[0].style.width=x(c),t[0].style[e]=d?b+"px":"0px");G.children("colgroup").insertBefore(G.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function J(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Ha(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,
81
+ e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=la(a,"bVisible"),n=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,t=!1,m,o,p=a.oBrowser,d=p.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)o=c[i[m]],null!==o.sWidth&&(o.sWidth=Fb(o.sWidthOrig,k),t=!0);if(d||!t&&!f&&!e&&j==aa(a)&&j==n.length)for(m=0;m<j;m++)i=Z(a,m),null!==i&&(c[i].sWidth=x(n.eq(m).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var r=h("<tr/>").appendTo(j.find("tbody"));
82
+ j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=qa(a,j.find("thead")[0]);for(m=0;m<i.length;m++)o=c[i[m]],n[m].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?x(o.sWidthOrig):"",o.sWidthOrig&&f&&h(n[m]).append(h("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m<i.length;m++)t=i[m],o=c[t],h(Gb(a,t)).clone(!1).append(o.sContentPadding).appendTo(r);h("[name]",
83
+ j).removeAttr("name");o=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(m=e=0;m<i.length;m++)k=h(n[m]),g=k.outerWidth()-k.width(),k=p.bBounding?Math.ceil(n[m].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[m]].sWidth=x(k-g);b.style.width=x(e);o.remove()}l&&(b.style.width=
84
+ x(l));if((l||f)&&!a._reszEvt)b=function(){h(D).bind("resize.DT-"+a.sInstance,ua(function(){U(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function ua(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,j=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,j)},c)):(d=g,a.apply(b,j))}}function Fb(a,b){if(!a)return 0;var c=h("<div/>").css("width",x(a)).appendTo(b||I.body),d=c[0].offsetWidth;c.remove();return d}function Gb(a,b){var c=Hb(a,b);if(0>c)return null;var d=
85
+ a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Hb(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(ac,""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function x(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,
86
+ a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){i=n[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||"string",n[a]._idx===k&&(n[a]._idx=h.inArray(n[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:n[a][1],index:n[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return d}function mb(a){var b,c,d=[],e=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ia(a);h=W(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Ib(a,
87
+ j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],e=m[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];
88
+ g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Jb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Va(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,
89
+ g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,F(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Oa(a,b,c,d){var e=
90
+ a.aoColumns[c];Wa(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Va(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Va(a,c,b.shiftKey,d))})}function xa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=W(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(F(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(F(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Ib(a,
91
+ b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,$(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function ya(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Ab(a.oPreviousSearch),columns:h.map(a.aoColumns,
92
+ function(b,d){return{visible:b.bVisible,search:Ab(a.aoPreSearchCols[d])}})};u(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Kb(a){var b,c,d=a.aoColumns;if(a.oFeatures.bStateSave){var e=a.fnStateLoadCallback.call(a.oInstance,a);if(e&&e.time&&(b=u(a,"aoStateLoadParams","stateLoadParams",[a,e]),-1===h.inArray(!1,b)&&(b=a.iStateDuration,!(0<b&&e.time<+new Date-1E3*b)&&d.length===e.columns.length))){a.oLoadedState=h.extend(!0,{},e);
93
+ e.start!==k&&(a._iDisplayStart=e.start,a.iInitDisplayStart=e.start);e.length!==k&&(a._iDisplayLength=e.length);e.order!==k&&(a.aaSorting=[],h.each(e.order,function(b,c){a.aaSorting.push(c[0]>=d.length?[0,c[1]]:c)}));e.search!==k&&h.extend(a.oPreviousSearch,Bb(e.search));b=0;for(c=e.columns.length;b<c;b++){var f=e.columns[b];f.visible!==k&&(d[b].bVisible=f.visible);f.search!==k&&h.extend(a.aoPreSearchCols[b],Bb(f.search))}u(a,"aoStateLoaded","stateLoaded",[a,e])}}}function za(a){var b=m.settings,a=
94
+ h.inArray(a,F(b,"nTable"));return-1!==a?b[a]:null}function L(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)D.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,a&&u(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function E(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?E(a,b,d[0],
95
+ d[1]):E(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Lb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Wa(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}
96
+ function u(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?
97
+ "ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Aa(a,b){var c=[],c=Mb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function db(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Xa)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Xa)}},function(b,
98
+ c){v.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(v.type.search[b+a]=v.type.search.html)})}function Nb(a){return function(){var b=[za(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m,v,r,p,s,Ya={},Ob=/[\r\n]/g,Ca=/<.*?>/g,bc=/^[\w\+\-]/,cc=/[\w\+\-]$/,Zb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},
99
+ Pb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Qb=function(a,b){Ya[b]||(Ya[b]=RegExp(va(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Qb(a,b));c&&d&&(a=a.replace(Xa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Rb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:Za(a.replace(Ca,""),b,c)?!0:null},F=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<
100
+ f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},ha=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},X=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Sb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},pa=function(a){var b=[],c,d,e=a.length,f,g=0;d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===
101
+ c)continue a;b.push(c);g++}return b},A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ba=/\[.*?\]$/,V=/\(\)$/,wa=h("<div>")[0],$b=wa.textContent!==k,ac=/<.*?>/g;m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new r(za(this[v.iApiIndex])):new r(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};
102
+ this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ka(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};
103
+ this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=
104
+ function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};
105
+ this.fnSettings=function(){return za(this[v.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=v.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=v.internal;for(var e in m.ext.internal)e&&(this[e]=
106
+ Nb(e));this.each(function(){var e={},e=1<d?Lb(e,a,!0):a,g=0,j,i=this.getAttribute("id"),n=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())L(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(l);fb(l.column);K(l,l,!0);K(l.column,l.column,!0);K(l,h.extend(e,q.data()));var t=m.settings,g=0;for(j=t.length;g<j;g++){var p=t[g];if(p.nTable==this||p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){g=e.bRetrieve!==k?e.bRetrieve:l.bRetrieve;if(c||g)return p.oInstance;
107
+ if(e.bDestroy!==k?e.bDestroy:l.bDestroy){p.oInstance.fnDestroy();break}else{L(p,0,"Cannot reinitialise DataTable",3);return}}if(p.sTableId==this.id){t.splice(g,1);break}}if(null===i||""===i)this.id=i="DataTables_Table_"+m.ext._unique++;var o=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:i,sTableId:i});o.nTable=this;o.oApi=b.internal;o.oInit=e;t.push(o);o.oInstance=1===b.length?b:q.dataTable();eb(e);e.oLanguage&&Fa(e.oLanguage);e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=
108
+ h.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:e.aLengthMenu[0]);e=Lb(h.extend(!0,{},l),e);E(o.oFeatures,e,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));E(o,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback",
109
+ "renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(o.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(o.oLanguage,e,"fnInfoCallback");z(o,"aoDrawCallback",e.fnDrawCallback,"user");z(o,"aoServerParams",e.fnServerParams,"user");z(o,"aoStateSaveParams",e.fnStateSaveParams,"user");z(o,"aoStateLoadParams",
110
+ e.fnStateLoadParams,"user");z(o,"aoStateLoaded",e.fnStateLoaded,"user");z(o,"aoRowCallback",e.fnRowCallback,"user");z(o,"aoRowCreatedCallback",e.fnCreatedRow,"user");z(o,"aoHeaderCallback",e.fnHeaderCallback,"user");z(o,"aoFooterCallback",e.fnFooterCallback,"user");z(o,"aoInitComplete",e.fnInitComplete,"user");z(o,"aoPreDrawCallback",e.fnPreDrawCallback,"user");o.rowIdFn=Q(e.rowId);gb(o);i=o.oClasses;e.bJQueryUI?(h.extend(i,m.ext.oJUIClasses,e.oClasses),e.sDom===l.sDom&&"lfrtip"===l.sDom&&(o.sDom=
111
+ '<"H"lfr>t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&&!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(i,m.ext.classes,e.oClasses);q.addClass(i.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=e.iDisplayStart,o._iDisplayStart=e.iDisplayStart);null!==e.iDeferLoading&&(o.bDeferLoading=!0,g=h.isArray(e.iDeferLoading),o._iRecordsDisplay=g?e.iDeferLoading[0]:e.iDeferLoading,o._iRecordsTotal=g?e.iDeferLoading[1]:e.iDeferLoading);var r=o.oLanguage;h.extend(!0,
112
+ r,e.oLanguage);""!==r.sUrl&&(h.ajax({dataType:"json",url:r.sUrl,success:function(a){Fa(a);K(l.oLanguage,a);h.extend(true,r,a);ga(o)},error:function(){ga(o)}}),n=!0);null===e.asStripeClasses&&(o.asStripeClasses=[i.sStripeOdd,i.sStripeEven]);var g=o.asStripeClasses,v=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(g,function(a){return v.hasClass(a)}))&&(h("tbody tr",this).removeClass(g.join(" ")),o.asDestroyStripes=g.slice());t=[];g=this.getElementsByTagName("thead");0!==g.length&&(da(o.aoHeader,
113
+ g[0]),t=qa(o));if(null===e.aoColumns){p=[];g=0;for(j=t.length;g<j;g++)p.push(null)}else p=e.aoColumns;g=0;for(j=p.length;g<j;g++)Ga(o,t?t[g]:null);ib(o,e.aoColumnDefs,p,function(a,b){ja(o,a,b)});if(v.length){var s=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(v[0]).children("th, td").each(function(a,b){var c=o.aoColumns[a];if(c.mData===a){var d=s(b,"sort")||s(b,"order"),e=s(b,"filter")||s(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==
114
+ null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};ja(o,a)}}})}var w=o.oFeatures;e.bStateSave&&(w.bStateSave=!0,Kb(o,e),z(o,"aoDrawCallback",ya,"state_save"));if(e.aaSorting===k){t=o.aaSorting;g=0;for(j=t.length;g<j;g++)t[g][1]=o.aoColumns[g].asSorting[0]}xa(o);w.bSort&&z(o,"aoDrawCallback",function(){if(o.bSorted){var a=W(o),b={};h.each(a,function(a,c){b[c.src]=c.dir});u(o,null,"order",[o,a,b]);Jb(o)}});z(o,"aoDrawCallback",function(){(o.bSorted||y(o)==="ssp"||w.bDeferRender)&&xa(o)},"sc");g=
115
+ q.children("caption").each(function(){this._captionSide=q.css("caption-side")});j=q.children("thead");0===j.length&&(j=h("<thead/>").appendTo(this));o.nTHead=j[0];j=q.children("tbody");0===j.length&&(j=h("<tbody/>").appendTo(this));o.nTBody=j[0];j=q.children("tfoot");if(0===j.length&&0<g.length&&(""!==o.oScroll.sX||""!==o.oScroll.sY))j=h("<tfoot/>").appendTo(this);0===j.length||0===j.children().length?q.addClass(i.sNoFooter):0<j.length&&(o.nTFoot=j[0],da(o.aoFooter,o.nTFoot));if(e.aaData)for(g=0;g<
116
+ e.aaData.length;g++)N(o,e.aaData[g]);else(o.bDeferLoading||"dom"==y(o))&&ma(o,h(o.nTBody).children("tr"));o.aiDisplay=o.aiDisplayMaster.slice();o.bInitialised=!0;!1===n&&ga(o)}});b=null;return this};var Tb=[],w=Array.prototype,dc=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===
117
+ typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};r=function(a,b){if(!(this instanceof r))return new r(a,b);var c=[],d=function(a){(a=dc(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=pa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};r.extend(this,this,Tb)};m.Api=r;h.extend(r.prototype,{any:function(){return 0!==this.count()},concat:w.concat,
118
+ context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new r(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new r(this.context,b)},flatten:function(){var a=[];return new r(this.context,a.concat.apply(a,this.toArray()))},join:w.join,
119
+ indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,h,i,n,l=this.context,m,t,p=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var o=new r(l[g]);if("table"===b)f=c.call(o,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(o,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){t=this[g];"column-rows"===b&&(m=Da(l[g],
120
+ p.opts));i=0;for(n=t.length;i<n;i++)f=t[i],f="cell"===b?c.call(o,l[g],f.row,f.column,g,i):c.call(o,l[g],f,g,i,m),f!==k&&e.push(f)}}return e.length||d?(a=new r(l,a?e.concat.apply([],e):e),b=a.selector,b.rows=p.rows,b.cols=p.cols,b.opts=p.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new r(this.context,
121
+ b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new r(this.context,pa(this))},unshift:w.unshift});r.extend=
122
+ function(a,b,c){if(c.length&&b&&(b instanceof r||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);r.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,r.extend(a,b[f.name],f.propExt)}};r.register=p=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)r.register(a[c],b);else for(var e=a.split("."),f=Tb,g,j,c=0,d=e.length;c<d;c++){g=
123
+ (j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var n=f.length;i<n;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};r.registerPlural=s=function(a,b,c){r.register(a,c);r.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof r?a.length?h.isArray(a[0])?new r(a.context,a[0]):a[0]:k:a})};p("tables()",function(a){var b;if(a){b=r;var c=this.context;if("number"===
124
+ typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=this;return b});p("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new r(b[0]):a});s("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});s("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});s("tables().header()",
125
+ "table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});s("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});s("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});p("draw()",function(a){return this.iterator("table",function(b){"page"===a?O(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});p("page()",function(a){return a===
126
+ k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});p("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});p("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:
127
+ k:this.iterator("table",function(b){Ra(b,a)})});var Ub=function(a,b,c){if(c){var d=new r(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ra(a,[],function(c){na(a);for(var c=sa(a,c),d=0,e=c.length;d<e;d++)N(a,c[d]);T(a,b);C(a,!1)})}};p("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});p("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});p("ajax.reload()",function(a,
128
+ b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});p("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});p("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});var $a=function(a,b,c,d,e){var f=[],g,j,i,n,l,m;i=typeof b;if(!b||"string"===i||"function"===
129
+ i||b.length===k)b=[b];i=0;for(n=b.length;i<n;i++){j=b[i]&&b[i].split?b[i].split(","):[b[i]];l=0;for(m=j.length;l<m;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=v.selector[a];if(a.length){i=0;for(n=a.length;i<n;i++)f=a[i](d,e,f)}return pa(f)},ab=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},bb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=
130
+ 1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c,d,e,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;d=b.order;e=b.page;if("ssp"==y(a))return"removed"===j?[]:X(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==d||"applied"==d)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==
131
+ j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};p("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var e=b;return $a("row",a,function(a){var b=Pb(a);if(b!==null&&!e)return[b];var j=Da(c,e);if(b!==null&&h.inArray(b,j)!==-1)return[b];if(!a)return j;if(typeof a==="function")return h.map(j,function(b){var e=c.aoData[b];return a(b,e._aData,e.nTr)?b:null});b=Sb(ha(c.aoData,j,"nTr"));if(a.nodeName){if(a._DT_RowIndex!==
132
+ k)return[a._DT_RowIndex];if(a._DT_CellIndex)return[a._DT_CellIndex.row];b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){j=c.aIds[a.replace(/^#/,"")];if(j!==k)return[j.idx]}return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});p("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});p("rows().data()",function(){return this.iterator(!0,
133
+ "rows",function(a,b){return ha(a.aoData,b,"_aData")},1)});s("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});s("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){ca(b,c,a)})});s("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});s("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,
134
+ d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new r(c,b)});s("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,n,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(n=l.length;i<n;i++)l[i]._DT_CellIndex.row=g}oa(b.aiDisplayMaster,c);oa(b.aiDisplay,c);oa(a[d],c,!1);
135
+ Sa(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});p("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(ma(b,c)[0]):h.push(N(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});p("row()",function(a,b){return bb(this.rows(a,b))});p("row().data()",function(a){var b=
136
+ this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;b[0].aoData[this[0]]._aData=a;ca(b[0],this[0],"data");return this});p("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});p("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ma(b,a)[0]:N(b,a)});return this.row(b[0])});var cb=function(a,b){var c=a.context;if(c.length&&
137
+ (c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=k,c._details=k},Vb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new r(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<F(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];
138
+ a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(e===b)for(var c,d=aa(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&cb(f,c)}))}}};p("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===
139
+ a)cb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=aa(d),e.push(c[0]))};f(a,b);c._details&&c._details.remove();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Vb(this,
140
+ !0);return this});p(["row().child.hide()","row().child().hide()"],function(){Vb(this,!1);return this});p(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var ec=/^(.+):(name|visIdx|visible)$/,Wb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};p("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&
141
+ (b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,j=F(g,"sName"),i=F(g,"nTh");return $a("column",e,function(a){var b=Pb(a);if(a==="")return X(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Wb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(ec):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});
142
+ return[m[m.length+b]]}return[Z(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});s("columns().header()","column().header()",function(){return this.iterator("column",
143
+ function(a,b){return a.aoColumns[b].nTh},1)});s("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});s("columns().data()","column().data()",function(){return this.iterator("column-rows",Wb,1)});s("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});s("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,
144
+ c,d,e,f){return ha(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});s("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ha(a.aoData,e,"anCells",b)},1)});s("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,d){if(a===k)return c.aoColumns[d].bVisible;var e=c.aoColumns,f=e[d],g=c.aoData,j,i,n;if(a!==k&&f.bVisible!==a){if(a){var l=h.inArray(!0,F(e,"bVisible"),d+1);j=0;for(i=g.length;j<
145
+ i;j++)n=g[j].nTr,e=g[j].anCells,n&&n.insertBefore(e[d],e[l]||null)}else h(F(c.aoData,"anCells",d)).detach();f.bVisible=a;ea(c,c.aoHeader);ea(c,c.aoFooter);(b===k||b)&&U(c);u(c,null,"column-visibility",[c,d,a,b]);ya(c)}})});s("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?$(b,c):c},1)});p("columns.adjust()",function(){return this.iterator("table",function(a){U(a)},1)});p("column.index()",function(a,b){if(0!==this.context.length){var c=
146
+ this.context[0];if("fromVisible"===a||"toData"===a)return Z(c,b);if("fromData"===a||"toVisible"===a)return $(c,b)}});p("column()",function(a,b){return bb(this.columns(a,b))});p("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=ab(c),f=b.aoData,g=Da(b,e),j=Sb(ha(f,g,"anCells")),i=h([].concat.apply([],j)),l,n=b.aoColumns.length,m,p,r,u,v,s;return $a("cell",d,function(a){var c=
147
+ typeof a==="function";if(a===null||a===k||c){m=[];p=0;for(r=g.length;p<r;p++){l=g[p];for(u=0;u<n;u++){v={row:l,column:u};if(c){s=f[l];a(v,B(b,l,u),s.anCells?s.anCells[u]:null)&&m.push(v)}else m.push(v)}}return m}if(h.isPlainObject(a))return[a];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;s=h(a).closest("*[data-dt-row]");return s.length?[{row:s.data("dt-row"),column:s.data("dt-column")}]:[]},b,e)});var d=
148
+ this.columns(b,c),e=this.rows(a,c),f,g,j,i,n,l=this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(n=d[b].length;i<n;i++)f.push({row:e[b][g],column:d[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});s("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});p("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});s("cells().cache()",
149
+ "cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});s("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});s("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:$(a,c)}},1)});s("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,
150
+ c,d){ca(b,c,a,d)})});p("cell()",function(a,b,c){return bb(this.cells(a,b,c))});p("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;jb(b[0],c[0].row,c[0].column,a);ca(b[0],c[0].row,"data",c[0].column);return this});p("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:h.isArray(a[0])||(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=
151
+ a.slice()})});p("order.listener()",function(a,b,c){return this.iterator("table",function(d){Oa(d,a,b,c)})});p("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});p(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});p("search()",function(a,
152
+ b,c,d){var e=this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&fa(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});s("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===
153
+ c?!0:c,bCaseInsensitive:null===d?!0:d}),fa(e,e.oPreviousSearch,1))})});p("state()",function(){return this.context.length?this.context[0].oSavedState:null});p("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){ya(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=
154
+ m.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings,function(b){if(!a||
155
+ a&&h(b.nTable).is(":visible"))return b.nTable});return b?new r(c):c};m.util={throttle:ua,escapeRegex:va};m.camelToHungarian=K;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",
156
+ function(a){na(a)})});p("settings()",function(){return new r(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return F(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),
157
+ p;b.bDestroying=!0;u(b,"aoDestroyCallback","destroy",[b]);a||(new r(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");h(D).unbind(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];xa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+
158
+ d.sSortIcon+", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column",
159
+ "row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,n){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,n)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=Q(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.11";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,
160
+ _aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults=
161
+ {aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
162
+ this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+
163
+ "_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",
164
+ sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};
165
+ Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,
166
+ bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],
167
+ aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,
168
+ aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=
169
+ this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=v={buttons:{},classes:{},build:"bs-3.3.6/dt-1.10.11,b-1.1.2,b-colvis-1.1.2,b-html5-1.1.2,b-print-1.1.2,cr-1.3.1,se-1.1.2",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},
170
+ header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(v,{afnFiltering:v.search,aTypes:v.type.detect,ofnSearch:v.type.search,oSort:v.type.order,afnSortData:v.order,aoFeatures:v.feature,oApi:v.internal,oStdClasses:v.classes,oPagination:v.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",
171
+ sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",
172
+ sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",H=Ea+"ui-state-default",ia=Ea+"css_right ui-icon ui-icon-",Xb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses,
173
+ m.ext.classes,{sPageButton:"fg-button ui-button "+H,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:H+" sorting_asc",sSortDesc:H+" sorting_desc",sSortable:H+" sorting",sSortableAsc:H+" sorting_asc_disabled",sSortableDesc:H+" sorting_desc_disabled",sSortableNone:H+" sorting_disabled",sSortJUIAsc:ia+"triangle-1-n",sSortJUIDesc:ia+"triangle-1-s",sSortJUI:ia+"carat-2-n-s",
174
+ sSortJUIAscAllowed:ia+"carat-1-n",sSortJUIDescAllowed:ia+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+H,sScrollFoot:"dataTables_scrollFoot "+H,sHeaderTH:H,sFooterTH:H,sJUIHeader:Xb+" ui-corner-tl ui-corner-tr",sJUIFooter:Xb+" ui-corner-bl ui-corner-br"});var Mb=m.ext.pager;h.extend(Mb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[Aa(a,
175
+ b)]},simple_numbers:function(a,b){return["previous",Aa(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Aa(a,b),"next","last"]},_numbers:Aa,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},k,l,m=0,p=function(b,d){var o,r,u,s,v=function(b){Ta(a,b.data.action,true)};o=0;for(r=d.length;o<r;o++){s=d[o];if(h.isArray(s)){u=h("<"+(s.DT_el||"div")+"/>").appendTo(b);p(u,s)}else{k=null;
176
+ l="";switch(s){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":k=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":k=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":k=j.sNext;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":k=j.sLast;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:k=s+1;l=e===s?g.sPageButtonActive:""}if(k!==null){u=h("<a>",{"class":g.sPageButton+" "+l,"aria-controls":a.sTableId,"aria-label":i[s],
177
+ "data-dt-idx":m,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(k).appendTo(b);Wa(u,{action:s},v);m++}}}},r;try{r=h(b).find(I.activeElement).data("dt-idx")}catch(o){}p(h(b).empty(),d);r&&h(b).find("[data-dt-idx="+r+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!bc.test(a)||!cc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||M(a)?"date":
178
+ null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Ob," ").replace(Ca,""):""},string:function(a){return M(a)?a:"string"===typeof a?a.replace(Ob,
179
+ " "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Qb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(v.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,
180
+ b){return a<b?1:a>b?-1:0}});db("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(e,
181
+ f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Yb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};m.render={number:function(a,
182
+ b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Yb(f);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Yb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Nb,_fnBuildAjax:ra,_fnAjaxUpdate:lb,_fnAjaxParameters:ub,_fnAjaxUpdateDraw:vb,_fnAjaxDataSrc:sa,_fnAddColumn:Ga,_fnColumnOptions:ja,
183
+ _fnAdjustColumnSizing:U,_fnVisibleToColumnIndex:Z,_fnColumnIndexToVisible:$,_fnVisbleColumns:aa,_fnGetColumns:la,_fnColumnTypes:Ia,_fnApplyColumnDefs:ib,_fnHungarianMap:Y,_fnCamelToHungarian:K,_fnLanguageCompat:Fa,_fnBrowserDetect:gb,_fnAddData:N,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:jb,_fnSplitObjNotation:La,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:R,
184
+ _fnGetDataMaster:Ma,_fnClearTable:na,_fnDeleteIndex:oa,_fnInvalidate:ca,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:kb,_fnDrawHead:ea,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:nb,_fnDetectHeader:da,_fnGetUniqueThs:qa,_fnFeatureHtmlFilter:pb,_fnFilterComplete:fa,_fnFilterCustom:yb,_fnFilterColumn:xb,_fnFilter:wb,_fnFilterCreateSearch:Qa,_fnEscapeRegex:va,_fnFilterData:zb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:Cb,_fnInfoMacros:Db,_fnInitialise:ga,_fnInitComplete:ta,_fnLengthChange:Ra,_fnFeatureHtmlLength:ob,
185
+ _fnFeatureHtmlPaginate:tb,_fnPageChange:Ta,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:rb,_fnScrollDraw:ka,_fnApplyToChildren:J,_fnCalculateColumnWidths:Ha,_fnThrottle:ua,_fnConvertToWidth:Fb,_fnGetWidestNode:Gb,_fnGetMaxLenString:Hb,_fnStringToCss:x,_fnSortFlatten:W,_fnSort:mb,_fnSortAria:Jb,_fnSortListener:Va,_fnSortAttachListener:Oa,_fnSortingClasses:xa,_fnSortData:Ib,_fnSaveState:ya,_fnLoadState:Kb,_fnSettingsFromNode:za,_fnLog:L,_fnMap:E,_fnBindAction:Wa,_fnCallbackReg:z,
186
+ _fnCallbackFire:u,_fnLengthOverflow:Sa,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});
187
+
188
+
189
+ /*!
190
+ DataTables Bootstrap 3 integration
191
+ ©2011-2015 SpryMedia Ltd - datatables.net/license
192
+ */
193
+ (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d){var f=b.fn.dataTable;b.extend(!0,f.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(f.ext.classes,
194
+ {sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,m,j,n){var o=new f.Api(a),s=a.oClasses,k=a.oLanguage.oPaginate,t=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,c,m=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&o.page()!=a.data.action&&o.page(a.data.action).draw("page")};
195
+ l=0;for(h=f.length;l<h;l++)if(c=f[l],b.isArray(c))q(d,c);else{g=e="";switch(c){case "ellipsis":e="&#x2026;";g="disabled";break;case "first":e=k.sFirst;g=c+(0<j?"":" disabled");break;case "previous":e=k.sPrevious;g=c+(0<j?"":" disabled");break;case "next":e=k.sNext;g=c+(j<n-1?"":" disabled");break;case "last":e=k.sLast;g=c+(j<n-1?"":" disabled");break;default:e=c+1,g=j===c?"active":""}e&&(i=b("<li>",{"class":s.sPageButton+" "+g,id:0===r&&"string"===typeof c?a.sTableId+"_"+c:null}).append(b("<a>",{href:"#",
196
+ "aria-controls":a.sTableId,"aria-label":t[c],"data-dt-idx":p,tabindex:a.iTabIndex}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:c},m),p++)}},i;try{i=b(h).find(d.activeElement).data("dt-idx")}catch(u){}q(b(h).empty().html('<ul class="pagination"/>').children("ul"),m);i&&b(h).find("[data-dt-idx="+i+"]").focus()};return f});
197
+
198
+
199
+ /*!
200
+ Buttons for DataTables 1.1.2
201
+ ©2015 SpryMedia Ltd - datatables.net/license
202
+ */
203
+ (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(p){return e(p,window,document)}):"object"===typeof exports?module.exports=function(p,o){p||(p=window);if(!o||!o.fn.dataTable)o=require("datatables.net")(p,o).$;return e(o,p,p.document)}:e(jQuery,window,document)})(function(e,p,o,n){var j=e.fn.dataTable,t=0,u=0,l=j.ext.buttons,m=function(a,b){!0===b&&(b={});e.isArray(b)&&(b={buttons:b});this.c=e.extend(!0,{},m.defaults,b);b.buttons&&(this.c.buttons=b.buttons);
204
+ this.s={dt:new j.Api(a),buttons:[],subButtons:[],listenKeys:"",namespace:"dtb"+t++};this.dom={container:e("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)};this._constructor()};e.extend(m.prototype,{action:function(a,b){var c=this._indexToButton(a).conf;if(b===n)return c.action;c.action=b;return this},active:function(a,b){var c=this._indexToButton(a),d=this.c.dom.button.active;if(b===n)return c.node.hasClass(d);c.node.toggleClass(d,b===n?!0:b);return this},add:function(a,
205
+ b){if("string"===typeof a&&-1!==a.indexOf("-")){var c=a.split("-");this.c.buttons[1*c[0]].buttons.splice(1*c[1],0,b)}else this.c.buttons.splice(1*a,0,b);this.dom.container.empty();this._buildButtons(this.c.buttons);return this},container:function(){return this.dom.container},disable:function(a){this._indexToButton(a).node.addClass(this.c.dom.button.disabled);return this},destroy:function(){e("body").off("keyup."+this.s.namespace);var a=this.s.buttons,b=this.s.subButtons,c,d,f;c=0;for(a=a.length;c<
206
+ a;c++){this.removePrep(c);d=0;for(f=b[c].length;d<f;d++)this.removePrep(c+"-"+d)}this.removeCommit();this.dom.container.remove();b=this.s.dt.settings()[0];c=0;for(a=b.length;c<a;c++)if(b.inst===this){b.splice(c,1);break}return this},enable:function(a,b){if(!1===b)return this.disable(a);this._indexToButton(a).node.removeClass(this.c.dom.button.disabled);return this},name:function(){return this.c.name},node:function(a){return this._indexToButton(a).node},removeCommit:function(){var a=this.s.buttons,
207
+ b=this.s.subButtons,c,d;for(c=a.length-1;0<=c;c--)null===a[c]&&(a.splice(c,1),b.splice(c,1),this.c.buttons.splice(c,1));c=0;for(a=b.length;c<a;c++)for(d=b[c].length-1;0<=d;d--)null===b[c][d]&&(b[c].splice(d,1),this.c.buttons[c].buttons.splice(d,1));return this},removePrep:function(a){var b,c=this.s.dt;if("number"===typeof a||-1===a.indexOf("-"))b=this.s.buttons[1*a],b.conf.destroy&&b.conf.destroy.call(c.button(a),c,b,b.conf),b.node.remove(),this._removeKey(b.conf),this.s.buttons[1*a]=null;else{var d=
208
+ a.split("-");b=this.s.subButtons[1*d[0]][1*d[1]];b.conf.destroy&&b.conf.destroy.call(c.button(a),c,b,b.conf);b.node.remove();this._removeKey(b.conf);this.s.subButtons[1*d[0]][1*d[1]]=null}return this},text:function(a,b){var c=this._indexToButton(a),d=this.c.dom.collection.buttonLiner,d="string"===typeof a&&-1!==a.indexOf("-")&&d&&d.tag?d.tag:this.c.dom.buttonLiner.tag,e=this.s.dt,h=function(a){return"function"===typeof a?a(e,c.node,c.conf):a};if(b===n)return h(c.conf.text);c.conf.text=b;d?c.node.children(d).html(h(b)):
209
+ c.node.html(h(b));return this},toIndex:function(a){var b,c,d,e;d=this.s.buttons;var h=this.s.subButtons;b=0;for(c=d.length;b<c;b++)if(d[b].node[0]===a)return b+"";b=0;for(c=h.length;b<c;b++){d=0;for(e=h[b].length;d<e;d++)if(h[b][d].node[0]===a)return b+"-"+d}},_constructor:function(){var a=this,b=this.s.dt,c=b.settings()[0];c._buttons||(c._buttons=[]);c._buttons.push({inst:this,name:this.c.name});this._buildButtons(this.c.buttons);b.on("destroy",function(){a.destroy()});e("body").on("keyup."+this.s.namespace,
210
+ function(b){if(!o.activeElement||o.activeElement===o.body){var c=String.fromCharCode(b.keyCode).toLowerCase();a.s.listenKeys.toLowerCase().indexOf(c)!==-1&&a._keypress(c,b)}})},_addKey:function(a){a.key&&(this.s.listenKeys+=e.isPlainObject(a.key)?a.key.key:a.key)},_buildButtons:function(a,b,c){var d=this.s.dt,f=0;b||(b=this.dom.container,this.s.buttons=[],this.s.subButtons=[]);for(var h=0,i=a.length;h<i;h++){var k=this._resolveExtends(a[h]);if(k)if(e.isArray(k))this._buildButtons(k,b,c);else{var g=
211
+ this._buildButton(k,c!==n?!0:!1);if(g){var r=g.node;b.append(g.inserter);c===n?(this.s.buttons.push({node:r,conf:k,inserter:g.inserter}),this.s.subButtons.push([])):this.s.subButtons[c].push({node:r,conf:k,inserter:g.inserter});k.buttons&&(g=this.c.dom.collection,k._collection=e("<"+g.tag+"/>").addClass(g.className),this._buildButtons(k.buttons,k._collection,f));k.init&&k.init.call(d.button(r),d,r,k);f++}}}},_buildButton:function(a,b){var c=this.c.dom.button,d=this.c.dom.buttonLiner,f=this.c.dom.collection,
212
+ h=this.s.dt,i=function(b){return"function"===typeof b?b(h,g,a):b};b&&f.button&&(c=f.button);b&&f.buttonLiner&&(d=f.buttonLiner);if(a.available&&!a.available(h,a))return!1;var k=function(a,b,c,d){d.action.call(b.button(c),a,b,c,d);e(b.table().node()).triggerHandler("buttons-action.dt",[b.button(c),b,c,d])},g=e("<"+c.tag+"/>").addClass(c.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(b){b.preventDefault();!g.hasClass(c.disabled)&&
213
+ a.action&&k(b,h,g,a);g.blur()}).on("keyup.dtb",function(b){b.keyCode===13&&!g.hasClass(c.disabled)&&a.action&&k(b,h,g,a)});d.tag?g.append(e("<"+d.tag+"/>").html(i(a.text)).addClass(d.className)):g.html(i(a.text));!1===a.enabled&&g.addClass(c.disabled);a.className&&g.addClass(a.className);a.titleAttr&&g.attr("title",a.titleAttr);a.namespace||(a.namespace=".dt-button-"+u++);d=(d=this.c.dom.buttonContainer)&&d.tag?e("<"+d.tag+"/>").addClass(d.className).append(g):g;this._addKey(a);return{node:g,inserter:d}},
214
+ _indexToButton:function(a){if("number"===typeof a||-1===a.indexOf("-"))return this.s.buttons[1*a];a=a.split("-");return this.s.subButtons[1*a[0]][1*a[1]]},_keypress:function(a,b){var c,d,f,h;f=this.s.buttons;var i=this.s.subButtons,k=function(c,d){if(c.key)if(c.key===a)d.click();else if(e.isPlainObject(c.key)&&c.key.key===a&&(!c.key.shiftKey||b.shiftKey))if(!c.key.altKey||b.altKey)if(!c.key.ctrlKey||b.ctrlKey)(!c.key.metaKey||b.metaKey)&&d.click()};c=0;for(d=f.length;c<d;c++)k(f[c].conf,f[c].node);
215
+ c=0;for(d=i.length;c<d;c++){f=0;for(h=i[c].length;f<h;f++)k(i[c][f].conf,i[c][f].node)}},_removeKey:function(a){if(a.key){var b=e.isPlainObject(a.key)?a.key.key:a.key,a=this.s.listenKeys.split(""),b=e.inArray(b,a);a.splice(b,1);this.s.listenKeys=a.join("")}},_resolveExtends:function(a){for(var b=this.s.dt,c,d,f=function(c){for(var d=0;!e.isPlainObject(c)&&!e.isArray(c);){if(c===n)return;if("function"===typeof c){if(c=c(b,a),!c)return!1}else if("string"===typeof c){if(!l[c])throw"Unknown button type: "+
216
+ c;c=l[c]}d++;if(30<d)throw"Buttons: Too many iterations";}return e.isArray(c)?c:e.extend({},c)},a=f(a);a&&a.extend;){if(!l[a.extend])throw"Cannot extend unknown button type: "+a.extend;var h=f(l[a.extend]);if(e.isArray(h))return h;if(!h)return!1;c=h.className;a=e.extend({},h,a);c&&a.className!==c&&(a.className=c+" "+a.className);var i=a.postfixButtons;if(i){a.buttons||(a.buttons=[]);c=0;for(d=i.length;c<d;c++)a.buttons.push(i[c]);a.postfixButtons=null}if(i=a.prefixButtons){a.buttons||(a.buttons=[]);
217
+ c=0;for(d=i.length;c<d;c++)a.buttons.splice(c,0,i[c]);a.prefixButtons=null}a.extend=h.extend}return a}});m.background=function(a,b,c){c===n&&(c=400);a?e("<div/>").addClass(b).css("display","none").appendTo("body").fadeIn(c):e("body > div."+b).fadeOut(c,function(){e(this).remove()})};m.instanceSelector=function(a,b){if(!a)return e.map(b,function(a){return a.inst});var c=[],d=e.map(b,function(a){return a.name}),f=function(a){if(e.isArray(a))for(var i=0,k=a.length;i<k;i++)f(a[i]);else"string"===typeof a?
218
+ -1!==a.indexOf(",")?f(a.split(",")):(a=e.inArray(e.trim(a),d),-1!==a&&c.push(b[a].inst)):"number"===typeof a&&c.push(b[a].inst)};f(a);return c};m.buttonSelector=function(a,b){for(var c=[],d=function(a,b){var g,f,h=[];e.each(b.s.buttons,function(a,b){null!==b&&h.push({node:b.node[0],name:b.conf.name})});e.each(b.s.subButtons,function(a,b){e.each(b,function(a,b){null!==b&&h.push({node:b.node[0],name:b.conf.name})})});g=e.map(h,function(a){return a.node});if(e.isArray(a)||a instanceof e){g=0;for(f=a.length;g<
219
+ f;g++)d(a[g],b)}else if(null===a||a===n||"*"===a){g=0;for(f=h.length;g<f;g++)c.push({inst:b,idx:b.toIndex(h[g].node)})}else if("number"===typeof a)c.push({inst:b,idx:a});else if("string"===typeof a)if(-1!==a.indexOf(",")){var j=a.split(",");g=0;for(f=j.length;g<f;g++)d(e.trim(j[g]),b)}else if(a.match(/^\d+(\-\d+)?$/))c.push({inst:b,idx:a});else if(-1!==a.indexOf(":name")){j=a.replace(":name","");g=0;for(f=h.length;g<f;g++)h[g].name===j&&c.push({inst:b,idx:b.toIndex(h[g].node)})}else e(g).filter(a).each(function(){c.push({inst:b,
220
+ idx:b.toIndex(this)})});else"object"===typeof a&&a.nodeName&&(f=e.inArray(a,g),-1!==f&&c.push({inst:b,idx:b.toIndex(g[f])}))},f=0,h=a.length;f<h;f++)d(b,a[f]);return c};m.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}};m.version="1.1.2";e.extend(l,{collection:{text:function(a){return a.i18n("buttons.collection",
221
+ "Collection")},className:"buttons-collection",action:function(a,b,c,d){var a=c.offset(),f=e(b.table().container()),h=!1;e("div.dt-button-background").length&&(h=e("div.dt-button-collection").offset(),e(o).trigger("click.dtb-collection"));d._collection.addClass(d.collectionLayout).css("display","none").appendTo("body").fadeIn(d.fade);var i=d._collection.css("position");h&&"absolute"===i?d._collection.css({top:h.top+5,left:h.left+5}):"absolute"===i?(d._collection.css({top:a.top+c.outerHeight(),left:a.left}),
222
+ c=a.left+d._collection.outerWidth(),f=f.offset().left+f.width(),c>f&&d._collection.css("left",a.left-(c-f))):(a=d._collection.height()/2,a>e(p).height()/2&&(a=e(p).height()/2),d._collection.css("marginTop",-1*a));d.background&&m.background(!0,d.backgroundClassName,d.fade);setTimeout(function(){e("div.dt-button-background").on("click.dtb-collection",function(){});e("body").on("click.dtb-collection",function(a){if(!e(a.target).parents().andSelf().filter(d._collection).length){d._collection.fadeOut(d.fade,
223
+ function(){d._collection.detach()});e("div.dt-button-background").off("click.dtb-collection");m.background(false,d.backgroundClassName,d.fade);e("body").off("click.dtb-collection");b.off("buttons-action.b-internal")}})},10);if(d.autoClose)b.on("buttons-action.b-internal",function(){e("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(a,b){if(l.copyHtml5)return"copyHtml5";if(l.copyFlash&&l.copyFlash.available(a,
224
+ b))return"copyFlash"},csv:function(a,b){if(l.csvHtml5&&l.csvHtml5.available(a,b))return"csvHtml5";if(l.csvFlash&&l.csvFlash.available(a,b))return"csvFlash"},excel:function(a,b){if(l.excelHtml5&&l.excelHtml5.available(a,b))return"excelHtml5";if(l.excelFlash&&l.excelFlash.available(a,b))return"excelFlash"},pdf:function(a,b){if(l.pdfHtml5&&l.pdfHtml5.available(a,b))return"pdfHtml5";if(l.pdfFlash&&l.pdfFlash.available(a,b))return"pdfFlash"},pageLength:function(a){var a=a.settings()[0].aLengthMenu,b=e.isArray(a[0])?
225
+ a[0]:a,c=e.isArray(a[0])?a[1]:a,d=function(a){return a.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},a.page.len())};return{extend:"collection",text:d,className:"buttons-page-length",autoClose:!0,buttons:e.map(b,function(a,b){return{text:c[b],action:function(b,c){c.page.len(a).draw()},init:function(b,c,d){var e=this,c=function(){e.active(b.page.len()===a)};b.on("length.dt"+d.namespace,c);c()},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}),init:function(a,b,c){var e=
226
+ this;a.on("length.dt"+c.namespace,function(){e.text(d(a))})},destroy:function(a,b,c){a.off("length.dt"+c.namespace)}}}});j.Api.register("buttons()",function(a,b){b===n&&(b=a,a=n);return this.iterator(!0,"table",function(c){if(c._buttons)return m.buttonSelector(m.instanceSelector(a,c._buttons),b)},!0)});j.Api.register("button()",function(a,b){var c=this.buttons(a,b);1<c.length&&c.splice(1,c.length);return c});j.Api.registerPlural("buttons().active()","button().active()",function(a){return a===n?this.map(function(a){return a.inst.active(a.idx)}):
227
+ this.each(function(b){b.inst.active(b.idx,a)})});j.Api.registerPlural("buttons().action()","button().action()",function(a){return a===n?this.map(function(a){return a.inst.action(a.idx)}):this.each(function(b){b.inst.action(b.idx,a)})});j.Api.register(["buttons().enable()","button().enable()"],function(a){return this.each(function(b){b.inst.enable(b.idx,a)})});j.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(a){a.inst.disable(a.idx)})});j.Api.registerPlural("buttons().nodes()",
228
+ "button().node()",function(){var a=e();e(this.each(function(b){a=a.add(b.inst.node(b.idx))}));return a});j.Api.registerPlural("buttons().text()","button().text()",function(a){return a===n?this.map(function(a){return a.inst.text(a.idx)}):this.each(function(b){b.inst.text(b.idx,a)})});j.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(a){a.inst.node(a.idx).trigger("click")})});j.Api.registerPlural("buttons().containers()","buttons().container()",function(){var a=
229
+ e();e(this.each(function(b){a=a.add(b.inst.container())}));return a});j.Api.register("button().add()",function(a,b){1===this.length&&this[0].inst.add(a,b);return this.button(a)});j.Api.register("buttons().destroy()",function(){this.pluck("inst").unique().each(function(a){a.destroy()});return this});j.Api.registerPlural("buttons().remove()","buttons().remove()",function(){this.each(function(a){a.inst.removePrep(a.idx)});this.pluck("inst").unique().each(function(a){a.removeCommit()});return this});
230
+ var q;j.Api.register("buttons.info()",function(a,b,c){var d=this;if(!1===a)return e("#datatables_buttons_info").fadeOut(function(){e(this).remove()}),clearTimeout(q),q=null,this;q&&clearTimeout(q);e("#datatables_buttons_info").length&&e("#datatables_buttons_info").remove();e('<div id="datatables_buttons_info" class="dt-button-info"/>').html(a?"<h2>"+a+"</h2>":"").append(e("<div/>")["string"===typeof b?"html":"append"](b)).css("display","none").appendTo("body").fadeIn();c!==n&&0!==c&&(q=setTimeout(function(){d.buttons.info(!1)},
231
+ c));return this});j.Api.register("buttons.exportData()",function(a){if(this.context.length){for(var b=new j.Api(this.context[0]),c=e.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(a){return d(a)},footer:function(a){return d(a)},body:function(a){return d(a)}}},a),d=function(a){if("string"!==typeof a)return a;c.stripHtml&&(a=a.replace(/<.*?>/g,""));c.trim&&(a=a.replace(/^\s+|\s+$/g,
232
+ ""));c.stripNewlines&&(a=a.replace(/\n/g," "));c.decodeEntities&&(s.innerHTML=a,a=s.value);return a},a=b.columns(c.columns).indexes().map(function(a){return c.format.header(b.column(a).header().innerHTML,a)}).toArray(),f=b.table().footer()?b.columns(c.columns).indexes().map(function(a){var d=b.column(a).footer();return c.format.footer(d?d.innerHTML:"",a)}).toArray():null,h=b.rows(c.rows,c.modifier).indexes().toArray(),h=b.cells(h,c.columns).render(c.orthogonal).toArray(),i=a.length,k=0<i?h.length/
233
+ i:0,g=Array(k),l=0,m=0;m<k;m++){for(var n=Array(i),o=0;o<i;o++)n[o]=c.format.body(h[l],o,m),l++;g[m]=n}return{header:a,footer:f,body:g}}});var s=e("<textarea/>")[0];e.fn.dataTable.Buttons=m;e.fn.DataTable.Buttons=m;e(o).on("init.dt plugin-init.dt",function(a,b){if("dt"===a.namespace){var c=b.oInit.buttons||j.defaults.buttons;c&&!b._buttons&&(new m(b,c)).container()}});j.ext.feature.push({fnInit:function(a){var a=new j.Api(a),b=a.init().buttons||j.defaults.buttons;return(new m(a,b)).container()},cFeature:"B"});
234
+ return m});
235
+
236
+
237
+ /*!
238
+ Bootstrap integration for DataTables' Buttons
239
+ ©2015 SpryMedia Ltd - datatables.net/license
240
+ */
241
+ (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-buttons"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net-bs")(a,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c){var a=c.fn.dataTable;c.extend(!0,a.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group"},
242
+ button:{className:"btn btn-default"},collection:{tag:"ul",className:"dt-button-collection dropdown-menu",button:{tag:"li",className:"dt-button"},buttonLiner:{tag:"a",className:""}}}});a.ext.buttons.collection.text=function(a){return a.i18n("buttons.collection",'Collection <span class="caret"/>')};return a.Buttons});
243
+
244
+
245
+ (function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(d){return g(d,window,document)}):"object"===typeof exports?module.exports=function(d,e){d||(d=window);if(!e||!e.fn.dataTable)e=require("datatables.net")(d,e).$;e.fn.dataTable.Buttons||require("datatables.net-buttons")(d,e);return g(e,d,d.document)}:g(jQuery,window,document)})(function(g,d,e,h){d=g.fn.dataTable;g.extend(d.ext.buttons,{colvis:function(b,a){return{extend:"collection",
246
+ text:function(c){return c.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:a.columns}]}},columnsToggle:function(b,a){return b.columns(a.columns).indexes().map(function(c){return{extend:"columnToggle",columns:c}}).toArray()},columnToggle:function(b,a){return{extend:"columnVisibility",columns:a.columns}},columnsVisibility:function(b,a){return b.columns(a.columns).indexes().map(function(c){return{extend:"columnVisibility",columns:c,visibility:a.visibility}}).toArray()},
247
+ columnVisibility:{columns:h,text:function(b,a,c){return c._columnText(b,c.columns)},className:"buttons-columnVisibility",action:function(b,a,c,f){b=a.columns(f.columns);a=b.visible();b.visible(f.visibility!==h?f.visibility:!(a.length&&a[0]))},init:function(b,a,c){var f=this,a=b.column(c.columns);b.on("column-visibility.dt"+c.namespace,function(b,a,d,e){!a.bDestroying&&d===c.columns&&f.active(e)}).on("column-reorder.dt"+c.namespace,function(a,d,e){1===b.columns(c.columns).count()&&("number"===typeof c.columns&&
248
+ (c.columns=e.mapping[c.columns]),a=b.column(c.columns),f.text(c._columnText(b,c.columns)),f.active(a.visible()))});this.active(a.visible())},destroy:function(b,a,c){b.off("column-visibility.dt"+c.namespace).off("column-reorder.dt"+c.namespace)},_columnText:function(b,a){var c=b.column(a).index();return b.settings()[0].aoColumns[c].sTitle.replace(/\n/g," ").replace(/<.*?>/g,"").replace(/^\s+|\s+$/g,"")}},colvisRestore:{className:"buttons-colvisRestore",text:function(b){return b.i18n("buttons.colvisRestore",
249
+ "Restore visibility")},init:function(b,a,c){c._visOriginal=b.columns().indexes().map(function(a){return b.column(a).visible()}).toArray()},action:function(b,a,c,d){a.columns().every(function(b){b=a.colReorder&&a.colReorder.transpose?a.colReorder.transpose(b,"toOriginal"):b;this.visible(d._visOriginal[b])})}},colvisGroup:{className:"buttons-colvisGroup",action:function(b,a,c,d){a.columns(d.show).visible(!0);a.columns(d.hide).visible(!1)},show:[],hide:[]}});return d.Buttons});
250
+
251
+
252
+ (function(g){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(d){return g(d,window,document)}):"object"===typeof exports?module.exports=function(d,f){d||(d=window);if(!f||!f.fn.dataTable)f=require("datatables.net")(d,f).$;f.fn.dataTable.Buttons||require("datatables.net-buttons")(d,f);return g(f,d,d.document)}:g(jQuery,window,document)})(function(g,d,f,k){var l=g.fn.dataTable,j;if("undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))j=
253
+ void 0;else{var x=d.document,q=x.createElementNS("http://www.w3.org/1999/xhtml","a"),E="download"in q,r=d.webkitRequestFileSystem,y=d.requestFileSystem||r||d.mozRequestFileSystem,F=function(a){(d.setImmediate||d.setTimeout)(function(){throw a;},0)},s=0,t=function(a){var b=function(){"string"===typeof a?(d.URL||d.webkitURL||d).revokeObjectURL(a):a.remove()};d.chrome?b():setTimeout(b,500)},u=function(a,b,e){for(var b=[].concat(b),c=b.length;c--;){var d=a["on"+b[c]];if("function"===typeof d)try{d.call(a,
254
+ e||a)}catch(i){F(i)}}},A=function(a){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["",a],{type:a.type}):a},B=function(a,b){var a=A(a),e=this,c=a.type,z=!1,i,g,m=function(){u(e,["writestart","progress","write","writeend"])},o=function(){if(z||!i)i=(d.URL||d.webkitURL||d).createObjectURL(a);g?g.location.href=i:d.open(i,"_blank")===k&&"undefined"!==typeof safari&&(d.location.href=i);e.readyState=e.DONE;m();t(i)},n=function(a){return function(){if(e.readyState!==
255
+ e.DONE)return a.apply(this,arguments)}},f={create:!0,exclusive:!1},h;e.readyState=e.INIT;b||(b="download");if(E)i=(d.URL||d.webkitURL||d).createObjectURL(a),q.href=i,q.download=b,c=x.createEvent("MouseEvents"),c.initMouseEvent("click",!0,!1,d,0,0,0,0,0,!1,!1,!1,!1,0,null),q.dispatchEvent(c),e.readyState=e.DONE,m(),t(i);else{d.chrome&&(c&&"application/octet-stream"!==c)&&(h=a.slice||a.webkitSlice,a=h.call(a,0,a.size,"application/octet-stream"),z=!0);r&&"download"!==b&&(b+=".download");if("application/octet-stream"===
256
+ c||r)g=d;y?(s+=a.size,y(d.TEMPORARY,s,n(function(c){c.root.getDirectory("saved",f,n(function(c){var d=function(){c.getFile(b,f,n(function(b){b.createWriter(n(function(c){c.onwriteend=function(a){g.location.href=b.toURL();e.readyState=e.DONE;u(e,"writeend",a);t(b)};c.onerror=function(){var a=c.error;a.code!==a.ABORT_ERR&&o()};["writestart","progress","write","abort"].forEach(function(a){c["on"+a]=e["on"+a]});c.write(a);e.abort=function(){c.abort();e.readyState=e.DONE};e.readyState=e.WRITING}),o)}),
257
+ o)};c.getFile(b,{create:false},n(function(a){a.remove();d()}),n(function(a){a.code===a.NOT_FOUND_ERR?d():o()}))}),o)}),o)):o()}},h=B.prototype;"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?j=function(a,b){return navigator.msSaveOrOpenBlob(A(a),b)}:(h.abort=function(){this.readyState=this.DONE;u(this,"abort")},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,j=function(a,b){return new B(a,b)})}var v=function(a,
258
+ b){var e="*"===a.filename&&"*"!==a.title&&a.title!==k?a.title:a.filename;"function"===typeof e&&(e=e());-1!==e.indexOf("*")&&(e=e.replace("*",g("title").text()));e=e.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");return b===k||!0===b?e+a.extension:e},G=function(a){var b="Sheet1";a.sheetName&&(b=a.sheetName.replace(/[\[\]\*\/\\\?\:]/g,""));return b},H=function(a){a=a.title;"function"===typeof a&&(a=a());return-1!==a.indexOf("*")?a.replace("*",g("title").text()):a},w=function(a){return a.newline?
259
+ a.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},C=function(a,b){for(var e=w(b),c=a.buttons.exportData(b.exportOptions),d=b.fieldBoundary,i=b.fieldSeparator,g=RegExp(d,"g"),m=b.escapeChar!==k?b.escapeChar:"\\",f=function(a){for(var b="",c=0,e=a.length;c<e;c++)0<c&&(b+=i),b+=d?d+(""+a[c]).replace(g,m+d)+d:a[c];return b},n=b.header?f(c.header)+e:"",h=b.footer&&c.footer?e+f(c.footer):"",j=[],l=0,p=c.body.length;l<p;l++)j.push(f(c.body[l]));return{str:n+j.join(e)+h,rows:j.length}},D=function(){return-1!==
260
+ navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera")},p={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/></Relationships>',
261
+ "[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\t<Default Extension="xml" ContentType="application/xml"/>\t<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\t<Default Extension="jpeg" ContentType="image/jpeg"/>\t<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>\t<Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/></Types>',
262
+ "xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\t<fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/>\t<workbookPr showInkAnnotation="0" autoCompressPictures="0"/>\t<bookViews>\t\t<workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/>\t</bookViews>\t<sheets>\t\t<sheet name="__SHEET_NAME__" sheetId="1" r:id="rId1"/>\t</sheets></workbook>',
263
+ "xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\t<sheetData>\t\t__DATA__\t</sheetData></worksheet>'};l.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",
264
+ text:function(a){return a.i18n("buttons.copy","Copy")},action:function(a,b,e,c){var a=C(b,c),d=a.str,e=g("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});c.customize&&(d=c.customize(d,c));c=g("<textarea readonly/>").val(d).appendTo(e);if(f.queryCommandSupported("copy")){e.appendTo(b.table().container());c[0].focus();c[0].select();try{f.execCommand("copy");e.remove();b.buttons.info(b.i18n("buttons.copyTitle","Copy to clipboard"),b.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",
265
+ _:"Copied %d rows to clipboard"},a.rows),2E3);return}catch(i){}}a=g("<span>"+b.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(e);b.buttons.info(b.i18n("buttons.copyTitle","Copy to clipboard"),a,0);c[0].focus();c[0].select();var h=g(a).closest(".dt-button-info"),m=function(){h.off("click.buttons-copy");g(f).off(".buttons-copy");b.buttons.info(!1)};h.on("click.buttons-copy",
266
+ m);g(f).on("keydown.buttons-copy",function(a){27===a.keyCode&&m()}).on("copy.buttons-copy cut.buttons-copy",function(){m()})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1};l.ext.buttons.csvHtml5={className:"buttons-csv buttons-html5",available:function(){return d.FileReader!==k&&d.Blob},text:function(a){return a.i18n("buttons.csv","CSV")},action:function(a,b,d,c){w(c);a=C(b,c).str;b=c.charset;c.customize&&(a=c.customize(a,c));!1!==b?(b||(b=f.characterSet||f.charset),b&&
267
+ (b=";charset="+b)):b="";j(new Blob([a],{type:"text/csv"+b}),v(c))},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1};l.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return d.FileReader!==k&&d.JSZip!==k&&!D()},text:function(a){return a.i18n("buttons.excel","Excel")},action:function(a,b,e,c){a="";b=b.buttons.exportData(c.exportOptions);e=function(a){for(var b=[],c=0,d=a.length;c<
268
+ d;c++){if(null===a[c]||a[c]===k)a[c]="";b.push("number"===typeof a[c]||a[c].match&&g.trim(a[c]).match(/^-?\d+(\.\d+)?$/)&&"0"!==a[c].charAt(0)?'<c t="n"><v>'+a[c]+"</v></c>":'<c t="inlineStr"><is><t>'+(!a[c].replace?a[c]:a[c].replace(/&(?!amp;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""))+"</t></is></c>")}return"<row>"+b.join("")+"</row>"};c.header&&(a+=e(b.header));for(var f=0,i=b.body.length;f<i;f++)a+=e(b.body[f]);c.footer&&(a+=e(b.footer));
269
+ var b=new d.JSZip,e=b.folder("_rels"),f=b.folder("xl"),i=b.folder("xl/_rels"),h=b.folder("xl/worksheets");b.file("[Content_Types].xml",p["[Content_Types].xml"]);e.file(".rels",p["_rels/.rels"]);f.file("workbook.xml",p["xl/workbook.xml"].replace("__SHEET_NAME__",G(c)));i.file("workbook.xml.rels",p["xl/_rels/workbook.xml.rels"]);h.file("sheet1.xml",p["xl/worksheets/sheet1.xml"].replace("__DATA__",a));j(b.generate({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),
270
+ v(c))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1};l.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return d.FileReader!==k&&d.pdfMake},text:function(a){return a.i18n("buttons.pdf","PDF")},action:function(a,b,e,c){w(c);a=b.buttons.exportData(c.exportOptions);b=[];c.header&&b.push(g.map(a.header,function(a){return{text:"string"===typeof a?a:a+"",style:"tableHeader"}}));for(var f=0,e=a.body.length;f<e;f++)b.push(g.map(a.body[f],function(a){return{text:"string"===
271
+ typeof a?a:a+"",style:f%2?"tableBodyEven":"tableBodyOdd"}}));c.footer&&b.push(g.map(a.footer,function(a){return{text:"string"===typeof a?a:a+"",style:"tableFooter"}}));a={pageSize:c.pageSize,pageOrientation:c.orientation,content:[{table:{headerRows:1,body:b},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",
272
+ fontSize:15},message:{}},defaultStyle:{fontSize:10}};c.message&&a.content.unshift({text:c.message,style:"message",margin:[0,0,0,12]});c.title&&a.content.unshift({text:H(c,!1),style:"title",margin:[0,0,0,12]});c.customize&&c.customize(a,c);a=d.pdfMake.createPdf(a);"open"===c.download&&!D()?a.open():a.getBuffer(function(a){a=new Blob([a],{type:"application/pdf"});j(a,v(c))})},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,message:null,
273
+ customize:null,download:"download"};return l.Buttons});
274
+
275
+
276
+ (function(d){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(e){return d(e,window,document)}):"object"===typeof exports?module.exports=function(e,a){e||(e=window);if(!a||!a.fn.dataTable)a=require("datatables.net")(e,a).$;a.fn.dataTable.Buttons||require("datatables.net-buttons")(e,a);return d(a,e,e.document)}:d(jQuery,window,document)})(function(d,e,a){var i=d.fn.dataTable,g=a.createElement("a");i.ext.buttons.print={className:"buttons-print",
277
+ text:function(c){return c.i18n("buttons.print","Print")},action:function(c,b,a,f){c=b.buttons.exportData(f.exportOptions);a=function(c,a){for(var b="<tr>",d=0,e=c.length;d<e;d++)b+="<"+a+">"+c[d]+"</"+a+">";return b+"</tr>"};b='<table class="'+b.table().node().className+'">';f.header&&(b+="<thead>"+a(c.header,"th")+"</thead>");for(var b=b+"<tbody>",j=0,i=c.body.length;j<i;j++)b+=a(c.body[j],"td");b+="</tbody>";f.footer&&(b+="<tfoot>"+a(c.footer,"th")+"</tfoot>");var h=e.open("",""),c=f.title;"function"===
278
+ typeof c&&(c=c());-1!==c.indexOf("*")&&(c=c.replace("*",d("title").text()));h.document.close();var k="<title>"+c+"</title>";d("style, link").each(function(){var c=k,b=d(this).clone()[0],a;"link"===b.nodeName.toLowerCase()&&(g.href=b.href,a=g.host,-1===a.indexOf("/")&&0!==g.pathname.indexOf("/")&&(a+="/"),b.href=g.protocol+"//"+a+g.pathname+g.search);k=c+b.outerHTML});d(h.document.head).html(k);d(h.document.body).html("<h1>"+c+"</h1><div>"+f.message+"</div>"+b);f.customize&&f.customize(h);setTimeout(function(){f.autoPrint&&
279
+ (h.print(),h.close())},250)},title:"*",message:"",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null};return i.Buttons});
280
+
281
+
282
+ /*!
283
+ ColReorder 1.3.1
284
+ ©2010-2015 SpryMedia Ltd - datatables.net/license
285
+ */
286
+ (function(f){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return f(n,window,document)}):"object"===typeof exports?module.exports=function(n,k){n||(n=window);if(!k||!k.fn.dataTable)k=require("datatables.net")(n,k).$;return f(k,n,n.document)}:f(jQuery,window,document)})(function(f,n,k,r){function p(a){for(var c=[],d=0,e=a.length;d<e;d++)c[a[d]]=d;return c}function o(a,c,d){c=a.splice(c,1)[0];a.splice(d,0,c)}function q(a,c,d){for(var e=[],b=0,f=a.childNodes.length;b<
287
+ f;b++)1==a.childNodes[b].nodeType&&e.push(a.childNodes[b]);c=e[c];null!==d?a.insertBefore(c,e[d]):a.appendChild(c)}var s=f.fn.dataTable;f.fn.dataTableExt.oApi.fnColReorder=function(a,c,d,e){var b,g,i,l,h,k=a.aoColumns.length,j;h=function(a,b,c){if(a[b]&&"function"!==typeof a[b]){var d=a[b].split("."),e=d.shift();isNaN(1*e)||(a[b]=c[1*e]+"."+d.join("."))}};if(c!=d)if(0>c||c>=k)this.oApi._fnLog(a,1,"ColReorder 'from' index is out of bounds: "+c);else if(0>d||d>=k)this.oApi._fnLog(a,1,"ColReorder 'to' index is out of bounds: "+
288
+ d);else{i=[];b=0;for(g=k;b<g;b++)i[b]=b;o(i,c,d);var m=p(i);b=0;for(g=a.aaSorting.length;b<g;b++)a.aaSorting[b][0]=m[a.aaSorting[b][0]];if(null!==a.aaSortingFixed){b=0;for(g=a.aaSortingFixed.length;b<g;b++)a.aaSortingFixed[b][0]=m[a.aaSortingFixed[b][0]]}b=0;for(g=k;b<g;b++){j=a.aoColumns[b];i=0;for(l=j.aDataSort.length;i<l;i++)j.aDataSort[i]=m[j.aDataSort[i]];j.idx=m[j.idx]}f.each(a.aLastSort,function(b,c){a.aLastSort[b].src=m[c.src]});b=0;for(g=k;b<g;b++)j=a.aoColumns[b],"number"==typeof j.mData?
289
+ j.mData=m[j.mData]:f.isPlainObject(j.mData)&&(h(j.mData,"_",m),h(j.mData,"filter",m),h(j.mData,"sort",m),h(j.mData,"type",m));if(a.aoColumns[c].bVisible){h=this.oApi._fnColumnIndexToVisible(a,c);l=null;for(b=d<c?d:d+1;null===l&&b<k;)l=this.oApi._fnColumnIndexToVisible(a,b),b++;i=a.nTHead.getElementsByTagName("tr");b=0;for(g=i.length;b<g;b++)q(i[b],h,l);if(null!==a.nTFoot){i=a.nTFoot.getElementsByTagName("tr");b=0;for(g=i.length;b<g;b++)q(i[b],h,l)}b=0;for(g=a.aoData.length;b<g;b++)null!==a.aoData[b].nTr&&
290
+ q(a.aoData[b].nTr,h,l)}o(a.aoColumns,c,d);b=0;for(g=k;b<g;b++)a.oApi._fnColumnOptions(a,b,{});o(a.aoPreSearchCols,c,d);b=0;for(g=a.aoData.length;b<g;b++){l=a.aoData[b];if(j=l.anCells){o(j,c,d);i=0;for(h=j.length;i<h;i++)j[i]&&j[i]._DT_CellIndex&&(j[i]._DT_CellIndex.column=i)}"dom"!==l.src&&f.isArray(l._aData)&&o(l._aData,c,d)}b=0;for(g=a.aoHeader.length;b<g;b++)o(a.aoHeader[b],c,d);if(null!==a.aoFooter){b=0;for(g=a.aoFooter.length;b<g;b++)o(a.aoFooter[b],c,d)}(new f.fn.dataTable.Api(a)).rows().invalidate();
291
+ b=0;for(g=k;b<g;b++)f(a.aoColumns[b].nTh).off("click.DT"),this.oApi._fnSortAttachListener(a,a.aoColumns[b].nTh,b);f(a.oInstance).trigger("column-reorder.dt",[a,{from:c,to:d,mapping:m,drop:e,iFrom:c,iTo:d,aiInvertMapping:m}])}};var h=function(a,c){var d=(new f.fn.dataTable.Api(a)).settings()[0];if(d._colReorder)return d._colReorder;!0===c&&(c={});var e=f.fn.dataTable.camelToHungarian;e&&(e(h.defaults,h.defaults,!0),e(h.defaults,c||{}));this.s={dt:null,init:f.extend(!0,{},h.defaults,c),fixed:0,fixedRight:0,
292
+ reorderCallback:null,mouse:{startX:-1,startY:-1,offsetX:-1,offsetY:-1,target:-1,targetIndex:-1,fromIndex:-1},aoTargets:[]};this.dom={drag:null,pointer:null};this.s.dt=d;this.s.dt._colReorder=this;this._fnConstruct();return this};f.extend(h.prototype,{fnReset:function(){this._fnOrderColumns(this.fnOrder());return this},fnGetCurrentOrder:function(){return this.fnOrder()},fnOrder:function(a,c){var d=[],e,b,g=this.s.dt.aoColumns;if(a===r){e=0;for(b=g.length;e<b;e++)d.push(g[e]._ColReorder_iOrigCol);return d}if(c){g=
293
+ this.fnOrder();e=0;for(b=a.length;e<b;e++)d.push(f.inArray(a[e],g));a=d}this._fnOrderColumns(p(a));return this},fnTranspose:function(a,c){c||(c="toCurrent");var d=this.fnOrder(),e=this.s.dt.aoColumns;return"toCurrent"===c?!f.isArray(a)?f.inArray(a,d):f.map(a,function(a){return f.inArray(a,d)}):!f.isArray(a)?e[a]._ColReorder_iOrigCol:f.map(a,function(a){return e[a]._ColReorder_iOrigCol})},_fnConstruct:function(){var a=this,c=this.s.dt.aoColumns.length,d=this.s.dt.nTable,e;this.s.init.iFixedColumns&&
294
+ (this.s.fixed=this.s.init.iFixedColumns);this.s.init.iFixedColumnsLeft&&(this.s.fixed=this.s.init.iFixedColumnsLeft);this.s.fixedRight=this.s.init.iFixedColumnsRight?this.s.init.iFixedColumnsRight:0;this.s.init.fnReorderCallback&&(this.s.reorderCallback=this.s.init.fnReorderCallback);for(e=0;e<c;e++)e>this.s.fixed-1&&e<c-this.s.fixedRight&&this._fnMouseListener(e,this.s.dt.aoColumns[e].nTh),this.s.dt.aoColumns[e]._ColReorder_iOrigCol=e;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(b,
295
+ c){a._fnStateSave.call(a,c)},"ColReorder_State");var b=null;this.s.init.aiOrder&&(b=this.s.init.aiOrder.slice());this.s.dt.oLoadedState&&("undefined"!=typeof this.s.dt.oLoadedState.ColReorder&&this.s.dt.oLoadedState.ColReorder.length==this.s.dt.aoColumns.length)&&(b=this.s.dt.oLoadedState.ColReorder);if(b)if(a.s.dt._bInitComplete)c=p(b),a._fnOrderColumns.call(a,c);else{var g=!1;f(d).on("draw.dt.colReorder",function(){if(!a.s.dt._bInitComplete&&!g){g=true;var c=p(b);a._fnOrderColumns.call(a,c)}})}else this._fnSetColumnIndexes();
296
+ f(d).on("destroy.dt.colReorder",function(){f(d).off("destroy.dt.colReorder draw.dt.colReorder");f(a.s.dt.nTHead).find("*").off(".ColReorder");f.each(a.s.dt.aoColumns,function(a,b){f(b.nTh).removeAttr("data-column-index")});a.s.dt._colReorder=null;a.s=null})},_fnOrderColumns:function(a){var c=!1;if(a.length!=this.s.dt.aoColumns.length)this.s.dt.oInstance.oApi._fnLog(this.s.dt,1,"ColReorder - array reorder does not match known number of columns. Skipping.");else{for(var d=0,e=a.length;d<e;d++){var b=
297
+ f.inArray(d,a);d!=b&&(o(a,b,d),this.s.dt.oInstance.fnColReorder(b,d,!0),c=!0)}this._fnSetColumnIndexes();c&&((""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))}},_fnStateSave:function(a){var c,d,e,b=this.s.dt.aoColumns;a.ColReorder=[];if(a.aaSorting){for(c=0;c<a.aaSorting.length;c++)a.aaSorting[c][0]=b[a.aaSorting[c][0]]._ColReorder_iOrigCol;
298
+ var g=f.extend(!0,[],a.aoSearchCols);c=0;for(d=b.length;c<d;c++)e=b[c]._ColReorder_iOrigCol,a.aoSearchCols[e]=g[c],a.abVisCols[e]=b[c].bVisible,a.ColReorder.push(e)}else if(a.order){for(c=0;c<a.order.length;c++)a.order[c][0]=b[a.order[c][0]]._ColReorder_iOrigCol;g=f.extend(!0,[],a.columns);c=0;for(d=b.length;c<d;c++)e=b[c]._ColReorder_iOrigCol,a.columns[e]=g[c],a.ColReorder.push(e)}},_fnMouseListener:function(a,c){var d=this;f(c).on("mousedown.ColReorder",function(a){a.preventDefault();d._fnMouseDown.call(d,
299
+ a,c)})},_fnMouseDown:function(a,c){var d=this,e=f(a.target).closest("th, td").offset(),b=parseInt(f(c).attr("data-column-index"),10);b!==r&&(this.s.mouse.startX=a.pageX,this.s.mouse.startY=a.pageY,this.s.mouse.offsetX=a.pageX-e.left,this.s.mouse.offsetY=a.pageY-e.top,this.s.mouse.target=this.s.dt.aoColumns[b].nTh,this.s.mouse.targetIndex=b,this.s.mouse.fromIndex=b,this._fnRegions(),f(k).on("mousemove.ColReorder",function(a){d._fnMouseMove.call(d,a)}).on("mouseup.ColReorder",function(a){d._fnMouseUp.call(d,
300
+ a)}))},_fnMouseMove:function(a){if(null===this.dom.drag){if(5>Math.pow(Math.pow(a.pageX-this.s.mouse.startX,2)+Math.pow(a.pageY-this.s.mouse.startY,2),0.5))return;this._fnCreateDragNode()}this.dom.drag.css({left:a.pageX-this.s.mouse.offsetX,top:a.pageY-this.s.mouse.offsetY});for(var c=!1,d=this.s.mouse.toIndex,e=1,b=this.s.aoTargets.length;e<b;e++)if(a.pageX<this.s.aoTargets[e-1].x+(this.s.aoTargets[e].x-this.s.aoTargets[e-1].x)/2){this.dom.pointer.css("left",this.s.aoTargets[e-1].x);this.s.mouse.toIndex=
301
+ this.s.aoTargets[e-1].to;c=!0;break}c||(this.dom.pointer.css("left",this.s.aoTargets[this.s.aoTargets.length-1].x),this.s.mouse.toIndex=this.s.aoTargets[this.s.aoTargets.length-1].to);this.s.init.bRealtime&&d!==this.s.mouse.toIndex&&(this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!1),this.s.mouse.fromIndex=this.s.mouse.toIndex,this._fnRegions())},_fnMouseUp:function(){f(k).off("mousemove.ColReorder mouseup.ColReorder");null!==this.dom.drag&&(this.dom.drag.remove(),this.dom.pointer.remove(),
302
+ this.dom.drag=null,this.dom.pointer=null,this.s.dt.oInstance.fnColReorder(this.s.mouse.fromIndex,this.s.mouse.toIndex,!0),this._fnSetColumnIndexes(),(""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY)&&this.s.dt.oInstance.fnAdjustColumnSizing(!1),this.s.dt.oInstance.oApi._fnSaveState(this.s.dt),null!==this.s.reorderCallback&&this.s.reorderCallback.call(this))},_fnRegions:function(){var a=this.s.dt.aoColumns;this.s.aoTargets.splice(0,this.s.aoTargets.length);this.s.aoTargets.push({x:f(this.s.dt.nTable).offset().left,
303
+ to:0});for(var c=0,d=f(a[0].nTh).offset().left,e=0,b=a.length;e<b;e++)e!=this.s.mouse.fromIndex&&c++,a[e].bVisible&&"none"!==a[e].nTh.style.display&&(d+=f(a[e].nTh).outerWidth(),this.s.aoTargets.push({x:d,to:c}));0!==this.s.fixedRight&&this.s.aoTargets.splice(this.s.aoTargets.length-this.s.fixedRight);0!==this.s.fixed&&this.s.aoTargets.splice(0,this.s.fixed)},_fnCreateDragNode:function(){var a=""!==this.s.dt.oScroll.sX||""!==this.s.dt.oScroll.sY,c=this.s.dt.aoColumns[this.s.mouse.targetIndex].nTh,
304
+ d=c.parentNode,e=d.parentNode,b=e.parentNode,g=f(c).clone();this.dom.drag=f(b.cloneNode(!1)).addClass("DTCR_clonedTable").append(f(e.cloneNode(!1)).append(f(d.cloneNode(!1)).append(g[0]))).css({position:"absolute",top:0,left:0,width:f(c).outerWidth(),height:f(c).outerHeight()}).appendTo("body");this.dom.pointer=f("<div></div>").addClass("DTCR_pointer").css({position:"absolute",top:a?f("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:f(this.s.dt.nTable).offset().top,height:a?f("div.dataTables_scroll",
305
+ this.s.dt.nTableWrapper).height():f(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){f.each(this.s.dt.aoColumns,function(a,c){f(c.nTh).attr("data-column-index",a)})}});h.defaults={aiOrder:null,bRealtime:!0,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null};h.version="1.3.1";f.fn.dataTable.ColReorder=h;f.fn.DataTable.ColReorder=h;"function"==typeof f.fn.dataTable&&"function"==typeof f.fn.dataTableExt.fnVersionCheck&&f.fn.dataTableExt.fnVersionCheck("1.10.8")?
306
+ f.fn.dataTableExt.aoFeatures.push({fnInit:function(a){var c=a.oInstance;a._colReorder?c.oApi._fnLog(a,1,"ColReorder attempted to initialise twice. Ignoring second"):(c=a.oInit,new h(a,c.colReorder||c.oColReorder||{}));return null},cFeature:"R",sFeature:"ColReorder"}):alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download");f(k).on("preInit.dt.colReorder",function(a,c){if("dt"===a.namespace){var d=c.oInit.colReorder,e=s.defaults.colReorder;if(d||e)e=f.extend({},
307
+ d,e),!1!==d&&new h(c,e)}});f.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(a){a._colReorder.fnReset()})});f.fn.dataTable.Api.register("colReorder.order()",function(a,c){return a?this.iterator("table",function(d){d._colReorder.fnOrder(a,c)}):this.context.length?this.context[0]._colReorder.fnOrder():null});f.fn.dataTable.Api.register("colReorder.transpose()",function(a,c){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(a,
308
+ c):a});return h});
309
+
310
+
311
+ /*!
312
+ Select for DataTables 1.1.2
313
+ 2015-2016 SpryMedia Ltd - datatables.net/license/mit
314
+ */
315
+ (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(j){return e(j,window,document)}):"object"===typeof exports?module.exports=function(j,l){j||(j=window);if(!l||!l.fn.dataTable)l=require("datatables.net")(j,l).$;return e(l,j,j.document)}:e(jQuery,window,document)})(function(e,j,l,i){function s(a){var b=a.settings()[0]._select.selector;e(a.table().body()).off("mousedown.dtSelect",b).off("mouseup.dtSelect",b).off("click.dtSelect",b);e("body").off("click.dtSelect")}
316
+ function u(a){var b=e(a.table().body()),c=a.settings()[0],d=c._select.selector;b.on("mousedown.dtSelect",d,function(c){if(c.shiftKey)b.css("-moz-user-select","none").one("selectstart.dtSelect",d,function(){return!1})}).on("mouseup.dtSelect",d,function(){b.css("-moz-user-select","")}).on("click.dtSelect",d,function(c){var b=a.select.items();if(!j.getSelection||!j.getSelection().toString()){var d=a.settings()[0];if(e(c.target).closest("div.dataTables_wrapper")[0]==a.table().container()){var m=e(c.target).closest("td, th"),
317
+ h=a.cell(m).index();a.cell(m).any()&&("row"===b?(b=h.row,t(c,a,d,"row",b)):"column"===b?(b=a.cell(m).index().column,t(c,a,d,"column",b)):"cell"===b&&(b=a.cell(m).index(),t(c,a,d,"cell",b)),d._select_lastCell=h)}}});e("body").on("click.dtSelect",function(b){c._select.blurable&&!e(b.target).parents().filter(a.table().container()).length&&(e(b.target).parents("div.DTE").length||q(c,!0))})}function k(a,b,c,d){if(!d||a.flatten().length)c.unshift(a),e(a.table().node()).triggerHandler(b+".dt",c)}function v(a){var b=
318
+ a.settings()[0];if(b._select.info&&b.aanFeatures.i){var c=e('<span class="select-info"/>'),d=function(b,d){c.append(e('<span class="select-item"/>').append(a.i18n("select."+b+"s",{_:"%d "+b+"s selected","0":"",1:"1 "+b+" selected"},d)))};d("row",a.rows({selected:!0}).flatten().length);d("column",a.columns({selected:!0}).flatten().length);d("cell",a.cells({selected:!0}).flatten().length);e.each(b.aanFeatures.i,function(b,a){var a=e(a),d=a.children("span.select-info");d.length&&d.remove();""!==c.text()&&
319
+ a.append(c)})}}function q(a,b){if(b||"single"===a._select.style){var c=new h.Api(a);c.rows({selected:!0}).deselect();c.columns({selected:!0}).deselect();c.cells({selected:!0}).deselect()}}function t(a,b,c,d,f){var n=b.select.style(),g=b[d](f,{selected:!0}).any();"os"===n?a.ctrlKey||a.metaKey?b[d](f).select(!g):a.shiftKey?"cell"===d?(d=c._select_lastCell||null,g=function(c,a){if(c>a)var d=a,a=c,c=d;var f=!1;return b.columns(":visible").indexes().filter(function(b){b===c&&(f=!0);return b===a?(f=!1,
320
+ !0):f})},a=function(c,a){var d=b.rows({search:"applied"}).indexes();if(d.indexOf(c)>d.indexOf(a))var f=a,a=c,c=f;var g=!1;return d.filter(function(b){b===c&&(g=!0);return b===a?(g=!1,!0):g})},!b.cells({selected:!0}).any()&&!d?(g=g(0,f.column),d=a(0,f.row)):(g=g(d.column,f.column),d=a(d.row,f.row)),d=b.cells(d,g).flatten(),b.cells(f,{selected:!0}).any()?b.cells(d).deselect():b.cells(d).select()):(a=c._select_lastCell?c._select_lastCell[d]:null,g=b[d+"s"]({search:"applied"}).indexes(),a=e.inArray(a,
321
+ g),c=e.inArray(f,g),!b[d+"s"]({selected:!0}).any()&&-1===a?g.splice(e.inArray(f,g)+1,g.length):(a>c&&(n=c,c=a,a=n),g.splice(c+1,g.length),g.splice(0,a)),b[d](f,{selected:!0}).any())?(g.splice(e.inArray(f,g),1),b[d+"s"](g).deselect()):b[d+"s"](g).select():(a=b[d+"s"]({selected:!0}),g&&1===a.flatten().length?b[d](f).deselect():(a.deselect(),b[d](f).select())):b[d](f).select(!g)}function r(a,b){return function(c){return c.i18n("buttons."+a,b)}}var h=e.fn.dataTable;h.select={};h.select.version="1.1.2";
322
+ h.select.init=function(a){var b=a.settings()[0],c=b.oInit.select,d=h.defaults.select,c=c===i?d:c,d="row",f="api",n=!1,g=!0,m="td, th",j="selected";b._select={};if(!0===c)f="os";else if("string"===typeof c)f=c;else if(e.isPlainObject(c)&&(c.blurable!==i&&(n=c.blurable),c.info!==i&&(g=c.info),c.items!==i&&(d=c.items),c.style!==i&&(f=c.style),c.selector!==i&&(m=c.selector),c.className!==i))j=c.className;a.select.selector(m);a.select.items(d);a.select.style(f);a.select.blurable(n);a.select.info(g);b._select.className=
323
+ j;e.fn.dataTable.ext.order["select-checkbox"]=function(b,c){return this.api().column(c,{order:"index"}).nodes().map(function(c){return"row"===b._select.items?e(c).parent().hasClass(b._select.className):"cell"===b._select.items?e(c).hasClass(b._select.className):!1})};e(a.table().node()).hasClass("selectable")&&a.select.style("os")};e.each([{type:"row",prop:"aoData"},{type:"column",prop:"aoColumns"}],function(a,b){h.ext.selector[b.type].push(function(c,a,f){var a=a.selected,e,g=[];if(a===i)return f;
324
+ for(var h=0,j=f.length;h<j;h++)e=c[b.prop][f[h]],(!0===a&&!0===e._select_selected||!1===a&&!e._select_selected)&&g.push(f[h]);return g})});h.ext.selector.cell.push(function(a,b,c){var b=b.selected,d,f=[];if(b===i)return c;for(var e=0,g=c.length;e<g;e++)d=a.aoData[c[e].row],(!0===b&&d._selected_cells&&!0===d._selected_cells[c[e].column]||!1===b&&(!d._selected_cells||!d._selected_cells[c[e].column]))&&f.push(c[e]);return f});var o=h.Api.register,p=h.Api.registerPlural;o("select()",function(){return this.iterator("table",
325
+ function(a){h.select.init(new h.Api(a))})});o("select.blurable()",function(a){return a===i?this.context[0]._select.blurable:this.iterator("table",function(b){b._select.blurable=a})});o("select.info()",function(a){return v===i?this.context[0]._select.info:this.iterator("table",function(b){b._select.info=a})});o("select.items()",function(a){return a===i?this.context[0]._select.items:this.iterator("table",function(b){b._select.items=a;k(new h.Api(b),"selectItems",[a])})});o("select.style()",function(a){return a===
326
+ i?this.context[0]._select.style:this.iterator("table",function(b){b._select.style=a;if(!b._select_init){var c=new h.Api(b);b.aoRowCreatedCallback.push({fn:function(c,a,d){a=b.aoData[d];a._select_selected&&e(c).addClass(b._select.className);c=0;for(d=b.aoColumns.length;c<d;c++)(b.aoColumns[c]._select_selected||a._selected_cells&&a._selected_cells[c])&&e(a.anCells[c]).addClass(b._select.className)},sName:"select-deferRender"});c.on("preXhr.dt.dtSelect",function(){var b=c.rows({selected:!0}).ids(!0).filter(function(b){return b!==
327
+ i}),a=c.cells({selected:!0}).eq(0).map(function(b){var a=c.row(b.row).id(!0);return a?{row:a,column:b.column}:i}).filter(function(b){return b!==i});c.one("draw.dt.dtSelect",function(){c.rows(b).select();a.any()&&a.each(function(b){c.cells(b.row,b.column).select()})})});c.on("draw.dtSelect.dt select.dtSelect.dt deselect.dtSelect.dt",function(){v(c)});c.on("destroy.dtSelect",function(){s(c);c.off(".dtSelect")})}var d=new h.Api(b);s(d);"api"!==a&&u(d);k(new h.Api(b),"selectStyle",[a])})});o("select.selector()",
328
+ function(a){return a===i?this.context[0]._select.selector:this.iterator("table",function(b){s(new h.Api(b));b._select.selector=a;"api"!==b._select.style&&u(new h.Api(b))})});p("rows().select()","row().select()",function(a){var b=this;if(!1===a)return this.deselect();this.iterator("row",function(b,a){q(b);b.aoData[a]._select_selected=!0;e(b.aoData[a].nTr).addClass(b._select.className)});this.iterator("table",function(a,d){k(b,"select",["row",b[d]],!0)});return this});p("columns().select()","column().select()",
329
+ function(a){var b=this;if(!1===a)return this.deselect();this.iterator("column",function(b,a){q(b);b.aoColumns[a]._select_selected=!0;var f=(new h.Api(b)).column(a);e(f.header()).addClass(b._select.className);e(f.footer()).addClass(b._select.className);f.nodes().to$().addClass(b._select.className)});this.iterator("table",function(a,d){k(b,"select",["column",b[d]],!0)});return this});p("cells().select()","cell().select()",function(a){var b=this;if(!1===a)return this.deselect();this.iterator("cell",
330
+ function(b,a,f){q(b);a=b.aoData[a];a._selected_cells===i&&(a._selected_cells=[]);a._selected_cells[f]=!0;a.anCells&&e(a.anCells[f]).addClass(b._select.className)});this.iterator("table",function(a,d){k(b,"select",["cell",b[d]],!0)});return this});p("rows().deselect()","row().deselect()",function(){var a=this;this.iterator("row",function(b,a){b.aoData[a]._select_selected=!1;e(b.aoData[a].nTr).removeClass(b._select.className)});this.iterator("table",function(b,c){k(a,"deselect",["row",a[c]],!0)});return this});
331
+ p("columns().deselect()","column().deselect()",function(){var a=this;this.iterator("column",function(b,a){b.aoColumns[a]._select_selected=!1;var d=new h.Api(b),f=d.column(a);e(f.header()).removeClass(b._select.className);e(f.footer()).removeClass(b._select.className);d.cells(null,a).indexes().each(function(a){var c=b.aoData[a.row],d=c._selected_cells;c.anCells&&(!d||!d[a.column])&&e(c.anCells[a.column]).removeClass(b._select.className)})});this.iterator("table",function(b,c){k(a,"deselect",["column",
332
+ a[c]],!0)});return this});p("cells().deselect()","cell().deselect()",function(){var a=this;this.iterator("cell",function(b,a,d){a=b.aoData[a];a._selected_cells[d]=!1;a.anCells&&!b.aoColumns[d]._select_selected&&e(a.anCells[d]).removeClass(b._select.className)});this.iterator("table",function(b,c){k(a,"deselect",["cell",a[c]],!0)});return this});e.extend(h.ext.buttons,{selected:{text:r("selected","Selected"),className:"buttons-selected",init:function(a){var b=this;a.on("draw.dt.DT select.dt.DT deselect.dt.DT",
333
+ function(){var a=b.rows({selected:!0}).any()||b.columns({selected:!0}).any()||b.cells({selected:!0}).any();b.enable(a)});this.disable()}},selectedSingle:{text:r("selectedSingle","Selected single"),className:"buttons-selected-single",init:function(a){var b=this;a.on("draw.dt.DT select.dt.DT deselect.dt.DT",function(){var c=a.rows({selected:!0}).flatten().length+a.columns({selected:!0}).flatten().length+a.cells({selected:!0}).flatten().length;b.enable(1===c)});this.disable()}},selectAll:{text:r("selectAll",
334
+ "Select all"),className:"buttons-select-all",action:function(){this[this.select.items()+"s"]().select()}},selectNone:{text:r("selectNone","Deselect all"),className:"buttons-select-none",action:function(){q(this.settings()[0],!0)},init:function(a){var b=this;a.on("draw.dt.DT select.dt.DT deselect.dt.DT",function(){var c=a.rows({selected:!0}).flatten().length+a.columns({selected:!0}).flatten().length+a.cells({selected:!0}).flatten().length;b.enable(0<c)});this.disable()}}});e.each(["Row","Column","Cell"],
335
+ function(a,b){var c=b.toLowerCase();h.ext.buttons["select"+b+"s"]={text:r("select"+b+"s","Select "+c+"s"),className:"buttons-select-"+c+"s",action:function(){this.select.items(c)},init:function(a){var b=this;a.on("selectItems.dt.DT",function(a,d,e){b.active(e===c)})}}});e(l).on("preInit.dt.dtSelect",function(a,b){"dt"===a.namespace&&h.select.init(new h.Api(b))});return h.select});
admin/assets/js/entry/entry-manager.js ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($){
2
+
3
+
4
+ $(document).ready(function() {
5
+
6
+ var table = $('#entryDataTable').DataTable( {
7
+ orderMulti: false,
8
+ processing: true,
9
+ serverSide: true,
10
+ ajax: ajaxurl+'?action=smuzform_entry_api&nonce='+smuzform.entry_model_nonce+'&formID='+smuzform.form_id,
11
+ scrollX: true,
12
+ select: true,
13
+ bSort: false,
14
+ dom: "<'row'<'col-sm-6'l><'col-sm-6'f>>" +'Bfrtip',
15
+ searchDelay: 500,
16
+ paging: true,
17
+ sPaginationType: "full_numbers",
18
+ buttons: [
19
+ 'print',
20
+ 'csv',
21
+ {
22
+ text: 'View Entry',
23
+ action: function ( e, dt, node, config ) {
24
+ var selected = table.row( { selected: true } );
25
+
26
+ if ( selected.count() === 0 ) {
27
+ alert( 'No Entry Selected' );
28
+ return;
29
+ }
30
+
31
+ var entryId = selected.id();
32
+
33
+ window.location.href = window.location.href+"&entry_id="+entryId
34
+
35
+ },
36
+
37
+ },
38
+ {
39
+ text: 'Delete Entry',
40
+ action: function ( e, dt, node, config ) {
41
+ var selected = table.row( { selected: true } );
42
+
43
+ if ( selected.count() === 0 ) {
44
+ alert( 'No Entry Selected' );
45
+ return false;
46
+ }
47
+
48
+ if ( ! confirm( 'CONFIRM delete action' ) )
49
+ return false;
50
+
51
+ var entryId = selected.id();
52
+
53
+ var apiUrl = ajaxurl+'?action=smuzform_entry_api&nonce='+smuzform.entry_model_nonce+'&formID='+smuzform.form_id+"&entryID="+entryId;
54
+
55
+
56
+ $.ajax({
57
+
58
+ url: apiUrl,
59
+
60
+ type: 'delete',
61
+
62
+ success: function(response) {
63
+
64
+ response = $.parseJSON( response );
65
+
66
+ if ( response.signal )
67
+ table.row( { selected: true } ).remove().draw();
68
+
69
+ }
70
+
71
+ });
72
+
73
+ }
74
+
75
+ }
76
+
77
+ ],
78
+ "columnDefs": [
79
+ { "width": "20%" }
80
+ ],
81
+
82
+ } );
83
+
84
+ $('.dt-buttons span:contains(Delete Entry)').parent().removeClass('btn-default');
85
+ $('.dt-buttons span:contains(Delete Entry)').parent().addClass('btn-danger');
86
+ $('.dt-buttons span:contains(View Entry)').parent().removeClass('btn-default');
87
+ $('.dt-buttons span:contains(View Entry)').parent().addClass('btn-info');
88
+
89
+ var user_ip = $('#hiddenUserIp').val();
90
+
91
+ if ( user_ip ) {
92
+ $.getJSON('http://ipinfo.io/'+ user_ip +'/json', function(data){
93
+
94
+ }).success(function(data){
95
+
96
+ if ( data === undefined || ! data )
97
+ return false;
98
+
99
+ var locationString = data.city + ', ' + data.region + ', ' + data.country;
100
+
101
+ data.loc = smuz_escapeHtml( data.loc );
102
+
103
+ var map = '<div style="text-decoration:none; overflow:hidden; height:150px; width:300px; max-width:100%;"><div id="my-map-display" style="height:100%; width:100%;max-width:100%;"><iframe style="height:100%;width:100%;border:0;" frameborder="0" src="https://www.google.com/maps/embed/v1/place?q='+ data.loc +'&key=AIzaSyAN0om9mFmy1QN6Wf54tXAowK4eT0ZUPrU"></iframe></div>';
104
+
105
+ $('#userIpLocation').text( locationString );
106
+
107
+ $('#userIpLocationMap').html( map );
108
+
109
+ });
110
+ }
111
+
112
+
113
+ });
114
+
115
+
116
+ var entityMap = {
117
+ "&": "&amp;",
118
+ "<": "&lt;",
119
+ ">": "&gt;",
120
+ '"': '&quot;',
121
+ "'": '&#39;',
122
+ "/": '&#x2F;'
123
+ };
124
+
125
+ function smuz_escapeHtml(string) {
126
+ return String(string).replace(/[&<>"'\/]/g, function (s) {
127
+ return entityMap[s];
128
+ });
129
+ }
130
+
131
+ $(document).ready(function(){$('.toplevel_page_smuz-forms-main').addClass('current');})
132
+ }(jQuery));
admin/assets/js/index.php ADDED
File without changes
admin/assets/js/notification/notification-manager.js ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+
3
+ //SmuzForm
4
+
5
+ NotificationUI = {
6
+ Models: {},
7
+ Collections: {},
8
+ Views: {},
9
+ Dispatcher: _.clone(Backbone.Events),
10
+ };
11
+
12
+ NotificationUI.Models.NotificationCont = Backbone.Model.extend({
13
+
14
+ defaults: function() {
15
+ return {
16
+ notifications: {}
17
+ }
18
+ },
19
+
20
+ url: ajaxurl+'?action=smuzform_notification_api&nonce='+smuzform.notification_model_nonce+'&formID='+smuzform.form_id
21
+ });
22
+
23
+ NotificationUI.Models.Notification = Backbone.Model.extend({
24
+ initialize: function(){},
25
+
26
+ defaults: function() {
27
+
28
+ return {
29
+
30
+ type: 'email',
31
+
32
+ label: 'Email Notification',
33
+
34
+ uniqID: 'sfnotification',
35
+
36
+ order: 10,
37
+
38
+ status: 'disabled',
39
+
40
+ collapsed: '',
41
+
42
+ extraData: {
43
+ subject: 'New Form Entry',
44
+ emailAddress: '',
45
+ replyToEmail: '',
46
+ fromText: '',
47
+ template: '[smfield print="all"]',
48
+ useHTML: true
49
+ },
50
+
51
+ /*rules: [
52
+ {
53
+ field: '',
54
+ operator: 'is',
55
+ cmpValue: '',
56
+ action: 'send',
57
+ forwardTo: ''
58
+ }
59
+ ]*/
60
+
61
+ rules: {
62
+ field: '',
63
+ operator: 'is',
64
+ cmpValue: '',
65
+ action: 'send'
66
+ },
67
+
68
+ ruleEnabled: false
69
+
70
+
71
+
72
+ };
73
+
74
+ }
75
+
76
+ });
77
+
78
+ NotificationUI.Collections.Notifications = Backbone.Collection.extend({
79
+ model: NotificationUI.Models.Notification
80
+ });
81
+
82
+ NotificationUI.Views.AddNew = Backbone.View.extend({
83
+
84
+ el: $('#addNewNotificationEL'),
85
+
86
+ template: '',
87
+
88
+ initialize: function() {
89
+
90
+ this.template = _.template( $('#addNewNotification-template').html() );
91
+
92
+ },
93
+
94
+ events: {
95
+ 'click #addNewNotificationButton': 'addNew',
96
+ 'click #saveNotificationButton': 'saveChanges'
97
+ },
98
+
99
+ addNew: function(e) {
100
+
101
+ var type = $('#notificationTypeSelect').val();
102
+
103
+ type = _.escape( type );
104
+
105
+ if ( type === 'email' ) {
106
+
107
+ var notification = new NotificationUI.Models.Notification({
108
+ type: 'email',
109
+ uniqID: 'sfnotification'+Math.floor((Math.random() * 200000) + 100)
110
+ });
111
+
112
+ this.collection.add( notification );
113
+
114
+ }
115
+
116
+ if ( type === 'confirmationEmail' ) {
117
+
118
+ var notification = new NotificationUI.Models.Notification({
119
+ type: 'confirmationEmail',
120
+ uniqID: 'sfnotification'+Math.floor((Math.random() * 200000) + 100),
121
+ label: 'Confirmation Email',
122
+ extraData: {
123
+ subject: 'Thank You',
124
+ emailAddress: '',
125
+ replyToEmail: '',
126
+ fromText: '',
127
+ template: 'Thank you so much for your submission. We\'ll be in touch shortly.',
128
+ useHTML: true
129
+ },
130
+ });
131
+
132
+ this.collection.add( notification );
133
+
134
+ }
135
+
136
+ },
137
+
138
+ saveChanges: function(e) {
139
+
140
+ var old = $(e.currentTarget).text();
141
+
142
+ var savingText = 'Saving changes...';
143
+
144
+ $(e.currentTarget).text( savingText );
145
+
146
+ this.model.set( 'notifications', this.collection.models );
147
+
148
+ this.model.save().success( function(response) {
149
+
150
+ }).always( function() {
151
+
152
+ $(e.currentTarget).text(old);
153
+
154
+ });
155
+
156
+ },
157
+
158
+ render: function() {
159
+
160
+ this.$el.html( this.template( {} ) );
161
+
162
+ return this;
163
+
164
+ }
165
+
166
+ });
167
+
168
+ NotificationUI.Views.Notification = Backbone.View.extend({
169
+
170
+ template: '',
171
+
172
+ initialize: function() {
173
+
174
+ this.template = _.template( $('#notificationCollectionView-template').html() );
175
+
176
+ },
177
+
178
+ events: {
179
+
180
+ 'change #emailTemplate': 'changeEmailTemplate',
181
+ 'change #emailSenderName': 'changeEmailFromText',
182
+ 'change #emailReplyToEmail': 'changeReplyToEmail',
183
+ 'change #emailSenderAddress': 'changeEmailAddress',
184
+ 'change #emailSubject': 'changeEmailSubject',
185
+ 'click .removeNotification': 'removeNotification',
186
+ 'change #notificationLabel': 'changeLabel',
187
+ 'change #emailUseHTML': 'changeUseHTML',
188
+ 'change #enableConditionalLogic': 'changeEnableRule',
189
+ 'change #ruleFields': 'changeRuleField',
190
+ 'change #ruleFieldAction': 'changeRuleFieldAction',
191
+ 'change #ruleFieldLogicValue': 'changeRuleFieldLogicValue',
192
+ 'change #ruleFieldOperator': 'changeRuleFieldOperator',
193
+
194
+ },
195
+
196
+ changeEmailAddress: function(e) {
197
+
198
+ var value = _.escape( $(e.currentTarget).val() );
199
+
200
+ var temp = _.clone( this.model.get( 'extraData' ) );
201
+
202
+ temp.emailAddress = value;
203
+
204
+ this.model.set( 'extraData', temp );
205
+
206
+ console.log( this.model.get( extraData ) );
207
+
208
+ },
209
+ changeEmailFromText: function(e) {
210
+
211
+ var value = $(e.currentTarget).val();
212
+
213
+ var temp = _.clone( this.model.get( 'extraData' ) );
214
+
215
+ temp.fromText = value;
216
+
217
+ this.model.set( 'extraData', temp );
218
+
219
+ },
220
+ changeReplyToEmail: function(e) {
221
+
222
+ var value = $(e.currentTarget).val();
223
+
224
+ var temp = _.clone( this.model.get( 'extraData' ) );
225
+
226
+ temp.replyToEmail = value;
227
+
228
+ this.model.set( 'extraData', temp );
229
+
230
+ },
231
+ changeEmailTemplate: function(e) {
232
+
233
+ var value = $(e.currentTarget).val();
234
+
235
+ var temp = _.clone( this.model.get( 'extraData' ) );
236
+
237
+ temp.template = value;
238
+
239
+ this.model.set( 'extraData', temp );
240
+
241
+ console.log( this.model.get('extraData') );
242
+
243
+ },
244
+ changeEmailSubject: function(e) {
245
+
246
+ var value = $(e.currentTarget).val();
247
+
248
+ var temp = _.clone( this.model.get( 'extraData' ) );
249
+
250
+ temp.subject = value;
251
+
252
+ this.model.set( 'extraData', temp );
253
+
254
+ },
255
+
256
+
257
+ changeLabel: function(e) {
258
+
259
+ var label = _.escape( $(e.currentTarget).val() );
260
+
261
+ this.model.set( 'label', label );
262
+
263
+ this.render();
264
+
265
+ },
266
+
267
+ removeNotification: function(e) {
268
+
269
+ if ( ! confirm( 'CONFIRM REMOVE ACTION' ) )
270
+ return false;
271
+
272
+ this.collection.remove( this.model );
273
+
274
+ },
275
+
276
+ changeUseHTML: function(e) {
277
+
278
+ var value = false;
279
+
280
+ if ( $(e.currentTarget).is(':checked') )
281
+ value = true;
282
+
283
+ var temp = _.clone( this.model.get( 'extraData' ) );
284
+
285
+ temp.useHTML = value;
286
+
287
+ this.model.set( 'extraData', temp );
288
+ },
289
+
290
+ changeRuleField: function(e) {
291
+
292
+ var value = $(e.currentTarget).val();
293
+
294
+ if ( value === '' ) return;
295
+
296
+ var temp = _.clone( this.model.get( 'rules' ) );
297
+
298
+ temp.field = value;
299
+
300
+ this.model.set( 'rules', temp );
301
+
302
+ },
303
+
304
+ changeRuleFieldOperator: function(e) {
305
+
306
+ var value = $(e.currentTarget).val();
307
+
308
+ if ( value === '' ) return;
309
+
310
+ var temp = _.clone( this.model.get( 'rules' ) );
311
+
312
+ temp.operator = value;
313
+
314
+ this.model.set( 'rules', temp );
315
+
316
+ },
317
+
318
+ changeRuleFieldAction: function(e) {
319
+
320
+ var value = $(e.currentTarget).val();
321
+
322
+ if ( value === '' ) return;
323
+
324
+ var temp = _.clone( this.model.get( 'rules' ) );
325
+
326
+ temp.action = value;
327
+
328
+ this.model.set( 'rules', temp );
329
+
330
+ },
331
+
332
+ changeRuleFieldLogicValue: function(e) {
333
+
334
+ var value = $(e.currentTarget).val();
335
+
336
+ if ( value === '' ) return;
337
+
338
+ var temp = _.clone( this.model.get( 'rules' ) );
339
+
340
+ temp.cmpValue = value;
341
+
342
+ this.model.set( 'rules', temp );
343
+
344
+ },
345
+
346
+ changeEnableRule: function(e) {
347
+
348
+ if ( $(e.currentTarget).is(':checked') )
349
+ this.model.set( 'ruleEnabled', true );
350
+ else
351
+ this.model.set( 'ruleEnabled', false );
352
+
353
+ },
354
+
355
+ render: function() {
356
+
357
+ this.$el.html( this.template( this.model.attributes ) );
358
+
359
+ return this;
360
+ }
361
+
362
+ });
363
+
364
+ NotificationUI.Views.NotificationCol = Backbone.View.extend({
365
+
366
+ initialize: function() {
367
+
368
+ var parentThis = this;
369
+
370
+ this.collection.on('add remove', function() {
371
+ parentThis.render();
372
+ });
373
+
374
+ },
375
+
376
+ render: function() {
377
+
378
+ this.$el.html('');
379
+
380
+ this.collection.each( function( model ) {
381
+
382
+ var notification = new NotificationUI.Views.Notification({
383
+ model: model,
384
+ collection: this.collection
385
+ });
386
+
387
+ this.$el.append( notification.render().el );
388
+
389
+ }.bind(this));
390
+
391
+ }
392
+
393
+ });
394
+
395
+ NotificationUI.App = {
396
+ init: function() {
397
+
398
+ var NotificationServerModel = new NotificationUI.Models.NotificationCont();
399
+
400
+ var NotificationsCol = new NotificationUI.Collections.Notifications();
401
+
402
+ NotificationServerModel.fetch().success( function() {
403
+
404
+ var notifications = NotificationServerModel.get('notifications');
405
+
406
+ _.each( notifications, function( notification, index ) {
407
+ NotificationsCol.add( notification );
408
+ });
409
+
410
+ });
411
+
412
+ var AddNewButton = new NotificationUI.Views.AddNew(
413
+ { el: $('#addNewNotificationEL'),
414
+ collection: NotificationsCol,
415
+ model: NotificationServerModel
416
+ } );
417
+
418
+ var NotificationColView = new NotificationUI.Views.NotificationCol(
419
+ { el: $('#notificationCollectionCont'),
420
+ collection: NotificationsCol
421
+ } );
422
+
423
+ AddNewButton.render();
424
+
425
+ NotificationColView.render();
426
+
427
+ }
428
+ };
429
+
430
+ $(document).ready(function() {
431
+ NotificationUI.App.init();
432
+ });
433
+
434
+ $(document).ready(function(){$('.toplevel_page_smuz-forms-main').addClass('current');})
435
+ })(jQuery);
admin/assets/js/script.js ADDED
@@ -0,0 +1,1517 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+
3
+ smuzform.App = {
4
+ Models: {},
5
+ Collections: {},
6
+ Views: {},
7
+ Dispatcher: _.clone(Backbone.Events),
8
+ };
9
+
10
+ smuzform.App.isNewForm = function() {
11
+
12
+ return true;
13
+
14
+ };
15
+
16
+
17
+ function smuzform_deentitize_str( str ) {
18
+ var ret = str.replace(/&gt;/g, '>');
19
+ ret = ret.replace(/&lt;/g, '<');
20
+ ret = ret.replace(/&quot;/g, '"');
21
+ ret = ret.replace(/&apos;/g, "'");
22
+ ret = ret.replace(/&amp;/g, '&');
23
+ return ret;
24
+ }
25
+
26
+ smuzform.App.Models.FormSettings = Backbone.Model.extend({
27
+
28
+ initialize: function() { },
29
+
30
+ defaults: function() {
31
+
32
+ return {
33
+ tmpid: '',
34
+ fields: {},
35
+ title: 'Form Name',
36
+ description: 'Click me to change the description.',
37
+ lang: 'en',
38
+ labelPlacement: 'top',
39
+ confirmationOption: 'text',
40
+ textMessage: 'Thanks for submitting your information',
41
+ redirectUrl: '',
42
+ captcha: false,
43
+ noOfEntries: '',
44
+ onlySingleIP: false,
45
+ formTimer: false,
46
+ formStartTime: null,
47
+ formEndTime: null,
48
+ theme: {},
49
+ extraData: {},
50
+ confirmationEmailToUser: false,
51
+ emailAddressField: '',
52
+ replyToEmail: '',
53
+ submitBtn: true,
54
+ submitBtnText: 'Submit',
55
+ submitBtnType: 'normal',
56
+ errorMessages: {},
57
+ style: {}
58
+
59
+ };
60
+
61
+ },
62
+
63
+ url: ajaxurl+'?action=smuzform_api&nonce='+smuzform.form_model_nonce
64
+
65
+ });
66
+
67
+
68
+
69
+
70
+ var Field = Backbone.Model.extend({
71
+
72
+ validate: function( attr ) {
73
+
74
+ if ( attr.type === undefined )
75
+ return 'Set Field Type';
76
+ },
77
+
78
+ initialize: function() {
79
+
80
+ this.on( 'invalid', function( model, error ) {
81
+
82
+ console.log( error );
83
+
84
+ } );
85
+
86
+ this.on( 'change:label', function( model ) {
87
+
88
+ } );
89
+
90
+ },
91
+
92
+ defaults: function() {
93
+ return {
94
+
95
+ label: 'Untitled Label',
96
+
97
+ type: undefined,
98
+
99
+ size: 'medium',
100
+
101
+ required: false,
102
+
103
+ noDuplicates: false,
104
+
105
+ visibility: true,
106
+
107
+ labelVisible: true,
108
+
109
+ rangeMin: '',
110
+
111
+ rangeMax: '',
112
+
113
+ rangeFormat: 'char',
114
+
115
+ preValue: '',
116
+
117
+ helpText: '',
118
+
119
+ cssClasses: '',
120
+
121
+ placeholderText: '',
122
+
123
+ radios: false,
124
+
125
+ checkboxes: false,
126
+
127
+ textAreaRows: 10,
128
+
129
+ textAreaCols: 60,
130
+
131
+ cssID: 'wpfieldid',
132
+
133
+ choices: ['First Choice','Second Choice', 'Third Choice'],
134
+
135
+ selectedChoice: null,
136
+
137
+ checkboxSelectedChoice: [],
138
+
139
+ sectionTitle: 'Section Title',
140
+
141
+ sectionDescription: 'Click me to change the description',
142
+
143
+ extraData: null,
144
+
145
+ ruleEnabled: false,
146
+
147
+ rules: {
148
+ field: '',
149
+ operator: 'is',
150
+ cmpValue: '',
151
+ action: 'show'
152
+ },
153
+
154
+ statements: {},
155
+
156
+ columns: {},
157
+
158
+ file: {
159
+
160
+ allowed: [ 'jpg','jpeg','png','gif','pdf','doc','docx','key','ppt','pptx','pps','ppsx','odt','xls','xlsx','zip','mp3','m4a','ogg','wav','mp4','m4v','wmv','avi','mpg','ogv','3gp','3g2' ],
161
+ maxSize: 2
162
+
163
+ },
164
+
165
+ login: {}
166
+
167
+ };
168
+ }
169
+
170
+ });
171
+
172
+ var FieldsCollection = Backbone.Collection.extend({
173
+
174
+ model: Field,
175
+
176
+ initialize: function() {
177
+
178
+
179
+
180
+ }
181
+ });
182
+
183
+
184
+
185
+ $(document).ready(function() {
186
+
187
+ smuzform.App.Views.NavBar = Backbone.View.extend({
188
+
189
+ template: _.template( $('#formNavBar-template').html() ),
190
+
191
+ el: $('#navBarActionsCont'),
192
+
193
+ events: {
194
+
195
+ 'click #formExportAction': 'onClickFormExportAction',
196
+ 'click #formEntriesAction': 'onClickFormEntriesAction',
197
+ 'click #formNotificationAction': 'onClickFormNotificationAction',
198
+ 'click #formStyleAction': 'onClickFormStyleAction'
199
+ },
200
+
201
+ initialize: function( model ) {
202
+
203
+ this.model = model;
204
+
205
+ this.model.on( 'change', this.render, this );
206
+
207
+ },
208
+
209
+ render: function() {
210
+
211
+ this.$el.html( this.template( this.model.attributes ) );
212
+
213
+ return this;
214
+ },
215
+
216
+ onClickFormExportAction: function(e) {
217
+
218
+ if ( ! FormPreviewModel.get('id') ) {
219
+
220
+ alert('Please create a form first. Click the create form button below');
221
+
222
+ return false;
223
+
224
+ }
225
+
226
+ //this.render();
227
+
228
+ FormPreviewModel.set( 'tmpid', FormPreviewModel.get('id') );
229
+
230
+ $('#exportModal').modal('show');
231
+
232
+ },
233
+
234
+ onClickFormEntriesAction: function(e) {
235
+
236
+ var redirectLink = smuzform.admin_url+'admin.php?page=smuz-forms-entry&form_id='+FormPreviewModel.get('id');
237
+
238
+ if ( ! FormPreviewModel.get('id') )
239
+ alert('Please create a form first. Click the create form button below');
240
+ else
241
+ window.location = redirectLink;
242
+
243
+ },
244
+
245
+ onClickFormNotificationAction: function(e) {
246
+
247
+ var redirectLink = smuzform.admin_url+'admin.php?page=smuz-forms-notifications&form_id='+FormPreviewModel.get('id');
248
+
249
+ if ( ! FormPreviewModel.get('id') )
250
+ alert('Please create a form first. Click the create form button below');
251
+ else
252
+ window.location = redirectLink;
253
+
254
+ },
255
+
256
+ onClickFormStyleAction: function(e) {
257
+
258
+ var redirectLink = smuzform.admin_url+'admin.php?page=smuz-forms-style&form_id='+FormPreviewModel.get('id');
259
+
260
+ if ( ! FormPreviewModel.get('id') )
261
+ alert('Please create a form first. Click the create form button below');
262
+ else
263
+ window.location = redirectLink;
264
+
265
+ }
266
+
267
+ });
268
+
269
+
270
+
271
+ smuzform.App.Views.FormPreview = Backbone.View.extend({
272
+
273
+ template: _.template( $('#formPreview-template').html() ),
274
+
275
+ el: $('#formPreviewCont'),
276
+
277
+ initialize: function( model ) {
278
+
279
+ this.model = model;
280
+
281
+ this.model.on( 'change', this.render, this );
282
+
283
+ },
284
+
285
+ render: function() {
286
+
287
+ this.$el.html( this.template( this.model.attributes ) );
288
+
289
+ return this;
290
+
291
+ }
292
+
293
+ });
294
+
295
+ smuzform.App.Views.FormSettings = Backbone.View.extend({
296
+
297
+ template: _.template( $('#formSettings-template').html() ),
298
+
299
+ el: $('#formSettingsCont'),
300
+
301
+ initialize: function() {
302
+
303
+ this.model.on( 'change', this.render, this );
304
+
305
+ },
306
+
307
+ render: function() {
308
+
309
+ this.$el.html( this.template( this.model.attributes ) );
310
+
311
+ return this;
312
+
313
+ },
314
+
315
+ events: {
316
+
317
+ 'change #formTitle': 'changeTitle',
318
+ 'change #formDescription': 'changeDescription',
319
+ 'change #formLang': 'changeLanguage',
320
+ 'change #formLabelPlacement': 'changeLabelPlacement',
321
+ 'change input[name=optConfOption]': 'changeConfirmationOption',
322
+ 'change #formCaptcha': 'changeCaptcha',
323
+ 'change #formSubmitBtnText': 'changeSubmitBtnText',
324
+ 'change #formRedirectUrl': 'changeRedirectUrl',
325
+ 'change #formTextMessage': 'changeTextMessage'
326
+
327
+ },
328
+
329
+ changeTitle: function(e) {
330
+
331
+ this.model.set( 'title', $(e.currentTarget).val() );
332
+
333
+ },
334
+
335
+ changeDescription: function(e) {
336
+
337
+ this.model.set( 'description', $(e.currentTarget).val() );
338
+
339
+ },
340
+
341
+ changeLanguage: function(e) {
342
+
343
+ this.model.set( 'lang', $(e.currentTarget).val() );
344
+
345
+ },
346
+
347
+ changeLabelPlacement: function(e) {
348
+
349
+ this.model.set( 'labelPlacement', $(e.currentTarget).val() );
350
+
351
+ },
352
+
353
+ changeConfirmationOption: function(e) {
354
+
355
+ if ( $(e.currentTarget).val() === 'text' )
356
+ this.model.set( 'confirmationOption', 'text' );
357
+
358
+ if ( $(e.currentTarget).val() === 'redirect' )
359
+ this.model.set( 'confirmationOption', 'redirect' );
360
+
361
+ },
362
+
363
+ changeCaptcha: function(e) {
364
+
365
+
366
+ if ( $(e.currentTarget).is(':checked') )
367
+ this.model.set( 'captcha', true );
368
+ else
369
+ this.model.set( 'captcha', false );
370
+
371
+
372
+
373
+ },
374
+
375
+ changeSubmitBtnText: function(e) {
376
+
377
+ this.model.set( 'submitBtnText', $(e.currentTarget).val() );
378
+
379
+ },
380
+
381
+ changeRedirectUrl: function(e) {
382
+
383
+ this.model.set( 'redirectUrl', $(e.currentTarget).val() );
384
+
385
+ },
386
+
387
+ changeTextMessage: function(e) {
388
+
389
+ this.model.set( 'textMessage', $(e.currentTarget).val() );
390
+ },
391
+
392
+ setModel: function(model) { this.model = model; }
393
+
394
+ });
395
+
396
+
397
+
398
+ var FieldsSettingsView = Backbone.View.extend({
399
+
400
+ template: _.template( $('#fieldSettings-template').html() ),
401
+
402
+ el: $('#fieldSettingsCont'),
403
+
404
+ callCounter: 0,
405
+
406
+ initialize: function() {
407
+
408
+
409
+
410
+ },
411
+
412
+ events: {
413
+
414
+ 'change #fieldLabel': 'changeLabel',
415
+ 'change #fieldPlaceholder': 'changePlaceholder',
416
+ 'change #fieldValue': 'changeValue',
417
+ 'change .fieldOptChoice': 'changeChoice',
418
+ 'click .optChoiceRemove': 'removeChoice',
419
+ 'click #addNewChoice': 'addChoice',
420
+ 'click .optChoiceSelect': 'toggleChoice',
421
+ 'change #optionRequired': 'changeRequired',
422
+ 'change input[name=fieldOptionRadio]': 'changeVisibility',
423
+ 'change #fieldSectionTitle': 'changeSectionTitle',
424
+ 'change #fieldSectionDescription': 'changeSectionDescription',
425
+ 'change #fieldSize': 'changeSize',
426
+ 'change #fieldFileMaxSize': 'changeFileMaxSize',
427
+ 'change #fieldFileAllowed': 'changeFileAllowed',
428
+ 'change #fieldMinLength': 'changeFieldMinLength',
429
+ 'change #fieldMaxLength': 'changeFieldMaxLength',
430
+ 'change #enableConditionalLogic': 'changeEnableRule',
431
+ 'change #ruleFields': 'changeRuleField',
432
+ 'change #ruleFieldAction': 'changeRuleFieldAction',
433
+ 'change #ruleFieldLogicValue': 'changeRuleFieldLogicValue',
434
+ 'change #ruleFieldOperator': 'changeRuleFieldOperator',
435
+ 'change #optionNoDuplicate': 'changeNoDuplicates',
436
+
437
+ /** events for custom text **/
438
+
439
+ 'change #customTextTag': 'changeCustomTextTag',
440
+ 'change #customTextColor': 'changeCustomTextColor',
441
+ 'change #customTextFontSize': 'changeCustomTextFontSize',
442
+ 'click #customTextBold': 'changeCustomTextBold',
443
+ 'change #customTextValue': 'changeCustomTextValue',
444
+
445
+ /** events for custom image **/
446
+
447
+ 'change #customImageUrl': 'changeCustomImageUrl',
448
+ 'change #customImageWidth': 'changeCustomImageWidth',
449
+ 'change #customImageHeight': 'changeCustomImageHeight',
450
+
451
+ /** events for custom html **/
452
+
453
+ 'change #customHtmlSource': 'changeCustomHtmlSource'
454
+
455
+ },
456
+
457
+ render: function() {
458
+
459
+ if ( this.model )
460
+ this.$el.html( this.template( this.model.attributes ) );
461
+ else
462
+ this.$el.html( $('#nofieldSelected-template').html() );
463
+
464
+ return this;
465
+
466
+ },
467
+
468
+ changeRuleField: function(e) {
469
+
470
+ var value = $(e.currentTarget).val();
471
+
472
+ if ( value === '' ) return;
473
+
474
+ var temp = _.clone( this.model.get( 'rules' ) );
475
+
476
+ temp.field = value;
477
+
478
+ this.model.set( 'rules', temp );
479
+
480
+ },
481
+
482
+ changeRuleFieldOperator: function(e) {
483
+
484
+ var value = $(e.currentTarget).val();
485
+
486
+ if ( value === '' ) return;
487
+
488
+ var temp = _.clone( this.model.get( 'rules' ) );
489
+
490
+ temp.operator = value;
491
+
492
+ this.model.set( 'rules', temp );
493
+
494
+ },
495
+
496
+ changeRuleFieldAction: function(e) {
497
+
498
+ var value = $(e.currentTarget).val();
499
+
500
+ if ( value === '' ) return;
501
+
502
+ var temp = _.clone( this.model.get( 'rules' ) );
503
+
504
+ temp.action = value;
505
+
506
+ this.model.set( 'rules', temp );
507
+
508
+ },
509
+
510
+ changeRuleFieldLogicValue: function(e) {
511
+
512
+ var value = $(e.currentTarget).val();
513
+
514
+ if ( value === '' ) return;
515
+
516
+ var temp = _.clone( this.model.get( 'rules' ) );
517
+
518
+ temp.cmpValue = value;
519
+
520
+ this.model.set( 'rules', temp );
521
+
522
+ },
523
+
524
+ changeEnableRule: function(e) {
525
+
526
+ if ( $(e.currentTarget).is(':checked') )
527
+ this.model.set( 'ruleEnabled', true );
528
+ else
529
+ this.model.set( 'ruleEnabled', false );
530
+
531
+ },
532
+
533
+ changeSize: function(e) {
534
+
535
+ this.model.set( 'size', $(e.currentTarget).val() );
536
+
537
+ },
538
+
539
+ changeVisibility: function(e) {
540
+
541
+
542
+ if ( $(e.currentTarget).val() === 'visible' )
543
+ this.model.set( 'labelVisible', true );
544
+ else
545
+ this.model.set( 'labelVisible', false );
546
+
547
+ },
548
+
549
+ changeRequired: function(e) {
550
+
551
+ if ( $(e.currentTarget).is(':checked') )
552
+ this.model.set( 'required', true );
553
+ else
554
+ this.model.set( 'required', false );
555
+
556
+ },
557
+
558
+ changeNoDuplicates: function(e) {
559
+
560
+ if ( $(e.currentTarget).is(':checked') )
561
+ this.model.set( 'noDuplicates', true );
562
+ else
563
+ this.model.set('noDuplicates', false );
564
+ },
565
+
566
+ changeLabel: function(e) {
567
+
568
+ this.model.set( 'label', $('#fieldLabel').val() );
569
+
570
+ e.stopImmediatePropagation();
571
+
572
+ },
573
+
574
+ changePlaceholder: function(e) {
575
+
576
+ this.model.set( 'placeholderText', $('#fieldPlaceholder').val() );
577
+
578
+ e.stopImmediatePropagation();
579
+ },
580
+
581
+ changeValue: function(e) {
582
+
583
+ var value = $(e.currentTarget).val();
584
+
585
+ if ( this.model.get('type') === 'date' ) {
586
+
587
+ if ( value !== '' ) {
588
+
589
+ var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/;
590
+
591
+ if ( pattern.test( value ) ) {
592
+
593
+ var arr = value.split('/');
594
+
595
+ var temp = { day: arr[0], month: arr[1], year: arr[2] }
596
+
597
+ this.model.set( 'extraData', temp );
598
+
599
+
600
+ }
601
+
602
+ }
603
+
604
+ }
605
+
606
+ this.model.set( 'preValue', value );
607
+
608
+
609
+
610
+ e.stopImmediatePropagation();
611
+
612
+ },
613
+
614
+ changeChoice: function(e) {
615
+
616
+ var choices = this.model.get( 'choices' );
617
+
618
+ choices = _.clone( choices );
619
+
620
+ var choiceText = $(e.currentTarget).val();
621
+
622
+ var index = $(e.currentTarget).data('index');
623
+
624
+ index = parseInt( index );
625
+
626
+ choices[index] = choiceText;
627
+
628
+ this.model.set( 'choices', choices );
629
+
630
+ e.stopImmediatePropagation();
631
+
632
+ },
633
+
634
+ removeChoice: function(e) {
635
+
636
+ var choices = this.model.get( 'choices' );
637
+
638
+ choices = _.clone( choices );
639
+
640
+ var index = $(e.currentTarget).data('index');
641
+
642
+ index = parseInt( index );
643
+
644
+ choices.splice( index, 1 );
645
+
646
+ this.model.set( 'choices', choices );
647
+
648
+ smuzform.App.Views.SettingsView.render();
649
+
650
+ e.stopImmediatePropagation();
651
+
652
+ },
653
+
654
+ addChoice: function(e) {
655
+
656
+ var choices = this.model.get( 'choices' );
657
+
658
+ choices = _.clone( choices );
659
+
660
+ choices.push('');
661
+
662
+ this.model.set( 'choices', choices );
663
+
664
+ smuzform.App.Views.SettingsView.render();
665
+
666
+ e.stopImmediatePropagation();
667
+
668
+ },
669
+
670
+ toggleChoice: function(e) {
671
+
672
+ var index = $(e.currentTarget).data('index');
673
+
674
+ var selectedIndex = this.model.get( 'selectedChoice' );
675
+
676
+ selectedIndex = parseInt( selectedIndex );
677
+
678
+ index = parseInt( index );
679
+
680
+ if ( $(e.currentTarget).is(':checked') ) {
681
+
682
+ if ( selectedIndex === index ) {
683
+
684
+ $(e.currentTarget).prop( 'checked', false );
685
+
686
+ this.model.set( 'selectedChoice', null );
687
+
688
+ return;
689
+
690
+ }
691
+
692
+ }
693
+
694
+ if ( $(e.currentTarget).is(':checked') )
695
+ this.model.set( 'selectedChoice', index );
696
+ else
697
+ this.model.set( 'selectedChoice', null );
698
+
699
+ e.stopImmediatePropagation();
700
+
701
+ },
702
+
703
+ changeSectionTitle: function(e) {
704
+
705
+ this.model.set( 'sectionTitle', $(e.currentTarget).val() );
706
+
707
+ },
708
+
709
+ changeSectionDescription: function(e) {
710
+
711
+ this.model.set( 'sectionDescription', $(e.currentTarget).val() );
712
+
713
+ },
714
+
715
+ changeFileAllowed: function(e) {
716
+
717
+
718
+ var temp = this.model.get( 'file' );
719
+
720
+ var types = $(e.currentTarget).val().split(',');
721
+
722
+ temp.allowed = types;
723
+
724
+ this.model.set( 'file', temp );
725
+
726
+ },
727
+
728
+ changeFileMaxSize: function(e) {
729
+
730
+ var temp = this.model.get( 'file' );
731
+
732
+ var size = parseInt( $(e.currentTarget).val() );
733
+
734
+ temp.maxSize = size;
735
+
736
+ this.model.set( 'file', temp );
737
+
738
+ },
739
+
740
+ changeFieldMinLength: function(e) {
741
+
742
+ var minLength = $(e.currentTarget).val();
743
+
744
+ if ( ! minLength === '' )
745
+ minLength = parseInt(minLength);
746
+
747
+ this.model.set( 'rangeMin', minLength );
748
+
749
+ },
750
+
751
+ changeFieldMaxLength: function(e) {
752
+
753
+ var maxLength = $(e.currentTarget).val();
754
+
755
+ if ( ! maxLength === '' )
756
+ maxLength = parseInt(maxLength);
757
+
758
+ this.model.set( 'rangeMax', maxLength );
759
+
760
+ },
761
+
762
+ processCustomTextHtml: function() {
763
+
764
+ var text = _.clone( this.model.get( 'extraData' ) );
765
+
766
+ var value = '';
767
+
768
+ if ( text.bold )
769
+ text.bold = 'bold';
770
+ else
771
+ text.bold = 'normal';
772
+
773
+ value = $('<div>').html( $( '<'+text.tag+'>' ).text( text.html ).css({
774
+ 'font-size': text.size+'px',
775
+ 'font-weight': text.bold,
776
+ 'color': text.color
777
+ }) );
778
+
779
+ value = value.html();
780
+
781
+ var temp = _.clone( this.model.get( 'extraData' ) );
782
+
783
+ temp.readyHtml = value;
784
+
785
+ this.model.set( 'extraData', temp );
786
+
787
+ },
788
+
789
+ changeCustomTextValue: function(e) {
790
+
791
+ var temp = _.clone( this.model.get( 'extraData' ) );
792
+
793
+ var value = _.escape( $(e.currentTarget).val() );
794
+
795
+ temp.html = value;
796
+
797
+ this.model.set( 'extraData', temp );
798
+
799
+ this.processCustomTextHtml();
800
+
801
+ },
802
+
803
+ changeCustomTextColor: function(e) {
804
+
805
+ var temp = _.clone( this.model.get( 'extraData' ) );
806
+
807
+ var value = _.escape( $(e.currentTarget).val() );
808
+
809
+ temp.color = value;
810
+
811
+ this.model.set( 'extraData', temp );
812
+
813
+ this.processCustomTextHtml();
814
+
815
+ },
816
+
817
+ changeCustomTextTag: function(e) {
818
+
819
+ var temp = this.model.get( 'extraData' );
820
+
821
+ var value = _.escape( $(e.currentTarget).val() );
822
+
823
+ temp.tag = value;
824
+
825
+ this.model.set( 'extraData', temp );
826
+
827
+ this.processCustomTextHtml();
828
+
829
+ },
830
+
831
+ changeCustomTextFontSize: function(e) {
832
+
833
+ var temp = _.clone( this.model.get( 'extraData' ) );
834
+
835
+ var value = _.escape( $(e.currentTarget).val() );
836
+
837
+ temp.size = parseInt( value );
838
+
839
+ this.model.set( 'extraData', temp );
840
+
841
+ this.processCustomTextHtml();
842
+
843
+ },
844
+
845
+ changeCustomTextBold: function(e) {
846
+
847
+ var temp = _.clone( this.model.get( 'extraData' ) );
848
+
849
+ var value = false;
850
+
851
+ if ( $(e.currentTarget).is(':checked') )
852
+ value = true;
853
+
854
+ temp.bold = value;
855
+
856
+ this.model.set( 'extraData', temp );
857
+
858
+ this.processCustomTextHtml();
859
+
860
+ },
861
+
862
+ processCustomImageHtml: function() {
863
+
864
+ var image = _.clone( this.model.get( 'extraData' ) );
865
+
866
+ var value = '';
867
+
868
+ value = $('<div>').html( $( '<img>' ).prop( 'src', image.imgUrl ).css({
869
+ 'width': image.width + 'px',
870
+ 'height': image.height + 'px'
871
+ }) );
872
+
873
+ value = value.html();
874
+
875
+ var temp = _.clone( this.model.get( 'extraData' ) );
876
+
877
+ temp.readyHtml = value;
878
+
879
+ this.model.set( 'extraData', temp );
880
+
881
+ },
882
+ changeCustomImageUrl: function(e){
883
+
884
+ var temp = _.clone( this.model.get( 'extraData' ) );
885
+
886
+ var value = _.escape( $(e.currentTarget).val() );
887
+
888
+ temp.imgUrl = value;
889
+
890
+ this.model.set( 'extraData', temp );
891
+
892
+ this.processCustomImageHtml();
893
+
894
+ },
895
+ changeCustomImageWidth: function(e) {
896
+
897
+ var temp = _.clone( this.model.get( 'extraData' ) );
898
+
899
+ var value = _.escape( $(e.currentTarget).val() );
900
+
901
+ temp.width = parseInt( value );
902
+
903
+ this.model.set( 'extraData', temp );
904
+
905
+ this.processCustomImageHtml();
906
+
907
+ },
908
+ changeCustomImageHeight: function(e) {
909
+
910
+ var temp = _.clone( this.model.get( 'extraData' ) );
911
+
912
+ var value = _.escape( $(e.currentTarget).val() );
913
+
914
+ temp.height = parseInt( value );
915
+
916
+ this.model.set( 'extraData', temp );
917
+
918
+ this.processCustomImageHtml();
919
+
920
+ },
921
+
922
+ changeCustomHtmlSource: function(e) {
923
+
924
+ var temp = _.clone( this.model.get( 'extraData' ) );
925
+
926
+ var value = $(e.currentTarget).val();
927
+
928
+ temp.readyHtml = value;
929
+
930
+ this.model.set( 'extraData', temp );
931
+
932
+ },
933
+
934
+ destroy: function(){
935
+ this.remove();
936
+ this.unbind();
937
+ },
938
+
939
+ setModel: function(model) { this.model = model; }
940
+
941
+ });
942
+
943
+ smuzform.App.Views.SettingsView = new FieldsSettingsView();
944
+
945
+ smuzform.App.Collections.FieldsCollectionView = Backbone.View.extend({
946
+
947
+ template: _.template( $('#fieldsView-template').html() ),
948
+
949
+ tagName: 'li',
950
+
951
+ settingsView: null,
952
+
953
+ initialize: function() {
954
+
955
+ this.model.on( 'change', this.render, this );
956
+
957
+
958
+ },
959
+
960
+ events: {
961
+
962
+ 'click': 'openSettingsPanel',
963
+ 'click .removeMeField': 'removeField'
964
+
965
+ },
966
+
967
+ render: function() {
968
+
969
+ this.$el.html( this.template( this.model.attributes ) );
970
+
971
+ return this;
972
+
973
+ },
974
+
975
+ openSettingsPanel: function(e) {
976
+
977
+ var selectedModel = FieldsListView.getSelectedModel();
978
+
979
+ smuzform.App.Views.SettingsView.setModel( this.model ) ;
980
+
981
+ smuzform.App.Views.SettingsView.render();
982
+
983
+ var tab = 'tab-field-settings';
984
+
985
+ $('.nav-tabs a[href="#' + tab + '"]').delay(200).tab('show');
986
+
987
+ },
988
+
989
+ removeField: function(e) {
990
+
991
+ if ( ! confirm( "Are you sure you want to remove this field? All data associated with it will be lost." ) )
992
+ return;
993
+
994
+ smuzform.App.Collections.FieldsCol.remove( this.model );
995
+
996
+ smuzform.App.Views.SettingsView.setModel( null );
997
+
998
+ smuzform.App.Views.SettingsView.render();
999
+
1000
+ e.stopImmediatePropagation();
1001
+
1002
+ }
1003
+
1004
+ });
1005
+
1006
+
1007
+ smuzform.App.Collections.FieldsCol = new FieldsCollection;
1008
+
1009
+ $('.singleText button').click(function() {
1010
+
1011
+ var TextFieldModel = new Field({
1012
+
1013
+ type: 'singletext',
1014
+ label: 'Untitled',
1015
+
1016
+
1017
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1018
+
1019
+ });
1020
+
1021
+ smuzform.App.Collections.FieldsCol.add( TextFieldModel );
1022
+
1023
+
1024
+
1025
+
1026
+ });
1027
+
1028
+ $('.textArea button').click(function() {
1029
+
1030
+ var TextAreaFieldModel = new Field({
1031
+
1032
+ type: 'textarea',
1033
+ label: 'Untitled',
1034
+ size: 'large',
1035
+
1036
+
1037
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1038
+
1039
+ });
1040
+
1041
+ smuzform.App.Collections.FieldsCol.add( TextAreaFieldModel );
1042
+
1043
+
1044
+ });
1045
+
1046
+ $('.radioButtons button').click(function() {
1047
+
1048
+ var RadioFieldModel = new Field({
1049
+
1050
+ type: 'radio',
1051
+ label: 'Untitled',
1052
+
1053
+
1054
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1055
+
1056
+ });
1057
+
1058
+ smuzform.App.Collections.FieldsCol.add( RadioFieldModel );
1059
+
1060
+
1061
+ });
1062
+
1063
+ $('.checkboxes button').click(function() {
1064
+
1065
+ var CheckboxFieldModel = new Field({
1066
+
1067
+ type: 'checkbox',
1068
+ label: 'Untitled',
1069
+
1070
+
1071
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1072
+
1073
+ });
1074
+
1075
+ smuzform.App.Collections.FieldsCol.add( CheckboxFieldModel );
1076
+
1077
+
1078
+ });
1079
+
1080
+ $('.dropdown button').click(function() {
1081
+
1082
+ var SelectFieldModel = new Field({
1083
+
1084
+ type: 'dropdown',
1085
+ label: 'Untitled',
1086
+
1087
+
1088
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1089
+
1090
+ });
1091
+
1092
+ smuzform.App.Collections.FieldsCol.add( SelectFieldModel );
1093
+
1094
+
1095
+ });
1096
+
1097
+ $('.lineBreak button').click(function() {
1098
+
1099
+ var LinebreakFieldModel = new Field({
1100
+
1101
+ type: 'linebreak',
1102
+
1103
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1104
+
1105
+ });
1106
+
1107
+ smuzform.App.Collections.FieldsCol.add( LinebreakFieldModel );
1108
+
1109
+
1110
+ });
1111
+
1112
+ $('.sectionBreak button').click(function() {
1113
+
1114
+ var SectionbreakFieldModel = new Field({
1115
+
1116
+ type: 'sectionbreak',
1117
+
1118
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1119
+
1120
+ });
1121
+
1122
+ smuzform.App.Collections.FieldsCol.add( SectionbreakFieldModel );
1123
+
1124
+
1125
+ });
1126
+
1127
+ $('.singleNumber button').click(function() {
1128
+
1129
+ var NumberFieldModel = new Field({
1130
+
1131
+ type: 'number',
1132
+ label: 'Number',
1133
+
1134
+
1135
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1136
+
1137
+ });
1138
+
1139
+ smuzform.App.Collections.FieldsCol.add( NumberFieldModel );
1140
+
1141
+
1142
+ });
1143
+
1144
+ $('.fileUpload button').click(function() {
1145
+
1146
+ var FileUploadFieldModel = new Field({
1147
+
1148
+ type: 'fileupload',
1149
+ label: 'Upload File',
1150
+
1151
+
1152
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1153
+
1154
+ });
1155
+
1156
+ smuzform.App.Collections.FieldsCol.add( FileUploadFieldModel );
1157
+
1158
+
1159
+ });
1160
+
1161
+ $('.name button').click(function() {
1162
+
1163
+ var NameFieldModel = new Field({
1164
+
1165
+ type: 'name',
1166
+ label: 'Name',
1167
+ extraData: { firstName: '', LastName: '' },
1168
+ size: 'large',
1169
+
1170
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1171
+
1172
+ });
1173
+
1174
+ smuzform.App.Collections.FieldsCol.add( NameFieldModel );
1175
+
1176
+
1177
+ });
1178
+
1179
+ $('.email button').click(function() {
1180
+
1181
+ var EmailFieldModel = new Field({
1182
+
1183
+ type: 'email',
1184
+ label: 'Email',
1185
+
1186
+
1187
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1188
+
1189
+ });
1190
+
1191
+ smuzform.App.Collections.FieldsCol.add( EmailFieldModel );
1192
+
1193
+
1194
+ });
1195
+
1196
+ $('.website button').click(function() {
1197
+
1198
+ var WebsiteFieldModel = new Field({
1199
+
1200
+ type: 'website',
1201
+ label: 'Link',
1202
+
1203
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100)
1204
+
1205
+ });
1206
+
1207
+ smuzform.App.Collections.FieldsCol.add( WebsiteFieldModel );
1208
+
1209
+
1210
+ });
1211
+
1212
+ $('.date button').click(function() {
1213
+
1214
+ var DateFieldModel = new Field({
1215
+
1216
+ type: 'date',
1217
+ label: 'Date',
1218
+ extraData: { day: 16, month: 05, year: 2016 },
1219
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1220
+ size: 'large',
1221
+ preValue: '16/05/2016'
1222
+
1223
+ });
1224
+
1225
+ smuzform.App.Collections.FieldsCol.add( DateFieldModel );
1226
+
1227
+
1228
+
1229
+
1230
+ });
1231
+
1232
+ $('.phone button').click(function() {
1233
+
1234
+ var PhoneFieldModel = new Field({
1235
+
1236
+ type: 'phone',
1237
+ label: 'Phone Number',
1238
+ extraData: { },
1239
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1240
+ size: 'medium'
1241
+
1242
+ });
1243
+
1244
+ smuzform.App.Collections.FieldsCol.add( PhoneFieldModel );
1245
+
1246
+
1247
+
1248
+
1249
+ });
1250
+
1251
+ $('.address button').click(function() {
1252
+
1253
+ var addressData = {
1254
+
1255
+ firstAddress: '',
1256
+
1257
+ secondAddress: '',
1258
+
1259
+ city: '',
1260
+
1261
+ state: '',
1262
+
1263
+ code: '',
1264
+
1265
+ country: ''
1266
+
1267
+ };
1268
+
1269
+ var AddressFieldModel = new Field({
1270
+
1271
+ type: 'address',
1272
+ label: 'Address',
1273
+ extraData: addressData,
1274
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1275
+ size: 'large'
1276
+
1277
+ });
1278
+
1279
+ smuzform.App.Collections.FieldsCol.add( AddressFieldModel );
1280
+
1281
+ });
1282
+
1283
+ $('.likert button').click(function() {
1284
+
1285
+ var likertData = {};
1286
+
1287
+ var LikertFieldModel = new Field({
1288
+
1289
+ type: 'likert',
1290
+ extraData: likertData,
1291
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1292
+
1293
+ });
1294
+
1295
+ alert( 'The field is in development. Will be available in next version.' );
1296
+
1297
+ //smuzform.App.Collections.FieldsCol.add( LikertFieldModel );
1298
+
1299
+ });
1300
+
1301
+ $('.customText button').click(function() {
1302
+
1303
+ var textData = {
1304
+ html: 'Change me',
1305
+ readyHtml: '<p style="font-size: 14px;color: #000;font-weight: normal">Change Me</p>',
1306
+ tag: 'p',
1307
+ size: 14,
1308
+ color: '#000000',
1309
+ bold: false
1310
+ };
1311
+
1312
+ var TextModel = new Field( {
1313
+
1314
+ type: 'customText',
1315
+ label: 'Custom Text',
1316
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1317
+ extraData: textData
1318
+ });
1319
+
1320
+ smuzform.App.Collections.FieldsCol.add( TextModel );
1321
+
1322
+ });
1323
+
1324
+ $('.customImage button').click(function() {
1325
+
1326
+ var imageData = {
1327
+ imgUrl: '',
1328
+ readyHtml: '<img src="" width="300" height="150" />',
1329
+ width: 300,
1330
+ height: 150
1331
+ };
1332
+
1333
+ var ImageModel = new Field( {
1334
+
1335
+ type: 'customImage',
1336
+ label: 'Custom Image',
1337
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1338
+ extraData: imageData
1339
+ });
1340
+
1341
+ smuzform.App.Collections.FieldsCol.add( ImageModel );
1342
+
1343
+ });
1344
+
1345
+ $('.customHtml button').click(function() {
1346
+
1347
+ var htmlData = {
1348
+ readyHtml: 'Edit Me'
1349
+ };
1350
+
1351
+ var HtmlModel = new Field( {
1352
+
1353
+ type: 'customHtml',
1354
+ label: 'Custom Html',
1355
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1356
+ extraData: htmlData
1357
+ });
1358
+
1359
+ smuzform.App.Collections.FieldsCol.add( HtmlModel );
1360
+
1361
+ });
1362
+
1363
+ $('.pageBreak button').click(function() {
1364
+
1365
+ var pageBreakData = {
1366
+ navText: ''
1367
+ };
1368
+
1369
+ var PageBreakModel = new Field( {
1370
+ label: 'Page Break',
1371
+ type: 'pagebreak',
1372
+ label: 'Page Break',
1373
+ cssID: 'wpformfield'+Math.floor((Math.random() * 200000) + 100),
1374
+ extraData: pageBreakData
1375
+ });
1376
+
1377
+ smuzform.App.Collections.FieldsCol.add( PageBreakModel );
1378
+
1379
+ });
1380
+
1381
+ var FieldsListView = new Backbone.CollectionView({
1382
+
1383
+ el: $('#formFieldsCont'),
1384
+
1385
+ sortable: true,
1386
+
1387
+ modelView: smuzform.App.Collections.FieldsCollectionView,
1388
+
1389
+ collection: smuzform.App.Collections.FieldsCol,
1390
+
1391
+ emptyListCaption: '<div id="noFieldsMessage" class="alert alert-warning"><p></p></div>',
1392
+
1393
+ reuseModelViews: false,
1394
+
1395
+ selectable: true
1396
+
1397
+ });
1398
+
1399
+
1400
+
1401
+ var FormPreviewModel = new smuzform.App.Models.FormSettings();
1402
+
1403
+ var FormPreviewView = new smuzform.App.Views.FormPreview( FormPreviewModel );
1404
+
1405
+ var FormSettingsView = new smuzform.App.Views.FormSettings( {model: FormPreviewModel} );
1406
+
1407
+ $('#fetchForm').click(function(e) {
1408
+
1409
+ e.preventDefault();
1410
+
1411
+ FormPreviewModel.fetch({
1412
+ data: { formID: '781' }
1413
+ }).success(function(){
1414
+ FormPreviewModel.set('id', '781');
1415
+ });
1416
+
1417
+
1418
+ });
1419
+
1420
+ $('#saveForm').click(function(e) {
1421
+
1422
+ e.preventDefault();
1423
+
1424
+ FormPreviewModel.set( 'fields', smuzform.App.Collections.FieldsCol.models );
1425
+
1426
+ $('#serverModalCont p').text('Saving Form...');
1427
+
1428
+ $('#serverModalCont').show();
1429
+
1430
+ FormPreviewModel.save().success( function( response ) {
1431
+
1432
+ var id = response.formID;
1433
+
1434
+ var relative_url = 'admin.php?page=smuz-forms&form_id='+id;
1435
+
1436
+ window.history.replaceState( null, null, relative_url );
1437
+
1438
+ FormPreviewModel.set('id', id);
1439
+
1440
+ FormPreviewModel.set('tmpid', id);
1441
+
1442
+ if ( response.action === 'create' )
1443
+ $('#saveForm').text('Save Form');
1444
+
1445
+ }).always( function() {
1446
+
1447
+ $('#serverModalCont p').text('');
1448
+
1449
+ $('#serverModalCont').hide();
1450
+
1451
+ });
1452
+
1453
+
1454
+ });
1455
+
1456
+ if ( window.smuz_formid !== undefined ) {
1457
+
1458
+ FormPreviewModel.set( 'tmpid', window.smuz_formid );
1459
+
1460
+ $('#serverModalCont p').text('Loading Form...');
1461
+
1462
+ $('#serverModalCont').show();
1463
+
1464
+ FormPreviewModel.fetch({
1465
+
1466
+ data: { formID: window.smuz_formid }
1467
+
1468
+ }).success(function(){
1469
+
1470
+ FormPreviewModel.set('id', window.smuz_formid );
1471
+
1472
+ var fields = FormPreviewModel.get('fields');
1473
+
1474
+ _.each( fields, function( field, index ) {
1475
+ smuzform.App.Collections.FieldsCol.add(field);
1476
+ });
1477
+
1478
+ smuzform.App.Collections.FieldsCol.on( 'add', function( model ) {
1479
+ $('html, body').animate({
1480
+ scrollTop: $('#saveForm').offset().top - 200
1481
+ }, 200);
1482
+ } );
1483
+
1484
+ }).always(function() {
1485
+
1486
+ $('#serverModalCont').delay(100).hide();
1487
+
1488
+ $('#serverModalCont p').delay(100).text('');
1489
+
1490
+ });
1491
+
1492
+ }
1493
+
1494
+
1495
+
1496
+ FormPreviewView.render();
1497
+
1498
+ FormSettingsView.render( FormPreviewModel );
1499
+
1500
+ FieldsListView.render();
1501
+
1502
+ var FormNavBarView = new smuzform.App.Views.NavBar( FormPreviewModel );
1503
+
1504
+ FormNavBarView.render();
1505
+
1506
+ });
1507
+
1508
+ $(document).on( 'submit', '#fieldSettingsForm', function() {
1509
+ return false;
1510
+ } );
1511
+ $(document).on( 'submit', '#formSettingsForm', function() {
1512
+ return false;
1513
+ } );
1514
+
1515
+ $(document).ready(function(){$('.toplevel_page_smuz-forms-main').addClass('current');})
1516
+
1517
+ })(jQuery);
admin/assets/js/style/style-manager.js ADDED
@@ -0,0 +1,1418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+
3
+ //SmuzForm
4
+
5
+ StyleManager = {
6
+ Models: {},
7
+ Collections: {},
8
+ Views: {},
9
+ Dispatcher: _.clone(Backbone.Events),
10
+ };
11
+
12
+
13
+ StyleManager.Models.StyleSettings = Backbone.Model.extend({
14
+
15
+ initialize: function() { },
16
+
17
+ defaults: function() {
18
+
19
+ return {
20
+
21
+ enabled: false,
22
+
23
+ formCont: {
24
+ font: '',
25
+ fontSize: 14,
26
+ color: '#000000',
27
+ bgColor: '#ffffff',
28
+ margin: '',
29
+ padding: '',
30
+ bgImg: ''
31
+ },
32
+
33
+ formHeading: {
34
+ font: '',
35
+ fontSize: '24',
36
+ color: '',
37
+ bgColor: '',
38
+ padding: '',
39
+ margin: '',
40
+ },
41
+
42
+ formDescription: {
43
+ font: '',
44
+ fontSize: '13',
45
+ color: '',
46
+ bgColor: '',
47
+ padding: '',
48
+ margin: '',
49
+ },
50
+
51
+ fieldLabel: {
52
+ font: '',
53
+ fontSize: '14',
54
+ color: '',
55
+ bgColor: '',
56
+ padding: '',
57
+ margin: '',
58
+ fontWeight: 'bold'
59
+ },
60
+
61
+ fieldInput: {
62
+ font: '',
63
+ fontSize: '14',
64
+ color: '',
65
+ bgColor: '',
66
+ paddingLeft: '12',
67
+ paddingRight: '12',
68
+ paddingTop: '6',
69
+ paddingBottom: '6',
70
+ marginLeft: '0',
71
+ marginRight: '0',
72
+ marginTop: '0',
73
+ marginBottom: '0',
74
+ fontWeight: 'bold',
75
+ borderColor: '#ccc',
76
+ borderSize: '1',
77
+ borderStyle: 'solid',
78
+ borderRadius: '4'
79
+ },
80
+
81
+ submitBtn: {
82
+ font: '',
83
+ fontSize: '16',
84
+ color: '#ffffff',
85
+ bgColor: '#333',
86
+ paddingLeft: 26,
87
+ paddingRight: 26,
88
+ paddingBottom: 13,
89
+ paddingTop: 13,
90
+ margin: '',
91
+ fontWeight: 'bold',
92
+ hoverBgColor: '#707070',
93
+ borderColor: '#ccc',
94
+ borderSize: '0',
95
+ borderStyle: 'solid',
96
+ borderRadius: '0',
97
+ hoverBgColor: ''
98
+ }
99
+
100
+
101
+ };
102
+ }
103
+
104
+ });
105
+
106
+ StyleManager.Models.FormSettings = Backbone.Model.extend({
107
+
108
+ initialize: function() { },
109
+
110
+ defaults: function() {
111
+
112
+ return {
113
+ tmpid: '',
114
+ fields: {},
115
+ title: 'Form Name',
116
+ description: 'Click me to change the description.',
117
+ lang: 'en',
118
+ labelPlacement: 'top',
119
+ confirmationOption: 'text',
120
+ textMessage: 'Thanks for submitting your information',
121
+ redirectUrl: '',
122
+ captcha: false,
123
+ noOfEntries: '',
124
+ onlySingleIP: false,
125
+ formTimer: false,
126
+ formStartTime: null,
127
+ formEndTime: null,
128
+ theme: {},
129
+ extraData: {},
130
+ confirmationEmailToUser: false,
131
+ emailAddressField: '',
132
+ replyToEmail: '',
133
+ submitBtn: true,
134
+ submitBtnText: 'Submit',
135
+ submitBtnType: 'normal',
136
+ errorMessages: {},
137
+ style: {}
138
+
139
+ };
140
+
141
+ },
142
+
143
+ url: ajaxurl+'?action=smuzform_api&nonce='+smuzform.form_model_nonce
144
+
145
+ });
146
+
147
+ StyleManager.Models.Field = Backbone.Model.extend({
148
+
149
+ validate: function( attr ) {
150
+
151
+ if ( attr.type === undefined )
152
+ return 'Set Field Type';
153
+ },
154
+
155
+ initialize: function() {
156
+
157
+ this.on( 'invalid', function( model, error ) {
158
+
159
+ console.log( error );
160
+
161
+ } );
162
+
163
+ this.on( 'change:label', function( model ) {
164
+
165
+ } );
166
+
167
+ },
168
+
169
+ defaults: function() {
170
+ return {
171
+
172
+ label: 'Untitled Label',
173
+
174
+ type: undefined,
175
+
176
+ size: 'medium',
177
+
178
+ required: false,
179
+
180
+ noDuplicates: false,
181
+
182
+ visibility: true,
183
+
184
+ labelVisible: true,
185
+
186
+ rangeMin: '',
187
+
188
+ rangeMax: '',
189
+
190
+ rangeFormat: 'char',
191
+
192
+ preValue: '',
193
+
194
+ helpText: '',
195
+
196
+ cssClasses: '',
197
+
198
+ placeholderText: '',
199
+
200
+ radios: false,
201
+
202
+ checkboxes: false,
203
+
204
+ textAreaRows: 10,
205
+
206
+ textAreaCols: 60,
207
+
208
+ cssID: 'wpfieldid',
209
+
210
+ choices: ['First Choice','Second Choice', 'Third Choice'],
211
+
212
+ selectedChoice: null,
213
+
214
+ checkboxSelectedChoice: [],
215
+
216
+ sectionTitle: 'Section Title',
217
+
218
+ sectionDescription: 'Click me to change the description',
219
+
220
+ extraData: null,
221
+
222
+ ruleEnabled: false,
223
+
224
+ rules: {
225
+ field: '',
226
+ operator: 'is',
227
+ cmpValue: '',
228
+ action: 'show'
229
+ },
230
+
231
+ statements: {},
232
+
233
+ columns: {},
234
+
235
+ file: {
236
+
237
+ allowed: [ 'jpg','jpeg','png','gif','pdf','doc','docx','key','ppt','pptx','pps','ppsx','odt','xls','xlsx','zip','mp3','m4a','ogg','wav','mp4','m4v','wmv','avi','mpg','ogv','3gp','3g2' ],
238
+ maxSize: 2
239
+
240
+ },
241
+
242
+ login: {}
243
+
244
+ };
245
+ }
246
+
247
+ });
248
+
249
+ StyleManager.Collections.FieldsCol = Backbone.Collection.extend({
250
+ model: StyleManager.Models.Field
251
+ });
252
+
253
+
254
+ StyleManager.Views.FieldsCollectionView = Backbone.View.extend({
255
+
256
+
257
+
258
+ tagName: 'li',
259
+
260
+ settingsView: null,
261
+
262
+ initialize: function() {
263
+
264
+ this.model.on( 'change', this.render, this );
265
+
266
+ this.template = _.template( $('#fieldsView-template').html() );
267
+
268
+ },
269
+
270
+ render: function() {
271
+
272
+ this.$el.html( this.template( this.model.attributes ) );
273
+
274
+ return this;
275
+
276
+ }
277
+
278
+ });
279
+
280
+ StyleManager.Views.FormPreview = Backbone.View.extend({
281
+
282
+ initialize: function() {
283
+
284
+ this.template = _.template( $('#formPreview-template').html() );
285
+
286
+ this.model.on( 'change', this.render, this );
287
+
288
+ },
289
+
290
+ render: function() {
291
+
292
+ this.$el.html( this.template( this.model.attributes ) );
293
+
294
+ return this;
295
+
296
+ }
297
+
298
+ });
299
+
300
+
301
+ StyleManager.Views.StyleSettings = Backbone.View.extend({
302
+
303
+ initialize: function() {
304
+
305
+ this.template = _.template( $('#formStyle-template').html() );
306
+
307
+ //this.model.on( 'change', this.render, this );
308
+
309
+ },
310
+
311
+ render: function() {
312
+
313
+ this.$el.html( this.template( this.model.attributes ) );
314
+
315
+ $('.colorpickerfield').wpColorPicker({
316
+
317
+ change: _.throttle( function () { $(this).trigger('change'); }, 300 ),
318
+ palettes: true,
319
+
320
+ });
321
+
322
+ this.applyStylesToCont();
323
+ this.applyStylesToHeading();
324
+ this.applyStylesToDescription();
325
+ this.applyStylesToFieldLabel();
326
+ this.applyStylesToFieldInput();
327
+ this.applyStylesToSubmitBtn();
328
+
329
+ return this;
330
+ },
331
+
332
+ events: {
333
+
334
+ 'click #styleEnabled': 'changeStyleEnabled',
335
+
336
+ //Form Cont Events
337
+ 'change #styleContFontSize': 'changeContFontSize',
338
+ 'change #styleContColor': 'changeContColor',
339
+ 'change #styleContBgColor': 'changeContBgColor',
340
+ 'change #styleContMargin': 'changeContMargin',
341
+ 'change #styleContPadding': 'changeContPadding',
342
+ //End of Form Cont Events
343
+
344
+ //Form Heading Events
345
+ 'change #styleHeadingFontSize': 'changeHeadingFontSize',
346
+ 'change #styleHeadingColor': 'changeHeadingColor',
347
+ 'change #styleHeadingBgColor': 'changeHeadingBgColor',
348
+ 'change #styleHeadingMargin': 'changeHeadingMargin',
349
+ 'change #styleHeadingPadding': 'changeHeadingPadding',
350
+ //End of Form Heading Events
351
+
352
+ //Form Description Events
353
+ 'change #styleDescriptionFontSize': 'changeDescriptionFontSize',
354
+ 'change #styleDescriptionColor': 'changeDescriptionColor',
355
+ 'change #styleDescriptionBgColor': 'changeDescriptionBgColor',
356
+ 'change #styleDescriptionMargin': 'changeDescriptionMargin',
357
+ 'change #styleDescriptionPadding': 'changeDescriptionPadding',
358
+ //End of Form Description Events
359
+
360
+ //Form FieldLabel Events
361
+ 'change #styleFieldLabelFontSize': 'changeFieldLabelFontSize',
362
+ 'change #styleFieldLabelColor': 'changeFieldLabelColor',
363
+ 'change #styleFieldLabelBgColor': 'changeFieldLabelBgColor',
364
+ 'change #styleFieldLabelMargin': 'changeFieldLabelMargin',
365
+ 'change #styleFieldLabelPadding': 'changeFieldLabelPadding',
366
+ 'click #styleFieldLabelFontWeight': 'changeFieldLabelFontWeight',
367
+ //End of Form FieldLabel Events
368
+
369
+ //Form FieldInput Events
370
+ 'change #styleFieldInputFontSize': 'changeFieldInputFontSize',
371
+ 'change #styleFieldInputColor': 'changeFieldInputColor',
372
+ 'change #styleFieldInputBgColor': 'changeFieldInputBgColor',
373
+ 'change #styleFieldInputMarginLeft': 'changeFieldInputMarginLeft',
374
+ 'change #styleFieldInputMarginRight': 'changeFieldInputMarginRight',
375
+ 'change #styleFieldInputMarginTop': 'changeFieldInputMarginTop',
376
+ 'change #styleFieldInputMarginBottom': 'changeFieldInputMarginBottom',
377
+ 'change #styleFieldInputPaddingLeft': 'changeFieldInputPaddingLeft',
378
+ 'change #styleFieldInputPaddingRight': 'changeFieldInputPaddingRight',
379
+ 'change #styleFieldInputPaddingTop': 'changeFieldInputPaddingTop',
380
+ 'change #styleFieldInputPaddingBottom': 'changeFieldInputPaddingBottom',
381
+ 'click #styleFieldInputFontWeight': 'changeFieldInputFontWeight',
382
+ 'change #styleFieldInputBorderColor': 'changeFieldInputBorderColor',
383
+ 'change #styleFieldInputBorderSize': 'changeFieldInputBorderSize',
384
+ 'change #styleFieldInputBorderRadius': 'changeFieldInputBorderRadius',
385
+ 'change #styleFieldInputBorderStyle': 'changeFieldInputBorderStyle',
386
+ //End of Form FieldInput Events
387
+
388
+ //Form SubmitBtn Events
389
+ 'change #styleSubmitBtnFontSize': 'changeSubmitBtnFontSize',
390
+ 'change #styleSubmitBtnColor': 'changeSubmitBtnColor',
391
+ 'change #styleSubmitBtnBgColor': 'changeSubmitBtnBgColor',
392
+ 'change #styleSubmitBtnMarginLeft': 'changeSubmitBtnMarginLeft',
393
+ 'change #styleSubmitBtnMarginRight': 'changeSubmitBtnMarginRight',
394
+ 'change #styleSubmitBtnMarginTop': 'changeSubmitBtnMarginTop',
395
+ 'change #styleSubmitBtnMarginBottom': 'changeSubmitBtnMarginBottom',
396
+ 'change #styleSubmitBtnPaddingLeft': 'changeSubmitBtnPaddingLeft',
397
+ 'change #styleSubmitBtnPaddingRight': 'changeSubmitBtnPaddingRight',
398
+ 'change #styleSubmitBtnPaddingTop': 'changeSubmitBtnPaddingTop',
399
+ 'change #styleSubmitBtnPaddingBottom': 'changeSubmitBtnPaddingBottom',
400
+ 'click #styleSubmitBtnFontWeight': 'changeSubmitBtnFontWeight',
401
+ 'change #styleSubmitBtnBorderColor': 'changeSubmitBtnBorderColor',
402
+ 'change #styleSubmitBtnBorderSize': 'changeSubmitBtnBorderSize',
403
+ 'change #styleSubmitBtnBorderRadius': 'changeSubmitBtnBorderRadius',
404
+ 'change #styleSubmitBtnBorderStyle': 'changeSubmitBtnBorderStyle',
405
+ 'change #styleSubmitBtnHoverBgColor': 'changeSubmitBtnHoverBgColor'
406
+ //End of Form SubmitBtn Events
407
+ },
408
+
409
+ changeStyleEnabled: function(e) {
410
+
411
+ if ( $(e.currentTarget).is(':checked') )
412
+ this.model.set( 'enabled', true );
413
+ else
414
+ this.model.set( 'enabled', false );
415
+
416
+ },
417
+
418
+
419
+ applyStylesToCont: function(){
420
+
421
+ var style = _.clone( this.model.get( 'formCont' ) );
422
+
423
+
424
+ $('#inline-preview-cont').css({
425
+
426
+ 'font-size': style.fontSize + 'px',
427
+ 'color': style.color,
428
+ 'background-color': style.bgColor,
429
+ 'margin': style.margin,
430
+ 'padding': style.padding
431
+
432
+ });
433
+
434
+
435
+ },
436
+
437
+ changeContFontSize: function(e){
438
+
439
+ var value = parseInt( $(e.currentTarget).val() );
440
+
441
+ var temp = _.clone( this.model.get( 'formCont' ) );
442
+
443
+ temp.fontSize = value;
444
+
445
+ this.model.set( 'formCont', temp );
446
+
447
+ this.applyStylesToCont();
448
+
449
+ },
450
+ changeContColor: function(e){
451
+
452
+ var value = _.escape( $(e.currentTarget).val() );
453
+
454
+ var temp = _.clone( this.model.get( 'formCont' ) );
455
+
456
+ temp.color = value;
457
+
458
+ this.model.set( 'formCont', temp );
459
+
460
+ this.applyStylesToCont();
461
+
462
+ },
463
+ changeContBgColor: function(e){
464
+
465
+ var value = _.escape( $(e.currentTarget).val() );
466
+
467
+ var temp = _.clone( this.model.get( 'formCont' ) );
468
+
469
+ temp.bgColor = value;
470
+
471
+ this.model.set( 'formCont', temp );
472
+
473
+ this.applyStylesToCont();
474
+
475
+ },
476
+ changeContMargin: function(e){
477
+
478
+ var value = parseInt( $(e.currentTarget).val() );
479
+
480
+ var temp = _.clone( this.model.get( 'formCont' ) );
481
+
482
+ temp.margin = value;
483
+
484
+ this.model.set( 'formCont', temp );
485
+
486
+ this.applyStylesToCont();
487
+
488
+ },
489
+ changeContPadding: function(e){
490
+
491
+ var value = parseInt( $(e.currentTarget).val() );
492
+
493
+ var temp = _.clone( this.model.get( 'formCont' ) );
494
+
495
+ temp.padding = value;
496
+
497
+ this.model.set( 'formCont', temp );
498
+
499
+ this.applyStylesToCont();
500
+
501
+ },
502
+
503
+ //form heading
504
+
505
+ applyStylesToHeading: function(){
506
+
507
+ var style = _.clone( this.model.get( 'formHeading' ) );
508
+
509
+
510
+ $('.form-title').css({
511
+
512
+ 'font-size': style.fontSize + 'px',
513
+ 'color': style.color,
514
+ 'background-color': style.bgColor,
515
+ 'margin': style.margin,
516
+ 'padding': style.padding
517
+
518
+ });
519
+
520
+
521
+ },
522
+
523
+ changeHeadingFontSize: function(e){
524
+
525
+ var value = parseInt( $(e.currentTarget).val() );
526
+
527
+ var temp = _.clone( this.model.get( 'formHeading' ) );
528
+
529
+ temp.fontSize = value;
530
+
531
+ this.model.set( 'formHeading', temp );
532
+
533
+ this.applyStylesToHeading();
534
+
535
+ },
536
+ changeHeadingColor: function(e){
537
+
538
+ var value = _.escape( $(e.currentTarget).val() );
539
+
540
+ var temp = _.clone( this.model.get( 'formHeading' ) );
541
+
542
+ temp.color = value;
543
+
544
+ this.model.set( 'formHeading', temp );
545
+
546
+ this.applyStylesToHeading();
547
+
548
+ },
549
+ changeHeadingBgColor: function(e){
550
+
551
+ var value = _.escape( $(e.currentTarget).val() );
552
+
553
+ var temp = _.clone( this.model.get( 'formHeading' ) );
554
+
555
+ temp.bgColor = value;
556
+
557
+ this.model.set( 'formHeading', temp );
558
+
559
+ this.applyStylesToHeading();
560
+
561
+ },
562
+ changeHeadingMargin: function(e){
563
+
564
+ var value = parseInt( $(e.currentTarget).val() );
565
+
566
+ var temp = _.clone( this.model.get( 'formHeading' ) );
567
+
568
+ temp.margin = value;
569
+
570
+ this.model.set( 'formHeading', temp );
571
+
572
+ this.applyStylesToHeading();
573
+
574
+ },
575
+ changeHeadingPadding: function(e){
576
+
577
+ var value = parseInt( $(e.currentTarget).val() );
578
+
579
+ var temp = _.clone( this.model.get( 'formHeading' ) );
580
+
581
+ temp.padding = value;
582
+
583
+ this.model.set( 'formHeading', temp );
584
+
585
+ this.applyStylesToHeading();
586
+
587
+ },
588
+
589
+ //form description
590
+
591
+ applyStylesToDescription: function(){
592
+
593
+ var style = _.clone( this.model.get( 'formDescription' ) );
594
+
595
+ $('.form-description').css({
596
+
597
+ 'font-size': style.fontSize + 'px',
598
+ 'color': style.color,
599
+ 'background-color': style.bgColor,
600
+ 'margin': style.margin,
601
+ 'padding': style.padding
602
+
603
+ });
604
+
605
+ $('.form-description p').css({
606
+
607
+ 'font-size': style.fontSize + 'px'
608
+
609
+ });
610
+
611
+
612
+ },
613
+
614
+ changeDescriptionFontSize: function(e){
615
+
616
+ var value = parseInt( $(e.currentTarget).val() );
617
+
618
+ var temp = _.clone( this.model.get( 'formDescription' ) );
619
+
620
+ temp.fontSize = value;
621
+
622
+ this.model.set( 'formDescription', temp );
623
+
624
+ this.applyStylesToDescription();
625
+
626
+ },
627
+ changeDescriptionColor: function(e){
628
+
629
+ var value = _.escape( $(e.currentTarget).val() );
630
+
631
+ var temp = _.clone( this.model.get( 'formDescription' ) );
632
+
633
+ temp.color = value;
634
+
635
+ this.model.set( 'formDescription', temp );
636
+
637
+ this.applyStylesToDescription();
638
+
639
+ },
640
+ changeDescriptionBgColor: function(e){
641
+
642
+ var value = _.escape( $(e.currentTarget).val() );
643
+
644
+ var temp = _.clone( this.model.get( 'formDescription' ) );
645
+
646
+ temp.bgColor = value;
647
+
648
+ this.model.set( 'formDescription', temp );
649
+
650
+ this.applyStylesToDescription();
651
+
652
+ },
653
+ changeDescriptionMargin: function(e){
654
+
655
+ var value = parseInt( $(e.currentTarget).val() );
656
+
657
+ var temp = _.clone( this.model.get( 'formDescription' ) );
658
+
659
+ temp.margin = value;
660
+
661
+ this.model.set( 'formDescription', temp );
662
+
663
+ this.applyStylesToDescription();
664
+
665
+ },
666
+ changeDescriptionPadding: function(e){
667
+
668
+ var value = parseInt( $(e.currentTarget).val() );
669
+
670
+ var temp = _.clone( this.model.get( 'formDescription' ) );
671
+
672
+ temp.padding = value;
673
+
674
+ this.model.set( 'formDescription', temp );
675
+
676
+ this.applyStylesToDescription();
677
+
678
+ },
679
+
680
+ //field label
681
+
682
+ applyStylesToFieldLabel: function(){
683
+
684
+ var style = _.clone( this.model.get( 'fieldLabel' ) );
685
+
686
+ $('#formFieldsCont .form-group label').css({
687
+
688
+ 'font-size': style.fontSize + 'px',
689
+ 'color': style.color,
690
+ 'background-color': style.bgColor,
691
+ 'margin': style.margin,
692
+ 'padding': style.padding
693
+
694
+ });
695
+
696
+ $('#formFieldsCont .form-group .smfieldlabel').css({
697
+ 'font-weight': style.fontWeight,
698
+ });
699
+
700
+ },
701
+
702
+ changeFieldLabelFontSize: function(e){
703
+
704
+ var value = parseInt( $(e.currentTarget).val() );
705
+
706
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
707
+
708
+ temp.fontSize = value;
709
+
710
+ this.model.set( 'fieldLabel', temp );
711
+
712
+ this.applyStylesToFieldLabel();
713
+
714
+ },
715
+ changeFieldLabelColor: function(e){
716
+
717
+ var value = _.escape( $(e.currentTarget).val() );
718
+
719
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
720
+
721
+ temp.color = value;
722
+
723
+ this.model.set( 'fieldLabel', temp );
724
+
725
+ this.applyStylesToFieldLabel();
726
+
727
+ },
728
+ changeFieldLabelBgColor: function(e){
729
+
730
+ var value = _.escape( $(e.currentTarget).val() );
731
+
732
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
733
+
734
+ temp.bgColor = value;
735
+
736
+ this.model.set( 'fieldLabel', temp );
737
+
738
+ this.applyStylesToFieldLabel();
739
+
740
+ },
741
+ changeFieldLabelMargin: function(e){
742
+
743
+ var value = parseInt( $(e.currentTarget).val() );
744
+
745
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
746
+
747
+ temp.margin = value;
748
+
749
+ this.model.set( 'fieldLabel', temp );
750
+
751
+ this.applyStylesToFieldLabel();
752
+
753
+ },
754
+ changeFieldLabelPadding: function(e){
755
+
756
+ var value = parseInt( $(e.currentTarget).val() );
757
+
758
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
759
+
760
+ temp.padding = value;
761
+
762
+ this.model.set( 'fieldLabel', temp );
763
+
764
+ this.applyStylesToFieldLabel();
765
+
766
+ },
767
+
768
+ changeFieldLabelFontWeight: function(e){
769
+
770
+ var value = 'bold';
771
+
772
+ if ( $(e.currentTarget).is(':checked') )
773
+ value = 'bold';
774
+ else
775
+ value = 'normal';
776
+
777
+ var temp = _.clone( this.model.get( 'fieldLabel' ) );
778
+
779
+ temp.fontWeight = value;
780
+
781
+ this.model.set( 'fieldLabel', temp );
782
+
783
+ this.applyStylesToFieldLabel();
784
+
785
+ },
786
+
787
+ //field input
788
+
789
+ applyStylesToFieldInput: function(){
790
+
791
+ var style = _.clone( this.model.get( 'fieldInput' ) );
792
+
793
+ $('.smformfield').css({
794
+
795
+ 'font-size': style.fontSize + 'px',
796
+ 'font-weight': style.fontWeight,
797
+ 'color': style.color,
798
+ 'background-color': style.bgColor,
799
+ 'margin-left': style.marginLeft + 'px',
800
+ 'margin-right': style.marginRight + 'px',
801
+ 'margin-top': style.marginTop + 'px',
802
+ 'margin-bottom': style.marginBottom + 'px',
803
+ 'padding-left': style.paddingLeft + 'px',
804
+ 'padding-right': style.paddingRight + 'px',
805
+ 'padding-top': style.paddingTop + 'px',
806
+ 'padding-bottom': style.paddingBottom + 'px',
807
+ 'border-color': style.borderColor,
808
+ 'border-width': style.borderSize + 'px',
809
+ 'border-radius': style.borderRadius + 'px',
810
+ 'border-style': style.borderStyle
811
+
812
+ });
813
+
814
+
815
+ },
816
+
817
+ changeFieldInputFontSize: function(e){
818
+
819
+ var value = parseInt( $(e.currentTarget).val() );
820
+
821
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
822
+
823
+ temp.fontSize = value;
824
+
825
+ this.model.set( 'fieldInput', temp );
826
+
827
+ this.applyStylesToFieldInput();
828
+
829
+ },
830
+ changeFieldInputColor: function(e){
831
+
832
+ var value = _.escape( $(e.currentTarget).val() );
833
+
834
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
835
+
836
+ temp.color = value;
837
+
838
+ this.model.set( 'fieldInput', temp );
839
+
840
+ this.applyStylesToFieldInput();
841
+
842
+ },
843
+ changeFieldInputBgColor: function(e){
844
+
845
+ var value = _.escape( $(e.currentTarget).val() );
846
+
847
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
848
+
849
+ temp.bgColor = value;
850
+
851
+ this.model.set( 'fieldInput', temp );
852
+
853
+ this.applyStylesToFieldInput();
854
+
855
+ },
856
+ changeFieldInputMarginLeft: function(e){
857
+
858
+ var value = parseInt( $(e.currentTarget).val() );
859
+
860
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
861
+
862
+ temp.marginLeft = value;
863
+
864
+ this.model.set( 'fieldInput', temp );
865
+
866
+ this.applyStylesToFieldInput();
867
+
868
+ },
869
+ changeFieldInputMarginRight: function(e){
870
+
871
+ var value = parseInt( $(e.currentTarget).val() );
872
+
873
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
874
+
875
+ temp.marginRight = value;
876
+
877
+ this.model.set( 'fieldInput', temp );
878
+
879
+ this.applyStylesToFieldInput();
880
+
881
+ },
882
+ changeFieldInputMarginTop: function(e){
883
+
884
+ var value = parseInt( $(e.currentTarget).val() );
885
+
886
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
887
+
888
+ temp.marginTop = value;
889
+
890
+ this.model.set( 'fieldInput', temp );
891
+
892
+ this.applyStylesToFieldInput();
893
+
894
+ },
895
+ changeFieldInputMarginBottom: function(e){
896
+
897
+ var value = parseInt( $(e.currentTarget).val() );
898
+
899
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
900
+
901
+ temp.marginBottom= value;
902
+
903
+ this.model.set( 'fieldInput', temp );
904
+
905
+ this.applyStylesToFieldInput();
906
+
907
+ },
908
+ changeFieldInputPaddingLeft: function(e){
909
+
910
+ var value = parseInt( $(e.currentTarget).val() );
911
+
912
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
913
+
914
+ temp.paddingLeft = value;
915
+
916
+ this.model.set( 'fieldInput', temp );
917
+
918
+ this.applyStylesToFieldInput();
919
+
920
+ },
921
+ changeFieldInputPaddingRight: function(e){
922
+
923
+ var value = parseInt( $(e.currentTarget).val() );
924
+
925
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
926
+
927
+ temp.paddingRight = value;
928
+
929
+ this.model.set( 'fieldInput', temp );
930
+
931
+ this.applyStylesToFieldInput();
932
+
933
+ },
934
+ changeFieldInputPaddingTop: function(e){
935
+
936
+ var value = parseInt( $(e.currentTarget).val() );
937
+
938
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
939
+
940
+ temp.paddingTop = value;
941
+
942
+ this.model.set( 'fieldInput', temp );
943
+
944
+ this.applyStylesToFieldInput();
945
+
946
+ },
947
+ changeFieldInputPaddingBottom: function(e){
948
+
949
+ var value = parseInt( $(e.currentTarget).val() );
950
+
951
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
952
+
953
+ temp.paddingBottom = value;
954
+
955
+ this.model.set( 'fieldInput', temp );
956
+
957
+ this.applyStylesToFieldInput();
958
+
959
+ },
960
+ changeFieldInputBorderColor: function(e){
961
+
962
+ var value = _.escape( $(e.currentTarget).val() );
963
+
964
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
965
+
966
+ temp.borderColor = value;
967
+
968
+ this.model.set( 'fieldInput', temp );
969
+
970
+ this.applyStylesToFieldInput();
971
+
972
+ },
973
+
974
+ changeFieldInputBorderSize: function(e){
975
+
976
+ var value = parseInt( $(e.currentTarget).val() );
977
+
978
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
979
+
980
+ temp.borderSize = value;
981
+
982
+ this.model.set( 'fieldInput', temp );
983
+
984
+ this.applyStylesToFieldInput();
985
+
986
+
987
+ },
988
+ changeFieldInputBorderRadius: function(e){
989
+
990
+ var value = parseInt( $(e.currentTarget).val() );
991
+
992
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
993
+
994
+ temp.borderRadius = value;
995
+
996
+ this.model.set( 'fieldInput', temp );
997
+
998
+ this.applyStylesToFieldInput();
999
+
1000
+ },
1001
+ changeFieldInputBorderStyle: function(e){
1002
+
1003
+ var value = _.escape( $(e.currentTarget).val() );
1004
+
1005
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
1006
+
1007
+ temp.borderStyle = value;
1008
+
1009
+ this.model.set( 'fieldInput', temp );
1010
+
1011
+ this.applyStylesToFieldInput();
1012
+
1013
+ },
1014
+ changeFieldInputFontWeight: function(e){
1015
+
1016
+ var value = 'bold';
1017
+
1018
+ if ( $(e.currentTarget).is(':checked') )
1019
+ value = 'bold';
1020
+ else
1021
+ value = 'normal';
1022
+
1023
+ var temp = _.clone( this.model.get( 'fieldInput' ) );
1024
+
1025
+ temp.fontWeight = value;
1026
+
1027
+ this.model.set( 'fieldInput', temp );
1028
+
1029
+ this.applyStylesToFieldInput();
1030
+
1031
+ },
1032
+
1033
+ applyStylesToSubmitBtn: function(){
1034
+
1035
+ var style = _.clone( this.model.get( 'submitBtn' ) );
1036
+
1037
+
1038
+ $('#formSubmitBtn').css({
1039
+
1040
+ 'font-size': style.fontSize + 'px',
1041
+ 'font-weight': style.fontWeight,
1042
+ 'color': style.color,
1043
+ 'background-color': style.bgColor,
1044
+ 'margin-left': style.marginLeft + 'px',
1045
+ 'margin-right': style.marginRight + 'px',
1046
+ 'margin-top': style.marginTop + 'px',
1047
+ 'margin-bottom': style.marginBottom + 'px',
1048
+ 'padding-left': style.paddingLeft + 'px',
1049
+ 'padding-right': style.paddingRight + 'px',
1050
+ 'padding-top': style.paddingTop + 'px',
1051
+ 'padding-bottom': style.paddingBottom + 'px',
1052
+ 'border-color': style.borderColor,
1053
+ 'border-width': style.borderSize + 'px',
1054
+ 'border-radius': style.borderRadius + 'px',
1055
+ 'border-style': style.borderStyle
1056
+
1057
+ });
1058
+
1059
+ if ( style.hoverBgColor !== '' )
1060
+ $('head').append('<style>#formSubmitBtn:hover{background-color : ' + style.hoverBgColor + ' !important;}</style>');
1061
+
1062
+ },
1063
+
1064
+ changeSubmitBtnFontSize: function(e){
1065
+
1066
+ var value = parseInt( $(e.currentTarget).val() );
1067
+
1068
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1069
+
1070
+ temp.fontSize = value;
1071
+
1072
+ this.model.set( 'submitBtn', temp );
1073
+
1074
+ this.applyStylesToSubmitBtn();
1075
+
1076
+ },
1077
+ changeSubmitBtnColor: function(e){
1078
+
1079
+ var value = _.escape( $(e.currentTarget).val() );
1080
+
1081
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1082
+
1083
+ temp.color = value;
1084
+
1085
+ this.model.set( 'submitBtn', temp );
1086
+
1087
+ this.applyStylesToSubmitBtn();
1088
+
1089
+ },
1090
+ changeSubmitBtnBgColor: function(e){
1091
+
1092
+ var value = _.escape( $(e.currentTarget).val() );
1093
+
1094
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1095
+
1096
+ temp.bgColor = value;
1097
+
1098
+ this.model.set( 'submitBtn', temp );
1099
+
1100
+ this.applyStylesToSubmitBtn();
1101
+
1102
+ },
1103
+ changeSubmitBtnMarginLeft: function(e){
1104
+
1105
+ var value = parseInt( $(e.currentTarget).val() );
1106
+
1107
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1108
+
1109
+ temp.marginLeft = value;
1110
+
1111
+ this.model.set( 'submitBtn', temp );
1112
+
1113
+ this.applyStylesToSubmitBtn();
1114
+
1115
+ },
1116
+ changeSubmitBtnMarginRight: function(e){
1117
+
1118
+ var value = parseInt( $(e.currentTarget).val() );
1119
+
1120
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1121
+
1122
+ temp.marginRight = value;
1123
+
1124
+ this.model.set( 'submitBtn', temp );
1125
+
1126
+ this.applyStylesToSubmitBtn();
1127
+
1128
+ },
1129
+ changeSubmitBtnMarginTop: function(e){
1130
+
1131
+ var value = parseInt( $(e.currentTarget).val() );
1132
+
1133
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1134
+
1135
+ temp.marginTop = value;
1136
+
1137
+ this.model.set( 'submitBtn', temp );
1138
+
1139
+ this.applyStylesToSubmitBtn();
1140
+
1141
+ },
1142
+ changeSubmitBtnMarginBottom: function(e){
1143
+
1144
+ var value = parseInt( $(e.currentTarget).val() );
1145
+
1146
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1147
+
1148
+ temp.marginBottom= value;
1149
+
1150
+ this.model.set( 'submitBtn', temp );
1151
+
1152
+ this.applyStylesToSubmitBtn();
1153
+
1154
+ },
1155
+ changeSubmitBtnPaddingLeft: function(e){
1156
+
1157
+ var value = parseInt( $(e.currentTarget).val() );
1158
+
1159
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1160
+
1161
+ temp.paddingLeft = value;
1162
+
1163
+ this.model.set( 'submitBtn', temp );
1164
+
1165
+ this.applyStylesToSubmitBtn();
1166
+
1167
+ },
1168
+ changeSubmitBtnPaddingRight: function(e){
1169
+
1170
+ var value = parseInt( $(e.currentTarget).val() );
1171
+
1172
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1173
+
1174
+ temp.paddingRight = value;
1175
+
1176
+ this.model.set( 'submitBtn', temp );
1177
+
1178
+ this.applyStylesToSubmitBtn();
1179
+
1180
+ },
1181
+ changeSubmitBtnPaddingTop: function(e){
1182
+
1183
+ var value = parseInt( $(e.currentTarget).val() );
1184
+
1185
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1186
+
1187
+ temp.paddingTop = value;
1188
+
1189
+ this.model.set( 'submitBtn', temp );
1190
+
1191
+ this.applyStylesToSubmitBtn();
1192
+
1193
+ },
1194
+ changeSubmitBtnPaddingBottom: function(e){
1195
+
1196
+ var value = parseInt( $(e.currentTarget).val() );
1197
+
1198
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1199
+
1200
+ temp.paddingBottom = value;
1201
+
1202
+ this.model.set( 'submitBtn', temp );
1203
+
1204
+ this.applyStylesToSubmitBtn();
1205
+
1206
+ },
1207
+ changeSubmitBtnBorderColor: function(e){
1208
+
1209
+ var value = _.escape( $(e.currentTarget).val() );
1210
+
1211
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1212
+
1213
+ temp.borderColor = value;
1214
+
1215
+ this.model.set( 'submitBtn', temp );
1216
+
1217
+ this.applyStylesToSubmitBtn();
1218
+
1219
+ },
1220
+
1221
+ changeSubmitBtnBorderSize: function(e){
1222
+
1223
+ var value = parseInt( $(e.currentTarget).val() );
1224
+
1225
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1226
+
1227
+ temp.borderSize = value;
1228
+
1229
+ this.model.set( 'submitBtn', temp );
1230
+
1231
+ this.applyStylesToSubmitBtn();
1232
+
1233
+
1234
+ },
1235
+ changeSubmitBtnBorderRadius: function(e){
1236
+
1237
+ var value = parseInt( $(e.currentTarget).val() );
1238
+
1239
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1240
+
1241
+ temp.borderRadius = value;
1242
+
1243
+ this.model.set( 'submitBtn', temp );
1244
+
1245
+ this.applyStylesToSubmitBtn();
1246
+
1247
+ },
1248
+ changeSubmitBtnBorderStyle: function(e){
1249
+
1250
+ var value = _.escape( $(e.currentTarget).val() );
1251
+
1252
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1253
+
1254
+ temp.borderStyle = value;
1255
+
1256
+ this.model.set( 'submitBtn', temp );
1257
+
1258
+ this.applyStylesToSubmitBtn();
1259
+
1260
+ },
1261
+ changeSubmitBtnFontWeight: function(e){
1262
+
1263
+ var value = 'bold';
1264
+
1265
+ if ( $(e.currentTarget).is(':checked') )
1266
+ value = 'bold';
1267
+ else
1268
+ value = 'normal';
1269
+
1270
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1271
+
1272
+ temp.fontWeight = value;
1273
+
1274
+ this.model.set( 'submitBtn', temp );
1275
+
1276
+ this.applyStylesToSubmitBtn();
1277
+
1278
+ },
1279
+ changeSubmitBtnHoverBgColor: function(e){
1280
+
1281
+ var value = _.escape( $(e.currentTarget).val() );
1282
+
1283
+ var temp = _.clone( this.model.get( 'submitBtn' ) );
1284
+
1285
+ temp.hoverBgColor = value;
1286
+
1287
+ this.model.set( 'submitBtn', temp );
1288
+
1289
+ this.applyStylesToSubmitBtn();
1290
+
1291
+ }
1292
+
1293
+
1294
+ });
1295
+
1296
+ StyleManager.Views.SubmitBtn = Backbone.View.extend({
1297
+
1298
+ initialize: function() {
1299
+
1300
+ this.template = _.template( $('#formSubmitBtn-template').html() );
1301
+
1302
+ },
1303
+
1304
+ render: function() {
1305
+
1306
+ this.$el.html( this.template( this.model.attributes ) );
1307
+
1308
+ return this;
1309
+ }
1310
+
1311
+ });
1312
+
1313
+ StyleManager.App = {
1314
+
1315
+ init: function() {
1316
+
1317
+ var FormModel = new StyleManager.Models.FormSettings();
1318
+ var FieldsCol = new StyleManager.Collections.FieldsCol();
1319
+ var FormPreviewView = new StyleManager.Views.FormPreview( { model: FormModel, el: $('#formPreviewCont') } );
1320
+
1321
+ var FormStyleModel = new StyleManager.Models.StyleSettings();
1322
+
1323
+ var FormSubmitBtn = new StyleManager.Views.SubmitBtn({
1324
+ model: FormModel,
1325
+ el: $('#submitBtnCont')
1326
+ });
1327
+
1328
+ FormStyleModel.on( 'change', function( model ) {
1329
+
1330
+ FormModel.set( 'style', FormStyleModel );
1331
+
1332
+ FormModel.set( 'id', smuzform.form_id );
1333
+
1334
+ smuzform.savingStyleModel = false;
1335
+
1336
+ FormModel.save({
1337
+ data: { formID: smuzform.form_id }
1338
+ }).success( function( resp ) {
1339
+
1340
+ smuzform.savingStyleModel = true;
1341
+
1342
+ });
1343
+
1344
+ });
1345
+
1346
+
1347
+ $('#serverModalCont').show();
1348
+ $('body').append($('#serverModalContHtml').html());
1349
+
1350
+ $('#serverModalContHtml').html('');
1351
+
1352
+ FormModel.fetch({
1353
+ data: { formID: smuzform.form_id }
1354
+ }).success( function( resp ) {
1355
+
1356
+ var fields = FormModel.get('fields');
1357
+
1358
+ _.each( fields, function( field, index ) {
1359
+ FieldsCol.add( field );
1360
+ });
1361
+
1362
+
1363
+ if ( ! $.isEmptyObject( FormModel.get('style') ) )
1364
+ FormStyleModel.attributes = FormModel.get('style');
1365
+
1366
+ smuzform.isDataLoaded = true;
1367
+
1368
+ $('#serverModalCont').hide();
1369
+
1370
+ }).done(function() {
1371
+
1372
+ StyleManager.Views.FieldsListView = new Backbone.CollectionView({
1373
+
1374
+ el: $('#formFieldsCont'),
1375
+
1376
+ sortable: false,
1377
+
1378
+ modelView: StyleManager.Views.FieldsCollectionView,
1379
+
1380
+ collection: FieldsCol,
1381
+
1382
+ emptyListCaption: '<div id="noFieldsMessage" class="alert alert-warning"><p></p></div>',
1383
+
1384
+ reuseModelViews: false,
1385
+
1386
+ selectable: false
1387
+
1388
+ });
1389
+
1390
+ var FormStyleView = new StyleManager.Views.StyleSettings({ model: FormStyleModel, el: $('#formStyleCont') });
1391
+
1392
+ FormPreviewView.render();
1393
+
1394
+ setTimeout( function(){
1395
+ FormStyleView.render();
1396
+ }, 200 );
1397
+
1398
+ StyleManager.Views.FieldsListView.render();
1399
+
1400
+ FormSubmitBtn.render();
1401
+
1402
+ });
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+ }
1409
+
1410
+ };
1411
+
1412
+ $(document).ready(function() {
1413
+ StyleManager.App.init();
1414
+ });
1415
+
1416
+ $(document).ready(function(){$('.toplevel_page_smuz-forms-main').addClass('current');})
1417
+
1418
+ })(jQuery);
admin/assets/js/underscore-min.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // Underscore.js 1.8.3
2
+ // http://underscorejs.org
3
+ // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4
+ // Underscore may be freely distributed under the MIT license.
5
+ (function(){function n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);
6
+ //# sourceMappingURL=underscore-min.map
admin/core/class/class-smuzform-admin.php ADDED
@@ -0,0 +1,595 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Admin {
4
+
5
+ /**
6
+ Create the forms plugin admin UI
7
+ **/
8
+ public function createUI() {
9
+
10
+ add_action( 'admin_init', array( $this, 'addAssetsFormBuilder' ) );
11
+
12
+ add_action( 'admin_init', array( $this, 'addAssetsEntryManager' ) );
13
+
14
+ add_action( 'admin_init', array( $this, 'addAssetsNotificationManager' ) );
15
+
16
+ add_action( 'admin_init', array( $this, 'addAssetsStyleManager' ) );
17
+
18
+ add_action( 'admin_menu', array( $this, 'createMainMenu' ) );
19
+
20
+ add_action( 'admin_menu', array( $this, 'createMenu' ) );
21
+
22
+ add_action( 'admin_menu', array( $this, 'createEntryMenu' ) );
23
+
24
+ add_action( 'admin_menu', array( $this, 'createNotificationMenu' ) );
25
+
26
+ add_action( 'admin_menu', array( $this, 'createStyleMenu' ) );
27
+
28
+ add_action( 'init', array( $this, 'registerFormPost' ) );
29
+
30
+ add_filter( 'post_row_actions',
31
+ array( $this, 'remove_post_row_actions' ), 10, 2 );
32
+
33
+ add_action( 'admin_init', array( $this, 'setup_upload_dir' ) );
34
+
35
+ }
36
+
37
+ /**
38
+ New Menu item with Title $menu_title is added on wp-admin dashboard
39
+ **/
40
+ function createMainMenu() {
41
+
42
+ $page_title = 'Contact Form';
43
+
44
+ $menu_title = 'Contact Form';
45
+
46
+ $capability = 'manage_options';
47
+
48
+ $menu_slug = 'smuz-forms-main';
49
+
50
+ $screen_id = add_menu_page( $page_title, $menu_title, $capability, $menu_slug,
51
+ array( $this, 'formMainSettingsPage' ) );
52
+
53
+ }
54
+
55
+ /**
56
+ New Menu item with Title $menu_title is added on wp-admin dashboard
57
+ **/
58
+ function createMenu() {
59
+
60
+ $page_title = 'Form Builder';
61
+
62
+ $menu_title = 'Form Builder';
63
+
64
+ $capability = 'manage_options';
65
+
66
+ $menu_slug = 'smuz-forms';
67
+
68
+ $screen_id = add_submenu_page( null, $page_title, $menu_title, $capability, $menu_slug,
69
+ array( $this, 'settingsPage' ) );
70
+
71
+ }
72
+
73
+ /**
74
+ New Sub Menu item with Title $menu_title is added on wp-admin dashboard
75
+ **/
76
+ function createEntryMenu() {
77
+
78
+ $page_title = 'Entry Manager';
79
+
80
+ $menu_title = 'Entry Manager';
81
+
82
+ $capability = 'manage_options';
83
+
84
+ $menu_slug = 'smuz-forms-entry';
85
+
86
+ $parent_slug = 'smuz-forms';
87
+
88
+ $screen_id = add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, array( $this, 'entrySettingsPage' ) );
89
+
90
+ }
91
+
92
+ /**
93
+ New Sub Menu item with Title $menu_title is added on wp-admin dashboard
94
+ **/
95
+ function createNotificationMenu() {
96
+
97
+ $page_title = 'Form Notifications';
98
+
99
+ $menu_title = 'Notifications';
100
+
101
+ $capability = 'manage_options';
102
+
103
+ $menu_slug = 'smuz-forms-notifications';
104
+
105
+ $parent_slug = 'smuz-forms';
106
+
107
+ $screen_id = add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, array( $this, 'notificationSettingsPage' ) );
108
+
109
+ }
110
+
111
+ /**
112
+ New Menu item with Title $menu_title is added on wp-admin dashboard
113
+ **/
114
+ function createStyleMenu() {
115
+
116
+ $page_title = 'Form Style Manager';
117
+
118
+ $menu_title = 'Style';
119
+
120
+ $capability = 'manage_options';
121
+
122
+ $menu_slug = 'smuz-forms-style';
123
+
124
+ $parent_slug = 'smuz-forms';
125
+
126
+ $screen_id = add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, array( $this, 'styleSettingsPage' ) );
127
+
128
+ }
129
+
130
+ /**
131
+ Settings page for menu $menu_slug above
132
+ **/
133
+ function formMainSettingsPage() {
134
+
135
+ if ( ! class_exists( 'Smuz_Form' ) )
136
+ smuzform_public( 'core/class/class-smuzform-form.php' );
137
+
138
+ if ( isset( $_GET['action'] ) ) {
139
+
140
+ if ( $_GET['action'] === 'delete_form' ) {
141
+
142
+ wp_delete_post( intval( $_GET['post_id'] ), true );
143
+
144
+ }
145
+ }
146
+
147
+ smuzform_admin( 'views/forms-main.php' );
148
+
149
+ }
150
+
151
+
152
+ /**
153
+ Settings page for menu $menu_slug above
154
+ **/
155
+ function settingsPage() {
156
+
157
+ smuzform_admin( 'views/settings-page.php' );
158
+
159
+ }
160
+
161
+ /**
162
+ Settings page for entry menu.
163
+ **/
164
+ function entrySettingsPage() {
165
+
166
+ if ( ! isset( $_GET['form_id'] ) )
167
+ wp_die( 'Use the form builder page to get here.' );
168
+
169
+ $entryManager = new SmuzForm_Entry( intval( $_GET['form_id'] ) );
170
+
171
+ include smuzform_admin_view( '/entry/settings-page.php' );
172
+
173
+ }
174
+
175
+ /**
176
+ Settings page for notification menu.
177
+ **/
178
+ function notificationSettingsPage() {
179
+
180
+ if ( ! isset( $_GET['form_id'] ) )
181
+ wp_die( 'Use the form builder page to get here.' );
182
+
183
+ $notificationManager = new SmuzForm_Notification_Manager( intval( $_GET['form_id'] ) );
184
+
185
+ include smuzform_admin_view( '/notification/settings-page.php' );
186
+
187
+ }
188
+
189
+ /**
190
+ Settings page for style menu.
191
+ **/
192
+ function styleSettingsPage() {
193
+
194
+ if ( ! isset( $_GET['form_id'] ) )
195
+ wp_die( 'Use the form builder page to get here.' );
196
+
197
+ $styleManager = new SmuzForm_Style_Manager( intval( $_GET['form_id'] ) );
198
+
199
+ include smuzform_admin_view( '/style/settings-page.php' );
200
+
201
+ }
202
+
203
+ /**
204
+ Add scripts, styles on settings page.
205
+ **/
206
+ function addAssetsFormBuilder() {
207
+
208
+ if ( ! $this->isSettingsPage( array( 'smuz-forms' ) ) )
209
+ return false;
210
+
211
+ //CSS
212
+
213
+ $bootstrap_url = smuzform_admin_asset( 'css/bootstrap.min.css' );
214
+
215
+ $style_url = smuzform_admin_asset( 'css/style.css' );
216
+
217
+ wp_enqueue_style( 'smuzform-bootstrap', $bootstrap_url );
218
+
219
+ wp_enqueue_style( 'smuzform-main', $style_url );
220
+
221
+ //JS
222
+
223
+ wp_enqueue_script( 'jquery' );
224
+
225
+ wp_enqueue_script( 'jquery-ui' );
226
+
227
+ wp_enqueue_script( 'jquery-ui-core' );
228
+
229
+ wp_enqueue_script( 'jquery-ui-tabs' );
230
+
231
+ wp_enqueue_script( 'jquery-ui-draggable' );
232
+
233
+ wp_enqueue_script( 'jquery-ui-resizable' );
234
+
235
+ wp_enqueue_script( 'jquery-ui-droppable' );
236
+
237
+ wp_enqueue_script( 'jquery-ui-sortable' );
238
+
239
+
240
+ $bootstrap_js_url = smuzform_admin_asset( 'js/bootstrap.min.js' );
241
+
242
+ $underscore_url = smuzform_admin_asset( 'js/underscore-min.js' );
243
+
244
+ $backbone_url = smuzform_admin_asset( 'js/backbone.min.js' );
245
+
246
+ $script_url = smuzform_admin_asset( 'js/script.js' );
247
+
248
+
249
+ wp_enqueue_script( 'smuzform-underscore', $underscore_url, array(), null, true );
250
+
251
+ wp_enqueue_script( 'smuzform-backbone', $backbone_url, array(), null, true );
252
+
253
+ wp_enqueue_script( 'smuzform-bootstrap', $bootstrap_js_url, array(), null, true );
254
+
255
+ wp_enqueue_script( 'smuzform-script', $script_url, array(), null, true );
256
+
257
+ $nonce_form_model = wp_create_nonce( 'smuzform_form_model' );
258
+
259
+ $js = array(
260
+ 'admin_url' => admin_url(),
261
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
262
+ 'form_model_nonce' => $nonce_form_model
263
+ );
264
+
265
+ wp_localize_script( 'smuzform-script', 'smuzform', $js );
266
+
267
+ }
268
+
269
+ /**
270
+ Add scripts, styles on entry settings page.
271
+ **/
272
+ function addAssetsEntryManager() {
273
+
274
+ if ( ! $this->isSettingsPage( array( 'smuz-forms-entry' ) ) )
275
+ return false;
276
+
277
+ //CSS
278
+
279
+ $bootstrap_url = smuzform_admin_asset( 'css/bootstrap.min.css' );
280
+
281
+ $style_url = smuzform_admin_asset( 'css/style.css' );
282
+
283
+ $entry_style_url = smuzform_admin_asset( 'css/entry/entry-manager.css' );
284
+
285
+ $datatable_style_url = smuzform_admin_asset( 'css/entry/datatables.min.css' );
286
+
287
+ wp_enqueue_style( 'smuzform-bootstrap', $bootstrap_url );
288
+
289
+ wp_enqueue_style( 'smuzform-main', $style_url );
290
+
291
+ wp_enqueue_style( 'smuzform-entry-main', $entry_style_url );
292
+
293
+ wp_enqueue_style( 'smuzform-datatables', $datatable_style_url );
294
+
295
+ //JS
296
+
297
+ wp_enqueue_script( 'jquery' );
298
+
299
+ wp_enqueue_script( 'jquery-ui' );
300
+
301
+ wp_enqueue_script( 'jquery-ui-core' );
302
+
303
+ wp_enqueue_script( 'jquery-ui-tabs' );
304
+
305
+ wp_enqueue_script( 'jquery-ui-draggable' );
306
+
307
+ wp_enqueue_script( 'jquery-ui-resizable' );
308
+
309
+ wp_enqueue_script( 'jquery-ui-droppable' );
310
+
311
+ wp_enqueue_script( 'jquery-ui-sortable' );
312
+
313
+
314
+ $bootstrap_js_url = smuzform_admin_asset( 'js/bootstrap.min.js' );
315
+
316
+ $underscore_url = smuzform_admin_asset( 'js/underscore-min.js' );
317
+
318
+ $backbone_url = smuzform_admin_asset( 'js/backbone.min.js' );
319
+
320
+ $datatable_script_url = smuzform_admin_asset( 'js/entry/datatables.min.js' );
321
+
322
+ $script_url = smuzform_admin_asset( 'js/entry/entry-manager.js' );
323
+
324
+
325
+ wp_enqueue_script( 'smuzform-underscore', $underscore_url, array(), null, true );
326
+
327
+ wp_enqueue_script( 'smuzform-backbone', $backbone_url, array(), null, true );
328
+
329
+ wp_enqueue_script( 'smuzform-bootstrap', $bootstrap_js_url, array(), null, true );
330
+
331
+ wp_enqueue_script( 'smuzform-entry-script', $script_url, array(), null, true );
332
+
333
+ wp_enqueue_script( 'smuzform-datatables-script', $datatable_script_url, array(), null, true );
334
+
335
+ $nonce_entry_model = wp_create_nonce( 'smuzform_entry_model' );
336
+
337
+ $js_form_id = null;
338
+
339
+ if ( isset( $_GET['form_id'] ) )
340
+ $js_form_id = intval( $_GET['form_id'] );
341
+
342
+ $js = array(
343
+ 'admin_url' => admin_url(),
344
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
345
+ 'entry_model_nonce' => $nonce_entry_model,
346
+ 'form_id' => $js_form_id
347
+ );
348
+
349
+ wp_localize_script( 'smuzform-entry-script', 'smuzform', $js );
350
+
351
+
352
+ }
353
+
354
+ /**
355
+ Add scripts, styles on notification settings page.
356
+ **/
357
+ function addAssetsNotificationManager() {
358
+
359
+ if ( ! $this->isSettingsPage( array( 'smuz-forms-notifications' ) ) )
360
+ return false;
361
+
362
+ //CSS
363
+
364
+ $bootstrap_url = smuzform_admin_asset( 'css/bootstrap.min.css' );
365
+
366
+ $style_url = smuzform_admin_asset( 'css/style.css' );
367
+
368
+ $notification_style_url = smuzform_admin_asset( 'css/notification/notification-manager.css' );
369
+
370
+ wp_enqueue_style( 'smuzform-bootstrap', $bootstrap_url );
371
+
372
+ wp_enqueue_style( 'smuzform-main', $style_url );
373
+
374
+ wp_enqueue_style( 'smuzform-entry-main', $notification_style_url );
375
+
376
+ //JS
377
+
378
+ wp_enqueue_script( 'jquery' );
379
+
380
+ wp_enqueue_script( 'jquery-ui' );
381
+
382
+ wp_enqueue_script( 'jquery-ui-core' );
383
+
384
+ wp_enqueue_script( 'jquery-ui-tabs' );
385
+
386
+ wp_enqueue_script( 'jquery-ui-draggable' );
387
+
388
+ wp_enqueue_script( 'jquery-ui-resizable' );
389
+
390
+ wp_enqueue_script( 'jquery-ui-droppable' );
391
+
392
+ wp_enqueue_script( 'jquery-ui-sortable' );
393
+
394
+
395
+ $bootstrap_js_url = smuzform_admin_asset( 'js/bootstrap.min.js' );
396
+
397
+ $underscore_url = smuzform_admin_asset( 'js/underscore-min.js' );
398
+
399
+ $backbone_url = smuzform_admin_asset( 'js/backbone.min.js' );
400
+
401
+
402
+ $script_url = smuzform_admin_asset( 'js/notification/notification-manager.js' );
403
+
404
+
405
+ wp_enqueue_script( 'smuzform-underscore', $underscore_url, array(), null, true );
406
+
407
+ wp_enqueue_script( 'smuzform-backbone', $backbone_url, array(), null, true );
408
+
409
+ wp_enqueue_script( 'smuzform-bootstrap', $bootstrap_js_url, array(), null, true );
410
+
411
+ wp_enqueue_script( 'smuzform-notification-script', $script_url, array(), null, true );
412
+
413
+ $nonce_notification_model = wp_create_nonce( 'smuzform_notification_model' );
414
+
415
+ $js_form_id = null;
416
+
417
+ if ( isset( $_GET['form_id'] ) )
418
+ $js_form_id = intval( $_GET['form_id'] );
419
+
420
+ $js = array(
421
+ 'admin_url' => admin_url(),
422
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
423
+ 'notification_model_nonce' => $nonce_notification_model,
424
+ 'form_id' => $js_form_id
425
+ );
426
+
427
+ wp_localize_script( 'smuzform-notification-script', 'smuzform', $js );
428
+
429
+
430
+ }
431
+
432
+ /**
433
+ Add scripts, styles on form style manager settings page.
434
+ **/
435
+ function addAssetsStyleManager() {
436
+
437
+ if ( ! $this->isSettingsPage( array( 'smuz-forms-style' ) ) )
438
+ return false;
439
+
440
+ //CSS
441
+
442
+ $bootstrap_url = smuzform_admin_asset( 'css/bootstrap.min.css' );
443
+
444
+ $style_url = smuzform_admin_asset( 'css/style.css' );
445
+
446
+ //style manager
447
+ $_style_url = smuzform_admin_asset( 'css/style/style-manager.css' );
448
+
449
+ wp_enqueue_style( 'smuzform-bootstrap', $bootstrap_url );
450
+
451
+ wp_enqueue_style( 'smuzform-main', $style_url );
452
+
453
+ wp_enqueue_style( 'smuzform-style-main', $_style_url );
454
+
455
+ wp_enqueue_style( 'wp-color-picker' );
456
+
457
+ //JS
458
+
459
+ wp_enqueue_script( 'jquery' );
460
+
461
+ wp_enqueue_script( 'jquery-ui' );
462
+
463
+ wp_enqueue_script( 'jquery-ui-core' );
464
+
465
+ wp_enqueue_script( 'jquery-ui-tabs' );
466
+
467
+ wp_enqueue_script( 'jquery-ui-draggable' );
468
+
469
+ wp_enqueue_script( 'jquery-ui-resizable' );
470
+
471
+ wp_enqueue_script( 'jquery-ui-droppable' );
472
+
473
+ wp_enqueue_script( 'jquery-ui-sortable' );
474
+
475
+
476
+ $bootstrap_js_url = smuzform_admin_asset( 'js/bootstrap.min.js' );
477
+
478
+ $underscore_url = smuzform_admin_asset( 'js/underscore-min.js' );
479
+
480
+ $backbone_url = smuzform_admin_asset( 'js/backbone.min.js' );
481
+
482
+
483
+ $script_url = smuzform_admin_asset( 'js/style/style-manager.js' );
484
+
485
+
486
+ wp_enqueue_script( 'smuzform-underscore', $underscore_url, array(), null, true );
487
+
488
+ wp_enqueue_script( 'smuzform-backbone', $backbone_url, array(), null, true );
489
+
490
+ wp_enqueue_script( 'smuzform-bootstrap', $bootstrap_js_url, array(), null, true );
491
+
492
+ wp_enqueue_script( 'smuzform-style-script', $script_url, array( 'wp-color-picker' ), null, true );
493
+
494
+ $nonce_style_model = wp_create_nonce( 'smuzform_style_model' );
495
+
496
+ $js_form_id = null;
497
+
498
+ if ( isset( $_GET['form_id'] ) )
499
+ $js_form_id = intval( $_GET['form_id'] );
500
+
501
+ $js = array(
502
+ 'admin_url' => admin_url(),
503
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
504
+ 'style_model_nonce' => $nonce_style_model,
505
+ 'form_model_nonce' => wp_create_nonce( 'smuzform_form_model' ),
506
+ 'form_id' => $js_form_id
507
+ );
508
+
509
+ wp_localize_script( 'smuzform-style-script', 'smuzform', $js );
510
+
511
+
512
+ }
513
+
514
+ /**
515
+ Checks if the admin page is part of forms plugin.
516
+ **/
517
+ function isSettingsPage( $pages = null ) {
518
+
519
+ if ( ! is_admin() )
520
+ return false;
521
+
522
+ if ( ! isset( $_GET['page'] ) )
523
+ return false;
524
+
525
+ if ( ! $pages )
526
+ $pages = array( 'smuz-forms', 'smuz-forms-entry' );
527
+
528
+ if ( ! in_array( $_GET['page'], $pages ) )
529
+ return false;
530
+
531
+
532
+ return true;
533
+
534
+ }
535
+
536
+ function registerFormPost() {
537
+
538
+ $post_type = 'smuzform';
539
+
540
+ $args = array(
541
+ 'label' => 'Forms',
542
+ 'show_ui' => false
543
+ );
544
+
545
+ register_post_type( $post_type, $args );
546
+
547
+ }
548
+
549
+ function remove_post_row_actions( $actions, $post ) {
550
+
551
+ if ( get_post_type() !== 'smuzform' )
552
+ return $actions;
553
+
554
+ unset( $actions['view'] );
555
+ unset( $actions['inline hide-if-no-js'] );
556
+ unset( $actions['pgcache_purge'] );
557
+
558
+ $edit_url = admin_url( 'admin.php?page=smuz-forms&form_id='.$post->ID );
559
+
560
+ $actions['edit'] = '<a href="'.$edit_url.'">Edit</a>';
561
+
562
+ return $actions;
563
+
564
+ }
565
+
566
+ function setup_upload_dir() {
567
+
568
+ if ( get_option( 'smuzform_upload_dir' ) )
569
+ return false;
570
+
571
+ $uniq = SMUZFORM_UPLOAD_DIR_NAME . wp_generate_password(25, false, false);
572
+
573
+ $directory = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . $uniq;
574
+
575
+ $upload_dir = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'uploads';
576
+
577
+ $empty_php = $directory . DIRECTORY_SEPARATOR . 'index.php';
578
+
579
+ if ( ! file_exists( $upload_dir ) )
580
+ @mkdir( $upload_dir );
581
+
582
+ @mkdir( $directory );
583
+
584
+ if ( ! file_exists( $empty_php ) )
585
+ @fopen( $empty_php , 'w' );
586
+
587
+ add_option( 'smuzform_upload_dir', $directory );
588
+
589
+ }
590
+
591
+ function __construct() { }
592
+ private function __clone() { }
593
+ private function __wakeup() { }
594
+
595
+ }
admin/core/class/class-smuzform-entry-model.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Entry_Model {
4
+
5
+ private $post_type = 'smuzform';
6
+
7
+ /**
8
+ Create the ajax action url and hook it to WP Ajax API
9
+ **/
10
+ public function init() {
11
+
12
+ add_action( 'wp_ajax_smuzform_entry_api', array( $this, 'api' ) );
13
+
14
+ }
15
+
16
+ /**
17
+ Forward Ajax REST actions to create/save/get/delete
18
+ **/
19
+ function api() {
20
+
21
+ $this->verifyUser();
22
+
23
+ if ( $_SERVER['REQUEST_METHOD'] == 'GET' )
24
+ $this->get();
25
+
26
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' )
27
+ $this->create();
28
+
29
+ if ( $_SERVER['REQUEST_METHOD'] == 'PUT' )
30
+ $this->save();
31
+
32
+ if ( $_SERVER['REQUEST_METHOD'] == 'DELETE' )
33
+ $this->delete();
34
+
35
+
36
+ exit;
37
+ }
38
+
39
+ function get() {
40
+
41
+ $form_id = intval($_GET['formID']);
42
+
43
+ if ( get_post_type( $form_id ) !== $this->post_type )
44
+ exit();
45
+
46
+ $entryManager = new SmuzForm_Entry( $form_id );
47
+
48
+ $totalEntries = $entryManager->getCount();
49
+
50
+ $totalRecords = $totalEntries;
51
+
52
+ $totalDisplayRecords = $totalEntries;
53
+
54
+ if ( $totalEntries < SMUZFORM_ENTRIES_PER_PAGE )
55
+ $displayRecords = $totalEntries;
56
+ else
57
+ $displayRecords = SMUZFORM_ENTRIES_PER_PAGE;
58
+
59
+ if ( isset( $_GET['length'] ) )
60
+ $displayRecords = intval( $_GET['length'] );
61
+
62
+ if ( $displayRecords > $totalEntries )
63
+ $displayRecords = $totalEntries;
64
+
65
+ $searchValue = $_GET['search']['value'];
66
+
67
+ if ( ! empty( $searchValue ) ) {
68
+ $entries = $entryManager->searchEntries( $searchValue );
69
+ } else {
70
+
71
+ if ( isset( $_GET['start'] ) && ! empty( $_GET['start'] ) )
72
+ $start = intval( $_GET['start'] );
73
+ else
74
+ $start = 0;
75
+
76
+ $entries = $entryManager->getEntries( $start, $displayRecords, 'DESC' );
77
+ }
78
+
79
+
80
+
81
+
82
+
83
+ foreach( $entries as $key => $entry ) {
84
+
85
+ $entry["DT_RowId"] = (string)intval( $key );
86
+ $entry["DT_RowData"] = (string)intval( $key );
87
+ $jsonentries[] = $entry;
88
+ }
89
+
90
+ $k = array_keys($jsonentries);
91
+ $v = array_values($jsonentries);
92
+
93
+ $rv = array_reverse($jsonentries);
94
+
95
+ $jsonentries = array_combine($k, $rv);
96
+
97
+ if ( empty( $jsonentries ) )
98
+ $jsonentries = array();
99
+
100
+ $output = array(
101
+ "sEcho" => intval($_GET['sEcho']),
102
+ "iTotalRecords" => $totalRecords,
103
+ "iTotalDisplayRecords" => $totalDisplayRecords,
104
+ "aaData" => $jsonentries
105
+ );
106
+
107
+ echo json_encode( $output );
108
+
109
+ }
110
+
111
+ function create() {}
112
+ function save(){}
113
+
114
+ /**
115
+ Delete the entry and it's associated fields from the database.
116
+ **/
117
+ function delete(){
118
+
119
+ $entry_id = intval($_GET['entryID']);
120
+ $form_id = intval($_GET['formID']);
121
+
122
+ global $wpdb;
123
+
124
+ $entryTableName = $wpdb->prefix . SMUZFORM_ENTRY_DATABASE_TABLE_NAME;
125
+
126
+ $entryTableDataName = $wpdb->prefix . SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME;
127
+
128
+ $entryDelQuery = $wpdb->prepare( "DELETE FROM $entryTableName WHERE id=%d AND form_id=%d", $entry_id, $form_id );
129
+
130
+ $entryDataDelQuery = $wpdb->prepare( "DELETE FROM $entryTableDataName WHERE entry_id=%d AND form_id=%d", $entry_id, $form_id );
131
+
132
+
133
+ $wpdb->query( $entryDataDelQuery );
134
+
135
+ $wpdb->query( $entryDelQuery );
136
+
137
+ echo json_encode( array(
138
+ 'message' => 'Entry Deleted Successfully.',
139
+ 'signal' => true
140
+ ) );
141
+
142
+ }
143
+
144
+ /**
145
+ Verify user permissions if failed PHP execution is stopped with no message.
146
+ **/
147
+ function verifyUser( $nonce = null ) {
148
+
149
+ if ( ! current_user_can( 'manage_options' ) )
150
+ exit;
151
+
152
+ if ( is_null( $nonce ) && isset( $_GET['nonce'] ) )
153
+ $nonce = $_GET['nonce'];
154
+
155
+ if ( ! wp_verify_nonce( $nonce, 'smuzform_entry_model' ) )
156
+ exit();
157
+
158
+ }
159
+
160
+
161
+ }
admin/core/class/class-smuzform-entry.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Entry extends SmuzForm_Form {
4
+
5
+ private $entryTableName = 'smuzform_entry';
6
+ private $fieldEntryTableName = 'smuzform_entry_data';
7
+ private $entry_id;
8
+ private $noOfEntries = null;
9
+
10
+ function __construct( $form_id ) {
11
+
12
+ global $wpdb;
13
+
14
+ $this->entryTableName = $wpdb->prefix . SMUZFORM_ENTRY_DATABASE_TABLE_NAME;
15
+
16
+ $this->fieldEntryTableName = $wpdb->prefix . SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME;
17
+
18
+ parent::__construct( $form_id );
19
+ }
20
+
21
+ public function getCount() {
22
+
23
+ if ( is_int( $this->noOfEntries ) )
24
+ return $this->noOfEntries;
25
+
26
+ global $wpdb;
27
+
28
+ $table = $this->getEntryTableName();
29
+
30
+ $query = $wpdb->prepare( "SELECT COUNT(id) FROM $table WHERE form_id=%d;", $this->getId() );
31
+
32
+ $count = $wpdb->get_var( $query );
33
+
34
+ $this->noOfEntries = $count;
35
+
36
+ return intval( $count );
37
+
38
+ }
39
+
40
+ public function getEntries( $start = 0, $number = 10, $orderBy = 'ASC' ) {
41
+
42
+ global $wpdb;
43
+
44
+ $totalEntries = $this->getCount();
45
+
46
+ $entryTable = $this->getEntryTableName();
47
+ $fieldEntryTable = $this->getEntryFieldTableName();
48
+
49
+ if ( $number > $totalEntries )
50
+ $number = $totalEntries;
51
+
52
+ $orderBy = esc_sql( $orderBy );
53
+
54
+ $queryForEntries = $wpdb->prepare( "SELECT id FROM $entryTable WHERE form_id=%d ORDER BY created_at $orderBy LIMIT %d, %d;", $this->getId(), $start, $number );
55
+
56
+ $entryIds = $wpdb->get_results( $queryForEntries );
57
+
58
+
59
+ $inString = '';
60
+ foreach( $entryIds as $entry ) {
61
+ $inString = $inString . intval( $entry->id ) . ',';
62
+ }
63
+ $inString = trim( $inString, ',' );
64
+
65
+ if ( empty( $inString ) )
66
+ return array();
67
+
68
+ $queryForFields = $wpdb->prepare( "SELECT id,entry_id,field_id,value FROM $fieldEntryTable WHERE entry_id IN($inString) AND form_id=%d;", $this->getId());
69
+
70
+ $entryFieldData = $wpdb->get_results( $queryForFields );
71
+
72
+ $entries = $this->filterEntries( $entryFieldData );
73
+
74
+ return $entries;
75
+
76
+ }
77
+
78
+ function filterEntries( $rows ) {
79
+
80
+ $_filter = array();
81
+
82
+ $totalFields = count( $this->getFilterFields() );
83
+
84
+ foreach ( $rows as $key => $entryField ) {
85
+
86
+ $fieldModel = $this->getFieldByCssId( $entryField->field_id );
87
+
88
+ if ( ! $fieldModel )
89
+ continue;
90
+
91
+ $value = maybe_unserialize( $entryField->value );
92
+
93
+ if ( $fieldModel['type'] === 'fileupload' )
94
+ $value = array( 'fileupload' => array( 'path' => $value ) );
95
+
96
+ if( is_array( $value ) ) {
97
+
98
+ if ( key( $value ) === 'name' ) {
99
+ $value = $value['name']['firstName'] . ' ' . $value['name']['lastName'];
100
+ } else if ( key( $value ) === 'checkbox' ) {
101
+ //$value =
102
+ } else if ( key( $value ) === 'address' ) {
103
+ //$value =
104
+ } else if ( key( $value ) === 'fileupload' ) {
105
+ //$value =
106
+ }
107
+
108
+ $value = apply_filters( 'smuzforms_entry_filter_isarrayvalue', $value );
109
+ } else {
110
+
111
+ $value = esc_html( $value );
112
+
113
+ }
114
+
115
+ if ( mb_strlen( $value ) > 210 && $fieldModel['type'] !== 'fileupload' )
116
+ $value = mb_substr( $value, 0, 210) . ' ...';
117
+
118
+ $value = apply_filters( 'smuzforms_entry_filter_value', $value );
119
+
120
+ $prepare[$entryField->entry_id][] = $value;
121
+
122
+ $_filter = $prepare;
123
+
124
+ }
125
+
126
+ /**
127
+ Add null values for new created fields. Prevent JS errors on datatable.
128
+ Check for null attribute instead of blank value.
129
+ **/
130
+ foreach ( $_filter as $key => $arr ) {
131
+
132
+ $arrCount = count( $arr );
133
+
134
+ $diff = $totalFields - $arrCount;
135
+
136
+ for ( $i = 0; $i < $diff; $i++ ){ $_filter[$key][] = null; }
137
+ }
138
+
139
+
140
+ return $_filter;
141
+ }
142
+
143
+ /**
144
+ Return the entries matching search query.
145
+ **/
146
+ function searchEntries( $keyword, $orderBy = 'DESC' ) {
147
+
148
+ global $wpdb;
149
+
150
+ $orderBy = esc_sql( $orderBy );
151
+
152
+ $like = '%'.$wpdb->esc_like( $keyword ) . '%';
153
+
154
+ $fieldEntryTable = $this->getEntryFieldTableName();
155
+
156
+ $query = $wpdb->prepare( "SELECT entry_id FROM $fieldEntryTable WHERE value LIKE \"%s\" AND form_id=%d ORDER BY entry_id $orderBy;", $like, $this->getId());
157
+
158
+ $queryForSearch = apply_filters( 'smuzform_entry_search_query', $query );
159
+
160
+ $entryIds = $wpdb->get_results( $queryForSearch );
161
+
162
+ $inString = '';
163
+ foreach( $entryIds as $field ) {
164
+ $inString = $inString . intval( $field->entry_id ) . ',';
165
+ }
166
+ $inString = trim( $inString, ',' );
167
+
168
+ if ( empty( $inString ) )
169
+ return array();
170
+
171
+ $queryForFields = $wpdb->prepare( "SELECT id,entry_id,field_id,value FROM $fieldEntryTable WHERE entry_id IN($inString) AND form_id=%d ORDER BY entry_id $orderBy;", $this->getId());
172
+
173
+ $entryFieldData = $wpdb->get_results( $queryForFields );
174
+
175
+ $entries = $this->filterEntries( $entryFieldData );
176
+
177
+ return $entries;
178
+ }
179
+
180
+ function getEntry( $entry_id ) {
181
+
182
+ $fieldEntryTable = $this->getEntryFieldTableName();
183
+
184
+ global $wpdb;
185
+
186
+ $query = $wpdb->prepare( "SELECT * FROM $fieldEntryTable WHERE entry_id=%d AND form_id=%d;", $entry_id, $this->getId() );
187
+
188
+ $fields = $wpdb->get_results( $query );
189
+
190
+ $_filter = array();
191
+
192
+ foreach ( $fields as $key => $entryField ) {
193
+
194
+ $fieldModel = $this->getFieldByCssId( $entryField->field_id );
195
+
196
+ if ( ! $fieldModel )
197
+ continue;
198
+
199
+ $value = maybe_unserialize( $entryField->value );
200
+
201
+ if ( $fieldModel['type'] === 'fileupload' )
202
+ $value = array( 'fileupload' => array( 'path' => $value, 'pathinfo' => pathinfo( $value ) ) );
203
+
204
+ $_filter[] = array(
205
+ 'id' => $entryField->id,
206
+ 'cssID' => $entryField->field_id,
207
+ 'value' => $value,
208
+ 'type' => $fieldModel['type'],
209
+ 'label' => $fieldModel['label']
210
+ );
211
+
212
+ }
213
+
214
+ return apply_filters( 'smuzform_entry_manager_get_entry', $_filter, $entry_id, $this->getId() );
215
+
216
+ }
217
+
218
+ function getEntryUserInfo( $entry_id ) {
219
+
220
+ $entryTable = $this->getEntryTableName();
221
+
222
+ global $wpdb;
223
+
224
+ $query = $wpdb->prepare( "SELECT * FROM $entryTable WHERE id=%d AND form_id=%d;", $entry_id, $this->getId() );
225
+
226
+ $entry = $wpdb->get_row( $query );
227
+
228
+ return $entry;
229
+
230
+ }
231
+
232
+ function getEntryTableName() {
233
+
234
+ return $this->entryTableName;
235
+
236
+ }
237
+
238
+ function getEntryFieldTableName() {
239
+
240
+ return $this->fieldEntryTableName;
241
+
242
+ }
243
+
244
+
245
+ }
admin/core/class/class-smuzform-model.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Model {
4
+
5
+ private $post_type = 'smuzform';
6
+
7
+ /**
8
+ Create the ajax action url and hook it to WP Ajax API
9
+ **/
10
+ public function init() {
11
+
12
+ add_action( 'wp_ajax_smuzform_api', array( $this, 'api' ) );
13
+
14
+ }
15
+
16
+
17
+ /**
18
+ Forward Backbone REST actions to create/save/get/delete
19
+ **/
20
+ function api() {
21
+
22
+ $this->verifyUser();
23
+
24
+ if ( $_SERVER['REQUEST_METHOD'] == 'GET' )
25
+ $this->get();
26
+
27
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' )
28
+ $this->create();
29
+
30
+ if ( $_SERVER['REQUEST_METHOD'] == 'PUT' )
31
+ $this->save();
32
+
33
+ if ( $_SERVER['REQUEST_METHOD'] == 'DELETE' )
34
+ $this->delete();
35
+
36
+
37
+ }
38
+
39
+ /**
40
+ Create a new form in the database with data from backbone model.
41
+ **/
42
+ function create() {
43
+
44
+ $data = json_decode( file_get_contents( 'php://input' ), true );
45
+
46
+ $form_id = $this->createForm( $data );
47
+
48
+ $response = array(
49
+ 'method' => 'post',
50
+ 'action' => 'create',
51
+ 'formID' => $form_id,
52
+ 'error' => false,
53
+ 'errorMsg' => ''
54
+ );
55
+
56
+ echo json_encode( $response );
57
+
58
+ exit( );
59
+
60
+ }
61
+
62
+ /**
63
+ Update form in the database with data from backbone model.
64
+ **/
65
+ function save() {
66
+
67
+ $data = json_decode( file_get_contents( 'php://input' ), true );
68
+
69
+ $form_id = intval($data['id']);
70
+
71
+ update_post_meta( $form_id, 'model', $data );
72
+
73
+ $response = array(
74
+ 'method' => 'put',
75
+ 'action' => 'save',
76
+ 'formID' => $form_id,
77
+ 'error' => false,
78
+ 'errorMsg' => ''
79
+ );
80
+
81
+ wp_update_post( array(
82
+ 'ID' => $form_id,
83
+ 'post_title' => sanitize_text_field( $data['title'] )
84
+ ) );
85
+
86
+ echo json_encode( $response );
87
+
88
+ exit();
89
+
90
+ }
91
+
92
+ /**
93
+ Echo data of the form in json format.
94
+ **/
95
+ function get() {
96
+
97
+ $form_id = intval($_GET['formID']);
98
+
99
+ $data = get_post_meta( $form_id, 'model', true );
100
+
101
+ echo json_encode( $data );
102
+
103
+ exit();
104
+
105
+ }
106
+
107
+ /**
108
+ Delete the form from the database.
109
+ **/
110
+ function delete() {
111
+
112
+ $form_id = intval($_GET['formID']);
113
+
114
+ if ( get_post_type( $form_id ) !== $this->post_type )
115
+ exit();
116
+
117
+ wp_delete_post( $form_id, true );
118
+
119
+ exit();
120
+
121
+ }
122
+
123
+ function createForm( $data ) {
124
+
125
+ if ( empty( $data['title'] ) )
126
+ $data['title'] = 'Title Not Set';
127
+
128
+ $postarr = array(
129
+ 'post_title' => sanitize_text_field( $data['title'] ),
130
+ 'post_content' => '',
131
+ 'post_type' => 'smuzform',
132
+ 'post_status' => 'publish'
133
+ );
134
+
135
+ $form_id = wp_insert_post( $postarr );
136
+
137
+ update_post_meta( $form_id, 'model', $data );
138
+
139
+ return $form_id;
140
+
141
+ }
142
+
143
+ /**
144
+ Verify user permissions if failed PHP execution is stopped with no message.
145
+ **/
146
+ function verifyUser( $nonce = null ) {
147
+
148
+ if ( ! current_user_can( 'manage_options' ) )
149
+ exit;
150
+
151
+ if ( is_null( $nonce ) && isset( $_GET['nonce'] ) )
152
+ $nonce = $_GET['nonce'];
153
+
154
+ if ( ! wp_verify_nonce( $nonce, 'smuzform_form_model' ) )
155
+ exit;
156
+
157
+ }
158
+
159
+
160
+ }
admin/core/class/class-smuzform-notification-manager.php ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Notification_Manager extends SmuzForm_Form {
4
+
5
+ private $entry_data;
6
+
7
+ private $entry_id = null;
8
+
9
+ private $currNotification = null;
10
+
11
+ function __construct( $form_id ) {
12
+
13
+ add_shortcode( 'smfield', array( $this, 'replaceVarsInTemplate' ) );
14
+
15
+ parent::__construct( $form_id );
16
+
17
+ }
18
+
19
+ function getNotifications() {
20
+
21
+ $data = get_post_meta( $this->getId(), 'notifications', true );
22
+
23
+ return apply_filters( 'smuzform_get_notifications', $data );
24
+
25
+ }
26
+
27
+ function sendNotifications( $entry_id, $entry_data ) {
28
+
29
+ $this->entry_id = $entry_id;
30
+
31
+ $this->entry_data = $entry_data;
32
+
33
+ $notifications = $this->getNotifications();
34
+
35
+ foreach ( $notifications['notifications'] as $notification ) {
36
+
37
+ if ( ! $this->checkRules( $notification, $entry_id, $entry_data ) )
38
+ continue;
39
+
40
+ if ( $notification['type'] === 'email' ) {
41
+
42
+ $this->sendEmail( $notification, $entry_id, $entry_data );
43
+
44
+ }
45
+
46
+ if ( $notification['type'] === 'confirmationEmail' ) {
47
+
48
+ $this->sendConfirmationEmail( $notification, $entry_id, $entry_data );
49
+
50
+ }
51
+
52
+ }
53
+
54
+
55
+ }
56
+
57
+ function sendEmail( $notification, $entry_id, $entry_data ) {
58
+
59
+ $this->currNotification = $notification;
60
+
61
+ $emailAddr = $notification['extraData']['emailAddress'];
62
+
63
+ $replyTo = $notification['extraData']['replyToEmail'];
64
+
65
+ $subject = $notification['extraData']['subject'];
66
+
67
+ $fromText = $notification['extraData']['fromText'];
68
+
69
+ $template = $notification['extraData']['template'];
70
+
71
+ $emailAddr = sanitize_email( $emailAddr );
72
+
73
+ $replyTo = $this->processTemplate( $replyTo, $entry_id, $entry_data );
74
+
75
+ $subject = $this->processTemplate( $subject, $entry_id, $entry_data );
76
+
77
+ $fromText = sanitize_text_field( $fromText );
78
+
79
+ $message = $this->processTemplate( $template, $entry_id, $entry_data );
80
+
81
+ if ( $notification['extraData']['useHTML'] ) {
82
+ ob_start();
83
+
84
+ include smuzform_admin_view( 'notification/confirmation-email/html-message.php' );
85
+
86
+ $message = ob_get_contents();
87
+ ob_end_clean();
88
+ }
89
+
90
+ if ( $notification['extraData']['useHTML'] )
91
+ $headers[] = 'Content-Type: text/html; charset=UTF-8';
92
+ else {
93
+
94
+ }
95
+
96
+ if ( preg_replace('/\s+/', '', $replyTo) !== '' )
97
+ $headers[] = "Reply-To: $replyTo" . "\r\n";
98
+
99
+ $resp = wp_mail( $emailAddr, $subject, $message, $headers );
100
+
101
+ $this->currNotification = null;
102
+
103
+ }
104
+
105
+ function sendConfirmationEmail( $notification, $entry_id, $entry_data ){
106
+
107
+ $this->currNotification = $notification;
108
+
109
+ $emailAddr = $notification['extraData']['emailAddress'];
110
+
111
+ $replyTo = $notification['extraData']['replyToEmail'];
112
+
113
+ $subject = $notification['extraData']['subject'];
114
+
115
+ $fromText = $notification['extraData']['fromText'];
116
+
117
+ $template = $notification['extraData']['template'];
118
+
119
+ $replyTo = $this->processTemplate( $replyTo, $entry_id, $entry_data );
120
+
121
+ $subject = $this->processTemplate( $subject, $entry_id, $entry_data );
122
+
123
+ $fromText = sanitize_text_field( $fromText );
124
+
125
+ $message = $this->processTemplate( $template, $entry_id, $entry_data );
126
+
127
+ $fields = $this->getFilterFields();
128
+
129
+ if ( empty( $emailAddr ) ) {
130
+
131
+ foreach( $fields as $field ) {
132
+
133
+ if ( $field['type'] === 'email' ) {
134
+ $emailAddr = $field['cssID'];
135
+ break;
136
+ }
137
+
138
+ }
139
+ }
140
+
141
+ foreach ( $entry_data as $key => $data ) {
142
+
143
+ if ( $key === $emailAddr ) {
144
+ $emailAddr = $data;
145
+ }
146
+
147
+ }
148
+
149
+ if ( ! is_email( $emailAddr ) )
150
+ return false;
151
+
152
+ if ( $notification['extraData']['useHTML'] ) {
153
+ ob_start();
154
+
155
+ include smuzform_admin_view( 'notification/confirmation-email/html-message.php' );
156
+
157
+ $message = ob_get_contents();
158
+ ob_end_clean();
159
+ }
160
+
161
+ if ( $notification['extraData']['useHTML'] )
162
+ $headers[] = 'Content-Type: text/html; charset=UTF-8';
163
+ else {
164
+
165
+ }
166
+
167
+ if ( preg_replace('/\s+/', '', $replyTo) !== '' )
168
+ $headers[] = "Reply-To: $replyTo" . "\r\n";
169
+
170
+ if ( preg_replace('/\s+/', '', $fromText) !== '' )
171
+ $headers[] = "Reply-To: $fromText <$replyTo>" . "\r\n";
172
+
173
+
174
+ $resp = wp_mail( $emailAddr, $subject, $message, $headers );
175
+
176
+ $this->currNotification = null;
177
+
178
+ }
179
+
180
+ function checkRules( $notification, $entry_id, $entry_data ) {
181
+
182
+ if ( ! $notification['ruleEnabled'] )
183
+ return true;
184
+
185
+
186
+
187
+ $cmpValue = $notification['rules']['cmpValue'];
188
+ $field_id = $notification['rules']['field'];
189
+ $action = $notification['rules']['action'];
190
+ $operator = $notification['rules']['operator'];
191
+
192
+ if ( preg_replace('/\s+/', '', $cmpValue) == '' )
193
+ return true;
194
+
195
+
196
+ $field = $this->getFieldByCssId( $field_id );
197
+
198
+ /*
199
+ If the field is deleted from from builder.
200
+ */
201
+ if ( ! is_array( $field ) )
202
+ return true;
203
+
204
+ if ( $action === 'send' ) {
205
+
206
+ foreach ( $entry_data as $key => $data ) {
207
+
208
+ if ( $key === $field_id ) {
209
+
210
+
211
+
212
+ if ( $operator === 'is' ) {
213
+
214
+ if ( mb_strtolower( $cmpValue ) === mb_strtolower( $data ) )
215
+ return true;
216
+ else
217
+ return false;
218
+
219
+
220
+ }
221
+
222
+ if ( $operator === 'isNot' ) {
223
+
224
+ if ( mb_strtolower( $cmpValue ) !== mb_strtolower( $data ) )
225
+ return true;
226
+ else
227
+ return false;
228
+ }
229
+ }
230
+
231
+ }
232
+
233
+ return false;
234
+
235
+ }
236
+
237
+ if ( $action === 'stop' ) {
238
+
239
+ foreach ( $entry_data as $key => $data ) {
240
+
241
+ if ( $key === $field_id ) {
242
+
243
+ if ( $operator === 'is' ) {
244
+
245
+ if ( mb_strtolower( $cmpValue ) === mb_strtolower( $data ) )
246
+ return false;
247
+ else
248
+ return true;
249
+ }
250
+
251
+ if ( $operator === 'isNot' ) {
252
+
253
+ if ( mb_strtolower( $cmpValue ) !== mb_strtolower( $data ) )
254
+ return false;
255
+ else
256
+ return true;
257
+
258
+
259
+ }
260
+ }
261
+
262
+ }
263
+
264
+ }
265
+
266
+ return true;
267
+
268
+ }
269
+
270
+ function processTemplate( $template, $id, $data ) {
271
+
272
+ $template = do_shortcode( $template );
273
+
274
+ return $template;
275
+ }
276
+
277
+ function replaceVarsInTemplate( $atts ) {
278
+
279
+ if ( $this->currNotification === null )
280
+ return 'Use class';
281
+
282
+ $entry_id = $this->entry_id;
283
+
284
+ if ( $entry_id === null )
285
+ return 'Use class';
286
+
287
+ $entry_data = $this->entry_data;
288
+
289
+ $notification = $this->currNotification;
290
+
291
+ $atts = shortcode_atts( array(
292
+ 'print' => null,
293
+ 'html' => false,
294
+ 'adt' => false
295
+ ), $atts, 'smfield' );
296
+
297
+ if ( ! $atts['print'] )
298
+ return false;
299
+
300
+ $entry_data = $this->readyEntryData( $entry_data );
301
+
302
+ ob_start();
303
+
304
+ if ( $atts['print'] === 'all' ) {
305
+
306
+ if ( $notification['extraData']['useHTML'] ) {
307
+
308
+ include smuzform_admin_view( 'notification/emails/html/all.php' );
309
+
310
+ } else {
311
+
312
+ include smuzform_admin_view( 'notification/emails/all-fields.php' );
313
+ }
314
+
315
+ }
316
+
317
+ if ( $atts['print'] !== 'all' ) {
318
+
319
+ $label = $atts['print'];
320
+
321
+ $field = array();
322
+
323
+ foreach ( $entry_data as $data ) {
324
+
325
+ if ( mb_strtolower( $data['label'] ) === mb_strtolower( $label ) )
326
+ $field = $data;
327
+
328
+ }
329
+
330
+
331
+ include smuzform_admin_view( 'notification/emails/single.php' );
332
+
333
+
334
+ }
335
+
336
+ $content = ob_get_contents();
337
+ ob_end_clean();
338
+
339
+ return $content;
340
+
341
+ }
342
+
343
+ function readyEntryData( $entry_data ) {
344
+
345
+ $_filter = array();
346
+
347
+ foreach( $entry_data as $key => $data ) {
348
+
349
+ $tmp = array();
350
+
351
+ $field_id = $key;
352
+
353
+ $field = $this->getFieldByCssId( $field_id );
354
+
355
+ $value = $data;
356
+
357
+ if ( $field['type'] === 'fileupload' && ! empty( $value ) ) {
358
+
359
+ $file_name = basename( basename($value) );
360
+
361
+ $directory = DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . basename( get_option( 'smuzform_upload_dir' ) ) . DIRECTORY_SEPARATOR . $this->getId() . DIRECTORY_SEPARATOR;
362
+
363
+ $value = WP_CONTENT_URL . $directory . $file_name;
364
+
365
+ }
366
+
367
+ if ( is_array( $data ) && key( $data ) == 'name' ) {
368
+
369
+ }else if ( is_array( $data ) && key( $data ) == 'address' ) {
370
+
371
+ }
372
+
373
+ $tmp['label'] = $field['label'];
374
+ $tmp['value'] = $value;
375
+ $tmp['adt'] = $field;
376
+
377
+ $_filter[] = $tmp;
378
+
379
+
380
+ }
381
+
382
+ return $_filter;
383
+ }
384
+
385
+ }
admin/core/class/class-smuzform-notification-model.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Notification_Model {
4
+
5
+ private $post_type = 'smuzform';
6
+
7
+ /**
8
+ Create the ajax action url and hook it to WP Ajax API
9
+ **/
10
+ public function init() {
11
+
12
+ add_action( 'wp_ajax_smuzform_notification_api', array( $this, 'api' ) );
13
+
14
+ }
15
+
16
+
17
+ /**
18
+ Forward Backbone REST actions to create/save/get/delete
19
+ **/
20
+ function api() {
21
+
22
+ $this->verifyUser();
23
+
24
+ if ( $_SERVER['REQUEST_METHOD'] == 'GET' )
25
+ $this->get();
26
+
27
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' )
28
+ $this->create();
29
+
30
+ if ( $_SERVER['REQUEST_METHOD'] == 'PUT' )
31
+ $this->save();
32
+
33
+ if ( $_SERVER['REQUEST_METHOD'] == 'DELETE' )
34
+ $this->delete();
35
+
36
+
37
+ }
38
+
39
+ /**
40
+ Create a new form in the database with data from backbone model.
41
+ **/
42
+ function create() {
43
+
44
+ $this->save();
45
+
46
+ }
47
+
48
+ /**
49
+ Update form in the database with data from backbone model.
50
+ **/
51
+ function save() {
52
+
53
+ $data = json_decode( file_get_contents( 'php://input' ), true );
54
+
55
+ $form_id = intval($_GET['formID']);
56
+
57
+ update_post_meta( $form_id, 'notifications', $data );
58
+
59
+ $response = array(
60
+ 'method' => 'put',
61
+ 'action' => 'save',
62
+ 'formID' => $form_id,
63
+ 'error' => false,
64
+ 'errorMsg' => ''
65
+ );
66
+
67
+ echo json_encode( $response );
68
+
69
+ exit();
70
+
71
+ }
72
+
73
+ /**
74
+ Echo data of the form in json format.
75
+ **/
76
+ function get() {
77
+
78
+ $form_id = intval($_GET['formID']);
79
+
80
+ $data = get_post_meta( $form_id, 'notifications', true );
81
+
82
+ echo json_encode( $data );
83
+
84
+ exit();
85
+
86
+ }
87
+
88
+ /**
89
+ Delete the form from the database.
90
+ **/
91
+ function delete() {
92
+
93
+ $form_id = intval($_GET['formID']);
94
+
95
+ if ( get_post_type( $form_id ) !== $this->post_type )
96
+ exit();
97
+
98
+ delete_post_meta( $form_id, 'notifications' );
99
+
100
+ exit();
101
+
102
+ }
103
+
104
+ /**
105
+ Verify user permissions if failed PHP execution is stopped with no message.
106
+ **/
107
+ function verifyUser( $nonce = null ) {
108
+
109
+ if ( ! current_user_can( 'manage_options' ) )
110
+ exit;
111
+
112
+ if ( is_null( $nonce ) && isset( $_GET['nonce'] ) )
113
+ $nonce = $_GET['nonce'];
114
+
115
+ if ( ! wp_verify_nonce( $nonce, 'smuzform_notification_model' ) )
116
+ exit;
117
+
118
+ }
119
+
120
+
121
+ }
admin/core/class/class-smuzform-style-manager.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Style_Manager extends SmuzForm_Form {
4
+
5
+
6
+ function __construct( $form_id ) {
7
+
8
+ parent::__construct( $form_id );
9
+ }
10
+
11
+
12
+ }
admin/core/index.php ADDED
File without changes
admin/core/lib/phpUserAgentStringParser.php ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Simple PHP User Agent string parser
4
+ */
5
+
6
+ class phpUserAgentStringParser
7
+ {
8
+ /**
9
+ * Parse a user agent string.
10
+ *
11
+ * @param string $userAgentString defaults to $_SERVER['HTTP_USER_AGENT'] if empty
12
+ * @return array ( the user agent informations
13
+ * 'browser_name' => 'firefox',
14
+ * 'browser_version' => '3.6',
15
+ * 'operating_system' => 'linux'
16
+ * )
17
+ */
18
+ public function parse($userAgentString = null)
19
+ {
20
+ // use current user agent string as default
21
+ if(!$userAgentString)
22
+ {
23
+ $userAgentString = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null;
24
+ }
25
+
26
+ // parse quickly (with medium accuracy)
27
+ $informations = $this->doParse($userAgentString);
28
+
29
+
30
+ // run some filters to increase accuracy
31
+ foreach($this->getFilters() as $filter)
32
+ {
33
+ $this->$filter($informations);
34
+ }
35
+
36
+ return $informations;
37
+ }
38
+
39
+ /**
40
+ * Detect quickly informations from the user agent string
41
+ *
42
+ * @param string $userAgentString user agent string
43
+ * @return array user agent informations array
44
+ */
45
+ protected function doParse($userAgentString)
46
+ {
47
+ $userAgent = array(
48
+ 'string' => $this->cleanUserAgentString($userAgentString),
49
+ 'browser_name' => null,
50
+ 'browser_version' => null,
51
+ 'operating_system' => null,
52
+ 'engine' => null
53
+ );
54
+
55
+ if(empty($userAgent['string']))
56
+ {
57
+ return $userAgent;
58
+ }
59
+
60
+ // build regex that matches phrases for known browsers
61
+ // (e.g. "Firefox/2.0" or "MSIE 6.0" (This only matches the major and minor
62
+ // version numbers. E.g. "2.0.0.6" is parsed as simply "2.0"
63
+ $pattern = '#('.join('|', $this->getKnownBrowsers()).')[/ ]+([0-9]+(?:\.[0-9]+)?)#';
64
+
65
+ // Find all phrases (or return empty array if none found)
66
+ if (preg_match_all($pattern, $userAgent['string'], $matches))
67
+ {
68
+ // Since some UAs have more than one phrase (e.g Firefox has a Gecko phrase,
69
+ // Opera 7,8 have a MSIE phrase), use the last one found (the right-most one
70
+ // in the UA). That's usually the most correct.
71
+ $i = count($matches[1])-1;
72
+
73
+ if (isset($matches[1][$i]))
74
+ {
75
+ $userAgent['browser_name'] = $matches[1][$i];
76
+ }
77
+ if (isset($matches[2][$i]))
78
+ {
79
+ $userAgent['browser_version'] = $matches[2][$i];
80
+ }
81
+ }
82
+
83
+ // Find operating system
84
+ $pattern = '#'.join('|', $this->getKnownOperatingSystems()).'#';
85
+
86
+ if (preg_match($pattern, $userAgent['string'], $match))
87
+ {
88
+ if (isset($match[0]))
89
+ {
90
+ $userAgent['operating_system'] = $match[0];
91
+ }
92
+ }
93
+
94
+ // Find engine
95
+ $pattern = '#'.join('|', $this->getKnownEngines()).'#';
96
+
97
+ if (preg_match($pattern, $userAgent['string'], $match))
98
+ {
99
+ if (isset($match[0]))
100
+ {
101
+ $userAgent['engine'] = $match[0];
102
+ }
103
+ }
104
+
105
+ return $userAgent;
106
+ }
107
+
108
+ /**
109
+ * Make user agent string lowercase, and replace browser aliases
110
+ *
111
+ * @param string $userAgentString the dirty user agent string
112
+ * @return string the clean user agent string
113
+ */
114
+ public function cleanUserAgentString($userAgentString)
115
+ {
116
+ // clean up the string
117
+ $userAgentString = trim(strtolower($userAgentString));
118
+
119
+ // replace browser names with their aliases
120
+ $userAgentString = strtr($userAgentString, $this->getKnownBrowserAliases());
121
+
122
+ // replace operating system names with their aliases
123
+ $userAgentString = strtr($userAgentString, $this->getKnownOperatingSystemAliases());
124
+
125
+ // replace engine names with their aliases
126
+ $userAgentString = strtr($userAgentString, $this->getKnownEngineAliases());
127
+
128
+ return $userAgentString;
129
+ }
130
+
131
+ /**
132
+ * Get the list of filters that get called when parsing a user agent
133
+ *
134
+ * @return array list of valid callables
135
+ */
136
+ public function getFilters()
137
+ {
138
+ return array(
139
+ 'filterAndroid',
140
+ 'filterGoogleChrome',
141
+ 'filterSafariVersion',
142
+ 'filterOperaVersion',
143
+ 'filterYahoo',
144
+ 'filterMsie',
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Add a filter to be called when parsing a user agent
150
+ *
151
+ * @param string $filter name of the filter method
152
+ */
153
+ public function addFilter($filter)
154
+ {
155
+ $this->filters += $filter;
156
+ }
157
+
158
+ /**
159
+ * Get known browsers
160
+ *
161
+ * @return array the browsers
162
+ */
163
+ protected function getKnownBrowsers()
164
+ {
165
+ return array(
166
+ 'msie',
167
+ 'firefox',
168
+ 'safari',
169
+ 'webkit',
170
+ 'opera',
171
+ 'netscape',
172
+ 'konqueror',
173
+ 'gecko',
174
+ 'chrome',
175
+ 'googlebot',
176
+ 'iphone',
177
+ 'msnbot',
178
+ 'applewebkit'
179
+ );
180
+ }
181
+
182
+ /**
183
+ * Get known browser aliases
184
+ *
185
+ * @return array the browser aliases
186
+ */
187
+ protected function getKnownBrowserAliases()
188
+ {
189
+ return array(
190
+ 'shiretoko' => 'firefox',
191
+ 'namoroka' => 'firefox',
192
+ 'shredder' => 'firefox',
193
+ 'minefield' => 'firefox',
194
+ 'granparadiso' => 'firefox'
195
+ );
196
+ }
197
+
198
+ /**
199
+ * Get known operating system
200
+ *
201
+ * @return array the operating systems
202
+ */
203
+ protected function getKnownOperatingSystems()
204
+ {
205
+ return array(
206
+ 'windows',
207
+ 'macintosh',
208
+ 'linux',
209
+ 'freebsd',
210
+ 'unix',
211
+ 'iphone'
212
+ );
213
+ }
214
+
215
+ /**
216
+ * Get known operating system aliases
217
+ *
218
+ * @return array the operating system aliases
219
+ */
220
+ protected function getKnownOperatingSystemAliases()
221
+ {
222
+ return array();
223
+ }
224
+
225
+ /**
226
+ * Get known engines
227
+ *
228
+ * @return array the engines
229
+ */
230
+ protected function getKnownEngines()
231
+ {
232
+ return array(
233
+ 'gecko',
234
+ 'webkit',
235
+ 'trident',
236
+ 'presto'
237
+ );
238
+ }
239
+
240
+ /**
241
+ * Get known engines aliases
242
+ *
243
+ * @return array the engines aliases
244
+ */
245
+ protected function getKnownEngineAliases()
246
+ {
247
+ return array();
248
+ }
249
+
250
+ /**
251
+ * Filters
252
+ */
253
+
254
+ /**
255
+ * Google chrome has a safari like signature
256
+ */
257
+ protected function filterGoogleChrome(array &$userAgent)
258
+ {
259
+ if ('safari' === $userAgent['browser_name'] && strpos($userAgent['string'], 'chrome/'))
260
+ {
261
+ $userAgent['browser_name'] = 'chrome';
262
+ $userAgent['browser_version'] = preg_replace('|.+chrome/([0-9]+(?:\.[0-9]+)?).+|', '$1', $userAgent['string']);
263
+ }
264
+ }
265
+
266
+ /**
267
+ * Safari version is not encoded "normally"
268
+ */
269
+ protected function filterSafariVersion(array &$userAgent)
270
+ {
271
+ if ('safari' === $userAgent['browser_name'] && strpos($userAgent['string'], ' version/'))
272
+ {
273
+ $userAgent['browser_version'] = preg_replace('|.+\sversion/([0-9]+(?:\.[0-9]+)?).+|', '$1', $userAgent['string']);
274
+ }
275
+ }
276
+
277
+ /**
278
+ * Opera 10.00 (and higher) version number is located at the end
279
+ */
280
+ protected function filterOperaVersion(array &$userAgent)
281
+ {
282
+ if('opera' === $userAgent['browser_name'] && strpos($userAgent['string'], ' version/'))
283
+ {
284
+ $userAgent['browser_version'] = preg_replace('|.+\sversion/([0-9]+\.[0-9]+)\s*.*|', '$1', $userAgent['string']);
285
+ }
286
+ }
287
+
288
+ /**
289
+ * Yahoo bot has a special user agent string
290
+ */
291
+ protected function filterYahoo(array &$userAgent)
292
+ {
293
+ if (null === $userAgent['browser_name'] && strpos($userAgent['string'], 'yahoo! slurp'))
294
+ {
295
+ $userAgent['browser_name'] = 'yahoobot';
296
+ }
297
+ }
298
+
299
+ /**
300
+ * MSIE does not always declare its engine
301
+ */
302
+ protected function filterMsie(array &$userAgent)
303
+ {
304
+ if ('msie' === $userAgent['browser_name'] && empty($userAgent['engine']))
305
+ {
306
+ $userAgent['engine'] = 'trident';
307
+ }
308
+ }
309
+
310
+ /**
311
+ * Android has a safari like signature
312
+ */
313
+ protected function filterAndroid(array &$userAgent) {
314
+ if ('safari' === $userAgent['browser_name'] && strpos($userAgent['string'], 'android ')) {
315
+ $userAgent['browser_name'] = 'android';
316
+ $userAgent['operating_system'] = 'android';
317
+ $userAgent['browser_version'] = preg_replace('|.+android ([0-9]+(?:\.[0-9]+)+).+|', '$1', $userAgent['string']);
318
+ }
319
+ }
320
+ }
admin/index.php ADDED
File without changes
admin/views/backbone-views.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="formPreview-template">
2
+ <!-- Form Name -->
3
+ <legend>
4
+
5
+ <h3 class="form-title">
6
+ <%= title %>
7
+ </h3>
8
+
9
+ <div class="form-description">
10
+ <p>
11
+ <%= description %>
12
+ </p>
13
+ </div>
14
+
15
+ </legend>
16
+ </script>
17
+
18
+ <script type="text/template" id="nofieldSelected-template">
19
+ <p class="alert alert-warning">
20
+ <?php smuzform_translate_e( 'No field Selected' ) ?>
21
+ </p>
22
+ </script>
23
+
24
+
25
+ <?php include smuzform_admin_view( 'backbone/form-settings.php' ) ?>
26
+
27
+ <?php include smuzform_admin_view( 'backbone/form-field-settings.php' ) ?>
28
+
29
+ <?php include smuzform_admin_view( 'backbone/form-fields-preview.php' ) ?>
30
+
31
+ <?php include smuzform_admin_view( 'backbone/form-navbar.php' ); ?>
admin/views/backbone/form-field-settings-rules.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <% if ( type !== 'pagebreak' ) { %>
2
+ <div class="panel-group" id="fieldRulesCont">
3
+ <div class="panel panel-default">
4
+ <div class="panel-heading">
5
+ <h4 class="panel-title">
6
+ <a data-toggle="collapse" href="#collapseRules<%= cssID %>">
7
+ <?php smuzform_translate_e( 'Conditional Logic' ) ?>
8
+ </a>
9
+ </h4>
10
+ </div>
11
+ <div id="collapseRules<%= cssID %>" class="panel-collapse collapse">
12
+ <div class="panel-body">
13
+
14
+ <div id="ruleBuilderCont">
15
+
16
+ <label><input type="checkbox" id="enableConditionalLogic" <% if ( ruleEnabled === true ) { %> <%- 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Enable' ) ?></label>
17
+
18
+ <ul id="rules">
19
+
20
+ <li>
21
+
22
+ <div class="rule">
23
+
24
+ <div class="ruleInlineCont">
25
+ <strong>If</strong>
26
+
27
+ <select id="ruleFields">
28
+ <option value="">Select a field</option>
29
+ <% _.each(smuzform.App.Collections.FieldsCol.toJSON(), function(model) { %>
30
+
31
+ <% if ( model.cssID !== cssID ) { %>
32
+
33
+ <% if ( model.type !== 'address' && model.type !== 'sectionbreak' && model.type !== 'name' && model.type !== 'fileupload' && model.type !== 'checkbox' && model.type !== 'customText' && model.type !== 'customHtml' && model.type !== 'customImage' && model.type !== 'customLink' && model.type !== 'pagebreak' ) { %>
34
+ <option <% if ( rules.field === model.cssID ) { %> <%- 'selected' %> <% } %> value="<%- model.cssID %>"><%- model.label %></option>
35
+
36
+ <% } %>
37
+
38
+ <% } %>
39
+
40
+ <% }); %>
41
+
42
+ </select>
43
+
44
+ <select id="ruleFieldOperator">
45
+
46
+ <option <% if ( rules.operator === 'is' ) { %> <%- 'selected' %> <% } %> value="is">Is</option>
47
+ <option <% if ( rules.operator === 'isNot' ) { %> <%- 'selected' %> <% } %> value="isNot">Is not</option>
48
+
49
+ </select>
50
+ </div>
51
+
52
+ <div class="ruleInlineCont">
53
+ <input type="text" value="<%- rules.cmpValue %>" id="ruleFieldLogicValue" placeholder="Enter comparison value" />
54
+
55
+ <select id="ruleFieldAction">
56
+
57
+ <option <% if ( rules.action === 'show' ) { %> <%- 'selected' %> <% } %> value="show">Show</option>
58
+ <option <% if ( rules.action === 'hide' ) { %> <%- 'selected' %> <% } %> value="hide">Hide</option>
59
+
60
+ </select>
61
+ </div>
62
+
63
+
64
+ </div>
65
+
66
+ </li>
67
+
68
+ </ul>
69
+
70
+ </div>
71
+
72
+ </div>
73
+
74
+ <div class="panel-footer">
75
+ <small>If this field is *required logic may not work.</small>
76
+ </div>
77
+
78
+ </div>
79
+ </div>
80
+ </div>
81
+ <% } %>
admin/views/backbone/form-field-settings.php ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="fieldSettings-template">
2
+
3
+ <form id="fieldSettingsForm">
4
+
5
+ <% if ( type !== 'sectionbreak' && type !== 'linebreak' && type !== 'customText' && type !== 'customHtml' && type !== 'customImage' && type !== 'customLink' && type !== 'pagebreak' ) { %>
6
+ <div class="form-group">
7
+ <label for="fieldLabel"><?php smuzform_translate_e('Label') ?></label>
8
+ <input id="fieldLabel" type="text" value="<%- label %>" class="form-control" />
9
+ </div>
10
+
11
+ <div class="form-inline">
12
+
13
+ <div class="form-group field-cont-type">
14
+ <label for="fieldType"><?php smuzform_translate_e('Field Type') ?></label>
15
+
16
+ <select id="fieldType" class="form-control" disabled>
17
+ <option value="singletext" <% if ( type === 'singletext' ) { %> <%- 'selected' %> <% } %>>Single Line Text</option>
18
+ <option value="textarea" <% if ( type === 'textarea' ) { %> <%- 'selected' %> <% } %>>Text Area</option>
19
+ <option value="number" <% if ( type === 'number' ) { %> <%- 'selected' %> <% } %>>Number</option>
20
+ <option value="dropdown" <% if ( type === 'dropdown' ) { %> <%- 'selected' %> <% } %>>Dropdown</option>
21
+ <option value="radio" <% if ( type === 'radio' ) { %> <%- 'selected' %> <% } %>>Radio Buttons</option>
22
+ <option value="checkbox" <% if ( type === 'checkbox' ) { %> <%- 'selected' %> <% } %>>Checkboxes</option>
23
+ <option value="fileupload" <% if ( type === 'fileupload' ) { %> <%- 'selected' %> <% } %>>File Upload</option>
24
+ <option value="fileupload" <% if ( type === 'customText' ) { %> <%- 'selected' %> <% } %>>File Upload</option>
25
+ </select>
26
+ </div>
27
+
28
+ <div class="form-group field-cont-size">
29
+ <label for=""><?php smuzform_translate_e('Field Size') ?></label>
30
+ <select id="fieldSize" class="form-control">
31
+ <option value="small" <% if ( size === 'small' ) { %> <%- 'selected' %> <% } %> >Small</option>
32
+ <option value="medium" <% if ( size === 'medium' ) { %> <%- 'selected' %> <% } %> >Medium</option>
33
+ <option value="large" <% if ( size === 'large' ) { %> <%- 'selected' %> <% } %> >Large</option>
34
+ </select>
35
+ </div>
36
+
37
+ </div>
38
+
39
+ <div class="form-inline">
40
+
41
+ <div class="form-group field-cont-options">
42
+ <label class="field-cont-options-label"><?php smuzform_translate_e('Options') ?></label>
43
+ <div class="checkbox">
44
+ <label>
45
+
46
+ <% if ( required === true ){
47
+ isRequiredChecked = 'checked';
48
+ } else { isRequiredChecked = '' } %>
49
+
50
+ <input <%- isRequiredChecked %> type="checkbox" value="true" id="optionRequired" />
51
+ Required
52
+ </label>
53
+ </div>
54
+
55
+ <% if ( type !== 'checkbox' && type !== 'radio' && type !== 'dropdown' && type !== 'fileupload' && type !== 'address' && type !== 'date' && type !== 'likert' ) { %>
56
+ <div class="checkbox">
57
+ <label>
58
+ <input type="checkbox" value="true" id="optionNoDuplicate" <% if ( noDuplicates ) { %> <%- 'checked' %> <% } %> />
59
+ No Duplicate
60
+ </label>
61
+ </div>
62
+ <% } %>
63
+ </div>
64
+
65
+ <div class="form-group field-cont-size">
66
+ <label class="field-cont-options-label"><?php smuzform_translate_e('Label visibility') ?></label>
67
+ <div class="checkbox">
68
+ <%
69
+
70
+ var visibleChecked = '',
71
+ hiddenChecked = '';
72
+
73
+ if ( labelVisible === true ){
74
+ visibleChecked = 'checked';
75
+ } else { hiddenChecked = 'checked' }
76
+ %>
77
+ <label>
78
+ <input <%- visibleChecked %> type="radio" name="fieldOptionRadio" value="visible" id="optionVisible" />
79
+ Visible
80
+ </label>
81
+ </div>
82
+ <div class="checkbox">
83
+ <label>
84
+ <input <%- hiddenChecked %> type="radio" name="fieldOptionRadio" value="hidden" id="optionHidden" />
85
+ Hidden
86
+ </label>
87
+ </div>
88
+ </div>
89
+
90
+ </div>
91
+
92
+ <% if ( type !== 'checkbox' && type !== 'radio' && type !== 'dropdown' && type !== 'fileupload' && type !== 'likert' && type !== 'address' && type !== 'name' ) { %>
93
+ <div class="form-group">
94
+ <label for="fieldValue"><?php smuzform_translate_e('Value') ?></label>
95
+ <input id="fieldValue" type="text" value="<%- preValue %>" placeholder="Enter pre-defined value" class="form-control" />
96
+ <% if ( type == 'date' ) { %>
97
+ <small><?php smuzform_translate_e( 'dd/mm/yyyy' ) ?></small>
98
+ <% } %>
99
+ </div>
100
+
101
+ <% if ( type !== 'date' ) { %>
102
+ <div class="form-group">
103
+ <label for="fieldPlaceholder"><?php smuzform_translate_e('Placeholder Text') ?></label>
104
+ <input id="fieldPlaceholder" type="text" value="<%- placeholderText %>" placeholder="This is placeholder text" class="form-control" />
105
+ </div>
106
+ <% } %>
107
+
108
+ <% } %>
109
+
110
+ <% if ( type === 'radio' ) { %>
111
+
112
+ <div class="form-group">
113
+ <label><?php smuzform_translate_e('Choices') ?></label>
114
+
115
+ <% _.each( choices, function( choice, index ) { %>
116
+
117
+ <div class="form-inline">
118
+ <div class="form-group">
119
+ <input type="radio" name="optChoice" class="optChoiceSelect" data-index="<%- index %>" <% if ( index === selectedChoice ) { %> <%- 'checked' %> <% } %> />
120
+ </div>
121
+ <div class="form-group">
122
+ <input class="fieldOptChoice form-control input-sm" data-index="<%- index %>" type="text" value="<%- choice %>" />
123
+ <a class="optChoiceRemove button" data-index="<%- index %>">X</a>
124
+ </div>
125
+ </div>
126
+
127
+ <% }); %>
128
+
129
+ <a class="button" id="addNewChoice">+</a>
130
+
131
+ </div>
132
+
133
+ <% } %>
134
+
135
+ <% if ( type === 'checkbox' ) { %>
136
+
137
+ <div class="form-group">
138
+ <label><?php smuzform_translate_e('Choices') ?></label>
139
+
140
+ <% _.each( choices, function( choice, index ) { %>
141
+
142
+ <div class="form-inline">
143
+ <div class="form-group">
144
+ <input type="radio" name="optChoice" class="optChoiceSelect" data-index="<%- index %>" <% if ( index === selectedChoice ) { %> <%- 'checked' %> <% } %> />
145
+ </div>
146
+ <div class="form-group">
147
+ <input class="fieldOptChoice form-control input-sm" data-index="<%- index %>" type="text" value="<%- choice %>" />
148
+ <a class="optChoiceRemove button" data-index="<%- index %>">X</a>
149
+ </div>
150
+ </div>
151
+
152
+ <% }); %>
153
+
154
+ <a class="button" id="addNewChoice">+</a>
155
+
156
+ </div>
157
+
158
+ <% } %>
159
+
160
+ <% if ( type === 'dropdown' ) { %>
161
+
162
+ <div class="form-group">
163
+ <label><?php smuzform_translate_e('Choices') ?></label>
164
+
165
+ <% _.each( choices, function( choice, index ) { %>
166
+
167
+ <div class="form-inline">
168
+ <div class="form-group">
169
+ <input type="radio" name="optChoice" class="optChoiceSelect" data-index="<%- index %>" <% if ( index === selectedChoice ) { %> <%- 'checked' %> <% } %> />
170
+ </div>
171
+ <div class="form-group">
172
+ <input class="fieldOptChoice form-control input-sm" data-index="<%- index %>" type="text" value="<%- choice %>" />
173
+ <a class="optChoiceRemove button" data-index="<%- index %>">X</a>
174
+ </div>
175
+ </div>
176
+
177
+ <% }); %>
178
+
179
+ <a class="button" id="addNewChoice">+</a>
180
+
181
+ </div>
182
+
183
+ <% } %>
184
+
185
+ <% } %>
186
+
187
+
188
+ <% if ( type === 'sectionbreak' ) { %>
189
+
190
+ <div class="form-group">
191
+ <label for="fieldSectionTitle"><?php smuzform_translate_e('Section Title') ?></label>
192
+ <input id="fieldSectionTitle" type="text" value="<%- sectionTitle %>" class="form-control" />
193
+ </div>
194
+
195
+ <div class="form-group">
196
+ <label for="fieldSectionDescription"><?php smuzform_translate_e('Section Description') ?></label>
197
+ <input id="fieldSectionDescription" type="text" value="<%- sectionDescription %>" class="form-control" />
198
+ </div>
199
+
200
+ <% } %>
201
+
202
+ <% if ( type === 'fileupload' ) { %>
203
+
204
+ <div class="form-group">
205
+ <label for="fieldFileAllowed"><?php smuzform_translate_e('File Types Allowed') ?></label>
206
+ <input id="fieldFileAllowed" type="text" value="<%- file.allowed %>" class="form-control" />
207
+ </div>
208
+
209
+ <div class="form-group">
210
+ <label for="fieldFileMaxSize"><?php smuzform_translate_e('Max Size (MB)') ?></label>
211
+ <input id="fieldFileMaxSize" type="text" value="<%- file.maxSize %>" class="form-control fieldSize-small" />
212
+ <small><?php smuzform_translate_e( 'PHP System Limit is ' ); echo ini_get('upload_max_filesize') ?></small>
213
+ </div>
214
+
215
+ <% } %>
216
+
217
+
218
+ <% if ( type === 'singletext' || type === 'textarea' || type === 'email' || type === 'number' || type === 'textarea' ) { %>
219
+
220
+
221
+ <div class="panel-group">
222
+ <div class="panel panel-default">
223
+ <div class="panel-heading">
224
+ <h4 class="panel-title">
225
+ <a data-toggle="collapse" href="#collapse1">Range</a>
226
+ </h4>
227
+ </div>
228
+ <div id="collapse1" class="panel-collapse collapse">
229
+ <div class="panel-body">
230
+ <div class="form-group">
231
+
232
+ <label for="fieldMinLength"><?php smuzform_translate_e( 'Min Length' ) ?></label>
233
+ <input id="fieldMinLength" type="number" class="form-control" value="<%- rangeMin %>" />
234
+
235
+ </div>
236
+
237
+ <div class="form-group">
238
+
239
+ <label for="fieldMaxLength"><?php smuzform_translate_e( 'Max Length' ) ?></label>
240
+ <input id="fieldMaxLength" type="number" class="form-control" value="<%- rangeMax %>" />
241
+ </div>
242
+ </div>
243
+
244
+ <div class="panel-footer">
245
+ <small>
246
+ <?php smuzform_translate_e( 'Leave blank to disable.' ) ?>
247
+ </small>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+
254
+
255
+ <% } %>
256
+
257
+ <% if ( type === 'address' ) { %>
258
+
259
+ <% } %>
260
+
261
+ <% if ( type === 'customText' ) { %>
262
+
263
+ <div class="form-group">
264
+ <label for="customTextValue"><?php smuzform_translate_e('Text') ?></label>
265
+ <input id="customTextValue" type="text" value="<%- extraData.html %>" class="form-control" />
266
+ </div>
267
+
268
+ <div class="form-group">
269
+ <label for="customTextTag"><?php smuzform_translate_e('HTML Tag') ?></label>
270
+
271
+ <select id="customTextTag" class="form-control">
272
+ <option value="p" <% if ( extraData.tag === 'p' ) { %> <%= 'selected' %> <% } %> >P</option>
273
+ <option value="h1" <% if ( extraData.tag === 'h1' ) { %> <%= 'selected' %> <% } %> >h1</option>
274
+ <option value="h2" <% if ( extraData.tag === 'h2' ) { %> <%= 'selected' %> <% } %> >h2</option>
275
+ <option value="h3" <% if ( extraData.tag === 'h3' ) { %> <%= 'selected' %> <% } %> >h3</option>
276
+ <option value="h4" <% if ( extraData.tag === 'h4' ) { %> <%= 'selected' %> <% } %> >h4</option>
277
+ <option value="h5" <% if ( extraData.tag === 'h5' ) { %> <%= 'selected' %> <% } %> >h5</option>
278
+ <option value="em" <% if ( extraData.tag === 'em' ) { %> <%= 'selected' %> <% } %> >em</option>
279
+ </select>
280
+ </div>
281
+
282
+ <div class="form-group">
283
+ <label for="customTextColor"><?php smuzform_translate_e('Color') ?></label>
284
+ <input id="customTextColor" type="color" value="<%- extraData.color %>" class="form-control" />
285
+ </div>
286
+
287
+ <div class="form-group">
288
+ <label for="customTextFontSize"><?php smuzform_translate_e('Font size (px)') ?></label>
289
+ <input id="customTextFontSize" type="number" value="<%- extraData.size %>" class="form-control" />
290
+ </div>
291
+
292
+ <div class="form-group">
293
+ <div class="checkbox">
294
+ <label> <input type="checkbox" id="customTextBold" <% if ( extraData.bold ) { %> <%= 'checked' %> <% } %> /> <?php smuzform_translate_e('Make Text Bold') ?></label>
295
+ </div>
296
+ </div>
297
+
298
+ <% } %>
299
+
300
+
301
+ <% if ( type === 'customImage' ) { %>
302
+
303
+ <div class="form-group">
304
+ <label for="customImageUrl"><?php smuzform_translate_e('Image Url') ?></label>
305
+ <input id="customImageUrl" type="text" value="<%- extraData.imgUrl %>" class="form-control" />
306
+ </div>
307
+
308
+ <div class="form-group">
309
+ <label for="customImageWidth"><?php smuzform_translate_e('Width') ?></label>
310
+ <input id="customImageWidth" type="number" value="<%- extraData.width %>" class="form-control" />
311
+ </div>
312
+
313
+ <div class="form-group">
314
+ <label for="customImageHeight"><?php smuzform_translate_e('Height') ?></label>
315
+ <input id="customImageHeight" type="number" value="<%- extraData.height %>" class="form-control" />
316
+ </div>
317
+
318
+ <% } %>
319
+
320
+ <% if ( type === 'customHtml' ) { %>
321
+
322
+ <div class="form-group">
323
+ <label for="customHtmlSource"><?php smuzform_translate_e('Code') ?></label>
324
+ <textarea rows="10" id="customHtmlSource" class="form-control"><%= extraData.readyHtml %></textarea>
325
+ </div>
326
+
327
+
328
+
329
+ <% } %>
330
+
331
+ <% if ( type === 'pagebreak' ) { %>
332
+ <div class="form-group">
333
+ <label for="fieldLabel"><?php smuzform_translate_e('Label') ?></label>
334
+ <input id="fieldLabel" type="text" value="<%- label %>" class="form-control" />
335
+ </div>
336
+ <% } %>
337
+
338
+
339
+ <?php include smuzform_admin_view( 'backbone/form-field-settings-rules.php' ) ?>
340
+
341
+ </form>
342
+ </script>
admin/views/backbone/form-fields-preview.php ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="fieldsView-template">
2
+
3
+ <% if ( required === true ){
4
+ isRequired = 'required';
5
+ } else { isRequired = '' } %>
6
+
7
+ <% if ( type === 'singletext' ) { %>
8
+ <div class="form-group">
9
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
10
+
11
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
12
+
13
+ </div>
14
+ <% } %>
15
+
16
+ <% if ( type === 'textarea' ) { %>
17
+ <div class="form-group">
18
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
19
+
20
+ <textarea rows="<%- textAreaRows %>" cols="<%- textAreaCols %>" readonly id="<%- cssID %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>"><%- preValue %></textarea>
21
+ </div>
22
+ <% } %>
23
+
24
+ <% if ( type === 'radio' ) { %>
25
+ <div class="form-group">
26
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
27
+
28
+ <% _.each( choices, function( choice, index ) {
29
+
30
+ if ( index === selectedChoice )
31
+ isSelected = 'checked';
32
+ else
33
+ isSelected = ''
34
+ %>
35
+
36
+ <div class="radio disabled">
37
+
38
+ <label><input <%- isSelected %> type="radio" disabled value="" /> <%- choice %></label>
39
+
40
+ </div>
41
+
42
+ <% }); %>
43
+
44
+ </div>
45
+ <% } %>
46
+
47
+ <% if ( type === 'checkbox' ) { %>
48
+ <div class="form-group">
49
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
50
+
51
+ <% _.each( choices, function( choice, index ) {
52
+
53
+ if ( index === selectedChoice )
54
+ cisSelected = 'checked';
55
+ else
56
+ cisSelected = ''
57
+ %>
58
+
59
+ <div class="checkbox disabled">
60
+
61
+ <label><input <%- cisSelected %> type="checkbox" disabled value="" /> <%- choice %></label>
62
+
63
+ </div>
64
+
65
+ <% }); %>
66
+
67
+ </div>
68
+ <% } %>
69
+
70
+ <% if ( type === 'dropdown' ) { %>
71
+ <div class="form-group">
72
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
73
+ <select class="form-control fieldSize-<%- size %> smformfield" disabled>
74
+ <% _.each( choices, function( choice, index ) {
75
+
76
+ if ( index === selectedChoice )
77
+ sisSelected = 'selected';
78
+ else
79
+ sisSelected = ''
80
+ %>
81
+
82
+ <option <%- sisSelected %>><%- choice %></option>
83
+
84
+
85
+ <% }); %>
86
+
87
+ </select>
88
+
89
+ </div>
90
+ <% } %>
91
+
92
+ <% if ( type === 'linebreak' ) { %>
93
+ <div class="fieldLineBreakView"><hr /></div>
94
+ <% } %>
95
+
96
+ <% if ( type === 'sectionbreak' ) { %>
97
+ <legend>
98
+
99
+ <h3 class="form-title">
100
+ <%- sectionTitle %>
101
+ </h3>
102
+
103
+ <div class="form-description">
104
+ <p>
105
+ <%- sectionDescription %>
106
+ </p>
107
+ </div>
108
+
109
+ </legend>
110
+ <% } %>
111
+
112
+ <% if ( type === 'number' ) { %>
113
+ <div class="form-group">
114
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
115
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="number" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
116
+ </div>
117
+ <% } %>
118
+
119
+ <% if ( type === 'fileupload' ) { %>
120
+ <div class="form-group">
121
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
122
+ <input <%- isRequired %> disabled id="<%- cssID %>" type="file" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
123
+ </div>
124
+ <% } %>
125
+
126
+
127
+ <% if ( type === 'name' ) { %>
128
+ <div class="form-group">
129
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
130
+
131
+ <div class="row nameFieldRow">
132
+
133
+ <div class="form-group col-xs-3">
134
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
135
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'First' ) ?></label>
136
+ </div>
137
+ <div class="form-group col-xs-4">
138
+ <input readonly id="<%- cssID %>" type="text" value="" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
139
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Last' ) ?></label>
140
+ </div>
141
+
142
+ </div>
143
+
144
+ </div>
145
+ <% } %>
146
+
147
+
148
+ <% if ( type === 'email' ) { %>
149
+ <div class="form-group">
150
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
151
+
152
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="email" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
153
+
154
+ </div>
155
+ <% } %>
156
+
157
+ <% if ( type === 'website' ) { %>
158
+ <div class="form-group">
159
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
160
+
161
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="url" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
162
+
163
+ </div>
164
+ <% } %>
165
+
166
+ <% if ( type === 'date' ) { %>
167
+ <div class="form-group">
168
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
169
+
170
+ <div class="row nameFieldRow">
171
+
172
+ <div class="form-group col-xs-1">
173
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.day %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
174
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'DD' ) ?></label>
175
+ </div>
176
+ <div class="form-group col-xs-1">
177
+ <input readonly id="<%- cssID %>" type="text" value="<%- extraData.month %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
178
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'MM' ) ?></label>
179
+ </div>
180
+ <div class="form-group col-xs-2">
181
+ <input readonly id="<%- cssID %>" type="text" value="<%- extraData.year %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
182
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'YYYY' ) ?></label>
183
+ </div>
184
+
185
+ </div>
186
+
187
+ </div>
188
+ <% } %>
189
+
190
+ <% if ( type === 'phone' ) { %>
191
+ <div class="form-group">
192
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
193
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- preValue %>" placeholder="<%- placeholderText %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" />
194
+ </div>
195
+ <% } %>
196
+
197
+ <% if ( type === 'address' ) { %>
198
+ <div class="form-group">
199
+ <label for="<%- cssID %>" class="smfieldlabel <%- isRequired %>"><%- label %></label>
200
+
201
+ <div class="row addressFieldRow">
202
+
203
+ <div class="form-group">
204
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.firstAddress %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
205
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Street Address' ) ?></label>
206
+ </div>
207
+
208
+ <div class="form-group">
209
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.secondAddress %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
210
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Address 2' ) ?></label>
211
+ </div>
212
+
213
+
214
+ </div>
215
+
216
+ <div class="row addressFieldRow">
217
+
218
+ <div class="form-group col-xs-4">
219
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.city %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
220
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'City' ) ?></label>
221
+ </div>
222
+
223
+ <div class="form-group col-xs-4">
224
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.state %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
225
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'State / Province' ) ?></label>
226
+ </div>
227
+
228
+
229
+ </div>
230
+
231
+ <div class="row addressFieldRow">
232
+
233
+ <div class="form-group col-xs-4">
234
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.code %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
235
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Postal / Zip Code' ) ?></label>
236
+ </div>
237
+
238
+ <div class="form-group col-xs-4">
239
+ <input <%- isRequired %> readonly id="<%- cssID %>" type="text" value="<%- extraData.country %>" class="form-control <%- cssClasses %> smformfield fieldSize-<%- size %>" /> <br />
240
+ <label for="<%- cssID %>" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Country' ) ?></label>
241
+ </div>
242
+
243
+
244
+ </div>
245
+
246
+ </div>
247
+ <% } %>
248
+
249
+
250
+ <% if ( type === 'customText' ) { %>
251
+ <%= extraData.readyHtml %>
252
+ <% } %>
253
+
254
+ <% if ( type === 'customImage' ) { %>
255
+ <%= extraData.readyHtml %>
256
+ <% } %>
257
+
258
+ <% if ( type === 'customHtml' ) { %>
259
+ <%= extraData.readyHtml %>
260
+ <% } %>
261
+
262
+ <% if ( type === 'pagebreak' ) { %>
263
+ <p>----------------------------------------------------------------<%- label %>-----------------------------------------------------------------</p>
264
+ <% } %>
265
+
266
+
267
+
268
+ <div>
269
+ <a class="button removeMeField hidden">X</a>
270
+ </div>
271
+ </script>
admin/views/backbone/form-navbar.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="formNavBar-template">
2
+
3
+ <li class="navBarActionsLi">
4
+ <a id="formStyleAction"><?php smuzform_translate_e( 'Styles' ) ?></a>
5
+ </li>
6
+
7
+ <li class="navBarActionsLi">
8
+ <a id="formNotificationAction"><?php smuzform_translate_e( 'Notifications' ) ?></a>
9
+ </li>
10
+
11
+ <li class="navBarActionsLi">
12
+ <a id="formEntriesAction"><?php smuzform_translate_e( 'Entries' ) ?></a>
13
+ </li>
14
+
15
+ <li class="navBarActionsLi">
16
+ <a id="formExportAction"><?php smuzform_translate_e( 'Export' ) ?></a>
17
+ </li>
18
+
19
+ <!-- Modal -->
20
+ <div id="exportModal" class="modal fade" role="dialog">
21
+ <div class="modal-dialog">
22
+
23
+ <!-- Modal content-->
24
+ <div class="modal-content">
25
+ <div class="modal-header">
26
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
27
+ <h4 class="modal-title"><?php smuzform_translate_e( 'Export ' ) ?><%= title %></h4>
28
+ </div>
29
+ <div class="modal-body">
30
+ <div class="form-group">
31
+ <label for="formShortcode"><?php smuzform_translate_e( 'Shortcode.' ) ?></label>
32
+ <input id="formShortcode" type="text" readonly value="[sform id='<%= tmpid %>']" class="form-control" />
33
+ <small><?php smuzform_translate_e( 'To display the form insert the shortcode in posts or page content as a new line of ordinary text.' ) ?></small>
34
+ </div>
35
+ <div class="form-group">
36
+ <label for="formShortcodeFunc"><?php smuzform_translate_e( 'PHP Template Function.' ) ?></label>
37
+ <textarea id="formShortcodeFunc" class="form-control" readonly>if ( function_exists( 'smuzform_render_form' ) ) { smuzform_render_form('<%= tmpid %>'); }</textarea>
38
+ </div>
39
+ </div>
40
+ <div class="modal-footer">
41
+ <button type="button" class="btn btn-default" data-dismiss="modal"><?php smuzform_translate_e( 'Close' ) ?></button>
42
+ </div>
43
+ </div>
44
+
45
+ </div>
46
+ </div>
47
+
48
+ </script>
admin/views/backbone/form-settings.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="formSettings-template">
2
+
3
+ <form id="formSettingsForm">
4
+
5
+ <div class="form-group">
6
+ <label for="formTitle"><?php smuzform_translate_e('Title') ?></label>
7
+ <input id="formTitle" type="text" value="<%- title %>" class="form-control" />
8
+ </div>
9
+ <div class="form-group">
10
+ <label for="formDescription"><?php smuzform_translate_e('Description') ?></label>
11
+ <input id="formDescription" type="text" value="<%- description %>" class="form-control" />
12
+ </div>
13
+
14
+ <div class="form-inline form-group">
15
+
16
+ <div class="form-group form-cont-lang">
17
+ <label for="formLang"><?php smuzform_translate_e('Language') ?></label>
18
+
19
+ <select id="formLang" class="form-control">
20
+ <option value="en" <% if ( lang === 'en' ) { %> <%- 'selected' %> <% } %> >English</option>
21
+ </select>
22
+
23
+ </div>
24
+
25
+ <div class="form-group form-cont-placement">
26
+ <label for="formLabelPlacement"><?php smuzform_translate_e('Label Placement') ?></label>
27
+ <select id="formLabelPlacement" class="form-control">
28
+ <option value="top" <% if ( labelPlacement === 'top' ) { %> <%- 'selected' %> <% } %> >Top Aligned</option>
29
+ <option value="left" <% if ( labelPlacement === 'left' ) { %> <%- 'selected' %> <% } %> >Left Aligned</option>
30
+ </select>
31
+ </div>
32
+
33
+ </div>
34
+
35
+ <div class="form-group">
36
+
37
+ <label class="radio-inline">
38
+ <input type="radio" name="optConfOption" value="text" <% if ( confirmationOption === 'text' ) { %> <%- 'checked' %> <% } %> /> Show Text
39
+ </label>
40
+
41
+ <label class="radio-inline">
42
+ <input type="radio" name="optConfOption" value="redirect" <% if ( confirmationOption === 'redirect' ) { %> <%- 'checked' %> <% } %> /> Redirect to Website
43
+ </label>
44
+
45
+ <% if ( confirmationOption === 'text' ) { %>
46
+ <div class="form-group">
47
+
48
+ <textarea id="formTextMessage" class="form-control"><%- textMessage %></textarea>
49
+
50
+ </div>
51
+ <% } %>
52
+
53
+ <% if ( confirmationOption === 'redirect' ) { %>
54
+ <div class="form-group">
55
+
56
+ <input id="formRedirectUrl" type="url" class="form-control" value="<%- redirectUrl %>" />
57
+
58
+ </div>
59
+ <% } %>
60
+
61
+
62
+
63
+ </div>
64
+
65
+ <div class="form-group">
66
+ <label for="formSubmitBtnText"><?php smuzform_translate_e('Submit Button Text') ?></label>
67
+ <input type="text" id="formSubmitBtnText" value="<%- submitBtnText %>" class="form-control" />
68
+ </div>
69
+
70
+ <div class="form-group checkbox">
71
+ <label>
72
+ <input id="formCaptcha" type="checkbox" class="form-control" value="true" <% if ( captcha ) { %> <%- 'checked' %> <% } %> /> Captcha
73
+ <p class="description"><?php smuzform_translate_e( 'Captcha feature will only work if the captcha extension is installed.' ) ?></p>
74
+ </label>
75
+ </div>
76
+
77
+ </form>
78
+
79
+ </script>
admin/views/entry/datatable.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <table id="entryDataTable" class="table table-striped table-bordered">
2
+ <thead>
3
+ <tr>
4
+ <?php foreach( $entryManager->getFilterFields() as $field ): ?>
5
+ <th id="<?php echo $field['cssID'] ?>"><?php echo esc_html( $field['label'] ) ?></th>
6
+ <?php endforeach; ?>
7
+ </tr>
8
+ </thead>
9
+ </table>
admin/views/entry/edit-entry.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( isset( $_GET['entry_id'] ) ): ?>
2
+ <div id="smuzform-cont" class="entryEditorCont">
3
+
4
+ <nav class="navbar navbar-inverse mainnavbar">
5
+ <div class="container">
6
+ <div class="navbar-header">
7
+ <a class="navbar-brand">
8
+ <?php smuzform_translate_e( 'Entry View #'. intval($_GET['entry_id']) ) ?>
9
+ </a>
10
+
11
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
+ <li class="navBarActionsLi">
13
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms-entry&form_id='.intval($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Entry Manager <' ) ?></a>
14
+ </li>
15
+ </ul>
16
+
17
+
18
+ </div>
19
+
20
+
21
+ </div>
22
+ </nav>
23
+
24
+ <div class="container">
25
+ <div class="row entryEditorMainRow">
26
+
27
+ <div class="pull-left fieldDataEntryEditor">
28
+
29
+ <ul>
30
+ <?php
31
+ $entryFields = $entryManager->getEntry( intval( $_GET['entry_id'] ) );
32
+ foreach ( $entryFields as $key => $field ): ?>
33
+
34
+ <li class="fieldInfoCont">
35
+ <div class="fieldLabel">
36
+ <strong><?php esc_html_e( $field['label'] ) ?></strong>
37
+ </div>
38
+ <div class="fieldValue">
39
+
40
+ <?php if ( is_array( $field['value'] ) ): ?>
41
+
42
+ <?php if ( key( $field['value'] ) == 'name' ): ?>
43
+
44
+ <p> <span class="firstName"><?php esc_html_e( $field['value']['name']['firstName'] ) ?> </span><span class="lastName"><?php esc_html_e( $field['value']['name']['lastName'] ) ?></span> </p>
45
+ <?php elseif ( key( $field['value'] ) == 'address' ): ?>
46
+
47
+ <div class="addressFieldCont">
48
+
49
+ <dl class="dl-horizontal">
50
+ <dt><strong> Street Address 1: </strong></dt>
51
+
52
+ <dd><?php esc_html_e( $field['value']['address']['streetAddress'] ) ?></dd>
53
+
54
+ <dt><strong> Address 2: </strong></dt>
55
+
56
+ <dd><?php esc_html_e( $field['value']['address']['streetAddress2'] ) ?></dd>
57
+
58
+ <dt><strong> City: </strong></dt>
59
+
60
+ <dd><?php esc_html_e( $field['value']['address']['city'] ) ?></dd>
61
+
62
+ <dt><strong> State: </strong></dt>
63
+
64
+ <dd><?php esc_html_e( $field['value']['address']['state'] ) ?></dd>
65
+
66
+ <dt><strong> ZIP: </strong></dt>
67
+
68
+ <dd><?php esc_html_e( $field['value']['address']['zip'] ) ?></dd>
69
+
70
+ <dt><strong> Country: </strong></dt>
71
+
72
+ <dd><?php esc_html_e( $field['value']['address']['country'] ) ?></dd>
73
+
74
+ </dl>
75
+
76
+ </div>
77
+
78
+ <?php elseif ( key( $field['value'] ) == 'checkbox' ): ?>
79
+
80
+ <ol style="list-style-type: disc">
81
+ <?php foreach ( $field['value']['checkbox'] as $check ): ?>
82
+ <li>
83
+ <?php esc_html_e( $check ) ?>
84
+ </li>
85
+ <?php endforeach; ?>
86
+ <ol>
87
+
88
+ <?php elseif ( key( $field['value'] ) == 'fileupload' ): ?>
89
+ <?php
90
+
91
+ $path = $field['value']['fileupload']['path'];
92
+
93
+ $file_name = $field['value']['fileupload']['pathinfo']['basename'];
94
+
95
+ $directory = DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . basename( get_option( 'smuzform_upload_dir' ) ) . DIRECTORY_SEPARATOR . $entryManager->getId() . DIRECTORY_SEPARATOR;
96
+
97
+ $download_url = WP_CONTENT_URL . $directory . $file_name;
98
+
99
+ if ( empty( $path ) )
100
+ $download_url = '';
101
+
102
+ ?>
103
+
104
+ <p><strong>URL: </strong><code>
105
+ <?php esc_attr_e($download_url) ?>
106
+ </code></p>
107
+
108
+ <p><a <?php echo ( $download_url === '' ) ? 'disabled': '' ?> href="<?php esc_attr_e($download_url) ?>" class="button btn-primary">Download File</a></p>
109
+
110
+ <p class="message alert"><?php smuzform_translate_e('Do not share the download link in public. It can expose secure file upload directory location.') ?></p>
111
+ <?php endif; //endhere key check ?>
112
+
113
+ <?php else: ?>
114
+
115
+ <p><?php esc_html_e( $field['value'] ) ?></p>
116
+
117
+ <?php endif; //endhere array check ?>
118
+
119
+ </div>
120
+ </li>
121
+
122
+ <?php endforeach; ?>
123
+ </ul>
124
+ </div>
125
+
126
+ <div class="pull-right InfoContEntryEditor">
127
+
128
+ <?php do_action( 'smuzform_admin_edit_entry_rightcol', $entryManager->getId(), $entryManager ) ?>
129
+
130
+ <div id="formInfoContEntryEditor">
131
+ <h2><?php smuzform_translate_e( 'Form Information' ) ?></h2>
132
+ <h3><a href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.intval($_GET['form_id']) ); ?>"><?php esc_html_e( $entryManager->getTitle() ) ?></a></h3>
133
+ <p><?php esc_html_e( $entryManager->getDescription() ) ?></p>
134
+ </div>
135
+
136
+ <div id="UserInfoContEntryEditor">
137
+ <h2><?php smuzform_translate_e( 'User Information' ) ?></h2>
138
+
139
+ <?php
140
+ $userInfo = $entryManager->getEntryUserInfo( intval( $_GET['entry_id'] ) );
141
+
142
+ $userAgent = new phpUserAgentStringParser();
143
+
144
+ $userAgent = $userAgent->parse( $userInfo->user_agent );
145
+ ?>
146
+
147
+ <h4><?php smuzform_translate_e( "IP Address" ) ?></h4>
148
+ <p><strong><?php esc_html_e( $userInfo->user_ip ) ?></strong></p>
149
+
150
+ <h4><?php smuzform_translate_e( "Browser" ) ?></h4>
151
+ <p><strong><?php esc_html_e( ucfirst($userAgent['browser_name']) ) ?></strong></p>
152
+
153
+ <h4><?php smuzform_translate_e( "Operating System" ) ?></h4>
154
+ <p><strong><?php esc_html_e( ucfirst($userAgent['operating_system']) ) ?></strong></p>
155
+
156
+ <h4><?php smuzform_translate_e( "Location" ) ?></h4>
157
+ <p><strong id="userIpLocation"></strong></p>
158
+ <div id="userIpLocationMap"></div>
159
+
160
+ </div>
161
+
162
+ <?php do_action( 'smuzform_admin_edit_entry_rightcol_end', $entryManager->getId(), $entryManager ) ?>
163
+
164
+ </div>
165
+
166
+ </div>
167
+
168
+
169
+ </div>
170
+
171
+ <input type="hidden" id="hiddenUserIp" value="<?php esc_html_e( $userInfo->user_ip ) ?>" />
172
+
173
+ </div>
174
+ <?php endif; ?>
admin/views/entry/settings-page.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( ! isset( $_GET['entry_id'] ) ): ?>
2
+ <div id="smuzform-cont">
3
+
4
+ <nav class="navbar navbar-inverse mainnavbar">
5
+ <div class="container">
6
+ <div class="navbar-header">
7
+ <a class="navbar-brand">
8
+ <?php smuzform_translate_e( 'Entry Manager' ) ?>
9
+ </a>
10
+
11
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
+ <li class="navBarActionsLi">
13
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.intval($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
14
+ </li>
15
+ </ul>
16
+
17
+
18
+ </div>
19
+
20
+
21
+ </div>
22
+ </nav>
23
+
24
+ <div class="container">
25
+ <div class="row">
26
+
27
+ <div class="col-xs-3 contInfoCard formInfoCard">
28
+
29
+ <div class="contInfoInlineCont">
30
+ <h3><?php esc_html_e( $entryManager->getTitle() ) ?></h3>
31
+
32
+ <p><?php esc_html_e( $entryManager->getDescription() ) ?></p>
33
+ </div>
34
+
35
+ </div>
36
+
37
+ <?php do_action( 'smuzform_admin_entry_card_display', $entryManager->getId(), $entryManager ) ?>
38
+
39
+ <div class="col-xs-3 contInfoCard entryCountCard">
40
+ <div class="contInfoInlineCont">
41
+ <h3>No of Entries</h3>
42
+
43
+ <h4 id="entriesCountHeading"><?php echo $entryManager->getCount() ?></h4>
44
+ </div>
45
+ </div>
46
+
47
+ </div>
48
+
49
+ <div class="row">
50
+
51
+ <div id="entryDataGridCont">
52
+ <?php include smuzform_admin_view( 'entry/datatable.php' ) ?>
53
+ </div>
54
+
55
+ </div>
56
+ </div>
57
+
58
+
59
+ </div>
60
+
61
+ <?php else: ?>
62
+ <?php include smuzform_admin_view( 'entry/edit-entry.php' ) ?>
63
+ <?php endif; ?>
admin/views/forms-main.php ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <style>
2
+
3
+ .wp_smf_heading{
4
+ font-size: 23px;
5
+ font-weight: 400;
6
+ padding: 9px 15px 4px 0;
7
+ line-height: 29px;
8
+ float:left;
9
+ width: auto;
10
+ height: 0px;
11
+ }
12
+ .wp_smf_heading2{
13
+ font-size: 23px;
14
+ font-weight: 400;
15
+ padding: 0px 0px 4px 0;
16
+ line-height: 29px;
17
+ margin-left: -120px;
18
+ }
19
+ #slr_form_preview_box{
20
+ width:620px;
21
+ height: 360px;
22
+ margin-left: 20%;
23
+ background-color: gray;
24
+ }
25
+ .wp_smf_add_new_button{
26
+
27
+ margin-top: 29px;
28
+ margin-left: 0px;
29
+ padding: 4px 8px;
30
+ position: relative;
31
+ top: -3px;
32
+ text-decoration: none;
33
+ border: none;
34
+ -webkit-border-radius: 2px;
35
+ border-radius: 2px;
36
+ background: #e0e0e0;
37
+ text-shadow: none;
38
+ font-weight: 600;
39
+ font-size: 13px;
40
+ color: #0073aa;
41
+ -webkit-transition-property: border,background,color;
42
+ transition-property: border,background,color;
43
+ -webkit-transition-duration: .05s;
44
+ transition-duration: .05s;
45
+ -webkit-transition-timing-function: ease-in-out;
46
+ transition-timing-function: ease-in-out;
47
+ }
48
+ #wp_smf_form_preview{
49
+ text-align: center;
50
+ }
51
+ .wp_smf_add_new_button:hover{
52
+ background-color:#0073aa;
53
+ cursor: pointer;
54
+ color:white;
55
+ }
56
+ .wp_smf_heading_div{
57
+ display: block;
58
+ width: 100%;
59
+ height: 50px;
60
+
61
+
62
+
63
+
64
+ }
65
+ #smf_forms_table .header{
66
+ height: 28px;
67
+ position: relative;
68
+ line-height: 28px;
69
+ border-radius: 3px 3px 0 0;
70
+ font: normal normal bold 12px/29px Arial, serif;
71
+ background: #F1F1F1;
72
+ }
73
+ .wp_smf_delete_img{
74
+ width: 12px;
75
+
76
+ }
77
+ .wp_smf_edit_img{
78
+ width: 24px;
79
+
80
+ }
81
+ .wp_smf_preview_img{
82
+ width: 18px;
83
+
84
+ }
85
+ #smf_forms_table{
86
+ width: 97%;
87
+
88
+ border-spacing: 0px;
89
+ }
90
+ table a:link {
91
+
92
+ font-weight: bold;
93
+ text-decoration:none;
94
+ }
95
+ table a:visited {
96
+
97
+ font-weight:bold;
98
+ text-decoration:none;
99
+ }
100
+ table a:active,
101
+ table a:hover {
102
+
103
+ text-decoration:underline;
104
+ }
105
+ table {
106
+ font-family:Arial, Helvetica, sans-serif;
107
+ color:#666;
108
+ font-size:12px;
109
+ text-shadow: 1px 1px 0px #fff;
110
+ background:#eaebec;
111
+ margin-top:20px;
112
+ border:#ccc 1px solid;
113
+ width: 90%;
114
+ -moz-border-radius:3px;
115
+ -webkit-border-radius:3px;
116
+ border-radius:3px;
117
+
118
+ -moz-box-shadow: 0 1px 2px #d1d1d1;
119
+ -webkit-box-shadow: 0 1px 2px #d1d1d1;
120
+ box-shadow: 0 1px 2px #d1d1d1;
121
+ }
122
+ table th {
123
+ padding:15px 25px 15px 25px;
124
+ border-top:1px solid #fafafa;
125
+ border-bottom:1px solid #e0e0e0;
126
+
127
+ background: #ededed;
128
+ background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb));
129
+ background: -moz-linear-gradient(top, #ededed, #ebebeb);
130
+ }
131
+ table th:first-child{
132
+ text-align: left;
133
+ padding-left:20px;
134
+ }
135
+ table tr:first-child th:first-child{
136
+ -moz-border-radius-topleft:3px;
137
+ -webkit-border-top-left-radius:3px;
138
+ border-top-left-radius:3px;
139
+ }
140
+ table tr:first-child th:last-child{
141
+ -moz-border-radius-topright:3px;
142
+ -webkit-border-top-right-radius:3px;
143
+ border-top-right-radius:3px;
144
+ }
145
+ table tr{
146
+ text-align: center;
147
+ padding-left:20px;
148
+ }
149
+ table tr td:first-child{
150
+ text-align: left;
151
+ padding-left:20px;
152
+ border-left: 0;
153
+ }
154
+ table tr td {
155
+ padding:12px;
156
+ border-top: 1px solid #ffffff;
157
+ border-bottom:1px solid #e0e0e0;
158
+ border-left: 1px solid #e0e0e0;
159
+
160
+ background: #fafafa;
161
+ background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));
162
+ background: -moz-linear-gradient(top, #fbfbfb, #fafafa);
163
+ }
164
+ table tr .wp_smf_chkcx_width{
165
+ width:23px;
166
+ }
167
+ table tr .wp_smf_slides_width{
168
+ width:40px;
169
+ }
170
+ table tr .wp_smf_options_width{
171
+ width:50px;
172
+ }
173
+ table tr.even td{
174
+ background: #f6f6f6;
175
+ background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f6f6f6));
176
+ background: -moz-linear-gradient(top, #f8f8f8, #f6f6f6);
177
+ }
178
+ table tr:last-child td{
179
+ border-bottom:0;
180
+ }
181
+ table tr:last-child td:first-child{
182
+ -moz-border-radius-bottomleft:3px;
183
+ -webkit-border-bottom-left-radius:3px;
184
+ border-bottom-left-radius:3px;
185
+ }
186
+ table tr:last-child td:last-child{
187
+ -moz-border-radius-bottomright:3px;
188
+ -webkit-border-bottom-right-radius:3px;
189
+ border-bottom-right-radius:3px;
190
+ }
191
+ table tr:hover td{
192
+ background: #f2f2f2;
193
+ background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#f0f0f0));
194
+ background: -moz-linear-gradient(top, #f2f2f2, #f0f0f0);
195
+ }
196
+
197
+ .formtitle_link a strong{
198
+ color: #000;
199
+ }
200
+
201
+ #forms_page_cont *{
202
+ font-family: "Open Sans";
203
+ }
204
+ </style>
205
+ <div id="forms_page_cont">
206
+ <div id="wp_smf_heading_div" class="wp_smf_heading_div">
207
+ <h1 id="wp_smf_heading" class="wp_smf_heading">Forms</h1>
208
+ <input id="wp_smf_add_new_button" class="wp_smf_add_new_button" type="button" value="Add New" onclick="window.location = '<?php echo admin_url('admin.php?page=smuz-forms&new_post=1') ?>'">
209
+ </div>
210
+
211
+ <div>
212
+ <hr>
213
+ <table border="0" id="smf_forms_table">
214
+
215
+ <tr>
216
+ <th>Name</th>
217
+ <th>Fields</th>
218
+ <th>Shortcode</th>
219
+ <th>Created</th>
220
+ <th>Options</th>
221
+ </tr>
222
+
223
+ <?php $forms = smuzform_get_forms(); $even_odd = true; ?>
224
+
225
+ <?php foreach ( $forms as $form ): $tmpForm = new SmuzForm_Form( $form->ID ) ?>
226
+
227
+ <tr class='<?php if ( $even_odd ) echo 'even'; else echo 'odd'; ?>'>
228
+
229
+ <td><a class="formtitle_link" href="<?php echo admin_url('admin.php?page=smuz-forms&form_id=' . $form->ID ) ?>"><strong><?php echo get_the_title( $form->ID ) ?></strong></a></td>
230
+
231
+ <td class="wp_smf_slides_width"><?php echo count( $tmpForm->getFields() ) ?></td>
232
+ <td id="wpsmfshortcodecopy">[sform id='<?php echo $form->ID ?>']</td>
233
+ <td><?php echo get_the_date( 'l, F j, Y', $form->ID ); ?></td>
234
+ <td class="wp_smf_options_width">
235
+ <a id="slr_edit_form" href="#">
236
+ <img alt="Edit" onclick="window.location='<?php echo admin_url('admin.php?page=smuz-forms&form_id=' . $form->ID ) ?>'" class="wp_smf_edit_img" src="<?php echo smuzform_admin_asset( 'img/wp_smf_edit_form_img.png' ) ?>" />
237
+ </a>/
238
+ <a id="slr_delete_form" href="#">
239
+
240
+ <img alt="Delete" class="wp_smf_delete_img" data-id="<?php echo intval($form->ID) ?>" src="<?php echo smuzform_admin_asset( 'img/wp_smf_delete_form_img.png' ) ?>" />
241
+ </a>
242
+
243
+ </td>
244
+ </tr>
245
+
246
+ <?php if ( $even_odd ) $even_odd = false; else $even_odd = true;
247
+ endforeach; ?>
248
+
249
+ <?php if ( ! $forms ) : ?>
250
+
251
+ <div id="noSlidesMessage" style="text-align: center">
252
+ <h3>
253
+ No forms. Click the + <a href="<?php echo admin_url('admin.php?page=smuz-forms&new_post=1') ?>">Add New</a> to create your first form.
254
+ </h3>
255
+ </div>
256
+
257
+ <?php endif; ?>
258
+
259
+ </table>
260
+ </div>
261
+
262
+ </div>
263
+ <br />
264
+ <p class="description">*Enter the shortcode in your post or page content editor to display the form.</p>
265
+
266
+ <script>
267
+ jQuery('.wp_smf_delete_img').click(function() {
268
+
269
+ id = jQuery(this).data('id');
270
+
271
+ url = '<?php echo admin_url() ?>' + 'admin.php?page=smuz-forms-main&action=delete_form&post_id=' + id;
272
+
273
+ if ( confirm( 'Are you sure you want to remove this form ? ' ) ) {
274
+
275
+ window.location = url;
276
+
277
+ }
278
+
279
+
280
+ });
281
+ </script>
admin/views/index.php ADDED
File without changes
admin/views/notification/backbone/add-new.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="addNewNotification-template">
2
+
3
+ <div class="row">
4
+
5
+ <div class="col-lg-6 col-lg-offset-2">
6
+
7
+ <div id="notificationTypeSelectCont" class="form-group">
8
+ <label for="notificationTypeSelect"><?php smuzform_translate_e( 'Set Type ' ) ?></label>
9
+ <select id="notificationTypeSelect">
10
+ <option value="email"><?php smuzform_translate_e( 'Email' ) ?></option>
11
+ <option value="confirmationEmail"><?php smuzform_translate_e( 'Confirmation Email / AutoResponder' ) ?></option>
12
+ </select>
13
+ </div>
14
+
15
+ <div id="addNewNotificationButtonCont">
16
+ <a id="addNewNotificationButton" class="button button-primaryNot" role="button">Add New</a>
17
+ <a id="saveNotificationButton" class="button button-primaryNot" role="button">Save Changes</a>
18
+ </div>
19
+
20
+ </div>
21
+
22
+
23
+
24
+ </div>
25
+
26
+ </script>
admin/views/notification/backbone/collection.php ADDED
@@ -0,0 +1,230 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/template" id="notificationCollectionView-template">
2
+
3
+ <% if ( type === 'email' ) { %>
4
+
5
+ <div class="panel-group" id="accordion" role="tablist">
6
+
7
+ <div class="panel panel-default">
8
+ <div class="panel-heading" role="tab" id="heading<%= uniqID %>">
9
+ <span class="glyphicon glyphicon-remove-circle pull-right removeNotification"></span>
10
+ <h4 class="panel-title">
11
+ <a role="button" data-toggle="collapse" data-parent="#accordion" href="#<%= uniqID %>">
12
+ <%= label %>
13
+ </a>
14
+ </h4>
15
+ </div>
16
+ <div id="<%= uniqID %>" class="panel-collapse collapse" role="tabpanel">
17
+ <div class="panel-body">
18
+
19
+ <form onsubmit="return false;">
20
+
21
+ <legend>
22
+ <h4><?php smuzform_translate_e( 'Configure Email Notification' ) ?></h4>
23
+ <p class="description"><?php smuzform_translate_e( 'Receive an email when someone fills your form.' ) ?></p>
24
+ </legend>
25
+
26
+ <fieldset>
27
+
28
+ <div class="form-group">
29
+
30
+ <label for="notificationLabel"><?php smuzform_translate_e( 'Label' ) ?></label>
31
+
32
+ <input class="form-control" type="text" value="<%- label %>" id="notificationLabel" />
33
+
34
+ <small>Set it to unique so you can manage and find multiple notifications easily.</small>
35
+
36
+ </div>
37
+
38
+ <div class="form-inline">
39
+ <div class="form-group">
40
+
41
+ <label class="control-label inlineLabel" for="emailSenderName"><?php smuzform_translate_e( 'Sender Name' ) ?></label>
42
+
43
+ <input id="emailSenderName" type="text" class="form-control inlineField" value="<%= extraData.fromText %>" />
44
+
45
+ </div>
46
+
47
+ <div class="form-group">
48
+
49
+ <label class="control-label inlineLabel" for="emailSenderAddress"><?php smuzform_translate_e( 'Send Email To' ) ?></label>
50
+
51
+ <% if ( extraData.emailAddress == '' ) { %>
52
+ <input id="emailSenderAddress" type="text" class="form-control inlineField" value="<?php echo get_option('admin_email') ?>" />
53
+ <% } else { %>
54
+ <input id="emailSenderAddress" type="text" class="form-control inlineField" value="<%= extraData.emailAddress %>" />
55
+ <% } %>
56
+
57
+ </div>
58
+
59
+ <div class="form-group">
60
+
61
+ <label class="control-label inlineLabel" for="emailReplyToEmail"><?php smuzform_translate_e( 'Reply-To' ) ?></label>
62
+
63
+ <input id="emailReplyToEmail" type="text" class="form-control inlineField" value="<%= extraData.replyToEmail %>" />
64
+ <p class="help-block"><strong>Format:</strong> Name &ltemailAddress&gt</p>
65
+
66
+ </div>
67
+
68
+ <div class="form-group">
69
+
70
+ <label class="control-label inlineLabel" for="emailSubject"><?php smuzform_translate_e( 'Subject' ) ?></label>
71
+
72
+ <input id="emailSubject" type="text" class="form-control inlineField" value="<%= extraData.subject %>" />
73
+
74
+ </div>
75
+ </div>
76
+
77
+ <div class="form-group">
78
+
79
+ <div class="checkbox">
80
+ <label><input type="checkbox" id="emailUseHTML" <% if ( extraData.useHTML ) { %> <%= 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Send HTML Emails' ) ?></label>
81
+ </div>
82
+
83
+ </div>
84
+
85
+ <div class="form-group">
86
+
87
+ <label for="emailTemplate"><?php smuzform_translate_e( 'Template Editor' ) ?></label>
88
+
89
+ <p>
90
+ <small>Use<code>[smfield print="all"]</code> to add all fields data and labels in template. You can replace the <code>all</code> with field label to only display specific field value.</small></p>
91
+
92
+ <textarea rows="12" class="form-control" id="emailTemplate"><%= extraData.template %></textarea>
93
+
94
+ </div>
95
+
96
+ <div class="form-group">
97
+ <?php include smuzform_admin_view( 'notification/backbone/rule-builder.php' ); ?>
98
+ </div>
99
+
100
+ </fieldset>
101
+
102
+ </form>
103
+
104
+ </div>
105
+ </div>
106
+ </div>
107
+
108
+ <% } %>
109
+
110
+ <% if ( type === 'confirmationEmail' ) { %>
111
+
112
+ <div class="panel-group" id="accordion" role="tablist">
113
+
114
+ <div class="panel panel-default">
115
+ <div class="panel-heading" role="tab" id="heading<%= uniqID %>">
116
+ <span class="glyphicon glyphicon-remove-circle pull-right removeNotification"></span>
117
+ <h4 class="panel-title">
118
+ <a role="button" data-toggle="collapse" data-parent="#accordion" href="#<%= uniqID %>">
119
+ <%= label %>
120
+ </a>
121
+ </h4>
122
+ </div>
123
+ <div id="<%= uniqID %>" class="panel-collapse collapse" role="tabpanel">
124
+ <div class="panel-body">
125
+
126
+ <form onsubmit="return false;">
127
+
128
+ <legend>
129
+ <h4><?php smuzform_translate_e( 'Configure Email Notification' ) ?></h4>
130
+ <p class="description"><?php smuzform_translate_e( 'Send Confirmation email to the user who filled form.' ) ?></p>
131
+ </legend>
132
+
133
+ <fieldset>
134
+
135
+ <div class="form-group">
136
+
137
+ <label for="notificationLabel"><?php smuzform_translate_e( 'Label' ) ?></label>
138
+
139
+ <input class="form-control" type="text" value="<%- label %>" id="notificationLabel" />
140
+
141
+ <small>Set it to unique so you can manage and find multiple notifications easily.</small>
142
+
143
+ </div>
144
+
145
+ <div class="pull-left">
146
+
147
+ <div class="form-group">
148
+
149
+ <label class="control-label inlineLabel" for="emailSenderAddress"><?php smuzform_translate_e( 'Send Email To' ) ?></label>
150
+
151
+ <select id="emailSenderAddress" class="form-control">
152
+ <?php foreach( $notificationManager->getFilterFields() as $field ): ?>
153
+ <?php if ( $field['type'] === 'email' ): ?>
154
+ <option value="<?php echo esc_attr( $field['cssID'] ) ?>" <% if ( extraData.emailAddress === '<?php echo esc_js( $field['cssID'] ) ?>' ) { %> <%- 'selected' %> <% } %>><?php echo esc_attr( $field['label'] ) ?></option>
155
+ <?php endif; ?>
156
+ <?php endforeach; ?>
157
+ </select>
158
+ <p class="help-block"><?php smuzform_translate_e( 'Your form must have an email field.' ) ?></p>
159
+
160
+
161
+ </div>
162
+
163
+ <div class="form-group">
164
+
165
+ <label class="control-label inlineLabel" for="emailSenderName"><?php smuzform_translate_e( 'Your Name' ) ?></label>
166
+
167
+ <input id="emailSenderName" type="text" class="form-control inlineField" value="<%= extraData.fromText %>" />
168
+
169
+ </div>
170
+
171
+
172
+
173
+ <div class="form-group">
174
+
175
+ <label class="control-label inlineLabel" for="emailReplyToEmail"><?php smuzform_translate_e( 'Reply-To' ) ?></label>
176
+
177
+ <input id="emailReplyToEmail" type="email" class="form-control inlineField" value="<%= extraData.replyToEmail %>" />
178
+ <p class="help-block"></p>
179
+
180
+ </div>
181
+
182
+ <div class="form-group">
183
+
184
+ <label class="control-label inlineLabel" for="emailSubject"><?php smuzform_translate_e( 'Subject' ) ?></label>
185
+
186
+ <input id="emailSubject" type="text" class="form-control inlineField" value="<%= extraData.subject %>" />
187
+
188
+ </div>
189
+ </div>
190
+
191
+ <div class="form-group">
192
+
193
+
194
+
195
+ </div>
196
+
197
+ <div class="form-group pull-right" id="emailRightSidebarCont">
198
+
199
+ <div class="checkbox">
200
+ <label><input type="checkbox" id="emailUseHTML" <% if ( extraData.useHTML ) { %> <%= 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Send HTML Emails' ) ?></label>
201
+ </div>
202
+
203
+ <label for="emailTemplate"><?php smuzform_translate_e( 'Message' ) ?></label>
204
+
205
+ <p>
206
+ <small>Use<code>[smfield print="replaceWithFieldLabel"]</code> to display specific field value. Do not use print <code>all</code> when sending confirmation emails.</small></p>
207
+
208
+ <textarea spellcheck="false" rows="10" class="form-control" id="emailTemplate"><%= extraData.template %></textarea>
209
+
210
+ </div>
211
+
212
+ <br style="clear: both" />
213
+
214
+ <div class="form-group">
215
+ <?php include smuzform_admin_view( 'notification/backbone/rule-builder.php' ); ?>
216
+ </div>
217
+
218
+ </fieldset>
219
+
220
+ </form>
221
+
222
+ </div>
223
+ </div>
224
+ </div>
225
+
226
+ <% } %>
227
+
228
+ </div>
229
+
230
+ </script>
admin/views/notification/backbone/rule-builder.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#rules<%= uniqID %>">
6
+ <?php smuzform_translate_e( 'Conditional Logic' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="rules<%= uniqID %>" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div id="ruleBuilderCont">
14
+
15
+ <div class="checkbox">
16
+ <label><input type="checkbox" id="enableConditionalLogic" <% if ( ruleEnabled === true ) { %> <%- 'checked' %> <% } %> /> <?php smuzform_translate_e( 'Enable' ) ?></label></div>
17
+
18
+ <ul id="rules">
19
+
20
+ <li>
21
+
22
+ <div class="rule">
23
+
24
+ <div class="ruleInlineCont">
25
+ <strong>If</strong>
26
+
27
+ <select id="ruleFields">
28
+ <option value="">Select a field</option>
29
+ <?php foreach( $notificationManager->getFilterFields() as $field ): ?>
30
+
31
+
32
+
33
+ <?php if ( $field['type'] !== 'address' && $field['type'] !== 'sectionbreak' && $field['type'] !== 'name' && $field['type'] !== 'fileupload' && $field['type'] !== 'checkbox' && $field['type'] !== 'customText' && $field['type'] !== 'customHtml' && $field['type'] !== 'customImage' && $field['type'] !== 'customLink' ) : ?>
34
+
35
+ <option <% if ( rules.field === '<?php echo esc_js( $field['cssID'] ) ?>' ) { %> <%- 'selected' %> <% } %> value="<?php echo esc_js( $field['cssID'] ) ?>"><?php echo esc_html( $field['label'] ) ?></option>
36
+
37
+
38
+
39
+ <?php endif; ?>
40
+
41
+ <?php endforeach; ?>
42
+
43
+ </select>
44
+
45
+ <select id="ruleFieldOperator">
46
+
47
+ <option <% if ( rules.operator === 'is' ) { %> <%- 'selected' %> <% } %> value="is">Is</option>
48
+ <option <% if ( rules.operator === 'isNot' ) { %> <%- 'selected' %> <% } %> value="isNot">Is not</option>
49
+
50
+ </select>
51
+ </div>
52
+
53
+ <div class="ruleInlineCont">
54
+ <input type="text" value="<%- rules.cmpValue %>" id="ruleFieldLogicValue" placeholder="Enter comparison value" />
55
+
56
+ <select id="ruleFieldAction">
57
+
58
+ <option <% if ( rules.action === 'send' ) { %> <%- 'selected' %> <% } %> value="send">Send</option>
59
+ <option <% if ( rules.action === 'stop' ) { %> <%- 'selected' %> <% } %> value="stop">Don't Send</option>
60
+
61
+ </select>
62
+ </div>
63
+
64
+
65
+ </div>
66
+
67
+ </li>
68
+
69
+ </ul>
70
+
71
+ </div>
72
+
73
+ </div>
74
+
75
+ <div class="panel-footer">
76
+
77
+ </div>
78
+
79
+ </div>
80
+ </div>
81
+ </div>
admin/views/notification/confirmation-email/html-message.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title><?php echo esc_html( $notification['extraData']['subject'] ) ?></title>
7
+
8
+
9
+ <style type="text/css">
10
+ img {
11
+ max-width: 100%;
12
+ }
13
+ body {
14
+ -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;
15
+ }
16
+ body {
17
+ background-color: #f6f6f6;
18
+ }
19
+ @media only screen and (max-width: 640px) {
20
+ body {
21
+ padding: 0 !important;
22
+ }
23
+ h1 {
24
+ font-weight: 800 !important; margin: 20px 0 5px !important;
25
+ }
26
+ h2 {
27
+ font-weight: 800 !important; margin: 20px 0 5px !important;
28
+ }
29
+ h3 {
30
+ font-weight: 800 !important; margin: 20px 0 5px !important;
31
+ }
32
+ h4 {
33
+ font-weight: 800 !important; margin: 20px 0 5px !important;
34
+ }
35
+ h1 {
36
+ font-size: 22px !important;
37
+ }
38
+ h2 {
39
+ font-size: 18px !important;
40
+ }
41
+ h3 {
42
+ font-size: 16px !important;
43
+ }
44
+ .container {
45
+ padding: 0 !important; width: 100% !important;
46
+ }
47
+ .content {
48
+ padding: 0 !important;
49
+ }
50
+ .content-wrap {
51
+ padding: 10px !important;
52
+ }
53
+ .invoice {
54
+ width: 100% !important;
55
+ }
56
+ }
57
+ </style>
58
+ </head>
59
+
60
+ <body itemscope itemtype="http://schema.org/EmailMessage" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
61
+
62
+ <table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
63
+ <td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
64
+ <div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
65
+ <table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td class="content-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" valign="top">
66
+ <meta itemprop="name" content="Confirm Email" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" /><table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
67
+ <?php echo $message; ?>
68
+ </td>
69
+ </tr></table></td>
70
+ </tr></table><div class="footer" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
71
+ </div></div>
72
+ </td>
73
+ <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
74
+ </tr></table></body>
75
+ </html>
admin/views/notification/emails/all-fields.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php foreach( $entry_data as $key => $data ): ?>
2
+
3
+ <?php
4
+
5
+ $label = esc_attr( $data['label'] );
6
+
7
+ $value = $data['value'];
8
+
9
+ if ( ! is_array( $value ) ) {
10
+
11
+ $value = esc_attr( $data['value'] );
12
+
13
+ echo "$label: $value" . "\r\n";
14
+
15
+ } else if ( key( $value ) === 'name' ) {
16
+
17
+ $firstName = esc_attr( $value['name']['firstName'] );
18
+
19
+ $lastName = esc_attr( $value['name']['lastName'] );
20
+
21
+ echo "First Name: $firstName" . "\r\n" . "\r\n";
22
+
23
+ echo "Last Name: $lastName" . "\r\n";
24
+
25
+ } else if ( key( $value ) === 'address' ) {
26
+
27
+ echo esc_attr( $label ) . ": \r\n";
28
+ echo esc_attr( $value['address']['streetAddress'] ) . "\r\n";
29
+ echo esc_attr( $value['address']['streetAddress2'] ) . "\r\n";
30
+ echo esc_attr( $value['address']['city'] ) . "\r\n";
31
+ echo esc_attr( $value['address']['state'] ) . "\r\n";
32
+ echo esc_attr( $value['address']['zip'] ) . "\r\n";
33
+ echo esc_attr( $value['address']['country'] ) . "\r\n";
34
+
35
+ } else if ( key( $value ) === 'checkbox' ) {
36
+
37
+ echo esc_attr( $label ) . ": \r\n";
38
+
39
+ foreach ( $value['checkbox'] as $check ) {
40
+ echo esc_attr( $check ) . "\r\n";
41
+ }
42
+
43
+
44
+ }
45
+
46
+
47
+
48
+ ?>
49
+
50
+ <?php endforeach; ?>
admin/views/notification/emails/html/all.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php foreach( $entry_data as $key => $data ): ?>
2
+ <table cellspacing="0" cellpadding="0" width="100%">
3
+ <tr>
4
+ <td>
5
+ <b style="font-size: 18px"><?php echo esc_html( $data['label'] ) ?></b>
6
+ </td>
7
+
8
+ </tr>
9
+ <tr>
10
+ <td class="border-bottom" height="5" style="border-bottom: 1px solid #ddd;"></td>
11
+
12
+ </tr>
13
+ <tr>
14
+ <td style="padding-top:5px;">
15
+ <p><?php
16
+ $value = $data['value'];
17
+
18
+ if ( ! is_array( $value ) ) {
19
+
20
+ echo esc_html( $value );
21
+
22
+ } else if ( key( $value ) === 'name' ) {
23
+
24
+ $firstName = esc_attr( $value['name']['firstName'] );
25
+
26
+ $lastName = esc_attr( $value['name']['lastName'] );
27
+
28
+ echo "<b>First Name: </b> $firstName" . '<br />';
29
+
30
+ echo "<b>Last Name: </b> $lastName" . '<br />';
31
+
32
+ } else if ( key( $value ) === 'address' ) {
33
+
34
+
35
+ echo esc_attr( $value['address']['streetAddress'] ) . '<br />';
36
+ echo esc_attr( $value['address']['streetAddress2'] ) . '<br />';
37
+ echo esc_attr( $value['address']['city'] ) . '<br />';
38
+ echo esc_attr( $value['address']['state'] ) . '<br />';
39
+ echo esc_attr( $value['address']['zip'] ) . '<br />';
40
+ echo esc_attr( $value['address']['country'] ) . '<br />';
41
+
42
+ } else if ( key( $value ) === 'checkbox' ) {
43
+
44
+ include smuzform_admin_view( 'notification/emails/single-checkbox.php' );
45
+
46
+
47
+ }
48
+
49
+ ?></p>
50
+ </td>
51
+ </tr>
52
+ </table>
53
+ <?php endforeach; ?>
admin/views/notification/emails/html/html-message.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width" />
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title><?php echo esc_html( $notification['extraData']['subject'] ) ?></title>
7
+
8
+
9
+ <style type="text/css">
10
+ img {
11
+ max-width: 100%;
12
+ }
13
+ body {
14
+ -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;
15
+ }
16
+ body {
17
+ background-color: #f6f6f6;
18
+ }
19
+ @media only screen and (max-width: 640px) {
20
+ body {
21
+ padding: 0 !important;
22
+ }
23
+ h1 {
24
+ font-weight: 800 !important; margin: 20px 0 5px !important;
25
+ }
26
+ h2 {
27
+ font-weight: 800 !important; margin: 20px 0 5px !important;
28
+ }
29
+ h3 {
30
+ font-weight: 800 !important; margin: 20px 0 5px !important;
31
+ }
32
+ h4 {
33
+ font-weight: 800 !important; margin: 20px 0 5px !important;
34
+ }
35
+ h1 {
36
+ font-size: 22px !important;
37
+ }
38
+ h2 {
39
+ font-size: 18px !important;
40
+ }
41
+ h3 {
42
+ font-size: 16px !important;
43
+ }
44
+ .container {
45
+ padding: 0 !important; width: 100% !important;
46
+ }
47
+ .content {
48
+ padding: 0 !important;
49
+ }
50
+ .content-wrap {
51
+ padding: 10px !important;
52
+ }
53
+ .invoice {
54
+ width: 100% !important;
55
+ }
56
+ }
57
+ </style>
58
+ </head>
59
+
60
+ <body itemscope itemtype="http://schema.org/EmailMessage" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
61
+
62
+ <table class="body-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
63
+ <td class="container" width="600" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" valign="top">
64
+ <div class="content" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;">
65
+ <table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td class="content-wrap" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" valign="top">
66
+ <meta itemprop="name" content="Confirm Email" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" /><table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td class="content-block" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
67
+ <?php echo $message; ?>
68
+ </td>
69
+ </tr><tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"><td class="content-block" itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
70
+ <a href="<?php echo admin_url( 'admin.php?page=smuz-forms-entry&form_id='.intval($this->getId()).'&entry_id='.intval($entry_id ) ) ?>" class="btn-primary" itemprop="url" style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2em; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; text-transform: capitalize; background-color: #348eda; margin: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px;"><?php echo smuzform_translate_e( 'View Entry' ) ?></a>
71
+ </td>
72
+ </tr></table></td>
73
+ </tr></table></div>
74
+ </td>
75
+ <td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
76
+ </tr></table></body>
77
+ </html>
admin/views/notification/emails/single-checkbox.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <ol style="list-style-type: disc">
2
+ <?php foreach ( $value['checkbox'] as $check ): ?>
3
+ <li>
4
+ <?php esc_html_e( $check ) ?>
5
+ </li>
6
+ <?php endforeach; ?>
7
+ <ol>
admin/views/notification/emails/single.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! is_array( $field['value'] ) ) {
4
+
5
+ $value = esc_attr( $field['value'] );
6
+
7
+ echo $value;
8
+
9
+ }
10
+
11
+ if ( is_array( $field['value'] ) ) {
12
+
13
+ $value = $field['value'];
14
+
15
+ if ( key( $value ) === 'name' ) {
16
+
17
+ if ( ! $atts['adt'] ) {
18
+
19
+ echo esc_attr( $value['name']['firstName'] ) . ' ' . esc_attr( $value['name']['lastName'] );
20
+ }
21
+
22
+ if ( mb_strtolower( $atts['adt'] ) === 'first' || mb_strtolower( $atts['adt'] ) === 'firstname' ) {
23
+ echo esc_attr( $value['name']['firstName'] );
24
+ }
25
+
26
+ if ( mb_strtolower( $atts['adt'] ) === 'last' || mb_strtolower( $atts['adt'] ) === 'lastname' ) {
27
+ echo esc_attr( $value['name']['lastName'] );
28
+ }
29
+
30
+
31
+ } else if ( key( $value ) === 'address' ) {
32
+
33
+ $atts['adt'] = mb_strtolower( $atts['adt'] );
34
+
35
+ if ( $atts['adt'] === 'address1' || $atts['adt'] === 'streetaddress' || $atts['adt'] === 'streetaddress1')
36
+ echo esc_attr( $value['address']['streetAddress'] );
37
+
38
+ if ( $atts['adt'] === 'address2' || $atts['adt'] === 'streetaddress2' || $atts['adt'] === 'streetaddress2')
39
+ echo esc_attr( $value['address']['streetAddress2'] );
40
+
41
+ if ( $atts['adt'] === 'city' )
42
+ echo esc_attr( $value['address']['city'] );
43
+
44
+ if ( $atts['adt'] === 'state' )
45
+ echo esc_attr( $value['address']['state'] );
46
+
47
+ if ( $atts['adt'] === 'zip' )
48
+ echo esc_attr( $value['address']['zip'] );
49
+
50
+ if ( $atts['adt'] === 'country' )
51
+ echo esc_attr( $value['address']['country'] );
52
+
53
+ if ( ! $atts['adt'] && ! $atts['useHTML'] ) {
54
+ echo esc_attr( $value['address']['streetAddress'] ) . "\r\n";
55
+ echo esc_attr( $value['address']['streetAddress2'] ) . "\r\n";
56
+ echo esc_attr( $value['address']['city'] ) . "\r\n";
57
+ echo esc_attr( $value['address']['state'] ) . "\r\n";
58
+ echo esc_attr( $value['address']['zip'] ) . "\r\n";
59
+ echo esc_attr( $value['address']['country'] ) . "\r\n";
60
+ }
61
+
62
+ } else if ( key( $value ) === 'checkbox' ) {
63
+
64
+ if ( $atts['useHTML'] ) {
65
+
66
+ include smuzform_admin_view( 'notification/emails/single-checkbox.php' );
67
+
68
+ } else {
69
+
70
+ foreach ( $value['checkbox'] as $check ) {
71
+ echo esc_attr( $check ) . "\r\n";
72
+ }
73
+
74
+ }
75
+
76
+ }
77
+
78
+ }
79
+
80
+ ?>
admin/views/notification/settings-page.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smuzform-cont">
2
+
3
+ <nav class="navbar navbar-inverse mainnavbar">
4
+ <div class="container">
5
+ <div class="navbar-header">
6
+ <a class="navbar-brand">
7
+ <?php smuzform_translate_e( 'Notification Manager' ) ?>
8
+ </a>
9
+
10
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
11
+ <li class="navBarActionsLi">
12
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.intval($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
13
+ </li>
14
+ </ul>
15
+
16
+
17
+ </div>
18
+
19
+
20
+ </div>
21
+ </nav>
22
+
23
+ <div class="container">
24
+
25
+ <div id="addNewNotificationEL"></div>
26
+
27
+ <div id="notificationCollectionCont"></div>
28
+
29
+ <?php do_action( 'smuzform_notification_manager_add' ) ?>
30
+
31
+ </div>
32
+
33
+
34
+ </div>
35
+
36
+ <?php include smuzform_admin_view( 'notification/backbone/add-new.php' ) ?>
37
+
38
+ <?php include smuzform_admin_view( 'notification/backbone/collection.php' ) ?>
admin/views/settings-page.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smuzform-cont">
2
+
3
+ <nav class="navbar navbar-inverse mainnavbar">
4
+ <div class="container">
5
+ <div class="navbar-header">
6
+ <a class="navbar-brand" href="<?php echo admin_url( 'admin.php?page=smuz-forms-main' ) ?>">
7
+ <?php smuzform_translate_e( 'WP Forms' ) ?>
8
+ </a>
9
+
10
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont"></ul>
11
+
12
+
13
+ </div>
14
+
15
+
16
+ </div>
17
+ </nav>
18
+
19
+ <div class="container">
20
+ <div class="row">
21
+
22
+ <!-- Form Elements and Settings -->
23
+
24
+ <div class="col-lg-4 smuzform-settings">
25
+
26
+ <ul class="nav nav-tabs">
27
+
28
+ <li class="active">
29
+ <a data-toggle="tab" href="#tab-fields">
30
+ <?php smuzform_translate_e( 'Add Field' ) ?>
31
+ </a>
32
+ </li>
33
+
34
+ <li>
35
+ <a data-toggle="tab" href="#tab-field-settings">
36
+ <?php smuzform_translate_e( 'Field Settings' ) ?>
37
+ </a>
38
+ </li>
39
+
40
+ <li>
41
+ <a data-toggle="tab" href="#tab-form-settings">
42
+ <?php smuzform_translate_e( 'Form Settings' ) ?>
43
+ </a>
44
+ </li>
45
+
46
+ </ul>
47
+
48
+ <?php include smuzform_admin_view( 'settings-tabs.php' ) ?>
49
+
50
+ </div>
51
+
52
+ <!-- end -->
53
+
54
+ <!-- Form Preview and View !-->
55
+
56
+ <div class="col-md-6 smuzform-preview">
57
+
58
+ <?php include smuzform_admin_view( 'settings-preview.php' ) ?>
59
+
60
+ </div>
61
+
62
+ <!-- end !-->
63
+
64
+ </div>
65
+ </div>
66
+
67
+
68
+ </div>
69
+ <div id="serverModalCont">
70
+ <p id="serverModalMessage"></p>
71
+ </div>
72
+
73
+ <?php if ( isset( $_GET['form_id'] ) ): $form_id = intval( $_GET['form_id'] ) ?>
74
+
75
+ <?php if ( get_post_status( $form_id ) === 'publish' ): ?>
76
+ <script> window.smuz_formid = <?php echo $form_id ?>; </script>
77
+ <?php endif; ?>
78
+
79
+ <?php endif; ?>
admin/views/settings-preview.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="inline-preview-cont">
2
+
3
+ <form id="formCont" role="form">
4
+
5
+ <fieldset>
6
+
7
+ <div id="formPreviewCont"></div>
8
+
9
+
10
+
11
+ <ul id="formFieldsCont"></ul>
12
+
13
+ </fieldset>
14
+
15
+ </form>
16
+
17
+ <div class="center-block">
18
+
19
+ <p class="alert alert-info hidden">
20
+ <?php smuzform_translate_e( '+ No Fields - Add new Fields From Fields List' ) ?>
21
+ </p>
22
+
23
+ </div>
24
+
25
+ <?php if ( isset( $_GET['form_id'] ) ): ?>
26
+
27
+ <div class="saveFormBtn">
28
+ <a class="button btn-primary btn-large" id="saveForm">Save Form</a>
29
+ </div>
30
+
31
+ <?php else: ?>
32
+
33
+ <div class="createFormBtn">
34
+ <a class="button btn-primary btn-large" id="saveForm">Create Form</a>
35
+ </div>
36
+
37
+ <?php endif; ?>
38
+
39
+ <?php include smuzform_admin_view( 'backbone-views.php' ) ?>
40
+
41
+ </div>
admin/views/settings-tabs.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="tab-content">
2
+
3
+ <div id="tab-fields" class="tab-pane active">
4
+ <?php include smuzform_admin_view( 'tab-fields.php' ) ?>
5
+ </div>
6
+
7
+ <div id="tab-field-settings" class="tab-pane">
8
+ <?php include smuzform_admin_view( 'tab-field-settings.php' ) ?>
9
+ </div>
10
+
11
+ <div id="tab-form-settings" class="tab-pane">
12
+ <?php include smuzform_admin_view( 'tab-form-settings.php' ) ?>
13
+ </div>
14
+
15
+ </div>
admin/views/style/backbone/form-preview.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2 style="color: #337ab7; display: none">Live Preview</h2>
2
+
3
+ <div id="inline-preview-cont">
4
+
5
+ <form id="formCont" role="form">
6
+
7
+ <fieldset>
8
+
9
+ <div id="formPreviewCont"></div>
10
+
11
+
12
+
13
+ <ul id="formFieldsCont"></ul>
14
+
15
+ </fieldset>
16
+
17
+ <div id="submitBtnCont"></div>
18
+
19
+ </form>
20
+
21
+
22
+ </div>
23
+
24
+ <script type="text/template" id="formPreview-template">
25
+ <!-- Form Name -->
26
+ <legend>
27
+
28
+ <h3 class="form-title">
29
+ <%= title %>
30
+ </h3>
31
+
32
+ <div class="form-description">
33
+ <p>
34
+ <%= description %>
35
+ </p>
36
+ </div>
37
+
38
+ </legend>
39
+ </script>
40
+
41
+ <script type="text/template" id="formSubmitBtn-template">
42
+ <input onclick="return false;" type="submit" id="formSubmitBtn" value="<%- submitBtnText %>" />
43
+ </script>
44
+
45
+ <?php include smuzform_admin_view( 'backbone/form-fields-preview.php' ) ?>
admin/views/style/backbone/form-style.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="formStyleCont"></div>
2
+
3
+ <script type="text/template" id="formStyle-template">
4
+
5
+ <div class="form-group">
6
+ <div class="checkbox">
7
+ <label><input type="checkbox" id="styleEnabled" <% if ( enabled ) { %> <%- 'checked' %> <% } %> > <?php smuzform_translate_e( 'Enabled' ) ?></label>
8
+ </div>
9
+ <p class="description"><?php smuzform_translate_e( 'If disabled most of the form styling will be inherited from your current WP theme.' ) ?></p>
10
+ </div>
11
+
12
+ <?php include smuzform_admin_view( 'style/backbone/incsettings.php' ) ?>
13
+
14
+ </script>
admin/views/style/backbone/incsettings.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ include smuzform_admin_view( 'style/backbone/settings/cont.php' );
4
+
5
+ include smuzform_admin_view( 'style/backbone/settings/heading.php' );
6
+
7
+ include smuzform_admin_view( 'style/backbone/settings/description.php' );
8
+
9
+ include smuzform_admin_view( 'style/backbone/settings/field-label.php' );
10
+
11
+ include smuzform_admin_view( 'style/backbone/settings/field-input.php' );
12
+
13
+ include smuzform_admin_view( 'style/backbone/settings/submit-btn.php' );
admin/views/style/backbone/settings/cont.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformStyleCont">
6
+ <?php smuzform_translate_e( 'Form Container' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformStyleCont" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleContFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- formCont.fontSize %>" id="styleContFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleContColor"><?php smuzform_translate_e( 'Color' ) ?></label>
23
+ <input type="text" value="<%- formCont.color %>" id="styleContColor" class="colorpickerfield" />
24
+
25
+ </div>
26
+
27
+ <div class="form-group">
28
+
29
+ <label for="styleContBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
30
+ <input type="text" value="<%- formCont.bgColor %>" id="styleContBgColor" class="colorpickerfield" />
31
+
32
+ </div>
33
+
34
+ <div class="form-group">
35
+
36
+ <label for="styleContMargin"><?php smuzform_translate_e( 'Margin' ) ?></label>
37
+ <input type="number" value="<%- formCont.margin %>" id="styleContMargin" min="0" class="form-control" />
38
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
39
+
40
+ </div>
41
+
42
+ <div class="form-group">
43
+
44
+ <label for="styleContPadding"><?php smuzform_translate_e( 'Padding' ) ?></label>
45
+ <input type="number" value="<%- formCont.padding %>" id="styleContPadding" min="0" class="form-control" />
46
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
47
+ </div>
48
+
49
+ </div>
50
+
51
+ <div class="panel-footer">
52
+
53
+ </div>
54
+
55
+ </div>
56
+ </div>
57
+ </div>
admin/views/style/backbone/settings/description.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformStyleDescription">
6
+ <?php smuzform_translate_e( 'Form Description' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformStyleDescription" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleDescriptionFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- formDescription.fontSize %>" id="styleDescriptionFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleDescriptionColor"><?php smuzform_translate_e( 'Color' ) ?></label>
23
+ <input type="text" value="<%- formDescription.color %>" id="styleDescriptionColor" class="colorpickerfield" />
24
+
25
+ </div>
26
+
27
+ <div class="form-group">
28
+
29
+ <label for="styleDescriptionBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
30
+ <input type="text" value="<%- formDescription.bgcolor %>" id="styleDescriptionBgColor" class="colorpickerfield" />
31
+
32
+ </div>
33
+
34
+ <div class="form-group">
35
+
36
+ <label for="styleDescriptionMargin"><?php smuzform_translate_e( 'Margin' ) ?></label>
37
+ <input type="number" value="<%- formDescription.margin %>" id="styleDescriptionMargin" class="form-control" />
38
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
39
+
40
+ </div>
41
+
42
+ <div class="form-group">
43
+
44
+ <label for="styleDescriptionPadding"><?php smuzform_translate_e( 'Padding' ) ?></label>
45
+ <input type="number" value="<%- formDescription.padding %>" id="styleDescriptionPadding" class="form-control" />
46
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
47
+ </div>
48
+
49
+ </div>
50
+
51
+ <div class="panel-footer">
52
+
53
+ </div>
54
+
55
+ </div>
56
+ </div>
57
+ </div>
admin/views/style/backbone/settings/field-input.php ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformStyleFieldInput">
6
+ <?php smuzform_translate_e( 'Field Input' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformStyleFieldInput" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleFieldInputFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- fieldInput.fontSize %>" id="styleFieldInputFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleFieldInputFontWeight">
23
+ <input type="checkbox" id="styleFieldInputFontWeight" <% if ( fieldInput.fontWeight === 'bold' ) { %> <%- 'checked' %> <% } %> />
24
+ <?php smuzform_translate_e( 'Make Label Text Bold' ) ?></label>
25
+
26
+
27
+ </div>
28
+
29
+ <div class="form-group">
30
+
31
+ <label for="styleFieldInputColor"><?php smuzform_translate_e( 'Color' ) ?></label>
32
+ <input type="text" value="<%- fieldInput.color %>" id="styleFieldInputColor" class="colorpickerfield" />
33
+
34
+ </div>
35
+
36
+ <div class="form-group">
37
+
38
+ <label for="styleFieldInputBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
39
+ <input type="text" value="<%- fieldInput.bgColor %>" id="styleFieldInputBgColor" class="colorpickerfield" />
40
+
41
+ </div>
42
+
43
+ <div class="form-group">
44
+
45
+ <label for="styleFieldInputColor"><?php smuzform_translate_e( 'Border Color' ) ?></label>
46
+ <input type="text" value="<%- fieldInput.borderColor %>" id="styleFieldInputBorderColor" class="colorpickerfield" />
47
+
48
+ </div>
49
+
50
+ <div class="form-group">
51
+ <label for="" class=""><?php smuzform_translate_e( 'Border' ) ?></label>
52
+
53
+ <div class="row nameFieldRow">
54
+
55
+
56
+ <div class="form-group col-xs-3">
57
+ <input id="styleFieldInputBorderSize" type="number" value="<%- fieldInput.borderSize %>" class="form-control" /> <br />
58
+ <label for="styleFieldInputBorderSize" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Size' ) ?></label>
59
+ </div>
60
+ <div class="form-group col-xs-3">
61
+ <input id="styleFieldInputBorderRadius" type="number" value="<%- fieldInput.borderRadius %>" class="form-control" /> <br />
62
+ <label for="styleFieldInputBorderRadius" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Radius' ) ?></label>
63
+ </div>
64
+ <div class="form-group col-xs-5">
65
+ <select id="styleFieldInputBorderStyle" class="form-control">
66
+ <option value="solid" <% if ( fieldInput.borderStyle === 'solid' ) { %> <%- 'selected' %> <% } %> ><?php smuzform_translate_e( 'Solid' ) ?></option>
67
+ <option value="dotted" <% if ( fieldInput.borderStyle === 'dotted' ) { %> <%- 'selected' %> <% } %> ><?php smuzform_translate_e( 'Dotted' ) ?></option>
68
+ </select>
69
+ <br />
70
+ <label for="styleFieldInputBorderStyle" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Style' ) ?></label>
71
+ </div>
72
+
73
+ </div>
74
+ </div>
75
+
76
+ <div class="form-group">
77
+ <label for="" class=""><?php smuzform_translate_e( 'Margin' ) ?></label>
78
+
79
+ <div class="row nameFieldRow">
80
+
81
+ <div class="form-group col-xs-3">
82
+ <input id="styleFieldInputMarginLeft" type="number" value="<%- fieldInput.marginLeft %>" class="form-control" /> <br />
83
+ <label for="styleFieldInputMarginLeft" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Left' ) ?></label>
84
+ </div>
85
+ <div class="form-group col-xs-3">
86
+ <input id="styleFieldInputMarginRight" type="number" value="<%- fieldInput.marginRight %>" class="form-control" /> <br />
87
+ <label for="styleFieldInputMarginRight" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Right' ) ?></label>
88
+ </div>
89
+ <div class="form-group col-xs-3">
90
+ <input id="styleFieldInputMarginTop" type="number" value="<%- fieldInput.marginTop %>" class="form-control" /> <br />
91
+ <label for="styleFieldInputMarginTop" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Top' ) ?></label>
92
+ </div>
93
+ <div class="form-group col-xs-3">
94
+ <input id="styleFieldInputMarginBottom" type="number" value="<%- fieldInput.marginRight %>" class="form-control" /> <br />
95
+ <label for="styleFieldInputMarginBottom" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Bottom' ) ?></label>
96
+ </div>
97
+
98
+ </div>
99
+ </div>
100
+
101
+ <div class="form-group">
102
+ <label for="" class=""><?php smuzform_translate_e( 'Padding' ) ?></label>
103
+
104
+ <div class="row nameFieldRow">
105
+
106
+ <div class="form-group col-xs-3">
107
+ <input id="styleFieldInputPaddingLeft" type="number" value="<%- fieldInput.paddingLeft %>" class="form-control" /> <br />
108
+ <label for="styleFieldInputPaddingLeft" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Left' ) ?></label>
109
+ </div>
110
+ <div class="form-group col-xs-3">
111
+ <input id="styleFieldInputPaddingRight" type="number" value="<%- fieldInput.paddingRight %>" class="form-control" /> <br />
112
+ <label for="styleFieldInputPaddingRight" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Right' ) ?></label>
113
+ </div>
114
+ <div class="form-group col-xs-3">
115
+ <input id="styleFieldInputPaddingTop" type="number" value="<%- fieldInput.paddingTop %>" class="form-control" /> <br />
116
+ <label for="styleFieldInputPaddingTop" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Top' ) ?></label>
117
+ </div>
118
+ <div class="form-group col-xs-3">
119
+ <input id="styleFieldInputPaddingBottom" type="number" value="<%- fieldInput.paddingRight %>" class="form-control" /> <br />
120
+ <label for="styleFieldInputPaddingBottom" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Bottom' ) ?></label>
121
+ </div>
122
+
123
+ </div>
124
+
125
+ </div>
126
+
127
+ </div>
128
+
129
+ <div class="panel-footer">
130
+
131
+ </div>
132
+
133
+ </div>
134
+ </div>
135
+ </div>
admin/views/style/backbone/settings/field-label.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformStyleFieldLabel">
6
+ <?php smuzform_translate_e( 'Field Label' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformStyleFieldLabel" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleFieldLabelFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- fieldLabel.fontSize %>" id="styleFieldLabelFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleFieldLabelFontWeight">
23
+ <input type="checkbox" id="styleFieldLabelFontWeight" <% if ( fieldLabel.fontWeight === 'bold' ) { %> <%- 'checked' %> <% } %> />
24
+ <?php smuzform_translate_e( 'Make Label Text Bold' ) ?></label>
25
+
26
+
27
+ </div>
28
+
29
+ <div class="form-group">
30
+
31
+ <label for="styleFieldLabelColor"><?php smuzform_translate_e( 'Color' ) ?></label>
32
+ <input type="text" value="<%- fieldLabel.color %>" id="styleFieldLabelColor" class="colorpickerfield" />
33
+
34
+ </div>
35
+
36
+ <div class="form-group">
37
+
38
+ <label for="styleFieldLabelBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
39
+ <input type="text" value="<%- fieldLabel.bgcolor %>" id="styleFieldLabelBgColor" class="colorpickerfield" />
40
+
41
+ </div>
42
+
43
+ <div class="form-group">
44
+
45
+ <label for="styleFieldLabelMargin"><?php smuzform_translate_e( 'Margin' ) ?></label>
46
+ <input type="number" value="<%- fieldLabel.margin %>" id="styleFieldLabelMargin" class="form-control" />
47
+ <p class="FieldLabel"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
48
+
49
+ </div>
50
+
51
+ <div class="form-group">
52
+
53
+ <label for="styleFieldLabelPadding"><?php smuzform_translate_e( 'Padding' ) ?></label>
54
+ <input type="number" value="<%- fieldLabel.padding %>" id="styleFieldLabelPadding" class="form-control" />
55
+ <p class="FieldLabel"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
56
+ </div>
57
+
58
+ </div>
59
+
60
+ <div class="panel-footer">
61
+
62
+ </div>
63
+
64
+ </div>
65
+ </div>
66
+ </div>
admin/views/style/backbone/settings/heading.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformStyleHeading">
6
+ <?php smuzform_translate_e( 'Form Heading' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformStyleHeading" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleHeadingFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- formHeading.fontSize %>" id="styleHeadingFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleHeadingColor"><?php smuzform_translate_e( 'Color' ) ?></label>
23
+ <input type="text" value="<%- formHeading.color %>" id="styleHeadingColor" class="colorpickerfield" />
24
+
25
+ </div>
26
+
27
+ <div class="form-group">
28
+
29
+ <label for="styleHeadingBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
30
+ <input type="text" value="<%- formHeading.bgcolor %>" id="styleHeadingBgColor" class="colorpickerfield" />
31
+
32
+ </div>
33
+
34
+ <div class="form-group">
35
+
36
+ <label for="styleHeadingMargin"><?php smuzform_translate_e( 'Margin' ) ?></label>
37
+ <input type="number" value="<%- formHeading.margin %>" id="styleHeadingMargin" class="form-control" />
38
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
39
+
40
+ </div>
41
+
42
+ <div class="form-group">
43
+
44
+ <label for="styleHeadingPadding"><?php smuzform_translate_e( 'Padding' ) ?></label>
45
+ <input type="number" value="<%- formHeading.padding %>" id="styleHeadingPadding" class="form-control" />
46
+ <p class="description"><?php smuzform_translate_e( 'Leave it empty to use default value.' ) ?></p>
47
+ </div>
48
+
49
+ </div>
50
+
51
+ <div class="panel-footer">
52
+
53
+ </div>
54
+
55
+ </div>
56
+ </div>
57
+ </div>
admin/views/style/backbone/settings/submit-btn.php ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="panel-group">
2
+ <div class="panel panel-default">
3
+ <div class="panel-heading">
4
+ <h4 class="panel-title">
5
+ <a data-toggle="collapse" href="#aformstyleSubmitBtn">
6
+ <?php smuzform_translate_e( 'Submit Button' ) ?>
7
+ </a>
8
+ </h4>
9
+ </div>
10
+ <div id="aformstyleSubmitBtn" class="panel-collapse collapse">
11
+ <div class="panel-body">
12
+
13
+ <div class="form-group">
14
+
15
+ <label for="styleSubmitBtnFontSize"><?php smuzform_translate_e( 'Font Size' ) ?></label>
16
+ <input type="number" value="<%- submitBtn.fontSize %>" id="styleSubmitBtnFontSize" class="form-control" />
17
+
18
+ </div>
19
+
20
+ <div class="form-group">
21
+
22
+ <label for="styleSubmitBtnFontWeight">
23
+ <input type="checkbox" id="styleSubmitBtnFontWeight" <% if ( submitBtn.fontWeight === 'bold' ) { %> <%- 'checked' %> <% } %> />
24
+ <?php smuzform_translate_e( 'Make Label Text Bold' ) ?></label>
25
+
26
+
27
+ </div>
28
+
29
+ <div class="form-group">
30
+
31
+ <label for="styleSubmitBtnColor"><?php smuzform_translate_e( 'Color' ) ?></label>
32
+ <input type="text" value="<%- submitBtn.color %>" id="styleSubmitBtnColor" class="colorpickerfield" />
33
+
34
+ </div>
35
+
36
+ <div class="form-group">
37
+
38
+ <label for="styleSubmitBtnBgColor"><?php smuzform_translate_e( 'Background Color' ) ?></label>
39
+ <input type="text" value="<%- submitBtn.bgColor %>" id="styleSubmitBtnBgColor" class="colorpickerfield" />
40
+
41
+ </div>
42
+
43
+ <div class="form-group">
44
+
45
+ <label for="styleSubmitBtnBorderColor"><?php smuzform_translate_e( 'Border Color' ) ?></label>
46
+ <input type="text" value="<%- submitBtn.borderColor %>" id="styleSubmitBtnBorderColor" class="colorpickerfield" />
47
+
48
+ </div>
49
+
50
+ <div class="form-group">
51
+
52
+ <label for="styleSubmitBtnHoverBgColor"><?php smuzform_translate_e( 'Hover Background Color' ) ?></label>
53
+ <input type="text" value="<%- submitBtn.hoverBgColor %>" id="styleSubmitBtnHoverBgColor" class="colorpickerfield" />
54
+
55
+ </div>
56
+
57
+ <div class="form-group">
58
+ <label for="" class=""><?php smuzform_translate_e( 'Border' ) ?></label>
59
+
60
+ <div class="row nameFieldRow">
61
+
62
+
63
+ <div class="form-group col-xs-3">
64
+ <input id="styleSubmitBtnBorderSize" type="number" value="<%- submitBtn.borderSize %>" class="form-control" /> <br />
65
+ <label for="styleSubmitBtnBorderSize" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Size' ) ?></label>
66
+ </div>
67
+ <div class="form-group col-xs-3">
68
+ <input id="styleSubmitBtnBorderRadius" type="number" value="<%- submitBtn.borderRadius %>" class="form-control" /> <br />
69
+ <label for="styleSubmitBtnBorderRadius" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Radius' ) ?></label>
70
+ </div>
71
+ <div class="form-group col-xs-5">
72
+ <select id="styleSubmitBtnBorderStyle" class="form-control">
73
+ <option value="solid" <% if ( submitBtn.borderStyle === 'solid' ) { %> <%- 'selected' %> <% } %> ><?php smuzform_translate_e( 'Solid' ) ?></option>
74
+ <option value="dotted" <% if ( submitBtn.borderStyle === 'dotted' ) { %> <%- 'selected' %> <% } %> ><?php smuzform_translate_e( 'Dotted' ) ?></option>
75
+ </select>
76
+ <br />
77
+ <label for="styleSubmitBtnBorderStyle" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Style' ) ?></label>
78
+ </div>
79
+
80
+ </div>
81
+ </div>
82
+
83
+ <div class="form-group">
84
+ <label for="" class=""><?php smuzform_translate_e( 'Margin' ) ?></label>
85
+
86
+ <div class="row nameFieldRow">
87
+
88
+ <div class="form-group col-xs-3">
89
+ <input id="styleSubmitBtnMarginLeft" type="number" value="<%- submitBtn.marginLeft %>" class="form-control" /> <br />
90
+ <label for="styleSubmitBtnMarginLeft" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Left' ) ?></label>
91
+ </div>
92
+ <div class="form-group col-xs-3">
93
+ <input id="styleSubmitBtnMarginRight" type="number" value="<%- submitBtn.marginRight %>" class="form-control" /> <br />
94
+ <label for="styleSubmitBtnMarginRight" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Right' ) ?></label>
95
+ </div>
96
+ <div class="form-group col-xs-3">
97
+ <input id="styleSubmitBtnMarginTop" type="number" value="<%- submitBtn.marginTop %>" class="form-control" /> <br />
98
+ <label for="styleSubmitBtnMarginTop" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Top' ) ?></label>
99
+ </div>
100
+ <div class="form-group col-xs-3">
101
+ <input id="styleSubmitBtnMarginBottom" type="number" value="<%- submitBtn.marginRight %>" class="form-control" /> <br />
102
+ <label for="styleSubmitBtnMarginBottom" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Bottom' ) ?></label>
103
+ </div>
104
+
105
+ </div>
106
+
107
+ </div>
108
+
109
+ <div class="form-group">
110
+ <label for="" class=""><?php smuzform_translate_e( 'Padding' ) ?></label>
111
+
112
+ <div class="row nameFieldRow">
113
+
114
+ <div class="form-group col-xs-3">
115
+ <input id="styleSubmitBtnPaddingLeft" type="number" value="<%- submitBtn.paddingLeft %>" class="form-control" /> <br />
116
+ <label for="styleSubmitBtnPaddingLeft" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Left' ) ?></label>
117
+ </div>
118
+ <div class="form-group col-xs-3">
119
+ <input id="styleSubmitBtnPaddingRight" type="number" value="<%- submitBtn.paddingRight %>" class="form-control" /> <br />
120
+ <label for="styleSubmitBtnPaddingRight" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Right' ) ?></label>
121
+ </div>
122
+ <div class="form-group col-xs-3">
123
+ <input id="styleSubmitBtnPaddingTop" type="number" value="<%- submitBtn.paddingTop %>" class="form-control" /> <br />
124
+ <label for="styleSubmitBtnPaddingTop" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Top' ) ?></label>
125
+ </div>
126
+ <div class="form-group col-xs-3">
127
+ <input id="styleSubmitBtnPaddingBottom" type="number" value="<%- submitBtn.paddingRight %>" class="form-control" /> <br />
128
+ <label for="styleSubmitBtnPaddingBottom" class="nameFieldLabelInline"><?php smuzform_translate_e( 'Bottom' ) ?></label>
129
+ </div>
130
+
131
+ </div>
132
+
133
+ </div>
134
+
135
+ </div>
136
+
137
+ <div class="panel-footer">
138
+
139
+ </div>
140
+
141
+ </div>
142
+ </div>
143
+
144
+ </div>
admin/views/style/settings-page.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smuzform-cont">
2
+
3
+ <nav class="navbar navbar-inverse mainnavbar">
4
+ <div class="container">
5
+ <div class="navbar-header">
6
+ <a class="navbar-brand">
7
+ <?php smuzform_translate_e( 'Form Style Manager' ) ?>
8
+ </a>
9
+
10
+ <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
11
+ <li class="navBarActionsLi">
12
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.intval($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
13
+ </li>
14
+ </ul>
15
+
16
+
17
+ </div>
18
+
19
+
20
+ </div>
21
+ </nav>
22
+
23
+ <div class="container">
24
+
25
+ <!-- Style Elements and Settings -->
26
+
27
+ <div class="col-lg-4 smuzform-settings smuzform-style-settings">
28
+
29
+ <?php include smuzform_admin_view( 'style/backbone/form-style.php' ) ?>
30
+
31
+ </div>
32
+
33
+ <!-- end -->
34
+
35
+ <!-- Form Preview and View !-->
36
+
37
+ <div class="col-md-6 smuzform-preview">
38
+
39
+ <?php include smuzform_admin_view( 'style/backbone/form-preview.php' ) ?>
40
+
41
+ </div>
42
+
43
+ <!-- end !-->
44
+
45
+ <?php do_action( 'smuzform_style_manager_add' ) ?>
46
+
47
+ </div>
48
+
49
+
50
+ </div>
51
+
52
+ <div id="serverModalContHtml">
53
+
54
+ <div id="serverModalCont">
55
+ <p id="serverModalMessage">
56
+ Loading
57
+ </p>
58
+ <div class="loadingSpinner">
59
+ <div class="sk-circle">
60
+ <div class="sk-circle1 sk-child"></div>
61
+ <div class="sk-circle2 sk-child"></div>
62
+ <div class="sk-circle3 sk-child"></div>
63
+ <div class="sk-circle4 sk-child"></div>
64
+ <div class="sk-circle5 sk-child"></div>
65
+ <div class="sk-circle6 sk-child"></div>
66
+ <div class="sk-circle7 sk-child"></div>
67
+ <div class="sk-circle8 sk-child"></div>
68
+ <div class="sk-circle9 sk-child"></div>
69
+ <div class="sk-circle10 sk-child"></div>
70
+ <div class="sk-circle11 sk-child"></div>
71
+ <div class="sk-circle12 sk-child"></div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+
76
+ </div>
admin/views/tab-field-settings.php ADDED
@@ -0,0 +1 @@
 
1
+ <div id="fieldSettingsCont"></div>
admin/views/tab-fields.php ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <ol id="fields">
2
+
3
+ <li class="field singleText">
4
+
5
+ <div class="fieldWrap">
6
+
7
+ <button>Single Line Text</button>
8
+
9
+ </div>
10
+
11
+ </li>
12
+
13
+ <li class="field singleNumber">
14
+
15
+ <div class="fieldWrap">
16
+
17
+ <button>Number</button>
18
+
19
+ </div>
20
+
21
+ </li>
22
+
23
+ <li class="field textArea">
24
+
25
+ <div class="fieldWrap">
26
+
27
+ <button>Textarea</button>
28
+
29
+ </div>
30
+
31
+ </li>
32
+
33
+ <li class="field dropdown">
34
+
35
+ <div class="fieldWrap">
36
+
37
+ <button>Dropdown</button>
38
+
39
+ </div>
40
+
41
+ </li>
42
+
43
+ <li class="field radioButtons">
44
+
45
+ <div class="fieldWrap">
46
+
47
+ <button>Radio Buttons</button>
48
+
49
+ </div>
50
+
51
+ </li>
52
+
53
+
54
+
55
+ <li class="field checkboxes">
56
+
57
+ <div class="fieldWrap">
58
+
59
+ <button>Checkboxes</button>
60
+
61
+ </div>
62
+
63
+ </li>
64
+
65
+
66
+ <li class="field sectionBreak">
67
+
68
+ <div class="fieldWrap">
69
+
70
+ <button>Section Break</button>
71
+
72
+ </div>
73
+
74
+ </li>
75
+
76
+ <li class="field lineBreak">
77
+
78
+ <div class="fieldWrap">
79
+
80
+ <button>Line Break</button>
81
+
82
+ </div>
83
+
84
+ </li>
85
+
86
+
87
+ <h4 class="headingFieldFeature"><?php smuzform_translate_e( 'Advanced Fields' ) ?></h4>
88
+
89
+ <li class="field fileUpload">
90
+
91
+ <div class="fieldWrap">
92
+
93
+ <button>File Upload</button>
94
+
95
+ </div>
96
+
97
+ </li>
98
+
99
+ <li class="field name">
100
+
101
+ <div class="fieldWrap">
102
+
103
+ <button>Name</button>
104
+
105
+ </div>
106
+
107
+ </li>
108
+
109
+ <li class="field email">
110
+
111
+ <div class="fieldWrap">
112
+
113
+ <button>Email</button>
114
+
115
+ </div>
116
+
117
+ </li>
118
+
119
+ <li class="field date">
120
+
121
+ <div class="fieldWrap">
122
+
123
+ <button>Date</button>
124
+
125
+ </div>
126
+
127
+ </li>
128
+
129
+ <li class="field address">
130
+
131
+ <div class="fieldWrap">
132
+
133
+ <button>Address</button>
134
+
135
+ </div>
136
+
137
+ </li>
138
+
139
+ <li class="field phone">
140
+
141
+ <div class="fieldWrap">
142
+
143
+ <button>Phone</button>
144
+
145
+ </div>
146
+
147
+ </li>
148
+
149
+ <li class="field website">
150
+
151
+ <div class="fieldWrap">
152
+
153
+ <button>Website</button>
154
+
155
+ </div>
156
+
157
+ </li>
158
+
159
+ <li class="field likert">
160
+
161
+ <div class="fieldWrap">
162
+
163
+ <button>Likert</button>
164
+
165
+ </div>
166
+
167
+ </li>
168
+
169
+ <li class="field pageBreak">
170
+
171
+ <div class="fieldWrap">
172
+
173
+ <button>Page Break</button>
174
+
175
+ </div>
176
+
177
+ </li>
178
+
179
+ <li class="field rating likert">
180
+
181
+ <div class="fieldWrap">
182
+
183
+ <button>Rating</button>
184
+
185
+ </div>
186
+
187
+ </li>
188
+
189
+ <h4 class="headingFieldFeature"><?php smuzform_translate_e( 'HTML Elements' ) ?></h4>
190
+
191
+ <li class="field customText">
192
+
193
+ <div class="fieldWrap">
194
+
195
+ <button>Text</button>
196
+
197
+ </div>
198
+
199
+ </li>
200
+
201
+ <li class="field customImage">
202
+
203
+ <div class="fieldWrap">
204
+
205
+ <button>Image</button>
206
+
207
+ </div>
208
+
209
+ </li>
210
+
211
+ <li class="field likert">
212
+
213
+ <div class="fieldWrap">
214
+
215
+ <button>Link</button>
216
+
217
+ </div>
218
+
219
+ </li>
220
+
221
+ <li class="field customHtml">
222
+
223
+ <div class="fieldWrap">
224
+
225
+ <button>Custom HTML</button>
226
+
227
+ </div>
228
+
229
+ </li>
230
+
231
+ </ol>
admin/views/tab-form-settings.php ADDED
@@ -0,0 +1 @@
 
1
+ <div id="formSettingsCont"></div>
config.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ define( 'SMUZFORM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
5
+
6
+ define( 'SMUZFORM_PLUGIN_URL', plugins_url( '',plugin_basename( __FILE__ ) ) );
7
+
8
+ define( 'SMUZFORM_PLUGIN_DIR_NAME', dirname( plugin_basename( __FILE__ ) ) );
9
+
10
+ define( 'SMUZFORM_PLUGIN_INCLUDE_ADMIN_DIRECTORY_NAME', 'admin/includes' );
11
+
12
+ define( 'SMUZFORM_PLUGIN_INCLUDE_PUBLIC_DIRECTORY_NAME', 'public/includes' );
13
+
14
+ define( 'SMUZFORM_PLUGIN_VIEW_DIRECTORY_NAME', 'views' );
15
+
16
+ define( 'SMUZFORM_PLUGIN_CSS_DIRECTORY_NAME', 'css' );
17
+
18
+ define( 'SMUZFORM_PLUGIN_JS_DIRECTORY_NAME', 'js' );
19
+
20
+ define( 'SMUZFORM_PLUGIN_ADMIN_DIRECTORY', SMUZFORM_PLUGIN_PATH . 'admin' . DIRECTORY_SEPARATOR );
21
+
22
+ define( 'SMUZFORM_PLUGIN_PUBLIC_DIRECTORY', SMUZFORM_PLUGIN_PATH . 'public' . DIRECTORY_SEPARATOR );
23
+
24
+ define( 'SMUZFORM_PLUGIN_INCLUDE_ADMIN_DIRECTORY', SMUZFORM_PLUGIN_PATH .
25
+ SMUZFORM_PLUGIN_INCLUDE_ADMIN_DIRECTORY_NAME
26
+ . DIRECTORY_SEPARATOR );
27
+
28
+ define( 'SMUZFORM_PLUGIN_VIEW_DIRECTORY', SMUZFORM_PLUGIN_PATH .
29
+ SMUZFORM_PLUGIN_VIEW_DIRECTORY_NAME
30
+ . DIRECTORY_SEPARATOR );
31
+
32
+ define( 'SMUZFORM_PLUGIN_CSS_DIRECTORY', SMUZFORM_PLUGIN_PATH .
33
+ SMUZFORM_PLUGIN_CSS_DIRECTORY_NAME
34
+ . DIRECTORY_SEPARATOR );
35
+
36
+ define( 'SMUZFORM_PLUGIN_JS_DIRECTORY', SMUZFORM_PLUGIN_PATH .
37
+ SMUZFORM_PLUGIN_JS_DIRECTORY_NAME
38
+ . DIRECTORY_SEPARATOR );
39
+
40
+ define( 'SMUZFORM_PLUGIN_MAIN_FILE', SMUZFORM_PLUGIN_PATH . 'forms.php' );
41
+
42
+ define( 'SMUZFORM_SHORTCODE', 'sform' );
43
+
44
+ define( 'SMUZFORM_UPLOAD_DIR_NAME', 'smuzformfiles-' );
45
+
46
+ define( 'SMUZFORM_PLUGIN_VERSION', '1.0' );
47
+
48
+ define( 'SMUZFORM_ENTRIES_PER_PAGE', 10 );
49
+
50
+ define( 'SMUZFORM_ENTRY_DATABASE_TABLE_NAME', 'smuzform_entry' );
51
+
52
+ define( 'SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME', 'smuzform_entry_data' );
core_functions.php ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function __load_smuzform() {
4
+
5
+
6
+ load_smuzform_classes();
7
+
8
+ }
9
+
10
+ function load_smuzform_classes() {
11
+
12
+ load_smuzform_admin_classes();
13
+
14
+ load_smuzform_public_classes();
15
+
16
+ smuzform_public( 'core/class/class-smuzform-public-storage.php' );
17
+
18
+ $storage = new SmuzForm_Public_Storage();
19
+
20
+ $storage->init();
21
+
22
+ }
23
+
24
+ function load_smuzform_admin_classes() {
25
+
26
+ /**
27
+ Loading UI code or other admin classes can impact frontend performance.
28
+ Admin code will not affect frontend performance.
29
+ **/
30
+ if ( ! is_admin() )
31
+ return;
32
+
33
+ if ( ! class_exists( 'phpUserAgentStringParser' ) )
34
+ smuzform_admin( 'core/lib/phpUserAgentStringParser.php' );
35
+
36
+ if ( ! class_exists( 'Smuz_Form' ) )
37
+ smuzform_public( 'core/class/class-smuzform-form.php' );
38
+
39
+ smuzform_admin( 'core/class/class-smuzform-admin.php' );
40
+ smuzform_admin( 'core/class/class-smuzform-model.php' );
41
+ smuzform_admin( 'core/class/class-smuzform-entry-model.php' );
42
+ smuzform_admin( 'core/class/class-smuzform-notification-model.php' );
43
+
44
+ smuzform_admin( 'core/class/class-smuzform-entry.php' );
45
+ smuzform_admin( 'core/class/class-smuzform-notification-manager.php' );
46
+ smuzform_admin( 'core/class/class-smuzform-style-manager.php' );
47
+
48
+ $Admin = new SmuzForm_Admin();
49
+
50
+ $Admin->createUI();
51
+
52
+
53
+ $Model = new SmuzForm_Model();
54
+
55
+ $Model->init();
56
+
57
+ $Entry_Model = new SmuzForm_Entry_Model();
58
+
59
+ $Entry_Model->init();
60
+
61
+ $Notification_Model = new SmuzForm_Notification_Model();
62
+
63
+ $Notification_Model->init();
64
+ }
65
+
66
+ function load_smuzform_public_classes() {
67
+
68
+ /**
69
+ Repeating some code is better then loading all of the public code on admin.
70
+ Shared hosting sites don't have many resources.
71
+ **/
72
+ if ( is_admin() )
73
+ return;
74
+
75
+ smuzform_public( 'core/class/class-smuzform-public.php' );
76
+
77
+
78
+ $Public = new SmuzForm_Public();
79
+
80
+ $Public->loadClasses();
81
+
82
+ $Public->createUI();
83
+
84
+
85
+ }
86
+
87
+ function smuzform_loaded() {
88
+
89
+ do_action( 'smuzform_loaded' );
90
+
91
+ }
92
+
93
+ function smuzform_admin( $file_name, $require = true ) {
94
+
95
+ if ( $require )
96
+ require SMUZFORM_PLUGIN_ADMIN_DIRECTORY . $file_name;
97
+ else
98
+ include SMUZFORM_PLUGIN_ADMIN_DIRECTORY . $file_name;
99
+
100
+ }
101
+
102
+ function smuzform_admin_view( $file_name, $require = true ) {
103
+
104
+ if ( $require )
105
+ return SMUZFORM_PLUGIN_ADMIN_DIRECTORY . 'views/' . $file_name;
106
+ else
107
+ return SMUZFORM_PLUGIN_ADMIN_DIRECTORY . 'views/' . $file_name;
108
+
109
+ }
110
+
111
+ function smuzform_public( $file_name, $require = true ) {
112
+
113
+ if ( $require )
114
+ require_once SMUZFORM_PLUGIN_PUBLIC_DIRECTORY . $file_name;
115
+ else
116
+ include_once SMUZFORM_PLUGIN_PUBLIC_DIRECTORY . $file_name;
117
+
118
+ }
119
+
120
+ function smuzform_public_view( $file_name, $require = true ) {
121
+
122
+ if ( $require )
123
+ return SMUZFORM_PLUGIN_PUBLIC_DIRECTORY . 'views/' . $file_name;
124
+ else
125
+ return SMUZFORM_PLUGIN_PUBLIC_DIRECTORY . 'views/' . $file_name;
126
+
127
+ }
128
+
129
+ function smuzform_url( $file_name ) {
130
+
131
+ return SMUZFORM_PLUGIN_URL . $file_name;
132
+
133
+ }
134
+
135
+ function smuzform_admin_asset( $file_name ) {
136
+
137
+ return smuzform_url( '/admin/assets/'. $file_name );
138
+
139
+ }
140
+
141
+ function smuzform_public_asset( $file_name ) {
142
+
143
+ return smuzform_url( '/public/assets/'. $file_name );
144
+
145
+ }
146
+
147
+ function smuzform_translate( $text ) {
148
+
149
+ $text_domain = 'smuzform';
150
+
151
+ return __( $text, $text_domain );
152
+
153
+ }
154
+
155
+ function smuzform_translate_e( $text ) {
156
+
157
+ echo smuzform_translate( $text );
158
+ }
159
+
160
+ function smuzform_render_form( $form_id, $args = array() ) {
161
+
162
+ $shortcode = sprintf( "[%s id=%d]", SMUZFORM_SHORTCODE, intval( $form_id ) );
163
+ echo do_shortcode( $shortcode );
164
+
165
+ }
166
+
167
+ function smuzform_get_forms() {
168
+
169
+ $args = array(
170
+ 'posts_per_page' => -1,
171
+ 'offset' => 0,
172
+ 'category' => '',
173
+ 'category_name' => '',
174
+ 'orderby' => 'date',
175
+ 'order' => 'DESC',
176
+ 'include' => '',
177
+ 'exclude' => '',
178
+ 'meta_key' => '',
179
+ 'meta_value' => '',
180
+ 'post_type' => 'smuzform',
181
+ 'post_mime_type' => '',
182
+ 'post_parent' => '',
183
+ 'author' => '',
184
+ 'post_status' => 'publish',
185
+ 'suppress_filters' => true
186
+ );
187
+
188
+ $forms = get_posts( $args );
189
+
190
+ return $forms;
191
+ }
forms.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ Plugin Name: Contact Form Add
4
+ Description: Most beautiful WordPress form builder plugin. A plugin you'll love creating forms.
5
+ Author: umarbajwa
6
+ Author URI: http://web-settler.com/form-builder
7
+ Plugin URI: http://web-settler.com/form-builder
8
+ Version: 1.0.1
9
+ License: GPL V2
10
+ **/
11
+
12
+
13
+ require plugin_dir_path( __FILE__ ) . 'config.php';
14
+
15
+ require plugin_dir_path( __FILE__ ) . 'core_functions.php';
16
+
17
+ /**
18
+ Store the first installed version of the plugin in database.
19
+ The value will not change with plugin updates.
20
+
21
+ To get up-to-date version number use constant SMUZFORM_PLUGIN_VERSION
22
+ **/
23
+ if ( is_admin() )
24
+ add_option( 'smuzform_plugin_version', SMUZFORM_PLUGIN_VERSION );
25
+
26
+
27
+ __load_smuzform();
28
+
29
+
30
+ register_activation_hook( __FILE__, 'smuzform_create_db_tables' );
31
+ function smuzform_create_db_tables() {
32
+
33
+ global $wpdb;
34
+
35
+ $entry_table_name = $wpdb->prefix . SMUZFORM_ENTRY_DATABASE_TABLE_NAME;
36
+
37
+ $entry_data_table_name = $wpdb->prefix . SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME;
38
+
39
+ $charset_collate = $wpdb->get_charset_collate();
40
+
41
+ $sql = "CREATE TABLE $entry_table_name (
42
+ id mediumint(9) NOT NULL AUTO_INCREMENT,
43
+ form_id mediumint(9) NOT NULL,
44
+ status varchar(100),
45
+ user_ip varchar(100),
46
+ user_agent varchar(200),
47
+ created_at TIMESTAMP,
48
+ updated_at DATETIME,
49
+ UNIQUE KEY (id)
50
+ ); $charset_collate";
51
+
52
+ $sql2 = "CREATE TABLE $entry_data_table_name (
53
+ id INT NOT NULL AUTO_INCREMENT,
54
+ form_id mediumint(9) NOT NULL,
55
+ entry_id mediumint(9) NOT NULL,
56
+ field_id varchar(100) NOT NULL,
57
+ created_at TIMESTAMP,
58
+ value TEXT,
59
+ UNIQUE KEY (id)
60
+ ); $charset_collate";
61
+
62
+ require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
63
+
64
+ dbDelta( $sql );
65
+
66
+ dbDelta( $sql2 );
67
+
68
+ update_option( 'smuzform_db_version', '1.0' );
69
+ }
70
+
71
+ /**
72
+ Executes WordPress action hooks attached to smuzform_loaded
73
+
74
+ ->After this plugin is loaded.
75
+ **/
76
+ smuzform_loaded();
77
+
index.php ADDED
File without changes
public/assets/css/form-style.css ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ YUI 3.18.1 (build f7e7bcb)
3
+ Copyright 2014 Yahoo! Inc. All rights reserved.
4
+ Licensed under the BSD License.
5
+ http://yuilibrary.com/license/
6
+ */
7
+
8
+ .yui3-cssreset html{color:#000;background:#FFF}.yui3-cssreset body,.yui3-cssreset div,.yui3-cssreset dl,.yui3-cssreset dt,.yui3-cssreset dd,.yui3-cssreset ul,.yui3-cssreset ol,.yui3-cssreset li,.yui3-cssreset h1,.yui3-cssreset h2,.yui3-cssreset h3,.yui3-cssreset h4,.yui3-cssreset h5,.yui3-cssreset h6,.yui3-cssreset pre,.yui3-cssreset code,.yui3-cssreset form,.yui3-cssreset fieldset,.yui3-cssreset legend,.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset p,.yui3-cssreset blockquote,.yui3-cssreset th,.yui3-cssreset td{margin:0;padding:0}.yui3-cssreset table{border-collapse:collapse;border-spacing:0}.yui3-cssreset fieldset,.yui3-cssreset img{border:0}.yui3-cssreset address,.yui3-cssreset caption,.yui3-cssreset cite,.yui3-cssreset code,.yui3-cssreset dfn,.yui3-cssreset em,.yui3-cssreset strong,.yui3-cssreset th,.yui3-cssreset var{font-style:normal;font-weight:normal}.yui3-cssreset ol,.yui3-cssreset ul{list-style:none}.yui3-cssreset caption,.yui3-cssreset th{text-align:left}.yui3-cssreset h1,.yui3-cssreset h2,.yui3-cssreset h3,.yui3-cssreset h4,.yui3-cssreset h5,.yui3-cssreset h6{font-size:100%;font-weight:normal}.yui3-cssreset q:before,.yui3-cssreset q:after{content:''}.yui3-cssreset abbr,.yui3-cssreset acronym{border:0;font-variant:normal}.yui3-cssreset sup{vertical-align:text-top}.yui3-cssreset sub{vertical-align:text-bottom}.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset select{font-family:inherit;font-size:inherit;font-weight:inherit}.yui3-cssreset input,.yui3-cssreset textarea,.yui3-cssreset select{*font-size:100%}.yui3-cssreset legend{color:#000}#yui3-css-stamp.cssreset-context{display:none}
9
+ /*! Uni-Form - v1.5.0 - 2013-03-31
10
+ * http://sprawsm.com/uni-form/
11
+ * Copyright (c) 2013 Dragan Babic; Licensed MIT */
12
+
13
+ .uni-form{margin:0;padding:0}.uni-form *{box-sizing:border-box}.uni-form fieldset{border:0;margin:0;padding:0}.uni-form .ctrl-holder,.uni-form .button-holder{clear:both}.uni-form:after,.uni-form .button-holder:after,.uni-form .ctrl-holder:after{content:".";display:block;height:0;line-height:0;font-size:0;clear:both;min-height:0;visibility:hidden}.uni-form label,.uni-form button{cursor:pointer}.uni-form .ctrl-holder>label,.uni-form .ctrl-holder>.label{display:block;margin:0;padding:0}.uni-form label em,.uni-form .label em{float:left;width:.75em;margin:0 0 0 -.75em;font-style:inherit;font-weight:inherit}.uni-form .input-text,.uni-form .input-file,.uni-form .input-select,.uni-form select,.uni-form textarea{float:left;width:67%;margin:0}.uni-form label+.input-text,.uni-form label+.input-file,.uni-form label+.input-select,.uni-form label+select,.uni-form label+textarea{margin-top:.5em}.uni-form .form-hint{float:right;width:33%;margin:0}.uni-form .ctrl-holder>ul{float:left;width:67%;margin:0;padding:0 3% 0 0}.uni-form .ctrl-holder>ul+.form-hint{margin-top:.5em}.uni-form .ctrl-holder>ul li{margin:.5em 0;list-style:none}.uni-form ul.alternate li{display:inline-block;margin:.5em 0 0}.uni-form ul.columns-2 li{width:49%}.uni-form ul.columns-3 li{width:32%}.uni-form ul .input-text,.uni-form ul .input-select,.uni-form ul select,.uni-form ul.alternate .input-text,.uni-form ul.alternate .input-select,.uni-form ul.alternate select{display:inline-block;float:none;width:98%}.uni-form .inline-labels .ctrl-holder>label,.uni-form .inline-labels .ctrl-holder>.label{float:left;position:relative;width:33%;padding-right:3%}.uni-form .inline-labels .input-text,.uni-form .inline-labels .input-file,.uni-form .inline-labels .input-select,.uni-form .inline-labels select,.uni-form .inline-labels textarea{float:left;width:67%;margin:0}.uni-form .inline-labels .form-hint{clear:both;float:none;width:auto;margin-left:33%;padding-top:.5em}.uni-form .inline-labels .ctrl-holder>ul{float:left;width:67%;margin:0;padding:0}.uni-form .inline-labels .ctrl-holder>ul li{margin:0}.uni-form .inline-labels .ctrl-holder>ul li+li{margin-top:.5em}.uni-form .inline-labels .ctrl-holder>ul label{float:none;display:block;width:100%}.uni-form .inline-labels .ctrl-holder>ul .input-text,.uni-form .inline-labels .ctrl-holder>ul .input-select,.uni-form .inline-labels .ctrl-holder>ul .input-file,.uni-form .inline-labels .ctrl-holder>ul select,.uni-form .inline-labels .ctrl-holder>ul textarea{float:none;display:block;width:100%}.uni-form .inline-labels .ctrl-holder>ul.alternate li{margin-top:0}.uni-form .inline-labels .ctrl-holder>ul.alternate .input-text,.uni-form .inline-labels .ctrl-holder>ul.alternate .input-select,.uni-form .inline-labels .ctrl-holder>ul.alternate .input-file,.uni-form .inline-labels .ctrl-holder>ul.alternate select,.uni-form .inline-labels .ctrl-holder>ul.alternate textarea{width:98%}.uni-form .inline-labels .no-label ul{margin-left:33%}.uni-form .small{width:30%!important}.uni-form .medium{width:45%!important}.uni-form .large{}.uni-form .auto{width:auto!important;height:auto!important}.uni-form .small,.uni-form .medium,.uni-form .auto{margin-right:4px}.uni-form .read-only-label{display:block;margin:0;font-size:1em;font-weight:700}.uni-form .read-only{margin:.5em 0 0}.uni-form .read-only .choice-label{color:#777;text-transform:uppercase;font-size:.8em;letter-spacing:.15em}.uni-form .inline-labels .read-only-label{float:left;position:relative;width:33%;margin:0;padding-right:3%}.uni-form .inline-labels .read-only{float:right;width:67%;margin:0}.uni-form .inline-labels .read-only+.read-only{margin-top:.5em}.uni-form{margin:1.5em 0;padding-top:1px}.uni-form .input-text,.uni-form .input-file,.uni-form .input-select,.uni-form select,.uni-form textarea{width:65%}.uni-form .form-hint{width:33%}.uni-form .ctrl-holder>ul{width:67%}.uni-form .inline-labels .ctrl-holder>label,.uni-form .inline-labels .ctrl-holder>.label{width:33%;padding-right:3%}.uni-form .inline-labels .input-text,.uni-form .inline-labels .input-file,.uni-form .inline-labels .input-select,.uni-form .inline-labels select,.uni-form .inline-labels textarea{width:67%}.uni-form .inline-labels .form-hint{margin-left:33%}.uni-form .inline-labels .ctrl-holder>ul{width:67%}.uni-form .inline-labels .no-label ul{margin-left:33%}.uni-form .uni-form-title{margin:1.5em 0;font-weight:700;font-size:1.25em}.uni-form .ctrl-holder{padding:1em 1em 1.5em;border:1px solid #efefef;border-width:1px 0 0}.uni-form .inline-labels .ctrl-holder{padding:1.5em 1em}.uni-form fieldset .ctrl-holder:last-child{border-bottom-width:1px}.uni-form .ctrl-holder.focused{background:#fffcdf}.uni-form .button-holder{background:#efefef;margin-top:1.5em;padding:1.5em;border-radius:4px}.uni-form .action-primary{padding:1em 2em;line-height:1;background:#254a86;border:1px solid #163362;font-size:12px;font-weight:700;color:#fff;border-radius:4px;text-shadow:-1px -1px 0 rgba(0,0,0,.25)}.uni-form .action-primary:focus,.uni-form .action-primary:hover{background:#2b58a1}.uni-form .action-primary:active{background:#1d3c6d;box-shadow:0 1px 3px rgba(0,0,0,.5) inset}.uni-form .action-secondary{float:right;color:#999}.uni-form button.action-secondary,.uni-form input[type=submit].action-secondary{background:transparent;border:0;color:#999;margin:1em 0 0;padding:0}.uni-form .inline-labels label em,.uni-form .inline-labels .label em{font-style:inherit;font-weight:inherit}.uni-form .input-text,.uni-form textarea{padding:5px;border:1px solid #aaa;background:#fff;border-radius:2px;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.15) inset;box-shadow:1px 1px 3px rgba(0,0,0,.15) inset}.uni-form .input-text:focus,.uni-form textarea:focus{border-color:#343434}.uni-form textarea{height:12em}.uni-form .ctrl-holder>ul label{margin-top:.35em;font-size:.85em}.uni-form .form-hint{padding-top:.3em;font-size:.85em;color:#999}.uni-form .ctrl-holder.focused .form-hint{color:#343434}.uni-form #errorMsg{background:#ffdfdf;border:1px solid #f3afb5;margin:1.5em 0;padding:0 1.5em;border-radius:4px}.uni-form #errorMsg h3{margin:1em 0 0}.uni-form #errorMsg ol{margin:1.5em 0;padding:0}.uni-form #errorMsg li{list-style:none;margin:0 0 4px;padding:7px;background:#f6bec1;position:relative;font-size:.85em;border-radius:3px}.uni-form .ctrl-holder.error,.uni-form .ctrl-holder.focused.error{background:#ffdfdf;border-color:#f3afb5}.uni-form .ctrl-holder.error input.error,.uni-form .ctrl-holder.error select.error,.uni-form .ctrl-holder.error textarea.error{color:#af4c4c;margin:0 0 6px;padding:4px;border:1px solid #c55f68}.uni-form #okMsg{background:#e1f4cd;border:1px solid #b6cda4;margin:0 0 1.5em;padding:1.5em;text-align:center;border-radius:4px}.uni-form #okMsg p{margin:0}
14
+
15
+ .sk-circle{margin:40px auto;width:40px;height:40px;position:relative}.sk-circle .sk-child{width:100%;height:100%;position:absolute;left:0;top:0}.sk-circle .sk-child:before{content:'';display:block;margin:0 auto;width:15%;height:15%;background-color:#333;border-radius:100%;-webkit-animation:sk-circleBounceDelay 1.2s infinite ease-in-out both;animation:sk-circleBounceDelay 1.2s infinite ease-in-out both}.sk-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-circle .sk-circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-circle .sk-circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-circle .sk-circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-circle .sk-circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-circle .sk-circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-circle .sk-circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-circle .sk-circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-circle .sk-circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-circle .sk-circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-circle .sk-circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-circle .sk-circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-circleBounceDelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-circleBounceDelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}
16
+
17
+ .smform-grid {
18
+ width : 100%;
19
+ max-width : 1200px;
20
+ margin-top: 25px;
21
+ clear: both;
22
+ }
23
+
24
+ .smform-gridrow:before, .smform-gridrow:after {
25
+ content: "";
26
+ display: table;
27
+ clear: both;
28
+ }
29
+
30
+ [class*='smformcol-'] {
31
+ float: left;
32
+ min-height: 1px;
33
+ width: 16.66%;
34
+ /*-- our gutter -- */
35
+ padding: 12px;
36
+ background-color: #FFDCDC;
37
+ }
38
+
39
+ .smformcol-1{ width: 16.66%; }
40
+ .smformcol-2{ width: 33.33%; }
41
+ .smformcol-3{ width: 50%; }
42
+ .smformcol-4{ width: 66.66%; }
43
+ .smformcol-5{ width: 83.33%; }
44
+ .smformcol-6{ width: 100%; }
45
+
46
+ .smform-grid-outline, .smform-grid-outline * {
47
+ outline: 1px solid #F6A1A1;
48
+ }
49
+
50
+
51
+ .smform-multipage-steps-cont {
52
+ padding-bottom: 25px;
53
+ }
54
+
55
+ .smform-multipage-steps * {
56
+ box-sizing: border-box;
57
+ }
58
+
59
+
60
+
61
+ .smform-multipage-steps {
62
+ padding: 0;
63
+ list-style-type: none;
64
+ font-family: arial;
65
+ font-size: 12px;
66
+ clear: both;
67
+ line-height: 1em;
68
+ margin: 0 -1px;
69
+ text-align: center;
70
+ }
71
+
72
+ .smform-multipage-steps li {
73
+ float: left;
74
+ padding: 10px 30px 10px 40px;
75
+ background: #555;
76
+ color: #fff;
77
+ position: relative;
78
+ border-top: 1px solid #666;
79
+ border-bottom: 1px solid #666;
80
+ width: 32%;
81
+ margin: 0 1px;
82
+ margin-bottom: 25px;
83
+ }
84
+
85
+ .smform-multipage-steps li:before {
86
+ content: '';
87
+ border-left: 16px solid #fff;
88
+ border-top: 16px solid transparent;
89
+ border-bottom: 16px solid transparent;
90
+ position: absolute;
91
+ top: 0;
92
+ left: 0;
93
+
94
+ }
95
+ .smform-multipage-steps li:after {
96
+ content: '';
97
+ border-left: 16px solid #555;
98
+ border-top: 16px solid transparent;
99
+ border-bottom: 16px solid transparent;
100
+ position: absolute;
101
+ top: 0;
102
+ left: 100%;
103
+ z-index: 20;
104
+ }
105
+
106
+ .smform-multipage-steps li.active {
107
+ background: #333;
108
+ }
109
+
110
+ .smform-multipage-steps li.active:after {
111
+ border-left-color: #333;
112
+ }
113
+
114
+ .smform {
115
+
116
+ font-size: 16.5px;
117
+ color: #333;
118
+ }
119
+
120
+ .smform input[type="text"], .smform input[type="email"], .smform input[type="url"], .smform input[type="password"], .smform input[type="search"], .smform textarea, .smform input[type="number"] {
121
+ padding: 0.375em;
122
+ }
123
+
124
+ .smform button,.smform input,.smform select,.smform textarea {
125
+ /*background-color: #f7f7f7;*/
126
+ /*border-radius: 0;*/
127
+ font-size: 16px;
128
+ }
129
+
130
+ .smform input:focus,.smform select:focus,.smform textarea:focus {
131
+ /*background-color: #fff;*/
132
+ }
133
+
134
+ .smform-fieldcont .smform-controltextarea {
135
+ height: 12em;
136
+ }
137
+
138
+ .smform legend {
139
+ display: block;
140
+ width: 100%;
141
+ padding: 0;
142
+ margin-bottom: 20px;
143
+ font-size: 16px;
144
+ line-height: inherit;
145
+ color: #333;
146
+ border: 0;
147
+ border-bottom: 1px solid #e5e5e5;
148
+ }
149
+
150
+ .smform legend .smform-title, .smform legend .smsection-title{
151
+
152
+ font-weight: bolder;
153
+ font-size: 24px;
154
+ margin-top: 20px;
155
+ margin-bottom: 10px;
156
+
157
+ }
158
+
159
+ .smform legend .smform-description p, .smform legend .smsection-description p{
160
+ line-height: 1.6;
161
+ margin: 0 0 10px;
162
+ }
163
+
164
+ .smform-labelhidden {
165
+ position: absolute;
166
+ width: 1px;
167
+ height: 1px;
168
+ padding: 0;
169
+ margin: -1px;
170
+ overflow: hidden;
171
+ clip: rect(0,0,0,0);
172
+ border: 0;
173
+ }
174
+
175
+ .smform-field-sizesmall {
176
+ width: 30% !important;
177
+ }
178
+
179
+ .smform-field-sizemedium {
180
+ width: 50% !important;
181
+ }
182
+
183
+ .smform-field-sizelarge {
184
+ width: 100% !important;
185
+ }
186
+
187
+ .smform-fieldcont {
188
+ margin-bottom: 25px !important;
189
+ }
190
+
191
+ .smform-control:focus {
192
+ border-color: #66afe9;
193
+ outline: 0;
194
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
195
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
196
+ }
197
+
198
+ .smform-control {
199
+ display: block;
200
+ width: 100%;
201
+ height: 34px;
202
+ padding: 6px 12px;
203
+ font-size: 14px;
204
+ line-height: 1.42857143;
205
+ color: #555;
206
+ background-color: #fff;
207
+ background-image: none;
208
+ border: 1px solid #ccc;
209
+ border-radius: 4px;
210
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
211
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
212
+ -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
213
+ -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
214
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
215
+ }
216
+
217
+ .smform-field-label.required:after {
218
+ content: "*";
219
+ color: red;
220
+ }
221
+
222
+ .smform-field-label {
223
+ cursor: pointer;
224
+ /*color: #333 !important;*/
225
+ display: inline-block;
226
+ max-width: 100%;
227
+ margin-bottom: 5px;
228
+ font-weight: 700;
229
+ }
230
+
231
+ #smform-submitbtn-cont input{
232
+ margin-top: 15px;
233
+ }
234
+
235
+ .smInlineForm span {
236
+ float: left;
237
+ margin: 0;
238
+ margin-right: 5px;
239
+ }
240
+
241
+ .smInlineForm label {
242
+ margin: 0;
243
+ padding: 0;
244
+ }
245
+
246
+ .smInlineForm.smInlineFormDate span{
247
+ width: 63px;
248
+ }
249
+
250
+ .smInlineFormAddress span {
251
+ margin-bottom: 15px !important;
252
+ }
253
+
254
+ .smFormAddressMargin{ margin-bottom: 15px !important; }
255
+
256
+ .smform-fieldcont[data-rule="enabled"] {
257
+ display: none;
258
+ }
259
+
260
+ .smform-ajax-spinner{
261
+ display: inline-block;
262
+ margin-left: 20px !important;
263
+ }
264
+
265
+ .smform-ajax-spinner .sk-circle{
266
+ display: none;
267
+ }
268
+
269
+ .smform-ajax-msg {
270
+ display: none;
271
+ padding: 15px !important;
272
+ margin-bottom: 20px !important;
273
+ border: 1px solid transparent;
274
+ border-radius: 4px;
275
+ color: #3c763d;
276
+ background-color: #dff0d8;
277
+ border: 1px solid #d6e9c6;
278
+ margin-top: 20px !important;
279
+ }
280
+
281
+ .smform-errors-cont {
282
+ color: #a94442;
283
+ background-color: #f2dede;
284
+ border-color: #ebccd1;
285
+ display: none;
286
+ margin-top: 20px !important;
287
+ padding: 15px !important;
288
+ }
289
+
290
+ .smform-error-field-label {
291
+ color: #a94442 !important;
292
+ font-weight: bold !important;
293
+ }
294
+
295
+ .smform-labelposleft .smform-controllabelpos, .smform-labelposleft .smFormInlineFormCont {
296
+ display: inline-block !important;
297
+ }
298
+ .smform-labelposleft .smform-field-label {
299
+ margin-bottom: 0;
300
+ vertical-align: middle;
301
+ margin-right: 10px !important;
302
+ width: 150px;
303
+ }
304
+
305
+ .smform-labelposleft .smform-controllabelpos-radio {
306
+ display: inline !important;
307
+ margin-right: 10px !important;
308
+ }
309
+
310
+ .smform-controllabelpos-radio { border: 0px; box-shadow: none; }
311
+
312
+ .smform-fieldcont label.error { color: red; }
313
+
314
+ .smform-fieldconttextarea textarea{ min-height: 200px; }
315
+
public/assets/css/index.php ADDED
File without changes
public/assets/img/index.php ADDED
File without changes
public/assets/index.php ADDED
File without changes
public/assets/js/index.php ADDED
File without changes
public/assets/js/jquery-validate.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /*! jQuery Validation Plugin - v1.15.0 - 2/24/2016
2
+ * http://jqueryvalidation.org/
3
+ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
4
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){if(this.length){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||-1!==a.inArray(c.keyCode,d)||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this.form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=h&&g.check(e)))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]),d in c||!b.objectLength(a(this).rules())?!1:(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=b.hasAttribute("contenteditable")?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if("function"==typeof f.normalizer){if(i=f.normalizer.call(b,i),"string"!=typeof i)throw new TypeError("The normalizer should return a string value.");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j instanceof TypeError&&(j.message+=". Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e=a(c).attr("type"),f="Step attribute on input type "+e+" is not supported.",g=["text","number","range"],h=new RegExp("\\b"+e+"\\b"),i=e&&!h.test(g.join());if(i)throw new Error(f);return this.optional(c)||b%d===0},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)})});
5
+ /*! jQuery Validation Plugin - v1.15.0 - 2/24/2016
6
+ * http://jqueryvalidation.org/
7
+ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
8
+ !function(a){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){!function(){function b(a){return a.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}a.validator.addMethod("maxWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length<=d},a.validator.format("Please enter {0} words or less.")),a.validator.addMethod("minWords",function(a,c,d){return this.optional(c)||b(a).match(/\b\w+\b/g).length>=d},a.validator.format("Please enter at least {0} words.")),a.validator.addMethod("rangeWords",function(a,c,d){var e=b(a),f=/\b\w+\b/g;return this.optional(c)||e.match(f).length>=d[0]&&e.match(f).length<=d[1]},a.validator.format("Please enter between {0} and {1} words."))}(),a.validator.addMethod("accept",function(b,c,d){var e,f,g,h="string"==typeof d?d.replace(/\s/g,""):"image/*",i=this.optional(c);if(i)return i;if("file"===a(c).attr("type")&&(h=h.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace("/*","/.*"),c.files&&c.files.length))for(g=new RegExp(".?("+h+")$","i"),e=0;e<c.files.length;e++)if(f=c.files[e],!f.type.match(g))return!1;return!0},a.validator.format("Please enter a value with a valid mimetype.")),a.validator.addMethod("alphanumeric",function(a,b){return this.optional(b)||/^\w+$/i.test(a)},"Letters, numbers, and underscores only please"),a.validator.addMethod("bankaccountNL",function(a,b){if(this.optional(b))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(a))return!1;var c,d,e,f=a.replace(/ /g,""),g=0,h=f.length;for(c=0;h>c;c++)d=h-c,e=f.substring(c,c+1),g+=d*e;return g%11===0},"Please specify a valid bank account number"),a.validator.addMethod("bankorgiroaccountNL",function(b,c){return this.optional(c)||a.validator.methods.bankaccountNL.call(this,b,c)||a.validator.methods.giroaccountNL.call(this,b,c)},"Please specify a valid bank or giro account number"),a.validator.addMethod("bic",function(a,b){return this.optional(b)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(a.toUpperCase())},"Please specify a valid BIC code"),a.validator.addMethod("cifES",function(a){"use strict";var b,c,d,e,f,g,h=[];if(a=a.toUpperCase(),!a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))return!1;for(d=0;9>d;d++)h[d]=parseInt(a.charAt(d),10);for(c=h[2]+h[4]+h[6],e=1;8>e;e+=2)f=(2*h[e]).toString(),g=f.charAt(1),c+=parseInt(f.charAt(0),10)+(""===g?0:parseInt(g,10));return/^[ABCDEFGHJNPQRSUVW]{1}/.test(a)?(c+="",b=10-parseInt(c.charAt(c.length-1),10),a+=b,h[8].toString()===String.fromCharCode(64+b)||h[8].toString()===a.charAt(a.length-1)):!1},"Please specify a valid CIF number."),a.validator.addMethod("cpfBR",function(a){if(a=a.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==a.length)return!1;var b,c,d,e,f=0;if(b=parseInt(a.substring(9,10),10),c=parseInt(a.substring(10,11),10),d=function(a,b){var c=10*a%11;return 10!==c&&11!==c||(c=0),c===b},""===a||"00000000000"===a||"11111111111"===a||"22222222222"===a||"33333333333"===a||"44444444444"===a||"55555555555"===a||"66666666666"===a||"77777777777"===a||"88888888888"===a||"99999999999"===a)return!1;for(e=1;9>=e;e++)f+=parseInt(a.substring(e-1,e),10)*(11-e);if(d(f,b)){for(f=0,e=1;10>=e;e++)f+=parseInt(a.substring(e-1,e),10)*(12-e);return d(f,c)}return!1},"Please specify a valid CPF number"),a.validator.addMethod("creditcard",function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},"Please enter a valid credit card number."),a.validator.addMethod("creditcardtypes",function(a,b,c){if(/[^0-9\-]+/.test(a))return!1;a=a.replace(/\D/g,"");var d=0;return c.mastercard&&(d|=1),c.visa&&(d|=2),c.amex&&(d|=4),c.dinersclub&&(d|=8),c.enroute&&(d|=16),c.discover&&(d|=32),c.jcb&&(d|=64),c.unknown&&(d|=128),c.all&&(d=255),1&d&&/^(5[12345])/.test(a)?16===a.length:2&d&&/^(4)/.test(a)?16===a.length:4&d&&/^(3[47])/.test(a)?15===a.length:8&d&&/^(3(0[012345]|[68]))/.test(a)?14===a.length:16&d&&/^(2(014|149))/.test(a)?15===a.length:32&d&&/^(6011)/.test(a)?16===a.length:64&d&&/^(3)/.test(a)?16===a.length:64&d&&/^(2131|1800)/.test(a)?15===a.length:!!(128&d)},"Please enter a valid credit card number."),a.validator.addMethod("currency",function(a,b,c){var d,e="string"==typeof c,f=e?c:c[0],g=e?!0:c[1];return f=f.replace(/,/g,""),f=g?f+"]":f+"]?",d="^["+f+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",d=new RegExp(d),this.optional(b)||d.test(a)},"Please specify a valid currency"),a.validator.addMethod("dateFA",function(a,b){return this.optional(b)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(a)},a.validator.messages.date),a.validator.addMethod("dateITA",function(a,b){var c,d,e,f,g,h=!1,i=/^\d{1,2}\/\d{1,2}\/\d{4}$/;return i.test(a)?(c=a.split("/"),d=parseInt(c[0],10),e=parseInt(c[1],10),f=parseInt(c[2],10),g=new Date(Date.UTC(f,e-1,d,12,0,0,0)),h=g.getUTCFullYear()===f&&g.getUTCMonth()===e-1&&g.getUTCDate()===d):h=!1,this.optional(b)||h},a.validator.messages.date),a.validator.addMethod("dateNL",function(a,b){return this.optional(b)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(a)},a.validator.messages.date),a.validator.addMethod("extension",function(a,b,c){return c="string"==typeof c?c.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(b)||a.match(new RegExp("\\.("+c+")$","i"))},a.validator.format("Please enter a value with a valid extension.")),a.validator.addMethod("giroaccountNL",function(a,b){return this.optional(b)||/^[0-9]{1,7}$/.test(a)},"Please specify a valid giro account number"),a.validator.addMethod("iban",function(a,b){if(this.optional(b))return!0;var c,d,e,f,g,h,i,j,k,l=a.replace(/ /g,"").toUpperCase(),m="",n=!0,o="",p="";if(c=l.substring(0,2),h={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},g=h[c],"undefined"!=typeof g&&(i=new RegExp("^[A-Z]{2}\\d{2}"+g+"$",""),!i.test(l)))return!1;for(d=l.substring(4,l.length)+l.substring(0,4),j=0;j<d.length;j++)e=d.charAt(j),"0"!==e&&(n=!1),n||(m+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e));for(k=0;k<m.length;k++)f=m.charAt(k),p=""+o+f,o=p%97;return 1===o},"Please specify a valid IBAN"),a.validator.addMethod("integer",function(a,b){return this.optional(b)||/^-?\d+$/.test(a)},"A positive or negative non-decimal number please"),a.validator.addMethod("ipv4",function(a,b){return this.optional(b)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(a)},"Please enter a valid IP v4 address."),a.validator.addMethod("ipv6",function(a,b){return this.optional(b)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(a)},"Please enter a valid IP v6 address."),a.validator.addMethod("lettersonly",function(a,b){return this.optional(b)||/^[a-z]+$/i.test(a)},"Letters only please"),a.validator.addMethod("letterswithbasicpunc",function(a,b){return this.optional(b)||/^[a-z\-.,()'"\s]+$/i.test(a)},"Letters or punctuation only please"),a.validator.addMethod("mobileNL",function(a,b){return this.optional(b)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(a)},"Please specify a valid mobile number"),a.validator.addMethod("mobileUK",function(a,b){return a=a.replace(/\(|\)|\s+|-/g,""),this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number"),a.validator.addMethod("nieES",function(a){"use strict";return a=a.toUpperCase(),a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[T]{1}/.test(a)?a[8]===/^[T]{1}[A-Z0-9]{8}$/.test(a):/^[XYZ]{1}/.test(a)?a[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(a.replace("X","0").replace("Y","1").replace("Z","2").substring(0,8)%23):!1:!1},"Please specify a valid NIE number."),a.validator.addMethod("nifES",function(a){"use strict";return a=a.toUpperCase(),a.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")?/^[0-9]{8}[A-Z]{1}$/.test(a)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(a.substring(8,0)%23)===a.charAt(8):/^[KLM]{1}/.test(a)?a[8]===String.fromCharCode(64):!1:!1},"Please specify a valid NIF number."),jQuery.validator.addMethod("notEqualTo",function(b,c,d){return this.optional(c)||!a.validator.methods.equalTo.call(this,b,c,d)},"Please enter a different value, values must not be the same."),a.validator.addMethod("nowhitespace",function(a,b){return this.optional(b)||/^\S+$/i.test(a)},"No white space please"),a.validator.addMethod("pattern",function(a,b,c){return this.optional(b)?!0:("string"==typeof c&&(c=new RegExp("^(?:"+c+")$")),c.test(a))},"Invalid format."),a.validator.addMethod("phoneNL",function(a,b){return this.optional(b)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(a)},"Please specify a valid phone number."),a.validator.addMethod("phoneUK",function(a,b){return a=a.replace(/\(|\)|\s+|-/g,""),this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number"),a.validator.addMethod("phoneUS",function(a,b){return a=a.replace(/\s+/g,""),this.optional(b)||a.length>9&&a.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/)},"Please specify a valid phone number"),a.validator.addMethod("phonesUK",function(a,b){return a=a.replace(/\(|\)|\s+|-/g,""),this.optional(b)||a.length>9&&a.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number"),a.validator.addMethod("postalCodeCA",function(a,b){return this.optional(b)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postalcodeBR",function(a,b){return this.optional(b)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(a)},"Informe um CEP válido."),a.validator.addMethod("postalcodeIT",function(a,b){return this.optional(b)||/^\d{5}$/.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postalcodeNL",function(a,b){return this.optional(b)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(a)},"Please specify a valid postal code"),a.validator.addMethod("postcodeUK",function(a,b){return this.optional(b)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(a)},"Please specify a valid UK postcode"),a.validator.addMethod("require_from_group",function(b,c,d){var e=a(d[1],c.form),f=e.eq(0),g=f.data("valid_req_grp")?f.data("valid_req_grp"):a.extend({},this),h=e.filter(function(){return g.elementValue(this)}).length>=d[0];return f.data("valid_req_grp",g),a(c).data("being_validated")||(e.data("being_validated",!0),e.each(function(){g.element(this)}),e.data("being_validated",!1)),h},a.validator.format("Please fill at least {0} of these fields.")),a.validator.addMethod("skip_or_fill_minimum",function(b,c,d){var e=a(d[1],c.form),f=e.eq(0),g=f.data("valid_skip")?f.data("valid_skip"):a.extend({},this),h=e.filter(function(){return g.elementValue(this)}).length,i=0===h||h>=d[0];return f.data("valid_skip",g),a(c).data("being_validated")||(e.data("being_validated",!0),e.each(function(){g.element(this)}),e.data("being_validated",!1)),i},a.validator.format("Please either skip these fields or fill at least {0} of them.")),a.validator.addMethod("stateUS",function(a,b,c){var d,e="undefined"==typeof c,f=e||"undefined"==typeof c.caseSensitive?!1:c.caseSensitive,g=e||"undefined"==typeof c.includeTerritories?!1:c.includeTerritories,h=e||"undefined"==typeof c.includeMilitary?!1:c.includeMilitary;return d=g||h?g&&h?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":g?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",d=f?new RegExp(d):new RegExp(d,"i"),this.optional(b)||d.test(a)},"Please specify a valid state"),a.validator.addMethod("strippedminlength",function(b,c,d){return a(b).text().length>=d},a.validator.format("Please enter at least {0} characters")),a.validator.addMethod("time",function(a,b){return this.optional(b)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(a)},"Please enter a valid time, between 00:00 and 23:59"),a.validator.addMethod("time12h",function(a,b){return this.optional(b)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(a)},"Please enter a valid time in 12-hour am/pm format"),a.validator.addMethod("url2",function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},a.validator.messages.url),a.validator.addMethod("vinUS",function(a){if(17!==a.length)return!1;var b,c,d,e,f,g,h=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],i=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],j=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],k=0;for(b=0;17>b;b++){if(e=j[b],d=a.slice(b,b+1),8===b&&(g=d),isNaN(d)){for(c=0;c<h.length;c++)if(d.toUpperCase()===h[c]){d=i[c],d*=e,isNaN(g)&&8===c&&(g=h[c]);break}}else d*=e;k+=d}return f=k%11,10===f&&(f="X"),f===g},"The specified vehicle identification number (VIN) is invalid."),a.validator.addMethod("zipcodeUS",function(a,b){return this.optional(b)||/^\d{5}(-\d{4})?$/.test(a)},"The specified US ZIP Code is invalid"),a.validator.addMethod("ziprange",function(a,b){return this.optional(b)||/^90[2-5]\d\{2\}-\d{4}$/.test(a)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx")});
public/assets/js/smuzforms.js ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+
3
+ $('.smform').validate();
4
+
5
+ /**
6
+ Enable ajax form.
7
+ **/
8
+
9
+ $('form.smform').submit(function() {
10
+
11
+ if ( $( ':file', $(this) ).length >= 1 )
12
+ return true;
13
+
14
+ if ( ! $('.smform').valid() )
15
+ return false;
16
+
17
+ var form = $(this);
18
+
19
+ var spinner = $( '.smform-ajax-spinner .sk-circle', form );
20
+
21
+ var submitBtn = $( '.smform-submit', form );
22
+
23
+ var successMsg = $( '.smform-ajax-msg', form );
24
+
25
+ var errorCont = $( '.smform-errors-cont', form );
26
+
27
+ var action = $(this).prop( 'action' );
28
+
29
+ action = action + '&use=ajax';
30
+
31
+ spinner.show();
32
+ submitBtn.prop( 'disabled', true );
33
+
34
+ $.post( action, form.serialize(), function( resp ) {
35
+
36
+ var response = JSON.parse( resp );
37
+
38
+ if ( response.signal ) {
39
+
40
+ if ( response.isMsg ) {
41
+ successMsg.text( response.thanksMsg );
42
+ successMsg.fadeIn();
43
+ errorCont.fadeOut();
44
+ } else {
45
+ window.location = response.redirectUrl;
46
+ }
47
+
48
+ form[0].reset();
49
+
50
+ $( document ).trigger( 'smuzFormSubmitSuccess', [ form, response ] );
51
+
52
+ } else {
53
+
54
+ var errors = response.errors;
55
+
56
+ var errorHtml = '';
57
+
58
+ for ( var i = 0; i < errors.length; i++ ) {
59
+
60
+ var item = '<li class="smform-error-field"><strong class="smform-error-field-label">'+ errors[i].additionalData.fieldLabel +'! </strong> '+ errors[i].message +'</li>';
61
+ errorHtml = errorHtml + item;
62
+
63
+ }
64
+
65
+ errorHtml = '<ul>' + errorHtml + '</ul>';
66
+
67
+ errorCont.html( errorHtml );
68
+
69
+ errorCont.fadeIn();
70
+
71
+ $('html, body').animate({
72
+ scrollTop: errorCont.offset().top - 200
73
+ }, 200);
74
+
75
+ successMsg.fadeOut();
76
+
77
+ $( document ).trigger( 'smuzFormSubmitError', [ form, response ] );
78
+
79
+ }
80
+
81
+
82
+
83
+
84
+ }).always( function() {
85
+
86
+ spinner.hide();
87
+
88
+ submitBtn.prop( 'disabled', false );
89
+
90
+ });
91
+
92
+ return false;
93
+ });
94
+
95
+ /**
96
+ Bind Conditonal Logic for form fields.
97
+ **/
98
+ $('.smform-fieldcont').each( function( index, elem) {
99
+
100
+ var enabled = $(this).data('rule'),
101
+ action = $(this).data('ruleaction'),
102
+ operator = $(this).data('ruleoperator'),
103
+ cmpValue = $(this).data('rulecmpvalue'),
104
+ field = $(this).data('rulefield'),
105
+ parentElementRef = $(this);
106
+
107
+ var fieldBind = 'smFieldData[' + field + ']';
108
+
109
+ if ( field === '' || action === '' || operator === '' ) return;
110
+
111
+ if ( enabled === 'enabled' ) {
112
+
113
+ if ( action === 'hide' )
114
+ parentElementRef.show();
115
+
116
+ var bindTo = 'input[name="'+fieldBind+'"]';
117
+
118
+ $(bindTo).on( 'change', function(e) {
119
+
120
+ var applyRules = false,
121
+ bindToValue = $(this).val();
122
+ revertAction = false;
123
+
124
+ if ( operator === 'is' ) {
125
+
126
+ if ( cmpValue.toLowerCase() === bindToValue.toLowerCase() )
127
+ applyRules = true;
128
+
129
+ } else if ( operator === 'isNot' ) {
130
+
131
+ if ( cmpValue.toLowerCase() !== bindToValue.toLowerCase() )
132
+ applyRules = true;
133
+
134
+ } else { applyRules = false; }
135
+
136
+ if ( applyRules ) {
137
+
138
+ if ( action === 'show' ) {
139
+
140
+ parentElementRef.show();
141
+
142
+ }
143
+
144
+ if ( action === 'hide' ) {
145
+
146
+ parentElementRef.hide();
147
+
148
+ }
149
+
150
+ } else {
151
+
152
+ if ( action === 'show' )
153
+ parentElementRef.hide();
154
+ else if ( action === 'hide' )
155
+ parentElementRef.show();
156
+
157
+ }
158
+
159
+ });
160
+
161
+ }
162
+
163
+ }); //End Logic;
164
+
165
+ if ( $('.smform-multipage').length ) {
166
+ $(document).ready(function(){
167
+ var current = 1;
168
+
169
+ widget = $(".smformpage");
170
+ btnnext = $(".smform-multipage-next");
171
+ btnback = $(".smform-multipage-back");
172
+ btnsubmit = $(".smform-multipage-submit");
173
+
174
+ // Init buttons and UI
175
+ widget.not(':eq(0)').hide();
176
+ hideButtons(current);
177
+ setProgress(current);
178
+
179
+ // Next button click action
180
+ btnnext.click(function(){
181
+ if(current < widget.length){
182
+ // Check validation
183
+ if($(".smform-multipage").valid()){
184
+ widget.show();
185
+ widget.not(':eq('+(current++)+')').hide();
186
+ //setProgress(current);
187
+ manageActiveTab(current);
188
+ }
189
+ }
190
+ hideButtons(current);
191
+ })
192
+
193
+ // Submit button click
194
+ btnsubmit.click(function(){
195
+ $('form.smform-multipage').submit();
196
+ });
197
+
198
+
199
+ // Back button click action
200
+ btnback.click(function(){
201
+ if(current > 1){
202
+ current = current - 2;
203
+ if(current < widget.length){
204
+ widget.show();
205
+ widget.not(':eq('+(current++)+')').hide();
206
+ //setProgress(current);
207
+ manageActiveTab(current);
208
+ }
209
+ }
210
+ hideButtons(current);
211
+ })
212
+
213
+ $('.smform-multipage').validate({ // initialize plugin
214
+ ignore:":not(:visible)"
215
+ });
216
+
217
+ });
218
+
219
+ // Change progress bar action
220
+ setProgress = function(currstep){
221
+ var percent = parseFloat(100 / widget.length) * currstep;
222
+ percent = percent.toFixed();
223
+ $(".progress-bar").css("width",percent+"%").html(percent+"%");
224
+ }
225
+
226
+ // Hide buttons according to the current step
227
+ hideButtons = function(current){
228
+ var limit = parseInt(widget.length);
229
+
230
+ $(".action").hide();
231
+
232
+ if(current < limit) btnnext.show();
233
+ if(current > 1) btnback.show();
234
+ if (current == limit) {
235
+ // Show entered values
236
+ $(".display label.lbl").each(function(){
237
+ $(this).html($("#"+$(this).data("id")).val());
238
+ });
239
+ btnnext.hide();
240
+ btnsubmit.show();
241
+ }
242
+ }
243
+
244
+ manageActiveTab = function(currstep) {
245
+
246
+ if ( currstep < 1 )
247
+ return false;
248
+
249
+ $('.smform-multipage-step').each( function( index, elem ) {
250
+
251
+ $(this).removeClass('active');
252
+
253
+ var pageid = parseInt( $(this).data('page') ) + 1;
254
+
255
+ if ( pageid === currstep )
256
+ $(this).addClass('active');
257
+
258
+ });
259
+
260
+ }
261
+ }
262
+
263
+ $('.smformstylehidden').each( function( index, elem ) {
264
+
265
+ if ( $(this).val() === '' || $(this).val() === '[]' )
266
+ return false;
267
+
268
+ var style = JSON.parse( $(this).val() );
269
+
270
+ if ( style.enabled !== true )
271
+ return false;
272
+
273
+ var form = $( '#smform-' + $(this).data('formid') );
274
+
275
+ var cont = $( '#smformcont-' + $(this).data('formid') );
276
+
277
+ var heading = $( '.smform-title', form );
278
+
279
+ var description = $( '.smform-description', form );
280
+
281
+ var fieldLabel = $( '.smform-field-label', form );
282
+
283
+ var fieldInput = $( '.smform-control:not(.radio, .checkbox)', form );
284
+
285
+ var submitBtn = $( '.smform-submit', form );
286
+
287
+ $( '.smform-control', form ).css({
288
+ 'background-color': style.formCont.bgColor
289
+ });
290
+
291
+ cont.css({
292
+ 'font-size': style.formCont.fontSize + 'px',
293
+ 'color': style.formCont.color,
294
+ 'background-color': style.formCont.bgColor,
295
+ 'margin': style.formCont.margin,
296
+ 'padding': style.formCont.padding
297
+ });
298
+
299
+ $('form', cont).css({
300
+ 'font-size': style.formCont.fontSize + 'px',
301
+ 'color': style.formCont.color
302
+ })
303
+
304
+ heading.css({
305
+ 'font-size': style.formHeading.fontSize + 'px',
306
+ 'color': style.formHeading.color,
307
+ 'background-color': style.formHeading.bgColor,
308
+ 'margin': style.formHeading.margin,
309
+ 'padding': style.formHeading.padding
310
+ });
311
+
312
+ description.css({
313
+ 'font-size': style.formDescription.fontSize + 'px',
314
+ 'color': style.formDescription.color,
315
+ 'background-color': style.formDescription.bgColor,
316
+ 'margin': style.formDescription.margin,
317
+ 'padding': style.formDescription.padding
318
+ });
319
+
320
+ $('p', description).css({
321
+ 'font-size': style.fontSize + 'px',
322
+ 'color': style.formDescription.color
323
+ });
324
+
325
+ fieldLabel.css({
326
+ 'font-size': style.fieldLabel.fontSize + 'px',
327
+ 'color': style.fieldLabel.color,
328
+ 'background-color': style.fieldLabel.bgColor,
329
+ 'margin': style.fieldLabel.margin,
330
+ 'padding': style.fieldLabel.padding,
331
+ 'font-weight': style.fieldLabel.fontWeight
332
+ });
333
+
334
+ fieldInput.css({
335
+
336
+ 'font-size': style.fieldInput.fontSize + 'px',
337
+ 'font-weight': style.fieldInput.fontWeight,
338
+ 'color': style.fieldInput.color,
339
+ 'background-color': style.fieldInput.bgColor,
340
+ 'margin-left': style.fieldInput.marginLeft + 'px',
341
+ 'margin-right': style.fieldInput.marginRight + 'px',
342
+ 'margin-top': style.fieldInput.marginTop + 'px',
343
+ 'margin-bottom': style.fieldInput.marginBottom + 'px',
344
+ 'padding-left': style.fieldInput.paddingLeft + 'px',
345
+ 'padding-right': style.fieldInput.paddingRight + 'px',
346
+ 'padding-top': style.fieldInput.paddingTop + 'px',
347
+ 'padding-bottom': style.fieldInput.paddingBottom + 'px',
348
+ 'border-color': style.fieldInput.borderColor,
349
+ 'border-width': style.fieldInput.borderSize + 'px',
350
+ 'border-radius': style.fieldInput.borderRadius + 'px',
351
+ 'border-style': style.fieldInput.borderStyle
352
+
353
+ });
354
+
355
+ submitBtn.css({
356
+
357
+ 'font-size': style.submitBtn.fontSize + 'px',
358
+ 'font-weight': style.submitBtn.fontWeight,
359
+ 'color': style.submitBtn.color,
360
+ 'background-color': style.submitBtn.bgColor,
361
+ 'margin-left': style.submitBtn.marginLeft + 'px',
362
+ 'margin-right': style.submitBtn.marginRight + 'px',
363
+ 'margin-top': style.submitBtn.marginTop + 'px',
364
+ 'margin-bottom': style.submitBtn.marginBottom + 'px',
365
+ 'padding-left': style.submitBtn.paddingLeft + 'px',
366
+ 'padding-right': style.submitBtn.paddingRight + 'px',
367
+ 'padding-top': style.submitBtn.paddingTop + 'px',
368
+ 'padding-bottom': style.submitBtn.paddingBottom + 'px',
369
+ 'border-color': style.submitBtn.borderColor,
370
+ 'border-width': style.submitBtn.borderSize + 'px',
371
+ 'border-radius': style.submitBtn.borderRadius + 'px',
372
+ 'border-style': style.submitBtn.borderStyle
373
+
374
+ });
375
+
376
+
377
+ var selectOfSubmitBtn = '#smformcont-' + $(this).data('formid') + ' .smform-submit';
378
+
379
+ style.submitBtn.hoverBgColor = $('<div />').css('display','none').text(style.submitBtn.hoverBgColor).text();
380
+
381
+ if ( style.submitBtn.hoverBgColor !== '' )
382
+ $('head').append('<style>'+selectOfSubmitBtn+':hover{background-color : ' + style.submitBtn.hoverBgColor + ' !important;}</style>');
383
+
384
+ });
385
+
386
+ })(jQuery);
public/core/class/WPSimpleNonce.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?PHP
2
+ Class SmuzForm_Nonce {
3
+ const option_root ='sf-wp-snc';
4
+ public static function createNonce($name)
5
+ {
6
+ if (is_array($name)) {
7
+ if (isset($name['name'])) {
8
+ $name = $name['name'];
9
+ } else {
10
+ $name = 'nonce';
11
+ }
12
+ }
13
+ $id = self::generate_id();
14
+ $name = substr($name, 0,17).'_'.$id;
15
+ $nonce = md5( wp_salt('nonce') . $name . microtime(true));
16
+ self::storeNonce($nonce,$name);
17
+ return ['name'=>$name,'value'=>$nonce];
18
+ }
19
+ public static function createNonceField($name='nonce')
20
+ {
21
+ if (is_array($name)) {
22
+ if (isset($name['name'])) {
23
+ $name = $name['name'];
24
+ } else {
25
+ $name = 'nonce';
26
+ }
27
+ }
28
+ $name = filter_var($name,FILTER_SANITIZE_STRING);
29
+ $nonce = self::createNonce($name);
30
+ $nonce['value'] = '<input type="hidden" name="' . $nonce['name'] . '" value="'.$nonce['value'].'" />';
31
+ return $nonce;
32
+ }
33
+ public static function checkNonce( $name, $value )
34
+ {
35
+ $name = filter_var($name,FILTER_SANITIZE_STRING);
36
+ $nonce = self::fetchNonce($name);
37
+ $returnValue = ($nonce===$value);
38
+ return $returnValue;
39
+ }
40
+ public static function storeNonce($nonce, $name)
41
+ {
42
+ if (empty($name)) {
43
+ return false;
44
+ }
45
+ add_option(self::option_root.'_'.$name,$nonce);
46
+ add_option(self::option_root.'_expires_'.$name,time()+86400);
47
+ return true;
48
+ }
49
+ protected static function fetchNonce($name)
50
+ {
51
+ $returnValue = get_option(self::option_root.'_'.$name);
52
+ $nonceExpires = get_option(self::option_root.'_expires_'.$name);
53
+
54
+ self::deleteNonce($name);
55
+
56
+ if ($nonceExpires<time()+86400) {
57
+ $returnValue = null;
58
+ }
59
+ return $returnValue;
60
+ }
61
+ public static function deleteNonce($name)
62
+ {
63
+ $optionDeleted = delete_option(self::option_root.'_'.$name);
64
+ $optionDeleted = $optionDeleted && delete_option(self::option_root.'_expires_'.$name);
65
+ return (bool)$optionDeleted;
66
+ }
67
+ public static function clearNonces($force=false)
68
+ {
69
+ if ( defined('WP_SETUP_CONFIG') or defined('WP_INSTALLING') ) {
70
+ return;
71
+ }
72
+ global $wpdb;
73
+ $sql = 'SELECT option_id,
74
+ option_name,
75
+ option_value
76
+ FROM ' . $wpdb->options . '
77
+ WHERE option_name like "'.self::option_root.'_expires_%"';
78
+ $rows = $wpdb->get_results($sql);
79
+ $noncesDeleted = 0;
80
+ foreach ( $rows as $singleNonce )
81
+ {
82
+ if ($force or ($singleNonce->option_value>time()+86400)) {
83
+ $name = substr($singleNonce->option_name, strlen(self::option_root.'_expires_'));
84
+ $noncesDeleted += (self::deleteNonce($name)?1:0);
85
+ }
86
+ }
87
+ return (int)$noncesDeleted;
88
+ }
89
+ protected static function generate_id() {
90
+ require_once( ABSPATH . 'wp-includes/class-phpass.php');
91
+ $hasher = new PasswordHash( 8, false );
92
+ return md5($hasher->get_random_bytes(100,false));
93
+ }
94
+ }
public/core/class/class-smuzform-form.php ADDED
@@ -0,0 +1,1026 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Form {
4
+
5
+ function __construct( $form_id ) {
6
+
7
+ $this->id = $form_id;
8
+
9
+ $object = $this->getFormMeta( 'model' );
10
+
11
+ $this->model = $object;
12
+
13
+ $this->setProperties();
14
+
15
+ }
16
+
17
+ function setProperties() {
18
+
19
+ $model = $this->getModel();
20
+
21
+ $model = apply_filters( 'smform_model_form', $model );
22
+
23
+ $this->title = $model['title'];
24
+
25
+ $this->description = $model['description'];
26
+
27
+ $this->fields = $model['fields'];
28
+
29
+ $this->captcha = $model['captcha'];
30
+
31
+ $this->lang = $model['lang'];
32
+
33
+ $this->labelPlacement = $model['labelPlacement'];
34
+
35
+ $this->confirmationOption = $model['confirmationOption'];
36
+
37
+ $this->textMessage = $model['textMessage'];
38
+
39
+ $this->redirectUrl = $model['redirectUrl'];
40
+
41
+ $this->noOfEntries = $model['noOfEntries'];
42
+
43
+ $this->onlySingleIP = $model['onlySingleIP'];
44
+
45
+ $this->formTimer = $model['formTimer'];
46
+
47
+ $this->formStartTime = $model['formStartTime'];
48
+
49
+ $this->formEndTime = $model['formEndTime'];
50
+
51
+ $this->theme = $model['theme'];
52
+
53
+ $this->extraData = $model['extraData'];
54
+
55
+ $this->confirmationEmailToUser = $model['confirmationEmailToUser'];
56
+
57
+ $this->emailAddressField = $model['emailAddressField'];
58
+
59
+ $this->replyToEmail = $model['replyToEmail'];
60
+
61
+ $this->submitBtn = $model['submitBtn'];
62
+
63
+ $this->submitBtnText = $model['submitBtnText'];
64
+
65
+ $this->errorMessages = $model['errorMessages'];
66
+
67
+ $this->style = $model['style'];
68
+
69
+ }
70
+
71
+ public function getModel() { return $this->model; }
72
+ public function getId() { return $this->id; }
73
+ public function getTitle() { return $this->title; }
74
+ public function getDescription() { return $this->description; }
75
+ public function getFields() { return $this->fields; }
76
+ public function isCaptcha() { return $this->captcha; }
77
+ public function getLanguage() { return $this->lang; }
78
+ public function getLabelPlacement() { return $this->labelPlacement; }
79
+ public function getConfirmationOption() { return $this->confirmationOption; }
80
+ public function getTextMessage() { return $this->textMessage; }
81
+ public function getRedirectUrl() { return $this->redirectUrl; }
82
+ public function getNoOfEntries() { return $this->noOfEntries; }
83
+ public function isOnlySingleIP() { return $this->onlySingleIP; }
84
+ public function isFormTimer() { return $this->formTimer; }
85
+ public function getFormStartTime() { return $this->formStartTime; }
86
+ public function getFormEndTime() { return $this->formEndTime; }
87
+ public function getTheme() { return $this->theme; }
88
+ public function getExtraData() { return $this->extraData; }
89
+ public function getConfirmationEmailToUser() { return $this->confirmationEmailToUser; }
90
+ public function getEmailAddressField() { return $this->emailAddressField; }
91
+ public function getReplyToEmail() { return $this->replyToEmail; }
92
+ public function getSubmitBtn() { return $this->submitBtn; }
93
+ public function getSubmitBtnText() { return $this->submitBtnText; }
94
+ public function getErrorMessages() { return $this->errorMessages; }
95
+
96
+ public function totalFields() { return count( $this->getFields() ); }
97
+
98
+ public function getStyle() { return $this->style; }
99
+
100
+ public function getFormMeta( $key, $single = true ) {
101
+
102
+ return get_post_meta( $this->id, $key, $single );
103
+
104
+ }
105
+
106
+ public function getFieldByCssId( $id ) {
107
+
108
+ $fields = $this->getFields();
109
+
110
+ foreach( $fields as $field ) {
111
+
112
+ if ( $field['cssID'] === $id )
113
+ return $field;
114
+
115
+ }
116
+
117
+ return false;
118
+
119
+ }
120
+
121
+ public function getFieldByLabel( $label ) {
122
+
123
+ if ( empty( $label ) )
124
+ return false;
125
+
126
+ $fields = $this->getFields();
127
+
128
+ foreach( $fields as $field ) {
129
+
130
+ if ( $field['label'] === $label )
131
+ return $field;
132
+
133
+ }
134
+
135
+ return false;
136
+
137
+ }
138
+
139
+ public function isFieldRequired( $id ) {
140
+
141
+ if ( is_array( $id ) )
142
+ return $id['required'];
143
+
144
+ $field = $this->getFieldByCssId( $id );
145
+
146
+ if ( $field )
147
+ return $field['required'];
148
+
149
+ return null;
150
+
151
+ }
152
+
153
+ public function isFieldValueDuplicate( $id, $value ) {
154
+
155
+ /**
156
+ Return FALSE if value is empty. Duplicate Rule will not work for empty
157
+ Values.
158
+ **/
159
+
160
+ if ( empty( $value ) )
161
+ return FALSE;
162
+
163
+ $tmpv = preg_replace('/\s+/', '', $value);
164
+
165
+ if ( empty( $tmpv ) )
166
+ return FALSE;
167
+
168
+ if ( ! is_array( $id ) )
169
+ $field = $this->getFieldByCssId( $id );
170
+ else
171
+ $field = $id;
172
+
173
+ if ( ! is_array( $value ) )
174
+ $value = esc_sql( $value );
175
+
176
+ $value = maybe_serialize( $value );
177
+
178
+ $form_id = $this->getId();
179
+
180
+ global $wpdb;
181
+
182
+ $table = $wpdb->prefix . SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME;
183
+
184
+ $query = $wpdb->prepare( "SELECT id FROM $table where form_id=%d AND field_id=%s AND value=%s LIMIT 1;", $form_id, $field['cssID'], $value );
185
+
186
+ $query = $wpdb->get_var( $query );
187
+
188
+ if ( $wpdb->num_rows > 0 )
189
+ return true;
190
+
191
+ return false;
192
+
193
+ }
194
+
195
+ public function isFieldValueValidMaxLength( $id, $value ) {
196
+
197
+ if ( ! is_array( $id ) )
198
+ $field = $this->getFieldByCssId( $id );
199
+
200
+ $field = $id;
201
+
202
+ $maxLength = str_replace(' ', '', $field['rangeMax']);
203
+
204
+ if ( empty( $maxLength ) )
205
+ return true;
206
+
207
+ if ( $field['type'] == 'textarea' ) {
208
+
209
+ if ( str_word_count( $value ) > $maxLength )
210
+ return false;
211
+
212
+ return true;
213
+
214
+ }
215
+
216
+ if ( ! empty( $maxLength ) && ( mb_strlen( $value ) > intval($maxLength) ) )
217
+ return null;
218
+
219
+ return true;
220
+
221
+ }
222
+
223
+ public function isFieldValueValidMinLength( $id, $value ) {
224
+
225
+ if ( ! is_array( $id ) )
226
+ $field = $this->getFieldByCssId( $id );
227
+
228
+ $field = $id;
229
+
230
+ $minLength = str_replace(' ', '', $field['rangeMin']);
231
+
232
+ if ( empty( $minLength ) )
233
+ return true;
234
+
235
+ if ( $field['type'] == 'textarea' ) {
236
+
237
+ if ( str_word_count( $value ) < $minLength )
238
+ return false;
239
+
240
+ return true;
241
+
242
+ }
243
+
244
+ if ( ! empty( $minLength ) && ( mb_strlen( $value ) < intval($minLength) ) )
245
+ return false;
246
+
247
+ return true;
248
+
249
+ }
250
+
251
+ public function verifyFieldEntryValue( $id, $value ) {
252
+
253
+ if ( is_array( $id ) )
254
+ $field = $id;
255
+ else
256
+ $field = $this->getFieldByCssId( $id );
257
+
258
+ $errorMessages = $this->getErrorMessages();
259
+
260
+ $result = array();
261
+
262
+ do_action( 'smuzform_verify_field_value', $field, $value, $this->getId() );
263
+
264
+ if ( $field['type'] === 'singletext' )
265
+ return $this->verifyFieldValueSingleText( $field, $value );
266
+
267
+ if ( $field['type'] === 'number' )
268
+ return $this->verifyFieldValueNumber( $field, $value );
269
+
270
+ if ( $field['type'] === 'textarea' )
271
+ return $this->verifyFieldValueTextarea( $field, $value );
272
+
273
+ if ( $field['type'] === 'dropdown' )
274
+ return $this->verifyFieldValueDropdown( $field, $value );
275
+
276
+ if ( $field['type'] === 'radio' )
277
+ return $this->verifyFieldValueRadio( $field, $value );
278
+
279
+ if ( $field['type'] === 'checkbox' )
280
+ return $this->verifyFieldValueCheckbox( $field, $value );
281
+
282
+ if ( $field['type'] === 'fileupload' )
283
+ return $this->verifyFieldValueFileUpload( $field, $value );
284
+
285
+ if ( $field['type'] === 'name' )
286
+ return $this->verifyFieldValueName( $field, $value );
287
+
288
+ if ( $field['type'] === 'email' )
289
+ return $this->verifyFieldValueEmail( $field, $value );
290
+
291
+ if ( $field['type'] === 'date' )
292
+ return $this->verifyFieldValueDate( $field, $value );
293
+
294
+ if ( $field['type'] === 'address' )
295
+ return $this->verifyFieldValueAddress( $field, $value );
296
+
297
+ if ( $field['type'] === 'phone' )
298
+ return $this->verifyFieldValuePhone( $field, $value );
299
+
300
+ if ( $field['type'] === 'website' )
301
+ return $this->verifyFieldValueWebsite( $field, $value );
302
+
303
+ return $this->fieldVerifyReturn( true, 'success', '', array(), $field );
304
+
305
+ }
306
+
307
+ function verifyFieldValueSingleText( $field, $value ){
308
+
309
+ $dt = array();
310
+
311
+ if ( $this->isFieldRequired( $field ) ) {
312
+
313
+ $tempStr = str_replace( ' ', '', $value);
314
+
315
+ if ( empty( $tempStr ) ) {
316
+
317
+ $errStr = smuzform_translate( 'This field is required.');
318
+
319
+ $dt['errorBy'] = 'required';
320
+
321
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
322
+
323
+ }
324
+
325
+ }
326
+
327
+ if ( ! $this->isFieldValueValidMinLength( $field, $value ) ) {
328
+
329
+ $dt['errorBy'] = 'minLength';
330
+
331
+ $errStr = 'The value you have entered is too short. Minimum Length is ' . $field['rangeMin'];
332
+
333
+ return $this->fieldVerifyReturn( false, '110', smuzform_translate( $errStr ), $dt, $field );
334
+
335
+ }
336
+
337
+ if ( ! $this->isFieldValueValidMaxLength( $field, $value ) ) {
338
+
339
+ $dt['errorBy'] = 'maxLength';
340
+
341
+ $errStr = 'The value you have entered is too large. Maximum Length is ' . $field['rangeMax'];
342
+
343
+ return $this->fieldVerifyReturn( false, '120', smuzform_translate( $errStr ), $dt, $field );
344
+
345
+ }
346
+
347
+ if ( $field['noDuplicates'] ) {
348
+
349
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
350
+
351
+ $dt['errorBy'] = 'duplicateValue';
352
+
353
+ $errStr = 'You have entered a value that already exists.';
354
+
355
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
356
+
357
+ }
358
+ }
359
+
360
+ return $this->fieldVerifyReturn();
361
+
362
+ }
363
+
364
+ function verifyFieldValueNumber( $field, $value ){
365
+
366
+ $dt = array( 'errorBy' => 'isNumeric' );
367
+
368
+ if ( $this->isFieldRequired( $field ) ) {
369
+
370
+ $tempStr = str_replace( ' ', '', $value);
371
+
372
+ if ( empty( $tempStr ) ) {
373
+
374
+ $errStr = smuzform_translate( 'This field is required.');
375
+
376
+ $dt['errorBy'] = 'required';
377
+
378
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
379
+
380
+ }
381
+
382
+ }
383
+
384
+ if ( ! is_numeric( $value ) && ! empty( $tempStr ) ) {
385
+
386
+ $errStr = 'The value you have entered is not a numeric value';
387
+
388
+ return $this->fieldVerifyReturn( false, '200', $errStr , $dt, $field );
389
+
390
+ }
391
+
392
+ if ( ! $this->isFieldValueValidMinLength( $field, $value ) ) {
393
+
394
+ $dt['errorBy'] = 'minLength';
395
+
396
+ $errStr = 'The count of total numbers you have entered should be more than ' . $field['rangeMin'];
397
+
398
+ return $this->fieldVerifyReturn( false, '310', $errStr, $dt, $field );
399
+
400
+ }
401
+
402
+ if ( ! $this->isFieldValueValidMaxLength( $field, $value ) ) {
403
+
404
+ $dt['errorBy'] = 'maxLength';
405
+
406
+ $errStr = 'The count of total numbers you have entered should be less than ' . $field['rangeMax'];
407
+
408
+ return $this->fieldVerifyReturn( false, '320', $errStr, $dt, $field );
409
+
410
+ }
411
+
412
+ if ( $field['noDuplicates'] ) {
413
+
414
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
415
+
416
+ $dt['errorBy'] = 'duplicateValue';
417
+
418
+ $errStr = 'You have entered a value that already exists.';
419
+
420
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
421
+
422
+ }
423
+ }
424
+
425
+ return $this->fieldVerifyReturn();
426
+
427
+ }
428
+
429
+ function verifyFieldValueTextarea( $field, $value ){
430
+
431
+ $dt = array();
432
+
433
+ if ( $this->isFieldRequired( $field ) ) {
434
+
435
+ $tempStr = str_replace( ' ', '', $value);
436
+
437
+ if ( empty( $tempStr ) ) {
438
+
439
+ $errStr = smuzform_translate( 'This field is required.');
440
+
441
+ $dt['errorBy'] = 'required';
442
+
443
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
444
+
445
+ }
446
+
447
+ }
448
+
449
+ if ( ! $this->isFieldValueValidMinLength( $field, $value ) ) {
450
+
451
+ $dt['errorBy'] = 'minLength';
452
+
453
+ $errStr = 'The words you have entered should be more than ' . $field['rangeMin'];
454
+
455
+ return $this->fieldVerifyReturn( false, '310', $errStr, $dt, $field );
456
+
457
+ }
458
+
459
+ if ( ! $this->isFieldValueValidMaxLength( $field, $value ) ) {
460
+
461
+ $dt['errorBy'] = 'maxLength';
462
+
463
+ $errStr = 'The words you have entered should be less than ' . $field['rangeMax'];
464
+
465
+ return $this->fieldVerifyReturn( false, '320', $errStr, $dt, $field );
466
+
467
+ }
468
+
469
+ if ( $field['noDuplicates'] ) {
470
+
471
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
472
+
473
+ $dt['errorBy'] = 'duplicateValue';
474
+
475
+ $errStr = 'You have entered a value that already exists.';
476
+
477
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
478
+
479
+ }
480
+ }
481
+
482
+ return $this->fieldVerifyReturn();
483
+ }
484
+
485
+ function verifyFieldValueDropdown( $field, $value ){
486
+
487
+ $dt = array( 'errorBy' => 'dropdown' );
488
+
489
+ if ( $this->isFieldRequired( $field ) ) {
490
+
491
+ $tempStr = str_replace( ' ', '', $value);
492
+
493
+ if ( empty( $tempStr ) ) {
494
+
495
+ $errStr = smuzform_translate( 'This field is required.');
496
+
497
+ $dt['errorBy'] = 'required';
498
+
499
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
500
+
501
+ }
502
+
503
+ }
504
+
505
+ return $this->fieldVerifyReturn();
506
+ }
507
+
508
+ function verifyFieldValueRadio( $field, $value ){
509
+
510
+ $dt = array( 'errorBy' => 'radio' );
511
+
512
+ if ( $this->isFieldRequired( $field ) ) {
513
+
514
+ $tempStr = str_replace( ' ', '', $value);
515
+
516
+ if ( empty( $tempStr ) ) {
517
+
518
+ $errStr = smuzform_translate( 'This field is required.');
519
+
520
+ $dt['errorBy'] = 'required';
521
+
522
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
523
+
524
+ }
525
+
526
+ }
527
+
528
+ return $this->fieldVerifyReturn();
529
+ }
530
+
531
+ function verifyFieldValueCheckbox( $field, $value ){
532
+
533
+ $dt = array( 'errorBy' => 'checkbox' );
534
+
535
+ if ( $this->isFieldRequired( $field ) ) {
536
+
537
+ $tempStr = str_replace( ' ', '', $value);
538
+
539
+ if ( empty( $tempStr ) ) {
540
+
541
+ $errStr = smuzform_translate( 'This field is required.');
542
+
543
+ $dt['errorBy'] = 'required';
544
+
545
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
546
+
547
+ }
548
+
549
+ }
550
+
551
+ return $this->fieldVerifyReturn();
552
+ }
553
+
554
+ function verifyFieldValueFileUpload( $field, $value ){
555
+
556
+ $dt = array( 'errorBy' => 'fileupload' );
557
+
558
+ if ( $this->isFieldRequired( $field ) ) {
559
+
560
+ $tempStr = str_replace( ' ', '', $value);
561
+
562
+ if ( empty( $tempStr ) ) {
563
+
564
+ $errStr = smuzform_translate( 'This field is required.');
565
+
566
+ $dt['errorBy'] = 'required';
567
+
568
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
569
+
570
+ }
571
+
572
+ }
573
+
574
+ return $this->fieldVerifyReturn();
575
+ }
576
+
577
+ function verifyFieldValueName( $field, $value ){
578
+
579
+ $dt = array( 'errorBy' => 'name' );
580
+
581
+ if ( $this->isFieldRequired( $field ) ) {
582
+
583
+ $firstName = str_replace( ' ', '', $value['name']['firstName'] );
584
+
585
+ $lastName = str_replace( ' ', '', $value['name']['lastName'] );
586
+
587
+ if ( empty( $firstName ) || empty( $lastName ) ) {
588
+
589
+ $errStr = smuzform_translate( 'This field is required.');
590
+
591
+ $dt['errorBy'] = 'required';
592
+
593
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
594
+
595
+ }
596
+
597
+ }
598
+
599
+ if ( $field['noDuplicates'] ) {
600
+
601
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
602
+
603
+ $dt['errorBy'] = 'duplicateValue';
604
+
605
+ $errStr = 'You have entered a value that already exists.';
606
+
607
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
608
+
609
+ }
610
+ }
611
+
612
+ return $this->fieldVerifyReturn();
613
+ }
614
+
615
+ function verifyFieldValueEmail( $field, $value ){
616
+
617
+ $dt = array( 'errorBy' => 'email' );
618
+
619
+ if ( $this->isFieldRequired( $field ) ) {
620
+
621
+ $tempStr = str_replace( ' ', '', $value);
622
+
623
+ if ( empty( $tempStr ) ) {
624
+
625
+ $errStr = smuzform_translate( 'This field is required.');
626
+
627
+ $dt['errorBy'] = 'required';
628
+
629
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
630
+
631
+ }
632
+
633
+ }
634
+
635
+ if ( ! is_email( $value ) && ! empty( $tempStr ) ) {
636
+
637
+ $errStr = smuzform_translate( 'Please enter a valid email address.' );
638
+
639
+ $dt['errorBy'] = 'is_email';
640
+
641
+ return $this->fieldVerifyReturn( false, '400', $errStr, $dt, $field );
642
+
643
+ }
644
+
645
+ if ( ! $this->isFieldValueValidMinLength( $field, $value ) ) {
646
+
647
+ $dt['errorBy'] = 'minLength';
648
+
649
+ $errStr = 'The value you have entered is too short. Minimum Length is ' . $field['rangeMin'];
650
+
651
+ return $this->fieldVerifyReturn( false, '410', smuzform_translate( $errStr ), $dt, $field );
652
+
653
+ }
654
+
655
+ if ( ! $this->isFieldValueValidMaxLength( $field, $value ) ) {
656
+
657
+ $dt['errorBy'] = 'maxLength';
658
+
659
+ $errStr = 'The value you have entered is too large. Maximum Length is ' . $field['rangeMax'];
660
+
661
+ return $this->fieldVerifyReturn( false, '420', smuzform_translate( $errStr ), $dt, $field );
662
+
663
+ }
664
+
665
+ if ( $field['noDuplicates'] ) {
666
+
667
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
668
+
669
+ $dt['errorBy'] = 'duplicateValue';
670
+
671
+ $errStr = 'You have entered a value that already exists.';
672
+
673
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
674
+
675
+ }
676
+ }
677
+
678
+ return $this->fieldVerifyReturn();
679
+ }
680
+
681
+ function verifyFieldValueDate( $field, $value ){
682
+
683
+ $dt = array( 'errorBy' => 'date' );
684
+
685
+ if ( $this->isFieldRequired( $field ) ) {
686
+
687
+ $tempStr = str_replace( ' ', '', $value);
688
+
689
+ if ( empty( $tempStr ) ) {
690
+
691
+ $errStr = smuzform_translate( 'This field is required.');
692
+
693
+ $dt['errorBy'] = 'required';
694
+
695
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
696
+
697
+ }
698
+
699
+ }
700
+
701
+ if ( $value === 'invalid' ) {
702
+
703
+ $errStr = smuzform_translate( 'Date is not valid.');
704
+
705
+ $dt['errorBy'] = 'invalidInput';
706
+
707
+ return $this->fieldVerifyReturn( false, '500', $errStr, $dt, $field );
708
+ }
709
+
710
+ return $this->fieldVerifyReturn();
711
+
712
+ }
713
+
714
+ function verifyFieldValueAddress( $field, $value ){
715
+
716
+ $dt = array( 'errorBy' => 'date' );
717
+
718
+ if ( $this->isFieldRequired( $field ) ) {
719
+
720
+ $tempStr = str_replace( ' ', '', $value);
721
+
722
+ if ( empty( $tempStr ) ) {
723
+
724
+ $errStr = smuzform_translate( 'This field is required.');
725
+
726
+ $dt['errorBy'] = 'required';
727
+
728
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
729
+
730
+ }
731
+
732
+ }
733
+
734
+ return $this->fieldVerifyReturn();
735
+
736
+ }
737
+
738
+ function verifyFieldValueWebsite( $field, $value ){
739
+
740
+ $dt = array( 'errorBy' => 'date' );
741
+
742
+ if ( $this->isFieldRequired( $field ) ) {
743
+
744
+ $tempStr = str_replace( ' ', '', $value);
745
+
746
+ if ( empty( $tempStr ) ) {
747
+
748
+ $errStr = smuzform_translate( 'This field is required.');
749
+
750
+ $dt['errorBy'] = 'required';
751
+
752
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
753
+
754
+ }
755
+
756
+ }
757
+
758
+ if ( filter_var( $value, FILTER_SANITIZE_URL ) === false && ! empty( $value ) ) {
759
+
760
+ $errStr = smuzform_translate( 'URL is not valid.');
761
+
762
+ $dt['errorBy'] = 'invalidwebsite';
763
+
764
+ return $this->fieldVerifyReturn( false, '700', $errStr, $dt, $field );
765
+
766
+ }
767
+
768
+ if ( $field['noDuplicates'] ) {
769
+
770
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
771
+
772
+ $dt['errorBy'] = 'duplicateValue';
773
+
774
+ $errStr = 'You have entered a value that already exists.';
775
+
776
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
777
+
778
+ }
779
+ }
780
+
781
+ return $this->fieldVerifyReturn();
782
+
783
+ }
784
+
785
+ function verifyFieldValuePhone( $field, $value ){
786
+
787
+ $dt = array( 'errorBy' => 'phone' );
788
+
789
+ if ( $this->isFieldRequired( $field ) ) {
790
+
791
+ $tempStr = str_replace( ' ', '', $value);
792
+
793
+ if ( empty( $tempStr ) ) {
794
+
795
+ $errStr = smuzform_translate( 'This field is required.');
796
+
797
+ $dt['errorBy'] = 'required';
798
+
799
+ return $this->fieldVerifyReturn( false, '600', $errStr, $dt, $field );
800
+
801
+ }
802
+
803
+ }
804
+
805
+ if ( $field['noDuplicates'] ) {
806
+
807
+ if ( $this->isFieldValueDuplicate( $field, $value ) ) {
808
+
809
+ $dt['errorBy'] = 'duplicateValue';
810
+
811
+ $errStr = 'You have entered a value that already exists.';
812
+
813
+ return $this->fieldVerifyReturn( false, '2000', smuzform_translate( $errStr ), $dt, $field );
814
+
815
+ }
816
+ }
817
+
818
+ return $this->fieldVerifyReturn();
819
+
820
+ }
821
+
822
+
823
+ function fieldVerifyReturn( $sig=true, $code='success', $message='', $dt = array(), $field = null ) {
824
+
825
+ if ( $field ) {
826
+ $dt['fieldId'] = $field['cssID'];
827
+ $dt['fieldLabel'] = $field['label'];
828
+ $dt['errorTrigger'] = $field['type'];
829
+ }
830
+
831
+ if ( ! isset( $dt['formId'] ) )
832
+ $dt['formId'] = $this->getId();
833
+
834
+ $returnValue = array(
835
+ 'signal' => $sig,
836
+ 'code' => $code,
837
+ 'message' => $message,
838
+ 'additionalData' => $dt
839
+ );
840
+
841
+ $returnValue = apply_filters( 'smuzform_verify_return_value', $returnValue );
842
+
843
+ return $returnValue;
844
+
845
+ }
846
+
847
+ public function getFormActionUrl( $action = 'html' ) {
848
+
849
+ $nonce = wp_create_nonce( 'smuzform-storage-ajax-referer' );
850
+
851
+ if ( $action == 'html' )
852
+ $url = 'admin-ajax.php?action=smuzform-storage&method=submit&formId='. $this->getId() . '&nonce=' . $nonce;
853
+ else
854
+ $url = 'admin-ajax.php?action=smuzform-storage&method=ajax&formId='. $this->getId() . '&nonce=' . $nonce;
855
+
856
+ $url = admin_url( $url );
857
+
858
+
859
+ return $url;
860
+
861
+ }
862
+
863
+ function isError( $errors ) {
864
+
865
+ if ( empty($errors) )
866
+ return false;
867
+
868
+ foreach ($errors as $key => $error ) {
869
+
870
+ if ( ! isset( $error['signal'] ) )
871
+ return false;
872
+
873
+ if ( $error['signal'] === false )
874
+ return true;
875
+
876
+ }
877
+
878
+ return false;
879
+ }
880
+
881
+ /*Removes Layout and Html element fields */
882
+ function getFilterFields( $allowed = null ) {
883
+
884
+ $fields = $this->getFields();
885
+ $_filter = array();
886
+
887
+ if ( ! $allowed ) {
888
+ $allowed = array( 'singletext', 'number', 'textarea', 'dropdown', 'radio', 'checkbox', 'fileupload', 'name', 'email', 'date', 'address', 'phone', 'website', 'likert' );
889
+ }
890
+
891
+ $allowed = apply_filters( 'smuzform_filter_fields', $allowed );
892
+
893
+ foreach ( $fields as $key => $field ) {
894
+
895
+ if ( in_array( $field['type'], $allowed ) )
896
+ $_filter[$key] = $field;
897
+ }
898
+
899
+ return $_filter;
900
+
901
+ }
902
+
903
+ function isMultiPage() {
904
+
905
+ foreach ( $this->getFields() as $field ) {
906
+
907
+ if ( $field['type'] === 'pagebreak' )
908
+ return true;
909
+
910
+ }
911
+
912
+ return false;
913
+
914
+ }
915
+
916
+ function getMultiPageFields() {
917
+
918
+ if ( ! $this->isMultiPage() )
919
+ return array();
920
+
921
+ $fields = $this->getFields();
922
+
923
+ $_filter = array();
924
+
925
+ $currPage = 0;
926
+
927
+ foreach ( $fields as $key => $field ) {
928
+
929
+ if ( $field['type'] !== 'pagebreak' ) {
930
+
931
+ $field['pageid'] = $currPage;
932
+
933
+ $_filter[] = $field;
934
+
935
+ } else {
936
+
937
+ $currPage = $currPage + 1;
938
+
939
+ }
940
+
941
+ }
942
+
943
+ $_temp = array();
944
+
945
+ foreach ( $_filter as $key => $field ) {
946
+
947
+ $_temp[$field['pageid']]['fields'][] = $field;
948
+
949
+ }
950
+
951
+ $_filter = $_temp;
952
+
953
+ return $_filter;
954
+
955
+ }
956
+
957
+ function getPageTitle( $id ) {
958
+
959
+ $fields = $this->getFields();
960
+
961
+ $pages = array();
962
+
963
+ foreach( $fields as $field ) {
964
+
965
+ if ( $field['type'] === 'pagebreak' )
966
+ $pages[] = $field;
967
+
968
+ }
969
+
970
+ if ( ! isset( $pages[$id]['label'] ) )
971
+ return 'Page';
972
+
973
+ return $pages[$id]['label'];
974
+
975
+ }
976
+
977
+
978
+ private $id;
979
+
980
+ private $model;
981
+
982
+ private $title;
983
+
984
+ private $description;
985
+
986
+ private $fields;
987
+
988
+ private $captcha;
989
+
990
+ private $lang;
991
+
992
+ private $labelPlacement;
993
+
994
+ private $confirmationOption;
995
+
996
+ private $textMessage;
997
+
998
+ private $redirectUrl;
999
+
1000
+ private $noOfEntries;
1001
+
1002
+ private $onlySingleIP;
1003
+
1004
+ private $formTimer;
1005
+
1006
+ private $formStartTime;
1007
+
1008
+ private $formEndTime;
1009
+
1010
+ private $theme;
1011
+
1012
+ private $extraData;
1013
+
1014
+ private $confirmationEmailToUser;
1015
+
1016
+ private $emailAddressField;
1017
+
1018
+ private $replyToEmail;
1019
+
1020
+ private $submitBtn;
1021
+
1022
+ private $submitBtnText;
1023
+
1024
+ private $errorMessages;
1025
+
1026
+ }
public/core/class/class-smuzform-public-render.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Public_Render {
4
+
5
+ private $form_id = null;
6
+
7
+ private $atts = array();
8
+
9
+ private $cache = false;
10
+
11
+ function __construct( $form_id, $atts = null ) {
12
+
13
+ $this->form_id = $form_id;
14
+
15
+ $this->atts = $atts;
16
+
17
+ $form = get_post( $form_id );
18
+
19
+ if ( $form->post_type !== 'smuzform' || $form->post_status !== 'publish' )
20
+ throw new Exception( smuzform_translate_e( 'Form Not Exist.' ) );
21
+
22
+ if ( ! get_post_meta( $form_id, 'model', true ) )
23
+ throw new Exception( smuzform_translate_e( 'Form Model Not Exist.' ));
24
+
25
+ }
26
+
27
+ public function render() {
28
+
29
+ $form = new SmuzForm_Form( $this->form_id );
30
+
31
+ $multipage_path = apply_filters( 'smuzform_render_form_multipage_path', smuzform_public_view( 'form/multipage/render.php' ) );
32
+
33
+ $single_path = apply_filters( 'smuzform_render_form_path', smuzform_public_view( 'form/render.php' ) );
34
+
35
+ if ( $form->isMultiPage() )
36
+ include ( $multipage_path );
37
+ else
38
+ include ( $single_path );
39
+
40
+ }
41
+
42
+
43
+ function isCached() {}
44
+
45
+ function getFromCache() {}
46
+
47
+ function updateCache() {}
48
+
49
+ }
public/core/class/class-smuzform-public-storage.php ADDED
@@ -0,0 +1,692 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Public_Storage {
4
+
5
+ function __construct() {
6
+
7
+ if ( ! class_exists( 'SmuzForm_Form' ) )
8
+ smuzform_public( 'core/class/class-smuzform-form.php' );
9
+
10
+ }
11
+
12
+ public function init() {
13
+
14
+ add_action( 'wp_ajax_smuzform-storage', array( $this, 'api' ) );
15
+ add_action( 'wp_ajax_nopriv_smuzform-storage', array( $this, 'api' ) );
16
+
17
+ }
18
+
19
+
20
+
21
+ function api() {
22
+
23
+ $form_id = intval( $_GET['formId'] );
24
+
25
+ $this->preCheckup( $form_id );
26
+
27
+ $method = $_GET['method'];
28
+
29
+ if ( isset( $_GET['use'] ) || $_GET['use'] == 'ajax' )
30
+ $useAjax = true;
31
+ else
32
+ $useAjax = false;
33
+
34
+ if ( $method === 'submit' && ! $useAjax )
35
+ $this->htmlSubmit( $form_id );
36
+
37
+ if ( $method === 'ajax' || $useAjax )
38
+ $this->ajaxSubmit( $form_id );
39
+
40
+ exit;
41
+
42
+ }
43
+
44
+ function filterFormFields( $untrustedData, $form ) {
45
+
46
+ $trustedData = array();
47
+
48
+ foreach( $untrustedData as $key => $utd ) {
49
+
50
+ $field = $form->getFieldByCssId( $key );
51
+
52
+ /*
53
+ If the field does not exist or field key is invalid or field is removed from form. Skip the loop.
54
+ */
55
+ if ( ! $field ) continue;
56
+
57
+ if ( ! is_array( $utd ) ) {
58
+
59
+ $utd = esc_html( $utd );
60
+
61
+ } else {
62
+
63
+ if ( key( $utd ) === 'name' && $field['type'] === 'name' ) {
64
+
65
+ $utd['name']['firstName'] = esc_html( $utd['name']['firstName'] );
66
+
67
+ $utd['name']['lastName'] = esc_html( $utd['name']['lastName'] );
68
+
69
+ } elseif ( key( $utd ) === 'date' && $field['type'] === 'date' ) {
70
+
71
+ $dd = intval( $utd['date']['dd'] );
72
+ $mm = intval( $utd['date']['mm'] );
73
+ $yyyy = intval( $utd['date']['yyyy'] );
74
+
75
+ if ( $dd <= 0 || $mm <= 0 || $yyyy <= 0 )
76
+ $utd = 'invalid';
77
+ else if ( $dd > 31 || $mm > 12 || $yyyy > 9999 )
78
+ $utd = 'invalid';
79
+ else if ( empty( $utd['date']['dd'] ) || empty( $utd['date']['mm'] ) || empty( $utd['date']['yyyy'] ) )
80
+ $utd = 'invalid';
81
+ else
82
+ $utd = sprintf( "%d/%d/%d", $dd, $mm, $yyyy );
83
+
84
+ } elseif ( key( $utd ) === 'address' && $field['type'] === 'address' ) {
85
+
86
+
87
+ $utd['address']['streetAddress'] = esc_html( $utd['address']['streetAddress'] );
88
+ $utd['address']['streetAddress2'] = esc_html( $utd['address']['streetAddress2'] );
89
+ $utd['address']['city'] = esc_html( $utd['address']['city'] );
90
+ $utd['address']['state'] = esc_html( $utd['address']['state'] );
91
+ $utd['address']['zip'] = esc_html( $utd['address']['zip'] );
92
+ $utd['address']['country'] = esc_html( $utd['address']['country'] );
93
+
94
+
95
+ } elseif ( key( $utd ) === 'checkbox' && $field['type'] === 'checkbox' ) {
96
+
97
+ $index = 0;
98
+ foreach ($utd['checkbox'] as $tmpvalue) {
99
+ $utd['checkbox'][$index++] = esc_html( $tmpvalue );
100
+ }
101
+
102
+ }
103
+
104
+ }
105
+
106
+
107
+ $utd = apply_filters( 'smuzform_storage_field_value', $utd, $form );
108
+
109
+ $trustedData[ esc_sql( $key ) ] = $utd;
110
+
111
+ }
112
+
113
+ foreach( $form->getFilterFields() as $val) {
114
+
115
+ if ( ! isset( $trustedData[$val['cssID']] ) )
116
+ $trustedData[$val['cssID']] = '';
117
+
118
+ }
119
+
120
+
121
+ return $trustedData;
122
+
123
+ }
124
+
125
+ function filterFormFileFields( $form, $data ) {
126
+
127
+ $data = $this->normalize_files_array( $data );
128
+
129
+ $untrustedData = $data;
130
+
131
+ $trustedData = array();
132
+
133
+ $index = 0;
134
+
135
+ $field_id = null;
136
+
137
+ foreach ($untrustedData as $key => $file) {
138
+
139
+ $field_id = $key;
140
+
141
+ $field = $form->getFieldByCssId( $field_id );
142
+
143
+ if ( is_array( $field ) ) {
144
+
145
+ if ( $field['type'] === 'fileupload' ) {
146
+ $trustedData[$key] = array(
147
+ 'name' => $file[$index]['name'],
148
+ 'type' => $file[$index]['type'],
149
+ 'tmp_name' => $file[$index]['tmp_name'],
150
+ 'error' => $file[$index]['error'],
151
+ 'size' => $file[$index]['size']
152
+ );
153
+ }
154
+
155
+ }
156
+
157
+ }
158
+
159
+ return $trustedData;
160
+
161
+ }
162
+
163
+ function uploadFiles( $form, $errors = array() ) {
164
+
165
+ $files = $this->filterFormFileFields( $form, $_FILES );
166
+
167
+ $trustedData = array();
168
+
169
+ $dt = array();
170
+
171
+ $is_error = false;
172
+
173
+ foreach( $files as $key => $file ) {
174
+
175
+ $field = $form->getFieldByCssId( $key );
176
+
177
+ $maxSize = $field['file']['maxSize'];
178
+
179
+ $allowedExt = $field['file']['allowed'];
180
+
181
+ $isReq = $field['required'];
182
+
183
+ //$allowedExt = implode( $allowedExt , '|');
184
+
185
+ $dt['fieldId'] = $field['cssID'];
186
+ $dt['fieldLabel'] = $field['label'];
187
+ $dt['errorTrigger'] = $field['type'];
188
+ $dt['form_id'] = $form->getId();
189
+
190
+ if ( $file['error'] === UPLOAD_ERR_OK ) {
191
+
192
+ $tmp_name = $file['tmp_name'];
193
+
194
+ $file_name = sanitize_file_name( $file['name'] );
195
+
196
+ $file_size = $file['size'];
197
+
198
+ $file_size = ( $file_size / 1024 ) / 1024;
199
+
200
+ $ext = pathinfo($file_name, PATHINFO_EXTENSION);
201
+
202
+ if ( ! in_array( $ext , $allowedExt) ) {
203
+
204
+ $errors[] = array(
205
+ 'signal' => false,
206
+ 'code' => 2100,
207
+ 'message' => ecs_attr($ext).' file extension is not allowed.',
208
+ 'additionalData' => $dt
209
+ );
210
+
211
+ $is_error = true;
212
+
213
+ } else if ( $file_size >= intval($maxSize) ) {
214
+
215
+ $errors[] = array(
216
+ 'signal' => false,
217
+ 'code' => 2000,
218
+ 'message' => 'The uploaded file exceeds the ' . $maxSize . 'MB Limit',
219
+ 'additionalData' => $dt
220
+ );
221
+
222
+ $is_error = true;
223
+
224
+ }
225
+
226
+
227
+
228
+
229
+ if ( $is_error === false ) {
230
+
231
+ $uploadDir = get_option( 'smuzform_upload_dir' );
232
+
233
+ $hash = wp_generate_password(10, false, false);
234
+
235
+ $moveFileName = $hash . '-' . $file_name;
236
+
237
+ $moveFileName = $uploadDir . DIRECTORY_SEPARATOR . $form->getId() . DIRECTORY_SEPARATOR . $moveFileName;
238
+
239
+ if ( ! file_exists($uploadDir . DIRECTORY_SEPARATOR . $form->getId() . DIRECTORY_SEPARATOR ) )
240
+ @mkdir($uploadDir . DIRECTORY_SEPARATOR . $form->getId() . DIRECTORY_SEPARATOR);
241
+
242
+ $result = move_uploaded_file( $tmp_name, $moveFileName );
243
+
244
+ if ( $result ) {
245
+
246
+ $trustedData[$key] = $moveFileName;
247
+
248
+ }
249
+
250
+ }
251
+
252
+ }
253
+
254
+ }
255
+
256
+ return $trustedData;
257
+
258
+
259
+ }
260
+
261
+ function htmlSubmit( $form_id ) {
262
+
263
+ $form = new SmuzForm_Form( $form_id );
264
+
265
+ $errors = array();
266
+
267
+ $returnLink = $_POST['_returnLink'];
268
+
269
+ $untrustedData = $_POST['smFieldData'];
270
+
271
+ $trustedData = $this->filterFormFields( $untrustedData, $form );
272
+
273
+
274
+ if ( ! $form->getFields() ) {
275
+
276
+ $errors[] = array(
277
+ 'signal' => false,
278
+ 'code' => 9999,
279
+ 'message' => 'No Fields.'
280
+ );
281
+
282
+ }
283
+
284
+ $trustedFile = $this->uploadFiles( $form, $errors );
285
+
286
+ if ( ! $this->isError( $trustedFile ) ) {
287
+
288
+ foreach( $trustedFile as $cssID => $fd ) {
289
+
290
+ $trustedData[$cssID] = $fd;
291
+
292
+ }
293
+
294
+ } else {
295
+
296
+ $errors = $trustedFile;
297
+
298
+ }
299
+
300
+ foreach ( $trustedData as $key => $td ) {
301
+
302
+ $tmp = $form->verifyFieldEntryValue( $key, $td );
303
+
304
+ if ( ! $tmp['signal'] )
305
+ $errors[] = $tmp;
306
+
307
+ }
308
+
309
+ $errors = apply_filters( 'smuzform_field_errors', $errors, $form_id, $form );
310
+
311
+ $processEntryAndNotifications = apply_filters( 'smuzform_do_entry_and_notifications', true );
312
+
313
+ if ( empty( $errors ) ) {
314
+
315
+ if ( $processEntryAndNotifications === true ) {
316
+ $entryId = $this->saveEntry( $form_id, $trustedData );
317
+ }
318
+
319
+ }
320
+
321
+ do_action( 'smuzform_form_submit', $form, $errors, $trustedData, $returnLink, 'html' );
322
+
323
+ if ( $form->getConfirmationOption() === 'text' || ! empty( $errors ) )
324
+ /* When Javascript is disabled */
325
+ $this->htmlSubmitView( $errors, $form_id, $returnLink );
326
+ else
327
+ wp_redirect( $form->getRedirectUrl() );
328
+
329
+ }
330
+
331
+ function htmlSubmitView( $errors, $form_id, $returnLink ) {
332
+
333
+ $form = new SmuzForm_Form( $form_id );
334
+
335
+ include smuzform_public_view( 'form/html-submit-view.php' );
336
+ }
337
+
338
+ function ajaxSubmit( $form_id ) {
339
+
340
+ $form = new SmuzForm_Form( $form_id );
341
+
342
+ $errors = array();
343
+
344
+ $returnLink = $_POST['_returnLink'];
345
+
346
+ $untrustedData = $_POST['smFieldData'];
347
+
348
+ $trustedData = $this->filterFormFields( $untrustedData, $form );
349
+
350
+
351
+ if ( ! $form->getFilterFields() ) {
352
+
353
+ $errors[] = array(
354
+ 'signal' => false,
355
+ 'code' => 9999,
356
+ 'message' => 'No Fields.'
357
+ );
358
+
359
+ }
360
+
361
+ /*$trustedFile = $this->uploadFiles( $form, $errors );
362
+
363
+ if ( ! $this->isError( $trustedFile ) ) {
364
+
365
+ foreach( $trustedFile as $cssID => $fd ) {
366
+
367
+ $trustedData[$cssID] = $fd;
368
+
369
+ }
370
+
371
+ } else {
372
+
373
+ $errors = $trustedFile;
374
+
375
+ }*/
376
+
377
+ foreach ( $trustedData as $key => $td ) {
378
+
379
+ $tmp = $form->verifyFieldEntryValue( $key, $td );
380
+
381
+ if ( ! $tmp['signal'] )
382
+ $errors[] = $tmp;
383
+
384
+ }
385
+
386
+
387
+ $errors = apply_filters( 'smuzform_field_errors', $errors, $form_id, $form );
388
+
389
+ $processEntryAndNotifications = apply_filters( 'smuzform_do_entry_and_notifications', true );
390
+
391
+ if ( empty( $errors ) ) {
392
+
393
+ if ( $processEntryAndNotifications === true ) {
394
+ $entryId = $this->saveEntry( $form_id, $trustedData );
395
+ }
396
+
397
+ if ( $form->getConfirmationOption() === 'text' )
398
+ $isThanksMsg = true;
399
+ else
400
+ $isThanksMsg = false;
401
+
402
+ $thanksMsg = esc_html( $form->getTextMessage() );
403
+
404
+ $response = array(
405
+ 'signal' => true,
406
+ 'code' => 1,
407
+ 'thanksMsg' => $thanksMsg,
408
+ 'errors' => array(),
409
+ 'isMsg' => $isThanksMsg,
410
+ 'redirectUrl' => $form->getRedirectUrl()
411
+ );
412
+
413
+ } else {
414
+
415
+ $response = array(
416
+ 'signal' => false,
417
+ 'code' => 0,
418
+ 'thanksMsg' => null,
419
+ 'errors' => $errors,
420
+ 'isRedirect' => null,
421
+ 'redirectUrl' => null
422
+ );
423
+
424
+ }
425
+
426
+ $response = apply_filters( 'smuzform_public_ajax_resp', $response );
427
+
428
+ do_action( 'smuzform_form_submit', $form, $errors, $trustedData, $returnLink, 'ajax' );
429
+
430
+ echo json_encode( $response );
431
+
432
+ }
433
+
434
+ function saveEntry( $form_id, $data ) {
435
+
436
+ if ( ! is_array( $data ) && empty( $data ) )
437
+ return false;
438
+
439
+ $entry_id = $this->saveToDatabase( $form_id, $data );
440
+
441
+ $this->sendNotifications( $form_id, $entry_id, $data );
442
+
443
+ return $entry_id;
444
+
445
+ }
446
+
447
+ function sendNotifications( $form_id, $entry_id, $data ) {
448
+
449
+ $notificationManager = new SmuzForm_Notification_Manager( $form_id );
450
+
451
+ $notificationManager->sendNotifications( $entry_id, $data );
452
+
453
+ }
454
+
455
+
456
+ /**
457
+ Add entry and the fields data in WordPress connected database.
458
+
459
+ @Return entry_id
460
+ **/
461
+ function saveToDatabase( $form_id, $data ) {
462
+
463
+ global $wpdb;
464
+
465
+ $ip = $this->getUserIp();
466
+ $userAgent = $this->getUserAgent();
467
+ $createdAt = date( 'Y-m-d H:i:s' );
468
+ $updatedAt = date( 'Y-m-d H:i:s' );
469
+
470
+ $entry = array(
471
+ 'form_id' => $form_id,
472
+ 'user_ip' => $ip,
473
+ 'user_agent' => $userAgent,
474
+ 'created_at' => $createdAt,
475
+ 'updated_at' => $updatedAt
476
+ );
477
+
478
+ $entryTableName = $wpdb->prefix . SMUZFORM_ENTRY_DATABASE_TABLE_NAME;
479
+
480
+ $entryTableDataName = $wpdb->prefix . SMUZFORM_ENTRY_DATA_DATABASE_TABLE_NAME;
481
+
482
+ $wpdb->insert( $entryTableName, $entry );
483
+
484
+ $entryId = $wpdb->insert_id;
485
+
486
+ $entryData = array();
487
+
488
+ foreach ( $data as $key => $value ) {
489
+
490
+ $dtmp = array(
491
+ 'form_id' => $form_id,
492
+ 'field_id' => $key,
493
+ 'entry_id' => $entryId
494
+ );
495
+
496
+ $dtmp['value'] = maybe_serialize( $value );
497
+
498
+ $entryData[] = $dtmp;
499
+
500
+ }
501
+
502
+ $this->wp_insert_rows( $entryData, $entryTableDataName );
503
+
504
+ do_action( 'smuzform_storage_signal_database', $form_id, $data );
505
+
506
+ return $entryId;
507
+
508
+ }
509
+
510
+ function sendToService( $form_id, $data, $service_name, $entry_id ) {
511
+
512
+ do_action( 'smuzform_storage_signal_service', $form_id, $data, $service_name, $entry_id );
513
+
514
+ }
515
+
516
+ function formExist( $form_id ) {
517
+
518
+ $form = get_post( $form_id );
519
+
520
+ if ( $form->post_type !== 'smuzform' || $form->post_status !== 'publish' )
521
+ return false;
522
+
523
+ return true;
524
+
525
+ }
526
+
527
+ function preCheckup( $form_id ) {
528
+
529
+ if ( ! $this->formExist( $form_id ) )
530
+ die();
531
+
532
+ $_REQUEST['_ajax_nonce'] = $_GET['nonce'];
533
+
534
+ check_ajax_referer( 'smuzform-storage-ajax-referer' );
535
+
536
+ if ( ! empty( $_REQUEST['smuztrapfish'] ) )
537
+ die();
538
+
539
+ $this->fraudCheck();
540
+
541
+ }
542
+
543
+ function fraudCheck() { do_action( 'smuzform_storage_fraud_check' ); }
544
+
545
+
546
+ function getUserIp() {
547
+
548
+ $ip = apply_filters( 'smuzform_get_user_ip', $_SERVER['REMOTE_ADDR'] );
549
+
550
+ return $ip;
551
+
552
+ }
553
+
554
+ function getUserAgent() {
555
+
556
+ $ug = $_SERVER['HTTP_USER_AGENT'];
557
+
558
+ return apply_filters( 'smuzform_get_user_agent', $ug );
559
+ }
560
+
561
+ /**
562
+ * A method for inserting multiple rows into the specified table
563
+ *
564
+ * Usage Example:
565
+ *
566
+ * $insert_arrays = array();
567
+ * foreach($assets as $asset) {
568
+ *
569
+ * $insert_arrays[] = array(
570
+ * 'type' => "multiple_row_insert",
571
+ * 'status' => 1,
572
+ * 'name'=>$asset,
573
+ * 'added_date' => current_time( 'mysql' ),
574
+ * 'last_update' => current_time( 'mysql' ));
575
+ *
576
+ * }
577
+ *
578
+ * wp_insert_rows($insert_arrays);
579
+ *
580
+ *
581
+ * @param array $row_arrays
582
+ * @param string $wp_table_name
583
+ * @return false|int
584
+ *
585
+ * @author Ugur Mirza ZEYREK
586
+ * @source http://stackoverflow.com/a/12374838/1194797
587
+ */
588
+
589
+ function wp_insert_rows($row_arrays = array(), $wp_table_name) {
590
+ global $wpdb;
591
+ $wp_table_name = esc_sql($wp_table_name);
592
+ // Setup arrays for Actual Values, and Placeholders
593
+ $values = array();
594
+ $place_holders = array();
595
+ $query = "";
596
+ $query_columns = "";
597
+
598
+ $query .= "INSERT INTO {$wp_table_name} (";
599
+
600
+ foreach($row_arrays as $count => $row_array)
601
+ {
602
+
603
+ foreach($row_array as $key => $value) {
604
+
605
+ if($count == 0) {
606
+ if($query_columns) {
607
+ $query_columns .= ",".$key."";
608
+ } else {
609
+ $query_columns .= "".$key."";
610
+ }
611
+ }
612
+
613
+ $values[] = $value;
614
+
615
+ if(is_numeric($value)) {
616
+ if(isset($place_holders[$count])) {
617
+ $place_holders[$count] .= ", '%d'";
618
+ } else {
619
+ $place_holders[$count] .= "( '%d'";
620
+ }
621
+ } else {
622
+ if(isset($place_holders[$count])) {
623
+ $place_holders[$count] .= ", '%s'";
624
+ } else {
625
+ $place_holders[$count] .= "( '%s'";
626
+ }
627
+ }
628
+ }
629
+ // mind closing the GAP
630
+ $place_holders[$count] .= ")";
631
+ }
632
+
633
+ $query .= " $query_columns ) VALUES ";
634
+
635
+ $query .= implode(', ', $place_holders);
636
+
637
+ if($wpdb->query($wpdb->prepare($query, $values))){
638
+ return true;
639
+ } else {
640
+ return false;
641
+ }
642
+
643
+ }
644
+
645
+ function normalize_files_array($files) {
646
+
647
+ $normalized_array = array();
648
+
649
+ foreach($files as $index => $file) {
650
+
651
+ if (!is_array($file['name'])) {
652
+ $normalized_array[$index][] = $file;
653
+ continue;
654
+ }
655
+
656
+ foreach($file['name'] as $idx => $name) {
657
+ $normalized_array[$index][$idx] = array(
658
+ 'name' => $name,
659
+ 'type' => $file['type'][$idx],
660
+ 'tmp_name' => $file['tmp_name'][$idx],
661
+ 'error' => $file['error'][$idx],
662
+ 'size' => $file['size'][$idx]
663
+ );
664
+ }
665
+
666
+ }
667
+
668
+ return $normalized_array;
669
+
670
+ }
671
+
672
+ function isError( $errors ) {
673
+
674
+ if ( empty($errors) )
675
+ return false;
676
+
677
+ foreach ($errors as $key => $error ) {
678
+
679
+ if ( ! isset( $error['signal'] ) )
680
+ return false;
681
+
682
+ if ( $error['signal'] === false )
683
+ return true;
684
+
685
+ }
686
+
687
+ return false;
688
+ }
689
+
690
+
691
+
692
+ }
public/core/class/class-smuzform-public.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SmuzForm_Public {
4
+
5
+ function loadClasses() {
6
+
7
+ smuzform_public( 'core/class/class-smuzform-form.php' );
8
+
9
+ smuzform_public( 'core/class/class-smuzform-public-render.php' );
10
+
11
+ }
12
+
13
+ /**
14
+ Register shortcode and add assets
15
+ **/
16
+ public function createUI() {
17
+
18
+ add_action( 'wp_enqueue_scripts', array( $this, 'addAssets' ) );
19
+
20
+ add_shortcode( SMUZFORM_SHORTCODE, array( $this, 'doShortcode' ) );
21
+
22
+ }
23
+
24
+ function addAssets() {
25
+
26
+
27
+
28
+ $style_url = smuzform_public_asset( 'css/form-style.css' );
29
+
30
+ wp_enqueue_style( 'smuzform-public-form-render', $style_url );
31
+
32
+ $script_url = smuzform_public_asset( 'js/smuzforms.js' );
33
+
34
+ $jquery_validate_url = smuzform_public_asset( 'js/jquery-validate.js' );
35
+
36
+ wp_enqueue_script( 'jquery-validate', $jquery_validate_url, array('jquery'), SMUZFORM_PLUGIN_VERSION, true );
37
+
38
+ wp_enqueue_script( 'smuzformsjs', $script_url, array('jquery'), SMUZFORM_PLUGIN_VERSION, true );
39
+
40
+
41
+ }
42
+
43
+ function doShortcode( $atts ) {
44
+
45
+ $form_id = $atts['id'];
46
+
47
+ ob_start();
48
+
49
+ try {
50
+
51
+ $form = new SmuzForm_Public_Render( $form_id, $atts );
52
+
53
+ $form->render();
54
+
55
+ } catch (Exception $e) {
56
+
57
+ echo $e->getMessage() . "<br />";
58
+
59
+ }
60
+
61
+ $content = ob_get_contents();
62
+ ob_end_clean();
63
+
64
+ return $content;
65
+
66
+
67
+
68
+ }
69
+
70
+ }
public/core/index.php ADDED
File without changes
public/index.php ADDED
File without changes
public/views/css/skeleton.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Skeleton V2.0.4
3
+ * Copyright 2014, Dave Gamache
4
+ * www.getskeleton.com
5
+ * Free to use under the MIT license.
6
+ * http://www.opensource.org/licenses/mit-license.php
7
+ * 12/29/2014
8
+ */
9
+ html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}</style> <style> .container{position:relative;width:100%;max-width:960px;margin:0 auto;padding:0 20px;box-sizing:border-box}.column,.columns{width:100%;float:left;box-sizing:border-box}@media (min-width: 400px){.container{width:85%;padding:0}}@media (min-width: 550px){.container{width:80%}.column,.columns{margin-left:4%}.column:first-child,.columns:first-child{margin-left:0}.one.column,.one.columns{width:4.66666666667%}.two.columns{width:13.3333333333%}.three.columns{width:22%}.four.columns{width:30.6666666667%}.five.columns{width:39.3333333333%}.six.columns{width:48%}.seven.columns{width:56.6666666667%}.eight.columns{width:65.3333333333%}.nine.columns{width:74.0%}.ten.columns{width:82.6666666667%}.eleven.columns{width:91.3333333333%}.twelve.columns{width:100%;margin-left:0}.one-third.column{width:30.6666666667%}.two-thirds.column{width:65.3333333333%}.one-half.column{width:48%}.offset-by-one.column,.offset-by-one.columns{margin-left:8.66666666667%}.offset-by-two.column,.offset-by-two.columns{margin-left:17.3333333333%}.offset-by-three.column,.offset-by-three.columns{margin-left:26%}.offset-by-four.column,.offset-by-four.columns{margin-left:34.6666666667%}.offset-by-five.column,.offset-by-five.columns{margin-left:43.3333333333%}.offset-by-six.column,.offset-by-six.columns{margin-left:52%}.offset-by-seven.column,.offset-by-seven.columns{margin-left:60.6666666667%}.offset-by-eight.column,.offset-by-eight.columns{margin-left:69.3333333333%}.offset-by-nine.column,.offset-by-nine.columns{margin-left:78.0%}.offset-by-ten.column,.offset-by-ten.columns{margin-left:86.6666666667%}.offset-by-eleven.column,.offset-by-eleven.columns{margin-left:95.3333333333%}.offset-by-one-third.column,.offset-by-one-third.columns{margin-left:34.6666666667%}.offset-by-two-thirds.column,.offset-by-two-thirds.columns{margin-left:69.3333333333%}.offset-by-one-half.column,.offset-by-one-half.columns{margin-left:52%}}html{font-size:62.5%}body{font-size:1.5em;line-height:1.6;font-weight:400;font-family:"Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;color:#222}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:2rem;font-weight:300}h1{font-size:4.0rem;line-height:1.2;letter-spacing:-.1rem}h2{font-size:3.6rem;line-height:1.25;letter-spacing:-.1rem}h3{font-size:3.0rem;line-height:1.3;letter-spacing:-.1rem}h4{font-size:2.4rem;line-height:1.35;letter-spacing:-.08rem}h5{font-size:1.8rem;line-height:1.5;letter-spacing:-.05rem}h6{font-size:1.5rem;line-height:1.6;letter-spacing:0}@media (min-width: 550px){h1{font-size:5.0rem}h2{font-size:4.2rem}h3{font-size:3.6rem}h4{font-size:3.0rem}h5{font-size:2.4rem}h6{font-size:1.5rem}}p{margin-top:0}a{color:#1EAEDB}a:hover{color:#0FA0CE}.button,button,input[type="submit"],input[type="reset"],input[type="button"]{display:inline-block;height:38px;padding:0 30px;color:#555;text-align:center;font-size:11px;font-weight:600;line-height:38px;letter-spacing:.1rem;text-transform:uppercase;text-decoration:none;white-space:nowrap;background-color:transparent;border-radius:4px;border:1px solid #bbb;cursor:pointer;box-sizing:border-box}.button:hover,button:hover,input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,.button:focus,button:focus,input[type="submit"]:focus,input[type="reset"]:focus,input[type="button"]:focus{color:#333;border-color:#888;outline:0}.button.button-primary,button.button-primary,input[type="submit"].button-primary,input[type="reset"].button-primary,input[type="button"].button-primary{color:#FFF;background-color:#33C3F0;border-color:#33C3F0}.button.button-primary:hover,button.button-primary:hover,input[type="submit"].button-primary:hover,input[type="reset"].button-primary:hover,input[type="button"].button-primary:hover,.button.button-primary:focus,button.button-primary:focus,input[type="submit"].button-primary:focus,input[type="reset"].button-primary:focus,input[type="button"].button-primary:focus{color:#FFF;background-color:#1EAEDB;border-color:#1EAEDB}input[type="email"],input[type="number"],input[type="search"],input[type="text"],input[type="tel"],input[type="url"],input[type="password"],textarea,select{height:38px;padding:6px 10px;background-color:#fff;border:1px solid #D1D1D1;border-radius:4px;box-shadow:none;box-sizing:border-box}input[type="email"],input[type="number"],input[type="search"],input[type="text"],input[type="tel"],input[type="url"],input[type="password"],textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}textarea{min-height:65px;padding-top:6px;padding-bottom:6px}input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="text"]:focus,input[type="tel"]:focus,input[type="url"]:focus,input[type="password"]:focus,textarea:focus,select:focus{border:1px solid #33C3F0;outline:0}label,legend{display:block;margin-bottom:.5rem;font-weight:600}fieldset{padding:0;border-width:0}input[type="checkbox"],input[type="radio"]{display:inline}label > .label-body{display:inline-block;margin-left:.5rem;font-weight:normal}ul{list-style:circle inside}ol{list-style:decimal inside}ol,ul{padding-left:0;margin-top:0}ul ul,ul ol,ol ol,ol ul{margin:1.5rem 0 1.5rem 3rem;font-size:90%}li{margin-bottom:1rem}code{padding:.2rem .5rem;margin:0 .2rem;font-size:90%;white-space:nowrap;background:#F1F1F1;border:1px solid #E1E1E1;border-radius:4px}pre > code{display:block;padding:1rem 1.5rem;white-space:pre}th,td{padding:12px 15px;text-align:left;border-bottom:1px solid #E1E1E1}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}button,.button{margin-bottom:1rem}input,textarea,select,fieldset{margin-bottom:1.5rem}pre,blockquote,dl,figure,table,p,ul,ol,form{margin-bottom:2.5rem}.u-full-width{width:100%;box-sizing:border-box}.u-max-full-width{max-width:100%;box-sizing:border-box}.u-pull-right{float:right}.u-pull-left{float:left}hr{margin-top:3rem;margin-bottom:3.5rem;border-width:0;border-top:1px solid #E1E1E1}.container:after,.row:after,.u-cf{content:"";display:table;clear:both}.header{margin-top:6rem;text-align:center}#errors{color:red;font-size:16px}
public/views/form/html-submit-view.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+
6
+ <meta name="robots" content="noindex">
7
+
8
+ <title><?php smuzform_translate_e('Form') ?></title>
9
+
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+
12
+
13
+ <style>
14
+ <?php include smuzform_public_view( 'css/skeleton.css' ) ?>
15
+ </style>
16
+ </head>
17
+
18
+ <body>
19
+
20
+ <div class="container">
21
+
22
+ <section class="header">
23
+
24
+ <?php if ( ! empty( $errors ) ): ?>
25
+ <h2 class="title"><?php esc_html_e( $form->getTitle() ) ?> <?php smuzform_translate_e( 'Form Errors:' ) ?></h2>
26
+ <?php else: ?>
27
+
28
+ <h2 class="title"><?php esc_html_e( $form->getTitle() ) ?> <?php smuzform_translate_e( 'Success:' ) ?></h2>
29
+ <p class="description"><?php esc_html_e( $form->getTextMessage() ) ?></p>
30
+ <?php endif; ?>
31
+
32
+ </section>
33
+
34
+ <?php if ( ! empty( $errors ) ): ?>
35
+ <div id="errors">
36
+ <ul>
37
+ <?php foreach( $errors as $err ): ?>
38
+
39
+ <li>
40
+ <strong><?php echo $err['additionalData']['fieldLabel'] ?>: </strong>
41
+ <span class="errorMsg"><?php echo $err['message'] ?></span>
42
+ </li>
43
+
44
+ <?php endforeach; ?>
45
+ </ul>
46
+ </div>
47
+ <?php endif; ?>
48
+
49
+ <footer>
50
+
51
+ <div id="backBtnCont">
52
+ <a class="button button-primary" href="<?php echo $returnLink ?>"><?php smuzform_translate_e( 'Go Back' ) ?></a>
53
+ <small>
54
+ <?php smuzform_translate_e( '' ) ?>
55
+ </small>
56
+ </div>
57
+
58
+ </footer>
59
+
60
+ </div>
61
+
62
+ </body>
63
+
64
+
65
+ </html>
public/views/form/multipage/render-fields.php ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="smform-fieldcont smform-fieldcont<?php echo $type ?>" id="smform-fieldcont<?php echo $key ?>"
2
+ data-key="smform-field<?php echo $form->getId() . $key ?>"
3
+ data-rule="<?php echo ( $ruleEnabled ) ? 'enabled': 'disabled' ?>"
4
+ data-ruleoperator="<?php echo $rules['operator'] ?>"
5
+ data-ruleaction="<?php echo $rules['action'] ?>"
6
+ data-rulecmpvalue="<?php echo $rules['cmpValue'] ?>"
7
+ data-rulefield="<?php echo $rules['field'] ?>" >
8
+
9
+ <?php do_action( 'smuzform_showfield_start', $field, $form->getId() ) ?>
10
+
11
+ <?php if ( $type == 'singletext' ): ?>
12
+
13
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
14
+
15
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
16
+ value="<?php esc_attr_e($preValue) ?>"
17
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
18
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
19
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="text" />
20
+
21
+ <?php endif; ?>
22
+
23
+ <?php if ( $type == 'number' ): ?>
24
+
25
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
26
+
27
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
28
+ value="<?php esc_attr_e($preValue) ?>"
29
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
30
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
31
+ type="text" <?php echo ( $required ) ? 'required ': '' ?>
32
+ data-type="number" />
33
+
34
+ <?php endif; ?>
35
+
36
+ <?php if ( $type == 'textarea' ): ?>
37
+
38
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
39
+
40
+ <textarea name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
41
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
42
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?> smform-control smform-controllabelpostextarea"
43
+ <?php echo ( $required ) ? 'required ': '' ?>
44
+ data-type="textarea"
45
+ ><?php echo esc_html($preValue) ?></textarea>
46
+
47
+ <?php endif; ?>
48
+
49
+ <?php if ( $type == 'dropdown' ): ?>
50
+
51
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
52
+
53
+ <select name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
54
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
55
+ <?php echo ( $required ) ? 'required ': '' ?>
56
+ data-type="select" >
57
+
58
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
59
+
60
+ <option <?php echo ($choicekey === $selectedChoice ) ? 'selected': '' ?> value="<?php esc_attr_e( $choice ) ?>"><?php echo esc_html( $choice ) ?></option>
61
+
62
+ <?php endforeach; ?>
63
+
64
+ </select>
65
+
66
+ <?php endif; ?>
67
+
68
+ <?php if ( $type == 'radio' ): ?>
69
+
70
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
71
+
72
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
73
+
74
+ <div class="smform-control smform-controllabelpos-radio radio">
75
+ <label><input name="smFieldData[<?php echo $cssID ?>]" type="radio" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="radio" /> <?php echo esc_html( $choice ) ?></label>
76
+ </div>
77
+
78
+ <?php endforeach; ?>
79
+
80
+ <?php endif; ?>
81
+
82
+ <?php if ( $type == 'checkbox' ): ?>
83
+
84
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
85
+
86
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
87
+
88
+ <div class="smform-control smform-controllabelpos-radio checkbox">
89
+ <label><input name="smFieldData[<?php echo $cssID ?>][checkbox][]" type="checkbox" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="checkbox" /> <?php echo esc_html( $choice ) ?></label>
90
+ </div>
91
+
92
+ <?php endforeach; ?>
93
+
94
+ <?php endif; ?>
95
+
96
+ <?php if ( $type == 'linebreak' ): ?>
97
+ <hr />
98
+ <?php endif; ?>
99
+
100
+ <?php if ( $type == 'sectionbreak' ): ?>
101
+ <legend>
102
+
103
+ <h3 class="smsection-title"><?php echo esc_html( $sectionTitle ) ?></h3>
104
+
105
+ <div class="smsection-description">
106
+ <p><?php echo esc_html( $sectionDescription ) ?></p>
107
+ </div>
108
+
109
+ </legend>
110
+ <?php endif; ?>
111
+
112
+ <?php include smuzform_public_view( 'form/render-advanced-fields.php' ) ?>
113
+
114
+ <?php include smuzform_public_view( 'form/render-html-fields.php' ) ?>
115
+
116
+ <?php do_action( 'smuzform_showfield_end', $field, $form->getId() ) ?>
117
+
118
+ </div>
public/views/form/multipage/render.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smformcont-<?php echo $form->getId() ?>">
2
+ <form class="yui3-cssreset smform smform-multipage smform-labelpos<?php echo ( $form->getLabelPlacement() === 'left' ) ? 'left' : 'top' ?>" id="smform-<?php echo $form->getId() ?>" method="POST" action="<?php echo $form->getFormActionUrl() ?>" role="form" enctype="multipart/form-data" data-formid="<?php echo $form->getId() ?>">
3
+
4
+ <div class="smform-errors-cont"></div>
5
+
6
+ <?php do_action( 'smuzform_display_start', $form->getId(), $form ) ?>
7
+
8
+ <legend class="smform-header">
9
+
10
+ <h3 class="smform-title"><?php echo $form->getTitle() ?></h3>
11
+
12
+ <div class="smform-description">
13
+ <p><?php echo $form->getDescription() ?></p>
14
+ </div>
15
+
16
+ </legend>
17
+
18
+ <div class="smform-multipage-steps-cont">
19
+ <ul class="smform-multipage-steps">
20
+ <?php foreach ( $form->getMultiPageFields() as $key => $page ): ?>
21
+
22
+ <li class="smform-multipage-step <?php echo ( $key === 0 ) ? 'active': '' ?>" data-page="<?php echo $key ?>">
23
+
24
+ <strong><?php echo esc_html( $form->getPageTitle( $key ) ) ?></strong>
25
+
26
+ </li>
27
+
28
+ <?php endforeach; ?>
29
+ </ul>
30
+ </div>
31
+
32
+ <div class="smform-grid" id="smform<?php echo $form->getId() ?>">
33
+
34
+
35
+ <?php foreach ( $form->getMultiPageFields() as $page_id => $page ): ?>
36
+
37
+ <div class="smformpage smformpage<?php echo $page_id ?>">
38
+
39
+ <?php foreach ( $page['fields'] as $key => $field ): extract( $field, EXTR_OVERWRITE ); $key = $key + $page_id ?>
40
+ <?php include smuzform_public_view( 'form/multipage/render-fields.php' ) ?>
41
+ <?php endforeach; ?>
42
+
43
+ <?php do_action( 'smuzform_display_at_end_of_page', $form->getId(), $form, $page_id ) ?>
44
+ </div>
45
+
46
+ <?php endforeach; ?>
47
+
48
+
49
+
50
+ </div>
51
+
52
+ <div class="smform-multipage-btncont">
53
+ <button type="button" class="action smform-multipage-back">Back</button>
54
+ <button type="button" class="action smform-multipage-next">Next</button>
55
+ <button type="button" class="action smform-multipage-submit smform-submit">Submit</button>
56
+ <div class="smform-ajax-spinner">
57
+ <div class="sk-circle">
58
+ <div class="sk-circle1 sk-child"></div>
59
+ <div class="sk-circle2 sk-child"></div>
60
+ <div class="sk-circle3 sk-child"></div>
61
+ <div class="sk-circle4 sk-child"></div>
62
+ <div class="sk-circle5 sk-child"></div>
63
+ <div class="sk-circle6 sk-child"></div>
64
+ <div class="sk-circle7 sk-child"></div>
65
+ <div class="sk-circle8 sk-child"></div>
66
+ <div class="sk-circle9 sk-child"></div>
67
+ <div class="sk-circle10 sk-child"></div>
68
+ <div class="sk-circle11 sk-child"></div>
69
+ <div class="sk-circle12 sk-child"></div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+
74
+ <div class="smform-ajax-msg"><p class="smform-ajax-msg-p"></p></div>
75
+
76
+ <div id="smuzform-robot" style="display: none">
77
+ <label>If you're not a fish leave this field blank:</label>
78
+ <input name="smuztrapfish" type="text" style="display: none" />
79
+ </div>
80
+
81
+ <input type="hidden" name="_formId" value="<?php echo $form->getId() ?>" />
82
+ <input type="hidden" name="_returnLink" value="<?php the_permalink() ?>" />
83
+
84
+ <input type="hidden" data-formid="<?php echo $form->getId() ?>" value='<?php echo json_encode( $form->getStyle() ) ?>' id="smformstyle-<?php echo $form->getId() ?>" class="smformstylehidden" />
85
+
86
+ <?php do_action( 'smuzform_display_end', $form->getId(), $form ) ?>
87
+
88
+ </form>
89
+
90
+ </div> <!-- cont close div -->
91
+
public/views/form/render-advanced-fields.php ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if ( $type == 'fileupload' ): ?>
2
+
3
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
4
+
5
+ <input name="<?php echo $cssID ?>" id="smform-field<?php echo $form->getId() . $key ?>"
6
+ class="smform-controllabelpos smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
7
+ type="file" <?php echo ( $required ) ? 'required ': '' ?> date-type="fileupload" />
8
+
9
+ <?php endif; ?>
10
+
11
+ <?php if ( $type == 'name' ): ?>
12
+
13
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
14
+ <div class="smFormInlineFormCont">
15
+ <div class="smInlineForm">
16
+ <span>
17
+ <label><input name="smFieldData[<?php echo $cssID ?>][name][firstName]" id="smform-fieldfname<?php echo $form->getId() . $key ?>"
18
+ class="smFieldFirstName smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
19
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="name" /> First</label></span>
20
+
21
+ <span><label><input name="smFieldData[<?php echo $cssID ?>][name][lastName]" id="smform-fieldlname<?php echo $form->getId() . $key ?>"
22
+ class="smFieldLastName smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
23
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="name" /> Last</label></span>
24
+ </div>
25
+ </div>
26
+ <div style="clear:both"></div>
27
+
28
+ <?php endif; ?>
29
+
30
+ <?php if ( $type == 'email' ): ?>
31
+
32
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
33
+
34
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
35
+ value="<?php esc_attr_e($preValue) ?>"
36
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
37
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
38
+ type="email" <?php echo ( $required ) ? 'required ': '' ?> date-type="email" />
39
+
40
+ <?php endif; ?>
41
+
42
+ <?php if ( $type == 'date' ):
43
+
44
+ $_date = array( 'dd' => '', 'mm' => '', 'yyyy' => '' );
45
+ $_tmpdate = explode( '/' , $preValue );
46
+
47
+ if ( is_array( $_tmpdate ) && ! empty( $preValue ) )
48
+ $_date = array( 'dd' => $_tmpdate[0], 'mm' => $_tmpdate[1], 'yyyy' => $_tmpdate[2] );
49
+
50
+ ?>
51
+
52
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
53
+
54
+ <div class="smFormInlineFormCont">
55
+ <div class="smInlineForm smInlineFormDate">
56
+ <span>
57
+ <label><input name="smFieldData[<?php echo $cssID ?>][date][dd]" id="smform-field-yyyy<?php echo $form->getId() . $key ?>"
58
+ value="<?php esc_attr_e($_date['dd']) ?>"
59
+ class="smFieldDD smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
60
+ type="number" <?php echo ( $required ) ? 'required ': '' ?> date-type="date" min="1" max="31" /> DD</label></span>
61
+
62
+ <span><label><input name="smFieldData[<?php echo $cssID ?>][date][mm]" id="smform-field-mm<?php echo $form->getId() . $key ?>"
63
+ value="<?php esc_attr_e($_date['mm']) ?>"
64
+ class="smFieldMM smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
65
+ type="number" <?php echo ( $required ) ? 'required ': '' ?> date-type="date" min="1" max="12" /> MM</label></span>
66
+
67
+ <span><label><input name="smFieldData[<?php echo $cssID ?>][date][yyyy]" id="smform-field-yyyy<?php echo $form->getId() . $key ?>"
68
+ value="<?php esc_attr_e($_date['yyyy']) ?>"
69
+ class="smFieldDD smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
70
+ type="number" <?php echo ( $required ) ? 'required ': '' ?> date-type="date" min="1" max="9999" /> YYYY</label></span>
71
+ </div>
72
+ </div>
73
+ <div style="clear:both"></div>
74
+
75
+ <?php endif; ?>
76
+
77
+ <?php if ( $type == 'address' ): ?>
78
+
79
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
80
+
81
+ <div class="smFormInlineFormCont">
82
+
83
+ <div class="smFormAddressMargin"><label><input name="smFieldData[<?php echo $cssID ?>][address][streetAddress]" id="smform-fieldstreetaddress<?php echo $form->getId() . $key ?>"
84
+ value=""
85
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
86
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
87
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="email" />Street Address</label> </div>
88
+
89
+ <div class="smFormAddressMargin"><label><input name="smFieldData[<?php echo $cssID ?>][address][streetAddress2]" id="smform-fieldaddress2<?php echo $form->getId() . $key ?>"
90
+ value=""
91
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
92
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
93
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="email" />Address 2</label></div>
94
+
95
+ <div class="smInlineForm smInlineFormAddress">
96
+ <span>
97
+ <label><input name="smFieldData[<?php echo $cssID ?>][address][city]" id="smform-fieldcity<?php echo $form->getId() . $key ?>"
98
+ class="smFieldCity smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
99
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="name" /> City</label></span>
100
+
101
+ <span><label><input name="smFieldData[<?php echo $cssID ?>][address][state]" id="smform-fieldstate<?php echo $form->getId() . $key ?>"
102
+ class="smFieldState smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
103
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="name" /> State / Province</label></span>
104
+ </div>
105
+
106
+ <div style="clear:both;"></div>
107
+
108
+ <div class="smInlineForm smInlineFormAddress">
109
+ <span>
110
+ <label><input name="smFieldData[<?php echo $cssID ?>][address][zip]" id="smform-fieldzip<?php echo $form->getId() . $key ?>"
111
+ class="smFieldZip smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
112
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="name" /> Postal / Zip Code</label></span>
113
+
114
+ <span><label><select name="smFieldData[<?php echo $cssID ?>][address][country]" id="smform-fieldcountry<?php echo $form->getId() . $key ?>"
115
+ class="smFieldCountry smform-control smform-field-size<?php echo $size ?> <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?>"
116
+ <?php echo ( $required ) ? 'required ': '' ?> date-type="address" /><?php include smuzform_public_view( 'form/select-county-list.php' ) ?></select> Country</label></span>
117
+ </div>
118
+ </div>
119
+ <div style="clear:both"></div>
120
+
121
+ <?php endif; ?>
122
+
123
+ <?php if ( $type == 'phone' ): ?>
124
+
125
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
126
+
127
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
128
+ value="<?php esc_attr_e($preValue) ?>"
129
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
130
+ class="smform-controllabelpos smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
131
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="phone" />
132
+
133
+ <?php endif; ?>
134
+
135
+ <?php if ( $type == 'website' ): ?>
136
+
137
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
138
+
139
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
140
+ value="<?php esc_attr_e($preValue) ?>"
141
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
142
+ class="smform-controllabelpos smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
143
+ type="url" <?php echo ( $required ) ? 'required ': '' ?> date-type="phone" />
144
+
145
+ <?php endif; ?>
146
+
147
+ <?php if ( $type == 'pagebreak' ): ?>
148
+
149
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
150
+
151
+ <div id="smform-field<?php echo $form->getId() . $key ?>"></div>
152
+
153
+ <?php endif; ?>
public/views/form/render-html-fields.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php if ( $type === 'customText' || $type === 'customImage' || $type === 'customHtml' || $type === 'customLink' ): ?>
2
+
3
+ <div class="smHtmlElementFieldCont">
4
+ <?php echo $field['extraData']['readyHtml'] ?>
5
+ </div>
6
+
7
+ <?php endif; ?>
public/views/form/render-no-script.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <form class="yui3-cssreset smform" id="smform-<?php echo $form->getId() ?>" method="POST" action="<?php echo $form->getFormActionUrl() ?>" role="form" enctype="multipart/form-data">
2
+
3
+ <legend>
4
+
5
+ <h3 class="smform-title"><?php echo $form->getTitle() ?></h3>
6
+
7
+ <div class="smform-description">
8
+ <p><?php echo $form->getDescription() ?></p>
9
+ </div>
10
+
11
+ </legend>
12
+
13
+ <?php foreach( $form->getFields() as $key => $field ): extract( $field, EXTR_OVERWRITE ); ?>
14
+
15
+
16
+ <div class="smform-fieldcont smform-fieldcont<?php echo $type ?>" id="smform-fieldcont<?php echo $key ?>"
17
+ data-rule="<?php echo ( $ruleEnabled ) ? 'enabled ': 'disabled' ?>" >
18
+
19
+ <?php do_action( 'smuzform_showfield_start', $field, $form->getId() ) ?>
20
+
21
+ <?php if ( $type == 'singletext' ): ?>
22
+
23
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
24
+
25
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
26
+ value="<?php esc_attr_e($preValue) ?>"
27
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
28
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
29
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="text" />
30
+
31
+ <?php endif; ?>
32
+
33
+ <?php if ( $type == 'number' ): ?>
34
+
35
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
36
+
37
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
38
+ value="<?php esc_attr_e($preValue) ?>"
39
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
40
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
41
+ type="text" <?php echo ( $required ) ? 'required ': '' ?>
42
+ data-type="number" />
43
+
44
+ <?php endif; ?>
45
+
46
+ <?php if ( $type == 'textarea' ): ?>
47
+
48
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
49
+
50
+ <textarea name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
51
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
52
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?> smform-controltextarea"
53
+ <?php echo ( $required ) ? 'required ': '' ?>
54
+ data-type="textarea"
55
+ ><?php echo esc_html($preValue) ?></textarea>
56
+
57
+ <?php endif; ?>
58
+
59
+ <?php if ( $type == 'dropdown' ): ?>
60
+
61
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
62
+
63
+ <select name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
64
+ class="smform-control <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
65
+ <?php echo ( $required ) ? 'required ': '' ?>
66
+ data-type="select" >
67
+
68
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
69
+
70
+ <option <?php echo ($choicekey === $selectedChoice ) ? 'selected': '' ?> value="<?php esc_attr_e( $choice ) ?>"><?php echo esc_html( $choice ) ?></option>
71
+
72
+ <?php endforeach; ?>
73
+
74
+ </select>
75
+
76
+ <?php endif; ?>
77
+
78
+ <?php if ( $type == 'radio' ): ?>
79
+
80
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
81
+
82
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
83
+
84
+ <div class="smform-control-radio radio">
85
+ <label><input name="smFieldData[<?php echo $cssID ?>]" type="radio" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="radio" /> <?php echo esc_html( $choice ) ?></label>
86
+ </div>
87
+
88
+ <?php endforeach; ?>
89
+
90
+ </select>
91
+
92
+ <?php endif; ?>
93
+
94
+ <?php if ( $type == 'checkbox' ): ?>
95
+
96
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
97
+
98
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
99
+
100
+ <div class="smform-control-radio checkbox">
101
+ <label><input name="smFieldData[<?php echo $cssID ?>][checkbox][]" type="checkbox" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="checkbox" /> <?php echo esc_html( $choice ) ?></label>
102
+ </div>
103
+
104
+ <?php endforeach; ?>
105
+
106
+ </select>
107
+
108
+ <?php endif; ?>
109
+
110
+ <?php if ( $type == 'linebreak' ): ?>
111
+ <hr />
112
+ <?php endif; ?>
113
+
114
+ <?php if ( $type == 'sectionbreak' ): ?>
115
+ <legend>
116
+
117
+ <h3 class="smsection-title"><?php echo esc_html( $sectionTitle ) ?></h3>
118
+
119
+ <div class="smsection-description">
120
+ <p><?php echo esc_html( $sectionDescription ) ?></p>
121
+ </div>
122
+
123
+ </legend>
124
+ <?php endif; ?>
125
+
126
+ <?php include smuzform_public_view( 'form/render-advanced-fields.php' ) ?>
127
+
128
+ <?php do_action( 'smuzform_showfield_end', $field, $form->getId() ) ?>
129
+
130
+ </div>
131
+
132
+
133
+
134
+ <?php endforeach; ?>
135
+
136
+
137
+ <div id="smuzform-robot" style="display: none">
138
+ <label>If you're not a fish leave this field blank:</label>
139
+ <input name="smuztrapfish" type="text" style="display: none" />
140
+ </div>
141
+
142
+
143
+ <div id="smform-submitbtn-cont">
144
+ <input type="submit" value="<?php echo $form->getSubmitBtnText() ?>" name="submitForm" />
145
+ </div>
146
+
147
+ <input type="hidden" name="_formId" value="<?php echo $form->getId() ?>" />
148
+ <input type="hidden" name="_returnLink" value="<?php the_permalink() ?>" />
149
+
150
+ </form>
public/views/form/render.php ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="smformcont-<?php echo $form->getId() ?>">
2
+ <form class="yui3-cssreset smform smform-labelpos<?php echo ( $form->getLabelPlacement() === 'left' ) ? 'left' : 'top' ?>" id="smform-<?php echo $form->getId() ?>" method="POST" action="<?php echo $form->getFormActionUrl() ?>" role="form" enctype="multipart/form-data" data-formid="<?php echo $form->getId() ?>">
3
+
4
+ <div class="smform-errors-cont"></div>
5
+
6
+ <?php do_action( 'smuzform_display_start', $form->getId(), $form ) ?>
7
+
8
+ <legend class="smform-header">
9
+
10
+ <h3 class="smform-title"><?php echo $form->getTitle() ?></h3>
11
+
12
+ <div class="smform-description">
13
+ <p><?php echo $form->getDescription() ?></p>
14
+ </div>
15
+
16
+ </legend>
17
+
18
+ <?php foreach( $form->getFields() as $key => $field ): extract( $field, EXTR_OVERWRITE ); ?>
19
+
20
+
21
+ <div class="smform-fieldcont smform-fieldcont<?php echo $type ?>" id="smform-fieldcont<?php echo $key ?>"
22
+ data-key="smform-field<?php echo $form->getId() . $key ?>"
23
+ data-rule="<?php echo ( $ruleEnabled ) ? 'enabled': 'disabled' ?>"
24
+ data-ruleoperator="<?php echo $rules['operator'] ?>"
25
+ data-ruleaction="<?php echo $rules['action'] ?>"
26
+ data-rulecmpvalue="<?php echo $rules['cmpValue'] ?>"
27
+ data-rulefield="<?php echo $rules['field'] ?>" >
28
+
29
+ <?php do_action( 'smuzform_showfield_start', $field, $form->getId() ) ?>
30
+
31
+ <?php if ( $type == 'singletext' ): ?>
32
+
33
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
34
+
35
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
36
+ value="<?php esc_attr_e($preValue) ?>"
37
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
38
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
39
+ type="text" <?php echo ( $required ) ? 'required ': '' ?> date-type="text" />
40
+
41
+ <?php endif; ?>
42
+
43
+ <?php if ( $type == 'number' ): ?>
44
+
45
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
46
+
47
+ <input name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
48
+ value="<?php esc_attr_e($preValue) ?>"
49
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
50
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
51
+ type="text" <?php echo ( $required ) ? 'required ': '' ?>
52
+ data-type="number" />
53
+
54
+ <?php endif; ?>
55
+
56
+ <?php if ( $type == 'textarea' ): ?>
57
+
58
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
59
+
60
+ <textarea name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
61
+ placeholder="<?php esc_attr_e( $placeholderText ) ?>"
62
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?> smform-control smform-controllabelpostextarea"
63
+ <?php echo ( $required ) ? 'required ': '' ?>
64
+ data-type="textarea"
65
+ ><?php echo esc_html($preValue) ?></textarea>
66
+
67
+ <?php endif; ?>
68
+
69
+ <?php if ( $type == 'dropdown' ): ?>
70
+
71
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
72
+
73
+ <select name="smFieldData[<?php echo $cssID ?>]" id="smform-field<?php echo $form->getId() . $key ?>"
74
+ class="smform-control smform-controllabelpos <?php esc_attr_e( $cssClasses ); echo ( $required ) ? 'required ': '' ?> smform-field-size<?php echo $size ?>"
75
+ <?php echo ( $required ) ? 'required ': '' ?>
76
+ data-type="select" >
77
+
78
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
79
+
80
+ <option <?php echo ($choicekey === $selectedChoice ) ? 'selected': '' ?> value="<?php esc_attr_e( $choice ) ?>"><?php echo esc_html( $choice ) ?></option>
81
+
82
+ <?php endforeach; ?>
83
+
84
+ </select>
85
+
86
+ <?php endif; ?>
87
+
88
+ <?php if ( $type == 'radio' ): ?>
89
+
90
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
91
+
92
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
93
+
94
+ <div class="smform-control smform-controllabelpos-radio radio">
95
+ <label><input name="smFieldData[<?php echo $cssID ?>]" type="radio" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="radio" /> <?php echo esc_html( $choice ) ?></label>
96
+ </div>
97
+
98
+ <?php endforeach; ?>
99
+
100
+ <?php endif; ?>
101
+
102
+ <?php if ( $type == 'checkbox' ): ?>
103
+
104
+ <label for="smform-field<?php echo $form->getId() . $key ?>" class="smform-field-label <?php echo ( $required ) ? 'required ': ''; echo ( ! $labelVisible ) ? 'smform-labelhidden': '' ?>"><?php echo esc_html( $label ) ?></label>
105
+
106
+ <?php foreach ( $choices as $choicekey => $choice ): ?>
107
+
108
+ <div class="smform-control smform-controllabelpos-radio checkbox">
109
+ <label><input name="smFieldData[<?php echo $cssID ?>][checkbox][]" type="checkbox" <?php echo ($choicekey === $selectedChoice ) ? 'checked': '' ?> value="<?php esc_attr_e( $choice ) ?>" <?php echo ( $required ) ? 'required ': '' ?> data-type="checkbox" /> <?php echo esc_html( $choice ) ?></label>
110
+ </div>
111
+
112
+ <?php endforeach; ?>
113
+
114
+ <?php endif; ?>
115
+
116
+ <?php if ( $type == 'linebreak' ): ?>
117
+ <hr />
118
+ <?php endif; ?>
119
+
120
+ <?php if ( $type == 'sectionbreak' ): ?>
121
+ <legend>
122
+
123
+ <h3 class="smsection-title"><?php echo esc_html( $sectionTitle ) ?></h3>
124
+
125
+ <div class="smsection-description">
126
+ <p><?php echo esc_html( $sectionDescription ) ?></p>
127
+ </div>
128
+
129
+ </legend>
130
+ <?php endif; ?>
131
+
132
+ <?php include smuzform_public_view( 'form/render-advanced-fields.php' ) ?>
133
+
134
+ <?php include smuzform_public_view( 'form/render-html-fields.php' ) ?>
135
+
136
+ <?php do_action( 'smuzform_showfield_end', $field, $form->getId() ) ?>
137
+
138
+ </div>
139
+
140
+ <?php endforeach; ?>
141
+
142
+
143
+ <div id="smuzform-robot" style="display: none">
144
+ <label>If you're not a fish leave this field blank:</label>
145
+ <input name="smuztrapfish" type="text" style="display: none" />
146
+ </div>
147
+
148
+
149
+ <?php do_action( 'smuzform_display_before_submit_btn', $form->getId(), $form ) ?>
150
+
151
+ <div id="smform-submitbtn-cont">
152
+ <input type="submit" value="<?php echo $form->getSubmitBtnText() ?>" name="submitForm" class="smform-submit" />
153
+ <div class="smform-ajax-spinner">
154
+ <div class="sk-circle">
155
+ <div class="sk-circle1 sk-child"></div>
156
+ <div class="sk-circle2 sk-child"></div>
157
+ <div class="sk-circle3 sk-child"></div>
158
+ <div class="sk-circle4 sk-child"></div>
159
+ <div class="sk-circle5 sk-child"></div>
160
+ <div class="sk-circle6 sk-child"></div>
161
+ <div class="sk-circle7 sk-child"></div>
162
+ <div class="sk-circle8 sk-child"></div>
163
+ <div class="sk-circle9 sk-child"></div>
164
+ <div class="sk-circle10 sk-child"></div>
165
+ <div class="sk-circle11 sk-child"></div>
166
+ <div class="sk-circle12 sk-child"></div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ <div class="smform-ajax-msg"><p class="smform-ajax-msg-p"></p></div>
172
+
173
+ <input type="hidden" name="_formId" value="<?php echo $form->getId() ?>" />
174
+ <input type="hidden" name="_returnLink" value="<?php the_permalink() ?>" />
175
+
176
+ <input type="hidden" data-formid="<?php echo $form->getId() ?>" value='<?php echo json_encode( $form->getStyle() ) ?>' id="smformstyle-<?php echo $form->getId() ?>" class="smformstylehidden" />
177
+
178
+ <?php do_action( 'smuzform_display_end', $form->getId(), $form ) ?>
179
+
180
+ </form>
181
+ </div>
public/views/form/select-county-list.php ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <option value="">Country...</option>
3
+ <option value="Afganistan">Afghanistan</option>
4
+ <option value="Albania">Albania</option>
5
+ <option value="Algeria">Algeria</option>
6
+ <option value="American Samoa">American Samoa</option>
7
+ <option value="Andorra">Andorra</option>
8
+ <option value="Angola">Angola</option>
9
+ <option value="Anguilla">Anguilla</option>
10
+ <option value="Antigua &amp; Barbuda">Antigua &amp; Barbuda</option>
11
+ <option value="Argentina">Argentina</option>
12
+ <option value="Armenia">Armenia</option>
13
+ <option value="Aruba">Aruba</option>
14
+ <option value="Australia">Australia</option>
15
+ <option value="Austria">Austria</option>
16
+ <option value="Azerbaijan">Azerbaijan</option>
17
+ <option value="Bahamas">Bahamas</option>
18
+ <option value="Bahrain">Bahrain</option>
19
+ <option value="Bangladesh">Bangladesh</option>
20
+ <option value="Barbados">Barbados</option>
21
+ <option value="Belarus">Belarus</option>
22
+ <option value="Belgium">Belgium</option>
23
+ <option value="Belize">Belize</option>
24
+ <option value="Benin">Benin</option>
25
+ <option value="Bermuda">Bermuda</option>
26
+ <option value="Bhutan">Bhutan</option>
27
+ <option value="Bolivia">Bolivia</option>
28
+ <option value="Bonaire">Bonaire</option>
29
+ <option value="Bosnia &amp; Herzegovina">Bosnia &amp; Herzegovina</option>
30
+ <option value="Botswana">Botswana</option>
31
+ <option value="Brazil">Brazil</option>
32
+ <option value="British Indian Ocean Ter">British Indian Ocean Ter</option>
33
+ <option value="Brunei">Brunei</option>
34
+ <option value="Bulgaria">Bulgaria</option>
35
+ <option value="Burkina Faso">Burkina Faso</option>
36
+ <option value="Burundi">Burundi</option>
37
+ <option value="Cambodia">Cambodia</option>
38
+ <option value="Cameroon">Cameroon</option>
39
+ <option value="Canada">Canada</option>
40
+ <option value="Canary Islands">Canary Islands</option>
41
+ <option value="Cape Verde">Cape Verde</option>
42
+ <option value="Cayman Islands">Cayman Islands</option>
43
+ <option value="Central African Republic">Central African Republic</option>
44
+ <option value="Chad">Chad</option>
45
+ <option value="Channel Islands">Channel Islands</option>
46
+ <option value="Chile">Chile</option>
47
+ <option value="China">China</option>
48
+ <option value="Christmas Island">Christmas Island</option>
49
+ <option value="Cocos Island">Cocos Island</option>
50
+ <option value="Colombia">Colombia</option>
51
+ <option value="Comoros">Comoros</option>
52
+ <option value="Congo">Congo</option>
53
+ <option value="Cook Islands">Cook Islands</option>
54
+ <option value="Costa Rica">Costa Rica</option>
55
+ <option value="Cote DIvoire">Cote D'Ivoire</option>
56
+ <option value="Croatia">Croatia</option>
57
+ <option value="Cuba">Cuba</option>
58
+ <option value="Curaco">Curacao</option>
59
+ <option value="Cyprus">Cyprus</option>
60
+ <option value="Czech Republic">Czech Republic</option>
61
+ <option value="Denmark">Denmark</option>
62
+ <option value="Djibouti">Djibouti</option>
63
+ <option value="Dominica">Dominica</option>
64
+ <option value="Dominican Republic">Dominican Republic</option>
65
+ <option value="East Timor">East Timor</option>
66
+ <option value="Ecuador">Ecuador</option>
67
+ <option value="Egypt">Egypt</option>
68
+ <option value="El Salvador">El Salvador</option>
69
+ <option value="Equatorial Guinea">Equatorial Guinea</option>
70
+ <option value="Eritrea">Eritrea</option>
71
+ <option value="Estonia">Estonia</option>
72
+ <option value="Ethiopia">Ethiopia</option>
73
+ <option value="Falkland Islands">Falkland Islands</option>
74
+ <option value="Faroe Islands">Faroe Islands</option>
75
+ <option value="Fiji">Fiji</option>
76
+ <option value="Finland">Finland</option>
77
+ <option value="France">France</option>
78
+ <option value="French Guiana">French Guiana</option>
79
+ <option value="French Polynesia">French Polynesia</option>
80
+ <option value="French Southern Ter">French Southern Ter</option>
81
+ <option value="Gabon">Gabon</option>
82
+ <option value="Gambia">Gambia</option>
83
+ <option value="Georgia">Georgia</option>
84
+ <option value="Germany">Germany</option>
85
+ <option value="Ghana">Ghana</option>
86
+ <option value="Gibraltar">Gibraltar</option>
87
+ <option value="Great Britain">Great Britain</option>
88
+ <option value="Greece">Greece</option>
89
+ <option value="Greenland">Greenland</option>
90
+ <option value="Grenada">Grenada</option>
91
+ <option value="Guadeloupe">Guadeloupe</option>
92
+ <option value="Guam">Guam</option>
93
+ <option value="Guatemala">Guatemala</option>
94
+ <option value="Guinea">Guinea</option>
95
+ <option value="Guyana">Guyana</option>
96
+ <option value="Haiti">Haiti</option>
97
+ <option value="Hawaii">Hawaii</option>
98
+ <option value="Honduras">Honduras</option>
99
+ <option value="Hong Kong">Hong Kong</option>
100
+ <option value="Hungary">Hungary</option>
101
+ <option value="Iceland">Iceland</option>
102
+ <option value="India">India</option>
103
+ <option value="Indonesia">Indonesia</option>
104
+ <option value="Iran">Iran</option>
105
+ <option value="Iraq">Iraq</option>
106
+ <option value="Ireland">Ireland</option>
107
+ <option value="Isle of Man">Isle of Man</option>
108
+ <option value="Israel">Israel</option>
109
+ <option value="Italy">Italy</option>
110
+ <option value="Jamaica">Jamaica</option>
111
+ <option value="Japan">Japan</option>
112
+ <option value="Jordan">Jordan</option>
113
+ <option value="Kazakhstan">Kazakhstan</option>
114
+ <option value="Kenya">Kenya</option>
115
+ <option value="Kiribati">Kiribati</option>
116
+ <option value="Korea North">Korea North</option>
117
+ <option value="Korea Sout">Korea South</option>
118
+ <option value="Kuwait">Kuwait</option>
119
+ <option value="Kyrgyzstan">Kyrgyzstan</option>
120
+ <option value="Laos">Laos</option>
121
+ <option value="Latvia">Latvia</option>
122
+ <option value="Lebanon">Lebanon</option>
123
+ <option value="Lesotho">Lesotho</option>
124
+ <option value="Liberia">Liberia</option>
125
+ <option value="Libya">Libya</option>
126
+ <option value="Liechtenstein">Liechtenstein</option>
127
+ <option value="Lithuania">Lithuania</option>
128
+ <option value="Luxembourg">Luxembourg</option>
129
+ <option value="Macau">Macau</option>
130
+ <option value="Macedonia">Macedonia</option>
131
+ <option value="Madagascar">Madagascar</option>
132
+ <option value="Malaysia">Malaysia</option>
133
+ <option value="Malawi">Malawi</option>
134
+ <option value="Maldives">Maldives</option>
135
+ <option value="Mali">Mali</option>
136
+ <option value="Malta">Malta</option>
137
+ <option value="Marshall Islands">Marshall Islands</option>
138
+ <option value="Martinique">Martinique</option>
139
+ <option value="Mauritania">Mauritania</option>
140
+ <option value="Mauritius">Mauritius</option>
141
+ <option value="Mayotte">Mayotte</option>
142
+ <option value="Mexico">Mexico</option>
143
+ <option value="Midway Islands">Midway Islands</option>
144
+ <option value="Moldova">Moldova</option>
145
+ <option value="Monaco">Monaco</option>
146
+ <option value="Mongolia">Mongolia</option>
147
+ <option value="Montserrat">Montserrat</option>
148
+ <option value="Morocco">Morocco</option>
149
+ <option value="Mozambique">Mozambique</option>
150
+ <option value="Myanmar">Myanmar</option>
151
+ <option value="Nambia">Nambia</option>
152
+ <option value="Nauru">Nauru</option>
153
+ <option value="Nepal">Nepal</option>
154
+ <option value="Netherland Antilles">Netherland Antilles</option>
155
+ <option value="Netherlands">Netherlands (Holland, Europe)</option>
156
+ <option value="Nevis">Nevis</option>
157
+ <option value="New Caledonia">New Caledonia</option>
158
+ <option value="New Zealand">New Zealand</option>
159
+ <option value="Nicaragua">Nicaragua</option>
160
+ <option value="Niger">Niger</option>
161
+ <option value="Nigeria">Nigeria</option>
162
+ <option value="Niue">Niue</option>
163
+ <option value="Norfolk Island">Norfolk Island</option>
164
+ <option value="Norway">Norway</option>
165
+ <option value="Oman">Oman</option>
166
+ <option value="Pakistan">Pakistan</option>
167
+ <option value="Palau Island">Palau Island</option>
168
+ <option value="Palestine">Palestine</option>
169
+ <option value="Panama">Panama</option>
170
+ <option value="Papua New Guinea">Papua New Guinea</option>
171
+ <option value="Paraguay">Paraguay</option>
172
+ <option value="Peru">Peru</option>
173
+ <option value="Phillipines">Philippines</option>
174
+ <option value="Pitcairn Island">Pitcairn Island</option>
175
+ <option value="Poland">Poland</option>
176
+ <option value="Portugal">Portugal</option>
177
+ <option value="Puerto Rico">Puerto Rico</option>
178
+ <option value="Qatar">Qatar</option>
179
+ <option value="Republic of Montenegro">Republic of Montenegro</option>
180
+ <option value="Republic of Serbia">Republic of Serbia</option>
181
+ <option value="Reunion">Reunion</option>
182
+ <option value="Romania">Romania</option>
183
+ <option value="Russia">Russia</option>
184
+ <option value="Rwanda">Rwanda</option>
185
+ <option value="St Barthelemy">St Barthelemy</option>
186
+ <option value="St Eustatius">St Eustatius</option>
187
+ <option value="St Helena">St Helena</option>
188
+ <option value="St Kitts-Nevis">St Kitts-Nevis</option>
189
+ <option value="St Lucia">St Lucia</option>
190
+ <option value="St Maarten">St Maarten</option>
191
+ <option value="St Pierre &amp; Miquelon">St Pierre &amp; Miquelon</option>
192
+ <option value="St Vincent &amp; Grenadines">St Vincent &amp; Grenadines</option>
193
+ <option value="Saipan">Saipan</option>
194
+ <option value="Samoa">Samoa</option>
195
+ <option value="Samoa American">Samoa American</option>
196
+ <option value="San Marino">San Marino</option>
197
+ <option value="Sao Tome &amp; Principe">Sao Tome &amp; Principe</option>
198
+ <option value="Saudi Arabia">Saudi Arabia</option>
199
+ <option value="Senegal">Senegal</option>
200
+ <option value="Serbia">Serbia</option>
201
+ <option value="Seychelles">Seychelles</option>
202
+ <option value="Sierra Leone">Sierra Leone</option>
203
+ <option value="Singapore">Singapore</option>
204
+ <option value="Slovakia">Slovakia</option>
205
+ <option value="Slovenia">Slovenia</option>
206
+ <option value="Solomon Islands">Solomon Islands</option>
207
+ <option value="Somalia">Somalia</option>
208
+ <option value="South Africa">South Africa</option>
209
+ <option value="Spain">Spain</option>
210
+ <option value="Sri Lanka">Sri Lanka</option>
211
+ <option value="Sudan">Sudan</option>
212
+ <option value="Suriname">Suriname</option>
213
+ <option value="Swaziland">Swaziland</option>
214
+ <option value="Sweden">Sweden</option>
215
+ <option value="Switzerland">Switzerland</option>
216
+ <option value="Syria">Syria</option>
217
+ <option value="Tahiti">Tahiti</option>
218
+ <option value="Taiwan">Taiwan</option>
219
+ <option value="Tajikistan">Tajikistan</option>
220
+ <option value="Tanzania">Tanzania</option>
221
+ <option value="Thailand">Thailand</option>
222
+ <option value="Togo">Togo</option>
223
+ <option value="Tokelau">Tokelau</option>
224
+ <option value="Tonga">Tonga</option>
225
+ <option value="Trinidad &amp; Tobago">Trinidad &amp; Tobago</option>
226
+ <option value="Tunisia">Tunisia</option>
227
+ <option value="Turkey">Turkey</option>
228
+ <option value="Turkmenistan">Turkmenistan</option>
229
+ <option value="Turks &amp; Caicos Is">Turks &amp; Caicos Is</option>
230
+ <option value="Tuvalu">Tuvalu</option>
231
+ <option value="Uganda">Uganda</option>
232
+ <option value="Ukraine">Ukraine</option>
233
+ <option value="United Arab Erimates">United Arab Emirates</option>
234
+ <option value="United Kingdom">United Kingdom</option>
235
+ <option value="United States of America">United States of America</option>
236
+ <option value="Uraguay">Uruguay</option>
237
+ <option value="Uzbekistan">Uzbekistan</option>
238
+ <option value="Vanuatu">Vanuatu</option>
239
+ <option value="Vatican City State">Vatican City State</option>
240
+ <option value="Venezuela">Venezuela</option>
241
+ <option value="Vietnam">Vietnam</option>
242
+ <option value="Virgin Islands (Brit)">Virgin Islands (Brit)</option>
243
+ <option value="Virgin Islands (USA)">Virgin Islands (USA)</option>
244
+ <option value="Wake Island">Wake Island</option>
245
+ <option value="Wallis &amp; Futana Is">Wallis &amp; Futana Is</option>
246
+ <option value="Yemen">Yemen</option>
247
+ <option value="Zaire">Zaire</option>
248
+ <option value="Zambia">Zambia</option>
249
+ <option value="Zimbabwe">Zimbabwe</option>
public/views/index.php ADDED
File without changes
readme.txt ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Contact Form ===
2
+ Contributors: umarbajwa
3
+ Requires at least: 3.7
4
+ Tested up to: 4.5
5
+ Tags: contact form, form, form creator, form builder, forms, contact form builder, contact form designer, contact forms, form maker
6
+ Stable tag: 1.0.1
7
+ Donate Link: http://web-settler.com
8
+ License: GPL V2 or latest
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Contact form plugin saves your hours of precious time by making form creation process super simple and efficient.
12
+
13
+ == Description ==
14
+
15
+ Contact form plugin is easiest way to build any responsive form for your website. No fuss or messing with code create the form you want easily with simple drag & drop form builder.
16
+
17
+ Contact form plugin's user interface is designed to maximize the time efficiency one spend creating a form, try it and you will know how much easy and efficient this form plugin is.
18
+
19
+ With contact form plugin you can create simple contact forms or complex application form easily in mere minutes.
20
+
21
+ Whether you are a beginner or advanced WordPress user contact form plugin will certainly fulfill all your needs and requirements.
22
+
23
+ Save all your contact form entries in database and also get email notification about new entries. Delete,modify entries easily with entry manager.
24
+
25
+ View your entries with contact form entry manager. Contact form plugin also allows you to print your entries or download your contact form entries in .csv format.
26
+
27
+ You can also add HTML elements like Text, Image and link inside your contact forms for more flexibility.
28
+
29
+ Contact form plugin also support custom HTML so you can define your own terms for your form.
30
+
31
+ You can create any type of forms with contact form plugin it was built for multi purpose forms.
32
+
33
+
34
+ ### Features :
35
+
36
+ * Easy to use, even for beginners
37
+ * Fully responsive contact form looks perfect on all screen sizes and mobile devices.
38
+ * Add or remove additional fields easily and label any contact form fields you want.
39
+ * Make any of the form fields required or not.
40
+ * Receive a copy of the email sent via the contact form.
41
+ * Drag & Drop form builder.
42
+ * Contact form plugin have ready to go fields.
43
+ * Manage, Edit, and Export form user submissions.
44
+ * Secure forms with advanced security features.
45
+ * All form submitted data is available to sort,filter,analyze or export as CSV or print.
46
+ * Ability to View, Edit or delete entries/submissions.
47
+ * Advanced Conditional login for your fields.
48
+ * Redirect users after submission to specified URL.
49
+ * File upload feature for your forms.
50
+ * Field settings section.
51
+ * Make fields required or block duplication.
52
+ * Set pre-defined values for fields of your form.
53
+ * Notifications - Email notifications for your form submission or select one from AddOns.
54
+ * Various Auto responders supported.
55
+ * Conditional Logic for Email Notifications.
56
+ * Create interactive forms that react to user’s actions.
57
+ * Dynamically show, hide, or change the value of form fields.
58
+ * Add Multiple notifications for one form.
59
+ * Form settings to setup your form.
60
+ * Flexible field types.
61
+ * Insert your form anywhere.
62
+ * Ajax based contact forms.
63
+ * Design your forms.
64
+ * Customizable design.
65
+
66
+
67
+ ### Available AddOns
68
+
69
+ = Google Captcha =
70
+
71
+ Google Captcha Premium AddOn for securing you Forms from spamming and brute forces from the dark side.
72
+
73
+
74
+ = Form Designer =
75
+
76
+ Why add white boring forms when you can add colors .
77
+
78
+ = Entries =
79
+
80
+ Contact form plugin stores all form submissions in entries so you can view,edit or delete them. Entries also allow you to export your form submissions.
81
+
82
+ = Export Submissions =
83
+
84
+ Contact form plugin have built in entries system which stores form submissions and allow you to print or export form submissions as CSV file. This format is supported by all CRM services for importing data to their platform.
85
+
86
+ = Conditional Logic Fields =
87
+
88
+ With conditional logic you can add IF-THEN logic for your fields. Enable Conditional logic to a field to show or hide that field based on a previous user selection or input.
89
+
90
+ = Conditional Logic Notifications =
91
+
92
+ Contact form plugin give you the ability to apply conditional logic for your notifications. Which on specified input will <b>Send</b> OR <b>Not Send</b> the notification.
93
+
94
+
95
+ = Responsive Contact Forms =
96
+
97
+ Contact form plugin is 100% responsive and mobile friendly contact form plugin is compatible with Mobiles,Tablets & and all screen sizes.
98
+
99
+
100
+
101
+ = Notifications =
102
+
103
+ Contact form notification section allows you to select notifications for your submission get notified by email or select an AddOn for various email marketing service integrations. Recieve email notifications whenever someone use your contact form.
104
+
105
+
106
+ = Drag & Drop From Builder =
107
+
108
+ Contact form plugin have drag and drop form builder which allows you to make and publish your forms in no time.
109
+
110
+ = Multi Page Form =
111
+
112
+ Contact form allows you to create efficient multi page forms. With this feature you can make your contact forms more interactive.
113
+
114
+ = HTML Elements =
115
+
116
+ Contact form plugin give you the ability to add HTML elements like Images, Links, Text etc.. in your contact form. You can also add custom HTML which gives you endless possibilities.
117
+
118
+
119
+
120
+
121
+
122
+
123
+ == Installation ==
124
+
125
+ The easy way :
126
+
127
+ 1. Go to the Plugins Menu in WordPress.
128
+ 1. Search for plugin "Contact Form Add".
129
+ 1. Click "Install".
130
+ 1. After Installation click activate to start using the coming soon plugin.
131
+
132
+
133
+
134
+ Not so easy way :
135
+
136
+ 1. To install Contact Form Add via FTP
137
+ 1. Download the Contact Form Add
138
+ 1. Unarchive Contact Form Add plugin
139
+ 1. Copy folder with Contact-Form-Add.zip
140
+ 1. Open the ftp \wp-content\plugins\
141
+ 1. Paste the plug-ins folder in the folder
142
+ 1. Go to admin panel => open item "Plugins" => activate Contact Form Add.
143
+
144
+
145
+ == Frequently Asked Questions ==
146
+
147
+ = Contact Form Frequently Asked Questions =
148
+
149
+ = How to create a form ? =
150
+
151
+ A : After activating the contact form plugin go to contact form menu from your dashboard, Click add new button, Now from Add Field tab click on the fields you want to add in your form and save the form. Go to export to get the shortcode to display the contact form on your website.
152
+
153
+ = How to display Contact Form ? =
154
+
155
+ A: After saving the form you created go to export copy the shortcode and paste it in place where you want to display the contact form.
156
+
157
+ = How can I add my Contact Form in widget section ? =
158
+
159
+ A: To display your contact form in a widget copy the form shortcode and paste it in a text widget.
160
+
161
+ = How can I display Form on all pages of my website =
162
+
163
+ A: Use you form in widgets to display it on all pages.
164
+
165
+ = How can I receive an email whenever a person submits the form ? =
166
+
167
+ A: To receive the email notification when someone submits the form.
168
+
169
+ 1. Go to Notifications.
170
+ 1. Select a Notification type (In this case select Email).
171
+ 1. Click Add New button.
172
+ 1. Configure your email notification.
173
+
174
+ = What is conditional logic ? =
175
+
176
+ A: Conditional logic is the logic built for form plugin which on specific action performs a pre defined task. With conditional logic you can add IF-THEN logic for your fields. Enable Conditional logic to a field to show or hide that field based on a previous user selection or input. (For Example if you set conditional logic for email field so when a user enter their email and if he had already sent a request through your form you can identify and show him that his previous request is being processed.)
177
+
178
+ = How can I view the form submission ? =
179
+
180
+ A: You can view the form submissions from Entries.
181
+
182
+ = Can I edit existing Form entries ? =
183
+
184
+ A: Yes, You can edit your entries from entry manager.
185
+
186
+
187
+ == Screenshots ==
188
+
189
+ 1. Contact Form demo default.
190
+
191
+ 2. Contact Form demo styled.
192
+
193
+ 3. Contact Form builder.
194
+
195
+ 4. Contact Form style manager.
196
+
197
+ 5. Contact form notifications.
198
+
199
+
200
+
201
+ == Changelog ==
202
+
203
+ No Changes Yet!
204
+
205
+
206
+ == Other Notes ==
207
+
208
+
209
+ = Conditional Logic Fields =
210
+
211
+ With conditional logic you can add IF-THEN logic for your fields. Enable Conditional logic to a field to show or hide that field based on a previous user selection or input.
212
+
213
+ = Conditional Logic Notifications =
214
+
215
+ Contact form plugin give you the ability to apply conditional logic for your notifications. Which on specified input will <b>Send</b> OR <b>Not Send</b> the notification.
216
+
217
+
218
+
219
+ == Upgrade Notice ==
220
+
221
+ No Changes Yet!
222
+
223
+ Contact Form plugin.