1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`798154dfe6f02312abe2ebb46dcac5b55267091e`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:listening-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`541f541b-355a-4d62-830e-05d4513b8a22`,e._sentryDebugIdIdentifier=`sentry-dbid-541f541b-355a-4d62-830e-05d4513b8a22`)}catch{}})();import{t as e}from"./jsx-runtime-HLTtilDO.js";import{Tt as t,V as n,Vt as r,d as i,j as a,l as o,lt as s,m as c,n as l,p as u,x as d}from"./Schema-BiKO9Vds.js";import{n as f,o as p,s as m,t as h}from"./kvs-_HSp1xFW.js";import{t as g}from"./compiler-runtime-UO9gZYRt.js";var _=g();e();var v=[`Poppins`,`Besley`,`Roboto Serif`,`Playfair Display`,`Quicksand`,`OpenDyslexic`],y=[`Small`,`Medium`,`Large`],b=[`Regular`,`Medium`,`Semibold`],x=[`Compact`,`Comfort`,`Spacious`],S={fontStyles:v,fontSizes:y,fontWeights:b,lineHeights:x,fontStyleLabelToClassName:{Poppins:`font-['Poppins']`,Besley:`font-['Besley_Variable']`,"Roboto Serif":`font-['Roboto_Serif_Variable']`,"Playfair Display":`font-['Playfair_Display_Variable']`,Quicksand:`font-['Quicksand_Variable']`,OpenDyslexic:`font-['OpenDyslexic']`},fontSizeLabelToClassName:{Small:`text-base`,Medium:`text-lg`,Large:`text-xl`},fontWeightLabelToValue:{Regular:`400`,Medium:`500`,Semibold:`600`},lineHeightLabelToMultiplier:{Compact:1.65,Comfort:1.8,Spacious:2}},C=[{key:`inter`,label:`Inter`,className:`font-['Inter_Variable',sans-serif]`},{key:`lexend`,label:`Lexend`,className:`font-['Lexend_Variable',sans-serif]`},{key:`opendyslexic`,label:`OpenDyslexic`,className:`font-['OpenDyslexic',sans-serif]`},{key:`atkinson`,label:`Atkinson Hyperlegible`,className:`font-['Atkinson_Hyperlegible_Next_Variable',sans-serif]`},{key:`helvetica`,label:`Helvetica`,className:`font-['Helvetica','Arial',sans-serif]`},{key:`arial`,label:`Arial`,className:`font-['Arial',sans-serif]`},{key:`system`,label:`System`,className:`font-sans`}],w=[{key:`regular`,label:`Regular`,className:`font-normal`},{key:`medium`,label:`Medium`,className:`font-medium`},{key:`semibold`,label:`Semibold`,className:`font-semibold`}],T=[{key:`small`,label:`Small`,className:`text-[15px]`},{key:`medium`,label:`Medium`,className:`text-[17px]`},{key:`large`,label:`Large`,className:`text-[19px]`}],E=[{key:`compact`,label:`Compact`,className:`leading-[1.65]`},{key:`comfortable`,label:`Comfort`,className:`leading-[1.8]`},{key:`spacious`,label:`Spacious`,className:`leading-[2]`}],D=[{key:`narrow`,label:`Narrow`,className:`max-w-3xl`},{key:`standard`,label:`Standard`,className:`max-w-4xl`},{key:`wide`,label:`Wide`,className:`max-w-5xl`}],O=[{key:`tight`,label:`Tight`,className:`py-2`},{key:`normal`,label:`Normal`,className:`py-3`},{key:`relaxed`,label:`Relaxed`,className:`py-4`}],k=[{key:`color`,label:`Color`},{key:`highlight`,label:`Highlight`},{key:`underline`,label:`Underline`}],A=d({size:u(y),style:u(v),weight:u(b),lineHeight:u(x)}),j=d({playbackRate:o,_volume:o,muted:l,fontSettings:A,readAlongViewer:u([`normal`,`pdf`]),pdfScale:o,autoScroll:l,docFont:u(C.map(e=>e.key)),docFontWeight:u(w.map(e=>e.key)),docTextSize:u(T.map(e=>e.key)),docLineHeight:u(E.map(e=>e.key)),docContentWidth:u(D.map(e=>e.key)),docParagraphSpacing:u(O.map(e=>e.key)),docActiveEmphasis:u(k.map(e=>e.key)),docFullscreen:l}),M={playbackRate:1,_volume:1,muted:!1,fontSettings:{size:`Medium`,style:`Poppins`,weight:`Regular`,lineHeight:`Comfort`},readAlongViewer:`pdf`,pdfScale:1,autoScroll:!1,docFont:`inter`,docFontWeight:`regular`,docTextSize:`medium`,docLineHeight:`comfortable`,docContentWidth:`standard`,docParagraphSpacing:`normal`,docActiveEmphasis:`color`,docFullscreen:!1},N=d({...j.fields,fontSettings:A.mapFields(t(s))}).mapFields(t(s)),P=d({...N.fields,state:s(c)}),F=a([d({state:N,version:i}),P]).pipe(n(j,r({decode:e=>{let t=`version`in e?e.state:e;return{...M,...t,fontSettings:{...M.fontSettings,...t.fontSettings}}},encode:e=>e}
1))),I=h({key:`audio-prefs-storage`,schema:F,defaultValue:()=>M,fieldFallback:f({schema:j,defaultValue:()=>M})}),L=e=>e.muted?0:e._volume;function R(){let e=(0,_.c)(2),t=p(I),n;return e[0]===t?n=e[1]:(n={setPlaybackRate:e=>{t(t=>({...t,playbackRate:e}))},setVolume:e=>{t(t=>({...t,_volume:e,muted:e===0}))},setMuted:e=>{t(t=>({...t,muted:e}))},setFontSettings:e=>{t(t=>({...t,fontSettings:e}))},reset:()=>{t(M)},setReadAlongViewer:e=>{t(t=>({...t,readAlongViewer:e}))},setPdfScale:e=>{e<.2||e>5||t(t=>({...t,pdfScale:e}))},setAutoScroll:e=>{t(t=>({...t,autoScroll:e}))},setDocFont:e=>{t(t=>({...t,docFont:e}))},setDocFontWeight:e=>{t(t=>({...t,docFontWeight:e}))},setDocTextSize:e=>{t(t=>({...t,docTextSize:e}))},setDocLineHeight:e=>{t(t=>({...t,docLineHeight:e}))},setDocContentWidth:e=>{t(t=>({...t,docContentWidth:e}))},setDocParagraphSpacing:e=>{t(t=>({...t,docParagraphSpacing:e}))},setDocActiveEmphasis:e=>{t(t=>({...t,docActiveEmphasis:e}))},setDocFullscreen:e=>{t(t=>({...t,docFullscreen:e}))}},e[0]=t,e[1]=n),n}function z(e){let t=(0,_.c)(3),n=R(),r;return t[0]!==n||t[1]!==e?(r=t=>e({...t,...n,getVolume:()=>L(t)}),t[0]=n,t[1]=e,t[2]=r):r=t[2],m(I,r)}function B(e){return C.find(t=>t.key===e)?.className??``}function V(e){return w.find(t=>t.key===e)?.className??``}function H(e){return T.find(t=>t.key===e)?.className??``}function U(e){return E.find(t=>t.key===e)?.className??``}function W(e){return D.find(t=>t.key===e)?.className??``}function G(e){return O.find(t=>t.key===e)?.className??``}function K(e){let t=e?.document_url;return!t||e.document_type===`TXT`||!new URL(t).pathname.endsWith(`.pdf`)?{isPdf:!1,documentUrl:null}:{isPdf:!0,documentUrl:t}}function q(e){let t=(0,_.c)(6),n=z(J),r=e??void 0,i;t[0]===r?i=t[1]:(i=K(r),t[0]=r,t[1]=i);let{isPdf:a,documentUrl:o}=i;if(a&&n===`pdf`){let e;return t[2]===o?e=t[3]:(e={viewMode:`pdf`,documentUrl:o},t[2]=o,t[3]=e),e}let s;return t[4]===o?s=t[5]:(s={viewMode:`normal`,documentUrl:o},t[4]=o,t[5]=s),s}function J(e){return e.readAlongViewer}export{L as _,w as a,T as c,V as d,U as f,S as g,K as h,C as i,W as l,H as m,k as n,E as o,G as p,D as r,O as s,I as t,B as u,z as v,q as y}; 2//# sourceMappingURL=audio-preferences-store-L18Hr4qG.js.map
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.