@internetarchive/bookreader 5.0.0-37 → 5.0.0-38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -983,7 +983,7 @@
983
983
  ${this.customModalContent}
984
984
  </modal-template>
985
985
  </div>
986
- `}getMode(){return this.mode}closeModal(){this.mode=jn.Closed}callUserClosedModalCallback(){const e=this.userClosedModalCallback;this.userClosedModalCallback=void 0,e&&e()}showModal(e){return t=this,void 0,r=function*(){this.closeOnBackdropClick=e.config.closeOnBackdropClick,this.userClosedModalCallback=e.userClosedModalCallback,this.modalTemplate.config=e.config,this.customModalContent=e.customModalContent,this.mode=jn.Open,yield this.modalTemplate.updateComplete,this.modalTemplate.focus()},new((n=void 0)||(n=Promise))((function(e,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r.throw(e))}catch(e){o(e)}}function s(t){t.done?e(t.value):new n((function(e){e(t.value)})).then(i,a)}s((r=r.apply(t,[])).next())}));var t,n,r}updated(e){e.has("mode")&&this.handleModeChange()}backdropClicked(){this.closeOnBackdropClick&&(this.closeModal(),this.callUserClosedModalCallback())}handleModeChange(){this.hostBridge.handleModeChange(this.mode),this.emitModeChangeEvent()}emitModeChangeEvent(){const e=new CustomEvent("modeChanged",{detail:{mode:this.mode}});this.dispatchEvent(e)}closeButtonPressed(){this.closeModal(),this.callUserClosedModalCallback()}static get styles(){const e=mn`var(--modalBackdropColor, rgba(10, 10, 10, 0.9))`,t=mn`var(--modalBackdropZindex, 1000)`,n=mn`var(--modalWidth, 32rem)`,r=mn`var(--modalMaxWidth, 95%)`,o=mn`var(--modalZindex, 2000)`;return mn`
986
+ `}getMode(){return this.mode}closeModal(){this.mode=jn.Closed}callUserClosedModalCallback(){const e=this.userClosedModalCallback;this.userClosedModalCallback=void 0,e&&e()}showModal(e){return t=this,n=void 0,o=function*(){this.closeOnBackdropClick=e.config.closeOnBackdropClick,this.userClosedModalCallback=e.userClosedModalCallback,this.modalTemplate.config=e.config,this.customModalContent=e.customModalContent,this.mode=jn.Open,yield this.modalTemplate.updateComplete,this.modalTemplate.focus()},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}l((o=o.apply(t,n||[])).next())}));var t,n,r,o}updated(e){e.has("mode")&&this.handleModeChange()}backdropClicked(){this.closeOnBackdropClick&&(this.closeModal(),this.callUserClosedModalCallback())}handleModeChange(){this.hostBridge.handleModeChange(this.mode),this.emitModeChangeEvent()}emitModeChangeEvent(){const e=new CustomEvent("modeChanged",{detail:{mode:this.mode}});this.dispatchEvent(e)}closeButtonPressed(){this.closeModal(),this.callUserClosedModalCallback()}static get styles(){const e=mn`var(--modalBackdropColor, rgba(10, 10, 10, 0.9))`,t=mn`var(--modalBackdropZindex, 1000)`,n=mn`var(--modalWidth, 32rem)`,r=mn`var(--modalMaxWidth, 95%)`,o=mn`var(--modalZindex, 2000)`;return mn`
987
987
  .container {
988
988
  width: 100%;
989
989
  height: 100%;