1export default { 2 GET_USER(state) { 3 return state.user; 4 }, 5 GET_PICKUP_POINTS(state) { 6 if (state.user.address) { 7 return state.user.address.pickup_point; 8 } else return false; 9 }, 10 // ÐолÑÑаем айди ÑоÑки ÑамовÑвоза 11 GET_CURRENT_PICUP_POINT_ID(state) { 12 if (state.user.current_address) { 13 if (state.user.current_address.is_pickup) { 14 return state.user.current_address.pickup_point_id; 15 } 16 } 17 return false; 18 }, 19 // ÐолÑÑаем айди ÑоÑки, в коÑоÑой бÑÐ´ÐµÑ Ð³Ð¾ÑовиÑÑÑÑ Ð·Ð°ÐºÐ°Ð· по адÑеÑÑ 20 GET_DELIVERY_POINT_ID(state) { 21 if (state.user.current_address) { 22 if (!state.user.current_address.is_pickup) { 23 return state.user.current_address.delivery_point_id; 24 } 25 } 26 return false; 27 }, 28 GET_CURRENT_ADDRESS(state) { 29 if (state.user.current_address) { 30 if (state.user.current_address.is_pickup) { 31 return state.user.current_address.pickup_point_name; 32 } else { 33 return state.user.current_address.text; 34 } 35 } else return ""; 36 }, 37 GET_ADDRESSES(state) { 38 if (state.user.address) { 39 return Object.values(state.user.address.user_address_list).filter( 40 (address) => { 41 return address.is_pickup == 0; 42 } 43 ); 44 } else return false; 45 }, 46 GET_ORDERS(state) { 47 return state.orders; 48 }, 49 50 GET_RESERVATION_MODAL(state) { 51 return state.reservationModal; 52 }, 53 54 GET_TYPE_RECEIPT(state) { 55 return state.user.current_address.is_pickup; 56 }, 57 GET_BONUS_ACCOUNT(state) { 58 return state.bonusAccount; 59 }, 60 GET_BONUS_PROGRESSBAR(state) { 61 return state.dynamic_bonus_progressbar; 62 }, 63 GET_BONUS_HISTORY(state) { 64 return state.bonus_history;
65 }, 66};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.