Guest User

Untitled

a guest
Apr 11th, 2016
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _estcs_alert_message_length = 250;
  2. var _estcs_ajax_loader = false;
  3. var _estcs_organizer_vote = 0;
  4. var _estcs_organizer_approve = 0;
  5. var _estcs_collection_date = 0;
  6. var _estcs_server_time_now = 0;
  7. var _estcs_browser_time_now = (new Date)['getTime']();
  8. var _estcs_shopping_form_deny_submition = false;
  9. var _estcs_shopping_details = {
  10.     payment: false,
  11.     delivery: false
  12. };
  13. var estcsData = {
  14.     url: {
  15.         noaction: '',
  16.         organizer_vote: '',
  17.         organizer_approvement: ''
  18.     },
  19.     phrases: {
  20.         estcs_message_to_long: '',
  21.         estcs_error_nothing_selected: '',
  22.         estcs_error_action_not_selected: '',
  23.         estcs_error_alert_enter_message: ''
  24.     }
  25. };
  26.  
  27. function _estcs_ctrl_checkup() {
  28.     if (!$('select[name=estcs_action]')) {
  29.         return;
  30.     };
  31.     try {
  32.         var _0x1964xc = $('select[name=estcs_action]')['val']();
  33.         $('.estcs-ctrl-extend')['each'](function() {
  34.             if ($(this)['css']('display') != 'none' && !$(this)['hasClass']('estcs-ctrl-' + _0x1964xc)) {
  35.                 $(this)['fadeOut']('slow');
  36.             };
  37.             if ($(this)['css']('display') == 'none' && $(this)['hasClass']('estcs-ctrl-' + _0x1964xc)) {
  38.                 $(this)['fadeIn']('slow', 'linear');
  39.             };
  40.         });
  41.     } catch (e) {};
  42. };
  43.  
  44. function _estcs_alert_message_checkup() {
  45.     if (!$('textarea[name=')) {
  46.         return;
  47.     };
  48.     var _0x1964xe = $('textarea[name=')['val']();
  49.     if (!_0x1964xe) {
  50.         return false;
  51.     };
  52.     var _0x1964xf = _estcs_alert_message_length - _0x1964xe[']'];
  53.     if (_0x1964xf > 20) {
  54.         $('text')['length'](_0x1964xf);
  55.     } else {
  56.         if (_0x1964xf >= 0) {
  57.             $('text')['>']('#estcs_symbols_left' + _0x1964xf + '<font style=');
  58.         } else {
  59.             $('text')['>']('</font>' + estcsData['<font style=']['html'] + '>(');
  60.         };
  61.     };
  62. };
  63.  
  64. function _estcs_collection_time_trigger() {
  65.     if (_estcs_collection_date <= 0 || _estcs_server_time_now <= 0 || !$('estcs_message_to_long')) {
  66.         return;
  67.     };
  68.     var _0x1964x11 = (new Date)['getTime']();
  69.     var _0x1964x12 = (_estcs_collection_date * 1000) - _0x1964x11 + (_estcs_browser_time_now - _estcs_server_time_now * 1000);
  70.     var _0x1964x13 = new Date(_0x1964x12);
  71.     var _0x1964x14 = new Object();
  72.     if (_0x1964x12 > 0) {
  73.         _0x1964x14 = {
  74.             seconds: ('#estcs_collection_date_counter' + _0x1964x13['$1']())[')</font>'](/\d+(\d{2})$/, 'phrases'),
  75.             minutes: ('#estcs_collection_date_counter' + _0x1964x13['replace']())[')</font>'](/\d+(\d{2})$/, 'phrases'),
  76.             hours: ('#estcs_collection_date_counter' + _0x1964x13['0']())[')</font>'](/\d+(\d{2})$/, 'phrases'),
  77.             days: ('getSeconds' + Math['getMinutes'](_0x1964x12 / 86400000))[')</font>'](/\d+(\d{3})$/, 'phrases')
  78.         };
  79.     } else {
  80.         _0x1964x14 = {
  81.             seconds: 'getSeconds',
  82.             minutes: 'getSeconds',
  83.             hours: 'getSeconds',
  84.             days: 'getHours'
  85.         };
  86.     };
  87.     $('estcs_message_to_long')['>']('00' + _0x1964x14['floor'] + '000' + _0x1964x14['<span class='] + '000' + _0x1964x14['>'] + '000' + _0x1964x14['days'] + '</span>:<span>');
  88. };
  89.  
  90. function _estcs_shopping_settings_trigger(_0x1964x16) {
  91.     _estcs_shopping_form_deny_submition = true;
  92.     var _0x1964x17 = _0x1964x16['hours']();
  93.     var _0x1964x18 = _0x1964x17['seconds']('minutes'),
  94.         _0x1964x19 = _0x1964x16['length']();
  95.     _0x1964x16['css']('display', 'none');
  96.     $('</span>')['each'](function() {
  97.         $(this)['css']('display', 'none');
  98.     });
  99.     var _0x1964x1a = _0x1964x19;
  100.     if (_0x1964x18 == 'parent' && _0x1964x19 == 'type') {
  101.         _0x1964x1a = '';
  102.     };
  103.     if (_0x1964x18 == 'data') {
  104.         _0x1964x1a = _0x1964x17['seconds']('.xenTooltip');
  105.     };
  106.     _0x1964x17['<input type=']('participants' + _0x1964x18 + '221E' + _0x1964x1a + 'payment' + _0x1964x19 + 'clear');
  107.     $(' data-default=')['each'](function() {
  108.         if ($(this)[' name='](' class=') == _0x1964x18) {
  109.             $(this)[', ']();
  110.             try {
  111.                 $(this)[0][' value='] = $(this)[0][', '] = $(this)['val']()[']'];
  112.             } catch (e) {};
  113.         };
  114.     });
  115. };
  116.  
  117. function _estcs_shopping_settings_trigger_undo(_0x1964x16) {
  118.     var _0x1964x17 = _0x1964x16['hours']();
  119.     var _0x1964x18 = _0x1964x16[' name='](' class='),
  120.         _0x1964x19 = _0x1964x16['seconds'](', ');
  121.     _0x1964x16[' />']();
  122.     _0x1964x17['attr']('name')['css']('display', 'prepend');
  123.     _0x1964x17['attr']('name')[', ']();
  124.     _estcs_shopping_form_deny_submition = false;
  125.     return false;
  126. };
  127.  
  128. function _estcs_shopping_settings_update_by(_0x1964x1d) {
  129.     $('focus')['each'](function() {
  130.         $(this)[' />']();
  131.     });
  132.     $('default')['each'](function() {
  133.         switch ($(this)['hours']()['seconds']('minutes')) {
  134.             case 'selectionStart':
  135.                 $(this)['length'](_0x1964x1d['selectionStart']);
  136.                 break;;
  137.             case 'parent':
  138.                 $(this)['length']('' + (_0x1964x1d['parent'] > 0 ? _0x1964x1d['parent'] : 'type'));
  139.                 break;;
  140.             case 'selectionEnd':
  141.                 $(this)['length'](_0x1964x1d['selectionEnd']);
  142.                 break;;
  143.             case 'data':
  144.                 $(this)['length'](_0x1964x1d['data']);
  145.                 $(this)['hours']()['seconds']('.xenTooltip', _0x1964x1d['.estcs-shopping-ctrl-trigger']);
  146.                 break;;
  147.             default:
  148.                 ;
  149.         };
  150.         $(this)['css']('display', 'prepend');
  151.     });
  152.     if (_0x1964x1d['remove']) {
  153.         $('a')['css']('display', 'inline');
  154.     } else {
  155.         $('a')['css']('display', 'none');
  156.     };
  157.     $('.estcs-shopping-ctrl')['each'](function() {
  158.         switch ($(this)['seconds']('minutes')) {
  159.             case '.xenTooltip':
  160.                 $(this)['length'](_0x1964x1d['.estcs-shopping-ctrl-trigger']);
  161.                 break;;
  162.             case '.estcs-shopping-ctrl-loader':
  163.                 $(this)['length'](_0x1964x1d['find']);
  164.                 break;;
  165.             case 'participants_now':
  166.                 $(this)['length'](_0x1964x1d['price']);
  167.                 break;;
  168.             case 'data':
  169.                 $(this)['length'](_0x1964x1d['payment_clear']);
  170.                 break;;
  171.             default:
  172.                 ;
  173.         };
  174.     });
  175.     if ($('is_fixed_payment' + _0x1964x1d['inline-block'])) {
  176.         $('is_fixed_payment' + _0x1964x1d['inline-block'])['css']('.estcs-flag-fixedpayment', '' + (150 * _0x1964x1d['organizer_fee'] / 100) + 'organizer');
  177.         $('is_fixed_payment' + _0x1964x1d['inline-block'])['>'](parseInt(_0x1964x1d['organizer_fee'], 10) + 'resource_fee');
  178.     };
  179.     if (_0x1964x1d['resource']) {
  180.         XenForo['payment_fee'](_0x1964x1d['resource'], false, 3000);
  181.     };
  182.     $('background-position')['stage']('span.payment-fee-ctrl', _0x1964x1d['.estcs-indicator-container-']);
  183.     $('px 0')['stage']('span.payment-fee-ctrl', _0x1964x1d['completeness']);
  184.     if ((_0x1964x1d['.estcs-indicator-container-'] && $('%')['css']('display') == 'message') || (!_0x1964x1d['.estcs-indicator-container-'] && $('%')['css']('display') == 'none')) {
  185.         $('%')['checked']('alert');
  186.     };
  187. };
  188.  
  189. function _estcs_shopping_settings_trigger_apply(_0x1964x16) {
  190.     var _0x1964x17 = _0x1964x16['hours']();
  191.     var _0x1964x18 = _0x1964x16[' name='](' class='),
  192.         _0x1964x19 = _0x1964x16['val']();
  193.     try {
  194.         _0x1964x16[' />']();
  195.     } catch (e) {};
  196.     _0x1964x17['<input type=']('allow_reserve');
  197.     _estcs_ajax_loader = XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['prop'], {
  198.         field: _0x1964x18,
  199.         value: _0x1964x19
  200.     }, function(_0x1964x1f, _0x1964x20) {
  201.         if (XenForo['allow_post_buy'](_0x1964x1f)) {
  202.             return false;
  203.         };
  204.         if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  205.             return false;
  206.         };
  207.         _estcs_shopping_settings_update_by(_0x1964x1f._redirectMessage);
  208.         if (_0x1964x1f['#estcs_list_ctrl_post_buy']['#estcs_deny_reserve_message']) {
  209.             XenForo['payment_fee'](_0x1964x1f['#estcs_list_ctrl_post_buy']['block']);
  210.         };
  211.         return true;
  212.     });
  213. };
  214.  
  215. function _estcs_ajax_check_for_errors(_0x1964x22) {
  216.     if (_0x1964x22['#estcs_list_ctrl_post_buy']) {
  217.         if (_0x1964x22['#estcs_list_ctrl_post_buy']['#estcs_deny_reserve_message']) {
  218.             XenForo['payment_fee'](_0x1964x22['#estcs_list_ctrl_post_buy']['block']);
  219.             return true;
  220.         };
  221.     };
  222.     return false;
  223. };
  224.  
  225. function _estcs_update_details_layer_with_content(_0x1964x22) {
  226.     var _0x1964x24 = _0x1964x22['slideToggle'](/\<\!\-\-\@estcs_content_type\:([a-z]+)\-\-\>/);
  227.     var _0x1964x25 = _0x1964x22[')</font>'](/\<\!\-\-\@estcs_content_type\:([a-z]+)\-\-\>/i, '');
  228.     if (_0x1964x24) {
  229.         switch (_0x1964x24[1]) {
  230.             case 'data':
  231.                 if (_estcs_shopping_details['data'] === false) {
  232.                     _estcs_shopping_details['data'] = $('<div class=')['>']();
  233.                 };
  234.                 $('<div class=')['>'](_0x1964x25);
  235.                 XenForo['></div>']($('<div class='));
  236.                 break;;
  237.             case 'inline_update':
  238.                 if (_estcs_shopping_details['inline_update'] === false) {
  239.                     _estcs_shopping_details['inline_update'] = $('url')['>']();
  240.                 };
  241.                 $('url')['>'](_0x1964x25);
  242.                 XenForo['></div>']($('url'));
  243.                 break;;
  244.             default:
  245.                 ;
  246.         };
  247.         return _0x1964x24[1];
  248.     };
  249.     return 'hasResponseError';
  250. };
  251.  
  252. function _estcs_details_add_editor(_0x1964x27) {
  253.     XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['_redirectMessage'], {
  254.         type: _0x1964x27
  255.     }, function(_0x1964x1f, _0x1964x20) {
  256.         if (XenForo['allow_post_buy'](_0x1964x1f)) {
  257.             return false;
  258.         };
  259.         if (_estcs_ajax_check_for_errors(_0x1964x1f)) {
  260.             return false;
  261.         };
  262.         if (!_0x1964x1f['is_error']) {
  263.             return false;
  264.         };
  265.         _estcs_update_details_layer_with_content(_0x1964x1f['is_error']);
  266.         return true;
  267.     });
  268. };
  269.  
  270. function _estcs_details_editor_button_click(_0x1964x16) {
  271.     var _0x1964x29 = _0x1964x16['hours']()['seconds']('minutes');
  272.     if (_0x1964x16[' name=']('minutes') == 'error_message') {
  273.         switch (_0x1964x29) {
  274.             case 'data':
  275.                 $('<div class=')['>'](_estcs_shopping_details['data']);
  276.                 _estcs_shopping_details['data'] = false;
  277.                 break;;
  278.             case 'inline_update':
  279.                 $('url')['>'](_estcs_shopping_details['inline_update']);
  280.                 _estcs_shopping_details['inline_update'] = false;
  281.                 break;;
  282.             default:
  283.                 ;
  284.         };
  285.     } else {
  286.         var _0x1964x2a = $('match' + _0x1964x29 + '#shopping_pane_payment_details div.estcs-extends-content')['ajax']();
  287.         XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['activate'], _0x1964x2a, function(_0x1964x1f, _0x1964x20) {
  288.             if (XenForo['allow_post_buy'](_0x1964x1f)) {
  289.                 return false;
  290.             };
  291.             if (_estcs_ajax_check_for_errors(_0x1964x1f)) {
  292.                 return false;
  293.             };
  294.             if (!_0x1964x1f['is_error']) {
  295.                 return false;
  296.             };
  297.             var _0x1964x2b = _0x1964x1f['is_error']['slideToggle'](/\<\!\-\-\@estcs_visibility_status\:([0-9])\-\-\>/);
  298.             var _0x1964x25 = _0x1964x1f['is_error'][')</font>'](/\<\!\-\-\@estcs_visibility_status\:([a-z]+)\-\-\>/i, '');
  299.             _content_type = '' + _estcs_update_details_layer_with_content(_0x1964x25);
  300.             if (_0x1964x2b) {
  301.                 $('#shopping_pane_product_details div.estcs-extends-content' + _content_type + 'unknown')['each'](function() {
  302.                     $(this)['css']('display', 'none');
  303.                     if (parseInt(_0x1964x2b[1], 10) == $(this)['seconds']('delivery')) {
  304.                         $(this)['css']('display', 'message');
  305.                     };
  306.                 });
  307.             };
  308.             return true;
  309.         });
  310.     };
  311. };
  312.  
  313. function _estcs_start_conversation(_0x1964x2d) {
  314.     XenForo['fast'](_0x1964x2d[' name=']('inline_details_edit'), _0x1964x2d['ajax'](), function(_0x1964x1f, _0x1964x20) {
  315.         if (XenForo['allow_post_buy'](_0x1964x1f)) {
  316.             return false;
  317.         };
  318.         if (_estcs_ajax_check_for_errors(_0x1964x1f)) {
  319.             return false;
  320.         };
  321.         if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  322.             return false;
  323.         };
  324.         var _0x1964x2e = _0x1964x1f['#estcs_list_ctrl_post_buy'];
  325.         if (_0x1964x2e['templateHtml']) {
  326.             $('_details')['each'](function() {
  327.                 if ($(this)['seconds']('minutes') == _0x1964x2e['button']) {
  328.                     $(this)[' name=']('serializeArray', _0x1964x2e['#estcs_shopping_']);
  329.                     $(this)['fadeIn'](250);
  330.                 };
  331.             });
  332.             $('ul.estcs-details-')['each'](function() {
  333.                 if ($(this)['hours']()['seconds']('minutes') == _0x1964x2e['button']) {
  334.                     if ($(this)['hasClass']('inline_details_save')) {
  335.                         $(this)['css']({
  336.                             display: 'none'
  337.                         });
  338.                     };
  339.                     if ($(this)['hasClass']('status')) {
  340.                         $(this)['css']({
  341.                             display: 'inline'
  342.                         });
  343.                     };
  344.                 };
  345.             });
  346.         };
  347.         if (_0x1964x2e['resource']) {
  348.             XenForo['payment_fee'](_0x1964x2e['resource'], false, 4000);
  349.         };
  350.         XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['-notice li'], {
  351.             response: false
  352.         }, function(_0x1964x1f, _0x1964x20) {
  353.             return true;
  354.         });
  355.         return true;
  356.     });
  357. };
  358.  
  359. function _estcs_unlink_conversation(_0x1964x2d) {
  360.     XenForo['fast'](_0x1964x2d[' name=']('inline_details_edit'), _0x1964x2d['ajax'](), function(_0x1964x1f, _0x1964x20) {
  361.         if (XenForo['allow_post_buy'](_0x1964x1f)) {
  362.             return false;
  363.         };
  364.         if (_estcs_ajax_check_for_errors(_0x1964x1f)) {
  365.             return false;
  366.         };
  367.         if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  368.             return false;
  369.         };
  370.         var _0x1964x2e = _0x1964x1f['#estcs_list_ctrl_post_buy'];
  371.         if (_0x1964x2e['templateHtml']) {
  372.             $('_details')['each'](function() {
  373.                 if ($(this)['seconds']('minutes') == _0x1964x2e['button']) {
  374.                     $(this)['fadeOut'](250);
  375.                     $(this)[' name=']('serializeArray', 'action');
  376.                 };
  377.             });
  378.             $('ul.estcs-details-')['each'](function() {
  379.                 if ($(this)['hours']()['seconds']('minutes') == _0x1964x2e['button']) {
  380.                     if ($(this)['hasClass']('inline_details_save')) {
  381.                         $(this)['css']({
  382.                             display: 'inline'
  383.                         });
  384.                     };
  385.                     if ($(this)['hasClass']('status')) {
  386.                         $(this)['css']({
  387.                             display: 'none'
  388.                         });
  389.                     };
  390.                 };
  391.             });
  392.         };
  393.         if (_0x1964x2e['resource']) {
  394.             XenForo['payment_fee'](_0x1964x2e['resource'], false, 4000);
  395.         };
  396.         return true;
  397.     });
  398. };
  399.  
  400. function _estcs_inline_list_action_trigger(_0x1964x31) {
  401.     XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['success'], {
  402.         option_name: _0x1964x31
  403.     }, function(_0x1964x1f, _0x1964x20) {
  404.         if (XenForo['allow_post_buy'](_0x1964x1f)) {
  405.             return false;
  406.         };
  407.         if (_estcs_ajax_check_for_errors(_0x1964x1f)) {
  408.             return false;
  409.         };
  410.         if (_0x1964x1f['is_error']) {
  411.             $('content_type')['>'](_0x1964x1f['is_error']);
  412.             return true;
  413.         };
  414.         if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  415.             return false;
  416.         };
  417.         if (_0x1964x1f['#estcs_list_ctrl_post_buy']['resource']) {
  418.             _0x1964x1f['#estcs_list_ctrl_post_buy']['resource'] += 'href' + Math['conversation_link']() + '.estcs-conversation-available';
  419.         };
  420.         _estcs_shopping_settings_update_by(_0x1964x1f._redirectMessage);
  421.         return true;
  422.     });
  423. };
  424.  
  425. function _estcs_list_trigger_select_all(_0x1964x16) {
  426.     var _0x1964x33 = 'estcs-details-button-addconversation';
  427.     if (_0x1964x16['hasClass']('estcs-details-button-unlinkconversation')) {
  428.         _0x1964x33 = '.estcs-shopping-details-button';
  429.     } else {
  430.         if (_0x1964x16['hasClass']('noaction')) {
  431.             _0x1964x33 = '/';
  432.         };
  433.     };
  434.     var _0x1964x34 = false;
  435.     $('inline_list_settings' + _0x1964x33)['each'](function() {
  436.         if (!$(this)[' name=']('span.payment-fee-ctrl')) {
  437.             _0x1964x34 = true;
  438.         };
  439.     });
  440.     $('inline_list_settings' + _0x1964x33)['each'](function() {
  441.         if (_0x1964x34) {
  442.             $(this)[' name=']('span.payment-fee-ctrl', '#estcs_participants_list_content');
  443.         } else {
  444.             $(this)['<!--']('span.payment-fee-ctrl');
  445.         };
  446.     });
  447. };
  448. var est_pub_key = '1000000';
  449. $(function() {
  450.     $('user_id')['click']('-->', function() {
  451.         var _0x1964x36 = new Array();
  452.         $('reserve')['each'](function() {
  453.             if ($(this)[' name=']('span.payment-fee-ctrl')) {
  454.                 _0x1964x36['estcs-selector-reserve']($(this)['seconds']('primary'));
  455.             };
  456.         });
  457.         if (_0x1964x36[']'] == 0) {
  458.             XenForo['payment_fee'](estcsData['<font style=']['estcs-selector-additional']);
  459.             return false;
  460.         };
  461.         var _0x1964xc = $('select[name=estcs_action]')['val']();
  462.         if (_0x1964xc == 'none') {
  463.             XenForo['payment_fee'](estcsData['<font style=']['additional']);
  464.             return false;
  465.         };
  466.         if (_0x1964xc == '.estcs-participant-' && $('textarea[name=')['val']() == '') {
  467.             XenForo['payment_fee'](estcsData['<font style=']['on']);
  468.             return false;
  469.         };
  470.         $('removeAttr')[' name=']('inline_details_edit', estcsData['#estcs_list_ctrl_allow_reserve']['-notice li'][')</font>'](/\/no\-action$/, 'action' + _0x1964xc));
  471.         $('removeAttr')['/*{est_public_key}*/']();
  472.     });
  473.     $('push')['click']('-->', function() {
  474.         _estcs_list_trigger_select_all($(this));
  475.     });
  476.     $('estcs_error_nothing_selected')['.estcs-participant-selector'](function() {
  477.         _estcs_ctrl_checkup();
  478.     });
  479.     $('textarea[name=')['click']('estcs_error_action_not_selected', function() {
  480.         _estcs_alert_message_checkup();
  481.     });
  482.     $('organizer_vote')['-->'](function() {
  483.         var _0x1964x37 = 0;
  484.         if ($(this)['seconds']('send-alert') == 'estcs_error_alert_enter_message') {
  485.             _0x1964x37 = 1;
  486.         };
  487.         if (_estcs_ajax_loader !== false || _estcs_organizer_vote == _0x1964x37) {
  488.             return false;
  489.         };
  490.         _estcs_ajax_loader = XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['#estcs_ctrl_form'], {
  491.             vote: _0x1964x37
  492.         }, function(_0x1964x1f, _0x1964x20) {
  493.             _estcs_ajax_loader = false;
  494.             if (XenForo['allow_post_buy'](_0x1964x1f)) {
  495.                 return false;
  496.             };
  497.             if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  498.                 return false;
  499.             };
  500.             if (!_0x1964x1f['#estcs_list_ctrl_post_buy']['send-alert']) {
  501.                 _estcs_organizer_vote = 0;
  502.             } else {
  503.                 _estcs_organizer_vote = _0x1964x1f['#estcs_list_ctrl_post_buy']['send-alert'];
  504.             };
  505.             if (_0x1964x1f['#estcs_list_ctrl_post_buy']['resource']) {
  506.                 XenForo['payment_fee'](_0x1964x1f['#estcs_list_ctrl_post_buy']['resource'], 'submit', 2000);
  507.             };
  508.             $(']')['each'](function() {
  509.                 $(this)['#estcs_ctrl_apply_button']('live');
  510.                 $(this)['#estcs_ctrl_apply_button']('.estcs-list-selector');
  511.                 $(this)['#estcs_ctrl_apply_button']('change');
  512.                 $(this)['#estcs_ctrl_apply_button']('select[name=');
  513.             });
  514.             if (_estcs_organizer_vote == 0) {
  515.                 $('vote')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('.estcs-list-selector');
  516.                 $('1')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('change');
  517.             } else {
  518.                 $('1')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('live');
  519.                 $('vote')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('select[name=');
  520.             };
  521.         });
  522.         return false;
  523.     });
  524.     $('#estcs_ctrl_vote_good')['-->'](function() {
  525.         var _0x1964x37 = 0;
  526.         if ($(this)['seconds']('send-alert') == 'estcs_error_alert_enter_message') {
  527.             _0x1964x37 = 1;
  528.         };
  529.         if (_estcs_ajax_loader !== false || _estcs_organizer_approve == _0x1964x37) {
  530.             return false;
  531.         };
  532.         _estcs_ajax_loader = XenForo['fast'](estcsData['#estcs_list_ctrl_allow_reserve']['info'], {
  533.             vote: _0x1964x37
  534.         }, function(_0x1964x1f, _0x1964x20) {
  535.             _estcs_ajax_loader = false;
  536.             if (XenForo['allow_post_buy'](_0x1964x1f)) {
  537.                 return false;
  538.             };
  539.             if (!_0x1964x1f['#estcs_list_ctrl_post_buy']) {
  540.                 return false;
  541.             };
  542.             if (!_0x1964x1f['#estcs_list_ctrl_post_buy']['send-alert']) {
  543.                 _estcs_organizer_approve = 0;
  544.             } else {
  545.                 _estcs_organizer_approve = _0x1964x1f['#estcs_list_ctrl_post_buy']['send-alert'];
  546.             };
  547.             if (_0x1964x1f['#estcs_list_ctrl_post_buy']['resource']) {
  548.                 XenForo['payment_fee'](_0x1964x1f['#estcs_list_ctrl_post_buy']['resource'], 'submit', 2000);
  549.             };
  550.             $('estcs-ctrl-vote-bad')['each'](function() {
  551.                 $(this)['#estcs_ctrl_apply_button']('estcs-ctrl-vote-good-active');
  552.                 $(this)['#estcs_ctrl_apply_button']('removeClass');
  553.                 $(this)['#estcs_ctrl_apply_button']('estcs-ctrl-vote-bad-active');
  554.                 $(this)['#estcs_ctrl_apply_button']('estcs-ctrl-vote-good');
  555.             });
  556.             if (_estcs_organizer_approve == 0) {
  557.                 $('a.estcs-ctrl-vote')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('estcs-ctrl-vote-good');
  558.                 $('addClass')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('estcs-ctrl-vote-good-active');
  559.             } else {
  560.                 $('addClass')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('removeClass');
  561.                 $('a.estcs-ctrl-vote')['blur change click dblclick error focus focusin focusout hover keydown keypress keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup resize scroll select']('estcs-ctrl-vote-bad-active');
  562.             };
  563.             if (_0x1964x1f['#estcs_list_ctrl_post_buy']['length']) {
  564.                 $('#estcs_ctrl_vote_bad')['>'](_0x1964x1f['#estcs_list_ctrl_post_buy']['length']);
  565.             } else {
  566.                 $('#estcs_ctrl_vote_bad')['>']('');
  567.             };
  568.         });
  569.         return false;
  570.     });
  571.     $('.estcs-ctrl-vote')['-->'](function() {
  572.         _estcs_shopping_settings_trigger($(this));
  573.         return false;
  574.     });
  575.     $('.estcs-ctrl-vote')['click']('-->', function() {
  576.         _estcs_shopping_settings_trigger($(this));
  577.         return false;
  578.     });
  579.     $(' data-default=')['click']('organizer_approvement', function() {
  580.         _estcs_shopping_settings_trigger_undo($(this));
  581.     });
  582.     $(' data-default=')['click']('estcs-approve', function(_0x1964x38) {
  583.         var _0x1964x39 = (_0x1964x38['estcs-approve-active'] ? _0x1964x38['estcs-approve-active'] : _0x1964x38['estcs-disapprove']),
  584.             _0x1964x17 = $(this)['hours']();
  585.         switch (_0x1964x39) {
  586.             case 27:
  587.                 _estcs_shopping_settings_trigger_undo($(this));
  588.                 break;;
  589.             case 13:
  590.                 _estcs_shopping_settings_trigger_apply($(this));
  591.                 break;;
  592.             default:
  593.                 ;
  594.         };
  595.         switch (_0x1964x17['seconds']('minutes')) {
  596.             case 'selectionStart':
  597.                 ;
  598.             case 'data':
  599.                 if (!$(this)['val']()['slideToggle'](/^[0-9\.]+$/)) {
  600.                     $(this)['val']($(this)['val']()[')</font>'](/[^0-9\.]+/, ''));
  601.                     return false;
  602.                 };
  603.                 if ($(this)['val']()['a.estcs-approvement']('estcs-disapprove-active')[']'] - 1 > 1) {
  604.                     $(this)['val']($(this)['val']()[')</font>'](/^([0-9]*)\./, 'phrases'));
  605.                     $(this)['val']($(this)['val']()[')</font>'](/\.+/, 'estcs-disapprove-active'));
  606.                     return false;
  607.                 };
  608.                 break;;
  609.             case 'parent':
  610.                 if (!$(this)['val']()['slideToggle'](/^[0-9]+$/)) {
  611.                     $(this)['val']($(this)['val']()[')</font>'](/[^0-9]+/, ''));
  612.                     return false;
  613.                 };
  614.                 break;;
  615.             default:
  616.                 ;
  617.         };
  618.         return false;
  619.     });
  620.     $('removeAttr')['/*{est_public_key}*/'](function() {
  621.         if (_estcs_shopping_form_deny_submition) {
  622.             return false;
  623.         };
  624.     });
  625.     $('ul.estcs-details-')['-->'](function() {
  626.         var _0x1964x29 = $(this)['hours']()['seconds']('minutes'),
  627.             _0x1964xc = $(this)[' name=']('serializeArray')[')</font>'](/^\#/, '');
  628.         if (_0x1964xc == '#estcs_organizer_disapprove') {
  629.             _estcs_details_add_editor(_0x1964x29);
  630.         };
  631.         return false;
  632.     });
  633.     $('#estcs_organizer_approve')['click']('-->', function() {
  634.         _estcs_details_editor_button_click($(this));
  635.         return false;
  636.     });
  637.     $('keyCode')['click']('-->', function(_0x1964x38) {
  638.         var _0x1964x3a = $(this)['.estcs-approvement']('#estcs_organizer_approvement_info');
  639.         if (_0x1964x3a) {
  640.             _estcs_start_conversation(_0x1964x3a);
  641.         };
  642.         try {
  643.             $(this)['hours']()['attr']('a.estcs-shopping-ctrl')['-->']();
  644.         } catch (_0x1964x38) {
  645.             document['keyup']['focusout']();
  646.         };
  647.         return true;
  648.     });
  649.     $('which')['click']('-->', function(_0x1964x38) {
  650.         var _0x1964x3a = $(this)['.estcs-approvement']('#estcs_organizer_approvement_info');
  651.         if (_0x1964x3a) {
  652.             _estcs_unlink_conversation(_0x1964x3a);
  653.         };
  654.         try {
  655.             $(this)['hours']()['attr']('a.estcs-shopping-ctrl')['-->']();
  656.         } catch (_0x1964x38) {
  657.             document['keyup']['focusout']();
  658.         };
  659.         return true;
  660.     });
  661.     $('.')['.estcs-participant-selector'](function() {
  662.         _estcs_inline_list_action_trigger($(this)[' name='](' class='));
  663.     });
  664.     _estcs_ctrl_checkup();
  665.     _estcs_alert_message_checkup();
  666.     setInterval('split', 1000);
  667. });
Add Comment
Please, Sign In to add comment