PageSourceSearch

https://openstax.org/dist/chunk-b380790210155e0b7c88.js

js openstax.org collected 2026-09-24 08:34:45 UTC 9,108 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9e07ece3-fa26-55b8-9138-66e42da03341")}catch(e){}}();
3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ac03-1856-7ac3-b330-87cbf7c9bece")}catch(e){}}();(self.webpackChunk_openstax_os_webview=self.webpackChunk_openstax_os_webview||[]).push([[12],{9638(e,n,t){(e.exports=t(37508)(!1)).push([e.id,"@media (max-width: 60em) {\n  #main.layout-default {\n    padding-top: 5rem; } }\n\n@media (min-width: 75.0625em) {\n  #main.layout-default main {\n    --max-content-width: 120rem; } }\n",""])},31136(e,n,t){(e.exports=t(37508)(!1)).push([e.id,"#microsurvey .microsurvey-content .btn,\n#microsurvey .microsurvey-content button {\n  appearance: none;\n  background: transparent;\n  border: 0;\n  cursor: pointer;\n  touch-action: manipulation;\n  align-items: center;\n  display: flex;\n  justify-content: center;\n  text-align: center;\n  font-size: 1.6rem;\n  font-weight: normal;\n  letter-spacing: normal;\n  line-height: normal;\n  line-height: 2.5rem;\n  border-radius: 0.5rem;\n  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);\n  box-sizing: border-box;\n  display: inline-flex;\n  height: 5rem;\n  margin: 0;\n  padding: 0 3rem;\n  text-decoration: none;\n  user-select: none;\n  white-space: nowrap;\n  width: auto;\n  border: 0.1rem solid #d5d5d5;\n  color: #424242;\n  font-weight: normal;\n  background-color: #fff; }\n  #microsurvey .microsurvey-content .btn:focus,\n  #microsurvey .microsurvey-content button:focus {\n    box-shadow: 0 0 0.5rem 0.3rem rgba(0, 149, 197, 0.7);\n    outline: none; }\n  #microsurvey .microsurvey-content .small.btn,\n  #microsurvey .microsurvey-content button.small {\n    font-size: 1.4rem;\n    font-weight: normal;\n    letter-spacing: normal;\n    line-height: normal;\n    line-height: 2rem;\n    height: 3rem;\n    padding: 0 2rem; }\n  #microsurvey .microsurvey-content .medium.btn,\n  #microsurvey .microsurvey-content button.medium {\n    height: 4rem; }\n  #microsurvey .microsurvey-content .wide.btn,\n  #microsurvey .microsurvey-content button.wide {\n    padding: 0;\n    width: calc(100% - 0.5rem); }\n  #microsurvey .microsurvey-content .disabled.btn,\n  #microsurvey .microsurvey-content button.disabled {\n    opacity: 0.4; }\n  #microsurvey .microsurvey-content .btn:hover,\n  #microsurvey .microsurvey-content button:hover, #microsurvey .microsurvey-content .btn:focus,\n  #microsurvey .microsurvey-content button:focus {\n    background-color: #f1f1f1; }\n  #microsurvey .microsurvey-content .btn:active,\n  #microsurvey .microsurvey-content button:active {\n    background-color: #e5e5e5; }\n  #microsurvey .microsurvey-content .btn,\n  #microsurvey .microsurvey-content button {\n    -webkit-font-smoothing: antialiased;\n    -moz-osx-font-smoothing: grayscale;\n    border: 0;\n    color: #fff;\n    font-weight: bold;\n    background-color: #d4450c; }\n    #microsurvey .microsurvey-content .btn:hover,\n    #microsurvey .microsurvey-content button:hover, #microsurvey .microsurvey-content .btn:focus,\n    #microsurvey .microsurvey-content button:focus {\n      background-color: #be3c08; }\n    #microsurvey .microsurvey-content .btn:active,\n    #microsurvey .microsurvey-content button:active {\n      background-color: #b03808; }\n\n#microsurvey {\n  background-color: #fff;\n  border-radius: 0.3rem;\n  bottom: 1.5rem;\n  box-shadow: 0 0.2rem 0.6rem 0 rgba(0, 0, 0, 0.25);\n  max-width: 32rem;\n  overflow: hidden;\n  position: fixed;\n  right: 1.5rem;\n  z-index: 4; }\n  #microsurvey > div:not(:empty):not(.put-away) {\n    padding: 2.5rem 2.5rem 1.5rem 1.5rem; }\n  #microsurvey .put-away {\n    height: 2rem;\n    line-height: 1.8rem;\n    right: 0.7rem;\n    top: 0.7rem;\n    width: 2rem; }\n  #microsurvey .microsurvey-content .btn,\n  #microsurvey .microsurvey-content button {\n    height: 4rem;\n    margin-top: 1rem; }\n  #microsurvey .microsurvey-content h1 {\n    font-size: 1.8rem;\n    font-weight: bold;\n    letter-spacing: -0.072rem;\n    line-height: normal; }\n",""])},20012(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>H});var r=t(17402),o=t(32216),u=t(50118),i=t(47767),a=t(41340),l=t(18987);function c({children:e,disable:n}){const{userModel:t}=(0,u.A)(),{first_name:o}=(0,a.iY)(t),{pathname:l}=(0,i.zy)(),c=`${window.location.origin}${l}`,s=`/renewal-form?from=popup&returnTo=${encodeURIComponent(c)}`;return r.default.useEffect(()=>n,[n]),r.default.createElement("div",{className:"microsurvey-content","data-analytics-view":!0,"data-analytics-nudge":"adoption","data-nudge-placement":"popup"},e,r.default.createElement("h1",null,"Hi, ",o,"! Are you still using OpenStax in your course(s)? Please take 1 minute to tell us by filling out"," ",r.default.createElement("a",{href:s,onClick:()=>n(),"data-nudge-action":"interacted"},"this form"),"."))}function s(){const[e,n]=function(){var e,n;
3const[t,o]=function(e){var n;return r.default.useReducer((n,t)=>(l.A.set(e,t),t),null!==(n=l.A.get(e))&&void 0!==n?n:"")}("renewal_dialog_dismissed"),a=r.default.useMemo(()=>+Number(t)>0,[t]),{userModel:c}=(0,u.A)(),s="confirmed_faculty"===(null===(e=null==c?void 0:c.accountsModel)||void 0===e?void 0:e.faculty_status),m=null===(n=null==c?void 0:c.accountsModel)||void 0===n?void 0:n.using_openstax,{pathname:d}=(0,i.zy)(),f="/renewal-form"===d||"/adoption"===d,v=r.default.useMemo(()=>!f&&!a&&s&&Boolean(m),[a,s,m,f]),y=r.default.useCallback(()=>o(Date.now().toString()),[o]);return r.default.useEffect(()=>{window.setTimeout(()=>{!a&&f&&y()},10)},[f,y,a]),[v,y]}();return[e,r.default.useCallback(({children:e})=>r.default.createElement(c,{disable:n},e),[n])]}var m=t(85072),d=t.n(m),f=t(97825),v=t.n(f),y=t(77659),b=t.n(y),h=t(55056),g=t.n(h),p=t(10540),w=t.n(p),E=t(41113),k=t.n(E),x=t(31136),A=t.n(x),S={};function _(){const[e,n]=function(){const[e,n]=r.default.useState([]),t=r.default.useCallback(()=>n(e.slice(1)),[e]),o=e.length>0?e[0]:null;return function(e,n,t){const[o,u]=e(),[i,a]=r.default.useState(!1);r.default.useEffect(()=>{i||!o||n.includes(u)||(t([...n,u]),a(!0))},[o,n,t,u,i])}(s,e,n),[o,t]}();return e?r.default.createElement("div",{id:"microsurvey"},r.default.createElement(e,{onDone:n},r.default.createElement(o.or,{onClick:n}))):null}S.styleTagTransform=k(),S.setAttributes=g(),S.insert=b().bind(null,"head"),S.domAPI=v(),S.insertStyleElement=w(),d()(A(),S),A()&&A().locals&&A().locals;var C=t(42254),z=t(91762);const I="lower-sticky-note-closed";function T(){const e=function(){const e=(0,o.Yk)(),n=(0,o.i3)(null==e?void 0:e.bannerConfigs),t="banner"===(null==e?void 0:e.mode)?n:[];return(0,o.nS)(t)}(),[n,u]=(0,o.l9)(),i=n||Boolean(l.A.get(I));return r.default.useEffect(()=>{n&&l.A.set(I,"true",{expires:7})},[n]),!e||i?null:r.default.createElement(z.A,{importFn:()=>Promise.all([t.e(8308),t.e(1330)]).then(t.bind(t,91330)),bannerInfo:e,PutAway:u})}var D=t(79851),M=t(3678),N=t(86921),P=t(63807),F=t(20312),O=t.n(F),R=t(63176);function $(){const e=(0,R.Tz)((0,R.ro)("donations/fundraiser")),[n]=e?[].concat(e):[],[o,u]=function(){const[e,n]=function(e,n){const t=function(e){try{return JSON.parse(window.localStorage.getItem(e)||"null")}catch(e){return null}}(e),o=null===t?n:t,[u,i]=r.default.useState(o);return r.default.useEffect(()=>{var n;return null===(n=window.localStorage)||void 0===n?void 0:n.setItem(e,JSON.stringify(u))},[e,u]),[u,i]}("takeoverLastDisplay",0);return[Date.now()-Number(e)<576e5,r.default.useCallback(()=>n(Date.now()),[n])]}();return!n||o?null:r.default.createElement(z.A,{importFn:()=>Promise.all([t.e(4250),t.e(6066)]).then(t.bind(t,66066)),data:n,setDisplayed:u})}var B=t(46942),J=t.n(B),Q=t(9638),Y=t.n(Q),j={};function H({children:e}){return r.default.createElement(r.default.Fragment,null,r.default.createElement(_,null),r.default.createElement("header",{id:"header"},r.default.createElement(C.A,null)),r.default.createElement("div",{id:"lower-sticky-note"},r.default.createElement(T,null)),r.default.createElement(M.aQ,null,r.default.createElement(N.Q,null,r.default.createElement(L,null,e))),r.default.createElement("footer",{id:"footer"},r.default.createElement(D.default,null)))}function L({children:e}){const{language:n}=(0,P.A)(),t=r.default.useRef(null),{classes:o}=(0,N.A)();return r.default.useEffect(()=>{O().setAppElement(t.current)},[]),r.default.createElement("div",{id:"main",className:J()("lang","layout-default",n,o),ref:t,tabIndex:-1},r.default.createElement($,null),e)}j.styleTagTransform=k(),j.setAttributes=g(),j.insert=b().bind(null,"head"),j.domAPI=v(),j.insertStyleElement=w(),d()(Y(),j),Y()&&Y().locals&&Y().locals}}]);
4//# sourceMappingURL=chunk-b380790210155e0b7c88.js.map
5//# chunkId=01a0ac03-1856-7ac3-b330-87cbf7c9bece
6//# debugId=9e07ece3-fa26-55b8-9138-66e42da03341

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.