{"version":3,"sources":["webpack:///./Scripts/constants.js","webpack:///./Scripts/Reducers/LightboxImages.reducer.js"],"names":["window","__litium","defaultState","index","visible","lightboxImages","state","action","type","payload"],"mappings":"wHAAeA,OAAOC,SAAtB,gBCKMC,EAAe,CACjBC,MAAO,EACPC,SAAS,GAGAC,EAAiB,CAACC,EAAQJ,EAAcK,KACjD,MAAM,KAAEC,EAAF,QAAQC,GAAYF,EAC1B,OAAQC,GACJ,IDqDJ,oCCpDI,IDqD4B,uBCpDxB,MAAO,IACAF,KACAG,GAEX,QACI,OAAOH","file":"379.355e87580326a713ca90.js","sourcesContent":["export default window.__litium.constants;\r\n\r\nexport const ViewMode = {\r\n    List: 'list',\r\n    Edit: 'edit',\r\n    Detail: 'detail',\r\n};\r\n\r\nexport const PaginationOptions = {\r\n    PageSize: 5, // Number of items per page\r\n    DisplayedEntries: 4, // Specifies how many links to show excluding possible EdgeEntries\r\n    EdgeEntries: 2, // Specifies how many links from beginning and end to show ex. 1 2 3 ... 10 20 30 ... 97 98 99 where \"1 2 3\" and \"97 98 99\" are edge entries\r\n};\r\n\r\nexport const ShippingIntegrationType = {\r\n    Inline: 'Inline',\r\n    DeliveryCheckout: 'DeliveryCheckout',\r\n    PaymentCheckout: 'PaymentCheckout',\r\n};\r\n\r\nexport const PaymentIntegrationType = {\r\n    IframeCheckout: 'IframeCheckout',\r\n    PaymentWidgets: 'PaymentWidgets',\r\n    DirectPayment: 'DirectPayment',\r\n};\r\n\r\nexport const ADDRESS_RECEIVE = 'ADDRESS_RECEIVE';\r\nexport const ADDRESS_ERROR = 'ADDRESS_ERROR';\r\nexport const ADDRESS_CHANGE_MODE = 'ADDRESS_CHANGE_MODE';\r\n\r\nexport const CART_LOAD_ERROR = 'CART_LOAD_ERROR';\r\nexport const CART_RECEIVE = 'CART_RECEIVE';\r\nexport const CART_SHOW_INFO = 'CART_SHOW_INFO';\r\n\r\nexport const CHECKOUT_SET_SELECTED_COMPANY_ADDRESS =\r\n    'CHECKOUT_SET_SELECTED_COMPANY_ADDRESS';\r\nexport const CHECKOUT_SET_PRIVATE_CUSTOMER = 'CHECKOUT_SET_PRIVATE_CUSTOMER';\r\nexport const CHECKOUT_SET_SIGN_UP = 'CHECKOUT_SET_SIGN_UP';\r\nexport const CHECKOUT_SET_DELIVERY = 'CHECKOUT_SET_DELIVERY';\r\nexport const CHECKOUT_SET_COUNTRY = 'CHECKOUT_SET_COUNTRY';\r\nexport const CHECKOUT_SET_PAYMENT = 'CHECKOUT_SET_PAYMENT';\r\nexport const CHECKOUT_SET_DISCOUNT_CODE = 'CHECKOUT_SET_DISCOUNT_CODE';\r\nexport const CHECKOUT_SET_USED_DISCOUNT_CODE =\r\n    'CHECKOUT_SET_UASED_DISCOUNT_CODE';\r\nexport const CHECKOUT_SET_ORDER_NOTE = 'CHECKOUT_SET_ORDER_NOTE';\r\nexport const CHECKOUT_ACCEPT_TERMS_OF_CONDITION =\r\n    'CHECKOUT_ACCEPT_TERMS_OF_CONDITION';\r\nexport const CHECKOUT_SUBMIT = 'CHECKOUT_SUBMIT';\r\nexport const CHECKOUT_SUBMIT_ERROR = 'CHECKOUT_SUBMIT_ERROR';\r\nexport const CHECKOUT_SET_PAYMENT_WIDGET = 'CHECKOUT_SET_PAYMENT_WIDGET';\r\nexport const CHECKOUT_UPDATE_CUSTOMER_INFO = 'CHECKOUT_UPDATE_CUSTOMER_INFO';\r\nexport const CHECKOUT_SET_SHOW_ALTERNATIVE_ADDRESS =\r\n    'CHECKOUT_SET_SHOW_ALTERNATIVE_ADDRESS';\r\nexport const CHECKOUT_SET_STATUS_SUBMIT_BUTTON =\r\n    'CHECKOUT_SET_STATUS_SUBMIT_BUTTON';\r\nexport const CLEAR_ERROR = 'CLEAR_ERROR';\r\nexport const CHECKOUT_VALIDATE_ADDRESS = 'CHECKOUT_VALIDATE_ADDRESS';\r\n\r\nexport const FACETED_SEARCH_QUERY = 'FACETED_SEARCH_QUERY';\r\nexport const FACETED_SEARCH_RECEIVE = 'FACETED_SEARCH_RECEIVE';\r\nexport const FACETED_SEARCH_ERROR = 'FACETED_SEARCH_ERROR';\r\nexport const FACETED_SEARCH_TOGGLE_VALUE = 'FACETED_SEARCH_TOGGLE_VALUE';\r\nexport const FACETED_SEARCH_TOGGLE_COMPACT = 'FACETED_SEARCH_TOGGLE_COMPACT';\r\nexport const PRODUCT_VIEW_CACHED = 'PRODUCT_VIEW_CACHED';\r\n\r\nexport const LIGHTBOX_IMAGES_SET_CURRENT_IMAGE =\r\n    'LIGHTBOX_IMAGES_SET_CURRENT_IMAGE';\r\nexport const LIGHTBOX_IMAGES_SHOW = 'LIGHTBOX_IMAGES_SHOW';\r\n\r\nexport const NAVIGATION_LOAD_ERROR = 'NAVIGATION_LOAD_ERROR';\r\nexport const NAVIGATION_RECEIVE = 'NAVIGATION_RECEIVE';\r\n\r\nexport const PERSON_RECEIVE = 'PERSON_RECEIVE';\r\nexport const PERSON_ERROR = 'PERSON_ERROR';\r\nexport const PERSON_CHANGE_MODE = 'PERSON_CHANGE_MODE';\r\n\r\nexport const QUICK_SEARCH_QUERY = 'QUICK_SEARCH_QUERY';\r\nexport const QUICK_SEARCH_RECEIVE = 'QUICK_SEARCH_RECEIVE';\r\nexport const QUICK_SEARCH_ERROR = 'QUICK_SEARCH_ERROR';\r\nexport const QUICK_SEARCH_SHOW_FULL_FORM = 'QUICK_SEARCH_SHOW_FULL_FORM';\r\nexport const QUICK_SEARCH_SELECT_ITEM = 'QUICK_SEARCH_SELECT_ITEM';\r\n\r\nexport const ORDER_RECEIVE = 'ORDER_RECEIVE';\r\nexport const ORDER_ERROR = 'ORDER_ERROR';\r\nexport const ORDER_CHANGE_MODE = 'ORDER_CHANGE_MODE';\r\nexport const ORDER_CHANGE_CURRENTPAGE = 'ORDER_CHANGE_CURRENTPAGE';\r\nexport const ORDER_SET_ORDER = 'ORDER_SET_ORDER';\r\n","import {\r\n    LIGHTBOX_IMAGES_SET_CURRENT_IMAGE,\r\n    LIGHTBOX_IMAGES_SHOW,\r\n} from '../constants';\r\n\r\nconst defaultState = {\r\n    index: 0,\r\n    visible: false,\r\n};\r\n\r\nexport const lightboxImages = (state = defaultState, action) => {\r\n    const { type, payload } = action;\r\n    switch (type) {\r\n        case LIGHTBOX_IMAGES_SET_CURRENT_IMAGE:\r\n        case LIGHTBOX_IMAGES_SHOW:\r\n            return {\r\n                ...state,\r\n                ...payload,\r\n            };\r\n        default:\r\n            return state;\r\n    }\r\n};\r\n"],"sourceRoot":""}