/** * @typedef {import('./cart').CartData} CartData * @typedef {import('./cart').CartShippingAddress} CartShippingAddress */ /** * @typedef {Object} StoreCart * * @property {Array} cartCoupons An array of coupons applied * to the cart. * @property {Array} cartItems An array of items in the * cart. * @property {number} cartItemsCount The number of items in the * cart. * @property {number} cartItemsWeight The weight of all items in * the cart. * @property {boolean} cartNeedsPayment True when the cart will * require payment. * @property {boolean} cartNeedsShipping True when the cart will * require shipping. * @property {Array} cartItemErrors Item validation errors. * @property {Object} cartTotals Cart and line total * amounts. * @property {boolean} cartIsLoading True when cart data is * being loaded. * @property {Array} cartErrors An array of errors thrown * by the cart. * @property {CartShippingAddress} shippingAddress Shipping address for the * cart. * @property {Array} shippingRates array of selected shipping * rates. * @property {boolean} shippingRatesLoading Whether or not the * shipping rates are * being loaded. * @property {boolean} hasShippingAddress Whether or not the cart * has a shipping address yet. * @property {function(Object):any} receiveCart Dispatcher to receive * updated cart. */ /** * @typedef {Object} StoreCartCoupon * * @property {Array} appliedCoupons Collection of applied coupons from the * API. * @property {boolean} isLoading True when coupon data is being loaded. * @property {Function} applyCoupon Callback for applying a coupon by code. * @property {Function} removeCoupon Callback for removing a coupon by code. * @property {boolean} isApplyingCoupon True when a coupon is being applied. * @property {boolean} isRemovingCoupon True when a coupon is being removed. */ /** * @typedef {Object} StoreCartItemAddToCart * * @property {number} cartQuantity The quantity of the item in the * cart. * @property {boolean} addingToCart Whether the cart item is still * being added or not. * @property {boolean} cartIsLoading Whether the cart is being loaded. * @property {Function} addToCart Callback for adding a cart item. */ /** * @typedef {Object} StoreCartItemQuantity * * @property {number} quantity The quantity of the item in the * cart. * @property {boolean} isPendingDelete Whether the cart item is being * deleted or not. * @property {Function} changeQuantity Callback for changing quantity * of item in cart. * @property {Function} removeItem Callback for removing a cart item. * @property {Object} cartItemQuantityErrors An array of errors thrown by * the cart. */ /** * @typedef {Object} EmitResponseTypes * * @property {string} SUCCESS To indicate a success response. * @property {string} FAIL To indicate a failed response. * @property {string} ERROR To indicate an error response. */ /** * @typedef {Object} NoticeContexts * * @property {string} PAYMENTS Notices for the payments step. * @property {string} EXPRESS_PAYMENTS Notices for the express payments step. */ /* eslint-disable jsdoc/valid-types */ // Enum format below triggers the above rule even though VSCode interprets it fine. /** * @typedef {NoticeContexts['PAYMENTS']|NoticeContexts['EXPRESS_PAYMENTS']} NoticeContextsEnum */ /** * @typedef {Object} EmitSuccessResponse * * @property {EmitResponseTypes['SUCCESS']} type Should have the value of * EmitResponseTypes.SUCCESS. * @property {string} [redirectUrl] If the redirect url should be changed set * this. Note, this is ignored for some * emitters. * @property {Object} [meta] Additional data returned for the success * response. This varies between context * emitters. */ /** * @typedef {Object} EmitFailResponse * * @property {EmitResponseTypes['FAIL']} type Should have the value of * EmitResponseTypes.FAIL * @property {string} message A message to trigger a notice for. * @property {NoticeContextsEnum} [messageContext] What context to display any message in. * @property {Object} [meta] Additional data returned for the fail * response. This varies between context * emitters. */ /** * @typedef {Object} EmitErrorResponse * * @property {EmitResponseTypes['ERROR']} type Should have the value of * EmitResponseTypes.ERROR * @property {string} message A message to trigger a notice for. * @property {boolean} retry If false, then it means an * irrecoverable error so don't allow for * shopper to retry checkout (which may * mean either a different payment or * fixing validation errors). * @property {Object} [validationErrors] If provided, will be set as validation * errors in the validation context. * @property {NoticeContextsEnum} [messageContext] What context to display any message in. * @property {Object} [meta] Additional data returned for the fail * response. This varies between context * emitters. */ /* eslint-enable jsdoc/valid-types */ /** * @typedef {Object} EmitResponseApi * * @property {EmitResponseTypes} responseTypes An object of various response types that can * be used in returned response objects. * @property {NoticeContexts} noticeContexts An object of various notice contexts that can * be used for targeting where a notice appears. * @property {function(Object):boolean} shouldRetry Returns whether the user is allowed to retry * the payment after a failed one. * @property {function(Object):boolean} isSuccessResponse Returns whether the given response is of a * success response type. * @property {function(Object):boolean} isErrorResponse Returns whether the given response is of an * error response type. * @property {function(Object):boolean} isFailResponse Returns whether the given response is of a * fail response type. */ export {}; /** * Internal dependencies */ import { ACTION_TYPES as types } from './action-types'; /** * Action creator for setting a single query-state value for a given context. * * @param {string} context Context for query state being stored. * @param {string} queryKey Key for query item. * @param {*} value The value for the query item. * * @return {Object} The action object. */ export const setQueryValue = ( context, queryKey, value ) => { return { type: types.SET_QUERY_KEY_VALUE, context, queryKey, value, }; }; /** * Action creator for setting query-state for a given context. * * @param {string} context Context for query state being stored. * @param {*} value Query state being stored for the given context. * * @return {Object} The action object. */ export const setValueForQueryContext = ( context, value ) => { return { type: types.SET_QUERY_CONTEXT_VALUE, context, value, }; };
Phụ kiện camera đa dạng, chính hãng, giá tốt
\tM\u1ed9t m\u00e1y t\u00ednh t\u1ed1t ph\u1ea3i \u0111\u1ea3m b\u1ea3o t\u1ea5t c\u1ea3 c\u00e1c b\u1ed9 ph\u1eadn v\u00e0 linh ki\u1ec7n trong n\u00f3 t\u1ed1t, \u0111\u1eb7c bi\u1ec7t nh\u1ea5t l\u00e0 \u1ed5 c\u1ee9ng ph\u1ea3i \u0111\u1ea3m b\u1ea3o chu\u1ea9n. B\u00e0i vi\u1ebft h\u00f4m nay s\u1ebd gi\u00fap c\u00e1c b\u1ea1n t\u00ecm hi\u1ec3u xem th\u1ebf n\u00e0o l\u00e0 \u1ed5 c\u1ee9ng HDD<\/strong><\/a> ph\u00f9 h\u1ee3p v\u1edbi m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng c\u1ee7a c\u00e1c b\u1ea1n.<\/p>\n \tV\u1ec1 h\u00e3ng s\u1ea3n xu\u1ea5t \u1ed5 c\u1ee9ng HDD: Ch\u1ec9 t\u00ednh ri\u00eang \u1edf th\u1ecb tr\u01b0\u1eddng Vi\u1ec7t Nam \u0111\u00e3 c\u00f3 r\u1ea5t nhi\u1ec1u h\u00e3ng c\u1ea1nh tranh nhau \u1edf m\u1ea3ng \u1ed5 c\u1ee9ng HDD nh\u01b0 EAGATE, SAMSUNG, HITACHI hay WESTEN DIGITAL. N\u1ebfu so s\u00e1nh d\u1ef1a tr\u00ean ph\u1ea7n tr\u0103m th\u1ecb tr\u01b0\u1eddng v\u00e0 ph\u1ea3n h\u1ed3i t\u1eeb kh\u00e1ch h\u00e0ng th\u00ec SEAGATE v\u00e0 WD \u0111ang chi\u1ebfm \u01b0u th\u1ebf h\u01a1n v\u1ec1ch\u1ea5t l\u01b0\u1ee3ng c\u0169ng nh\u01b0 th\u1eddi gian b\u1ea3o h\u00e0nh d\u00e0i l\u00ean \u0111\u1ebfn 2 n\u0103m. C\u00f2n SAMSUNG th\u00ec t\u00eau th\u1ee5 n\u0103ng l\u01b0\u1ee3ng \u00edt, ti\u1ebft ki\u1ec7m \u0111i\u1ec7n.<\/p>\n \t<\/p>\n \tV\u1ec1 dung l\u01b0\u1ee3ng c\u1ee7a \u1ed5 c\u1ee9ng HDD: C\u00e1i n\u00e0y t\u00f9y thu\u1ed9c v\u00e0o m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng c\u1ee7a b\u1ea1n. N\u1ebfu m\u00e1y t\u00ednh ch\u1ec9 \u0111\u1ec3 l\u00e0m vi\u1ec7c th\u00ec 40Gb c\u00f3 khi c\u0169ng \u0111\u1ee7 d\u00f9ng.D\u0129 nhi\u00ean ng\u00e0y nay th\u00ec \u00edt h\u00e3ng s\u1ea3n xu\u1ea5t n\u00e0o s\u1ea3n xu\u1ea5t \u1ed5 c\u1ee9ng HDD 40gb n\u1eefa v\u00ec nh\u01b0 th\u1ebf t\u1ed1c \u0111\u1ed9 m\u00e1y t\u00ednh s\u1ebd ch\u1eadm nh\u01b0 r\u00f9a b\u00f2. N\u1ebfu b\u1ea1n c\u00f3 c\u1ea3 nhu c\u1ea7u ch\u01a1i game v\u00e0 \u0111am m\u00ea t\u1ea3i b\u1ed9 phim bom t\u1ea5n th\u00ec 500gb ch\u01b0a ch\u1eafc \u0111\u00e3 \u0111\u1ee7 m\u00e0 c\u1ea7n dung l\u01b0\u1ee3ng t\u1edbi 1 \u2013 2TB. T\u1ea1i sao l\u1ea1i th\u1ebf? B\u1edfi nh\u1eefng b\u1ed9 phim hi\u1ec7n nay \u0111a ph\u1ea7n l\u00e0 1080 full HD dung l\u01b0\u1ee3ng 1 b\u1ed9 phim t\u1ea3i v\u1ec1 l\u00ean \u0111\u1ebfn 20Gb, c\u00f2n b\u1ed9 phim l\u00e0ng nh\u00e0ng kh\u00e1c t\u1eeb 2gb tr\u1edf l\u00ean.<\/p>\n\tKhi b\u1ea1n c\u00f3 \u00fd \u0111\u1ecbnh mua m\u1edbi \u1ed5 c\u1ee9ng HDD c\u00f3 th\u1ec3 d\u1ef1a v\u00e0o c\u00e1c ti\u00eau ch\u00ed sau \u0111\u1ec3 l\u1ef1a ch\u1ecdn<\/strong><\/span><\/h2>\n