5 lines
12 KiB
JavaScript
5 lines
12 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{"0lNN":function(e,t,n){"use strict";var o=n("q1tI"),i=n.n(o),r=n("TSYQ"),c=n.n(r),l=n("Eyy1"),a=n("Hr11"),s=n("Ialn");const u=n("0lTl");function f(e){const{size:t,scrollSize:n,clientSize:r,scrollProgress:f,onScrollProgressChange:d,horizontal:v,theme:b=u,onDragStart:m,onDragEnd:h,minBarSize:g=40}=e,O=Object(o.useRef)(null),p=Object(o.useRef)(null),[j,w]=Object(o.useState)(!1),E=Object(o.useRef)(0);Object(o.useEffect)(()=>{if(j){m&&m();const e=Object(l.ensureNotNull)(O.current).ownerDocument;e&&(e.addEventListener("mousemove",x),e.addEventListener("mouseup",T))}else h&&h();return()=>{const e=Object(l.ensureNotNull)(O.current).ownerDocument;e&&(e.removeEventListener("mousemove",x),e.removeEventListener("mouseup",T))}},[j]);const C=t/n||0,N=r*C||0,k=Math.max(N,g),S=(t-k)/(t-N),I=function(e){if(Object(s.isRtl)()&&v)return e-n+r;return e}(Object(a.clamp)(f,0,n-t));return i.a.createElement("div",{ref:O,className:c()(b.wrap,v&&b["wrap--horizontal"]),style:{[v?"width":"height"]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const o=Object(l.ensureNotNull)(p.current).getBoundingClientRect();E.current=(v?o.width:o.height)/2;const i=n-t;let r=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))-E.current;r<0?(r=0,E.current=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))):r>i*C*S&&(r=i*C*S,E.current=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))-r);d(r/C/S),w(!0)}},i.a.createElement("div",{ref:p,className:c()(b.bar,v&&b["bar--horizontal"]),style:{[v?"minWidth":"minHeight"]:g,[v?"width":"height"]:k,transform:`translate${v?"X":"Y"}(${I*C*S||0}px)`},onMouseDown:function(e){e.preventDefault(),E.current=D(e.nativeEvent,Object(l.ensureNotNull)(p.current)),w(!0)}},i.a.createElement("div",{className:c()(b.barInner,v&&b["barInner--horizontal"])})));function x(e){const t=D(e,Object(l.ensureNotNull)(O.current))-E.current;d(t/C/S)}function T(e){w(!1)}function D(e,t){const n=t.getBoundingClientRect();return v?e.clientX-n.left:e.clientY-n.top}}var d=n("8d0Q"),v=n("ya27");n.d(t,"a",(function(){return b}));function b(e){const{reference:t,className:n,containerHeight:c=0,containerWidth:l=0,contentHeight:a=0,contentWidth:s=0,scrollPosTop:u=0,scrollPosLeft:b=0,onVerticalChange:m,onHorizontalChange:h,visible:g}=e,[O,p]=Object(d.b)(),[j,w]=Object(o.useState)(!1),E=c<a,C=l<s,N=E&&C?8:0;return i.a.createElement("div",Object.assign({},p,{ref:t,className:r(n,v.scrollWrap),style:{visibility:g||O||j?"visible":"hidden"}}),E&&i.a.createElement(f,{size:c-N,scrollSize:a-N,clientSize:c-N,scrollProgress:u,onScrollProgressChange:function(e){m&&m(e)},onDragStart:k,onDragEnd:S}),C&&i.a.createElement(f,{size:l-N,scrollSize:s-N,clientSize:l-N,scrollProgress:b,onScrollProgressChange:function(e){h&&h(e)},onDragStart:k,onDragEnd:S,horizontal:!0}));function k(){w(!0)}function S(){w(!1)}}},"0lTl":function(e,t,n){e.exports={wrap:"wrap-3C3rxkDX","wrap--horizontal":"wrap--horizontal-3C3rxkDX",bar:"bar-3C3rxkDX",barInner:"barInner-3C3rxkDX",
|
|
"barInner--horizontal":"barInner--horizontal-3C3rxkDX","bar--horizontal":"bar--horizontal-3C3rxkDX"}},"8d0Q":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var o=n("q1tI");function i(){const[e,t]=Object(o.useState)(!1);return[e,{onMouseOver:function(e){r(e)&&t(!0)},onMouseOut:function(e){r(e)&&t(!1)}}]}function r(e){return!e.currentTarget.contains(e.relatedTarget)}},"9S1y":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("q1tI");function i(){const[e,t]=Object(o.useState)(null);return[Object(o.useCallback)(n=>{n.width===(null==e?void 0:e.width)&&n.height===e.height||t(n)},[e]),e]}},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("i8i4"),l=n.n(c),a=(n("EsMY"),n("AiMB")),s=n("DTHj"),u=n("X0gx"),f=n("8Rai");function d(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:d=!0,doNotCloseOn:v,onClickOutside:b,onClose:m}=e,h=Object(o.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),g=Object(i.useContext)(u.a),O=Object(f.a)({handler:function(e){b&&b(e);if(!d)return;if(v&&e.target instanceof Node){const t=l.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return c?r.a.createElement(a.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.a.createElement("span",{ref:O,style:{pointerEvents:"auto"}},r.a.createElement(s.b,Object.assign({},h,{isOpened:c,onClose:m,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:g,ref:t}),n))):null}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("TSYQ"),l=n("tWVy"),a=n("JWMC"),s=n("ijHL"),u=n("v1bN");const f=u;function d(e){const{reference:t}=e,n=Object(o.a)(e,["reference"]),i=Object.assign(Object.assign({},n),{ref:t});return r.a.createElement(e.href?"a":"div",i)}function v(e){e.stopPropagation()}function b(e){const{id:t,role:n,"aria-selected":o,className:f,title:b,labelRowClassName:m,labelClassName:h,shortcut:g,forceShowShortcuts:O,icon:p,isActive:j,isDisabled:w,isHovered:E,appearAsDisabled:C,label:N,link:k,showToolboxOnHover:S,target:I,toolbox:x,reference:T,onMouseOut:D,onMouseOver:A,theme:B=u}=e,L=Object(s.b)(e),M=Object(i.useRef)(null);return r.a.createElement(d,Object.assign({},L,{id:t,role:n,"aria-selected":o,className:c(f,B.item,p&&B.withIcon,{[B.isActive]:j,[B.isDisabled]:w||C,[B.hovered]:E}),title:b,href:k,target:I,reference:function(e){M.current=e,"function"==typeof T&&T(e);"object"==typeof T&&(T.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:i,trackEventObject:r}=e;if(w)return;r&&Object(a.trackEvent)(r.category,r.event,r.label);o&&o(i,t);n||Object(l.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&Object(a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){
|
|
const{trackEventObject:n,trackMouseWheelClick:o}=e;if(1===t.button&&k&&n){let e=n.label;o&&(e+="_mouseWheelClick"),Object(a.trackEvent)(n.category,n.event,e)}},onMouseOver:A,onMouseOut:D}),void 0!==p&&r.a.createElement("div",{className:B.icon,dangerouslySetInnerHTML:{__html:p}}),r.a.createElement("div",{className:c(B.labelRow,m)},r.a.createElement("div",{className:c(B.label,h)},N)),(void 0!==g||O)&&r.a.createElement("div",{className:B.shortcut},(z=g)&&z.split("+").join(" + ")),void 0!==x&&r.a.createElement("div",{onClick:v,className:c(B.toolbox,{[B.showOnHover]:S})},x));var z}},To8B:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},XfUw:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},fEjm:function(e,t,n){e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},gM3K:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("TSYQ"),l=n.n(c),a=n("qFKp"),s=n("pr86"),u=n("i/MG"),f=n("xp8i");function d(e){const{url:t,title:n,subtitle:i,removeBtnLabel:c,onClick:d,onClickFavorite:b,onClickRemove:m,isActive:h,isSelected:g,isFavorite:O,isMobile:p=!1,showFavorite:j=!0}=e,w=Object(o.a)(e,["url","title","subtitle","removeBtnLabel","onClick","onClickFavorite","onClickRemove","isActive","isSelected","isFavorite","isMobile","showFavorite"]);return r.a.createElement("a",Object.assign({},w,{className:l()(f.itemRow,h&&!g&&f.active,p&&f.mobile,g&&f.selected),onClick:v.bind(null,d),href:t,"data-role":"list-item","data-active":h}),j&&b&&r.a.createElement(s.a,{className:l()(f.favoriteButton,O&&f.favorite,a.CheckMobile.any()&&f.mobile),isActive:h&&!g,isFilled:O,onClick:v.bind(null,b),"data-name":"list-item-favorite-button","data-favorite":O}),r.a.createElement("div",{className:l()(f.itemInfo,!j&&f.itemInfoWithPadding)},r.a.createElement("div",{className:l()(f.title,h&&!g&&f.active,p&&f.mobile),"data-name":"list-item-title"},n),r.a.createElement("div",{className:l()(f.details,h&&!g&&f.active,p&&f.mobile)},i)),r.a.createElement(u.a,{className:f.removeButton,isActive:h&&!g,onClick:v.bind(null,m),"data-name":"list-item-remove-button",title:c}))}function v(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("mrSG"),i=(n("YFKU"),n("q1tI")),r=n("TSYQ"),c=n("Iivm"),l=n("To8B"),a=n("kXJy");const s={remove:window.t("Remove")};function u(e){
|
|
const{className:t,isActive:n,onClick:u,title:f,hidden:d,"data-name":v="remove-button"}=e,b=Object(o.a)(e,["className","isActive","onClick","title","hidden","data-name"]);return i.createElement(c.a,Object.assign({},b,{"data-name":v,className:r(a.button,"apply-common-tooltip",n&&a.active,d&&a.hidden,t),icon:l,onClick:u,title:f||s.remove}))}},kXJy:function(e,t,n){e.exports={button:"button-3B9fDLtm",disabled:"disabled-3B9fDLtm",active:"active-3B9fDLtm",hidden:"hidden-3B9fDLtm"}},n9z6:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("q1tI"),i=n("Eyy1"),r=n("8d0Q"),c=n("qFKp");const l={onMouseOver:()=>{},onMouseOut:()=>{}};function a(e,t=c.CheckMobile.any()){const n=Object(o.useRef)(null),a=e||Object(o.useRef)(null),[s,u]=Object(r.b)(),[f,d]=Object(o.useState)({reference:n,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){d(t=>Object.assign(Object.assign({},t),{scrollPosTop:e})),Object(i.ensureNotNull)(a.current).scrollTop=e},onHorizontalChange:function(e){d(t=>Object.assign(Object.assign({},t),{scrollPosLeft:e})),Object(i.ensureNotNull)(a.current).scrollLeft=e},visible:s}),v=Object(o.useCallback)(()=>{if(!a.current)return;const{clientHeight:e,scrollHeight:t,scrollTop:o,clientWidth:i,scrollWidth:r,scrollLeft:c}=a.current,l=n.current?n.current.offsetTop:0;d(n=>Object.assign(Object.assign({},n),{containerHeight:e-l,contentHeight:t-l,scrollPosTop:o,containerWidth:i,contentWidth:r,scrollPosLeft:c}))},[]);function b(){d(e=>Object.assign(Object.assign({},e),{scrollPosTop:Object(i.ensureNotNull)(a.current).scrollTop,scrollPosLeft:Object(i.ensureNotNull)(a.current).scrollLeft}))}return Object(o.useEffect)(()=>{s&&v(),d(e=>Object.assign(Object.assign({},e),{visible:s}))},[s]),Object(o.useEffect)(()=>(a.current&&a.current.addEventListener("scroll",b),()=>{a.current&&a.current.removeEventListener("scroll",b)}),[a]),[f,t?l:u,a,v]}},pr86:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n("mrSG"),i=(n("YFKU"),n("q1tI")),r=n("TSYQ"),c=n("Iivm"),l=n("sg5d"),a=n("XfUw"),s=n("fEjm");const u={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function f(e){const{className:t,isFilled:n,isActive:f,onClick:d}=e,v=Object(o.a)(e,["className","isFilled","isActive","onClick"]);return i.createElement(c.a,Object.assign({},v,{className:r(s.favorite,"apply-common-tooltip",n&&s.checked,f&&s.active,t),icon:n?l:a,onClick:d,title:n?u.remove:u.add}))}},sg5d:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",
|
|
labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},xp8i:function(e,t,n){e.exports={itemRow:"itemRow-1SBAfF8E",favoriteButton:"favoriteButton-1SBAfF8E",active:"active-1SBAfF8E",selected:"selected-1SBAfF8E",mobile:"mobile-1SBAfF8E",itemInfo:"itemInfo-1SBAfF8E",title:"title-1SBAfF8E",details:"details-1SBAfF8E",itemInfoWithPadding:"itemInfoWithPadding-1SBAfF8E",favorite:"favorite-1SBAfF8E",removeButton:"removeButton-1SBAfF8E"}},ya27:function(e,t,n){e.exports={scrollWrap:"scrollWrap-2LZ1ZhWc"}}}]); |