import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{o as t,t as n}from"./jsx-runtime-DHSfUA5-.js";import{E as r,P as i}from"./test.id-DxQrYxPk.js";import{t as a}from"./diaryService-CNt2_Lb5.js";import{t as o}from"./navigationService-BNBSAd9W.js";import{f as s,o as c}from"./route-CPr17rXr.js";import{f as l}from"./selectors-DZWoTA9D.js";import{t as u}from"./useDiaryModel-BQGj9xs8.js";import{t as d}from"./HeaderPage-CPQpvQQw.js";import{n as f}from"./useMembershipStatus-CuwuZX56.js";import{t as p}from"./MessageColorPicker-D8y-_SaZ.js";t();var m=n();function h(){let{identityId:t}=s(),n=u(),h=i(a),g=i(o),{status:_,isLoading:v}=f(),y=t?l(n,t):void 0;return!y||!t?(0,m.jsx)(c,{to:`/identities`,replace:!0}):(0,m.jsx)(d,{pageTestId:r.identityPage,contentTestId:r.content,header:{title:e(`messageColor.title`,`Message color`),showBack:!0},children:(0,m.jsx)(p,{value:y.messageColor,vipEnabled:_.active,vipLoading:v,onVipRequired:()=>g.navigate({path:`/settings/membership/purchase`}),onChange:e=>h.updateIdentityMessageColor(t,e)})})}export{h as IdentityMessageColorPage};
//# sourceMappingURL=message-color-V6QTm0Py.js.map