Settings-D-HY1moB.js

42.9 KB · raw

1import{A as e,C as t,D as n,E as r,F as i,M as a,N as o,O as s,S as c,T as l,_ as u,a as d,b as f,f as p,g as m,h,i as g,k as _,l as v,m as y,n as b,o as x,p as S,r as C,t as w,v as T,w as E,x as D,y as O}from"./index-DMA67SNg.js";var ee=E(`<span class=peach-pro-mark aria-label="Pro feature">✦`),te=E(`<button class=peach-settings-cat-row><div class=peach-settings-cat-icon></div><div class=peach-settings-cat-content><span class=peach-settings-cat-name></span><span class=peach-settings-cat-desc></span></div><svg class=peach-settings-cat-chevron width=6 height=10 viewBox="0 0 6 10"fill=none stroke=currentColor stroke-width=1.1 stroke-linecap=round stroke-linejoin=round><path d="M1 1l4 4-4 4">`),ne=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M8 2L3 4.5V8c0 3 2.5 5 5 6 2.5-1 5-3 5-6V4.5L8 2z">`),re=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M4 10a3 3 0 100-6 3 3 0 000 6zm3-3h6m-2-2v4">`),ie=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><rect x=3 y=7 width=10 height=7 rx=1.5></rect><path d="M6 7V5a3 3 0 016 0v2">`),ae=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M4 8a4 4 0 014-4m4 4a4 4 0 01-4 4"></path><path d="M14 6l-2 2-2-2"></path><path d="M2 10l2-2 2 2">`),oe=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><circle cx=8 cy=8 r=3></circle><path d="M8 2v1m0 10v1M2 8h1m10 0h1m-2.1-4.1-.7.7M4.8 11.3l-.7.7m0-7.7.7.7m6.5 6.3-.7.7">`),se=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><rect x=2 y=5 width=5 height=4 rx=1></rect><rect x=9 y=7 width=5 height=4 rx=1></rect><path d="M7 7h2m-2 2h2">`),ce=E(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M3 4h10a1 1 0 011 1v6a1 1 0 01-1 1H5l-3 2V5a1 1 0 011-1z">`),le=E(`<p class=peach-settings-nav-label>MOBILE`),ue=E(`<div class=peach-settings-body><p class=peach-settings-nav-label>PROTECTION</p><p class=peach-settings-nav-label>VAULT</p><p class=peach-settings-nav-label>PREFERENCES</p><p class=peach-settings-nav-label>SUPPORT</p><div class=peach-settings-footer><span>Peach </span><span class=peach-divider></span><span>Browser extension`),de=E(`<div class="peach-settings-row peach-settings-row--meta"><span>Last check</span><span class=peach-settings-value>`),fe=E(`<p class="peach-hint peach-hint-error"style=margin:0>`),pe=E(`<p class=peach-hint style=margin:0;color:var(--peach-accent)>password changed ✓`),me=E(`<div class=peach-settings-stack style="padding:4px 0 2px;gap:6px"><input class=peach-settings-input type=password placeholder="current password"autocomplete=current-password><input class=peach-settings-input type=password placeholder="new password (min 12 chars)"autocomplete=new-password><input class=peach-settings-input type=password placeholder="confirm new password"autocomplete=new-password><button class="peach-btn peach-btn--accent peach-btn--sm"style=align-self:flex-start>`),he=E(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--peach-t2)>If someone forces you to unlock Peach, enter the duress password instead. A decoy empty vault opens; your real vault stays hidden.`),ge=E(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:var(--peach-sync-ok)>`),_e=E(`<div class="peach-settings-row peach-settings-row--meta"><button class="peach-btn peach-btn--subtle peach-btn--sm">`),ve=E(`<label class=peach-label>new duress password`),ye=E(`<input class=peach-settings-input type=password placeholder="duress password (min 8 chars)"autocomplete=new-password>`),be=E(`<label class=peach-label>confirm duress password`),xe=E(`<input class=peach-settings-input type=password placeholder="confirm duress password"autocomplete=new-password>`),Se=E(`<p class="peach-hint peach-hint-error">`),Ce=E(`<button class="peach-btn peach-btn--ghost peach-btn--sm"style=color:var(--peach-breach)>`),we=E(`<button class="peach-btn peach-btn--accent peach-btn--sm">`),Te=E(`<div class=peach-duress-form><label class=peach-label>main password (to confirm)</label><input class=peach-settings-input type=password placeholder="your current master password"autocomplete=current-password><div class=peach-duress-actions><button class="peach-btn peach-btn--subtle peach-btn--sm">cancel`),Ee=E(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:#e7b36b>`),De=E(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>LOCKING</p><div class=peach-settings-row><span>Lock on close</span><button aria-label="Toggle lock on close"><span class=peach-toggle-knob></span></button></div><div class=peach-settings-row><span>Auto-lock after</span><select class=peach-settings-select><option value=1>1 minute</option><option value=5>5 minutes</option><option value=15>15 minutes</option><option value=30>30 minutes</option><option value=0>Never</option></select></div><p class=peach-settings-sub-label>BREACH PROTECTION</p><div class=peach-settings-row><span>Breach monitoring</span><button aria-label="Toggle breach monitoring"><span class=peach-toggle-knob></span></button></div><div class="peach-settings-row peach-settings-row--meta"><span>Check all passwords</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>MASTER PASSWORD</p><div class="peach-settings-row peach-settings-row--meta"><span>Master password</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>DURESS PASSWORD</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Duress password</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--t2)>If entered under coercion, shows a decoy empty vault instead of your real one.</span></div><div></div></div><p class=peach-settings-sub-label>CANARY ENTRIES</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Canary entries</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--peach-t2)>Silently pings a webhook when an entry is accessed. Configure canary on any entry in your vault.</span></div><span class=peach-settings-value style=flex-shrink:0></span></div><p class=peach-settings-sub-label>PASSKEYS</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Intercept passkey requests</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--t2)>Peach can handle passkey sign-in and creation on supported Chromium browsers.</span></div><button aria-label="Toggle passkey interception"><span class=peach-toggle-knob></span></button></div><div class="peach-settings-row peach-settings-row--meta"><span>Status</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Browser</span><span class=peach-settings-value></span></div><div class=peach-info-notice style=margin-top:8px>Only one passkey provider can be active at a time. Disable Bitwarden or 1Password passkey interception if Peach reports a conflict.`),Oe=E(`<div class="peach-settings-row peach-settings-row--meta"><span style=overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0></span><button class="peach-btn peach-btn--subtle peach-btn--sm"style=flex-shrink:0>`),ke=E(`<span class=peach-settings-value style=color:var(--peach-sync-ok)>`),Ae=E(`<div class="peach-settings-row peach-settings-row--meta"style=flex-direction:column;align-items:stretch;gap:6px><div class=peach-restore-warning> duplicate <!> found. The newest copy of each will be kept; older duplicates will be moved to trash.</div><div style=display:flex;gap:6px><button class="peach-btn peach-btn--subtle peach-btn--sm">cancel</button><button class="peach-btn peach-btn--accent peach-btn--sm">`),je=E(`<div class="peach-settings-row peach-settings-row--meta"><span> card<!> set to never save</span><button class="peach-btn peach-btn--subtle peach-btn--sm">Clear`),Me=E(`<div class="peach-danger-card peach-danger-card--hazard"><div class=peach-danger-card-head><span class=peach-danger-card-glyph aria-hidden=true>⚠</span><h3 class=peach-danger-card-title>Destroy vault</h3></div><p class=peach-danger-card-copy>Permanently wipes every entry, setting, and license on this device. There is no recovery.</p><button class=peach-danger-card-button>Begin destruction`),Ne=E(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>ENTRIES</p><div class="peach-settings-row peach-settings-row--meta"><span>Entries</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Duplicates</span></div><p class=peach-settings-sub-label>MAINTENANCE</p><div class="peach-settings-row peach-settings-row--meta"><span>Trash auto-delete</span><select class=peach-settings-select><option value=7>7 days</option><option value=30>30 days</option><option value=90>90 days</option><option value=0>Never</option></select></div><div class="peach-settings-row peach-settings-row--meta"><span>Vault Health</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><p class=peach-settings-sub-label>DATA</p><div class="peach-settings-row peach-settings-row--meta"><span>Import passwords</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><div class="peach-settings-row peach-settings-row--meta"><span>Export backup</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><div class=peach-danger-card><div class=peach-danger-card-head><span class=peach-danger-card-glyph aria-hidden=true>⟳</span><h3 class=peach-danger-card-title>Replace vault from backup</h3></div><p class=peach-danger-card-copy>Wipes the current vault and restores from a backup file. Recoverable only if your backup is good.</p><button class=peach-danger-card-button>Choose backup file`),Pe=E(`<button class="peach-btn peach-btn--subtle peach-btn--sm">`),Fe=E(`<div class=peach-settings-body><div class=peach-pro-upgrade><div class=peach-pro-upgrade-hero><svg class=peach-sync-hero-icon width=36 height=36 viewBox="0 0 36 36"fill=none aria-hidden=true><circle cx=9 cy=18 r=4.5 stroke=currentColor stroke-width=1.2 opacity=0.9></circle><circle cx=27 cy=18 r=4.5 stroke=currentColor stroke-width=1.2 opacity=0.9></circle><path d="M13.5 15.5C15 12 17 10 18 10C19 10 21 12 22.5 15.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.6></path><path d="M13.5 20.5C15 24 17 26 18 26C19 26 21 24 22.5 20.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.6></path><path d="M13.5 18H22.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.35></path><path d="M20 16L22.5 18L20 20"stroke=var(--peach-accent) stroke-width=1.2 stroke-linecap=round stroke-linejoin=round></path><path d="M16 16L13.5 18L16 20"stroke=var(--peach-accent) stroke-width=1.2 stroke-linecap=round stroke-linejoin=round></path></svg><h2 class=peach-pro-upgrade-title>Peach Sync</h2><p class=peach-pro-upgrade-tagline>Encrypted · peer-to-peer · local</p></div><div class=peach-pro-features><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Always in sync</span><span class=peach-pro-feature-desc>Your vault stays current across all your devices automatically</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>No cloud. No relay.</span><span class=peach-pro-feature-desc>Direct device-to-device on your local network — nothing leaves your hands</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Tailscale supported</span><span class=peach-pro-feature-desc>Sync securely from anywhere over your private Tailscale network</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Zero friction after setup</span><span class=peach-pro-feature-desc>Mark a network as trusted once — sync happens in the background</span></div></div></div><button class="peach-btn peach-btn--accent peach-pro-upgrade-cta">Upgrade to Pro</button><button class=peach-pro-key-link>Already have a key? Enter it →`),Ie=E(`<button class="peach-btn peach-btn--subtle peach-btn--sm">Mark current network as trusted`),Le=E(`<div class=peach-settings-body><div class=peach-settings-group><div class=peach-settings-row><span>Status</span><span class="peach-settings-value peach-settings-value--status"><span class=peach-sync-status-dot></span></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Last sync</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><div class="peach-settings-row peach-settings-row--meta peach-settings-row--stack"><span class=peach-sync-section-label>Paired devices (<!>)</span><div class=peach-settings-actions--row><button class="peach-btn peach-btn--subtle peach-btn--sm">Pair a new device</button><button class="peach-btn peach-btn--subtle peach-btn--sm">Pair with another device</button></div></div><div class="peach-settings-row peach-settings-row--meta peach-settings-row--stack"><span class=peach-sync-section-label>Trusted networks (<!>)</span><div class=peach-settings-actions--row></div><span class=peach-sync-device-meta>Tailscale is always trusted`),Re=E(`<div class=peach-sync-device-row><div class=peach-sync-device-info><span class=peach-sync-device-name></span><span class=peach-sync-device-meta>Last seen: <!> · Last synced: </span></div><button class="peach-btn peach-btn--ghost peach-btn--sm peach-sync-remove-btn">Remove`),ze=E(`<div class=peach-sync-device-row><span class=peach-sync-device-name></span><button class="peach-btn peach-btn--ghost peach-btn--sm peach-sync-remove-btn">Remove`),Be=E(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>THEME</p><div class="peach-settings-row peach-settings-row--meta"><span>Theme</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>ACCENT</p><div class="peach-settings-row peach-settings-row--meta peach-settings-row--accent"><span>Accent</span><div class=peach-accent-picker></div></div><p class=peach-settings-sub-label>DISPLAY FONT</p><div class="peach-settings-row peach-settings-row--meta peach-settings-row--font"><span>Font</span><div class=peach-font-picker></div></div><p class=peach-settings-sub-label>TEXT SIZE</p><div class="peach-settings-row peach-settings-row--meta"><span>Size</span><div class=peach-pill-group></div></div><p class=peach-settings-sub-label>MOTION</p><div class="peach-settings-row peach-settings-row--meta"><span>Reduce motion</span><button class="peach-btn peach-btn--subtle peach-btn--sm">`),Ve=E(`<button class=peach-accent-swatch>`),He=E(`<button class=peach-font-swatch><span class=peach-font-swatch-glyph></span><span class=peach-font-swatch-name>`),Ue=E(`<button class="peach-btn peach-btn--ghost peach-btn--sm">`),We=E(`<div class=peach-shortcuts-conflict>`),Ge=E(`<div class=peach-settings-body><div class="peach-settings-group peach-shortcuts-group"><p class=peach-settings-sub-label>ENTRY VIEW</p></div><div class="peach-settings-group peach-shortcuts-group"><p class=peach-settings-sub-label>ANYWHERE IN POPUP</p></div><div class=peach-settings-group style=display:flex;flex-direction:column;gap:8px><div class="peach-settings-row peach-settings-row--meta"><span>Inline autofill on page</span><a class=peach-settings-link href=chrome://extensions/shortcuts>⌘⇧P — customize ↗</a></div><button class="peach-btn peach-btn--subtle peach-btn--sm"style=align-self:flex-start>Reset all to defaults`),Ke=E(`<button class=peach-shortcut-reset title="Reset to default">↺`),qe=E(`<div class=peach-shortcut-row><span class=peach-shortcut-row-label></span><button class=peach-shortcut-chip>`),Je=E(`<div class=peach-settings-license><span class=peach-settings-label>LICENSE KEY</span><div class=peach-settings-license-row><span class=peach-settings-license-key></span><button class=peach-settings-license-copy>`),Ye=E(`<div class=peach-pro-active><div class=peach-pro-active-hero><div class=peach-pro-active-mark-wrap></div><h2 class=peach-pro-active-title>Peach Pro</h2><p class=peach-pro-active-since></p></div><div class=peach-pro-active-features></div><button class=peach-pro-deactivate>`),Xe=E(`<div class=peach-settings-body>`),Ze=E(`<p class=peach-pro-key-error>That key doesn't look right.`),Qe=E(`<div class=peach-pro-key-ceremony><p class=peach-pro-key-ceremony-label>Enter your license key</p><input class="peach-underline-input peach-pro-key-input"type=text placeholder=PPK-XXXX-XXXX-XXXX-XXXX-XXXX autocomplete=off><button class="peach-btn peach-btn--accent peach-pro-key-activate"></button><button class=peach-pro-key-cancel>cancel`),$e=E(`<div class=peach-pro-upgrade><div class=peach-pro-upgrade-hero><div class=peach-pro-upgrade-mark-wrap></div><h2 class=peach-pro-upgrade-title>Peach Pro</h2><p class=peach-pro-upgrade-tagline>Everything on every device.</p></div><div class=peach-pro-features></div><div class=peach-pro-upgrade-actions><p class=peach-pro-pricing>$39 · once · yours forever</p><a href=https://peachpasswords.com/#pricing target=_blank rel="noopener noreferrer"class="peach-btn peach-btn--accent peach-pro-upgrade-cta">Get Peach Pro</a><div class=peach-pro-key-divider><span>or</span></div><button class=peach-pro-key-link>Activate a license key`),et=E(`<div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name></span><span class=peach-pro-feature-desc>`),tt=E(`<div class=peach-pro-active-feature><span class=peach-pro-active-feature-mark>✦</span><span class=peach-pro-active-feature-name>`),nt=E(`<p class="peach-feedback-result peach-feedback-result--ok">Sent — thank you`),rt=E(`<p class="peach-feedback-result peach-feedback-result--err">Failed to send — try again`),it=E(`<div class=peach-settings-body><div class="peach-settings-group peach-feedback-group"><p class=peach-feedback-intro>Help us improve Peach. Every report goes directly to our inbox.</p><p class=peach-settings-sub-label>TYPE</p><div class=peach-feedback-chips></div><p class=peach-settings-sub-label>MESSAGE</p><textarea class=peach-feedback-textarea placeholder="Describe the issue or idea..."></textarea><p class=peach-feedback-meta>Version <!> · will be included automatically</p><button class="peach-btn peach-btn--accent peach-btn--sm peach-feedback-submit"></button><p class=peach-feedback-anon>Sent anonymously · no account required`),at=E(`<button>`),ot=E(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-label>Autofill service</p><div class=peach-mobile-row><span class=peach-mobile-status></span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div></div><div class=peach-settings-group><p class=peach-settings-label>Biometric unlock</p><div class=peach-mobile-row><span class=peach-mobile-status>`),st=E(`<div class="peach-overlay-view ov-enter-right"style=display:flex><div class=peach-overlay-header><button class="peach-btn peach-btn--ghost peach-btn--sm peach-icon-btn"aria-label=Back><svg width=7 height=12 viewBox="0 0 7 12"fill=none stroke=currentColor stroke-width=1.1 stroke-linecap=round stroke-linejoin=round><path d="M6 1L1 6L6 11"></path></svg></button><span class=peach-overlay-title></span><div class=peach-overlay-spacer>`),ct=[`Bug report`,`Feature request`,`Question`,`Other`];function lt(e){if(!e)return`Active`;try{let t=new Date(e);return Number.isNaN(t.getTime())?`Active`:`Active since ${t.toLocaleDateString(void 0,{month:`long`,year:`numeric`})}`}catch{return`Active`}}function ut(e){return e===`security`||e===`vault`||e===`sync`||e===`appearance`||e===`shortcuts`||e===`license`||e===`feedback`||e===`mobile`}function k(E){let O=chrome.runtime.getManifest().version,k=E.initialSection,[A,j]=o(k&&ut(k)?k:null),[dt,ft]=o(!1),[pt,mt]=o(null),[ht,gt]=o(null),[_t,vt]=o(``),[yt,M]=o(null),[bt,xt]=o(null),[St,Ct]=o(!1),[wt,Tt]=o([]),[Et,Dt]=o([]),[N,Ot]=o(`offline`),[kt,At]=o(void 0),[jt,Mt]=o(!1),P=()=>E.isPro??jt(),[Nt,Pt]=o(!1),[F,Ft]=o(null),[It,Lt]=o(!1),[I,Rt]=o(null),[L,R]=o(!1),[z,zt]=o(null),[Bt,Vt]=o(0),[Ht,Ut]=o(!1),[B,Wt]=o(``),[V,Gt]=o(``),[Kt,qt]=o(``),[Jt,Yt]=o(!1),[Xt,H]=o(null),[Zt,Qt]=o(!1),[U,$t]=o(!1),[en,W]=o(!1),[tn,nn]=o(``),[rn,an]=o(``),[G,K]=o(``),[q,J]=o(!1),[on,Y]=o(null),[sn,X]=o(null),[Z,cn]=o([]);function ln(){try{return h(`Autofill`)}catch{return null}}let un=ln(),[dn,fn]=o(!1),[pn,mn]=o(!1),hn=y.getPlatform()===`android`,[gn,_n]=o(null),[vn,yn]=o(null),[bn,xn]=o(`Bug report`),[Q,Sn]=o(``),[Cn,wn]=o(!1),[Tn,En]=o(null);i(async()=>{let[e,t,n,r,i,a]=await Promise.all([w({type:`GET_LICENSE`}),w({type:`GET_SYNC_STATE`}),w({type:`GET_PASSKEY_PROVIDER_STATE`}),w({type:`IS_DURESS_ENABLED`}),w({type:`GET_SETTINGS`}),w({type:`GET_LICENSE_KEY`})]);if(e.ok&&gt(e.data??null),t.ok){let e=t;e.data&&(Tt(e.data.pairedDevices??[]),Dt(e.data.trustedNetworks??[]),Ot(e.data.status??`offline`),At(e.data.lastSyncAt),Mt(e.data.isPro??!1))}if(n.ok&&Ft(n.data??null),r.ok&&$t(r.data??!1),i.ok){let e=i.data;Vt(e?.declinedCardFingerprints?.length??0)}a.ok&&dr(a.data??null);let o=await w({type:`GET_ENTRIES`});if(o.ok&&cn((o.data??[]).filter(e=>e.canary?.webhookUrl).map(e=>({id:e.id,title:e.title,canary:e.canary}))),hn){if(un){let{enabled:e}=await un.isEnabledAsAutofillService();fn(e)}mn(await v())}chrome.runtime.onMessage.addListener(e=>{e.type===`SYNC_STATE_UPDATE`&&(Tt(e.pairedDevices??[]),Dt(e.trustedNetworks??[]),Ot(e.status??`offline`),At(e.lastSyncAt),Mt(e.isPro??!1))})});async function Dn(){if(H(null),!B().trim()){H(`enter your current password`);return}if(V().length<12){H(`new password must be at least 12 characters`);return}if(V()!==Kt()){H(`new passwords do not match`);return}if(V()===B()){H(`new password must differ from current`);return}Yt(!0);let e=await w({type:`CHANGE_PASSWORD`,payload:{currentPassword:B(),newPassword:V()}});e.ok?(Qt(!0),Wt(``),Gt(``),qt(``),setTimeout(()=>{Qt(!1),Ut(!1)},2200)):H(e.error??`failed to change password`),Yt(!1)}let[On,kn]=o(!1);async function An(e){await navigator.clipboard.writeText(e),kn(!0),setTimeout(()=>kn(!1),2e3)}async function jn(){let e=_t().trim();if(!e)return;Ct(!0),M(null),xt(null);let t=await w({type:`ACTIVATE_LICENSE`,payload:{key:e}});if(Ct(!1),t.ok){let n=t.data;n?.valid?(gt(n),dr(e),xt(`License activated!`),vt(``)):M(`Invalid license key`)}else M(`Activation failed`)}async function Mn(){let e=F();if(!e||!e.supported)return;Lt(!0);let t=await w({type:`SET_PASSKEY_PROVIDER_ENABLED`,payload:{enabled:!e.enabled}});Lt(!1),t.ok&&Ft(t.data??null)}async function Nn(){ft(!0),mt(null);let e=await w({type:`CHECK_ALL_BREACHES`});if(ft(!1),e.ok){let t=e.data??{},n=Object.values(t).filter(e=>e>0).length;mt(n>0?`${n} password${n>1?`s`:``} found in breaches`:`All passwords clean`),E.onBreachCheckDone()}}async function Pn(){N()!==`not_trusted`&&(Pt(!0),await w({type:`TRIGGER_SYNC`}),setTimeout(()=>Pt(!1),3e3))}async function Fn(e){await w({type:`REMOVE_PAIRED_DEVICE`,payload:{deviceId:e}})}async function In(e,t,n){await w({type:`REMOVE_TRUSTED_NETWORK`,payload:{ssid:e,bssid:t,isTailscale:n}})}async function Ln(){await w({type:`MARK_NETWORK_TRUSTED`})}function Rn(e){if(!e)return`Never`;let t=Date.now()-e,n=Math.floor(t/6e4),r=Math.floor(t/36e5),i=Math.floor(t/864e5);return n<1?`Just now`:n<60?`${n}m ago`:r<24?`${r}h ago`:`${i}d ago`}function zn(e){switch(e){case`synced`:return`var(--peach-sync-ok)`;case`syncing`:return`var(--peach-sync-busy)`;case`no_peers`:return`var(--peach-sync-off)`;case`not_trusted`:return`var(--peach-sync-err)`;case`offline`:return`var(--peach-sync-off)`;default:return`var(--peach-sync-off)`}}function Bn(e){switch(e){case`synced`:return`Synced`;case`syncing`:return`Syncing`;case`no_peers`:return`No peers visible`;case`not_trusted`:return`Not on a trusted network`;case`offline`:return`Offline`;default:return`Unknown`}}function Vn(){return Et().length>0}async function Hn(){let e=G().trim(),t=tn().trim(),n=rn().trim();if(!e){Y(`enter your main password to confirm`);return}if(t.length<8){Y(`duress password must be at least 8 characters`);return}if(t===e){Y(`duress password must differ from your main password`);return}if(t!==n){Y(`passwords do not match`);return}J(!0),Y(null);let r=await w({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!r.ok||!r.data){Y(`incorrect main password`),J(!1);return}let i=await w({type:`SETUP_DURESS`,payload:{duressPassword:t}});J(!1),i.ok?($t(!0),W(!1),nn(``),an(``),K(``),X(`Duress password set. If entered, a decoy vault will be shown.`),setTimeout(()=>X(null),5e3)):Y(i.error??`failed to set duress password`)}async function Un(){await w({type:`UPDATE_SETTINGS`,payload:{declinedCardFingerprints:[]}}),Vt(0)}async function Wn(){R(!0),zt(null);let e=await w({type:`COUNT_DUPLICATES`});R(!1),e.ok&&Rt(e.data??0)}async function Gn(){R(!0);let e=await w({type:`DEDUPLICATE_ENTRIES`});R(!1),e.ok&&(zt(e.data??0),Rt(0))}async function Kn(){let e=G().trim();if(!e){Y(`enter your main password to confirm`);return}J(!0),Y(null);let t=await w({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!t.ok||!t.data){Y(`incorrect main password`),J(!1);return}let n=await w({type:`DISABLE_DURESS`});J(!1),n.ok?($t(!1),W(!1),K(``),X(`Duress password disabled.`),setTimeout(()=>X(null),4e3)):Y(n.error??`failed to disable duress password`)}async function qn(){if(!Q().trim()||Cn())return;wn(!0),En(null);let e=await w({type:`SUBMIT_FEEDBACK`,payload:{category:bn(),message:Q().trim(),version:O,browser:navigator.userAgent}});wn(!1),e.ok?(En(`success`),Sn(``),setTimeout(()=>En(null),4e3)):En(`error`)}function Jn(){A()===null?E.onBack():j(null)}function Yn(){let e=A();return e===null?`settings`:e===`license`?`account`:e}function $(t){return(()=>{var n=te(),r=n.firstChild,i=r.nextSibling.firstChild,a=i.nextSibling;return n.$$click=()=>j(t.section),f(r,()=>t.icon()),f(i,()=>t.name,null),f(i,e(s,{get when(){return D(()=>!!t.pro)()&&!P()},get children(){return ee()}}),null),f(a,()=>t.desc),n})()}let Xn=()=>ne(),Zn=()=>re(),Qn=()=>ie(),$n=()=>ae(),er=()=>oe(),tr=()=>se(),nr=()=>ce();function rr(){return(()=>{var t=ue(),n=t.firstChild.nextSibling,r=n.nextSibling,i=r.nextSibling,a=i.nextSibling,o=a.firstChild;return o.firstChild,f(t,()=>$({section:`security`,name:`Security`,desc:`Locking, breach monitoring, passkeys`,icon:Xn}),n),f(t,()=>$({section:`license`,name:`Peach Pro`,desc:P()?`Active · manage your license`:`Upgrade · $39 · yours forever`,icon:Zn}),n),f(t,()=>$({section:`vault`,name:`Vault`,desc:`Entries, health, import & export`,icon:Qn}),r),f(t,()=>$({section:`sync`,name:`Sync`,desc:`Paired devices & trusted networks`,icon:$n,pro:!0}),r),f(t,()=>$({section:`appearance`,name:`Appearance`,desc:`Theme & accent color`,icon:er}),i),f(t,()=>$({section:`shortcuts`,name:`Shortcuts`,desc:`Keyboard reference`,icon:tr}),i),f(t,e(s,{when:hn,get children(){return[le(),D(()=>$({section:`mobile`,name:`Mobile`,desc:`Autofill & biometric settings`,icon:$n}))]}}),i),f(t,()=>$({section:`feedback`,name:`Feedback`,desc:`Report issues, suggest features`,icon:nr}),a),f(o,O,null),t})()}function ir(){return(()=>{var t=De(),n=t.firstChild,i=n.firstChild.nextSibling,o=i.firstChild.nextSibling,c=i.nextSibling,l=c.firstChild.nextSibling,u=c.nextSibling.nextSibling,d=u.firstChild.nextSibling,p=u.nextSibling,m=p.firstChild.nextSibling,h=p.nextSibling,g=h.nextSibling,_=g.firstChild.nextSibling,v=g.nextSibling,y=v.nextSibling,b=y.firstChild.nextSibling,x=y.nextSibling,S=x.nextSibling,C=S.firstChild.nextSibling,w=S.nextSibling,O=w.nextSibling,ee=O.firstChild.nextSibling,te=O.nextSibling,ne=te.firstChild.nextSibling,re=te.nextSibling,ie=re.firstChild.nextSibling;return re.nextSibling,o.$$click=()=>void E.onLockOnCloseChange(!E.lockOnClose),l.addEventListener(`change`,e=>void E.onAutoLockMinutesChange(Number(e.currentTarget.value))),d.$$click=()=>void E.onBreachMonitoringChange(!E.breachMonitoring),m.$$click=()=>void Nn(),f(m,()=>dt()?`checking...`:`run`),f(n,e(s,{get when(){return pt()},get children(){var e=de(),t=e.firstChild.nextSibling;return f(t,pt),e}}),h),_.$$click=()=>{Ut(e=>!e),H(null)},f(_,()=>Ht()?`cancel`:`change`),f(n,e(s,{get when(){return Ht()},get children(){var t=me(),n=t.firstChild,r=n.nextSibling,i=r.nextSibling,o=i.nextSibling;return n.$$input=e=>Wt(e.target.value),r.$$input=e=>Gt(e.target.value),i.$$keydown=e=>{e.key===`Enter`&&Dn()},i.$$input=e=>qt(e.target.value),f(t,e(s,{get when(){return Xt()},get children(){var e=fe();return f(e,Xt),e}}),o),f(t,e(s,{get when(){return Zt()},get children(){return pe()}}),o),o.$$click=()=>void Dn(),f(o,()=>Jt()?`saving…`:`save new password`),a(()=>o.disabled=Jt()||!B()||!V()||!Kt()),a(()=>n.value=B()),a(()=>r.value=V()),a(()=>i.value=Kt()),t}}),v),f(b,()=>U()?`on`:`off`),f(n,e(s,{get when(){return D(()=>!!U())()&&!en()},get children(){return he()}}),x),f(n,e(s,{get when(){return sn()},get children(){var e=ge(),t=e.firstChild;return f(t,sn),e}}),x),f(n,e(s,{get when(){return!en()},get children(){var e=_e(),t=e.firstChild;return t.$$click=()=>{W(!0),Y(null),X(null),nn(``),an(``),K(``)},f(t,()=>U()?`Change / disable`:`Set up`),e}}),x),f(n,e(s,{get when(){return en()},get children(){var t=Te(),n=t.firstChild.nextSibling,r=n.nextSibling,i=r.firstChild;return n.$$input=e=>K(e.currentTarget.value),f(t,e(s,{get when(){return!U()},get children(){return[ve(),(()=>{var e=ye();return e.$$input=e=>nn(e.currentTarget.value),a(()=>e.value=tn()),e})(),be(),(()=>{var e=xe();return e.$$input=e=>an(e.currentTarget.value),a(()=>e.value=rn()),e})()]}}),r),f(t,e(s,{get when(){return on()},get children(){var e=Se();return f(e,on),e}}),r),i.$$click=()=>{W(!1),Y(null)},f(r,e(s,{get when(){return U()},get children(){var e=Ce();return e.$$click=()=>void Kn(),f(e,()=>q()?`disabling...`:`disable duress`),a(()=>e.disabled=q()),e}}),null),f(r,e(s,{get when(){return!U()},get children(){var e=we();return e.$$click=()=>void Hn(),f(e,()=>q()?`saving...`:`save`),a(()=>e.disabled=q()||!G()||!tn()||!rn()),e}}),null),a(()=>n.value=G()),t}}),x),f(C,(()=>{var e=D(()=>Z().length>0);return()=>e()?`${Z().length} active`:`none`})()),f(n,e(s,{get when(){return Z().length>0},get children(){return e(r,{get each(){return Z()},children:e=>(()=>{var t=Oe(),n=t.firstChild,r=n.nextSibling;return f(n,()=>e.title),r.$$click=()=>void _r(e),f(r,(()=>{var t=D(()=>gn()===e.id);return()=>t()?`sending…`:D(()=>vn()?.id===e.id)()?vn().ok?`sent ✓`:`failed ✗`:`test`})()),a(()=>r.disabled=gn()===e.id),t})()})}}),w),ee.$$click=()=>void Mn(),f(ne,()=>F()?.statusLabel??`Unavailable`),f(ie,()=>F()?.browserLabel??`Unknown`,null),f(ie,()=>F()?.supported?` ✓`:` (interception unavailable)`,null),f(n,e(s,{get when(){return F()?.conflict},get children(){var e=Ee(),t=e.firstChild;return f(t,()=>F().conflict),e}}),null),a(e=>{var t=`peach-toggle ${E.lockOnClose?`is-on`:``}`,n=`peach-toggle ${E.breachMonitoring?`is-on`:``}`,r=dt(),i=`peach-duress-status-pill ${U()?`is-active`:``}`,a=`peach-toggle ${F()?.enabled?`is-on`:``}`,s=!F()?.supported||It();return t!==e.e&&T(o,e.e=t),n!==e.t&&T(d,e.t=n),r!==e.a&&(m.disabled=e.a=r),i!==e.o&&T(b,e.o=i),a!==e.i&&T(ee,e.i=a),s!==e.n&&(ee.disabled=e.n=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),a(()=>l.value=String(E.autoLockMinutes)),t})()}function ar(){return(()=>{var t=Ne(),n=t.firstChild,r=n.firstChild.nextSibling,i=r.firstChild.nextSibling,o=r.nextSibling;o.firstChild;var c=o.nextSibling,l=c.nextSibling,d=l.firstChild.nextSibling,p=l.nextSibling,m=p.firstChild.nextSibling,h=p.nextSibling,g=h.nextSibling,_=g.firstChild.nextSibling,v=g.nextSibling,y=v.firstChild.nextSibling,b=v.nextSibling.firstChild.nextSibling.nextSibling;return f(i,()=>E.entriesCount),f(o,e(s,{get when(){return z()!==null},get fallback(){return(()=>{var e=Pe();return e.$$click=()=>void Wn(),f(e,(()=>{var e=D(()=>!!L());return()=>e()?`scanning...`:D(()=>I()===null)()?`scan`:D(()=>I()===0)()?`none found`:`${I()} found — remove?`})()),a(()=>e.disabled=L()),e})()},get children(){var e=ke();return f(e,(()=>{var e=D(()=>z()===0);return()=>e()?`already clean`:`removed ${z()}`})()),e}}),null),f(n,e(s,{get when(){return D(()=>I()!==null&&I()>0)()&&z()===null},get children(){var e=Ae(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling.firstChild,o=i.nextSibling;return f(t,I,n),f(t,()=>I()===1?`entry`:`entries`,r),i.$$click=()=>Rt(null),o.$$click=()=>void Gn(),f(o,()=>L()?`removing...`:`remove duplicates`),a(()=>o.disabled=L()),e}}),c),d.addEventListener(`change`,e=>void E.onTrashRetentionChange(Number(e.currentTarget.value))),u(m,`click`,E.onOpenHealth,!0),f(n,e(s,{get when(){return Bt()>0},get children(){var e=je(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling;return f(t,Bt,n),f(t,()=>Bt()===1?``:`s`,r),i.$$click=()=>void Un(),e}}),h),u(_,`click`,E.onImport,!0),u(y,`click`,E.onExport,!0),b.$$click=()=>E.onOpenFileImport?.(),f(n,e(s,{get when(){return E.onOpenPanic},get children(){var e=Me(),t=e.firstChild.nextSibling.nextSibling;return t.$$click=()=>E.onOpenPanic?.(),e}}),null),a(()=>d.value=String(E.trashRetentionDays)),t})()}function or(){return P()?(()=>{var n=Le(),r=n.firstChild.firstChild,i=r.firstChild.nextSibling,o=i.firstChild,c=r.nextSibling,l=c.firstChild.nextSibling,u=c.nextSibling,d=u.firstChild,p=u.nextSibling,m=p.firstChild,h=m.firstChild.nextSibling;h.nextSibling;var g=m.nextSibling,_=g.firstChild,v=_.nextSibling,y=p.nextSibling,b=y.firstChild,x=b.firstChild.nextSibling;x.nextSibling;var S=b.nextSibling;return f(i,()=>Bn(N()),null),f(l,(()=>{var e=D(()=>!!kt());return()=>e()?Rn(kt()):`Never synced`})()),d.$$click=()=>void Pn(),f(d,()=>Nt()?`Syncing...`:`Sync now`),f(m,()=>wt().length,h),f(p,()=>wt().map(e=>(()=>{var t=Re(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.firstChild.nextSibling;a.nextSibling;var o=n.nextSibling;return f(r,()=>e.displayName),f(i,()=>Rn(e.lastSeenAt),a),f(i,()=>Rn(e.lastSyncAt),null),o.$$click=()=>void Fn(e.deviceId),t})()),g),_.$$click=()=>E.onOpenSyncPairing?.(`initiate`),v.$$click=()=>E.onOpenSyncPairing?.(`accept`),f(b,()=>Et().length,x),f(y,()=>Et().filter(e=>!e.isTailscale).map(e=>(()=>{var t=ze(),n=t.firstChild,r=n.nextSibling;return f(n,()=>e.ssid??`Unknown network`),r.$$click=()=>void In(e.ssid,e.bssid,e.isTailscale),t})()),S),f(S,e(s,{get when(){return!Vn()},get children(){var e=Ie();return e.$$click=()=>void Ln(),e}})),a(e=>{var n=zn(N()),r=N()===`not_trusted`||N()===`syncing`;return n!==e.e&&t(o,`background`,e.e=n),r!==e.t&&(d.disabled=e.t=r),e},{e:void 0,t:void 0}),n})():(()=>{var e=Fe(),t=e.firstChild.firstChild.nextSibling.nextSibling,n=t.nextSibling;return t.$$click=()=>j(`license`),n.$$click=()=>j(`license`),e})()}function sr(){let n=[{id:`cormorant-italic`,label:`Cormorant Italic`,preview:`Aa`},{id:`cormorant`,label:`Cormorant`,preview:`Aa`},{id:`inter`,label:`Inter`,preview:`Aa`},{id:`system`,label:`System`,preview:`Aa`}],i=[{id:`small`,label:`Small`},{id:`medium`,label:`Default`},{id:`large`,label:`Large`}];return(()=>{var o=Be(),s=o.firstChild.firstChild.nextSibling,l=s.firstChild.nextSibling,u=s.nextSibling.nextSibling,d=u.firstChild.nextSibling,p=u.nextSibling.nextSibling,h=p.firstChild.nextSibling,g=p.nextSibling.nextSibling,_=g.firstChild.nextSibling,v=g.nextSibling.nextSibling.firstChild.nextSibling;return l.$$click=()=>E.onThemeChange(E.theme===`dark`?`light`:`dark`),f(l,()=>E.theme===`dark`?`Switch to light`:`Switch to dark`),f(d,e(r,{each:m,children:e=>(()=>{var n=Ve();return n.$$click=()=>void E.onAccentChange(e.name),a(r=>{var i=E.accentColor===e.name,a=e.hex,o=e.name,s=e.name;return i!==r.e&&n.classList.toggle(`is-active`,r.e=i),a!==r.t&&t(n,`background`,r.t=a),o!==r.a&&c(n,`aria-label`,r.a=o),s!==r.o&&c(n,`title`,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()})),f(h,e(r,{each:n,children:e=>(()=>{var t=He(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>void E.onDisplayFontChange(e.id),f(n,()=>e.preview),f(r,()=>e.label),a(n=>{var r=E.displayFont===e.id,i=e.id,a=e.label,o=e.label;return r!==n.e&&t.classList.toggle(`is-active`,n.e=r),i!==n.t&&c(t,`data-font-preview`,n.t=i),a!==n.a&&c(t,`aria-label`,n.a=a),o!==n.o&&c(t,`title`,n.o=o),n},{e:void 0,t:void 0,a:void 0,o:void 0}),t})()})),f(_,e(r,{each:i,children:e=>(()=>{var t=Ue();return t.$$click=()=>void E.onTextSizeChange(e.id),f(t,()=>e.label),a(()=>t.classList.toggle(`is-active`,E.textSize===e.id)),t})()})),v.$$click=()=>void E.onReduceMotionChange(!E.reduceMotion),f(v,()=>E.reduceMotion?`On`:`Off`),o})()}function cr(){let[t,n]=o(null),[i,c]=o(null);function u(e){c(null),n(e)}function p(){n(null),c(null)}function m(e,t){let r=g(E.shortcuts,t,e);if(r){c(`Already bound to "${C.find(e=>e.action===r)?.label??r}"`);return}let i={...E.shortcuts,[e]:t};n(null),c(null),E.onShortcutsChange(i)}function h(e){let t={...E.shortcuts,[e]:b[e]};E.onShortcutsChange(t)}function _(){E.onShortcutsChange({...b})}function v(e){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){p();return}let n=x(e);if(!n)return;let r=t();r&&m(r,n)}return(()=>{var n=Ge(),a=n.firstChild;a.firstChild;var o=a.nextSibling;o.firstChild;var c=o.nextSibling,l=c.firstChild,d=l.firstChild.nextSibling,m=l.nextSibling;return f(a,e(r,{get each(){return C.filter(e=>e.scope===`entry`)},children:e=>y(e,t,u,p,h,v)}),null),f(o,e(r,{get each(){return C.filter(e=>e.scope===`global`)},children:e=>y(e,t,u,p,h,v)}),null),f(n,e(s,{get when(){return i()},get children(){var e=We();return f(e,i),e}}),c),d.$$click=e=>{e.preventDefault(),chrome.tabs.create({url:`chrome://extensions/shortcuts`})},m.$$click=_,n})();function y(t,n,r,i,o,c){let u=()=>n()===t.action,p=()=>E.shortcuts[t.action],m=()=>{let e=p(),n=b[t.action];return e.key!==n.key||!!e.ctrl!=!!n.ctrl||!!e.meta!=!!n.meta||!!e.shift!=!!n.shift||!!e.alt!=!!n.alt};return(()=>{var n=qe(),h=n.firstChild,g=h.nextSibling;return f(h,()=>t.label),l(e=>{e&&queueMicrotask(()=>{u()&&e.focus()})},g),g.$$keydown=e=>{u()&&c(e)},g.$$click=()=>u()?i():r(t.action),f(g,(()=>{var e=D(()=>!!u());return()=>e()?`Press a key…`:d(p())})()),f(n,e(s,{get when(){return D(()=>!!m())()&&!u()},get children(){var e=Ke();return e.$$click=()=>o(t.action),e}}),null),a(e=>{var t=!!u(),n=!!m();return t!==e.e&&g.classList.toggle(`is-capturing`,e.e=t),n!==e.t&&g.classList.toggle(`is-custom`,e.t=n),e},{e:void 0,t:void 0}),n})()}}let lr=[{feature:`sync`,name:`Peach Sync`,desc:`Encrypted · peer-to-peer · local`},{feature:`ios_app`,name:`Android & iOS`,desc:`Your vault everywhere`},{feature:`passkeys`,name:`Passkeys`,desc:`Zero-knowledge WebAuthn`},{feature:`advanced_health`,name:`Advanced Vault Health`,desc:`Reuse · age · exposure scoring`},{feature:`smart_password_change`,name:`Smart Password Change`,desc:`Guided reset · pre-filled · vault updated`}],[ur,dr]=o(null),[fr,pr]=o(!1),[mr,hr]=o(!1);async function gr(){hr(!0),await w({type:`DEACTIVATE_LICENSE`}),gt(null),await E.onLicenseChange?.(),hr(!1)}async function _r(e){_n(e.id),yn(null);let t=await w({type:`FIRE_CANARY_PING`,payload:{webhookUrl:e.canary.webhookUrl,entryTitle:e.title,trigger:`test`}});yn({id:e.id,ok:t.ok}),_n(null),setTimeout(()=>yn(t=>t?.id===e.id?null:t),3e3)}function vr(){async function t(){await jn(),(ht()?.valid??!1)&&ht()?.plan===`pro`&&await E.onLicenseChange?.()}return(()=>{var n=Xe();return f(n,e(s,{get when(){return P()},get fallback(){return e(s,{get when(){return fr()},get fallback(){return(()=>{var t=$e(),n=t.firstChild,i=n.firstChild,o=n.nextSibling,s=o.nextSibling.firstChild.nextSibling.nextSibling.nextSibling;return f(i,e(p,{class:`peach-pro-upgrade-mark`})),f(o,e(r,{each:lr,children:e=>(()=>{var t=et(),n=t.firstChild.nextSibling.firstChild,r=n.nextSibling;return f(n,()=>e.name),f(r,()=>e.desc),a(()=>t.classList.toggle(`is-highlighted`,E.upgradeHighlight===e.feature)),t})()})),s.$$click=()=>pr(!0),t})()},get children(){var n=Qe(),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,l=o.nextSibling;return f(n,e(S,{}),r),i.$$keydown=e=>{e.key===`Enter`&&t()},i.$$input=e=>vt(e.currentTarget.value),c(i,`spellcheck`,!1),f(n,e(s,{get when(){return yt()},get children(){return Ze()}}),o),o.$$click=()=>void t(),f(o,()=>St()?`activating…`:`Activate`),l.$$click=()=>{pr(!1),M(null),vt(``)},a(()=>o.disabled=St()||!_t().trim()),a(()=>i.value=_t()),n}})},get children(){var t=Ye(),n=t.firstChild,i=n.firstChild,o=i.nextSibling.nextSibling,c=n.nextSibling,l=c.nextSibling;return f(i,e(p,{class:`peach-pro-active-mark`})),f(o,()=>lt(ht()?.issued)),f(t,e(s,{get when(){return ur()},get children(){var e=Je(),t=e.firstChild.nextSibling.firstChild,n=t.nextSibling;return f(t,()=>ur()),n.$$click=()=>An(ur()),f(n,()=>On()?`✓`:`copy`),e}}),c),f(c,e(r,{each:lr,children:e=>(()=>{var t=tt(),n=t.firstChild.nextSibling;return f(n,()=>e.name),t})()})),l.$$click=()=>void gr(),f(l,()=>mr()?`Deactivating…`:`Deactivate`),a(()=>l.disabled=mr()),t}})),n})()}function yr(){return(()=>{var t=it(),n=t.firstChild,i=n.firstChild.nextSibling.nextSibling,o=i.nextSibling.nextSibling,c=o.nextSibling,l=c.firstChild.nextSibling;l.nextSibling;var u=c.nextSibling;return f(i,e(r,{each:ct,children:e=>(()=>{var t=at();return t.$$click=()=>xn(e),f(t,e),a(()=>T(t,`peach-feedback-chip ${bn()===e?`is-active`:``}`)),t})()})),o.$$input=e=>Sn(e.currentTarget.value),f(c,O,l),f(n,e(s,{get when(){return Tn()===`success`},get children(){return nt()}}),u),f(n,e(s,{get when(){return Tn()===`error`},get children(){return rt()}}),u),u.$$click=()=>void qn(),f(u,()=>Cn()?`Sending...`:`Send feedback`),a(()=>u.disabled=Cn()||!Q().trim()),a(()=>o.value=Q()),t})()}function br(){return(()=>{var e=ot(),t=e.firstChild,n=t.firstChild.nextSibling.firstChild,r=n.nextSibling,i=t.nextSibling.firstChild.nextSibling.firstChild;return f(n,()=>dn()?`Enabled`:`Disabled`),r.$$click=()=>void un?.openAutofillSettings(),f(r,()=>dn()?`Change`:`Enable`),f(i,()=>pn()?`Available`:`Not available`),e})()}return(()=>{var t=st(),r=t.firstChild.firstChild,i=r.nextSibling;return r.$$click=Jn,f(i,Yn),f(t,e(_,{get fallback(){return rr()},get children(){return[e(n,{get when(){return A()===`security`},get children(){return ir()}}),e(n,{get when(){return A()===`vault`},get children(){return ar()}}),e(n,{get when(){return A()===`sync`},get children(){return or()}}),e(n,{get when(){return A()===`appearance`},get children(){return sr()}}),e(n,{get when(){return A()===`shortcuts`},get children(){return cr()}}),e(n,{get when(){return A()===`license`},get children(){return vr()}}),e(n,{get when(){return A()===`feedback`},get children(){return yr()}}),e(n,{get when(){return A()===`mobile`},get children(){return br()}})]}}),null),t})()}O([`click`,`input`,`keydown`]);export{k as SettingsView};