PageSourceSearch

https://www.quill.org/vite/assets/password_wrapper-D369EHDt.js

js quill.org collected 2026-09-24 08:43:43 UTC 2,611 bytes, 2 lines download raw bytes

1import{a as b,r as e}from"./constants-6l3j42Ul.js";import{u as p,I as w}from"./requestWrapper-CJXXdkOj.js";const h=({onClose:t})=>{const{modalRef:o}=p(t);return b.createPortal(e.createElement("div",{className:"modal-container demo-blocked-modal-container"},e.createElement("div",{className:"modal-background"}),e.createElement("div",{"aria-labelledby":"demoBlockedModalTitle","aria-modal":"true",className:"demo-blocked-modal quill-modal",ref:o,role:"dialog",tabIndex:-1},e.createElement("div",{className:"demo-blocked-modal-header"},e.createElement("h3",{className:"title",id:"demoBlockedModalTitle"},"You are in a demo account")),e.createElement("div",{className:"demo-blocked-modal-body modal-body"},e.createElement("p",null,"The demo account is to show you what sample data looks like. As a result, editing is disabled in the demo account. To exit the demo account, please click the ",e.createElement("strong",null,"Exit demo account")," button in the upper right corner of the page.")),e.createElement("div",{className:"demo-blocked-modal-footer"},e.createElement("div",{className:"buttons"},e.createElement("button",{className:"quill-button contained medium green focus-on-light",onClick:t,type:"button"},"Close"))))),document.body)},u=e.createContext(void 0),C=({children:t,isDemo:o})=>{const s=e.useMemo(()=>({isDemo:o}),[o]);return e.createElement(u.Provider,{value:s},t)},E=()=>{const t=e.useContext(u);if(t===void 0)throw new Error("useDemoAccountContextProvider must be used within a DemoAccountContextProvider");return t},x=({children:t,onClick:o,className:s="",disabled:n=!1,ariaLabel:c})=>{const{isDemo:r}=E(),[d,l]=e.useState(!1),a=m=>{r?l(!0):o(m)},i=()=>{l(!1)};return e.createElement(e.Fragment,null,e.createElement("button",{"aria-label":c,className:s,disabled:n,onClick:a,type:"button"},t),d&&e.createElement(h,{onClose:i}))},v=`${window.postbuildEnv.CDN_URL}/images/icons/icons-visibility-on.svg`,g=`${window.postbuildEnv.CDN_URL}/images/icons/icons-visibility-off.svg`,N=({autoComplete:t,className:o,error:s,onChange:n,id:c,label:r,timesSubmitted:d,value:l})=>{const[a,i]=e.useState(!1);function m(){i(!a)}return e.createElement("div",{className:"password-wrapper"},e.createElement(w,{autoComplete:t,className:o,error:s,handleChange:n,id:c,label:r,timesSubmitted:d,type:a?"text":"password",value:l}),e.createElement("button",{"aria-label":a?"Hide password":"Show password",className:"interactive-wrapper focus-on-light",onClick:m,type:"button"},e.createElement("img",{alt:"",src:a?g:v})))};export{x as D,N as P,C as a,h as b,E as u};
2//# sourceMappingURL=password_wrapper-D369EHDt.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.