@micromag/viewer 0.2.406 → 0.2.411
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.
- package/assets/css/styles.css +1 -1
- package/es/index.js +129 -129
- package/lib/index.js +129 -129
- package/package.json +8 -8
package/assets/css/styles.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.micromag-viewer-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-viewer-container address,.micromag-viewer-container blockquote,.micromag-viewer-container caption,.micromag-viewer-container dl,.micromag-viewer-container figure,.micromag-viewer-container h1,.micromag-viewer-container h2,.micromag-viewer-container h3,.micromag-viewer-container h4,.micromag-viewer-container h5,.micromag-viewer-container h6,.micromag-viewer-container label,.micromag-viewer-container legend,.micromag-viewer-container li,.micromag-viewer-container ol,.micromag-viewer-container p,.micromag-viewer-container pre,.micromag-viewer-container ul{margin:0;padding:0}.micromag-viewer-container *,.micromag-viewer-container :after,.micromag-viewer-container :before{-webkit-box-sizing:border-box;box-sizing:border-box}.micromag-viewer-container .micromag-viewer-menuPreview,.micromag-viewer-container .micromag-viewer-menuPreviewContainer,.micromag-viewer-container .micromag-viewer-screen,.micromag-viewer-container .micromag-viewer-screenInner{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-container .micromag-viewer-screen:focus-visible{outline:3px solid #a13dff}.micromag-viewer-container{background-color:#1c1c1c;color:#fff}.micromag-viewer-container,.micromag-viewer-container .micromag-viewer-content{position:relative;width:100%;height:100%;overflow:hidden}.micromag-viewer-container .micromag-viewer-content{z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-viewer-container .micromag-viewer-menuDotsContainer{-ms-touch-action:none;touch-action:none;visibility:hidden;position:absolute;z-index:2;top:0;right:50%;width:100%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.micromag-viewer-container .micromag-viewer-menuDots{position:relative;padding:8px 10px;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease}.micromag-viewer-container .micromag-viewer-menuPreviewContainer{visibility:hidden;z-index:3;top:-100%}.micromag-viewer-container .micromag-viewer-menuPreview{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.micromag-viewer-container .micromag-viewer-screen{display:-webkit-flex;display:-ms-flexbox;display:flex;opacity:0}.micromag-viewer-container .micromag-viewer-screen.micromag-viewer-current{opacity:1}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen{top:0;right:auto;bottom:0;left:50%;margin:auto;-webkit-transition:opacity .3s ease,-webkit-transform .3s ease;transition:opacity .3s ease,-webkit-transform .3s ease;-o-transition:transform .3s ease,opacity .3s ease;transition:transform .3s ease,opacity .3s ease;transition:transform .3s ease,opacity .3s ease,-webkit-transform .3s ease;opacity:.2;cursor:pointer}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen:focus-visible,.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen:hover{opacity:.3}.micromag-viewer-container.micromag-viewer-landscape .micromag-viewer-screen.micromag-viewer-current{opacity:1;cursor:auto}.micromag-viewer-container.micromag-viewer-hideMenu:not(.micromag-viewer-landscape) .micromag-viewer-menuDotsContainer{pointer-events:none}.micromag-viewer-container.micromag-viewer-hideMenu:not(.micromag-viewer-landscape) .micromag-viewer-menuDots{opacity:0}.micromag-viewer-container.micromag-viewer-ready .micromag-viewer-menuDotsContainer,.micromag-viewer-container.micromag-viewer-ready .micromag-viewer-menuPreviewContainer{visibility:visible}
|
|
2
|
+
.micromag-viewer-screen-container{position:relative;height:100%;pointer-events:none}.micromag-viewer-screen-container.micromag-viewer-screen-current{pointer-events:auto}
|
|
2
3
|
.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton:focus-visible,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuButton:focus-visible{outline:3px solid #a13dff}.micromag-viewer-menus-menu-dots-container{position:relative}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item,.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-items{margin:0;padding:0;list-style:none}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-items{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;width:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item{-webkit-flex:1 1;-ms-flex:1 1;flex:1 1}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button{display:block;width:100%;padding:10px 2px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-dot{display:block;width:100%;height:2px;border-radius:2px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-item:last-child{margin-right:0}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menu{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:16px;height:16px;padding-left:10px}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-menuIcon{display:block;height:100%}.micromag-viewer-menus-menu-dots-container .micromag-viewer-menus-menu-dots-closeButton{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-left:10px;font-size:26px}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical{background:rgba(0,0,0,0)}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical,.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-items{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-items{width:auto;height:100%}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-button{width:auto;height:100%;padding:2px 10px}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-item .micromag-viewer-menus-menu-dots-dot{width:2px;height:100%}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-vertical .micromag-viewer-menus-menu-dots-menu{position:absolute;top:10px;right:10px;padding-left:0}.micromag-viewer-menus-menu-dots-container.micromag-viewer-menus-menu-dots-withShadow{background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.4)),to(rgba(0,0,0,0)));background:-o-linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0));background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0))}
|
|
3
4
|
|
|
4
5
|
.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-activeScreenBorder,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-itemContent,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-scroll{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button:focus-visible,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton:focus-visible{outline:3px solid #a13dff}.micromag-viewer-menus-menu-preview-container{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;padding:10px;background-color:#000;background-repeat:no-repeat;background-position:50%;background-size:cover;color:#fff}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton{display:block}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenButton:focus-visible{border:4px solid #a13dff;outline:none}.micromag-viewer-menus-menu-preview-container.micromag-viewer-menus-menu-preview-disabled .micromag-viewer-menus-menu-preview-screenButton{pointer-events:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:20px}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton{display:inline-block;border:0;border-radius:0;background-color:rgba(0,0,0,0);color:inherit;font-size:.9rem;font-weight:600;line-height:1.4;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button{width:20px;margin-left:10px;padding:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-button:first-child{margin-left:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-shareButton{z-index:1}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-header .micromag-viewer-menus-menu-preview-icon{display:block;width:100%;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-buttons{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-organisation{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:30px;height:30px;margin-right:10px;border-radius:50%;background-color:#fff;background-repeat:no-repeat;background-position:50%;background-size:contain}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-title{margin-right:auto;color:#fff;font-family:Helvetica,Arial,sans-serif}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-content,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-nav{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-nav{overflow:hidden}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item,.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-items{margin:0;padding:0;list-style:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-items{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item{position:relative;height:0}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-item.micromag-viewer-menus-menu-preview-active .micromag-viewer-menus-menu-preview-screenButton{pointer-events:none}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-itemContent{padding:2px}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenContainer{position:relative;height:100%}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-activeScreenBorder{border:2px solid #fff}.micromag-viewer-menus-menu-preview-container .micromag-viewer-menus-menu-preview-screenContent{-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;background-color:#2b2b2b}
|
|
5
6
|
.micromag-viewer-partials-share-modal-container{pointer-events:none}.micromag-viewer-partials-share-modal-container .micromag-viewer-partials-share-modal-content{padding:5px;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);-webkit-transform-origin:center top;-ms-transform-origin:center top;transform-origin:center top;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;border-radius:10px;opacity:0;background-color:#fff}.micromag-viewer-partials-share-modal-container .micromag-viewer-partials-share-modal-content:before{content:"";position:absolute;bottom:100%;left:50%;width:0;height:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);border-right:8px solid rgba(0,0,0,0);border-bottom:8px solid #fff;border-left:8px solid rgba(0,0,0,0)}.micromag-viewer-partials-share-modal-container button{display:block;margin:5px}.micromag-viewer-partials-share-modal-container.micromag-viewer-partials-share-modal-opened{pointer-events:auto}.micromag-viewer-partials-share-modal-container.micromag-viewer-partials-share-modal-opened .micromag-viewer-partials-share-modal-content{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}
|
|
6
7
|
.micromag-viewer-partials-share-button-container{position:relative;white-space:nowrap}.micromag-viewer-partials-share-button-container .micromag-viewer-partials-share-button-shareModal{position:absolute;top:100%;right:50%;margin-top:15px;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}
|
|
7
|
-
.micromag-viewer-screen-container{position:relative;height:100%;pointer-events:none}.micromag-viewer-screen-container.micromag-viewer-screen-current{pointer-events:auto}
|
|
8
8
|
.micromag-screen-audio-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-audio-disabled.micromag-screen-audio-container{overflow:hidden;pointer-events:none}.micromag-screen-audio-hidden.micromag-screen-audio-container{display:none;visibility:hidden}.micromag-screen-audio-placeholder.micromag-screen-audio-container .micromag-screen-audio-content{position:relative;padding:6px}.micromag-screen-audio-container .micromag-screen-audio-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-audio-container .micromag-screen-audio-mediaControls{padding:10px 20px 0}.micromag-screen-audio-container .micromag-screen-audio-audio{position:absolute;bottom:50%;left:0;width:100%;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%)}.micromag-screen-audio-container .micromag-screen-audio-bottomContent{position:relative}.micromag-screen-audio-container .micromag-screen-audio-empty{width:100%;height:100px;margin:0 auto}.micromag-screen-audio-container.micromag-screen-audio-isPreview{pointer-events:none}.micromag-screen-contribution-container .micromag-screen-contribution-content{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit:focus-visible{outline:3px solid #a13dff}.micromag-screen-contribution-container{position:relative}@-webkit-keyframes micromag-screen-contribution-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes micromag-screen-contribution-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputName,.micromag-screen-contribution-container .micromag-screen-contribution-emptySubmit,.micromag-screen-contribution-container .micromag-screen-contribution-emptyTitle{margin-bottom:10px;padding:10px}.micromag-screen-contribution-container .micromag-screen-contribution-emptyInputMessage{height:100px}.micromag-screen-contribution-container .micromag-screen-contribution-title{padding-bottom:20px}.micromag-screen-contribution-container .micromag-screen-contribution-interactiveContainer{-webkit-transition-property:height;-o-transition-property:height;transition-property:height;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-contribution-container .micromag-screen-contribution-form{position:relative}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit,.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-inputName{display:block;width:100%;padding:4px}.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage,.micromag-screen-contribution-container .micromag-screen-contribution-inputName{margin-bottom:10px}.micromag-screen-contribution-container .micromag-screen-contribution-inputMessage{height:100px}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit{border:0}.micromag-screen-contribution-container .micromag-screen-contribution-buttonSubmit:disabled{opacity:1}.micromag-screen-contribution-container .micromag-screen-contribution-formContent{-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-contribution-container .micromag-screen-contribution-formLoading{position:absolute;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease;-webkit-animation:micromag-screen-contribution-rotate 1s linear infinite;animation:micromag-screen-contribution-rotate 1s linear infinite;opacity:0;pointer-events:none}.micromag-screen-contribution-container .micromag-screen-contribution-formLoading .micromag-screen-contribution-loadingIcon{display:block;width:100%;height:100%}.micromag-screen-contribution-container .micromag-screen-contribution-contributionsContainer{position:relative;-webkit-transition:opacity .25s ease;-o-transition:opacity .25s ease;transition:opacity .25s ease;opacity:0}.micromag-screen-contribution-container .micromag-screen-contribution-contributionsContent{position:absolute;width:100%;height:0;overflow:hidden}.micromag-screen-contribution-container .micromag-screen-contribution-contributions{position:relative}.micromag-screen-contribution-container .micromag-screen-contribution-contribution{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #fff}.micromag-screen-contribution-container .micromag-screen-contribution-contribution:first-child{padding-top:20px;border-top:1px solid #fff}.micromag-screen-contribution-container .micromag-screen-contribution-contribution:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}.micromag-screen-contribution-container .micromag-screen-contribution-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-form{pointer-events:none}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-formContent{opacity:.4}.micromag-screen-contribution-container.micromag-screen-contribution-submitting .micromag-screen-contribution-formLoading{opacity:1}.micromag-screen-contribution-container.micromag-screen-contribution-submitted .micromag-screen-contribution-formContent{opacity:0}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-form{display:none}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-contributionsContainer{opacity:1}.micromag-screen-contribution-container.micromag-screen-contribution-showContributions .micromag-screen-contribution-contributionsContent{position:relative;height:auto;overflow:visible}.micromag-screen-contribution-container.micromag-screen-contribution-isPlaceholder .micromag-screen-contribution-content{padding:10px}.micromag-screen-conversation-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-conversation-disabled.micromag-screen-conversation-container{overflow:hidden;pointer-events:none}.micromag-screen-conversation-hidden.micromag-screen-conversation-container{display:none;visibility:hidden}.micromag-screen-conversation-placeholder.micromag-screen-conversation-container .micromag-screen-conversation-content{position:relative;padding:6px}.micromag-screen-conversation-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.micromag-screen-conversation-container .micromag-screen-conversation-conversationHeader{width:100%;padding-bottom:16px;font-style:italic}.micromag-screen-conversation-container .micromag-screen-conversation-empty{height:200px}.micromag-screen-conversation-container .micromag-screen-conversation-title{padding-bottom:16px}.micromag-screen-conversation-container .micromag-screen-conversation-callToAction a{padding:0}.micromag-screen-conversation-messageContainer{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:#000}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message{max-width:80%;margin:1px 0;padding:10px;-webkit-transition:border-radius .2s ease;-o-transition:border-radius .2s ease;transition:border-radius .2s ease;background-color:#fff;overflow-wrap:break-word}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-normalLeft{border-radius:1px 15px 15px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenLeft{border-radius:1px 15px 15px 1px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-normalRight{border-radius:15px 1px 15px 15px;background-color:#58afff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenRight{border-radius:15px 1px 1px 15px;background-color:#58afff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-message.micromag-screen-conversation-last{margin:1px 0 16px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-speakerDetails{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;width:100%;padding-bottom:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-speakerDetails.micromag-screen-conversation-right{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatarContainer{width:30px;height:30px;margin-right:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatarContainer.micromag-screen-conversation-right{margin-right:0;margin-left:10px}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-avatar{display:inline-block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-imageContainer{width:100%;height:100%;padding-bottom:10px}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message{-webkit-animation:micromag-screen-conversation-appear .18s ease forwards;animation:micromag-screen-conversation-appear .18s ease forwards}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-normalLeft{-webkit-transform:translate(-300px) scale(.5);-ms-transform:translate(-300px) scale(.5);transform:translate(-300px) scale(.5)}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-inBetweenLeft{border-radius:1px 15px 15px 1px}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-withAnimation .micromag-screen-conversation-message.micromag-screen-conversation-normalRight{-webkit-transform:translate(300px) scale(.5);-ms-transform:translate(300px) scale(.5);transform:translate(300px) scale(.5)}@-webkit-keyframes micromag-screen-conversation-appear{to{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1)}}@keyframes micromag-screen-conversation-appear{to{-webkit-transform:translate(0) scale(1);transform:translate(0) scale(1)}}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingContainer{display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading,.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingContainer{-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin:5px 0 10px;padding:7px 10px;border-radius:10px;background:#fff}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot{width:5px;height:5px;margin-right:4px;-webkit-animation:micromag-screen-conversation-bounce .35s linear infinite alternate;animation:micromag-screen-conversation-bounce .35s linear infinite alternate;border-radius:50%;background:#000}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot:nth-child(2){-webkit-animation-delay:.08s;animation-delay:.08s}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loading .micromag-screen-conversation-dot:nth-child(3){margin-right:0;-webkit-animation-delay:.16s;animation-delay:.16s}@-webkit-keyframes micromag-screen-conversation-bounce{0%{-webkit-transform:translateY(-2px);transform:translateY(-2px);opacity:.5}to{-webkit-transform:translateY(2px);transform:translateY(2px);opacity:1}}@keyframes micromag-screen-conversation-bounce{0%{-webkit-transform:translateY(-2px);transform:translateY(-2px);opacity:.5}to{-webkit-transform:translateY(2px);transform:translateY(2px);opacity:1}}.micromag-screen-conversation-messageContainer .micromag-screen-conversation-loadingSpeakerName{margin:0 5px;opacity:.6;font-size:12px;font-style:italic}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-right{-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.micromag-screen-conversation-messageContainer.micromag-screen-conversation-right .micromag-screen-conversation-loadingContainer{-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.micromag-screen-gallery-container .micromag-screen-gallery-content,.micromag-screen-gallery-container .micromag-screen-gallery-image{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-gallery-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-gallery-disabled.micromag-screen-gallery-container{overflow:hidden;pointer-events:none}.micromag-screen-gallery-hidden.micromag-screen-gallery-container{display:none;visibility:hidden}.micromag-screen-gallery-placeholder.micromag-screen-gallery-container .micromag-screen-gallery-content{position:relative;padding:6px}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-gallery-container .micromag-screen-gallery-grid{position:relative;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-placeholder{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption,.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{width:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyImage{height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-emptyCaption{height:50px;margin-top:10px}.micromag-screen-gallery-container .micromag-screen-gallery-gridItem{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%}.micromag-screen-gallery-container .micromag-screen-gallery-imageContainer{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-gallery-container .micromag-screen-gallery-caption{padding:10px 0}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption,.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-gallery-feed-container{position:relative}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption,.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{width:100%;margin:10px auto}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyImage{height:200px}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-emptyCaption{height:50px}.micromag-screen-gallery-feed-container .micromag-screen-gallery-feed-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-gallery-feed-container.micromag-screen-gallery-feed-isPlaceholder .micromag-screen-gallery-feed-layout{padding:10px}.micromag-screen-image-container .micromag-screen-image-image{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-image-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-image-disabled.micromag-screen-image-container{overflow:hidden;pointer-events:none}.micromag-screen-image-hidden.micromag-screen-image-container{display:none;visibility:hidden}.micromag-screen-image-placeholder.micromag-screen-image-container .micromag-screen-image-content{position:relative;padding:6px}.micromag-screen-image-container .micromag-screen-image-emptyImage,.micromag-screen-image-container .micromag-screen-image-emptyLegend,.micromag-screen-image-container .micromag-screen-image-emptyText,.micromag-screen-image-container .micromag-screen-image-emptyTitle{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-image-container .micromag-screen-image-content{position:relative;height:100%}.micromag-screen-image-container .micromag-screen-image-emptyImage,.micromag-screen-image-container .micromag-screen-image-emptyLegend,.micromag-screen-image-container .micromag-screen-image-emptyText,.micromag-screen-image-container .micromag-screen-image-emptyTitle{width:100%;margin:10px auto}.micromag-screen-image-container .micromag-screen-image-emptyImage{height:100%}.micromag-screen-image-container .micromag-screen-image-emptyTitle{height:100px}.micromag-screen-image-container .micromag-screen-image-emptyText{height:80px}.micromag-screen-image-container .micromag-screen-image-emptyLegend{height:50px}.micromag-screen-image-container .micromag-screen-image-imageContainer{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-image-container .micromag-screen-image-placeholderImage{height:100%}.micromag-screen-image-container .micromag-screen-image-callToAction{margin-top:-10px}.micromag-screen-image-container.micromag-screen-image-isPlaceholder .micromag-screen-image-layout{padding:10px}.micromag-screen-image-container.micromag-screen-image-isCard .micromag-screen-image-placeholderImage{margin:-10px -10px 0}.micromag-screen-image-container.micromag-screen-image-isCardReverse .micromag-screen-image-placeholderImage{margin:10px -10px 0}.micromag-screen-image-container.micromag-screen-image-isCardReverse .micromag-screen-image-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-image-container.micromag-screen-image-isFullscreen .micromag-screen-image-layout{padding:0}.micromag-screen-image-container.micromag-screen-image-isFullscreen .micromag-screen-image-callToAction{position:absolute;bottom:10px;width:100%;margin-top:0}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer,.micromag-screen-map-container .micromag-screen-map-markerOverlayScrollable,.micromag-screen-map-container .micromag-screen-map-splash{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-map-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-map-disabled.micromag-screen-map-container{overflow:hidden;pointer-events:none}.micromag-screen-map-hidden.micromag-screen-map-container{display:none;visibility:hidden}.micromag-screen-map-placeholder.micromag-screen-map-container .micromag-screen-map-content{position:relative;padding:6px}.micromag-screen-map-container .micromag-screen-map-placeholder{height:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlayContainer{-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;background-color:rgba(28,28,28,.4);pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerOverlaySafe{display:block;width:100%}.micromag-screen-map-container .micromag-screen-map-markerOverlay{width:100%;overflow:hidden}.micromag-screen-map-container .micromag-screen-map-markerOverlay,.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-screen-map-container .micromag-screen-map-markerOverlayContent{position:relative;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0 20px;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);-webkit-transition:-webkit-transform .3s ease;transition:-webkit-transform .3s ease;-o-transition:transform .3s ease;transition:transform .3s ease;transition:transform .3s ease,-webkit-transform .3s ease;background-color:#fff}.micromag-screen-map-container .micromag-screen-map-markerOverlayContentInner{color:#1c1c1c}.micromag-screen-map-container .micromag-screen-map-swipeIndicator{width:30px;margin:10px auto;border:2px solid #adadad;border-radius:2px}.micromag-screen-map-container .micromag-screen-map-splash{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:20px;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;background-color:rgba(28,28,28,.75)}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-description,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-title{margin:10px 0}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-button{display:inline-block}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription,.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{width:100%;margin:5px auto}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyTitle{height:50px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyDescription{height:80px}.micromag-screen-map-container .micromag-screen-map-splash .micromag-screen-map-emptyButton{height:70px}.micromag-screen-map-container .micromag-screen-map-splashButton{margin-top:10px}.micromag-screen-map-container .micromag-screen-map-closeButton{display:block;position:absolute;top:20px;right:20px;width:44px;height:44px;padding:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;border-radius:50%;opacity:0;background-color:rgba(43,43,43,.8);font-size:30px;line-height:0;text-align:center;pointer-events:none}.micromag-screen-map-container .micromag-screen-map-markerDescription,.micromag-screen-map-container .micromag-screen-map-markerImage,.micromag-screen-map-container .micromag-screen-map-markerSubtitle,.micromag-screen-map-container .micromag-screen-map-markerTitle{margin-bottom:20px}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContainer{opacity:1;pointer-events:auto}.micromag-screen-map-container.micromag-screen-map-hasSelectedMarker .micromag-screen-map-markerOverlayContent{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-splash{opacity:0;pointer-events:none}.micromag-screen-map-container.micromag-screen-map-opened .micromag-screen-map-closeButton{opacity:1;pointer-events:all}.micromag-screen-quiz-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-quiz-disabled.micromag-screen-quiz-container{overflow:hidden;pointer-events:none}.micromag-screen-quiz-hidden.micromag-screen-quiz-container{display:none;visibility:hidden}.micromag-screen-quiz-placeholder.micromag-screen-quiz-container .micromag-screen-quiz-content{position:relative;padding:6px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer,.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult,.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-quiz-container .micromag-screen-quiz-button:focus-visible{outline:3px solid #a13dff}.micromag-screen-quiz-container .micromag-screen-quiz-question{margin-bottom:10px}.micromag-screen-quiz-container .micromag-screen-quiz-answers,.micromag-screen-quiz-container .micromag-screen-quiz-items{position:relative}.micromag-screen-quiz-container .micromag-screen-quiz-item{-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity;-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-quiz-container .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.micromag-screen-quiz-container .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer .micromag-screen-quiz-resultIcon{background-color:#0ed88f}.micromag-screen-quiz-container .micromag-screen-quiz-itemContent{padding:5px 0}.micromag-screen-quiz-container .micromag-screen-quiz-button{position:relative;width:100%;padding:10px 40px;border:2px solid #6c6c6c}.micromag-screen-quiz-container .micromag-screen-quiz-button:disabled{opacity:1;pointer-events:none}.micromag-screen-quiz-container .micromag-screen-quiz-resultIcon{display:-webkit-flex;display:-ms-flexbox;display:flex;position:absolute;top:50%;left:5px;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:32px;height:32px;margin-top:-16px;padding:5px;-webkit-transition:opacity .15s ease;-o-transition:opacity .15s ease;transition:opacity .15s ease;border:2px solid #1c1c1c;border-radius:50%;opacity:0;background-color:#ff2945}.micromag-screen-quiz-container .micromag-screen-quiz-result{position:absolute;-webkit-transition:opacity .5s ease;-o-transition:opacity .5s ease;transition:opacity .5s ease;opacity:0;pointer-events:none}.micromag-screen-quiz-container .micromag-screen-quiz-resultContent{padding:20px 0}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer,.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult,.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{width:100%;margin:0 auto}.micromag-screen-quiz-container .micromag-screen-quiz-emptyTitle{height:60px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyAnswer{height:50px}.micromag-screen-quiz-container .micromag-screen-quiz-emptyResult{height:100px}.micromag-screen-quiz-container .micromag-screen-quiz-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-quiz-container.micromag-screen-quiz-answered .micromag-screen-quiz-resultIcon{opacity:1}.micromag-screen-quiz-container.micromag-screen-quiz-showResults .micromag-screen-quiz-item{opacity:0}.micromag-screen-quiz-container.micromag-screen-quiz-showResults .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{opacity:1}.micromag-screen-quiz-container.micromag-screen-quiz-answerTransitionComplete .micromag-screen-quiz-item.micromag-screen-quiz-rightAnswer{-webkit-transition:none;-o-transition:none;transition:none}.micromag-screen-quiz-container.micromag-screen-quiz-answerTransitionComplete .micromag-screen-quiz-result{position:relative;opacity:1;pointer-events:all}.micromag-screen-quiz-container.micromag-screen-quiz-isPlaceholder .micromag-screen-quiz-layout{padding:10px}.micromag-screen-quiz-container.micromag-screen-quiz-isPlaceholder .micromag-screen-quiz-item{padding:1px 0}.micromag-screen-quote-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-quote-disabled.micromag-screen-quote-container{overflow:hidden;pointer-events:none}.micromag-screen-quote-hidden.micromag-screen-quote-container{display:none;visibility:hidden}.micromag-screen-quote-placeholder.micromag-screen-quote-container .micromag-screen-quote-content{position:relative;padding:6px}.micromag-screen-quote-container .micromag-screen-quote-emptyAuthor,.micromag-screen-quote-container .micromag-screen-quote-emptyQuote{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-quote-container .micromag-screen-quote-emptyQuote{height:200px}.micromag-screen-quote-container .micromag-screen-quote-emptyAuthor{height:50px}.micromag-screen-quote-container .micromag-screen-quote-quote{font-size:2em}.micromag-screen-quote-container .micromag-screen-quote-quote.micromag-screen-quote-withMargin{margin-bottom:1em}.micromag-screen-quote-container.micromag-screen-quote-isPlaceholder .micromag-screen-quote-layout{padding:10px}.micromag-screen-ranking-container .micromag-screen-ranking-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-ranking-container{position:relative}.micromag-screen-ranking-container .micromag-screen-ranking-empty{height:50px;margin-right:10px}.micromag-screen-ranking-container .micromag-screen-ranking-item{position:relative;padding:10px 0}.micromag-screen-ranking-container .micromag-screen-ranking-rankText{font-size:48px}.micromag-screen-ranking-container .micromag-screen-ranking-description,.micromag-screen-ranking-container .micromag-screen-ranking-title{padding:8px 0}.micromag-screen-ranking-container .micromag-screen-ranking-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-layout{display:table;width:100%}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-item{display:table-row;padding:0}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-content,.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{display:table-cell;padding:10px 0;vertical-align:top}.micromag-screen-ranking-container.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{padding-right:20px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-rank{color:rgba(28,28,28,.5);font-size:16px;text-align:left}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-scroll{padding:5px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-description,.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder .micromag-screen-ranking-item{padding:1px 0}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder.micromag-screen-ranking-sideLayout .micromag-screen-ranking-rank{width:24px;padding-top:8px;padding-right:4px}.micromag-screen-ranking-container.micromag-screen-ranking-isPlaceholder.micromag-screen-ranking-sideLayout .micromag-screen-ranking-content{padding:5px 0}.micromag-screen-slideshow-container .micromag-screen-slideshow-content{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-slideshow-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-slideshow-disabled.micromag-screen-slideshow-container{overflow:hidden;pointer-events:none}.micromag-screen-slideshow-hidden.micromag-screen-slideshow-container{display:none;visibility:hidden}.micromag-screen-slideshow-placeholder.micromag-screen-slideshow-container .micromag-screen-slideshow-content{position:relative;padding:6px}.micromag-screen-survey-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-survey-disabled.micromag-screen-survey-container{overflow:hidden;pointer-events:none}.micromag-screen-survey-hidden.micromag-screen-survey-container{display:none;visibility:hidden}.micromag-screen-survey-placeholder.micromag-screen-survey-container .micromag-screen-survey-content{position:relative;padding:6px}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer,.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-survey-container .micromag-screen-survey-question{margin-bottom:20px}.micromag-screen-survey-container .micromag-screen-survey-answers,.micromag-screen-survey-container .micromag-screen-survey-items{position:relative}.micromag-screen-survey-container .micromag-screen-survey-item{padding:5px 0}.micromag-screen-survey-container .micromag-screen-survey-item:first-child .micromag-screen-survey-placeholderAnswer{width:80%}.micromag-screen-survey-container .micromag-screen-survey-item:last-child .micromag-screen-survey-placeholderAnswer{width:90%}.micromag-screen-survey-container .micromag-screen-survey-itemContent{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.micromag-screen-survey-container .micromag-screen-survey-resultContainer{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;padding:15px 0;-webkit-transition-property:padding;-o-transition-property:padding;transition-property:padding;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-survey-container .micromag-screen-survey-resultContent{width:0;height:1em;-webkit-transition-property:width opacity;-o-transition-property:width opacity;transition-property:width opacity;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;opacity:0}.micromag-screen-survey-container .micromag-screen-survey-result{position:relative;height:100%;background-color:#fff}.micromag-screen-survey-container .micromag-screen-survey-resultLabel{position:absolute;top:50%;left:100%;margin-left:5px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);color:#fff}.micromag-screen-survey-container .micromag-screen-survey-itemInner{width:100%;-webkit-transition-property:width;-o-transition-property:width;transition-property:width;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.micromag-screen-survey-container .micromag-screen-survey-button{position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:0;border:2px solid #6c6c6c;-webkit-transition:opacity .5s ease-out;-o-transition:opacity .5s ease-out;transition:opacity .5s ease-out}.micromag-screen-survey-container .micromag-screen-survey-button:disabled{opacity:1;pointer-events:none}.micromag-screen-survey-container .micromag-screen-survey-itemLabel{display:inline-block;padding:10px;margin-left:50%;-webkit-transition:margin-left .3s ease-out,-webkit-transform .3s ease-out;transition:margin-left .3s ease-out,-webkit-transform .3s ease-out;-o-transition:margin-left .3s ease-out,transform .3s ease-out;transition:margin-left .3s ease-out,transform .3s ease-out;transition:margin-left .3s ease-out,transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%)}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer,.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{width:100%;margin:0 auto}.micromag-screen-survey-container .micromag-screen-survey-emptyQuestion{height:75px}.micromag-screen-survey-container .micromag-screen-survey-emptyAnswer{height:50px}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultContainer{padding-right:50px;padding-left:15px}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultContent{width:100%;opacity:1}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-button{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-button,.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-result,.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-resultLabel{opacity:.6}.micromag-screen-survey-container.micromag-screen-survey-answered .micromag-screen-survey-itemLabel{margin-left:0;text-align:left;-webkit-transform:translate(-10px);-ms-transform:translate(-10px);transform:translate(-10px)}.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-button,.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-result,.micromag-screen-survey-container .micromag-screen-survey-userAnswer .micromag-screen-survey-resultLabel{opacity:1}.micromag-screen-survey-container.micromag-screen-survey-isPlaceholder .micromag-screen-survey-layout{padding:10px}.micromag-screen-survey-container.micromag-screen-survey-isPlaceholder .micromag-screen-survey-item{padding:1px 0}.micromag-screen-text-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-text-disabled.micromag-screen-text-container{overflow:hidden;pointer-events:none}.micromag-screen-text-hidden.micromag-screen-text-container{display:none;visibility:hidden}.micromag-screen-text-placeholder.micromag-screen-text-container .micromag-screen-text-content{position:relative;padding:6px}.micromag-screen-text-container .micromag-screen-text-emptyText,.micromag-screen-text-container .micromag-screen-text-emptyTitle{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-text-container .micromag-screen-text-emptyTitle{height:100px}.micromag-screen-text-container .micromag-screen-text-emptyText{height:50px}.micromag-screen-text-container .micromag-screen-text-title.micromag-screen-text-withMargin{margin-bottom:20px}.micromag-screen-text-container.micromag-screen-text-isPlaceholder .micromag-screen-text-layout{padding:10px}.micromag-screen-timeline-container .micromag-screen-timeline-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-timeline-container{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-empty{height:50px;margin-right:10px}.micromag-screen-timeline-container .micromag-screen-timeline-item{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-element,.micromag-screen-timeline-container .micromag-screen-timeline-timeline{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-screen-timeline-container .micromag-screen-timeline-timeline{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;-webkit-flex-shrink:0;flex-shrink:0;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:15px;padding-right:20px}.micromag-screen-timeline-container .micromag-screen-timeline-line{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:1px}.micromag-screen-timeline-container .micromag-screen-timeline-line.micromag-screen-timeline-hidden{width:auto}.micromag-screen-timeline-container .micromag-screen-timeline-bullet{width:15px;height:15px;margin:2px 0;border-width:1px;border-style:solid}.micromag-screen-timeline-container .micromag-screen-timeline-content{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-screen-timeline-container .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:20px}.micromag-screen-timeline-container .micromag-screen-timeline-description,.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container .micromag-screen-timeline-title{padding:8px 0}.micromag-screen-timeline-container .micromag-screen-timeline-image,.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container .micromag-screen-timeline-video{position:relative}.micromag-screen-timeline-container .micromag-screen-timeline-imageContainer{overflow:hidden}.micromag-screen-timeline-container .micromag-screen-timeline-callToAction{position:absolute;bottom:0;left:0;width:100%}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-scroll{padding:10px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-timeline{padding-right:0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-bullet{width:10px;height:10px;border-color:rgba(28,28,28,.5);background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-content.micromag-screen-timeline-lastContent{margin-bottom:4px}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-description,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-imageContainer,.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-title{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%;padding:2px 0}.micromag-screen-timeline-container.micromag-screen-timeline-isPlaceholder .micromag-screen-timeline-line{background-color:rgba(28,28,28,.5)}.micromag-screen-timeline-container.micromag-screen-timeline-circleBulletShape .micromag-screen-timeline-bullet{border-radius:50%}.micromag-screen-timeline-container.micromag-screen-timeline-withoutLines .micromag-screen-timeline-timeline{visibility:hidden}.micromag-screen-title-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-title-disabled.micromag-screen-title-container{overflow:hidden;pointer-events:none}.micromag-screen-title-hidden.micromag-screen-title-container{display:none;visibility:hidden}.micromag-screen-title-placeholder.micromag-screen-title-container .micromag-screen-title-content{position:relative;padding:6px}.micromag-screen-title-container .micromag-screen-title-emptyDescription,.micromag-screen-title-container .micromag-screen-title-emptySubtitle,.micromag-screen-title-container .micromag-screen-title-emptyTitle{border:2px dashed #343434;color:#343434;width:100%;margin:10px auto}.micromag-screen-title-container .micromag-screen-title-emptyTitle{height:100px}.micromag-screen-title-container .micromag-screen-title-emptyDescription,.micromag-screen-title-container .micromag-screen-title-emptySubtitle{height:50px}.micromag-screen-title-container .micromag-screen-title-subtitle.micromag-screen-title-withMargin,.micromag-screen-title-container .micromag-screen-title-title.micromag-screen-title-withMargin{margin-bottom:.2em}.micromag-screen-title-container.micromag-screen-title-isPlaceholder .micromag-screen-title-layout{padding:10px}.micromag-screen-video-container .micromag-screen-video-content,.micromag-screen-video-container .micromag-screen-video-empty,.micromag-screen-video-container .micromag-screen-video-emptyContainer,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-image,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-placeholder,.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-video-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-video-disabled.micromag-screen-video-container{overflow:hidden;pointer-events:none}.micromag-screen-video-hidden.micromag-screen-video-container{display:none;visibility:hidden}.micromag-screen-video-placeholder.micromag-screen-video-container .micromag-screen-video-content{position:relative;padding:6px}.micromag-screen-video-container .micromag-screen-video-empty{margin:5px auto;border:2px dashed #343434;color:#343434}.micromag-screen-video-container .micromag-screen-video-emptyContainer{top:50%;height:0;padding-bottom:56.25%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.micromag-screen-video-container .micromag-screen-video-empty{margin:0}.micromag-screen-video-container .micromag-screen-video-content{overflow:hidden}.micromag-screen-video-container .micromag-screen-video-mediaControls{padding:10px 20px 20px}.micromag-screen-video-container .micromag-screen-video-placeholder{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.micromag-screen-video-container .micromag-screen-video-videoContainer{position:absolute}.micromag-screen-video-container .micromag-screen-video-bottomContent{position:absolute;bottom:0;width:100%}.micromag-screen-video-container.micromag-screen-video-fullscreen .micromag-screen-video-emptyContainer{top:0;height:100%;padding-bottom:0;-webkit-transform:none;-ms-transform:none;transform:none}.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-screen-video-360-container .micromag-screen-video-360-canvas,.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton,.micromag-screen-video-360-container .micromag-screen-video-360-content,.micromag-screen-video-360-container .micromag-screen-video-360-placeholder,.micromag-screen-video-360-container .micromag-screen-video-360-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-screen-video-360-container{position:relative;width:100%;height:100%;overflow:hidden}.micromag-screen-video-360-disabled.micromag-screen-video-360-container{overflow:hidden;pointer-events:none}.micromag-screen-video-360-hidden.micromag-screen-video-360-container{display:none;visibility:hidden}.micromag-screen-video-360-placeholder.micromag-screen-video-360-container .micromag-screen-video-360-content{position:relative;padding:6px}.micromag-screen-video-360-container .micromag-screen-video-360-empty{border:2px dashed #343434;color:#343434;height:100%;margin:0}.micromag-screen-video-360-container .micromag-screen-video-360-canvasButton{-ms-touch-action:none;touch-action:none}.micromag-screen-video-360-container .micromag-screen-video-360-videoContainer{position:absolute}.micromag-screen-video-360-container .micromag-screen-video-360-video{visibility:hidden}.micromag-screen-video-360-container .micromag-screen-video-360-video video{height:100%}.micromag-screen-video-360-container .micromag-screen-video-360-mediaControls{padding:10px 20px 20px}.micromag-screen-video-360-container .micromag-screen-video-360-placeholder{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.micromag-screen-video-360-container .micromag-screen-video-360-bottomContent{position:absolute;bottom:0;width:100%}.micromag-screen-video-360-container.micromag-screen-video-360-showVideo .micromag-screen-video-360-video{visibility:visible}.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-button{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-button,.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-canvasBackground,.micromag-element-audio-audio-wave-container .micromag-element-audio-audio-wave-canvasProgress{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-audio-audio-wave-container{position:relative;height:100px;-ms-touch-action:pan-y;touch-action:pan-y}.micromag-element-audio-container .micromag-element-audio-wave{height:150px}.micromag-element-background-container,.micromag-element-background-layer,.micromag-element-background-layers,.micromag-element-background-video,.micromag-element-background-videoContainer{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-background-container{z-index:0;overflow:hidden}.micromag-element-background-layer,.micromag-element-background-layers{z-index:0}.micromag-element-background-right .micromag-element-background-background{right:0;left:auto}.micromag-element-background-bottom .micromag-element-background-background{top:auto;bottom:0}.micromag-element-button-container{display:inline-block;position:relative;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:5px 10px;border-radius:0;background-color:hsla(0,0%,100%,.1)}.micromag-element-button-container.micromag-element-button-active,.micromag-element-button-container.micromag-element-button-focus,.micromag-element-button-container:active,.micromag-element-button-container:focus{-webkit-box-shadow:none!important;box-shadow:none!important}.micromag-element-button-container.micromag-element-button-disabled,.micromag-element-button-container:disabled{cursor:auto}@-webkit-keyframes micromag-element-call-to-action-appear{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes micromag-element-call-to-action-appear{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.micromag-element-call-to-action-container{position:relative;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:1;text-align:center}.micromag-element-call-to-action-container .micromag-element-call-to-action-arrow{-webkit-animation:micromag-element-call-to-action-upAndDown .5s ease-in-out infinite alternate;animation:micromag-element-call-to-action-upAndDown .5s ease-in-out infinite alternate}.micromag-element-call-to-action-container .micromag-element-call-to-action-label{display:block}.micromag-element-call-to-action-container .micromag-element-call-to-action-button{display:block;margin:0 auto;padding:20px 0;-ms-touch-action:none;touch-action:none;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-button:hover{text-decoration:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-selfTargetLink{display:none}.micromag-element-call-to-action-container .micromag-element-call-to-action-leavingFrame{position:fixed;top:0;left:0;width:100vw;height:100vh;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:micromag-element-call-to-action-appear .5s ease both;animation:micromag-element-call-to-action-appear .5s ease both;opacity:0;background-color:#fff}.micromag-element-call-to-action-container.micromag-element-call-to-action-animationDisabled .micromag-element-call-to-action-arrow{-webkit-animation:none;animation:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-invalidUrl{opacity:.5;pointer-events:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-invalidUrl .micromag-element-call-to-action-arrow{-webkit-animation:none;animation:none}.micromag-element-call-to-action-container.micromag-element-call-to-action-disabled{opacity:0;pointer-events:none}@-webkit-keyframes micromag-element-call-to-action-upAndDown{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(25%);transform:translateY(25%)}}@keyframes micromag-element-call-to-action-upAndDown{0%{-webkit-transform:translateY(0);transform:translateY(0)}to{-webkit-transform:translateY(25%);transform:translateY(25%)}}.micromag-element-checkbox-container{position:relative}.micromag-element-checkbox-container .micromag-element-checkbox-label{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:0}.micromag-element-checkbox-container .micromag-element-checkbox-input{margin-right:5px}.micromag-element-closed-captions-container{position:relative;text-align:center}.micromag-element-closed-captions-container .micromag-element-closed-captions-captions{display:inline-block;padding:10px;background-color:#1c1c1c;color:#fff;word-break:break-word}.micromag-element-container-container{position:relative;overflow:hidden}.micromag-element-grid-container{position:relative}.micromag-element-grid-container .micromag-element-grid-items{-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;height:100%}.micromag-element-grid-container .micromag-element-grid-cross,.micromag-element-grid-container .micromag-element-grid-items{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative}.micromag-element-grid-container .micromag-element-grid-axis{position:relative}.micromag-element-heading-container em,.micromag-element-heading-container i{font-style:italic}.micromag-element-heading-container b,.micromag-element-heading-container strong{font-weight:700}.micromag-element-heading-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-heading-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-heading-container{line-height:1}.micromag-element-heading-container,.micromag-element-heading-container p{margin:0;padding:0}.micromag-element-image-container .micromag-element-image-showEmpty{margin:5px auto}.micromag-element-image-container{position:relative;overflow:hidden}.micromag-element-image-container .micromag-element-image-img{display:block;position:relative}.micromag-element-image-container .micromag-element-image-showEmpty{width:300px;height:200px;border:2px dashed #343434;color:#343434}.micromag-element-layout-container.micromag-element-layout-fullscreen{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-layout-container{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-element-layout-container,.micromag-element-layout-container .micromag-element-layout-horizontal{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-element-layout-container .micromag-element-layout-horizontal{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.micromag-element-link-container{margin:0;padding:0}.micromag-element-map-container,.micromag-element-map-container .micromag-element-map-map{width:100%;height:100%}.micromag-element-map-container.micromag-element-map-preventScroll .micromag-element-map-map div{cursor:default}.micromag-element-map-container{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-button{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-button,.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-progress{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-media-controls-seek-bar-container{position:relative;height:10px}.micromag-element-media-controls-seek-bar-container .micromag-element-media-controls-seek-bar-progress{position:relative;-webkit-transform-origin:left center;-ms-transform-origin:left center;transform-origin:left center}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton,.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{display:inline-block;position:relative;padding:0;border:0;background:rgba(0,0,0,0);color:inherit;font-family:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.micromag-element-media-controls-container .micromag-element-media-controls-toggles{position:relative;color:#fff}.micromag-element-media-controls-container .micromag-element-media-controls-seekBar{margin-bottom:10px}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton,.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:60px;height:60px}.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton{visibility:hidden;margin:0 auto;border:2px solid #fff;border-radius:50%}.micromag-element-media-controls-container .micromag-element-media-controls-playPauseButton .micromag-element-media-controls-icon{display:block;width:40%;height:40%;-webkit-transform:translateX(5%);-ms-transform:translateX(5%);transform:translateX(5%)}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton{visibility:hidden;position:absolute;top:50%;right:0;width:40px;height:40px;margin-top:-20px}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton .micromag-element-media-controls-icon{display:block;width:90%;height:90%}.micromag-element-media-controls-container .micromag-element-media-controls-muteButton:after{content:"";display:none;position:absolute;top:0;left:50%;width:2px;height:100%;margin-left:-1px;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);background-color:#fff}.micromag-element-media-controls-container.micromag-element-media-controls-playing .micromag-element-media-controls-playPauseButton .micromag-element-media-controls-icon{-webkit-transform:none;-ms-transform:none;transform:none}.micromag-element-media-controls-container.micromag-element-media-controls-muted .micromag-element-media-controls-muteButton{visibility:visible}.micromag-element-media-controls-container.micromag-element-media-controls-muted .micromag-element-media-controls-muteButton:after{display:block}.micromag-element-media-controls-container.micromag-element-media-controls-withPlayPause .micromag-element-media-controls-playPauseButton{visibility:visible}.micromag-element-quote-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-quote-container em,.micromag-element-quote-container i{font-style:italic}.micromag-element-quote-container b,.micromag-element-quote-container strong{font-weight:700}.micromag-element-quote-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-quote-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-quote-container{line-height:1.3}.micromag-element-quote-container h2{font-size:2em}.micromag-element-quote-container h3{font-size:1.75em}.micromag-element-quote-container h4{font-size:1.5em}.micromag-element-quote-container blockquote{padding:0 0 0 1em}.micromag-element-quote-container{margin:0;padding:0}.micromag-element-quote-container.micromag-element-quote-showEmpty{display:inline-block;width:300px;height:80px;border:2px dashed #343434;color:#343434}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{scrollbar-width:none}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable::-webkit-scrollbar{display:none}.micromag-element-scroll-container{position:relative;height:100%;min-height:inherit;margin:0 auto}.micromag-element-scroll-container .micromag-element-scroll-scrollable{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;min-height:inherit}.micromag-element-scroll-container .micromag-element-scroll-arrowContainer{position:absolute;bottom:0;left:0;width:100%;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;opacity:0;text-align:center;pointer-events:none}.micromag-element-scroll-container .micromag-element-scroll-arrow{display:inline-block;width:20px;height:20px;-webkit-animation:micromag-element-scroll-upAndDown .75s ease-in-out infinite alternate;animation:micromag-element-scroll-upAndDown .75s ease-in-out infinite alternate;color:#fff}.micromag-element-scroll-container .micromag-element-scroll-arrow path{stroke-width:20;stroke:#1c1c1c}.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{overflow-x:hidden;overflow-y:auto}.micromag-element-scroll-container.micromag-element-scroll-withScroll.micromag-element-scroll-containOverscroll .micromag-element-scroll-scrollable,.micromag-element-scroll-container.micromag-element-scroll-withScroll .micromag-element-scroll-scrollable{-ms-scroll-chaining:none;overscroll-behavior:contain}.micromag-element-scroll-container.micromag-element-scroll-top .micromag-element-scroll-scrollee{margin-bottom:auto}.micromag-element-scroll-container.micromag-element-scroll-middle .micromag-element-scroll-scrollee{margin:auto 0}.micromag-element-scroll-container.micromag-element-scroll-bottom .micromag-element-scroll-scrollee{margin-top:auto}.micromag-element-scroll-container.micromag-element-scroll-withArrow .micromag-element-scroll-arrowContainer{opacity:1}@-webkit-keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes micromag-element-scroll-upAndDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.micromag-element-stack-spacer-container{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-element-stack-spacer-container.micromag-element-stack-spacer-hasSize{-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0}.micromag-element-stack-container{display:-webkit-flex;display:-ms-flexbox;display:flex}.micromag-element-text-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-text-container em,.micromag-element-text-container i{font-style:italic}.micromag-element-text-container b,.micromag-element-text-container strong{font-weight:700}.micromag-element-text-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-text-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-text-container{line-height:1.3}.micromag-element-text-container h2{font-size:2em}.micromag-element-text-container h3{font-size:1.75em}.micromag-element-text-container h4{font-size:1.5em}.micromag-element-text-container blockquote{padding:0 0 0 1em}.micromag-element-text-container{margin:0;padding:0}.micromag-element-text-container.micromag-element-text-showEmpty{display:inline-block;width:300px;height:80px;border:2px dashed #343434;color:#343434}.micromag-element-text-container.micromag-element-text-withLineClamp{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.micromag-element-text-input-container{font-family:Helvetica,Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.1}.micromag-element-text-input-container em,.micromag-element-text-input-container i{font-style:italic}.micromag-element-text-input-container b,.micromag-element-text-input-container strong{font-weight:700}.micromag-element-text-input-container p{margin-top:.5em;margin-bottom:.5em}.micromag-element-text-input-container mark{padding:0;-webkit-box-decoration-break:clone;box-decoration-break:clone}.micromag-element-text-input-container{line-height:1.3}.micromag-element-text-input-container h2{font-size:2em}.micromag-element-text-input-container h3{font-size:1.75em}.micromag-element-text-input-container h4{font-size:1.5em}.micromag-element-text-input-container blockquote{padding:0 0 0 1em}.micromag-element-text-input-container{margin:0;padding:0}.micromag-element-text-input-element{border:0;outline:0;background-color:hsla(0,0%,100%,.1)}.micromag-element-video-container.micromag-element-video-withSize .micromag-element-video-video{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-element-video-container{position:relative}.micromag-element-video-container .micromag-element-video-video{display:block;width:100%}.micromag-element-visual-container{position:relative;overflow:hidden}.micromag-element-visual-container .micromag-element-visual-videoContainer{position:absolute;overflow:hidden}.sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;-webkit-clip-path:inset(50%);clip-path:inset(50%)}
|
package/es/index.js
CHANGED
|
@@ -12,15 +12,15 @@ import { ScreenSizeProvider, ViewerProvider, useRoutes, useRoutePush, GoogleKeys
|
|
|
12
12
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
14
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
15
|
-
import { Button, ScreenPreview, Screen, Meta, FontFaces } from '@micromag/core/components';
|
|
16
|
-
import { useDocumentEvent, useParsedStory, useLoadedFonts, useTrackScreenView, useTrackEvent, useScreenSizeFromElement, useResizeObserver, useFullscreen } from '@micromag/core/hooks';
|
|
17
|
-
import { getStyleFromColor, getStyleFromText, getDeviceScreens } from '@micromag/core/utils';
|
|
18
15
|
import { useSpring, config } from '@react-spring/core';
|
|
19
16
|
import { animated } from '@react-spring/web';
|
|
20
17
|
import { useDrag } from '@use-gesture/react';
|
|
21
18
|
import classNames from 'classnames';
|
|
22
19
|
import { Helmet } from 'react-helmet';
|
|
23
20
|
import { useIntl, FormattedMessage } from 'react-intl';
|
|
21
|
+
import { Screen, Button, ScreenPreview, Meta, FontFaces } from '@micromag/core/components';
|
|
22
|
+
import { useDocumentEvent, useParsedStory, useLoadedFonts, useTrackScreenView, useTrackEvent, useScreenSizeFromElement, useResizeObserver, useFullscreen } from '@micromag/core/hooks';
|
|
23
|
+
import { getStyleFromColor, getStyleFromText, getDeviceScreens } from '@micromag/core/utils';
|
|
24
24
|
import { faTimes, faShare, faCompress, faExpand } from '@fortawesome/free-solid-svg-icons';
|
|
25
25
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
26
26
|
import Scroll from '@micromag/element-scroll';
|
|
@@ -33,17 +33,73 @@ var routes = PropTypes.shape({
|
|
|
33
33
|
|
|
34
34
|
var styles$6 = {"container":"micromag-viewer-container","menuPreview":"micromag-viewer-menuPreview","menuPreviewContainer":"micromag-viewer-menuPreviewContainer","screen":"micromag-viewer-screen","screenInner":"micromag-viewer-screenInner","content":"micromag-viewer-content","menuDotsContainer":"micromag-viewer-menuDotsContainer","menuDots":"micromag-viewer-menuDots","current":"micromag-viewer-current","landscape":"micromag-viewer-landscape","hideMenu":"micromag-viewer-hideMenu","ready":"micromag-viewer-ready"};
|
|
35
35
|
|
|
36
|
-
var styles$5 = {"container":"micromag-viewer-
|
|
37
|
-
|
|
38
|
-
var styles$4 = {};
|
|
36
|
+
var styles$5 = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
39
37
|
|
|
40
38
|
var propTypes$8 = {
|
|
39
|
+
screen: PropTypes$1.screenComponent,
|
|
40
|
+
renderContext: PropTypes$1.renderContext,
|
|
41
|
+
current: PropTypes.bool,
|
|
42
|
+
active: PropTypes.bool,
|
|
43
|
+
onPrevious: PropTypes.func,
|
|
44
|
+
onNext: PropTypes.func,
|
|
45
|
+
onEnableInteraction: PropTypes.func,
|
|
46
|
+
onDisableInteraction: PropTypes.func,
|
|
47
|
+
getMediaRef: PropTypes.func
|
|
48
|
+
};
|
|
49
|
+
var defaultProps$8 = {
|
|
50
|
+
screen: null,
|
|
51
|
+
renderContext: null,
|
|
52
|
+
current: false,
|
|
53
|
+
active: true,
|
|
54
|
+
onPrevious: null,
|
|
55
|
+
onNext: null,
|
|
56
|
+
onEnableInteraction: null,
|
|
57
|
+
onDisableInteraction: null,
|
|
58
|
+
getMediaRef: null
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var ViewerScreen = function ViewerScreen(_ref) {
|
|
62
|
+
var _ref2;
|
|
63
|
+
|
|
64
|
+
var screen = _ref.screen,
|
|
65
|
+
renderContext = _ref.renderContext,
|
|
66
|
+
active = _ref.active,
|
|
67
|
+
current = _ref.current,
|
|
68
|
+
onPrevious = _ref.onPrevious,
|
|
69
|
+
onNext = _ref.onNext,
|
|
70
|
+
onEnableInteraction = _ref.onEnableInteraction,
|
|
71
|
+
onDisableInteraction = _ref.onDisableInteraction,
|
|
72
|
+
getMediaRef = _ref.getMediaRef;
|
|
73
|
+
return screen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: classNames([styles$5.container, (_ref2 = {}, _defineProperty(_ref2, styles$5.active, active), _defineProperty(_ref2, styles$5.current, current), _ref2)]),
|
|
75
|
+
"aria-hidden": current ? null : 'true'
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Screen, {
|
|
77
|
+
screen: screen,
|
|
78
|
+
renderContext: renderContext,
|
|
79
|
+
active: active,
|
|
80
|
+
current: current,
|
|
81
|
+
onPrevious: onPrevious,
|
|
82
|
+
onNext: onNext,
|
|
83
|
+
onEnableInteraction: onEnableInteraction,
|
|
84
|
+
onDisableInteraction: onDisableInteraction,
|
|
85
|
+
getMediaRef: getMediaRef
|
|
86
|
+
})) : null;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
ViewerScreen.propTypes = propTypes$8;
|
|
90
|
+
ViewerScreen.defaultProps = defaultProps$8;
|
|
91
|
+
|
|
92
|
+
var styles$4 = {"container":"micromag-viewer-menus-menu-dots-container","closeButton":"micromag-viewer-menus-menu-dots-closeButton","item":"micromag-viewer-menus-menu-dots-item","button":"micromag-viewer-menus-menu-dots-button","menuButton":"micromag-viewer-menus-menu-dots-menuButton","items":"micromag-viewer-menus-menu-dots-items","dot":"micromag-viewer-menus-menu-dots-dot","menu":"micromag-viewer-menus-menu-dots-menu","menuIcon":"micromag-viewer-menus-menu-dots-menuIcon","vertical":"micromag-viewer-menus-menu-dots-vertical","withShadow":"micromag-viewer-menus-menu-dots-withShadow"};
|
|
93
|
+
|
|
94
|
+
var styles$3 = {};
|
|
95
|
+
|
|
96
|
+
var propTypes$7 = {
|
|
41
97
|
size: PropTypes.number,
|
|
42
98
|
spacing: PropTypes.number,
|
|
43
99
|
color: PropTypes.string,
|
|
44
100
|
className: PropTypes.string
|
|
45
101
|
};
|
|
46
|
-
var defaultProps$
|
|
102
|
+
var defaultProps$7 = {
|
|
47
103
|
size: 100,
|
|
48
104
|
spacing: 8,
|
|
49
105
|
color: 'white',
|
|
@@ -57,7 +113,7 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
57
113
|
className = _ref.className;
|
|
58
114
|
var squareSize = (size - 2 * spacing) / 3;
|
|
59
115
|
return /*#__PURE__*/React.createElement("svg", {
|
|
60
|
-
className: classNames([styles$
|
|
116
|
+
className: classNames([styles$3.container, _defineProperty({}, className, className !== null)]),
|
|
61
117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
118
|
viewBox: "0 0 ".concat(size, " ").concat(size),
|
|
63
119
|
"aria-hidden": "true"
|
|
@@ -75,10 +131,10 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
75
131
|
}));
|
|
76
132
|
};
|
|
77
133
|
|
|
78
|
-
MenuIcon.propTypes = propTypes$
|
|
79
|
-
MenuIcon.defaultProps = defaultProps$
|
|
134
|
+
MenuIcon.propTypes = propTypes$7;
|
|
135
|
+
MenuIcon.defaultProps = defaultProps$7;
|
|
80
136
|
|
|
81
|
-
var propTypes$
|
|
137
|
+
var propTypes$6 = {
|
|
82
138
|
direction: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
83
139
|
withShadow: PropTypes.bool,
|
|
84
140
|
items: PropTypes$1.menuItems,
|
|
@@ -92,7 +148,7 @@ var propTypes$7 = {
|
|
|
92
148
|
onClose: PropTypes.func,
|
|
93
149
|
className: PropTypes.string
|
|
94
150
|
};
|
|
95
|
-
var defaultProps$
|
|
151
|
+
var defaultProps$6 = {
|
|
96
152
|
direction: 'horizontal',
|
|
97
153
|
withShadow: false,
|
|
98
154
|
items: [],
|
|
@@ -125,7 +181,7 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
125
181
|
|
|
126
182
|
var intl = useIntl();
|
|
127
183
|
return /*#__PURE__*/React.createElement("nav", {
|
|
128
|
-
className: classNames([styles$
|
|
184
|
+
className: classNames([styles$4.container, (_ref3 = {}, _defineProperty(_ref3, className, className !== null), _defineProperty(_ref3, styles$4.vertical, direction === 'vertical'), _defineProperty(_ref3, styles$4.withShadow, withShadow), _ref3)]),
|
|
129
185
|
"aria-label": intl.formatMessage({
|
|
130
186
|
id: "bLYuuN",
|
|
131
187
|
defaultMessage: [{
|
|
@@ -149,15 +205,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
149
205
|
total: items.length
|
|
150
206
|
})
|
|
151
207
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
152
|
-
className: styles$
|
|
208
|
+
className: styles$4.items
|
|
153
209
|
}, items.map(function (item, index) {
|
|
154
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
155
|
-
className: classNames([styles$
|
|
210
|
+
return (item === null || item === void 0 ? void 0 : item.parentId) === null ? /*#__PURE__*/React.createElement("li", {
|
|
211
|
+
className: classNames([styles$4.item, _defineProperty({}, styles$4.active, current === index)]),
|
|
156
212
|
key: "item-".concat(index),
|
|
157
213
|
"aria-hidden": "true"
|
|
158
214
|
}, /*#__PURE__*/React.createElement("button", {
|
|
159
215
|
type: "button",
|
|
160
|
-
className: styles$
|
|
216
|
+
className: styles$4.button,
|
|
161
217
|
onClick: function onClick() {
|
|
162
218
|
if (onClickItem !== null) {
|
|
163
219
|
onClickItem(index);
|
|
@@ -165,15 +221,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
165
221
|
},
|
|
166
222
|
tabIndex: "-1"
|
|
167
223
|
}, /*#__PURE__*/React.createElement("span", {
|
|
168
|
-
className: styles$
|
|
224
|
+
className: styles$4.dot,
|
|
169
225
|
style: {
|
|
170
226
|
backgroundColor: index <= current ? primary : secondary
|
|
171
227
|
}
|
|
172
|
-
})));
|
|
228
|
+
}))) : null;
|
|
173
229
|
}), /*#__PURE__*/React.createElement("li", {
|
|
174
|
-
className: styles$
|
|
230
|
+
className: styles$4.menu
|
|
175
231
|
}, /*#__PURE__*/React.createElement(MenuIcon, {
|
|
176
|
-
className: styles$
|
|
232
|
+
className: styles$4.menuIcon,
|
|
177
233
|
color: primary
|
|
178
234
|
}), /*#__PURE__*/React.createElement("button", {
|
|
179
235
|
type: "button",
|
|
@@ -191,20 +247,20 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
191
247
|
"value": "Menu"
|
|
192
248
|
}]
|
|
193
249
|
}),
|
|
194
|
-
className: styles$
|
|
250
|
+
className: styles$4.menuButton,
|
|
195
251
|
onClick: function onClick() {
|
|
196
252
|
if (onClickItem !== null) {
|
|
197
253
|
onClickItem(null);
|
|
198
254
|
}
|
|
199
255
|
}
|
|
200
256
|
})), closeable ? /*#__PURE__*/React.createElement("li", {
|
|
201
|
-
className: styles$
|
|
257
|
+
className: styles$4.closeButton,
|
|
202
258
|
style: {
|
|
203
259
|
color: primary
|
|
204
260
|
}
|
|
205
261
|
}, /*#__PURE__*/React.createElement("button", {
|
|
206
262
|
type: "button",
|
|
207
|
-
className: styles$
|
|
263
|
+
className: styles$4.closeButton,
|
|
208
264
|
onClick: onClose,
|
|
209
265
|
title: intl.formatMessage({
|
|
210
266
|
id: "dj/p/q",
|
|
@@ -225,14 +281,14 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
225
281
|
}))) : null));
|
|
226
282
|
};
|
|
227
283
|
|
|
228
|
-
ViewerMenuDots.propTypes = propTypes$
|
|
229
|
-
ViewerMenuDots.defaultProps = defaultProps$
|
|
284
|
+
ViewerMenuDots.propTypes = propTypes$6;
|
|
285
|
+
ViewerMenuDots.defaultProps = defaultProps$6;
|
|
230
286
|
|
|
231
|
-
var styles$
|
|
287
|
+
var styles$2 = {"container":"micromag-viewer-menus-menu-preview-container","screenButton":"micromag-viewer-menus-menu-preview-screenButton","activeScreenBorder":"micromag-viewer-menus-menu-preview-activeScreenBorder","itemContent":"micromag-viewer-menus-menu-preview-itemContent","scroll":"micromag-viewer-menus-menu-preview-scroll","header":"micromag-viewer-menus-menu-preview-header","button":"micromag-viewer-menus-menu-preview-button","shareButton":"micromag-viewer-menus-menu-preview-shareButton","disabled":"micromag-viewer-menus-menu-preview-disabled","icon":"micromag-viewer-menus-menu-preview-icon","buttons":"micromag-viewer-menus-menu-preview-buttons","organisation":"micromag-viewer-menus-menu-preview-organisation","title":"micromag-viewer-menus-menu-preview-title","content":"micromag-viewer-menus-menu-preview-content","nav":"micromag-viewer-menus-menu-preview-nav","item":"micromag-viewer-menus-menu-preview-item","items":"micromag-viewer-menus-menu-preview-items","active":"micromag-viewer-menus-menu-preview-active","screenContainer":"micromag-viewer-menus-menu-preview-screenContainer","screenContent":"micromag-viewer-menus-menu-preview-screenContent"};
|
|
232
288
|
|
|
233
|
-
var styles$
|
|
289
|
+
var styles$1 = {"container":"micromag-viewer-partials-share-modal-container","content":"micromag-viewer-partials-share-modal-content","opened":"micromag-viewer-partials-share-modal-opened"};
|
|
234
290
|
|
|
235
|
-
var propTypes$
|
|
291
|
+
var propTypes$5 = {
|
|
236
292
|
url: PropTypes.string,
|
|
237
293
|
title: PropTypes.string,
|
|
238
294
|
opened: PropTypes.bool,
|
|
@@ -240,7 +296,7 @@ var propTypes$6 = {
|
|
|
240
296
|
onShare: PropTypes.func,
|
|
241
297
|
onCancel: PropTypes.func
|
|
242
298
|
};
|
|
243
|
-
var defaultProps$
|
|
299
|
+
var defaultProps$5 = {
|
|
244
300
|
url: null,
|
|
245
301
|
title: null,
|
|
246
302
|
opened: false,
|
|
@@ -293,13 +349,13 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
293
349
|
}, [opened, onCancel]);
|
|
294
350
|
useDocumentEvent('click', onDocumentClick, opened);
|
|
295
351
|
return /*#__PURE__*/React.createElement("div", {
|
|
296
|
-
className: classNames([styles$
|
|
352
|
+
className: classNames([styles$1.container, (_ref2 = {}, _defineProperty(_ref2, className, className), _defineProperty(_ref2, styles$1.opened, opened), _ref2)]),
|
|
297
353
|
ref: containerRef,
|
|
298
354
|
"aria-hidden": opened ? null : '-1'
|
|
299
355
|
}, /*#__PURE__*/React.createElement("div", {
|
|
300
|
-
className: styles$
|
|
356
|
+
className: styles$1.content
|
|
301
357
|
}, /*#__PURE__*/React.createElement("div", {
|
|
302
|
-
className: styles$
|
|
358
|
+
className: styles$1.buttons
|
|
303
359
|
}, /*#__PURE__*/React.createElement(FacebookShareButton, Object.assign({}, shareButtonProps, {
|
|
304
360
|
quote: title,
|
|
305
361
|
beforeOnClick: function beforeOnClick() {
|
|
@@ -324,12 +380,12 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
324
380
|
}), /*#__PURE__*/React.createElement(EmailIcon, shareIconProps)))));
|
|
325
381
|
};
|
|
326
382
|
|
|
327
|
-
ShareModal.propTypes = propTypes$
|
|
328
|
-
ShareModal.defaultProps = defaultProps$
|
|
383
|
+
ShareModal.propTypes = propTypes$5;
|
|
384
|
+
ShareModal.defaultProps = defaultProps$5;
|
|
329
385
|
|
|
330
|
-
var styles
|
|
386
|
+
var styles = {"container":"micromag-viewer-partials-share-button-container","shareModal":"micromag-viewer-partials-share-button-shareModal"};
|
|
331
387
|
|
|
332
|
-
var propTypes$
|
|
388
|
+
var propTypes$4 = {
|
|
333
389
|
title: PropTypes.string,
|
|
334
390
|
url: PropTypes.string,
|
|
335
391
|
className: PropTypes.string,
|
|
@@ -338,7 +394,7 @@ var propTypes$5 = {
|
|
|
338
394
|
children: PropTypes.node,
|
|
339
395
|
focusable: PropTypes.bool
|
|
340
396
|
};
|
|
341
|
-
var defaultProps$
|
|
397
|
+
var defaultProps$4 = {
|
|
342
398
|
title: null,
|
|
343
399
|
url: null,
|
|
344
400
|
className: null,
|
|
@@ -379,7 +435,7 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
379
435
|
setStoryShareModalOpened(false);
|
|
380
436
|
}, [setStoryShareModalOpened]);
|
|
381
437
|
return /*#__PURE__*/React.createElement("div", {
|
|
382
|
-
className: classNames([styles
|
|
438
|
+
className: classNames([styles.container, _defineProperty({}, className, className !== null)])
|
|
383
439
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
384
440
|
className: classNames([_defineProperty({}, buttonClassName, buttonClassName !== null)]),
|
|
385
441
|
onClick: onShareIconClick,
|
|
@@ -399,7 +455,7 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
399
455
|
}),
|
|
400
456
|
focusable: focusable
|
|
401
457
|
}, children), /*#__PURE__*/React.createElement(ShareModal, {
|
|
402
|
-
className: styles
|
|
458
|
+
className: styles.shareModal,
|
|
403
459
|
opened: storyShareModalOpened,
|
|
404
460
|
title: title,
|
|
405
461
|
url: url,
|
|
@@ -408,10 +464,10 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
408
464
|
}));
|
|
409
465
|
};
|
|
410
466
|
|
|
411
|
-
ShareButton.propTypes = propTypes$
|
|
412
|
-
ShareButton.defaultProps = defaultProps$
|
|
467
|
+
ShareButton.propTypes = propTypes$4;
|
|
468
|
+
ShareButton.defaultProps = defaultProps$4;
|
|
413
469
|
|
|
414
|
-
var propTypes$
|
|
470
|
+
var propTypes$3 = {
|
|
415
471
|
viewerTheme: PropTypes$1.viewerTheme,
|
|
416
472
|
screenWidth: PropTypes.number,
|
|
417
473
|
title: PropTypes.string,
|
|
@@ -428,7 +484,7 @@ var propTypes$4 = {
|
|
|
428
484
|
fullscreenEnabled: PropTypes.bool,
|
|
429
485
|
className: PropTypes.string
|
|
430
486
|
};
|
|
431
|
-
var defaultProps$
|
|
487
|
+
var defaultProps$3 = {
|
|
432
488
|
viewerTheme: null,
|
|
433
489
|
screenWidth: null,
|
|
434
490
|
title: null,
|
|
@@ -446,7 +502,7 @@ var defaultProps$4 = {
|
|
|
446
502
|
className: null
|
|
447
503
|
};
|
|
448
504
|
|
|
449
|
-
function ViewerMenuPreview(_ref) {
|
|
505
|
+
var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
450
506
|
var viewerTheme = _ref.viewerTheme,
|
|
451
507
|
screenWidth = _ref.screenWidth,
|
|
452
508
|
title = _ref.title,
|
|
@@ -556,36 +612,36 @@ function ViewerMenuPreview(_ref) {
|
|
|
556
612
|
setScrolledBottom(false);
|
|
557
613
|
}, [setScrolledBottom]);
|
|
558
614
|
return hasSize ? /*#__PURE__*/React.createElement("div", Object.assign({
|
|
559
|
-
className: classNames([styles$
|
|
615
|
+
className: classNames([styles$2.container, _defineProperty({}, className, className !== null)]),
|
|
560
616
|
style: _objectSpread(_objectSpread(_objectSpread({}, backgroundColorStyle), brandImageStyle), {}, {
|
|
561
617
|
width: screenWidth
|
|
562
618
|
}),
|
|
563
619
|
"aria-hidden": focusable ? null : 'true'
|
|
564
620
|
}, dragBind()), /*#__PURE__*/React.createElement("div", {
|
|
565
|
-
className: styles$
|
|
621
|
+
className: styles$2.header
|
|
566
622
|
}, brandLogoUrl !== null ? /*#__PURE__*/React.createElement("div", {
|
|
567
|
-
className: styles$
|
|
623
|
+
className: styles$2.organisation,
|
|
568
624
|
style: {
|
|
569
625
|
backgroundImage: "url(".concat(brandLogoUrl, ")")
|
|
570
626
|
}
|
|
571
627
|
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
572
|
-
className: styles$
|
|
628
|
+
className: styles$2.title,
|
|
573
629
|
style: titleStyle
|
|
574
630
|
}, title), /*#__PURE__*/React.createElement("div", {
|
|
575
|
-
className: styles$
|
|
631
|
+
className: styles$2.buttons,
|
|
576
632
|
style: colorSecondaryColorStyle
|
|
577
633
|
}, /*#__PURE__*/React.createElement(ShareButton, {
|
|
578
|
-
className: styles$
|
|
579
|
-
buttonClassName: styles$
|
|
634
|
+
className: styles$2.shareButton,
|
|
635
|
+
buttonClassName: styles$2.button,
|
|
580
636
|
onShare: onShare,
|
|
581
637
|
url: shareUrl,
|
|
582
638
|
title: title,
|
|
583
639
|
focusable: focusable
|
|
584
640
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
585
|
-
className: styles$
|
|
641
|
+
className: styles$2.icon,
|
|
586
642
|
icon: faShare
|
|
587
643
|
})), fullscreenEnabled ? /*#__PURE__*/React.createElement(Button, {
|
|
588
|
-
className: styles$
|
|
644
|
+
className: styles$2.button,
|
|
589
645
|
onClick: toggleFullscreen,
|
|
590
646
|
title: intl.formatMessage({
|
|
591
647
|
id: "AuxqcG",
|
|
@@ -603,10 +659,10 @@ function ViewerMenuPreview(_ref) {
|
|
|
603
659
|
}),
|
|
604
660
|
focusable: focusable
|
|
605
661
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
606
|
-
className: styles$
|
|
662
|
+
className: styles$2.icon,
|
|
607
663
|
icon: fullscreenActive ? faCompress : faExpand
|
|
608
664
|
})) : null, /*#__PURE__*/React.createElement(Button, {
|
|
609
|
-
className: styles$
|
|
665
|
+
className: styles$2.button,
|
|
610
666
|
onClick: onClose,
|
|
611
667
|
title: intl.formatMessage({
|
|
612
668
|
id: "dj/p/q",
|
|
@@ -624,18 +680,18 @@ function ViewerMenuPreview(_ref) {
|
|
|
624
680
|
}),
|
|
625
681
|
focusable: focusable
|
|
626
682
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
627
|
-
className: styles$
|
|
683
|
+
className: styles$2.icon,
|
|
628
684
|
icon: faTimes
|
|
629
685
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
630
|
-
className: styles$
|
|
686
|
+
className: styles$2.content
|
|
631
687
|
}, /*#__PURE__*/React.createElement(Scroll, {
|
|
632
|
-
className: styles$
|
|
688
|
+
className: styles$2.scroll,
|
|
633
689
|
onScrolledBottom: onScrolledBottom,
|
|
634
690
|
onScrolledNotBottom: onScrolledNotBottom
|
|
635
691
|
}, /*#__PURE__*/React.createElement("nav", {
|
|
636
|
-
className: styles$
|
|
692
|
+
className: styles$2.nav
|
|
637
693
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
638
|
-
className: styles$
|
|
694
|
+
className: styles$2.items
|
|
639
695
|
}, items.map(function (item, index) {
|
|
640
696
|
var screenIndexLabel = intl.formatMessage({
|
|
641
697
|
id: "LkVfwW",
|
|
@@ -657,20 +713,20 @@ function ViewerMenuPreview(_ref) {
|
|
|
657
713
|
}]
|
|
658
714
|
})) : '';
|
|
659
715
|
var screenAriaLabel = screenIndexLabel + isCurrentScreenLabel;
|
|
660
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
661
|
-
className: classNames([styles$
|
|
716
|
+
return item.parentId === null ? /*#__PURE__*/React.createElement("li", {
|
|
717
|
+
className: classNames([styles$2.item, _defineProperty({}, styles$2.active, current === index)]),
|
|
662
718
|
key: "item-".concat(index),
|
|
663
719
|
style: {
|
|
664
720
|
paddingBottom: screenSizeRatio,
|
|
665
721
|
width: "".concat(100 / thumbsPerLine, "%")
|
|
666
722
|
}
|
|
667
723
|
}, /*#__PURE__*/React.createElement("div", {
|
|
668
|
-
className: styles$
|
|
724
|
+
className: styles$2.itemContent
|
|
669
725
|
}, /*#__PURE__*/React.createElement("div", {
|
|
670
|
-
className: styles$
|
|
726
|
+
className: styles$2.screenContainer,
|
|
671
727
|
ref: index === 0 ? firstScreenContainerRef : null
|
|
672
728
|
}, /*#__PURE__*/React.createElement("div", {
|
|
673
|
-
className: styles$
|
|
729
|
+
className: styles$2.screenContent,
|
|
674
730
|
style: thumbSize !== null ? {
|
|
675
731
|
width: screenWidth,
|
|
676
732
|
height: screenRatioHeight,
|
|
@@ -683,11 +739,11 @@ function ViewerMenuPreview(_ref) {
|
|
|
683
739
|
screen: item,
|
|
684
740
|
focusable: false
|
|
685
741
|
})), current === index ? /*#__PURE__*/React.createElement("div", {
|
|
686
|
-
className: styles$
|
|
742
|
+
className: styles$2.activeScreenBorder,
|
|
687
743
|
style: borderPrimaryColorStyle
|
|
688
744
|
}) : null)), /*#__PURE__*/React.createElement("button", {
|
|
689
745
|
type: "button",
|
|
690
|
-
className: styles$
|
|
746
|
+
className: styles$2.screenButton,
|
|
691
747
|
onClick: function onClick() {
|
|
692
748
|
onClickItem(index);
|
|
693
749
|
},
|
|
@@ -698,68 +754,12 @@ function ViewerMenuPreview(_ref) {
|
|
|
698
754
|
}
|
|
699
755
|
},
|
|
700
756
|
tabIndex: focusable ? '0' : '-1'
|
|
701
|
-
}));
|
|
757
|
+
})) : null;
|
|
702
758
|
})))))) : null;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
ViewerMenuPreview.propTypes = propTypes$4;
|
|
706
|
-
ViewerMenuPreview.defaultProps = defaultProps$4;
|
|
707
|
-
|
|
708
|
-
var styles = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
709
|
-
|
|
710
|
-
var propTypes$3 = {
|
|
711
|
-
screen: PropTypes$1.screenComponent,
|
|
712
|
-
renderContext: PropTypes$1.renderContext,
|
|
713
|
-
current: PropTypes.bool,
|
|
714
|
-
active: PropTypes.bool,
|
|
715
|
-
onPrevious: PropTypes.func,
|
|
716
|
-
onNext: PropTypes.func,
|
|
717
|
-
onEnableInteraction: PropTypes.func,
|
|
718
|
-
onDisableInteraction: PropTypes.func,
|
|
719
|
-
getMediaRef: PropTypes.func
|
|
720
|
-
};
|
|
721
|
-
var defaultProps$3 = {
|
|
722
|
-
screen: null,
|
|
723
|
-
renderContext: null,
|
|
724
|
-
current: false,
|
|
725
|
-
active: true,
|
|
726
|
-
onPrevious: null,
|
|
727
|
-
onNext: null,
|
|
728
|
-
onEnableInteraction: null,
|
|
729
|
-
onDisableInteraction: null,
|
|
730
|
-
getMediaRef: null
|
|
731
759
|
};
|
|
732
760
|
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
var screen = _ref.screen,
|
|
737
|
-
renderContext = _ref.renderContext,
|
|
738
|
-
active = _ref.active,
|
|
739
|
-
current = _ref.current,
|
|
740
|
-
onPrevious = _ref.onPrevious,
|
|
741
|
-
onNext = _ref.onNext,
|
|
742
|
-
onEnableInteraction = _ref.onEnableInteraction,
|
|
743
|
-
onDisableInteraction = _ref.onDisableInteraction,
|
|
744
|
-
getMediaRef = _ref.getMediaRef;
|
|
745
|
-
return screen !== null ? /*#__PURE__*/React.createElement("div", {
|
|
746
|
-
className: classNames([styles.container, (_ref2 = {}, _defineProperty(_ref2, styles.active, active), _defineProperty(_ref2, styles.current, current), _ref2)]),
|
|
747
|
-
"aria-hidden": current ? null : 'true'
|
|
748
|
-
}, /*#__PURE__*/React.createElement(Screen, {
|
|
749
|
-
screen: screen,
|
|
750
|
-
renderContext: renderContext,
|
|
751
|
-
active: active,
|
|
752
|
-
current: current,
|
|
753
|
-
onPrevious: onPrevious,
|
|
754
|
-
onNext: onNext,
|
|
755
|
-
onEnableInteraction: onEnableInteraction,
|
|
756
|
-
onDisableInteraction: onDisableInteraction,
|
|
757
|
-
getMediaRef: getMediaRef
|
|
758
|
-
})) : null;
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
ViewerScreen.propTypes = propTypes$3;
|
|
762
|
-
ViewerScreen.defaultProps = defaultProps$3;
|
|
761
|
+
ViewerMenuPreview.propTypes = propTypes$3;
|
|
762
|
+
ViewerMenuPreview.defaultProps = defaultProps$3;
|
|
763
763
|
|
|
764
764
|
var propTypes$2 = {
|
|
765
765
|
story: PropTypes$1.story,
|
|
@@ -821,7 +821,7 @@ var defaultProps$2 = {
|
|
|
821
821
|
className: null
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
function Viewer(_ref) {
|
|
824
|
+
var Viewer = function Viewer(_ref) {
|
|
825
825
|
var _ref15;
|
|
826
826
|
|
|
827
827
|
var story = _ref.story,
|
|
@@ -1454,7 +1454,7 @@ function Viewer(_ref) {
|
|
|
1454
1454
|
}]
|
|
1455
1455
|
})) : null);
|
|
1456
1456
|
})) : null)));
|
|
1457
|
-
}
|
|
1457
|
+
};
|
|
1458
1458
|
|
|
1459
1459
|
Viewer.propTypes = propTypes$2;
|
|
1460
1460
|
Viewer.defaultProps = defaultProps$2;
|
package/lib/index.js
CHANGED
|
@@ -16,15 +16,15 @@ var contexts = require('@micromag/core/contexts');
|
|
|
16
16
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
17
17
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
18
18
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
19
|
-
var components = require('@micromag/core/components');
|
|
20
|
-
var hooks = require('@micromag/core/hooks');
|
|
21
|
-
var utils = require('@micromag/core/utils');
|
|
22
19
|
var core$1 = require('@react-spring/core');
|
|
23
20
|
var web = require('@react-spring/web');
|
|
24
21
|
var react = require('@use-gesture/react');
|
|
25
22
|
var classNames = require('classnames');
|
|
26
23
|
var reactHelmet = require('react-helmet');
|
|
27
24
|
var reactIntl = require('react-intl');
|
|
25
|
+
var components = require('@micromag/core/components');
|
|
26
|
+
var hooks = require('@micromag/core/hooks');
|
|
27
|
+
var utils = require('@micromag/core/utils');
|
|
28
28
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
29
29
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
30
30
|
var Scroll = require('@micromag/element-scroll');
|
|
@@ -50,17 +50,73 @@ var routes = PropTypes__default["default"].shape({
|
|
|
50
50
|
|
|
51
51
|
var styles$6 = {"container":"micromag-viewer-container","menuPreview":"micromag-viewer-menuPreview","menuPreviewContainer":"micromag-viewer-menuPreviewContainer","screen":"micromag-viewer-screen","screenInner":"micromag-viewer-screenInner","content":"micromag-viewer-content","menuDotsContainer":"micromag-viewer-menuDotsContainer","menuDots":"micromag-viewer-menuDots","current":"micromag-viewer-current","landscape":"micromag-viewer-landscape","hideMenu":"micromag-viewer-hideMenu","ready":"micromag-viewer-ready"};
|
|
52
52
|
|
|
53
|
-
var styles$5 = {"container":"micromag-viewer-
|
|
54
|
-
|
|
55
|
-
var styles$4 = {};
|
|
53
|
+
var styles$5 = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
56
54
|
|
|
57
55
|
var propTypes$8 = {
|
|
56
|
+
screen: core.PropTypes.screenComponent,
|
|
57
|
+
renderContext: core.PropTypes.renderContext,
|
|
58
|
+
current: PropTypes__default["default"].bool,
|
|
59
|
+
active: PropTypes__default["default"].bool,
|
|
60
|
+
onPrevious: PropTypes__default["default"].func,
|
|
61
|
+
onNext: PropTypes__default["default"].func,
|
|
62
|
+
onEnableInteraction: PropTypes__default["default"].func,
|
|
63
|
+
onDisableInteraction: PropTypes__default["default"].func,
|
|
64
|
+
getMediaRef: PropTypes__default["default"].func
|
|
65
|
+
};
|
|
66
|
+
var defaultProps$8 = {
|
|
67
|
+
screen: null,
|
|
68
|
+
renderContext: null,
|
|
69
|
+
current: false,
|
|
70
|
+
active: true,
|
|
71
|
+
onPrevious: null,
|
|
72
|
+
onNext: null,
|
|
73
|
+
onEnableInteraction: null,
|
|
74
|
+
onDisableInteraction: null,
|
|
75
|
+
getMediaRef: null
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var ViewerScreen = function ViewerScreen(_ref) {
|
|
79
|
+
var _ref2;
|
|
80
|
+
|
|
81
|
+
var screen = _ref.screen,
|
|
82
|
+
renderContext = _ref.renderContext,
|
|
83
|
+
active = _ref.active,
|
|
84
|
+
current = _ref.current,
|
|
85
|
+
onPrevious = _ref.onPrevious,
|
|
86
|
+
onNext = _ref.onNext,
|
|
87
|
+
onEnableInteraction = _ref.onEnableInteraction,
|
|
88
|
+
onDisableInteraction = _ref.onDisableInteraction,
|
|
89
|
+
getMediaRef = _ref.getMediaRef;
|
|
90
|
+
return screen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
91
|
+
className: classNames__default["default"]([styles$5.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles$5.active, active), _defineProperty__default["default"](_ref2, styles$5.current, current), _ref2)]),
|
|
92
|
+
"aria-hidden": current ? null : 'true'
|
|
93
|
+
}, /*#__PURE__*/React__default["default"].createElement(components.Screen, {
|
|
94
|
+
screen: screen,
|
|
95
|
+
renderContext: renderContext,
|
|
96
|
+
active: active,
|
|
97
|
+
current: current,
|
|
98
|
+
onPrevious: onPrevious,
|
|
99
|
+
onNext: onNext,
|
|
100
|
+
onEnableInteraction: onEnableInteraction,
|
|
101
|
+
onDisableInteraction: onDisableInteraction,
|
|
102
|
+
getMediaRef: getMediaRef
|
|
103
|
+
})) : null;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
ViewerScreen.propTypes = propTypes$8;
|
|
107
|
+
ViewerScreen.defaultProps = defaultProps$8;
|
|
108
|
+
|
|
109
|
+
var styles$4 = {"container":"micromag-viewer-menus-menu-dots-container","closeButton":"micromag-viewer-menus-menu-dots-closeButton","item":"micromag-viewer-menus-menu-dots-item","button":"micromag-viewer-menus-menu-dots-button","menuButton":"micromag-viewer-menus-menu-dots-menuButton","items":"micromag-viewer-menus-menu-dots-items","dot":"micromag-viewer-menus-menu-dots-dot","menu":"micromag-viewer-menus-menu-dots-menu","menuIcon":"micromag-viewer-menus-menu-dots-menuIcon","vertical":"micromag-viewer-menus-menu-dots-vertical","withShadow":"micromag-viewer-menus-menu-dots-withShadow"};
|
|
110
|
+
|
|
111
|
+
var styles$3 = {};
|
|
112
|
+
|
|
113
|
+
var propTypes$7 = {
|
|
58
114
|
size: PropTypes__default["default"].number,
|
|
59
115
|
spacing: PropTypes__default["default"].number,
|
|
60
116
|
color: PropTypes__default["default"].string,
|
|
61
117
|
className: PropTypes__default["default"].string
|
|
62
118
|
};
|
|
63
|
-
var defaultProps$
|
|
119
|
+
var defaultProps$7 = {
|
|
64
120
|
size: 100,
|
|
65
121
|
spacing: 8,
|
|
66
122
|
color: 'white',
|
|
@@ -74,7 +130,7 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
74
130
|
className = _ref.className;
|
|
75
131
|
var squareSize = (size - 2 * spacing) / 3;
|
|
76
132
|
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
77
|
-
className: classNames__default["default"]([styles$
|
|
133
|
+
className: classNames__default["default"]([styles$3.container, _defineProperty__default["default"]({}, className, className !== null)]),
|
|
78
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
79
135
|
viewBox: "0 0 ".concat(size, " ").concat(size),
|
|
80
136
|
"aria-hidden": "true"
|
|
@@ -92,10 +148,10 @@ var MenuIcon = function MenuIcon(_ref) {
|
|
|
92
148
|
}));
|
|
93
149
|
};
|
|
94
150
|
|
|
95
|
-
MenuIcon.propTypes = propTypes$
|
|
96
|
-
MenuIcon.defaultProps = defaultProps$
|
|
151
|
+
MenuIcon.propTypes = propTypes$7;
|
|
152
|
+
MenuIcon.defaultProps = defaultProps$7;
|
|
97
153
|
|
|
98
|
-
var propTypes$
|
|
154
|
+
var propTypes$6 = {
|
|
99
155
|
direction: PropTypes__default["default"].oneOf(['horizontal', 'vertical']),
|
|
100
156
|
withShadow: PropTypes__default["default"].bool,
|
|
101
157
|
items: core.PropTypes.menuItems,
|
|
@@ -109,7 +165,7 @@ var propTypes$7 = {
|
|
|
109
165
|
onClose: PropTypes__default["default"].func,
|
|
110
166
|
className: PropTypes__default["default"].string
|
|
111
167
|
};
|
|
112
|
-
var defaultProps$
|
|
168
|
+
var defaultProps$6 = {
|
|
113
169
|
direction: 'horizontal',
|
|
114
170
|
withShadow: false,
|
|
115
171
|
items: [],
|
|
@@ -142,7 +198,7 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
142
198
|
|
|
143
199
|
var intl = reactIntl.useIntl();
|
|
144
200
|
return /*#__PURE__*/React__default["default"].createElement("nav", {
|
|
145
|
-
className: classNames__default["default"]([styles$
|
|
201
|
+
className: classNames__default["default"]([styles$4.container, (_ref3 = {}, _defineProperty__default["default"](_ref3, className, className !== null), _defineProperty__default["default"](_ref3, styles$4.vertical, direction === 'vertical'), _defineProperty__default["default"](_ref3, styles$4.withShadow, withShadow), _ref3)]),
|
|
146
202
|
"aria-label": intl.formatMessage({
|
|
147
203
|
id: "bLYuuN",
|
|
148
204
|
defaultMessage: [{
|
|
@@ -166,15 +222,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
166
222
|
total: items.length
|
|
167
223
|
})
|
|
168
224
|
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
169
|
-
className: styles$
|
|
225
|
+
className: styles$4.items
|
|
170
226
|
}, items.map(function (item, index) {
|
|
171
|
-
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
172
|
-
className: classNames__default["default"]([styles$
|
|
227
|
+
return (item === null || item === void 0 ? void 0 : item.parentId) === null ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
228
|
+
className: classNames__default["default"]([styles$4.item, _defineProperty__default["default"]({}, styles$4.active, current === index)]),
|
|
173
229
|
key: "item-".concat(index),
|
|
174
230
|
"aria-hidden": "true"
|
|
175
231
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
176
232
|
type: "button",
|
|
177
|
-
className: styles$
|
|
233
|
+
className: styles$4.button,
|
|
178
234
|
onClick: function onClick() {
|
|
179
235
|
if (onClickItem !== null) {
|
|
180
236
|
onClickItem(index);
|
|
@@ -182,15 +238,15 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
182
238
|
},
|
|
183
239
|
tabIndex: "-1"
|
|
184
240
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
185
|
-
className: styles$
|
|
241
|
+
className: styles$4.dot,
|
|
186
242
|
style: {
|
|
187
243
|
backgroundColor: index <= current ? primary : secondary
|
|
188
244
|
}
|
|
189
|
-
})));
|
|
245
|
+
}))) : null;
|
|
190
246
|
}), /*#__PURE__*/React__default["default"].createElement("li", {
|
|
191
|
-
className: styles$
|
|
247
|
+
className: styles$4.menu
|
|
192
248
|
}, /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|
|
193
|
-
className: styles$
|
|
249
|
+
className: styles$4.menuIcon,
|
|
194
250
|
color: primary
|
|
195
251
|
}), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
196
252
|
type: "button",
|
|
@@ -208,20 +264,20 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
208
264
|
"value": "Menu"
|
|
209
265
|
}]
|
|
210
266
|
}),
|
|
211
|
-
className: styles$
|
|
267
|
+
className: styles$4.menuButton,
|
|
212
268
|
onClick: function onClick() {
|
|
213
269
|
if (onClickItem !== null) {
|
|
214
270
|
onClickItem(null);
|
|
215
271
|
}
|
|
216
272
|
}
|
|
217
273
|
})), closeable ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
218
|
-
className: styles$
|
|
274
|
+
className: styles$4.closeButton,
|
|
219
275
|
style: {
|
|
220
276
|
color: primary
|
|
221
277
|
}
|
|
222
278
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
223
279
|
type: "button",
|
|
224
|
-
className: styles$
|
|
280
|
+
className: styles$4.closeButton,
|
|
225
281
|
onClick: onClose,
|
|
226
282
|
title: intl.formatMessage({
|
|
227
283
|
id: "dj/p/q",
|
|
@@ -242,14 +298,14 @@ var ViewerMenuDots = function ViewerMenuDots(_ref) {
|
|
|
242
298
|
}))) : null));
|
|
243
299
|
};
|
|
244
300
|
|
|
245
|
-
ViewerMenuDots.propTypes = propTypes$
|
|
246
|
-
ViewerMenuDots.defaultProps = defaultProps$
|
|
301
|
+
ViewerMenuDots.propTypes = propTypes$6;
|
|
302
|
+
ViewerMenuDots.defaultProps = defaultProps$6;
|
|
247
303
|
|
|
248
|
-
var styles$
|
|
304
|
+
var styles$2 = {"container":"micromag-viewer-menus-menu-preview-container","screenButton":"micromag-viewer-menus-menu-preview-screenButton","activeScreenBorder":"micromag-viewer-menus-menu-preview-activeScreenBorder","itemContent":"micromag-viewer-menus-menu-preview-itemContent","scroll":"micromag-viewer-menus-menu-preview-scroll","header":"micromag-viewer-menus-menu-preview-header","button":"micromag-viewer-menus-menu-preview-button","shareButton":"micromag-viewer-menus-menu-preview-shareButton","disabled":"micromag-viewer-menus-menu-preview-disabled","icon":"micromag-viewer-menus-menu-preview-icon","buttons":"micromag-viewer-menus-menu-preview-buttons","organisation":"micromag-viewer-menus-menu-preview-organisation","title":"micromag-viewer-menus-menu-preview-title","content":"micromag-viewer-menus-menu-preview-content","nav":"micromag-viewer-menus-menu-preview-nav","item":"micromag-viewer-menus-menu-preview-item","items":"micromag-viewer-menus-menu-preview-items","active":"micromag-viewer-menus-menu-preview-active","screenContainer":"micromag-viewer-menus-menu-preview-screenContainer","screenContent":"micromag-viewer-menus-menu-preview-screenContent"};
|
|
249
305
|
|
|
250
|
-
var styles$
|
|
306
|
+
var styles$1 = {"container":"micromag-viewer-partials-share-modal-container","content":"micromag-viewer-partials-share-modal-content","opened":"micromag-viewer-partials-share-modal-opened"};
|
|
251
307
|
|
|
252
|
-
var propTypes$
|
|
308
|
+
var propTypes$5 = {
|
|
253
309
|
url: PropTypes__default["default"].string,
|
|
254
310
|
title: PropTypes__default["default"].string,
|
|
255
311
|
opened: PropTypes__default["default"].bool,
|
|
@@ -257,7 +313,7 @@ var propTypes$6 = {
|
|
|
257
313
|
onShare: PropTypes__default["default"].func,
|
|
258
314
|
onCancel: PropTypes__default["default"].func
|
|
259
315
|
};
|
|
260
|
-
var defaultProps$
|
|
316
|
+
var defaultProps$5 = {
|
|
261
317
|
url: null,
|
|
262
318
|
title: null,
|
|
263
319
|
opened: false,
|
|
@@ -310,13 +366,13 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
310
366
|
}, [opened, onCancel]);
|
|
311
367
|
hooks.useDocumentEvent('click', onDocumentClick, opened);
|
|
312
368
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
313
|
-
className: classNames__default["default"]([styles$
|
|
369
|
+
className: classNames__default["default"]([styles$1.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, className, className), _defineProperty__default["default"](_ref2, styles$1.opened, opened), _ref2)]),
|
|
314
370
|
ref: containerRef,
|
|
315
371
|
"aria-hidden": opened ? null : '-1'
|
|
316
372
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
317
|
-
className: styles$
|
|
373
|
+
className: styles$1.content
|
|
318
374
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
319
|
-
className: styles$
|
|
375
|
+
className: styles$1.buttons
|
|
320
376
|
}, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton, Object.assign({}, shareButtonProps, {
|
|
321
377
|
quote: title,
|
|
322
378
|
beforeOnClick: function beforeOnClick() {
|
|
@@ -341,12 +397,12 @@ var ShareModal = function ShareModal(_ref) {
|
|
|
341
397
|
}), /*#__PURE__*/React__default["default"].createElement(reactShare.EmailIcon, shareIconProps)))));
|
|
342
398
|
};
|
|
343
399
|
|
|
344
|
-
ShareModal.propTypes = propTypes$
|
|
345
|
-
ShareModal.defaultProps = defaultProps$
|
|
400
|
+
ShareModal.propTypes = propTypes$5;
|
|
401
|
+
ShareModal.defaultProps = defaultProps$5;
|
|
346
402
|
|
|
347
|
-
var styles
|
|
403
|
+
var styles = {"container":"micromag-viewer-partials-share-button-container","shareModal":"micromag-viewer-partials-share-button-shareModal"};
|
|
348
404
|
|
|
349
|
-
var propTypes$
|
|
405
|
+
var propTypes$4 = {
|
|
350
406
|
title: PropTypes__default["default"].string,
|
|
351
407
|
url: PropTypes__default["default"].string,
|
|
352
408
|
className: PropTypes__default["default"].string,
|
|
@@ -355,7 +411,7 @@ var propTypes$5 = {
|
|
|
355
411
|
children: PropTypes__default["default"].node,
|
|
356
412
|
focusable: PropTypes__default["default"].bool
|
|
357
413
|
};
|
|
358
|
-
var defaultProps$
|
|
414
|
+
var defaultProps$4 = {
|
|
359
415
|
title: null,
|
|
360
416
|
url: null,
|
|
361
417
|
className: null,
|
|
@@ -396,7 +452,7 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
396
452
|
setStoryShareModalOpened(false);
|
|
397
453
|
}, [setStoryShareModalOpened]);
|
|
398
454
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
399
|
-
className: classNames__default["default"]([styles
|
|
455
|
+
className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
|
|
400
456
|
}, /*#__PURE__*/React__default["default"].createElement(components.Button, {
|
|
401
457
|
className: classNames__default["default"]([_defineProperty__default["default"]({}, buttonClassName, buttonClassName !== null)]),
|
|
402
458
|
onClick: onShareIconClick,
|
|
@@ -416,7 +472,7 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
416
472
|
}),
|
|
417
473
|
focusable: focusable
|
|
418
474
|
}, children), /*#__PURE__*/React__default["default"].createElement(ShareModal, {
|
|
419
|
-
className: styles
|
|
475
|
+
className: styles.shareModal,
|
|
420
476
|
opened: storyShareModalOpened,
|
|
421
477
|
title: title,
|
|
422
478
|
url: url,
|
|
@@ -425,10 +481,10 @@ var ShareButton = function ShareButton(_ref) {
|
|
|
425
481
|
}));
|
|
426
482
|
};
|
|
427
483
|
|
|
428
|
-
ShareButton.propTypes = propTypes$
|
|
429
|
-
ShareButton.defaultProps = defaultProps$
|
|
484
|
+
ShareButton.propTypes = propTypes$4;
|
|
485
|
+
ShareButton.defaultProps = defaultProps$4;
|
|
430
486
|
|
|
431
|
-
var propTypes$
|
|
487
|
+
var propTypes$3 = {
|
|
432
488
|
viewerTheme: core.PropTypes.viewerTheme,
|
|
433
489
|
screenWidth: PropTypes__default["default"].number,
|
|
434
490
|
title: PropTypes__default["default"].string,
|
|
@@ -445,7 +501,7 @@ var propTypes$4 = {
|
|
|
445
501
|
fullscreenEnabled: PropTypes__default["default"].bool,
|
|
446
502
|
className: PropTypes__default["default"].string
|
|
447
503
|
};
|
|
448
|
-
var defaultProps$
|
|
504
|
+
var defaultProps$3 = {
|
|
449
505
|
viewerTheme: null,
|
|
450
506
|
screenWidth: null,
|
|
451
507
|
title: null,
|
|
@@ -463,7 +519,7 @@ var defaultProps$4 = {
|
|
|
463
519
|
className: null
|
|
464
520
|
};
|
|
465
521
|
|
|
466
|
-
function ViewerMenuPreview(_ref) {
|
|
522
|
+
var ViewerMenuPreview = function ViewerMenuPreview(_ref) {
|
|
467
523
|
var viewerTheme = _ref.viewerTheme,
|
|
468
524
|
screenWidth = _ref.screenWidth,
|
|
469
525
|
title = _ref.title,
|
|
@@ -573,36 +629,36 @@ function ViewerMenuPreview(_ref) {
|
|
|
573
629
|
setScrolledBottom(false);
|
|
574
630
|
}, [setScrolledBottom]);
|
|
575
631
|
return hasSize ? /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
|
|
576
|
-
className: classNames__default["default"]([styles$
|
|
632
|
+
className: classNames__default["default"]([styles$2.container, _defineProperty__default["default"]({}, className, className !== null)]),
|
|
577
633
|
style: _objectSpread__default["default"](_objectSpread__default["default"](_objectSpread__default["default"]({}, backgroundColorStyle), brandImageStyle), {}, {
|
|
578
634
|
width: screenWidth
|
|
579
635
|
}),
|
|
580
636
|
"aria-hidden": focusable ? null : 'true'
|
|
581
637
|
}, dragBind()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
582
|
-
className: styles$
|
|
638
|
+
className: styles$2.header
|
|
583
639
|
}, brandLogoUrl !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
584
|
-
className: styles$
|
|
640
|
+
className: styles$2.organisation,
|
|
585
641
|
style: {
|
|
586
642
|
backgroundImage: "url(".concat(brandLogoUrl, ")")
|
|
587
643
|
}
|
|
588
644
|
}) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
589
|
-
className: styles$
|
|
645
|
+
className: styles$2.title,
|
|
590
646
|
style: titleStyle
|
|
591
647
|
}, title), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
592
|
-
className: styles$
|
|
648
|
+
className: styles$2.buttons,
|
|
593
649
|
style: colorSecondaryColorStyle
|
|
594
650
|
}, /*#__PURE__*/React__default["default"].createElement(ShareButton, {
|
|
595
|
-
className: styles$
|
|
596
|
-
buttonClassName: styles$
|
|
651
|
+
className: styles$2.shareButton,
|
|
652
|
+
buttonClassName: styles$2.button,
|
|
597
653
|
onShare: onShare,
|
|
598
654
|
url: shareUrl,
|
|
599
655
|
title: title,
|
|
600
656
|
focusable: focusable
|
|
601
657
|
}, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
602
|
-
className: styles$
|
|
658
|
+
className: styles$2.icon,
|
|
603
659
|
icon: freeSolidSvgIcons.faShare
|
|
604
660
|
})), fullscreenEnabled ? /*#__PURE__*/React__default["default"].createElement(components.Button, {
|
|
605
|
-
className: styles$
|
|
661
|
+
className: styles$2.button,
|
|
606
662
|
onClick: toggleFullscreen,
|
|
607
663
|
title: intl.formatMessage({
|
|
608
664
|
id: "AuxqcG",
|
|
@@ -620,10 +676,10 @@ function ViewerMenuPreview(_ref) {
|
|
|
620
676
|
}),
|
|
621
677
|
focusable: focusable
|
|
622
678
|
}, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
623
|
-
className: styles$
|
|
679
|
+
className: styles$2.icon,
|
|
624
680
|
icon: fullscreenActive ? freeSolidSvgIcons.faCompress : freeSolidSvgIcons.faExpand
|
|
625
681
|
})) : null, /*#__PURE__*/React__default["default"].createElement(components.Button, {
|
|
626
|
-
className: styles$
|
|
682
|
+
className: styles$2.button,
|
|
627
683
|
onClick: onClose,
|
|
628
684
|
title: intl.formatMessage({
|
|
629
685
|
id: "dj/p/q",
|
|
@@ -641,18 +697,18 @@ function ViewerMenuPreview(_ref) {
|
|
|
641
697
|
}),
|
|
642
698
|
focusable: focusable
|
|
643
699
|
}, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
644
|
-
className: styles$
|
|
700
|
+
className: styles$2.icon,
|
|
645
701
|
icon: freeSolidSvgIcons.faTimes
|
|
646
702
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
647
|
-
className: styles$
|
|
703
|
+
className: styles$2.content
|
|
648
704
|
}, /*#__PURE__*/React__default["default"].createElement(Scroll__default["default"], {
|
|
649
|
-
className: styles$
|
|
705
|
+
className: styles$2.scroll,
|
|
650
706
|
onScrolledBottom: onScrolledBottom,
|
|
651
707
|
onScrolledNotBottom: onScrolledNotBottom
|
|
652
708
|
}, /*#__PURE__*/React__default["default"].createElement("nav", {
|
|
653
|
-
className: styles$
|
|
709
|
+
className: styles$2.nav
|
|
654
710
|
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
655
|
-
className: styles$
|
|
711
|
+
className: styles$2.items
|
|
656
712
|
}, items.map(function (item, index) {
|
|
657
713
|
var screenIndexLabel = intl.formatMessage({
|
|
658
714
|
id: "LkVfwW",
|
|
@@ -674,20 +730,20 @@ function ViewerMenuPreview(_ref) {
|
|
|
674
730
|
}]
|
|
675
731
|
})) : '';
|
|
676
732
|
var screenAriaLabel = screenIndexLabel + isCurrentScreenLabel;
|
|
677
|
-
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
678
|
-
className: classNames__default["default"]([styles$
|
|
733
|
+
return item.parentId === null ? /*#__PURE__*/React__default["default"].createElement("li", {
|
|
734
|
+
className: classNames__default["default"]([styles$2.item, _defineProperty__default["default"]({}, styles$2.active, current === index)]),
|
|
679
735
|
key: "item-".concat(index),
|
|
680
736
|
style: {
|
|
681
737
|
paddingBottom: screenSizeRatio,
|
|
682
738
|
width: "".concat(100 / thumbsPerLine, "%")
|
|
683
739
|
}
|
|
684
740
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
685
|
-
className: styles$
|
|
741
|
+
className: styles$2.itemContent
|
|
686
742
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
687
|
-
className: styles$
|
|
743
|
+
className: styles$2.screenContainer,
|
|
688
744
|
ref: index === 0 ? firstScreenContainerRef : null
|
|
689
745
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
690
|
-
className: styles$
|
|
746
|
+
className: styles$2.screenContent,
|
|
691
747
|
style: thumbSize !== null ? {
|
|
692
748
|
width: screenWidth,
|
|
693
749
|
height: screenRatioHeight,
|
|
@@ -700,11 +756,11 @@ function ViewerMenuPreview(_ref) {
|
|
|
700
756
|
screen: item,
|
|
701
757
|
focusable: false
|
|
702
758
|
})), current === index ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
703
|
-
className: styles$
|
|
759
|
+
className: styles$2.activeScreenBorder,
|
|
704
760
|
style: borderPrimaryColorStyle
|
|
705
761
|
}) : null)), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
706
762
|
type: "button",
|
|
707
|
-
className: styles$
|
|
763
|
+
className: styles$2.screenButton,
|
|
708
764
|
onClick: function onClick() {
|
|
709
765
|
onClickItem(index);
|
|
710
766
|
},
|
|
@@ -715,68 +771,12 @@ function ViewerMenuPreview(_ref) {
|
|
|
715
771
|
}
|
|
716
772
|
},
|
|
717
773
|
tabIndex: focusable ? '0' : '-1'
|
|
718
|
-
}));
|
|
774
|
+
})) : null;
|
|
719
775
|
})))))) : null;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
ViewerMenuPreview.propTypes = propTypes$4;
|
|
723
|
-
ViewerMenuPreview.defaultProps = defaultProps$4;
|
|
724
|
-
|
|
725
|
-
var styles = {"container":"micromag-viewer-screen-container","current":"micromag-viewer-screen-current"};
|
|
726
|
-
|
|
727
|
-
var propTypes$3 = {
|
|
728
|
-
screen: core.PropTypes.screenComponent,
|
|
729
|
-
renderContext: core.PropTypes.renderContext,
|
|
730
|
-
current: PropTypes__default["default"].bool,
|
|
731
|
-
active: PropTypes__default["default"].bool,
|
|
732
|
-
onPrevious: PropTypes__default["default"].func,
|
|
733
|
-
onNext: PropTypes__default["default"].func,
|
|
734
|
-
onEnableInteraction: PropTypes__default["default"].func,
|
|
735
|
-
onDisableInteraction: PropTypes__default["default"].func,
|
|
736
|
-
getMediaRef: PropTypes__default["default"].func
|
|
737
|
-
};
|
|
738
|
-
var defaultProps$3 = {
|
|
739
|
-
screen: null,
|
|
740
|
-
renderContext: null,
|
|
741
|
-
current: false,
|
|
742
|
-
active: true,
|
|
743
|
-
onPrevious: null,
|
|
744
|
-
onNext: null,
|
|
745
|
-
onEnableInteraction: null,
|
|
746
|
-
onDisableInteraction: null,
|
|
747
|
-
getMediaRef: null
|
|
748
776
|
};
|
|
749
777
|
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
var screen = _ref.screen,
|
|
754
|
-
renderContext = _ref.renderContext,
|
|
755
|
-
active = _ref.active,
|
|
756
|
-
current = _ref.current,
|
|
757
|
-
onPrevious = _ref.onPrevious,
|
|
758
|
-
onNext = _ref.onNext,
|
|
759
|
-
onEnableInteraction = _ref.onEnableInteraction,
|
|
760
|
-
onDisableInteraction = _ref.onDisableInteraction,
|
|
761
|
-
getMediaRef = _ref.getMediaRef;
|
|
762
|
-
return screen !== null ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
763
|
-
className: classNames__default["default"]([styles.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, styles.active, active), _defineProperty__default["default"](_ref2, styles.current, current), _ref2)]),
|
|
764
|
-
"aria-hidden": current ? null : 'true'
|
|
765
|
-
}, /*#__PURE__*/React__default["default"].createElement(components.Screen, {
|
|
766
|
-
screen: screen,
|
|
767
|
-
renderContext: renderContext,
|
|
768
|
-
active: active,
|
|
769
|
-
current: current,
|
|
770
|
-
onPrevious: onPrevious,
|
|
771
|
-
onNext: onNext,
|
|
772
|
-
onEnableInteraction: onEnableInteraction,
|
|
773
|
-
onDisableInteraction: onDisableInteraction,
|
|
774
|
-
getMediaRef: getMediaRef
|
|
775
|
-
})) : null;
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
ViewerScreen.propTypes = propTypes$3;
|
|
779
|
-
ViewerScreen.defaultProps = defaultProps$3;
|
|
778
|
+
ViewerMenuPreview.propTypes = propTypes$3;
|
|
779
|
+
ViewerMenuPreview.defaultProps = defaultProps$3;
|
|
780
780
|
|
|
781
781
|
var propTypes$2 = {
|
|
782
782
|
story: core.PropTypes.story,
|
|
@@ -838,7 +838,7 @@ var defaultProps$2 = {
|
|
|
838
838
|
className: null
|
|
839
839
|
};
|
|
840
840
|
|
|
841
|
-
function Viewer(_ref) {
|
|
841
|
+
var Viewer = function Viewer(_ref) {
|
|
842
842
|
var _ref15;
|
|
843
843
|
|
|
844
844
|
var story = _ref.story,
|
|
@@ -1471,7 +1471,7 @@ function Viewer(_ref) {
|
|
|
1471
1471
|
}]
|
|
1472
1472
|
})) : null);
|
|
1473
1473
|
})) : null)));
|
|
1474
|
-
}
|
|
1474
|
+
};
|
|
1475
1475
|
|
|
1476
1476
|
Viewer.propTypes = propTypes$2;
|
|
1477
1477
|
Viewer.defaultProps = defaultProps$2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.411",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
60
60
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
61
61
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
62
|
-
"@micromag/core": "^0.2.
|
|
63
|
-
"@micromag/element-scroll": "^0.2.
|
|
64
|
-
"@micromag/elements": "^0.2.
|
|
65
|
-
"@micromag/fields": "^0.2.
|
|
66
|
-
"@micromag/intl": "^0.2.
|
|
67
|
-
"@micromag/screens": "^0.2.
|
|
62
|
+
"@micromag/core": "^0.2.409",
|
|
63
|
+
"@micromag/element-scroll": "^0.2.409",
|
|
64
|
+
"@micromag/elements": "^0.2.409",
|
|
65
|
+
"@micromag/fields": "^0.2.409",
|
|
66
|
+
"@micromag/intl": "^0.2.409",
|
|
67
|
+
"@micromag/screens": "^0.2.409",
|
|
68
68
|
"@react-spring/core": "^9.1.1",
|
|
69
69
|
"@react-spring/web": "^9.1.1",
|
|
70
70
|
"@use-gesture/react": "^10.2.4",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "8672d582d1f62786375ac3cd695f831c1dcb30c8"
|
|
84
84
|
}
|