You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
12 KiB
4 lines
12 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{"0lNN":function(e,t,n){"use strict";var o=n("q1tI"),r=n.n(o),i=n("TSYQ"),c=n.n(i),l=n("Eyy1"),a=n("Hr11"),s=n("Ialn");const u=n("0lTl");function f(e){const{size:t,scrollSize:n,clientSize:i,scrollProgress:f,onScrollProgressChange:v,horizontal:d,theme:m=u,onDragStart:h,onDragEnd:b,minBarSize:g=40}=e,p=Object(o.useRef)(null),E=Object(o.useRef)(null),[w,O]=Object(o.useState)(!1),N=Object(o.useRef)(0);Object(o.useEffect)(()=>{const e=Object(l.ensureNotNull)(p.current).ownerDocument;return w?(h&&h(),e&&(e.addEventListener("mousemove",x),e.addEventListener("mouseup",T))):b&&b(),()=>{e&&(e.removeEventListener("mousemove",x),e.removeEventListener("mouseup",T))}},[w]);const C=t/n||0,j=i*C||0,k=Math.max(j,g),I=(t-k)/(t-j),S=function(e){if(Object(s.isRtl)()&&d)return e-n+i;return e}(Object(a.clamp)(f,0,n-t));return r.a.createElement("div",{ref:p,className:c()(m.wrap,d&&m["wrap--horizontal"]),style:{[d?"width":"height"]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const o=Object(l.ensureNotNull)(E.current).getBoundingClientRect();N.current=(d?o.width:o.height)/2;const r=n-t;let i=D(e.nativeEvent,Object(l.ensureNotNull)(p.current))-N.current;i<0?(i=0,N.current=D(e.nativeEvent,Object(l.ensureNotNull)(p.current))):i>r*C*I&&(i=r*C*I,N.current=D(e.nativeEvent,Object(l.ensureNotNull)(p.current))-i);v(i/C/I),O(!0)}},r.a.createElement("div",{ref:E,className:c()(m.bar,d&&m["bar--horizontal"]),style:{[d?"minWidth":"minHeight"]:g,[d?"width":"height"]:k,transform:`translate${d?"X":"Y"}(${S*C*I||0}px)`},onMouseDown:function(e){e.preventDefault(),N.current=D(e.nativeEvent,Object(l.ensureNotNull)(E.current)),O(!0)}},r.a.createElement("div",{className:c()(m.barInner,d&&m["barInner--horizontal"])})));function x(e){const t=D(e,Object(l.ensureNotNull)(p.current))-N.current;v(t/C/I)}function T(e){O(!1)}function D(e,t){const n=t.getBoundingClientRect();return d?e.clientX-n.left:e.clientY-n.top}}var v=n("8d0Q"),d=n("ya27");n.d(t,"a",(function(){return m}));function m(e){const{reference:t,className:n,containerHeight:c=0,containerWidth:l=0,contentHeight:a=0,contentWidth:s=0,scrollPosTop:u=0,scrollPosLeft:m=0,onVerticalChange:h,onHorizontalChange:b,visible:g}=e,[p,E]=Object(v.c)(),[w,O]=Object(o.useState)(!1),N=c<a,C=l<s,j=N&&C?8:0;return r.a.createElement("div",{...E,ref:t,className:i(n,d.scrollWrap),style:{visibility:g||p||w?"visible":"hidden"}},N&&r.a.createElement(f,{size:c-j,scrollSize:a-j,clientSize:c-j,scrollProgress:u,onScrollProgressChange:function(e){h&&h(e)},onDragStart:k,onDragEnd:I}),C&&r.a.createElement(f,{size:l-j,scrollSize:s-j,clientSize:l-j,scrollProgress:m,onScrollProgressChange:function(e){b&&b(e)},onDragStart:k,onDragEnd:I,horizontal:!0}));function k(){O(!0)}function I(){O(!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";var o=n("q1tI");function r(){const[e,t]=Object(o.useState)(!1);return[e,{onMouseOver:function(e){i(e)&&t(!0)},onMouseOut:function(e){i(e)&&t(!1)}}]}function i(e){return!e.currentTarget.contains(e.relatedTarget)}function c(e){const[t,n]=Object(o.useState)(!1);return Object(o.useEffect)(()=>{const t=t=>{if(null===e.current)return;const o=e.current.contains(t.target);n(o)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}))},"9S1y":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("q1tI");function r(){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 f}));var o=n("q1tI"),r=n.n(o),i=n("i8i4"),c=n.n(i),l=n("AiMB"),a=n("DTHj"),s=n("X0gx"),u=n("8Rai");function f(e){const{controller:t,children:n,isOpened:i,closeOnClickOutside:f=!0,doNotCloseOn:v,onClickOutside:d,onClose:m,...h}=e,b=Object(o.useContext)(s.a),g=Object(u.a)({handler:function(e){d&&d(e);if(!f)return;if(v&&e.target instanceof Node){const t=c.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return i?r.a.createElement(l.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.a.createElement("span",{ref:g,style:{pointerEvents:"auto"}},r.a.createElement(a.b,{...h,onClose:m,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:b,ref:t},n))):null}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n("q1tI"),r=n.n(o),i=n("TSYQ"),c=n("tWVy"),l=n("JWMC"),a=n("ijHL"),s=n("v1bN");const u=s;function f(e){const{reference:t,...n}=e,o={...n,ref:t};return r.a.createElement(e.href?"a":"div",o)}function v(e){e.stopPropagation()}function d(e){const{id:t,role:n,"aria-selected":u,className:d,title:m,labelRowClassName:h,labelClassName:b,shortcut:g,forceShowShortcuts:p,icon:E,isActive:w,isDisabled:O,isHovered:N,appearAsDisabled:C,label:j,link:k,showToolboxOnHover:I,target:S,rel:x,toolbox:T,reference:D,onMouseOut:L,onMouseOver:B,suppressToolboxClick:A=!0,theme:z=s}=e,M=Object(a.b)(e),y=Object(o.useRef)(null);return r.a.createElement(f,{...M,id:t,role:n,"aria-selected":u,className:i(d,z.item,E&&z.withIcon,{[z.isActive]:w,[z.isDisabled]:O||C,[z.hovered]:N}),title:m,href:k,target:S,rel:x,reference:function(e){y.current=e,"function"==typeof D&&D(e);"object"==typeof D&&(D.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:r,trackEventObject:i}=e;if(O)return;i&&Object(l.trackEvent)(i.category,i.event,i.label);o&&o(r,t);n||Object(c.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&Object(l.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(l.trackEvent)(n.category,n.event,e)}},onMouseOver:B,onMouseOut:L},void 0!==E&&r.a.createElement("div",{className:z.icon,dangerouslySetInnerHTML:{__html:E}}),r.a.createElement("div",{className:i(z.labelRow,h)},r.a.createElement("div",{className:i(z.label,b)},j)),(void 0!==g||p)&&r.a.createElement("div",{className:z.shortcut},(P=g)&&P.split("+").join(" + ")),void 0!==T&&r.a.createElement("div",{onClick:A?v:void 0,className:i(z.toolbox,{[z.showOnHover]:I})},T));var P}},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 f}));var o=n("q1tI"),r=n.n(o),i=n("TSYQ"),c=n.n(i),l=n("qFKp"),a=n("pr86"),s=n("i/MG"),u=n("xp8i");function f(e){const{url:t,title:n,subtitle:o,removeBtnLabel:i,onClick:f,onClickFavorite:d,onClickRemove:m,isActive:h,isSelected:b,isFavorite:g,isMobile:p=!1,showFavorite:E=!0,...w}=e;return r.a.createElement("a",{...w,className:c()(u.itemRow,h&&!b&&u.active,p&&u.mobile,b&&u.selected),onClick:v.bind(null,f),href:t,"data-role":"list-item","data-active":h},E&&d&&r.a.createElement(a.a,{className:c()(u.favoriteButton,g&&u.favorite,l.CheckMobile.any()&&u.mobile),isActive:h&&!b,isFilled:g,onClick:v.bind(null,d),"data-name":"list-item-favorite-button","data-favorite":g}),r.a.createElement("div",{className:c()(u.itemInfo,!E&&u.itemInfoWithPadding)},r.a.createElement("div",{className:c()(u.title,h&&!b&&u.active,p&&u.mobile),"data-name":"list-item-title"},n),r.a.createElement("div",{className:c()(u.details,h&&!b&&u.active,p&&u.mobile)},o)),r.a.createElement(s.a,{className:u.removeButton,isActive:h&&!b,onClick:v.bind(null,m),"data-name":"list-item-remove-button",title:i}))}function v(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("YFKU");var o=n("q1tI"),r=n("TSYQ"),i=n("Iivm"),c=n("To8B"),l=n("kXJy");const a={remove:window.t("Remove")};function s(e){const{className:t,isActive:n,onClick:s,title:u,hidden:f,"data-name":v="remove-button",...d}=e;return o.createElement(i.a,{...d,"data-name":v,className:r(l.button,"apply-common-tooltip",n&&l.active,f&&l.hidden,t),icon:c,onClick:s,title:u||a.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"),r=n("Eyy1"),i=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(i.c)(),[f,v]=Object(o.useState)({reference:n,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){v(t=>({...t,scrollPosTop:e})),Object(r.ensureNotNull)(a.current).scrollTop=e},onHorizontalChange:function(e){v(t=>({...t,scrollPosLeft:e})),Object(r.ensureNotNull)(a.current).scrollLeft=e},visible:s}),d=Object(o.useCallback)(()=>{if(!a.current)return;const{clientHeight:e,scrollHeight:t,scrollTop:o,clientWidth:r,scrollWidth:i,scrollLeft:c}=a.current,l=n.current?n.current.offsetTop:0;v(n=>({...n,containerHeight:e-l,contentHeight:t-l,scrollPosTop:o,containerWidth:r,contentWidth:i,scrollPosLeft:c}))},[]);function m(){v(e=>({...e,scrollPosTop:Object(r.ensureNotNull)(a.current).scrollTop,scrollPosLeft:Object(r.ensureNotNull)(a.current).scrollLeft}))}return Object(o.useEffect)(()=>{s&&d(),v(e=>({...e,visible:s}))},[s]),Object(o.useEffect)(()=>{const e=a.current;return e&&e.addEventListener("scroll",m),()=>{e&&e.removeEventListener("scroll",m)}},[a]),[f,t?l:u,a,d]}},pr86:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n("YFKU");var o=n("q1tI"),r=n("TSYQ"),i=n("Iivm"),c=n("sg5d"),l=n("XfUw"),a=n("fEjm");const s={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function u(e){const{className:t,isFilled:n,isActive:u,onClick:f,...v}=e;return o.createElement(i.a,{...v,className:r(a.favorite,"apply-common-tooltip",n&&a.checked,u&&a.active,t),icon:n?c:l,onClick:f,title:n?s.remove:s.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"}}}]);
|