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.
 
 
 

5 lines
14 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{"8NUT":function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-KW8170fm",submitButton:"submitButton-KW8170fm",buttons:"buttons-KW8170fm"}},AnDN:function(e,t,n){"use strict";var o=n("q1tI"),l=n.n(o),r=n("TSYQ"),i=n.n(r),c=n("Eyy1"),s=n("ECWH"),a=n("ldG2"),u=n("xADF"),d=n("Iivm"),b=n("VGf/"),h=n("lVA2");function f(e){const{isDropped:t}=e;return l.a.createElement(d.a,{className:i()(h.icon,t&&h.dropped),icon:b})}function m(e){const{className:t,disabled:n,isDropped:o}=e;return l.a.createElement("span",{className:i()(h.button,n&&h.disabled,t)},l.a.createElement(f,{isDropped:o}))}var p=n("9dlw"),O=n("UmON");n.d(t,"a",(function(){return v}));const v=l.a.forwardRef((e,t)=>{const{listboxId:n,className:r,listboxClassName:d,listboxTabIndex:b,hideArrowButton:h,matchButtonAndListboxWidths:f,disabled:v,isOpened:g,scrollWrapReference:C,listboxReference:j,size:w="medium",onClose:E,onOpen:y,onListboxFocus:S,onListboxBlur:N,onListboxKeyDown:_,buttonChildren:k,children:x,caretClassName:B,listboxAria:R,...z}=e,F=Object(o.useRef)(null),D=Object(o.useCallback)(()=>{const e=Object(c.ensureNotNull)(F.current).getBoundingClientRect(),t={x:e.left,y:e.top+e.height};return f&&(t.overrideWidth=e.width),t},[]),W=!h&&l.a.createElement(u.b,null,l.a.createElement(m,{isDropped:g,disabled:v,className:B}));return l.a.createElement(l.a.Fragment,null,l.a.createElement(a.a,{...z,"data-role":"listbox","aria-expanded":g,"aria-owns":n,"aria-controls":n,"aria-disabled":v,disabled:v,className:i()(O.button,r),size:w,ref:Object(s.a)([F,t]),middleSlot:l.a.createElement(u.c,null,l.a.createElement("span",{className:i()(O["button-children"],h&&O.hiddenArrow)},k)),endSlot:W}),l.a.createElement(p.a,{...R,id:n,className:d,tabIndex:b,isOpened:g,position:D,onClose:E,onOpen:y,doNotCloseOn:F.current,reference:j,scrollWrapReference:C,onFocus:S,onBlur:N,onKeyDown:_},x))});v.displayName="DisclosureMenuView"},GQPI:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var o=n("q1tI"),l=n("/3z9");function r(e){return Object(o.useCallback)(t=>{switch(t){case 13:case 32:return e(),!0;default:return!1}},[e])}function i(e,t){return Object(o.useCallback)(n=>{if(!e)return!1;switch(n){case 9:case l.Modifiers.Shift+9:case 27:return t(),!0;default:return!1}},[e,t])}function c(e,t){return Object(o.useCallback)(n=>{if(e)return!1;switch(n){case 40:case 38:return t(),!0;default:return!1}},[e,t])}},PECq:function(e,t,n){"use strict";var o=n("q1tI"),l=n.n(o),r=n("Eyy1"),i=n("RMU6"),c=n("K9GE");const s={duration:200},a={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function u(e,t){const n=a[e];return t[n.scrollSize]>t[n.clientSize]}function d(e,t,n,o,l,r){const i=function(e,t,n){const o=a[e];return{start:0,
middle:-1*(Math.floor(n[o.size]/2)-Math.floor(t[o.size]/2)),end:-1*(n[o.size]-t[o.size])}}(e,o,l);let s=0;if(function(e,t,n){const o=a[e];return t[o.start]<n[o.start]-n[o.size]/2||t[o.end]>n[o.end]+n[o.size]/2}(e,o,l))s=i.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,l=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),r=Math.min(...l.keys());return l.get(r)}(function(e,t,n){const o=a[e],l=t[o.start]+Math.floor(t[o.size]/2),r=n[o.start]+Math.floor(n[o.size]/2);return{start:t[o.start]-n[o.start],middle:l-r,end:t[o.end]-n[o.end]}}(e,o,l));s=void 0!==t?i[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=c.b,func:o=c.c.easeInOutCubic,onScrollEnd:l,target:r,wrap:i,direction:s="vertical"}=e;let{targetRect:a,wrapRect:u}=e;a=null!=a?a:r.getBoundingClientRect(),u=null!=u?u:i.getBoundingClientRect();const d=("vertical"===s?a.top-u.top:a.left-u.left)+t,b="vertical"===s?"scrollTop":"scrollLeft",h=i?i[b]:0;let f,m=0;return m=window.requestAnimationFrame((function e(t){let r;if(f?r=t-f:(r=0,f=t),r>=n)return i[b]=h+d,void(l&&l());const c=h+d*o(r/n);i[b]=Math.floor(c),m=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(m),l&&l()}}({...r,target:t,targetRect:o,wrap:n,wrapRect:l,additionalScroll:s,direction:e})}class b{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=s){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),u("vertical",this._container)&&(this._stopVerticalScroll=d("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),u("horizontal",this._container)&&(this._stopHorizontalScroll=d("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}var h=n("ECWH"),f=n("N5tr"),m=n("hbEN"),p=n("UXvI");var O=n("AnDN"),v=n("GQPI"),g=n("zS+2"),C=n("/3z9"),j=n("p4SX");function w(e){return!e.readonly}function E(e,t){var n
;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:Object(i.a)(e,"item",null==t?void 0:t.value)}function y(e){var t,n;const{selectedItem:o,placeholder:r}=e;if(!o)return l.a.createElement("span",{className:j.placeholder},r);const i=null!==(n=null!==(t=o.selectedContent)&&void 0!==t?t:o.content)&&void 0!==n?n:o.value;return l.a.createElement("span",null,i)}n.d(t,"a",(function(){return S}));const S=l.a.forwardRef((e,t)=>{const{id:n,menuClassName:c,menuItemClassName:s,tabIndex:a=0,disabled:u,highlight:d,intent:j,hideArrowButton:S,placeholder:N,value:_,"aria-labelledby":k,onFocus:x,onBlur:B,onClick:R,onChange:z,...F}=e;let{items:D}=e;if(N){D=[{value:void 0,content:N,id:Object(i.a)(n,"placeholder")},...D]}const{isOpened:W,isFocused:K,highlight:A,intent:M,open:I,onOpen:q,close:T,toggle:L,buttonFocusBindings:H,onButtonClick:V,buttonRef:J,listboxRef:U}=Object(g.a)({disabled:u,intent:j,highlight:d,onFocus:x,onBlur:B,onClick:R}),Y=function(e){const t=Object(o.useRef)(null);return Object(o.useEffect)(()=>(t.current=new b(e),()=>Object(r.ensureNotNull)(t.current).destroy()),[]),t}(),G=Object(o.useRef)(null),P=Object(o.useRef)(new WeakMap),Q=D.filter(w),X=Q.find(e=>e.value===_);Object(o.useEffect)(()=>se(),[X,se]);const Z=Object(i.b)(k,n),$=Z.length>0?Z:void 0,ee=Object(i.a)(n,"listbox"),te=Object(o.useMemo)(()=>({role:"listbox","aria-labelledby":k,"aria-activedescendant":E(n,X)}),[k,X]),ne=function(e,t,n){const l=Object(o.useCallback)(()=>{const o=e.findIndex(e=>e.value===t);o!==e.length-1&&n&&n(e[o+1].value)},[e,t,n]),r=Object(o.useCallback)(()=>{const o=e.findIndex(e=>e.value===t);if(0===o)return;n&&n(e[o>0?o-1:0].value)},[e,t,n]),i=Object(o.useCallback)(()=>{n&&n(e[0].value)},[n,e]),c=Object(o.useCallback)(()=>{n&&n(e[e.length-1].value)},[n,e]);return Object(o.useCallback)(e=>{switch(e){case 40:return l(),!0;case 38:return r(),!0;case 34:return c(),!0;case 33:return i(),!0;default:return!1}},[l,r,i,c])}(Q,_,z),oe=Object(v.c)(L),le=Object(v.a)(W,T),re=Object(v.b)(W,I),ie=function(e){const t=Object(o.useRef)(""),n=Object(o.useMemo)(()=>Object(m.default)(()=>{t.current=""},500),[]),l=Object(o.useMemo)(()=>Object(p.default)(e,200),[e]);return Object(o.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,l(t.current,e),n())},[n,l])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return"string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)})}(Q,e);void 0!==n&&z&&(t.stopPropagation(),W||I(),z(n.value))});return l.a.createElement(O.a,{...F,...H,id:n,role:"button",tabIndex:u?-1:a,"aria-haspopup":"listbox","aria-labelledby":$,disabled:u,hideArrowButton:S,isFocused:K,isOpened:W,highlight:A,intent:M,ref:Object(h.a)([J,t]),onClick:V,onOpen:function(){se({duration:0}),q()},onClose:T,onKeyDown:function(e){const t=Object(C.hashFromEvent)(e);if(oe(t)||le(t)||re(t))return void e.preventDefault();ie(e)},listboxId:ee,listboxTabIndex:-1,listboxClassName:c,listboxAria:te,listboxReference:U,
scrollWrapReference:function(e){G.current=e,Object(r.ensureNotNull)(Y.current).setContainer(e)},onListboxKeyDown:function(e){const t=Object(C.hashFromEvent)(e);if(ne(t)||oe(t)||le(t))return void e.preventDefault();ie(e)},buttonChildren:l.a.createElement(y,{selectedItem:X,placeholder:N})},D.map((e,t)=>{var o;if(e.readonly)return l.a.createElement(l.a.Fragment,{key:"readonly_item_"+t},e.content);const r=E(n,e);return l.a.createElement(f.b,{key:r,id:r,className:s,role:"option","aria-selected":_===e.value,isActive:_===e.value,label:null!==(o=e.content)&&void 0!==o?o:e.value,onClick:ce,onClickArg:e.value,reference:t=>function(e,t){P.current.set(e,t)}(e,t)})}));function ce(e){z&&z(e)}function se(e){if(W&&void 0!==X){const t=P.current.get(X);null!=t&&Object(r.ensureNotNull)(Y.current).scrollTo(t,e)}}});S.displayName="Select"},RMU6:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));const o=/\s/g;function l(e){return"string"==typeof e}function r(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function i(e){return e.trim().length>0}function c(e){return e.replace(o,"-")}function s(...e){const t=e.map(r).filter(l).filter(i).map(c);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function a(...e){return e.map(r).filter(l).filter(i).join(" ")}},UmON:function(e,t,n){e.exports={button:"button-1WqyvKNY","button-children":"button-children-1WqyvKNY",hiddenArrow:"hiddenArrow-1WqyvKNY",invisibleFocusHandler:"invisibleFocusHandler-1WqyvKNY"}},"VGf/":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 7" width="11" height="7" fill="none"><path stroke="currentColor" stroke-width="1.3" d="M.5 1.5l5 4 5-4"/></svg>'},lVA2:function(e,t,n){e.exports={button:"button-14c_DKWJ",disabled:"disabled-14c_DKWJ",hidden:"hidden-14c_DKWJ",icon:"icon-14c_DKWJ",dropped:"dropped-14c_DKWJ"}},p4SX:function(e,t,n){e.exports={placeholder:"placeholder-1J6emFeA"}},tmL0:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("q1tI"),l=n.n(o),r=n("x0D+"),i=n("Eyy1"),c=n("qFKp");function s(e){const{reference:t,children:n,...i}=e,s=Object(o.useRef)(null),u=Object(o.useCallback)(e=>{t&&(t.current=e),c.CheckMobile.iOS()&&(null!==s.current&&Object(r.enableBodyScroll)(s.current),s.current=e,null!==s.current&&Object(r.disableBodyScroll)(s.current,{allowTouchMove:a(s)}))},[t]);return l.a.createElement("div",{ref:u,...i},n)}function a(e){return t=>{const n=Object(i.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},ycFu:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n("q1tI"),l=n.n(o),r=n("TSYQ"),i=n.n(r),c=n("mwqF"),s=n("Eyy1"),a=(n("YFKU"),n("/3z9")),u=n("g89m"),d=n("8NUT");class b extends l.a.PureComponent{constructor(){super(...arguments),this._dialogRef=l.a.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props
;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;switch(Object(a.hashFromEvent)(e)){case 13:!n&&o&&(e.preventDefault(),t())}}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:o,footerLeftRenderer:r,submitButtonText:i,submitButtonDisabled:c,defaultActionOnClose:s,submitOnEnterKey:a,...d}=this.props;return l.a.createElement(u.a,{...d,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){Object(s.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:o,submitButtonText:r,submitButtonDisabled:s,onSubmit:a,cancelButtonText:u,showCancelButton:b=!0,submitButtonClassName:h,cancelButtonClassName:f,buttonsWrapperClassName:m}=this.props;return l.a.createElement(l.a.Fragment,null,t(e),l.a.createElement("div",{className:d.footer},n&&n(e.isSmallWidth),l.a.createElement("div",{className:i()(d.buttons,m)},o,b&&l.a.createElement(c.a,{className:f,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=u?u:window.t("Cancel")),l.a.createElement("span",{className:d.submitButton},l.a.createElement(c.a,{className:h,disabled:s,name:"submit",onClick:a,"data-name":"submit-button"},null!=r?r:window.t("Ok"))))))}}}b.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},"zS+2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("q1tI"),l=n("Eyy1"),r=n("SpAO"),i=n("3F0O"),c=n("d700");function s(e){const{disabled:t,intent:n,highlight:s,onFocus:a,onBlur:u,onClick:d}=e,[b,h]=Object(o.useState)(!1),[f,m]=Object(r.a)(),p=f||b,O=null!=s?s:p,v=null!=n?n:p?"primary":"default",g=Object(o.useRef)(null),C=Object(o.useCallback)(()=>Object(l.ensureNotNull)(g.current).focus(),[g]),j=Object(o.useRef)(null),w=Object(o.useCallback)(()=>Object(l.ensureNotNull)(j.current).focus(),[j]),E=Object(o.useCallback)(()=>h(!0),[h]),y=Object(o.useCallback)(()=>{h(!1);const{activeElement:e}=document;e&&Object(c.b)(e)||C()},[h,C]),S=Object(o.useCallback)(()=>{b?y():E()},[b,y,E]),N=t?[]:[a,m.onFocus],_=t?[]:[u,m.onBlur],k=t?[]:[d,S],x=Object(i.a)(...N),B=Object(i.a)(..._),R=Object(i.a)(...k);return{isOpened:b,isFocused:p,highlight:O,intent:v,open:E,onOpen:w,close:y,toggle:S,buttonFocusBindings:{onFocus:x,onBlur:B},onButtonClick:R,buttonRef:g,listboxRef:j}}}}]);