1"use strict";(globalThis.webpackChunkhoroscorpio=globalThis.webpackChunkhoroscorpio||[]).push([[4566],{4566:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var s=n(1212),i=n(467),r=n(436),a=n(9379),c=n(5544),l=n(9950),o=n(7294),d=n(8224),u=n(8850),p=n(5418),x=n(2778),m=n(4414),g={get:function(e,t){try{var n;return null!==(n=localStorage.getItem(e))&&void 0!==n?n:t}catch(s){return t}},set:function(e,t){try{localStorage.setItem(e,t)}catch(n){}}};function h(){var e,t=(0,p.s9)(),n=t.locale,s=t.setLocale,i=t.available,o=t.t,d=(0,l.useState)(p.tV),u=(0,c.A)(d,2),g=u[0],h=u[1],y=(0,l.useState)(null),b=(0,c.A)(y,2),j=b[0],k=b[1];(0,l.useEffect)(function(){var e=!0;return(0,x.q)().then(function(t){var n;e&&t&&(k(null!==(n=t.recommended_locale)&&void 0!==n?n:null),h(function(e){var n;return(0,a.A)((0,a.A)({},e),Object.fromEntries((null!==(n=t.locales)&&void 0!==n?n:[]).map(function(e){return[e.code,e.native_name||e.name||e.code]})))}))}),function(){e=!1}},[]);var N=[].concat((0,r.A)(i.includes("en")?["en"]:[]),(0,r.A)(i.filter(function(e){return"en"!==e}).sort(function(e,t){var n,s;return(null!==(n=g[e])&&void 0!==n?n:e).localeCompare(null!==(s=g[t])&&void 0!==s?s:t)})));return(0,m.jsx)(v,{title:o("settings.section.language","Language"),children:(0,m.jsxs)(f,{children:[(0,m.jsx)("div",{className:"grid grid-cols-2 gap-1.5",children:N.map(function(e){var t;return(0,m.jsx)("button",{type:"button",onClick:function(){return s(e)},dir:"auto",lang:e,style:{textAlign:"start"},className:"truncate rounded px-2.5 py-2 text-xs ".concat(n===e?"bg-emerald-900/40 text-emerald-100 border border-emerald-700/60":"bg-gray-800 text-gray-200 border border-transparent active:bg-gray-700"),children:null!==(t=g[e])&&void 0!==t?t:e.toUpperCase()},e)})}),j&&j!==n&&i.includes(j)&&(0,m.jsx)("div",{className:"mt-2 text-[0.55rem] leading-relaxed text-gray-600",children:o("settings.language.regionalHint","Suggested for your region: {lang}",{lang:null!==(e=g[j])&&void 0!==e?e:j.toUpperCase()})}),(0,m.jsx)("div",{className:"mt-2 text-[0.55rem] leading-relaxed text-gray-600",children:o("settings.language.scopeHint","Changes the app language only. Website language pools are managed on the website.")})]})})}var v=function(e){var t=e.title,n=e.children;return(0,m.jsxs)("div",{className:"mb-5",children:[(0,m.jsx)("div",{className:"text-[0.6rem] tracking-[0.3em] uppercase text-gray-500 mb-2",children:t}),(0,m.jsx)("div",{className:"rounded-xl border border-gray-800 bg-gray-900/40 divide-y divide-gray-800/70",children:n})]})},f=function(e){var t=e.children,n=e.onClick;return(0,m.jsx)("div",{onClick:n,className:"px-3 py-3 ".concat(n?"active:bg-white/5 cursor-pointer":""),children:t})},y=function(e){var t=e.on,n=e.onChange,s=e.disabled,i=e.ariaLabel;return(0,m.jsx)("button",{type:"button",disabled:s,onClick:function(){return n(!t)},"aria-label":i,className:"w-10 h-6 rounded-full relative transition-colors shrink-0 ".concat(t?"bg-emerald-600":"bg-gray-700"," ").concat(s?"opacity-40":""),children:(0,m.jsx)("span",{className:"absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ".concat(t?"left-[18px]":"left-0.5")})})};function b(e){var t,n,r,a,x=e.onClose,b=(0,p.s9)().t,j=(0,o.useMembership)().token,k=(0,l.useState)(null),N=(0,c.A)(k,2),w=N[0],A=N[1],C=(0,l.useState)(null),S=(0,c.A)(C,2),_=S[0],U=S[1],M=(0,l.useState)(!1),R=(0,c.A)(M,2),T=R[0],E=R[1],I=(0,l.useState)(""),O=(0,c.A)(I,2),D=O[0],H=O[1],L=(0,l.useState)(""),P=(0,c.A)(L,2),V=P[0],q=P[1],F=(0,l.useState)(!1),Q=(0,c.A)(F,2),z=Q[0],B=Q[1],W=(0,l.useState)(!1),X=(0,c.A)(W,2),Y=X[0],G=X[1],J=(0,l.useState)("1"===g.get("hrsc_reduce_motion","0")),K=(0,c.A)(J,2),Z=K[0],$=K[1],ee=(0,l.useState)("1"===g.get("hrsc_matrix_consent","0")),te=(0,c.A)(ee,2),ne=te[0],se=te[1];function ie(){return(ie=(0,i.A)((0,s.A)().m(function e(){var t;return(0,s.A)().w(function(e){for(;;)switch(e.n){case 0:return E(!0),q(""),t=U,e.n=1,(0,d.lX)();case 1:t(e.v),E(!1);case 2:return e.a(2)}},e)}))).apply(this,arguments)}function re(){return(re=(0,i.A)((0,s.A)().m(function e(){var t;return(0,s.A)().w(function(e){for(;;)switch(e.n){case 0:return H("update"),q(""),e.n=1,(0,d.kb)(_);case 1:t=e.v,q(t.ok?b("appUpdate.verifiedOpening","Verified. Opening Android installer\u2026"):"INSTALL_PERMISSION_REQUIRED"===t.code?b("appUpdate.permission","Allow installs from Horoscorpio, then tap Download update again."):b("appUpdate.failed","Update failed.")),H("");case 2:return e.a(2)}},e)}))).apply(this,arguments)}function ae(){return(ae=(0,i.A)((0,s.A)().m(function e(t){var n;return(0,s.A)().w(function(e){for(;;)switch(e.n){case 0:return H("dev:"+t),e.n=1,(0,d.wf)(t);case 1:if(!e.v.ok){e.n=3;break}return n=A,e.n=2,(0,d._0)();case 2:n(e.v);case 3:H("");case 4:return e.a(2)}},e)}))).apply(this,arguments)}function ce(){return(ce=(0,i.A)((0,s.A)().m(function e(){var t,n;return(0,s.A)().w(function(e){for(;;)switch(e.n){case 0:return H("restore"),q(""),e.n=1,(0,d.vi)();case 1:return t=e.v,q(t.licensed?b("settings.restore.done","Purchases restored \u2014 this device is active."):b("settings.restore.none","No app purchase found on this account.")),n=A,e.n=2,(0,d._0)();case 2:n(e.v),H("");case 3:return e.a(2)}},e)}))).apply(this,arguments)}function le(){return(le=(0,i.A)((0,s.A)().m(function e(t){return(0,s.A)().w(function(e){for(;;)switch(e.n){case 0:if(q(""),!t){e.n=2;break}return e.n=1,(0,u.gi)({reason:b("biometric.confirmReason","Confirm to lock Horoscorpio behind your fingerprint"),cancelTitle:b("common.cancel","Cancel")});case 1:e.v.ok?(B(!0),q(b("settings.security.lockOn","App lock on \u2014 Horoscorpio will ask for your fingerprint when it opens."))):q(b("settings.security.lockFailed","Could not enable \u2014 the fingerprint prompt was cancelled or unavailable.")),e.n=4;break;case 2:return e.n=3,(0,u.fD)();case 3:B(!1),q(b("settings.security.lockOff","App lock turned off."));case 4:return e.a(2)}},e)}))).apply(this,arguments)}return(0,l.useEffect)(function(){j&&(0,d._0)().then(A)},[j]),(0,l.useEffect)(function(){(0,u._2)().then(G),(0,u.Q9)().then(B)},[]),(0,m.jsx)("div",{className:"fixed inset-0 z-[150] bg-black/70 flex items-end sm:items-center justify-center",onClick:x,children:(0,m.jsxs)("div",{className:"w-full sm:max-w-md max-h-[88vh] overflow-y-auto bg-gray-950 rounded-t-2xl sm:rounded-2xl border border-gray-800 p-4",onClick:function(e){return e.stopPropagation()},style:{paddingBottom:"max(env(safe-area-inset-bottom), 1rem)"},children:[(0,m.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,m.jsx)("div",{className:"text-sm font-bold tracking-[0.3em] uppercase text-gray-200",children:b("settings.title","Settings")}),(0,m.jsx)("button",{onClick:x,className:"text-gray-500 hover:text-gray-300 text-xl leading-none active:scale-95",children:"\u2715"})]}),(0,m.jsx)(h,{}),j?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(v,{title:b("settings.section.security","Security"),children:(0,m.jsx)(f,{children:(0,m.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"text-[0.72rem] text-gray-200",children:b("settings.security.lockTitle","Lock app with fingerprint")}),(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-600 mt-0.5",children:Y?b("settings.security.lockHint","Ask for your fingerprint when Horoscorpio opens; your device PIN is the fallback."):b("settings.security.noSensor","No fingerprint/face enrolled on this device.")})]}),(0,m.jsx)(y,{on:z,onChange:function(e){return le.apply(this,arguments)},disabled:!Y})]})})}),(0,m.jsx)(v,{title:b("settings.section.privacy","Privacy"),children:(0,m.jsx)(f,{children:(0,m.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"text-[0.72rem] text-gray-200",children:b("settings.matrix.title","Matrix data-sharing")}),(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-600 mt-0.5",children:ne?b("settings.matrix.on","Sharing your qual
1ity-keyword aura (never personal info). Turn off to leave the pool."):b("settings.matrix.off","Off \u2014 enable it by giving consent inside the Matrix.")})]}),(0,m.jsx)(y,{on:ne,onChange:function(e){e?q(b("settings.matrix.consentInMatrix","Open the Matrix to give consent \u2014 it can only be enabled there.")):(g.set("hrsc_matrix_consent","0"),se(!1),q(b("settings.matrix.turnedOff","Matrix data-sharing turned off. You've left the pool.")))}})]})})}),(0,m.jsxs)(v,{title:b("settings.section.app","App"),children:[(0,m.jsxs)(f,{onClick:T?void 0:function(){return ie.apply(this,arguments)},children:[(0,m.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"text-[0.72rem] text-gray-200",children:b("appUpdate.settingsCheck","Check for updates")}),(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-600 mt-0.5",children:T?b("appUpdate.checking","Checking\u2026"):_?_.updateAvailable?b("appUpdate.settingsAvailable","Update available: v{version}",{version:_.latest}):_.current?b("appUpdate.upToDateVersion","Up to date (v{version})",{version:_.current}):b("appUpdate.upToDate","Up to date"):b("appUpdate.tapToCheck","Tap to check")})]}),(null===_||void 0===_?void 0:_.updateAvailable)&&_.downloadable&&(0,m.jsx)("button",{onClick:function(e){e.stopPropagation(),function(){re.apply(this,arguments)}()},disabled:"update"===D,className:"text-[0.62rem] px-3 py-1 rounded-full bg-emerald-700 text-white uppercase tracking-widest shrink-0 active:scale-95",children:"update"===D?"\u2026":b("appUpdate.update","Update")})]}),(null===_||void 0===_?void 0:_.updateAvailable)&&_.notes&&(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-500 mt-2 leading-relaxed",children:_.notes})]}),(0,m.jsxs)(f,{children:[(0,m.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,m.jsx)("span",{className:"text-[0.72rem] text-gray-200",children:"Devices"}),(0,m.jsxs)("span",{className:"text-[0.55rem] text-gray-600",children:[null!==(t=null===w||void 0===w||null===(n=w.devices)||void 0===n?void 0:n.length)&&void 0!==t?t:0,"/",null!==(r=null===w||void 0===w?void 0:w.cap)&&void 0!==r?r:2]})]}),null!==w&&void 0!==w&&null!==(a=w.devices)&&void 0!==a&&a.length?w.devices.map(function(e){var t=e.device_id===w.mine;return(0,m.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,m.jsxs)("span",{className:"text-[0.6rem] text-gray-400 truncate",children:[e.label||"device"," ",t&&(0,m.jsx)("span",{className:"text-emerald-500",children:"\xb7 this device"}),(0,m.jsxs)("span",{className:"block text-[0.5rem] text-gray-700",children:["last seen ",new Date(e.last_seen).toLocaleDateString()]})]}),!t&&(0,m.jsx)("button",{onClick:function(){return function(e){return ae.apply(this,arguments)}(e.device_id)},disabled:D==="dev:"+e.device_id,className:"text-[0.55rem] text-red-400 hover:text-red-300 uppercase tracking-widest shrink-0",children:"Remove"})]},e.device_id)}):(0,m.jsx)("div",{className:"text-[0.6rem] text-gray-600 italic",children:b("settings.devices.none","No activated devices.")})]}),(0,m.jsxs)(f,{onClick:"restore"!==D?function(){return ce.apply(this,arguments)}:void 0,children:[(0,m.jsx)("div",{className:"text-[0.72rem] text-gray-200",children:b("settings.restore.title","Restore purchases")}),(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-600 mt-0.5",children:"restore"===D?b("settings.restore.busy","Restoring\u2026"):b("settings.restore.hint","Re-verify your membership & app purchase.")})]})]}),(0,m.jsx)(v,{title:b("settings.section.accessibility","Accessibility"),children:(0,m.jsx)(f,{children:(0,m.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"text-[0.72rem] text-gray-200",children:b("settings.instrument.reduceMotion","Reduce motion")}),(0,m.jsx)("div",{className:"text-[0.58rem] text-gray-600 mt-0.5",children:b("settings.instrument.reduceMotionHint","Reduces animated movement in Matrix and screen-saver effects.")})]}),(0,m.jsx)(y,{on:Z,onChange:function(e){$(e),g.set("hrsc_reduce_motion",e?"1":"0"),window.dispatchEvent(new CustomEvent("hrsc:reduce-motion",{detail:e}))}})]})})})]}):(0,m.jsx)("div",{className:"text-center text-gray-400 text-sm py-10",children:b("settings.signInPrompt","Sign in to manage protected app settings.")}),V&&(0,m.jsx)("div",{className:"text-[0.6rem] text-emerald-400/90 text-center mt-1 mb-2",children:V})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.