Files
ai/charting_library/bundles/45.4e59ba8d1e13aa4689f4.js
2021-09-10 14:56:00 +00:00

3 lines
8.9 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},OL6p:function(e,t,n){e.exports={icon:"icon-26rGYU-z"}},R5JZ:function(e,t,n){"use strict";function c(e,t,n,c,r){function o(r){if(e>r.timeStamp)return;const o=r.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===c&&(t.contains(o)||n(r))}return r.click&&c.addEventListener("click",o,!1),r.mouseDown&&c.addEventListener("mousedown",o,!1),r.touchEnd&&c.addEventListener("touchend",o,!1),r.touchStart&&c.addEventListener("touchstart",o,!1),()=>{c.removeEventListener("click",o,!1),c.removeEventListener("mousedown",o,!1),c.removeEventListener("touchend",o,!1),c.removeEventListener("touchstart",o,!1)}}n.d(t,"a",(function(){return c}))},ijHL:function(e,t,n){"use strict";function c(e){return o(e,u)}function r(e){return o(e,a)}function o(e,t){const n=Object.entries(e).filter(t),c={};for(const[r,o]of n)c[r]=o;return c}function u(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return r}))},qZIh:function(e,t,n){"use strict";var c=n("qFKp"),r=n("mrSG"),o=n("q1tI"),u=n.n(o),a=n("TSYQ"),l=n.n(a),i=n("Eyy1"),s=n("3F0O"),f=n("xADF"),b=n("wHCJ"),d=n("Iivm"),p=n("OL6p"),m=n("yd0C");function h(e){return o.createElement(d.a,{className:p.icon,icon:m})}var v=n("SpAO"),g=n("wnq4");var O=n("8Rai"),j=n("Hr11");const E={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function w(e,t,n){const c=[],r=n;let o=0,u=0;const a=e.length,l=r.length;let i=-1,s=0;const f=[],b=a-1,d=[];let p;for(;o<a&&u<l;){const n=e.charAt(o),a=r.charAt(u),l=E[n];l?(a.match(l.pattern)?(c.push(a),l.recursive&&(-1===i?i=o:o===b&&o!==i&&(o=i-1),b===i&&(o-=1)),o+=1):a===p?(s--,p=void 0):l.optional?(o+=1,u-=1):l.fallback?(c.push(l.fallback),o+=1,u-=1):d.push({p:u,v:a,e:l.pattern}),u+=1):(t||c.push(n),a===n?(f.push(u),u+=1):(p=n,f.push(u+s),s++),o+=1)}const m=e.charAt(b);a!==l+1||E[m]||c.push(m);const h=c.join("");return[h,function(e,t){const n={};for(let c=0;c<t.length;c++)n[t[c]+0]=1;return n}(0,f),d]}function N(e,t,n){const c=function(e){let t=!0;for(let n=0;n<e.length;n++){const c=E[e.charAt(n)];if(c&&c.recursive){t=!1;break}}return t?e.length:void 0}(e),[r,u]=w(e,!1,t),[a,l]=Object(o.useState)(r),[s,f]=Object(o.useState)(0),[b,d]=Object(o.useState)(!1),p=Object(o.useRef)(u),m=Object(o.useRef)(a);return Object(o.useEffect)(()=>{const[n,c]=w(e,!1,t);l(n),h(c)},[t,e]),Object(o.useLayoutEffect)(()=>{const e=Object(i.ensureNotNull)(n.current);b&&(e.setSelectionRange(s,s),d(!1)),f(S(e))},[b]),[t,m,{onChange:function(){const t=Object(i.ensureNotNull)(n.current),c=t.value,[r,o]=w(e,!1,c);l(r),m.current=r;const u=h(o),b=function(e,t,n,c,r,o){if(e!==t){const u=t.length,a=e.length;let l=0,i=0,s=0,f=0,b=0
;for(b=c;b<u&&r[b];b++)i++;for(b=c-1;b>=0&&r[b];b--)l++;for(b=c-1;b>=0;b--)r[b]&&s++;for(b=n-1;b>=0;b--)o[b]&&f++;if(c>a)c=10*u;else if(n>=c&&n!==a){if(o[c]){const e=c;c-=f-s,r[c-=l]&&(c=e)}}else c>n&&(c+=s-f,c+=i)}return c}(a,r,s,S(t),o,u);f(b),d(!0)},onSelect:function(){const e=Object(i.ensureNotNull)(n.current);f(S(e))},maxLength:c}];function h(e){const t=p.current;return p.current=e,t}}function S(e){return e.selectionStart||0}function k(e){const{value:t,mask:n,onChange:c}=e,a=Object(r.a)(e,["value","mask","onChange"]),l=Object(o.useRef)(null),[i,s,f]=N(n,t,l);return Object(o.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=l.current)},[e.reference]),u.a.createElement(b.a,Object.assign({},a,{maxLength:f.maxLength,value:i,autoComplete:"off",reference:function(e){l.current=e},onChange:function(){f.onChange(),c(s.current)},onSelect:f.onSelect}))}var C=n("/3z9"),x=n("9dlw"),y=n("N5tr"),L=n("Y7w9");const R=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[c,r]=[H(t.toString()),H(n.toString())],o=`${c}:${r}`,u=D(o)?o:F(o);e.push(u)}return e})();function A(e){let t=!1;const n=Object(o.useRef)(null),r=Object(o.useRef)(null),a=Object(o.useRef)(null),s=Object(o.useRef)(null),[b,d]=Object(v.a)(),[p,m]=Object(o.useState)(e.value),g=B(p),E=D(g)?g:F(g),[w,N]=Object(o.useState)(E),S=b||q().some(e=>null!==e&&e.contains(document.activeElement));Object(o.useLayoutEffect)(()=>m(e.value),[e.value]),Object(o.useLayoutEffect)(()=>N(E),[p,S]),Object(o.useEffect)(()=>V(w===E?"auto":"smooth"),[w]);const A=Object(L.lowerbound)(R,E,(e,t)=>e<t);let H=R;R[A]!==E&&(H=[...R],H.splice(A,0,E));const I=Object(O.a)({mouseDown:!0,touchStart:!0,handler:function(e){null!==r.current&&S&&e.target instanceof Node&&null!==a.current&&!a.current.contains(e.target)&&r.current.blur()}});return u.a.createElement("div",{className:l()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=Object(C.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(H.indexOf(w)+H.length-1)%H.length;N(H[t])}if(40===t){e.preventDefault();const t=(H.indexOf(w)+H.length+1)%H.length;N(H[t])}},onFocus:function(e){J(e)||d.onFocus(e)},onBlur:function(e){J(e)||d.onBlur(e)},ref:I},u.a.createElement(k,{disabled:e.disabled,name:e.name,endSlot:u.a.createElement(f.b,{icon:!0},u.a.createElement(h,null)),reference:r,containerReference:n,mask:"09:00",value:p,onFocus:function(e){setTimeout(Z,0)},onBlur:function(e){J(e)||z(p)},onChange:function(t){m(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=Object(C.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),z(w),Object(i.ensureNotNull)(r.current).blur());27===t&&(e.preventDefault(),Object(i.ensureNotNull)(r.current).blur())}}),u.a.createElement(x.a,{onOpen:function(){V()},onClose:function(){},position:function(){const e=Object(i.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,c=e.top;let r=231,o=e.bottom;if(r>c&&r>t){const n=Object(j.clamp)(r,0,c),u=Object(j.clamp)(r,0,t);r=Math.max(n,u),
o=n>u?e.top-n:e.bottom}else r>t&&(o=e.top-r);return{x:e.left,y:o,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:a},H.map(e=>u.a.createElement(y.b,{key:e,label:e,isActive:e===E,isHovered:e===w,reference:e===w?T:void 0,onClick:$,onClickArg:e}))));function z(n){const c=B(n),r=D(c)?c:F(c);m(r),t||(t=!0,e.onChange(r))}function T(e){s.current=e}function $(e){if(z(Object(i.ensureDefined)(e)),c.isIE){const e=window.document.activeElement;e instanceof Node&&HTMLElement.prototype.blur.call(e)}else Object(i.ensureNotNull)(a.current).blur()}function J(e){return b&&(null!==M(document.activeElement)||null!==M(e.relatedTarget))}function M(e){return e instanceof Node&&q().find(t=>null!==t&&t.contains(e))||null}function q(){return[a.current,r.current]}function V(e="auto"){if(null!==s.current){const t=Object(i.ensureNotNull)(a.current).getBoundingClientRect(),n=s.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&s.current.scrollIntoView({behavior:e})}}function Z(){const e=r.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function B(e){const[t="",n=""]=e.split(":"),[c,r]=[H(t),I(n)];return`${c}:${r}`}function D(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function F(e){const[t,n]=e.split(":"),[c,r]=[Object(j.clamp)(parseInt(t),0,23),Object(j.clamp)(parseInt(n),0,59)],[o,u]=[H(c.toString()),I(r.toString())];return`${o}:${u}`}function H(e){return e.slice(0,2).padStart(2,"0")}function I(e){return e.slice(0,2).padEnd(2,"0")}n.d(t,"a",(function(){return z}));const z=c.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:c,className:a}=e,d=Object(r.a)(e,["onChange","onFocus","value","className"]),p=Object(o.useRef)(null),[m,O]=Object(v.a)(),j=Object(s.a)(O.onBlur,(function(){p.current&&c&&(p.current.defaultValue=c)}));return Object(o.useLayoutEffect)(()=>{p.current&&c&&(p.current.defaultValue=c)},[]),Object(o.useLayoutEffect)(()=>{p.current&&c&&(p.current.value=c)},[c]),u.a.createElement("div",{className:l()(g.wrap,a)},u.a.createElement(b.a,Object.assign({},d,{type:"text",endSlot:u.a.createElement(f.b,{icon:!0},u.a.createElement(h,null)),value:c,highlight:m,intent:m?"primary":void 0,onFocus:function(e){Object(i.ensureNotNull)(p.current).focus(),n&&n(e)},onChange:function(){}})),u.a.createElement("input",Object.assign({},O,{disabled:e.disabled,className:g.input,type:"time",onBlur:j,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:p})))}:A},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n("ASyk");const r={SmallHeight:c["small-height-breakpoint"],TabletSmall:c["tablet-small-breakpoint"],TabletNormal:c["tablet-normal-breakpoint"]}},wnq4:function(e,t,n){e.exports={wrap:"wrap-3JkbcgoB",input:"input-3JkbcgoB"}},yd0C:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="currentColor" d="M1 8.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zM8.5 0a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM9 9V3H8v5H5v1h4z"/></svg>'}}]);