Loading
function(e,t,n){"use strict";var i=n(620632),r=n(73153),a=n(371794),s=n(652215);n.d(t,{},{LM:function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return r.h.dispatch({type:"ENTITLEMENT_FETCH_APPLICATION_START",applicationId:e}),i.Bo.get({url:s.Rsh.ENTITLEMENTS_FOR_APPLICATION(e),oldFormErrors:!0,query:{exclude_consumed:t},rejectWithError:!0}).then(t=>(r.h.dispatch({type:"ENTITLEMENT_FETCH_APPLICATION_SUCCESS",applicationId:e,entitlements:t.body}),t.body)).catch(()=>{r.h.dispatch({type:"ENTITLEMENT_FETCH_APPLICATION_FAIL",applicationId:e})})},XJ:async function(){r.h.dispatch({type:"ENTITLEMENTS_GIFTABLE_FETCH"});try{let e=await (0,a.aP)({url:s.Rsh.ENTITLEMENTS_GIFTABLE,rejectWithError:!0});r.h.dispatch({type:"ENTITLEMENTS_GIFTABLE_FETCH_SUCCESS",entitlements:e.body})}catch(e){r.h.dispatch({type:"ENTITLEMENTS_GIFTABLE_FETCH_FAIL"})}},qw:async function(e){let{withSku:t=!1,withApplication:n=!1,excludeEnded:a=!0,entitlementType:l}=e;r.h.dispatch({type:"ENTITLEMENTS_FETCH_FOR_USER_START"});try{let e=await i.Bo.get({url:s.Rsh.ENTITLEMENTS_FOR_USER,query:{with_sku:t,with_application:n,entitlement_type:l,exclude_ended:a},rejectWithError:!0});r.h.dispatch({type:"ENTITLEMENTS_FETCH_FOR_USER_SUCCESS",entitlements:e.body,excludeEnded:a})}catch(e){r.h.dispatch({type:"ENTITLEMENTS_FETCH_FOR_USER_FAIL"})}}})}