import{D as p,d as r,e as c,v as i,w as A}from"./chunk-QYQ7WNYU.js";import{a as t,b as o}from"./chunk-HC2G7LSI.js";var l=function(e){return e.PREPAY="PREPAY",e.POSTPAY="POSTPAY",e.HYBRID="HYBRID",e.DTH_LINE="DTH_LINE",e.OTT_SUBR="OTT_SUBR",e.Broadband="ORO_Broadband",e.Fixed_VoIP="ORO_Fixed_VoIP",e.Fixed_TV_Line="ORO_Fixed_TV_Line",e.NON_ORO="NON_ORO",e.EXPLORER="EXPLORER",e}(l||{});var f=r("b2c.activeProfileIdChanged"),E=r("n2c.activeMsisdnChangedChanged",c()),u=r("GET_B2C_PROFILES"),I=r("CLEAR_B2C_PROFILES"),_=r("GET_B2C_PROFILES_SUCCESS",c()),m=r("GET_B2C_PROFILES_ERROR",c()),S=r("GET_B2C_LIGHT_PROFILES"),C=r("GET_B2C_LIGHT_PROFILES_SUCCESS",c()),O=r("GET_B2C_LIGHT_PROFILES_ERROR",c()),R=r("CHANGE_ACTIVE_MSISDN",c()),g=r("Set Default Profile And Msisdn",c()),T=r("CHANGE_ACTIVE_MSISDN_FOR_SUBSCRIPTION",c()),v=r("CHANGE_ACTIVE_MSISDN_CANCELED"),B=r("CHANGE_ACTIVE_MSISDN_SUCCESS"),h=r("CHANGE_ACTIVE_MSISDN_SUCCESS_FOR_SUBSCRIPTION",c()),N=r("CHANGE_ACTIVE_MSISDN_ERROR"),L=r("getValidateLicenseSubscriber",c()),M=r("setUserOtyPasswordSuccess"),y=r("setUserOtyPasswordError",c());var n=A("b2cProfiles"),b=i(n,e=>e.profile),V=i(n,e=>e.status),Y=i(n,e=>e.activeSubscriber),a=i(n,e=>e.activeProfile),s={selector:n,action:()=>S(),filter:e=>e.status!==p.loading&&e.status!==p.initial,shouldDispatch:e=>e.status===p.initial},w=o(t({},s),{map:e=>e||null}),X=o(t({},s),{map:e=>e.status}),W=o(t({},s),{map:e=>e.profile}),j=o(t({},s),{map:e=>e.profile?.activeProfileId}),k=o(t({},s),{map:({activeProfile:e})=>e}),q=o(t({},s),{map:({activeProfile:e})=>!e||e.admin}),z=o(t({},s),{map:({activeProfile:e})=>!e||e.customerType==="STAFF"}),J=o(t({},s),{map:({activeProfile:e})=>!e||e.businessType==="SME"}),K=o(t({},s),{map:({activeProfile:e})=>!e||e.premium}),Q=o(t({},s),{map:({activeProfile:e})=>!e||e.customerType==="PREPAY"}),Z=o(t({},s),{map:({activeProfile:e})=>!e||e.customerType==="EXPLORER"}),$=o(t({},s),{map:({activeProfile:e})=>!!e&&e.customerType==="BUSINESS"}),ee=o(t({},s),{map:({activeProfile:e})=>!!e&&e.businessType==="SME"}),te=o(t({},s),{map:({activeProfile:e})=>!!e&&e.businessType==="SOHO"}),oe=o(t({},s),{map:({activeProfile:e})=>!!e&&(e.businessType==="SME"||e.businessType==="SOHO"||e.customerType==="PRIVATE")}),se=o(t({},s),{map:({activeProfile:e})=>!!e&&!!e.businessType}),re=o(t({},s),{map:({activeProfile:e})=>!e||e.customerType==="PRIVATE"}),ce=o(t({},s),{map:({activeProfile:e})=>e?.otyPoints||void 0}),ie=o(t({},s),{map:({activeProfile:e})=>e?.phoneCredit||void 0}),ne=o(t({},s),{map:({activeProfile:e})=>e?.ncaPhoneCredit||void 0}),pe=o(t({},s),{map:({activeProfile:e})=>e?.budgetPoints||void 0}),le=o(t({},s),{map:({activeProfile:e})=>e?.ocn,filter:e=>e.status===p.success}),ae=o(t({},s),{map:({activeSubscriber:e})=>e}),Pe=o(t({},s),{map:({activeSubscriber:e})=>!!(e&&e.type===l.POSTPAY)}),Ae=o(t({},s),{map:({activeSubscriber:e})=>!!e&&e.budgetEligibility});var Se=o(t({},s),{map:({profile:e})=>e?.activeMsisdn}),de=o(t({},s),{map:({activeSubscriber:e,profile:P})=>P&&!P.profiles.length?l.NON_ORO:e?.type}),xe=o(t({},s),{map:({profileIdList:e})=>e}),fe=i(n,e=>e.setDefaultProfileTriesCount),Ee=i(n,e=>!!e.activeProfile&&!!e.activeProfile.businessType),ue=i(a,e=>e?.ucg===!0),Ie=i(a,e=>e?.businessType==="SOHO"),_e=i(a,e=>e?.businessType==="SME");export{l as a,f as b,E as c,u as d,I as e,_ as f,m as g,S as h,C as i,O as j,R as k,g as l,T as m,v as n,B as o,h as p,N as q,L as r,M as s,y as t,n as u,b as v,V as w,Y as x,s as y,w as z,j as A,k as B,q as C,z as D,J as E,K as F,Q as G,Z as H,$ as I,ee as J,te as K,oe as L,se as M,ce as N,ie as O,pe as P,le as Q,ae as R,Pe as S,Se as T,de as U,xe as V,fe as W,Ee as X,ue as Y};