scorer-ui-kit 2.9.0 → 2.9.2

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.
@@ -1,10 +1,10 @@
1
1
  import styled, { css, createGlobalStyle, keyframes } from 'styled-components';
2
- import React__default, { useState, useEffect, useCallback, useRef, createElement, Fragment, useContext, useMemo, useLayoutEffect, createContext, useReducer, forwardRef, useImperativeHandle } from 'react';
2
+ import React__default, { useState, useEffect, useCallback, useRef, createElement, Fragment, useContext, useMemo, useLayoutEffect, forwardRef, useImperativeHandle, createContext, useReducer } from 'react';
3
3
  import { IconSVGs } from '@future-standard/icons';
4
4
  export { IconSVGs } from '@future-standard/icons';
5
5
  import ReactDom from 'react-dom';
6
+ import { isEqual, format, min, endOfDay, set, startOfDay, eachWeekOfInterval, startOfMonth, endOfMonth, isAfter, add, addMonths, eachDayOfInterval, endOfWeek, isToday, isSameMonth, intervalToDuration, isWithinInterval, isSameDay } from 'date-fns';
6
7
  import { useHistory, Link, useLocation } from 'react-router-dom';
7
- import { format, min, endOfDay, set, isEqual, startOfDay, eachWeekOfInterval, startOfMonth, endOfMonth, isAfter, add, addMonths, eachDayOfInterval, endOfWeek, isToday, isSameMonth, intervalToDuration, isWithinInterval, isSameDay } from 'date-fns';
8
8
  import { ja, enUS } from 'date-fns/locale';
9
9
  import isequal from 'lodash.isequal';
10
10
  import debounce from 'lodash.debounce';
@@ -793,24 +793,6 @@ var typography = {
793
793
  "textDecoration": "none",
794
794
  "color": "var(--grey-a11)"
795
795
  }
796
- },
797
- "modal": {
798
- "title": {
799
- "textAlign": "left",
800
- "fontSize": "20px",
801
- "fontWeight": 400,
802
- "textShadow": "0px 0px 10px var(--white-a5)",
803
- "textDecoration": "none",
804
- "color": "var(--grey-11)"
805
- },
806
- "basicContent": {
807
- "textAlign": "left",
808
- "fontSize": "14px",
809
- "fontWeight": 400,
810
- "lineHeight": "25px",
811
- "textDecoration": "none",
812
- "color": "var(--grey-11)"
813
- }
814
796
  }
815
797
  };
816
798
 
@@ -1344,17 +1326,6 @@ var styles = {
1344
1326
  "borderColor": "var(--primary-7)",
1345
1327
  "border": "var(--primary-7) 1px solid"
1346
1328
  }
1347
- },
1348
- "modal": {
1349
- "overlay": {
1350
- "backgroundColor": "var(--grey-a3)"
1351
- },
1352
- "container": {
1353
- "boxShadow": "0px 10px 15px 0px var(--primary-a1)",
1354
- "backgroundColor": "var(--grey-1)",
1355
- "borderColor": "var(--grey-6)",
1356
- "border": "var(--grey-6) 1px solid"
1357
- }
1358
1329
  }
1359
1330
  };
1360
1331
 
@@ -2261,7 +2232,7 @@ var InputActionButton = styled.button.attrs({
2261
2232
  var FeedbackContainer = styled.div(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n\n background-color: transparent;\n border: 1px solid transparent;\n\n border-left: none;\n border-radius: 0 3px 3px 0;\n overflow: hidden;\n\n display:flex;\n justify-content:left;\n align-items:center;\n"])));
2262
2233
  var FeedbackMessage = styled.div(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n flex: 0 1 400px;\n padding: 0 10px 0 0;\n\n font-weight: 500;\n color: var(--white-1);\n"])));
2263
2234
  var FeedbackIcon = styled.div(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n flex: 0 0 40px;\n width: 40px;\n display: flex;\n justify-content:center;\n align-items:center;\n\n ", " {\n [stroke]{\n stroke: var(--white-1);\n }\n }\n"])), IconWrapper);
2264
- var StyledInput = styled.input(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n ", ";\n\n font-family: var(--font-data);\n\n height: var(--input-height);\n width: 100%;\n border-radius: 3px;\n\n padding: 0 15px 0 15px;\n box-sizing: border-box;\n outline: none;\n\n color: var(--input-color-default);\n font-size: 14px;\n\n transition: \n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n &::placeholder {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n font-weight: 400;\n }\n\n"])), removeAutoFillStyle, function (_ref) {
2235
+ var StyledInput = styled.input(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n ", ";\n\n ", ";\n\n font-family: var(--font-data);\n\n height: var(--input-height);\n width: 100%;\n border-radius: 3px;\n\n padding: 0 15px 0 15px;\n box-sizing: border-box;\n outline: none;\n\n color: var(--input-color-default);\n font-size: 14px;\n\n transition:\n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n &::placeholder {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n font-weight: 400;\n }\n\n &:lang(ja)::placeholder {\n font-style: normal;\n };\n"])), removeAutoFillStyle, function (_ref) {
2265
2236
  var fieldState = _ref.fieldState;
2266
2237
  return css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteralLoose(["\n border: 1px solid var(--input-", "-border-color);\n background: var(--input-", "-background-color);\n box-shadow: var(--input-box-shadow-x) var(--input-box-shadow-y) var(--input-box-shadow-blur) var(--input-box-shadow-spread) var(--input-", "-shadow-color, transparent);\n "])), fieldState, fieldState, fieldState);
2267
2238
  });
@@ -2272,7 +2243,7 @@ var InputContainer = styled.div(_templateObject8$3 || (_templateObject8$3 = _tag
2272
2243
  var Container$5 = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n ", "\n\n"])), function (_ref3) {
2273
2244
  var fieldState = _ref3.fieldState,
2274
2245
  showFeedback = _ref3.showFeedback;
2275
- return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n \n display: flex;\n position: relative;\n flex-direction: row;\n\n ", "{\n\n &:disabled {\n cursor: not-allowed;\n }\n \n ", ";\n\n }\n\n ", " {\n ", ";\n border-color: var(--input-", "-border-color);\n background: var(--input-", "-border-color);\n }\n\n &:focus-within ", " {\n border-color: var(--input-", "-focused-border-color, var(--input-", "-border-color));\n box-shadow: var(--input-focused-box-shadow-x) var(--input-focused-box-shadow-y) var(--input-focused-box-shadow-blur) var(--input-focused-box-shadow-spread) var(--input-", "-focused-shadow-color);\n }\n "])), StyledInput, ['default', 'disabled'].indexOf(fieldState) === -1 && showFeedback && css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n "]))), FeedbackContainer, ['default', 'disabled'].indexOf(fieldState) !== -1 && css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n display: none;\n "]))), fieldState, fieldState, StyledInput, fieldState, fieldState, fieldState);
2246
+ return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n\n display: flex;\n position: relative;\n flex-direction: row;\n\n ", "{\n\n &:disabled {\n cursor: not-allowed;\n }\n\n ", ";\n\n }\n\n ", " {\n ", ";\n border-color: var(--input-", "-border-color);\n background: var(--input-", "-border-color);\n }\n\n &:focus-within ", " {\n border-color: var(--input-", "-focused-border-color, var(--input-", "-border-color));\n box-shadow: var(--input-focused-box-shadow-x) var(--input-focused-box-shadow-y) var(--input-focused-box-shadow-blur) var(--input-focused-box-shadow-spread) var(--input-", "-focused-shadow-color);\n }\n "])), StyledInput, ['default', 'disabled'].indexOf(fieldState) === -1 && showFeedback && css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n "]))), FeedbackContainer, ['default', 'disabled'].indexOf(fieldState) !== -1 && css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n display: none;\n "]))), fieldState, fieldState, StyledInput, fieldState, fieldState, fieldState);
2276
2247
  });
2277
2248
  var Input = function Input(_ref4) {
2278
2249
  var _ref4$type = _ref4.type,
@@ -2372,16 +2343,16 @@ var Label = function Label(_ref3) {
2372
2343
 
2373
2344
  var _excluded$6 = ["unit", "label", "name", "type", "placeholder", "defaultValue", "fieldState", "required", "className"];
2374
2345
  var _templateObject$j, _templateObject2$d, _templateObject3$c, _templateObject4$b, _templateObject5$9, _templateObject6$5, _templateObject7$5;
2375
- var StyledInput$1 = styled.input(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n ", ";\n\n font-family: var(--font-data);\n line-height: var(--input-compact-height);\n\n font-size: 14px;\n flex: 1;\n color: var(--input-color-default);\n width: 100%;\n border: none;\n background-color: transparent;\n box-sizing: border-box;\n outline: none;\n \n &::placeholder {\n color: var(--input-color-placeholder);\n font-style: italic;\n }\n\n &:disabled {\n cursor: not-allowed;\n color: var(--input-color-disabled);\n }\n"])), removeAutoFillStyle);
2376
- var InputContainer$1 = styled.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n display: flex;\n height: var(--input-compact-height);\n padding: 0 8px;\n align-items: center;\n gap: 8px;\n position: relative;\n border-radius: 3px;\n \n ", ";\n\n ", "\n\n"])), function (_ref) {
2346
+ var StyledInput$1 = styled.input(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n ", ";\n\n font-family: var(--font-data);\n line-height: var(--input-compact-height);\n\n font-size: 14px;\n flex: 1;\n color: var(--input-color-default);\n width: 100%;\n border: none;\n background-color: transparent;\n box-sizing: border-box;\n outline: none;\n\n &::placeholder {\n color: var(--input-color-placeholder);\n font-style: italic;\n }\n\n &:lang(ja)::placeholder {\n font-style: normal;\n };\n\n &:disabled {\n cursor: not-allowed;\n color: var(--input-color-disabled);\n }\n"])), removeAutoFillStyle);
2347
+ var InputContainer$1 = styled.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n display: flex;\n height: var(--input-compact-height);\n padding: 0 8px;\n align-items: center;\n gap: 8px;\n position: relative;\n border-radius: 3px;\n\n ", ";\n\n ", "\n\n"])), function (_ref) {
2377
2348
  var fieldState = _ref.fieldState;
2378
- return css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n border: 1px solid var(--input-", "-border-color);\n background: var(--input-", "-background-color);\n transition: \n border var(--speed-normal) var(--easing-primary-out),\n background-color var(--speed-normal) var(--easing-primary-out);\n "])), fieldState, fieldState);
2349
+ return css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n border: 1px solid var(--input-", "-border-color);\n background: var(--input-", "-background-color);\n transition:\n border var(--speed-normal) var(--easing-primary-out),\n background-color var(--speed-normal) var(--easing-primary-out);\n "])), fieldState, fieldState);
2379
2350
  }, function (_ref2) {
2380
2351
  var hasAction = _ref2.hasAction;
2381
2352
  return hasAction && css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n ", "{\n padding-right: 200px;\n\n // Used to control password manager injection.\n background-position: calc(100% - 50px) 50% !important;\n }\n "])), StyledInput$1);
2382
2353
  });
2383
2354
  var UnitKey = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n flex: 0 1;\n font-size: 12px;\n font-family: var(--font-ui);\n color: var(--input-color-unit);\n margin-top: 1px;\n white-space: nowrap;\n"])));
2384
- var Container$6 = styled.div(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n \n ", ";\n"])), function (_ref3) {
2355
+ var Container$6 = styled.div(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n position: relative;\n\n ", ";\n"])), function (_ref3) {
2385
2356
  var fieldState = _ref3.fieldState;
2386
2357
  return fieldState && css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n &:focus-within ", " {\n transition: boxShadow var(--speed-fast) var(--easing-primary-in-out);\n box-shadow: 0 3px 3px var(--input-", "-focused-shadow-color, var(--input-", "-shadow-color));\n }\n "])), InputContainer$1, fieldState, fieldState);
2387
2358
  });
@@ -2839,7 +2810,7 @@ var RadioButton = function RadioButton(_ref2) {
2839
2810
  var _excluded$7 = ["placeholder", "fieldState", "showFeedback", "feedbackMessage", "children"];
2840
2811
  var _templateObject$n, _templateObject2$h, _templateObject3$g, _templateObject4$f, _templateObject5$d, _templateObject6$9, _templateObject7$9, _templateObject8$7, _templateObject9$6;
2841
2812
  var FeedbackIcon$1 = styled.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n flex: 0 0 40px;\n width: 40px;\n display: flex;\n justify-content:center;\n align-items:center;\n padding-top: 2px;\n"])));
2842
- var StyledTextArea = styled.textarea(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n\n ", ";\n\n padding: 8px 15px;\n box-sizing: border-box;\n outline: none;\n height: 100%;\n width: 100%;\n border-radius: 3px;\n\n\n color: var(--input-color-default);\n font-size: 14px;\n \n transition: \n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n &::placeholder {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n font-weight: 400;\n }\n\n"])), function (_ref) {
2813
+ var StyledTextArea = styled.textarea(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n\n ", ";\n\n padding: 8px 15px;\n box-sizing: border-box;\n outline: none;\n height: 100%;\n width: 100%;\n border-radius: 3px;\n\n\n color: var(--input-color-default);\n font-size: 14px;\n\n transition:\n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n &::placeholder {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n font-weight: 400;\n }\n\n &:lang(ja)::placeholder {\n font-style: normal;\n };\n"])), function (_ref) {
2843
2814
  var fieldState = _ref.fieldState;
2844
2815
  return css(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n border: 1px solid var(--input-", "-border-color);\n background: var(--input-", "-background-color);\n box-shadow: var(--input-box-shadow-x) var(--input-box-shadow-y) var(--input-box-shadow-blur) var(--input-box-shadow-spread) var(--input-", "-shadow-color, transparent);\n "])), fieldState, fieldState, fieldState);
2845
2816
  });
@@ -2848,7 +2819,7 @@ var FeedbackMessage$1 = styled.div(_templateObject5$d || (_templateObject5$d = _
2848
2819
  var Container$a = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n ", ";\n"])), function (_ref2) {
2849
2820
  var fieldState = _ref2.fieldState,
2850
2821
  showFeedback = _ref2.showFeedback;
2851
- return css(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose([" \n display: flex;\n position: relative;\n flex-direction: column;\n\n ", "{\n ", ";\n \n &:disabled {\n cursor: not-allowed;\n }\n \n &:focus {\n box-shadow: var(--input-focused-box-shadow-x) var(--input-focused-box-shadow-y) var(--input-focused-box-shadow-blur) var(--input-focused-box-shadow-spread) var(--input-", "-focused-shadow-color);\n }\n }\n\n ", " {\n border-color: var(--input-", "-border-color);\n background: var(--input-", "-border-color);\n\n ", "\n }\n\n &:focus-within ", " {\n border-color: var(--input-", "-focused-border-color, var(--input-", "-border-color));\n }\n\n "])), StyledTextArea, ['default', 'disabled'].indexOf(fieldState) === -1 && showFeedback && css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n "]))), fieldState, FeedbackContainer$1, fieldState, fieldState, ['default', 'disabled'].indexOf(fieldState) !== -1 && css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n display:none;\n "]))), FeedbackContainer$1, fieldState, fieldState);
2822
+ return css(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n flex-direction: column;\n\n ", "{\n ", ";\n\n &:disabled {\n cursor: not-allowed;\n }\n\n &:focus {\n box-shadow: var(--input-focused-box-shadow-x) var(--input-focused-box-shadow-y) var(--input-focused-box-shadow-blur) var(--input-focused-box-shadow-spread) var(--input-", "-focused-shadow-color);\n }\n }\n\n ", " {\n border-color: var(--input-", "-border-color);\n background: var(--input-", "-border-color);\n\n ", "\n }\n\n &:focus-within ", " {\n border-color: var(--input-", "-focused-border-color, var(--input-", "-border-color));\n }\n\n "])), StyledTextArea, ['default', 'disabled'].indexOf(fieldState) === -1 && showFeedback && css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n "]))), fieldState, FeedbackContainer$1, fieldState, fieldState, ['default', 'disabled'].indexOf(fieldState) !== -1 && css(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n display:none;\n "]))), FeedbackContainer$1, fieldState, fieldState);
2852
2823
  });
2853
2824
  var TextArea = function TextArea(_ref3) {
2854
2825
  var _ref3$placeholder = _ref3.placeholder,
@@ -2913,7 +2884,7 @@ var SubjectIcon = styled.div(_templateObject3$h || (_templateObject3$h = _tagged
2913
2884
  var isCompact = _ref2.isCompact;
2914
2885
  return isCompact ? '10px' : '12px';
2915
2886
  });
2916
- var StyledSelect = styled.select(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n outline: none;\n border-radius: 3px;\n appearance: none;\n font-family: var(--font-data);\n height: var(--input-height);\n width: 100%;\n border-radius: 3px;\n color: var(--input-color-default);\n font-size: 14px;\n cursor: pointer;\n\n transition: \n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n ", ";\n\n\n ", ";\n\n &:disabled {\n opacity: 1;\n cursor: not-allowed;\n color: var(--input-disabled-color-default);\n border: 1px solid var(--input-disabled-border-color);\n background: var(--input-disabled-background-color);\n box-shadow: var(--input-box-shadow-x) var(--input-box-shadow-y) var(--input-box-shadow-blur) var(--input-box-shadow-spread) var(--input-disabled-shadow-color, transparent);\n }\n\n &::-ms-expand {\n display: none;\n }\n"])), function (_ref3) {
2887
+ var StyledSelect = styled.select(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n outline: none;\n border-radius: 3px;\n appearance: none;\n font-family: var(--font-data);\n height: var(--input-height);\n width: 100%;\n border-radius: 3px;\n color: var(--input-color-default);\n font-size: 14px;\n cursor: pointer;\n\n transition:\n border var(--speed-fast) var(--easing-primary-out),\n background-color var(--speed-fast) var(--easing-primary-out),\n box-shadow var(--speed-fast) var(--easing-primary-out);\n\n ", ";\n\n\n ", ";\n\n &:disabled {\n opacity: 1;\n cursor: not-allowed;\n color: var(--input-disabled-color-default);\n border: 1px solid var(--input-disabled-border-color);\n background: var(--input-disabled-background-color);\n box-shadow: var(--input-box-shadow-x) var(--input-box-shadow-y) var(--input-box-shadow-blur) var(--input-box-shadow-spread) var(--input-disabled-shadow-color, transparent);\n }\n\n &::-ms-expand {\n display: none;\n }\n"])), function (_ref3) {
2917
2888
  var fieldState = _ref3.fieldState;
2918
2889
  return css(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n border: 1px solid var(--input-", "-border-color);\n background: var(--input-", "-background-color);\n box-shadow: var(--input-box-shadow-x) var(--input-box-shadow-y) var(--input-box-shadow-blur) var(--input-box-shadow-spread) var(--input-", "-shadow-color, transparent);\n "])), fieldState, fieldState, fieldState);
2919
2890
  }, function (_ref4) {
@@ -2923,7 +2894,7 @@ var StyledSelect = styled.select(_templateObject4$g || (_templateObject4$g = _ta
2923
2894
  });
2924
2895
  var Container$b = styled.div(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n\n ", ";\n\n"])), function (_ref5) {
2925
2896
  var activePlaceholder = _ref5.activePlaceholder;
2926
- return activePlaceholder && css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n ", " {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n font-weight: 400;\n }\n "])), StyledSelect);
2897
+ return activePlaceholder && css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n ", " {\n font-family: var(--font-data);\n color: var(--input-color-placeholder);\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n font-weight: 400;\n }\n "])), StyledSelect);
2927
2898
  });
2928
2899
  var SelectField = function SelectField(_ref6) {
2929
2900
  var _ref6$fieldState = _ref6.fieldState,
@@ -3054,6 +3025,21 @@ var isNotNumber = function isNotNumber(value) {
3054
3025
  var intValue = Number(value);
3055
3026
  return intValue !== intValue;
3056
3027
  };
3028
+ var areDatesEqual = function areDatesEqual(storedValue, currentDisplay) {
3029
+ if (storedValue === null && currentDisplay === null) {
3030
+ return true;
3031
+ }
3032
+ if (storedValue === undefined && currentDisplay === null) {
3033
+ return true;
3034
+ }
3035
+ if (isDateInterval(storedValue) && isDateInterval(currentDisplay)) {
3036
+ return isEqual(storedValue === null || storedValue === void 0 ? void 0 : storedValue.start, currentDisplay === null || currentDisplay === void 0 ? void 0 : currentDisplay.start) && isEqual(storedValue === null || storedValue === void 0 ? void 0 : storedValue.end, currentDisplay === null || currentDisplay === void 0 ? void 0 : currentDisplay.end);
3037
+ }
3038
+ if (storedValue instanceof Date && currentDisplay instanceof Date) {
3039
+ return isEqual(storedValue, currentDisplay);
3040
+ }
3041
+ return false;
3042
+ };
3057
3043
 
3058
3044
  var _excluded$9 = ["min", "max", "marks", "defaultValue", "thumbColor", "disabled", "onlyMarkSelect", "inputCallback", "onChangeCallback", "allMarkCentered"];
3059
3045
  var _templateObject$p, _templateObject2$j, _templateObject3$i, _templateObject4$h, _templateObject5$f, _templateObject6$b, _templateObject7$b, _templateObject8$9, _templateObject9$8, _templateObject10$5, _templateObject11$3, _templateObject12$3;
@@ -3074,7 +3060,7 @@ var Mark = styled.span(_templateObject5$f || (_templateObject5$f = _taggedTempla
3074
3060
  var leftValue = _ref4.leftValue;
3075
3061
  return "calc(" + leftValue + "% + 7px)";
3076
3062
  });
3077
- var MarkLabel = styled.span(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -24px;\n left: ", ";\n\n font-size: 10px;\n font-style: italic;\n line-height: normal;\n text-align: center;\n color: var(--grey-a11);\n\n ", "\n ", "\n ", "\n"])), function (_ref5) {
3063
+ var MarkLabel = styled.span(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -24px;\n left: ", ";\n\n font-size: 10px;\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n line-height: normal;\n text-align: center;\n color: var(--grey-a11);\n\n ", "\n ", "\n ", "\n"])), function (_ref5) {
3078
3064
  var leftValue = _ref5.leftValue;
3079
3065
  return "calc(" + leftValue + "% + 7px)";
3080
3066
  }, function (_ref6) {
@@ -3314,30 +3300,93 @@ var InputFileButton = function InputFileButton(_ref) {
3314
3300
  }, text));
3315
3301
  };
3316
3302
 
3317
- var _excluded$b = ["max", "min", "defaultValue", "title", "timeUnit", "controlledValue", "inputCallback"];
3318
- var _templateObject$r, _templateObject2$l, _templateObject3$k, _templateObject4$i, _templateObject5$g;
3303
+ var _excluded$b = ["max", "min", "defaultValue", "title", "timeUnit", "controlledValue", "inputCallback", "timeFormat"];
3304
+ var _templateObject$r, _templateObject2$l, _templateObject3$k, _templateObject4$i, _templateObject5$g, _templateObject6$c, _templateObject7$c;
3319
3305
  var Container$d = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([""])));
3320
3306
  var Headers = styled.div(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n color: var(--grey-10);\n display: flex;\n justify-content: space-between;\n margin-bottom: 30px;\n padding: 0 6px;\n"])));
3321
- var ValueLabel = styled(Label)(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n margin-bottom: 0;\n"])), function (_ref) {
3322
- var theme = _ref.theme;
3323
- return theme.fontFamily.ui;
3324
- });
3325
- var Unit = styled.div(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n color: var(--grey-a11);\n font-style: italic;\n font-size: 12px;\n line-height: 1.5;\n"])), function (_ref2) {
3326
- var theme = _ref2.theme;
3327
- return theme.fontFamily.data;
3328
- });
3329
- var ValueTitle = styled.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
3330
- var DurationSlider = function DurationSlider(_ref3) {
3331
- var max = _ref3.max,
3332
- min = _ref3.min,
3333
- _ref3$defaultValue = _ref3.defaultValue,
3334
- defaultValue = _ref3$defaultValue === void 0 ? 0 : _ref3$defaultValue,
3335
- _ref3$title = _ref3.title,
3336
- title = _ref3$title === void 0 ? '' : _ref3$title,
3337
- timeUnit = _ref3.timeUnit,
3338
- controlledValue = _ref3.controlledValue,
3339
- inputCallback = _ref3.inputCallback,
3340
- props = _objectWithoutPropertiesLoose(_ref3, _excluded$b);
3307
+ var ValueLabel = styled(Label)(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n margin-bottom: 0;\n"])));
3308
+ var unitStyle = css(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n color: var(--grey-a11);\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n font-size: 12px;\n line-height: 1.5;\n"])));
3309
+ var Unit = styled.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n ", ";\n"])), unitStyle);
3310
+ var ValueTitle = styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
3311
+ var TitleTemplate = styled.div(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n ", ";\n span {\n font-style: normal;\n }\n"])), unitStyle);
3312
+ var getTimeValues = function getTimeValues(value, unit) {
3313
+ switch (unit) {
3314
+ case 'seconds':
3315
+ return {
3316
+ hours: Math.floor(value / 3600),
3317
+ minutes: Math.floor(value % 3600 / 60),
3318
+ seconds: value % 60
3319
+ };
3320
+ case 'minutes':
3321
+ return {
3322
+ hours: Math.floor(value / 60),
3323
+ minutes: value % 60,
3324
+ seconds: 0
3325
+ };
3326
+ default:
3327
+ return {
3328
+ hours: value,
3329
+ minutes: 0,
3330
+ seconds: 0
3331
+ };
3332
+ }
3333
+ };
3334
+ var getValueTitle = function getValueTitle(value, timeUnit, timeFormat) {
3335
+ if (!timeFormat || !isTimeUnit(timeUnit)) {
3336
+ var unit = isTimeUnit(timeUnit) ? getShortTextTimeUnit(value, timeUnit) : timeUnit;
3337
+ return React__default.createElement(ValueTitle, null, React__default.createElement(ValueLabel, {
3338
+ htmlFor: 'duration-slider',
3339
+ labelText: "" + value
3340
+ }), React__default.createElement(Unit, null, unit));
3341
+ }
3342
+ var timeValues = getTimeValues(value, timeUnit);
3343
+ var updatedTitle = timeFormat.split(/(\[H+\]|\[M+\]|\[S+\])/).map(function (part, index) {
3344
+ switch (part) {
3345
+ case '[HH]':
3346
+ return React__default.createElement("span", {
3347
+ key: index
3348
+ }, timeValues.hours.toString().padStart(2, '0'));
3349
+ case '[H]':
3350
+ return React__default.createElement("span", {
3351
+ key: index
3352
+ }, timeValues.hours);
3353
+ case '[MM]':
3354
+ return React__default.createElement("span", {
3355
+ key: index
3356
+ }, timeValues.minutes.toString().padStart(2, '0'));
3357
+ case '[M]':
3358
+ return React__default.createElement("span", {
3359
+ key: index
3360
+ }, timeValues.minutes);
3361
+ case '[SS]':
3362
+ return React__default.createElement("span", {
3363
+ key: index
3364
+ }, timeValues.seconds.toString().padStart(2, '0'));
3365
+ case '[S]':
3366
+ return React__default.createElement("span", {
3367
+ key: index
3368
+ }, timeValues.seconds);
3369
+ default:
3370
+ {
3371
+ var preserveSpacesInPart = part.replace(/\s+/g, "\xA0");
3372
+ return preserveSpacesInPart;
3373
+ }
3374
+ }
3375
+ });
3376
+ return React__default.createElement(ValueTitle, null, React__default.createElement(TitleTemplate, null, updatedTitle));
3377
+ };
3378
+ var DurationSlider = function DurationSlider(_ref) {
3379
+ var max = _ref.max,
3380
+ min = _ref.min,
3381
+ _ref$defaultValue = _ref.defaultValue,
3382
+ defaultValue = _ref$defaultValue === void 0 ? 0 : _ref$defaultValue,
3383
+ _ref$title = _ref.title,
3384
+ title = _ref$title === void 0 ? '' : _ref$title,
3385
+ timeUnit = _ref.timeUnit,
3386
+ controlledValue = _ref.controlledValue,
3387
+ inputCallback = _ref.inputCallback,
3388
+ timeFormat = _ref.timeFormat,
3389
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3341
3390
  var _useState = useState(defaultValue),
3342
3391
  selectedValue = _useState[0],
3343
3392
  setSelectedValue = _useState[1];
@@ -3348,14 +3397,10 @@ var DurationSlider = function DurationSlider(_ref3) {
3348
3397
  setSelectedValue(value);
3349
3398
  }, [inputCallback]);
3350
3399
  var labelValue = controlledValue ? controlledValue : selectedValue;
3351
- var unit = isTimeUnit(timeUnit) ? getShortTextTimeUnit(labelValue, timeUnit) : timeUnit;
3352
3400
  return React__default.createElement(Container$d, null, React__default.createElement(Headers, null, React__default.createElement(Label, {
3353
3401
  htmlFor: 'duration-slider',
3354
3402
  labelText: title
3355
- }), React__default.createElement(ValueTitle, null, React__default.createElement(ValueLabel, {
3356
- htmlFor: 'duration-slider',
3357
- labelText: "" + labelValue
3358
- }), React__default.createElement(Unit, null, unit))), React__default.createElement(SliderInput, Object.assign({}, props, {
3403
+ }), getValueTitle(labelValue, timeUnit, timeFormat)), React__default.createElement(SliderInput, Object.assign({}, props, {
3359
3404
  id: 'duration-slider',
3360
3405
  max: max,
3361
3406
  min: min,
@@ -3801,14 +3846,14 @@ var areDimensionsDiff = function areDimensionsDiff(oldDimensions, newValues) {
3801
3846
  return isDifferent;
3802
3847
  };
3803
3848
 
3804
- var _templateObject$u, _templateObject2$o, _templateObject3$m, _templateObject4$j, _templateObject5$h, _templateObject6$c, _templateObject7$c, _templateObject8$a, _templateObject9$9, _templateObject10$6, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$1, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
3849
+ var _templateObject$u, _templateObject2$o, _templateObject3$m, _templateObject4$j, _templateObject5$h, _templateObject6$d, _templateObject7$d, _templateObject8$a, _templateObject9$9, _templateObject10$6, _templateObject11$4, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$1, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
3805
3850
  var CropLineStyle = css(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n display: block;\n opacity: 0.1;\n"])));
3806
3851
  var TopLine = styled.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n ", ";\n cursor: n-resize;\n width: 100%;\n height: 5px;\n left: 0;\n top: -3px;\n"])), CropLineStyle);
3807
3852
  var RightLine = styled.div(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n ", ";\n cursor: e-resize;\n right: -3px;\n top: 0;\n width: 5px;\n height: 100%;\n"])), CropLineStyle);
3808
3853
  var BottomLine = styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n ", "\n cursor: s-resize;\n bottom: -3px;\n height: 5px;\n width: 100%;\n left: 0;\n"])), CropLineStyle);
3809
3854
  var LeftLine = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n ", ";\n cursor: w-resize;\n left: -3px;\n top: 0;\n width: 5px;\n height: 100%;\n"])), CropLineStyle);
3810
- var resizeSquaresCss = css(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 10px;\n height: 10px;\n border: solid 1px var(--black-a12);\n background-color: var(--white-1);\n"])));
3811
- var PointN = styled.div(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n ", ";\n top: -5px;\n margin-left: -5px;\n left: 50%;\n ", ";\n"])), resizeSquaresCss, function (_ref) {
3855
+ var resizeSquaresCss = css(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 10px;\n height: 10px;\n border: solid 1px var(--black-a12);\n background-color: var(--white-1);\n"])));
3856
+ var PointN = styled.div(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n ", ";\n top: -5px;\n margin-left: -5px;\n left: 50%;\n ", ";\n"])), resizeSquaresCss, function (_ref) {
3812
3857
  var isResizable = _ref.isResizable;
3813
3858
  return isResizable && css(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n cursor: n-resize;\n "])));
3814
3859
  });
@@ -3878,7 +3923,7 @@ var CropArea = function CropArea(_ref9) {
3878
3923
  })));
3879
3924
  };
3880
3925
 
3881
- var _templateObject$v, _templateObject2$p, _templateObject3$n, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$d, _templateObject8$b, _templateObject9$a;
3926
+ var _templateObject$v, _templateObject2$p, _templateObject3$n, _templateObject4$k, _templateObject5$i, _templateObject6$e, _templateObject7$e, _templateObject8$b, _templateObject9$a;
3882
3927
  var Container$g = styled.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--grey-3);\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n font-family: ", ";\n z-index: 999;\n"])), function (_ref) {
3883
3928
  var theme = _ref.theme;
3884
3929
  return theme.fontFamily.ui;
@@ -3887,14 +3932,14 @@ var InnerContainer$2 = styled.div(_templateObject2$p || (_templateObject2$p = _t
3887
3932
  var ToolHeader = styled.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 17px;\n"])));
3888
3933
  var TextGroup = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 20px;\n font-weight: 500;\n color: var(--mono);\n\n ", " {\n display: flex;\n align-items: center;\n margin-right: 14px;\n }\n"])), IconWrapper);
3889
3934
  var ButtonsGroup = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n button + button {\n margin-left: 10px;\n }\n"])));
3890
- var PreviewArea = styled.div(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n height: ", ";\n width: ", ";\n border-radius: 5px;\n background-color: var(--grey-3);\n background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, var(--white-a10) 35px, var(--white-a10) 70px);\n"])), function (_ref2) {
3935
+ var PreviewArea = styled.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n position: relative;\n overflow: hidden;\n height: ", ";\n width: ", ";\n border-radius: 5px;\n background-color: var(--grey-3);\n background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, var(--white-a10) 35px, var(--white-a10) 70px);\n"])), function (_ref2) {
3891
3936
  var canvasHeight = _ref2.canvasHeight;
3892
3937
  return canvasHeight ? canvasHeight + "px" : "462px";
3893
3938
  }, function (_ref3) {
3894
3939
  var canvasWidth = _ref3.canvasWidth;
3895
3940
  return canvasWidth ? canvasWidth + "px" : "485px";
3896
3941
  });
3897
- var HiddenImage = styled.img(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
3942
+ var HiddenImage = styled.img(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
3898
3943
  var SelectedArea = styled.div(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n border: dashed 1px var(--black-a12);\n box-shadow: 0 0 0 9999em var(--black-a11);\n ", ";\n cursor: move;\n"])), function (_ref4) {
3899
3944
  var cropLeft = _ref4.cropLeft,
3900
3945
  cropTop = _ref4.cropTop,
@@ -4164,7 +4209,7 @@ var CropTool = function CropTool(_ref5) {
4164
4209
  })))))), document.body);
4165
4210
  };
4166
4211
 
4167
- var _templateObject$w, _templateObject2$q, _templateObject3$o, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$e, _templateObject8$c, _templateObject9$b;
4212
+ var _templateObject$w, _templateObject2$q, _templateObject3$o, _templateObject4$l, _templateObject5$j, _templateObject6$f, _templateObject7$f, _templateObject8$c, _templateObject9$b;
4168
4213
  var CROP_HEIGHT_AREA = 500;
4169
4214
  var CROP_WIDTH_AREA = 475;
4170
4215
  var CANVAS_HEIGHT = 490;
@@ -4179,8 +4224,8 @@ var Container$h = styled.div(_templateObject$w || (_templateObject$w = _taggedTe
4179
4224
  var PreviewImageGroup = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-bottom: 17px;\n height: ", ";\n width: ", ";\n"])), PHOTO_HEIGHT, PHOTO_WIDTH);
4180
4225
  var PhotoContainerStyle = css(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n border-radius: 5px;\n background-color: var(--grey-5);\n"])));
4181
4226
  var PreviewImage = styled.img(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n ", "\n object-fit: cover;\n"])), PhotoContainerStyle);
4182
- var PlaceholderText = styled.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n color: var(--grey-10);\n font-size: 14px;\n"])));
4183
- var NoPhoto = styled.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n ", "\n padding-top: 15px;\n ", " {\n margin-top: 18px;\n }\n"])), PhotoContainerStyle, PlaceholderText);
4227
+ var PlaceholderText = styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n color: var(--grey-10);\n font-size: 14px;\n"])));
4228
+ var NoPhoto = styled.div(_templateObject7$f || (_templateObject7$f = _taggedTemplateLiteralLoose(["\n ", "\n padding-top: 15px;\n ", " {\n margin-top: 18px;\n }\n"])), PhotoContainerStyle, PlaceholderText);
4184
4229
  var StyledInputFileButton = styled(InputFileButton)(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
4185
4230
  var ButtonsWrapper = styled.div(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n\n button {\n margin-bottom: 10px;\n }\n\n"])));
4186
4231
  var AvatarUploader = function AvatarUploader(_ref2) {
@@ -4355,7 +4400,7 @@ var BigIconsSummary = function BigIconsSummary(_ref) {
4355
4400
  }));
4356
4401
  };
4357
4402
 
4358
- var _templateObject$y, _templateObject2$s, _templateObject3$q, _templateObject4$m, _templateObject5$k, _templateObject6$f;
4403
+ var _templateObject$y, _templateObject2$s, _templateObject3$q, _templateObject4$m, _templateObject5$k, _templateObject6$g;
4359
4404
  var Container$j = styled.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n"])), function (_ref) {
4360
4405
  var theme = _ref.theme;
4361
4406
  return theme.fontFamily.ui;
@@ -4367,7 +4412,7 @@ var FilesUploadGroup = styled.div(_templateObject4$m || (_templateObject4$m = _t
4367
4412
  return hasFiles ? '26px 0 20px 0' : '65px 0 42px 0';
4368
4413
  });
4369
4414
  var Title = styled.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n color: var(--grey-11);\n font-size: 20px;\n"])));
4370
- var Description = styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 2.14;\n text-align: center;\n color: var(--grey-10);\n margin-top: 10px;\n max-width: 386px;\n"])));
4415
+ var Description = styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 2.14;\n text-align: center;\n color: var(--grey-10);\n margin-top: 10px;\n max-width: 386px;\n"])));
4371
4416
  var getUpdateFiles = function getUpdateFiles(newFiles, files, allowedFileTypes) {
4372
4417
  var newFilesTransfer = new DataTransfer();
4373
4418
  var rejectedFilesTransfer = new DataTransfer();
@@ -4487,7 +4532,7 @@ var Form = function Form(_ref2) {
4487
4532
  };
4488
4533
 
4489
4534
  var _excluded$j = ["text", "icon", "design", "noBorderTop", "textMaxWidth", "size", "onClickCallback", "closeCallback", "hasOnSelectLoading"];
4490
- var _templateObject$A, _templateObject2$u, _templateObject3$r, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$f, _templateObject8$d;
4535
+ var _templateObject$A, _templateObject2$u, _templateObject3$r, _templateObject4$n, _templateObject5$l, _templateObject6$h, _templateObject7$g, _templateObject8$d;
4491
4536
  var StyledButton$3 = styled.button(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n ", "\n ", ";\n\n color: var(--text-color);\n height: var(--button-height);\n display: flex;\n flex: 1 0 0;\n align-items: center;\n align-self: stretch;\n\n &:hover:enabled {\n background: var(--button-hover-bg);\n\n ", " {\n svg g, svg path {\n stroke: var(--white-a12);\n }\n }\n }\n\n &:active:enabled {\n background: var(--button-active-bg);\n\n ", ";\n\n ", " {\n svg g, svg path {\n stroke: var(--white-a12);\n }\n }\n }\n\n &:disabled {\n color: var(--text-disabled-color);\n cursor: not-allowed;\n }\n"])), resetButtonStyles, function (_ref) {
4492
4537
  var noBorderTop = _ref.noBorderTop;
4493
4538
  return noBorderTop ? "border-top: none" : css(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n border-top: 1px solid var(--border-color)"])));
@@ -4498,9 +4543,9 @@ var StyledButton$3 = styled.button(_templateObject$A || (_templateObject$A = _ta
4498
4543
  var OptionText = styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n font-size: var(--button-font-size);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: center;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n"])));
4499
4544
  var TextWrapper = styled.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n ", "\n display: flex;\n padding: 0px var(--button-h-padding);\n justify-content: center;\n align-items: center;\n gap: 8px;\n align-self: stretch;\n"])), function (_ref3) {
4500
4545
  var textMaxWidth = _ref3.textMaxWidth;
4501
- return textMaxWidth && css(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["max-width: ", ";"])), textMaxWidth);
4546
+ return textMaxWidth && css(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["max-width: ", ";"])), textMaxWidth);
4502
4547
  });
4503
- var LeftIconWrapper = styled.div(_templateObject7$f || (_templateObject7$f = _taggedTemplateLiteralLoose(["\n ", ";\n\n height: var(--button-height);\n display: flex;\n padding: 3px var(--button-icon-h-padding);\n align-items: center;\n align-self: stretch;\n\n ", " {\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n display: flex;\n justify-content: center;\n align-items: center;\n height: var(--button-icon-size);\n width: var(--button-icon-size);\n g, path {\n stroke: var(--white-a10);\n }\n }\n }\n"])), function (_ref4) {
4548
+ var LeftIconWrapper = styled.div(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n ", ";\n\n height: var(--button-height);\n display: flex;\n padding: 3px var(--button-icon-h-padding);\n align-items: center;\n align-self: stretch;\n\n ", " {\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n display: flex;\n justify-content: center;\n align-items: center;\n height: var(--button-icon-size);\n width: var(--button-icon-size);\n g, path {\n stroke: var(--white-a10);\n }\n }\n }\n"])), function (_ref4) {
4504
4549
  var isAscendingIcon = _ref4.isAscendingIcon;
4505
4550
  return isAscendingIcon && css(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n transform: scaleY(-1);\n "])));
4506
4551
  }, IconWrapper);
@@ -4700,50 +4745,38 @@ function useClickOutside(elRef, elCallback) {
4700
4745
  }, [elCallback, elRef]);
4701
4746
  }
4702
4747
 
4703
- var _templateObject$B, _templateObject2$v, _templateObject3$s, _templateObject4$o, _templateObject5$m, _templateObject6$h, _templateObject7$g;
4704
- var Container$k = styled.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--grey-3);\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n z-index: 999;\n ", "\n\n font-family: ", ";\n ", ";\n"])), function (_ref) {
4705
- var theme = _ref.theme;
4706
- return theme && css(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose([""])));
4707
- }, function (_ref2) {
4708
- var theme = _ref2.theme;
4709
- return theme.fontFamily.ui;
4710
- }, function (_ref3) {
4711
- var theme = _ref3.theme;
4712
- return theme.styles.modal.overlay;
4713
- });
4714
- var CloseIcon = styled(Icon)(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose([""])));
4715
- var CloseButton = styled.button(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n right: 0;\n top: -30px;\n color: var(--mono);\n font-size: 14px;\n font-weight: 500;\n\n ", " {\n display: flex;\n margin-left: 12px;\n }\n ", "\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n ", "\n }\n\n &:active:enabled {\n opacity: .9;\n }\n &:disabled {\n opacity: 0.1;\n }\n"])), resetButtonStyles, IconWrapper, function (_ref4) {
4716
- var _ref4$selected = _ref4.selected,
4717
- selected = _ref4$selected === void 0 ? false : _ref4$selected;
4718
- return selected && css(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n border-bottom: 5px solid var(--primary-7);\n "])));
4719
- }, function (_ref5) {
4720
- var theme = _ref5.theme;
4721
- return theme && css(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n opacity: .8;\n transition: transform ", " ", ";\n "])), theme.animation.speed.normal, theme.animation.easing.primary.inOut);
4748
+ var _templateObject$B, _templateObject2$v, _templateObject3$s, _templateObject4$o, _templateObject5$m;
4749
+ var Container$k = styled.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--grey-3);\n -webkit-backdrop-filter: blur(5px);\n backdrop-filter: blur(5px);\n z-index: 999;\n font-family: var(--font-ui);\n background-color: var(--grey-a3);\n"])));
4750
+ var CloseIcon = styled(Icon)(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose([""])));
4751
+ var CloseButton = styled.button(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n right: 0;\n top: -30px;\n color: var(--mono);\n font-size: 14px;\n font-weight: 500;\n\n ", " {\n display: flex;\n margin-left: 12px;\n }\n ", "\n &:focus {\n outline: none;\n }\n\n &:hover:enabled {\n opacity: .8;\n transition: transform var(--speed-normal) var(--easing-primary-in-out);\n }\n\n &:active:enabled {\n opacity: .9;\n }\n &:disabled {\n opacity: 0.1;\n }\n"])), resetButtonStyles, IconWrapper, function (_ref) {
4752
+ var _ref$selected = _ref.selected,
4753
+ selected = _ref$selected === void 0 ? false : _ref$selected;
4754
+ return selected && css(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n border-bottom: 5px solid var(--primary-7);\n "])));
4722
4755
  });
4723
- var LightBox = styled.div(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n position: relative;\n margin: 27px 0 0;\n z-index: 9999;\n width: ", ";\n padding: ", ";\n border-radius: 5px;\n ", ";\n"])), function (_ref6) {
4724
- var width = _ref6.width;
4756
+ var LightBox = styled.div(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n position: relative;\n margin: ", ";\n z-index: 9999;\n width: ", ";\n padding: ", ";\n border-radius: 5px;\n box-shadow: 0px 10px 15px 0px var(--primary-a1);\n background-color: var(--grey-1);\n border: var(--grey-6) 1px solid;\n"])), function (_ref2) {
4757
+ var isCloseEnable = _ref2.isCloseEnable;
4758
+ return isCloseEnable ? "27px 0 0" : "0";
4759
+ }, function (_ref3) {
4760
+ var width = _ref3.width;
4725
4761
  return width ? width : "580px";
4726
- }, function (_ref7) {
4727
- var padding = _ref7.padding;
4762
+ }, function (_ref4) {
4763
+ var padding = _ref4.padding;
4728
4764
  return padding ? "30px 40px" : "0";
4729
- }, function (_ref8) {
4730
- var theme = _ref8.theme;
4731
- return theme.styles.modal.container;
4732
- });
4733
- var Modal = function Modal(_ref9) {
4734
- var _ref9$isOpen = _ref9.isOpen,
4735
- isOpen = _ref9$isOpen === void 0 ? false : _ref9$isOpen,
4736
- _ref9$isCloseEnable = _ref9.isCloseEnable,
4737
- isCloseEnable = _ref9$isCloseEnable === void 0 ? true : _ref9$isCloseEnable,
4738
- _ref9$closeText = _ref9.closeText,
4739
- closeText = _ref9$closeText === void 0 ? '' : _ref9$closeText,
4740
- _ref9$width = _ref9.width,
4741
- width = _ref9$width === void 0 ? '' : _ref9$width,
4742
- _ref9$padding = _ref9.padding,
4743
- padding = _ref9$padding === void 0 ? true : _ref9$padding,
4744
- customComponent = _ref9.customComponent,
4745
- onDismiss = _ref9.onDismiss,
4746
- dismissCallback = _ref9.dismissCallback;
4765
+ });
4766
+ var Modal = function Modal(_ref5) {
4767
+ var _ref5$isOpen = _ref5.isOpen,
4768
+ isOpen = _ref5$isOpen === void 0 ? false : _ref5$isOpen,
4769
+ _ref5$isCloseEnable = _ref5.isCloseEnable,
4770
+ isCloseEnable = _ref5$isCloseEnable === void 0 ? true : _ref5$isCloseEnable,
4771
+ _ref5$closeText = _ref5.closeText,
4772
+ closeText = _ref5$closeText === void 0 ? '' : _ref5$closeText,
4773
+ _ref5$width = _ref5.width,
4774
+ width = _ref5$width === void 0 ? '' : _ref5$width,
4775
+ _ref5$padding = _ref5.padding,
4776
+ padding = _ref5$padding === void 0 ? true : _ref5$padding,
4777
+ customComponent = _ref5.customComponent,
4778
+ onDismiss = _ref5.onDismiss,
4779
+ dismissCallback = _ref5.dismissCallback;
4747
4780
  var lightBoxRef = useRef(null);
4748
4781
  var onClickOutside = function onClickOutside() {
4749
4782
  if (isCloseEnable) {
@@ -4763,7 +4796,8 @@ var Modal = function Modal(_ref9) {
4763
4796
  return isOpen ? ReactDom.createPortal(React__default.createElement(Container$k, null, React__default.createElement(LightBox, {
4764
4797
  ref: lightBoxRef,
4765
4798
  width: width,
4766
- padding: padding
4799
+ padding: padding,
4800
+ isCloseEnable: isCloseEnable
4767
4801
  }, isCloseEnable ? React__default.createElement(CloseButton, {
4768
4802
  onClick: function onClick() {
4769
4803
  return dismiss();
@@ -4771,7 +4805,7 @@ var Modal = function Modal(_ref9) {
4771
4805
  }, closeText ? closeText : 'CLOSE', React__default.createElement(CloseIcon, {
4772
4806
  icon: 'CloseCompact',
4773
4807
  size: 15,
4774
- color: 'mono',
4808
+ color: 'grey-12',
4775
4809
  weight: 'regular'
4776
4810
  })) : null, customComponent)), document.body) : null;
4777
4811
  };
@@ -5639,7 +5673,7 @@ var DateTimeBlock = function DateTimeBlock(_ref6) {
5639
5673
  })))));
5640
5674
  };
5641
5675
 
5642
- var _templateObject$G, _templateObject2$z, _templateObject3$w, _templateObject4$s, _templateObject5$p, _templateObject6$k, _templateObject7$j, _templateObject8$g, _templateObject9$c, _templateObject10$7, _templateObject11$5, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$2, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32;
5676
+ var _templateObject$G, _templateObject2$z, _templateObject3$w, _templateObject4$s, _templateObject5$p, _templateObject6$k, _templateObject7$j, _templateObject8$g, _templateObject9$c, _templateObject10$7, _templateObject11$5, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$2, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
5643
5677
  var initializeInterval = function initializeInterval(day) {
5644
5678
  return {
5645
5679
  start: set(day, {
@@ -5653,7 +5687,7 @@ var TODAY = new Date();
5653
5687
  var TODAY_INTERVAL = initializeInterval(startOfDay(new Date()));
5654
5688
  var Container$o = styled.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
5655
5689
  var DateTimeArea = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n border-right: var(--grey-6) 1px solid;\n width: 170px;\n display: flex;\n flex-direction: column;\n"])));
5656
- var TimeZoneOption = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n border-top: var(--grey-6) 1px solid;\n margin-top: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 10px;\n box-sizing: border-box;\n"])));
5690
+ var TimeZoneOption = styled.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n border-top: var(--grey-6) 1px solid;\n margin-top: auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 11px;\n box-sizing: border-box;\n"])));
5657
5691
  var TimeZoneLabel = styled.div(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n text-align: left;\n font-size: 12px;\n font-weight: 400;\n color: var(--grey-11);\n"])));
5658
5692
  var TimeZoneValue = styled.div(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n text-align: left;\n font-size: 12px;\n font-weight: 400;\n color: var(--grey-11);\n"])));
5659
5693
  var CalendarArea = styled.div(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n user-select: none;\n"])));
@@ -5662,54 +5696,56 @@ var CurrentMonth = styled.div(_templateObject8$g || (_templateObject8$g = _tagge
5662
5696
  var IconWrap$1 = styled.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n [stroke]{\n stroke: var(--grey-8);\n }\n"])));
5663
5697
  var PaginateMonth = styled.button(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n flex: 0 0 72px;\n border: none;\n background: transparent;\n outline: none;\n text-align: center;\n font-size: 12px;\n font-weight: 700;\n line-height: 20px;\n text-transform: uppercase;\n letter-spacing: 0.4px;\n color: var(--grey-10);\n display: flex;\n justify-content: space-around;\n align-items: center;\n\n transition: color var(--speed-fast) var(--easing-primary-in-out);\n\n ", "{\n svg * {\n transition: stroke var(--speed-fast) var(--easing-primary-in-out);\n }\n }\n\n &:hover:enabled {\n color: var(--grey-12);\n\n ", "{\n [stroke]{\n stroke: var(--grey-12);\n }\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n"])), IconWrap$1, IconWrap$1);
5664
5698
  var CalBody = styled.div(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n padding: 5px 0;\n"])));
5665
- var CalRow = styled.div(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(7, 40px);\n height: 40px;\n box-sizing: border-box;\n\n padding: 0 10px;\n"])));
5666
- var CalHRow = styled(CalRow)(_templateObject13$4 || (_templateObject13$4 = _taggedTemplateLiteralLoose(["\n border-bottom: var(--grey-6) 1px solid;\n"])));
5667
- var CalCell = styled.button(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n text-align: center;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n font-size: 14px;\n font-weight: 400;\n text-decoration: none;\n color: var(--grey-12);\n font-family: var(--font-data);\n"])), resetButtonStyles);
5668
- var CalHCell = styled(CalCell)(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 12px;\n font-weight: 700;\n color: var(--grey-a11);\n"])));
5669
- var ContentDot = styled.div(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 18px;\n bottom: 5px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: var(--primary-11);\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
5699
+ var CalButtons = styled.div(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n padding: 4px;\n justify-content: flex-end;\n align-items: flex-start;\n gap: 4px;\n align-self: stretch;\n border-top: 1px solid var(--grey-6);\n"])));
5700
+ var CalRightButtons = styled.div(_templateObject13$4 || (_templateObject13$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
5701
+ var CalRow = styled.div(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(7, 40px);\n height: 40px;\n box-sizing: border-box;\n\n padding: 0 10px;\n"])));
5702
+ var CalHRow = styled(CalRow)(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n border-bottom: var(--grey-6) 1px solid;\n"])));
5703
+ var CalCell = styled.button(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n ", ";\n display: flex;\n text-align: center;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n font-size: 14px;\n font-weight: 400;\n text-decoration: none;\n color: var(--grey-12);\n font-family: var(--font-data);\n"])), resetButtonStyles);
5704
+ var CalHCell = styled(CalCell)(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n text-align: center;\n font-size: 12px;\n font-weight: 700;\n color: var(--grey-a11);\n"])));
5705
+ var ContentDot = styled.div(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 18px;\n bottom: 5px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: var(--primary-11);\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
5670
5706
  var state = _ref.state;
5671
- return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n background-color: var(--white-12);"])));
5707
+ return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n background-color: var(--white-12);"])));
5672
5708
  }, function (_ref2) {
5673
5709
  var state = _ref2.state;
5674
- return state === 'inside' && css(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n background-color: var(--primary-12);"])));
5710
+ return state === 'inside' && css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n background-color: var(--primary-12);"])));
5675
5711
  }, function (_ref3) {
5676
5712
  var isToday = _ref3.isToday;
5677
- return isToday && css(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n left: 16px;\n bottom: 3px;\n "])));
5713
+ return isToday && css(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n left: 16px;\n bottom: 3px;\n "])));
5678
5714
  }, function (_ref4) {
5679
5715
  var hasContent = _ref4.hasContent;
5680
- return !hasContent && css(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n display: none;\n "])));
5716
+ return !hasContent && css(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n display: none;\n "])));
5681
5717
  });
5682
- var DayText = styled.span(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n transform: translateY(-1px);\n"])));
5683
- var CalCellB = styled(CalCell)(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: relative;\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n\n ", "\n\n ", "\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n &:disabled {\n color: var(--grey-6);\n cursor: not-allowed;\n\n ", "\n\n ", ";\n }\n\n"])), function (_ref5) {
5718
+ var DayText = styled.span(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n transform: translateY(-1px);\n"])));
5719
+ var CalCellB = styled(CalCell)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n position: relative;\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n\n ", "\n\n ", "\n\n ", ";\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n &:disabled {\n color: var(--grey-6);\n cursor: not-allowed;\n\n ", "\n\n ", ";\n }\n\n"])), function (_ref5) {
5684
5720
  var thisMonth = _ref5.thisMonth;
5685
- return !thisMonth && css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n color: var(--grey-a8);\n "])));
5721
+ return !thisMonth && css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n color: var(--grey-a8);\n "])));
5686
5722
  }, function (_ref6) {
5687
5723
  var isToday = _ref6.isToday;
5688
- return isToday && css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n border: 2px solid var(--primary-a7);\n "])));
5724
+ return isToday && css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n border: 2px solid var(--primary-a7);\n "])));
5689
5725
  }, function (_ref7) {
5690
5726
  var state = _ref7.state;
5691
- return state !== 'single' && state !== 'start' && state !== 'end' && css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n &:hover:enabled {\n background: var(--primary-a6);\n color: var(--white-1);\n }\n "])));
5727
+ return state !== 'single' && state !== 'start' && state !== 'end' && css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n &:hover:enabled {\n background: var(--primary-a6);\n color: var(--white-1);\n }\n "])));
5692
5728
  }, function (_ref8) {
5693
5729
  var state = _ref8.state;
5694
- return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n background: var(--primary-9);\n color: var(--white-1);\n "])));
5730
+ return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n background: var(--primary-9);\n color: var(--white-1);\n "])));
5695
5731
  }, function (_ref9) {
5696
5732
  var state = _ref9.state;
5697
- return state === 'start' && css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n "])));
5733
+ return state === 'start' && css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n "])));
5698
5734
  }, function (_ref10) {
5699
5735
  var state = _ref10.state;
5700
- return state === 'end' && css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n "])));
5736
+ return state === 'end' && css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n "])));
5701
5737
  }, function (_ref11) {
5702
5738
  var state = _ref11.state;
5703
- return state === 'insideHover' && css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n background: var(--primary-a9) !important;\n color: var(--white-1);\n "])));
5739
+ return state === 'insideHover' && css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n background: var(--primary-a9) !important;\n color: var(--white-1);\n "])));
5704
5740
  }, function (_ref12) {
5705
5741
  var state = _ref12.state;
5706
- return state === 'inside' && css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n background: var(--primary-a5);\n border-radius: 0;\n opacity: 1;\n\n &:nth-child(7n+1), &:nth-child(7n){\n &::after {\n background: var(--primary-a5);\n display: block;\n content: '';\n position: absolute;\n left: -10px;\n width: 10px;\n top: 0;\n height: 40px;\n }\n }\n\n &:nth-child(7n)::after {\n left: auto;\n right: -10px;\n }\n "])));
5742
+ return state === 'inside' && css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n background: var(--primary-a5);\n border-radius: 0;\n opacity: 1;\n\n &:nth-child(7n+1), &:nth-child(7n){\n &::after {\n background: var(--primary-a5);\n display: block;\n content: '';\n position: absolute;\n left: -10px;\n width: 10px;\n top: 0;\n height: 40px;\n }\n }\n\n &:nth-child(7n)::after {\n left: auto;\n right: -10px;\n }\n "])));
5707
5743
  }, function (_ref13) {
5708
5744
  var state = _ref13.state;
5709
- return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n color: var(--white-1);\n background: var(--red-a9);\n "])));
5745
+ return (state === 'single' || state === 'start' || state === 'end') && css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n color: var(--white-1);\n background: var(--red-a9);\n "])));
5710
5746
  }, function (_ref14) {
5711
5747
  var state = _ref14.state;
5712
- return state === 'inside' && css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n color: var(--white-1);\n background: var(--red-a7);\n &:nth-child(7n+1), &:nth-child(7n){\n &::after {\n background: var(--red-a7);\n }\n }\n "])));
5748
+ return state === 'inside' && css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n color: var(--white-1);\n background: var(--red-a7);\n &:nth-child(7n+1), &:nth-child(7n){\n &::after {\n background: var(--red-a7);\n }\n }\n "])));
5713
5749
  });
5714
5750
  var enDayGuide = ["S", "M", "T", "W", "T", "F", "S"];
5715
5751
  var jpDayGuide = ['日', '月', '火', '水', '木', '金', '土'];
@@ -5746,7 +5782,19 @@ var DatePicker = function DatePicker(_ref15) {
5746
5782
  availableRange = _ref15.availableRange,
5747
5783
  contentDays = _ref15.contentDays,
5748
5784
  _ref15$lang = _ref15.lang,
5749
- lang = _ref15$lang === void 0 ? 'en' : _ref15$lang;
5785
+ lang = _ref15$lang === void 0 ? 'en' : _ref15$lang,
5786
+ _ref15$cancelText = _ref15.cancelText,
5787
+ cancelText = _ref15$cancelText === void 0 ? 'Cancel' : _ref15$cancelText,
5788
+ _ref15$applyText = _ref15.applyText,
5789
+ applyText = _ref15$applyText === void 0 ? 'Apply' : _ref15$applyText,
5790
+ _ref15$hasApply = _ref15.hasApply,
5791
+ hasApply = _ref15$hasApply === void 0 ? false : _ref15$hasApply,
5792
+ _ref15$disableApply = _ref15.disableApply,
5793
+ disableApply = _ref15$disableApply === void 0 ? false : _ref15$disableApply,
5794
+ _ref15$applyCallback = _ref15.applyCallback,
5795
+ applyCallback = _ref15$applyCallback === void 0 ? function () {} : _ref15$applyCallback,
5796
+ _ref15$cancelCallback = _ref15.cancelCallback,
5797
+ cancelCallback = _ref15$cancelCallback === void 0 ? function () {} : _ref15$cancelCallback;
5750
5798
  var _useState = useState(getInitialValue(hasEmptyValue, initialValue)),
5751
5799
  selectedRange = _useState[0],
5752
5800
  setSelectedRange = _useState[1];
@@ -5915,7 +5963,13 @@ var DatePicker = function DatePicker(_ref15) {
5915
5963
  isToday: isTodayValue
5916
5964
  }));
5917
5965
  }));
5918
- }))));
5966
+ })), hasApply && React__default.createElement(CalButtons, null, hasApply && React__default.createElement(CalRightButtons, null, React__default.createElement(Button, {
5967
+ design: 'secondary',
5968
+ onClick: cancelCallback
5969
+ }, cancelText), React__default.createElement(Button, {
5970
+ onClick: applyCallback,
5971
+ disabled: !isTimeRangeValid || selectedRange === null || disableApply
5972
+ }, applyText)))));
5919
5973
  };
5920
5974
  var cellState = function cellState(day, interval, _hoverDate) {
5921
5975
  var state = "off";
@@ -6122,15 +6176,15 @@ var FilterOption = function FilterOption(_ref2) {
6122
6176
  var _excluded$q = ["color", "hasBorder", "iconSize", "disabled", "noBackground", "hasCrossButton", "onCrossClick", "width"];
6123
6177
  var _templateObject$K, _templateObject2$D, _templateObject3$z, _templateObject4$v, _templateObject5$s, _templateObject6$n, _templateObject7$m, _templateObject8$j;
6124
6178
  var IconContainer$1 = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n padding: 0 2px;\n"])));
6125
- var Container$r = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n ", ";\n\n ", " {\n flex-shrink: 0;\n display: flex;\n }\n\n \n"])), function (_ref) {
6179
+ var Container$r = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n ", ";\n\n ", " {\n flex-shrink: 0;\n display: flex;\n }\n\n\n"])), function (_ref) {
6126
6180
  var hasBorder = _ref.hasBorder,
6127
6181
  disabled = _ref.disabled,
6128
6182
  noBackground = _ref.noBackground,
6129
6183
  width = _ref.width;
6130
- return css(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n \n transition: all var(--speed-normal) var(--easing-primary-in);\n gap: 6px;\n height: var(--input-compact-height);\n padding: 0;\n align-items: center;\n display: flex;\n border-radius: 3px;\n\n ", ";\n\n ", ";\n\n ", ";\n\n background-color: ", ";\n \n &:focus-within {\n background-color: ", ";\n border: ", ";\n box-shadow: 0px 4px 9px 0px ", ";\n }\n\n "])), hasBorder && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n padding: 0 8px;\n border: 1px solid var(--filter-button-stroke-color);\n box-shadow: 0px 4px 9px 0px var(--filter-button-shadow-color);\n\n &:hover {\n border: var(--primary-7) 1px solid;\n box-shadow: 0px 4px 9px 0px var(--primary-a2);\n\n }\n ", "{\n padding: 0;\n }\n "])), IconContainer$1), disabled && css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n opacity: 50%;\n cursor: not-allowed;\n "]))), width && css(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width), noBackground ? 'transparent' : 'var(--grey-1)', noBackground ? 'transparent' : 'var(--grey-1)', hasBorder ? '1px solid var(--primary-9)' : 'none', noBackground ? 'transparent' : 'var(--primary-a2)');
6184
+ return css(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n\n transition: all var(--speed-normal) var(--easing-primary-in);\n gap: 6px;\n height: var(--input-compact-height);\n padding: 0;\n align-items: center;\n display: flex;\n border-radius: 3px;\n\n ", ";\n\n ", ";\n\n ", ";\n\n background-color: ", ";\n\n &:focus-within {\n background-color: ", ";\n border: ", ";\n box-shadow: 0px 4px 9px 0px ", ";\n }\n\n "])), hasBorder && css(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n padding: 0 8px;\n border: 1px solid var(--filter-button-stroke-color);\n box-shadow: 0px 4px 9px 0px var(--filter-button-shadow-color);\n\n &:hover {\n border: var(--primary-7) 1px solid;\n box-shadow: 0px 4px 9px 0px var(--primary-a2);\n\n }\n ", "{\n padding: 0;\n }\n "])), IconContainer$1), disabled && css(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n opacity: 50%;\n cursor: not-allowed;\n "]))), width && css(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: ", ";\n "])), width), noBackground ? 'transparent' : 'var(--grey-1)', noBackground ? 'transparent' : 'var(--grey-1)', hasBorder ? '1px solid var(--primary-9)' : 'none', noBackground ? 'transparent' : 'var(--primary-a2)');
6131
6185
  }, IconWrapper);
6132
6186
  var CrossButton = styled.button(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n ", ";\n flex-shrink: 0;\n flex-grow: 0;\n flex-basis: auto;\n width: 26px;\n\n ", " {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])), resetButtonStyles, IconWrapper);
6133
- var StyledInput$2 = styled.input(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n ", ";\n\n font-family: var(--font-ui);\n font-size: 12px;\n font-weight: 500;\n color: var(--grey-12);\n \n &::placeholder {\n ", ";\n color: var(--grey-11);\n font-style: italic;\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n\n font-size: 12px;\n border: none;\n height: 100%;\n width: 100%;\n background-color: transparent;\n box-sizing: border-box;\n border-radius: 3px;\n outline: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n"])), removeAutoFillStyle, function (_ref2) {
6187
+ var StyledInput$2 = styled.input(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n ", ";\n\n font-family: var(--font-ui);\n font-size: 12px;\n font-weight: 500;\n color: var(--grey-12);\n\n &::placeholder {\n ", ";\n color: var(--grey-11);\n font-style: italic;\n }\n\n &:lang(ja)::placeholder {\n font-style: normal;\n };\n\n &:disabled {\n cursor: not-allowed;\n }\n\n font-size: 12px;\n border: none;\n height: 100%;\n width: 100%;\n background-color: transparent;\n box-sizing: border-box;\n border-radius: 3px;\n outline: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n"])), removeAutoFillStyle, function (_ref2) {
6134
6188
  var color = _ref2.color;
6135
6189
  return color && "color: var(--" + color + ")";
6136
6190
  });
@@ -6187,7 +6241,7 @@ var isFilterItem = function isFilterItem(item) {
6187
6241
  return (typeof item.value === 'number' || typeof item.value === 'string') && typeof item.text === 'string';
6188
6242
  };
6189
6243
 
6190
- var _excluded$r = ["buttonIcon", "buttonText", "disabled", "minWidth", "minHeight", "isSortAscending", "design", "children", "onToggleOpenCallback", "onCloseCallback"];
6244
+ var _excluded$r = ["buttonIcon", "buttonText", "disabled", "minWidth", "minHeight", "isSortAscending", "design", "noCloseOnClickOutside", "children", "onToggleOpenCallback", "onCloseCallback"];
6191
6245
  var _templateObject$L, _templateObject2$E, _templateObject3$A, _templateObject4$w;
6192
6246
  var Container$s = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
6193
6247
  var ButtonWrapper = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: inline-block;\n"])));
@@ -6215,7 +6269,7 @@ var getDropPosition = function getDropPosition(buttonRect, minWidth, minHeight)
6215
6269
  }
6216
6270
  return position;
6217
6271
  };
6218
- var FilterDropHandler = function FilterDropHandler(_ref3) {
6272
+ var FilterDropHandler = forwardRef(function (_ref3, imperativeRef) {
6219
6273
  var buttonIcon = _ref3.buttonIcon,
6220
6274
  buttonText = _ref3.buttonText,
6221
6275
  _ref3$disabled = _ref3.disabled,
@@ -6227,6 +6281,7 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6227
6281
  isSortAscending = _ref3.isSortAscending,
6228
6282
  _ref3$design = _ref3.design,
6229
6283
  design = _ref3$design === void 0 ? 'default' : _ref3$design,
6284
+ noCloseOnClickOutside = _ref3.noCloseOnClickOutside,
6230
6285
  children = _ref3.children,
6231
6286
  _ref3$onToggleOpenCal = _ref3.onToggleOpenCallback,
6232
6287
  onToggleOpenCallback = _ref3$onToggleOpenCal === void 0 ? function () {} : _ref3$onToggleOpenCal,
@@ -6241,7 +6296,10 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6241
6296
  setOpenState = _useState[1];
6242
6297
  var buttonWrapperRef = useRef(null);
6243
6298
  var mainRef = useRef(null);
6244
- var handleClose = useCallback(function () {
6299
+ var clickOutsideClose = useCallback(function () {
6300
+ if (noCloseOnClickOutside) {
6301
+ return;
6302
+ }
6245
6303
  if (openState.isOpen) {
6246
6304
  onCloseCallback();
6247
6305
  }
@@ -6251,8 +6309,8 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6251
6309
  isOpen: isOpen
6252
6310
  });
6253
6311
  });
6254
- }, [onCloseCallback, openState.isOpen]);
6255
- useClickOutside(mainRef, handleClose);
6312
+ }, [noCloseOnClickOutside, onCloseCallback, openState.isOpen]);
6313
+ useClickOutside(mainRef, clickOutsideClose);
6256
6314
  var handleToggleOpen = useCallback(function (minWidth, minHeight) {
6257
6315
  if (!buttonWrapperRef.current) {
6258
6316
  return;
@@ -6262,7 +6320,7 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6262
6320
  return;
6263
6321
  }
6264
6322
  var position = getDropPosition(buttonRect, minWidth, minHeight);
6265
- onToggleOpenCallback(openState.isOpen);
6323
+ onToggleOpenCallback(!openState.isOpen);
6266
6324
  setOpenState(function (prev) {
6267
6325
  var isOpen = !prev.isOpen;
6268
6326
  return _extends({}, prev, {
@@ -6271,6 +6329,19 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6271
6329
  });
6272
6330
  });
6273
6331
  }, [onToggleOpenCallback, openState.isOpen]);
6332
+ var handleCancel = useCallback(function () {
6333
+ setOpenState(function (prev) {
6334
+ var isOpen = false;
6335
+ return _extends({}, prev, {
6336
+ isOpen: isOpen
6337
+ });
6338
+ });
6339
+ }, []);
6340
+ useImperativeHandle(imperativeRef, function () {
6341
+ return {
6342
+ cancelClose: handleCancel
6343
+ };
6344
+ });
6274
6345
  return React__default.createElement(Container$s, Object.assign({
6275
6346
  ref: mainRef
6276
6347
  }, props), React__default.createElement(ButtonWrapper, {
@@ -6292,11 +6363,11 @@ var FilterDropHandler = function FilterDropHandler(_ref3) {
6292
6363
  disabled: disabled,
6293
6364
  minWidth: minWidth
6294
6365
  }), children));
6295
- };
6366
+ });
6296
6367
 
6297
6368
  var _templateObject$M, _templateObject2$F;
6298
6369
  var Container$t = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-height: 146px;\n border-top: 1px solid var(--grey-5);\n"])));
6299
- var LoadingText = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n color: var(--grey-11);\n font-size: 12px;\n font-style: italic;\n padding: 15px 0;\n"])));
6370
+ var LoadingText = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n color: var(--grey-11);\n font-size: 12px;\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n padding: 15px 0;\n"])));
6300
6371
  var LoadingBox = function LoadingBox(_ref) {
6301
6372
  var loadingText = _ref.loadingText;
6302
6373
  return React__default.createElement(Container$t, null, React__default.createElement(Spinner, {
@@ -6314,7 +6385,7 @@ var OptionList = styled.div(_templateObject3$B || (_templateObject3$B = _taggedT
6314
6385
  return moreItem ? '228px' : '196px';
6315
6386
  }, StyledFilterOption);
6316
6387
  var ResultsContainer = styled.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n min-width: 216px;\n"])));
6317
- var ResultCounter = styled.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n color: var(--grey-10);\n font-size: 12px;\n font-style: italic;\n font-weight: 300;\n display: flex;\n align-items: center;\n justify-content: left;\n height: 32px;\n padding: 0 12px;\n border-top: 1px solid var(--grey-5);\n border-bottom: 1px solid var(--grey-5);\n"])));
6388
+ var ResultCounter = styled.div(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n font-family: var(--font-data);\n color: var(--grey-10);\n font-size: 12px;\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n font-weight: 300;\n display: flex;\n align-items: center;\n justify-content: left;\n height: 32px;\n padding: 0 12px;\n border-top: 1px solid var(--grey-5);\n border-bottom: 1px solid var(--grey-5);\n"])));
6318
6389
  var SearchWrapper = styled.div(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n height: 40px;\n display: flex;\n align-items: center;\n padding: 0 8px;\n"])));
6319
6390
  var EmptyResultText = styled.div(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n display: block;\n height: 24px;\n color: var(--grey-11);\n font-weight: 700;\n margin-left: 12px;\n user-select: none;\n pointer-events: none;\n height: inherit;\n display: flex;\n align-items: center;\n font-size: 12px;\n"])));
6320
6391
  var Gradient = styled.div(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 0px;\n height: 15px;\n background-image: linear-gradient(to bottom, transparent, var(--grey-3));\n width: 99%;\n left: 50%;\n transform: translateX(-50%);\n pointer-events: none;\n"])));
@@ -6778,7 +6849,7 @@ var FilterLayout = function FilterLayout(_ref6) {
6778
6849
  }))))))));
6779
6850
  };
6780
6851
 
6781
- var _excluded$u = ["buttonIcon", "buttonText", "disabled", "initialValue", "dateMode", "timeMode", "selected", "dateTimeTextUpper", "dateTimeTextLower", "timeZoneTitle", "timeZoneValueTitle", "lang", "hasEmptyValue", "availableRange", "contentDays", "onCloseCallback", "onUpdateCallback", "onToggleCallback"];
6852
+ var _excluded$u = ["buttonIcon", "buttonText", "disabled", "initialValue", "dateMode", "timeMode", "selected", "dateTimeTextUpper", "dateTimeTextLower", "timeZoneTitle", "timeZoneValueTitle", "lang", "hasEmptyValue", "availableRange", "contentDays", "cancelText", "applyText", "hasApply", "onCloseCallback", "onUpdateCallback", "onToggleCallback", "onCancelCallback", "onApplyCallback"];
6782
6853
  var _templateObject$Q;
6783
6854
  var MIN_WIDTH = 470;
6784
6855
  var MIN_HEIGHT = 360;
@@ -6798,12 +6869,22 @@ var DropdownDatePicker = function DropdownDatePicker(_ref) {
6798
6869
  lang = _ref.lang,
6799
6870
  availableRange = _ref.availableRange,
6800
6871
  contentDays = _ref.contentDays,
6872
+ _ref$cancelText = _ref.cancelText,
6873
+ cancelText = _ref$cancelText === void 0 ? 'Cancel' : _ref$cancelText,
6874
+ _ref$applyText = _ref.applyText,
6875
+ applyText = _ref$applyText === void 0 ? 'Apply' : _ref$applyText,
6876
+ _ref$hasApply = _ref.hasApply,
6877
+ hasApply = _ref$hasApply === void 0 ? true : _ref$hasApply,
6801
6878
  _ref$onCloseCallback = _ref.onCloseCallback,
6802
6879
  onCloseCallback = _ref$onCloseCallback === void 0 ? function () {} : _ref$onCloseCallback,
6803
6880
  _ref$onUpdateCallback = _ref.onUpdateCallback,
6804
6881
  onUpdateCallback = _ref$onUpdateCallback === void 0 ? function () {} : _ref$onUpdateCallback,
6805
6882
  _ref$onToggleCallback = _ref.onToggleCallback,
6806
6883
  onToggleCallback = _ref$onToggleCallback === void 0 ? function () {} : _ref$onToggleCallback,
6884
+ _ref$onCancelCallback = _ref.onCancelCallback,
6885
+ onCancelCallback = _ref$onCancelCallback === void 0 ? function () {} : _ref$onCancelCallback,
6886
+ _ref$onApplyCallback = _ref.onApplyCallback,
6887
+ onApplyCallback = _ref$onApplyCallback === void 0 ? function () {} : _ref$onApplyCallback,
6807
6888
  props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
6808
6889
  var pickerValue = useRef(null);
6809
6890
  var _useState = useState({
@@ -6812,48 +6893,76 @@ var DropdownDatePicker = function DropdownDatePicker(_ref) {
6812
6893
  }),
6813
6894
  mountedPicker = _useState[0],
6814
6895
  setMountedPicker = _useState[1];
6896
+ var _useState2 = useState(false),
6897
+ disableApply = _useState2[0],
6898
+ setDisableApply = _useState2[1];
6899
+ var DropdownHandlerRef = useRef(null);
6815
6900
  var handleUpdateCallback = useCallback(function (data) {
6816
6901
  pickerValue.current = data;
6817
6902
  onUpdateCallback(data);
6818
- }, [onUpdateCallback]);
6903
+ setDisableApply(areDatesEqual(selected, data));
6904
+ }, [onUpdateCallback, selected]);
6819
6905
  var handleOnClose = useCallback(function () {
6820
6906
  if (pickerValue.current && pickerValue.current !== selected) {
6821
6907
  onCloseCallback(pickerValue.current);
6822
6908
  }
6823
6909
  }, [onCloseCallback, selected]);
6824
6910
  var handleOnToggle = useCallback(function (isOpen) {
6825
- if (pickerValue.current && pickerValue.current !== selected) {
6911
+ if (!hasApply && pickerValue.current && pickerValue.current !== selected) {
6826
6912
  onToggleCallback(pickerValue.current, isOpen);
6827
6913
  }
6828
- if (!isOpen && pickerValue.current !== null && !mountedPicker.isMount) {
6829
- pickerValue.current = null;
6914
+ if (isOpen && !mountedPicker.isMount) {
6915
+ setMountedPicker(function (prev) {
6916
+ return _extends({}, prev, {
6917
+ isMount: true
6918
+ });
6919
+ });
6920
+ }
6921
+ }, [hasApply, mountedPicker.isMount, onToggleCallback, selected]);
6922
+ var handleOnCancel = useCallback(function () {
6923
+ var _DropdownHandlerRef$c;
6924
+ if (pickerValue.current && pickerValue.current !== selected) {
6925
+ pickerValue.current = selected === undefined ? null : selected;
6926
+ var validInitialValue = selected === null ? undefined : selected;
6830
6927
  setMountedPicker({
6831
- initialValue: undefined,
6832
- isMount: true
6928
+ initialValue: validInitialValue,
6929
+ isMount: false
6833
6930
  });
6834
6931
  }
6835
- }, [mountedPicker, onToggleCallback, selected]);
6932
+ onCancelCallback();
6933
+ (_DropdownHandlerRef$c = DropdownHandlerRef.current) === null || _DropdownHandlerRef$c === void 0 ? void 0 : _DropdownHandlerRef$c.cancelClose();
6934
+ }, [onCancelCallback, selected]);
6935
+ var handleOnApply = useCallback(function () {
6936
+ var _DropdownHandlerRef$c2;
6937
+ if (pickerValue.current && pickerValue.current !== selected) {
6938
+ onApplyCallback(pickerValue.current);
6939
+ }
6940
+ (_DropdownHandlerRef$c2 = DropdownHandlerRef.current) === null || _DropdownHandlerRef$c2 === void 0 ? void 0 : _DropdownHandlerRef$c2.cancelClose();
6941
+ }, [onApplyCallback, selected]);
6836
6942
  useEffect(function () {
6837
- var canReset = true;
6838
- if (canReset && selected === null && pickerValue.current !== null) {
6943
+ var canUnmount = true;
6944
+ if (canUnmount && selected === null && pickerValue.current !== null) {
6945
+ pickerValue.current = selected;
6839
6946
  setMountedPicker({
6840
6947
  initialValue: undefined,
6841
6948
  isMount: false
6842
6949
  });
6843
6950
  }
6844
6951
  return function () {
6845
- canReset = false;
6952
+ canUnmount = false;
6846
6953
  };
6847
6954
  }, [selected]);
6848
- return React__default.createElement(Container$x, Object.assign({}, props), React__default.createElement(FilterDropHandler, Object.assign({}, {
6849
- buttonIcon: buttonIcon,
6850
- buttonText: buttonText,
6851
- disabled: disabled
6852
- }, {
6955
+ return React__default.createElement(Container$x, Object.assign({}, props), React__default.createElement(FilterDropHandler, Object.assign({
6956
+ ref: DropdownHandlerRef,
6853
6957
  minWidth: MIN_WIDTH,
6854
6958
  minHeight: MIN_HEIGHT,
6855
6959
  onCloseCallback: handleOnClose,
6856
- onToggleOpenCallback: handleOnToggle
6960
+ onToggleOpenCallback: handleOnToggle,
6961
+ noCloseOnClickOutside: hasApply
6962
+ }, {
6963
+ buttonIcon: buttonIcon,
6964
+ buttonText: buttonText,
6965
+ disabled: disabled
6857
6966
  }), React__default.createElement(FilterDropdownContainer, null, mountedPicker.isMount && React__default.createElement(DatePicker, Object.assign({}, {
6858
6967
  dateMode: dateMode,
6859
6968
  timeMode: timeMode,
@@ -6863,11 +6972,17 @@ var DropdownDatePicker = function DropdownDatePicker(_ref) {
6863
6972
  timeZoneValueTitle: timeZoneValueTitle,
6864
6973
  lang: lang,
6865
6974
  availableRange: availableRange,
6866
- contentDays: contentDays
6975
+ contentDays: contentDays,
6976
+ cancelText: cancelText,
6977
+ applyText: applyText,
6978
+ hasApply: hasApply
6867
6979
  }, {
6868
6980
  updateCallback: handleUpdateCallback,
6981
+ cancelCallback: handleOnCancel,
6982
+ applyCallback: handleOnApply,
6869
6983
  hasEmptyValue: true,
6870
- initialValue: mountedPicker.initialValue
6984
+ initialValue: mountedPicker.initialValue,
6985
+ disableApply: disableApply
6871
6986
  })))));
6872
6987
  };
6873
6988
 
@@ -7152,10 +7267,13 @@ var createDatePickers = function createDatePickers(datePickersConfig, filtersVal
7152
7267
  handleDatePickers(value, datePicker.id);
7153
7268
  };
7154
7269
  var onToggleCallback = function onToggleCallback(value, isOpen) {
7155
- if (isOpen) {
7270
+ if (!isOpen) {
7156
7271
  handleDatePickers(value, datePicker.id);
7157
7272
  }
7158
7273
  };
7274
+ var onApplyCallback = function onApplyCallback(value) {
7275
+ handleDatePickers(value, datePicker.id);
7276
+ };
7159
7277
  var disabled = getDisableValue(filtersValues, singleFilter, datePicker);
7160
7278
  var foundPicker = filtersValues.find(function (filter) {
7161
7279
  return filter.id === datePicker.id;
@@ -7169,6 +7287,7 @@ var createDatePickers = function createDatePickers(datePickersConfig, filtersVal
7169
7287
  var newPicker = _extends({}, datePicker, {
7170
7288
  onCloseCallback: onCloseCallback,
7171
7289
  onToggleCallback: onToggleCallback,
7290
+ onApplyCallback: onApplyCallback,
7172
7291
  disabled: disabled,
7173
7292
  selected: foundPicker && (foundPicker.selected instanceof Date || isDateInterval(foundPicker.selected)) ? foundPicker.selected : null,
7174
7293
  initialValue: validInitialValue
@@ -12187,33 +12306,27 @@ var Pagination = function Pagination(props) {
12187
12306
 
12188
12307
  var _templateObject$1r, _templateObject2$1c, _templateObject3$15, _templateObject4$$, _templateObject5$V;
12189
12308
  var Container$X = styled.div(_templateObject$1r || (_templateObject$1r = _taggedTemplateLiteralLoose([""])));
12190
- var Title$7 = styled.div(_templateObject2$1c || (_templateObject2$1c = _taggedTemplateLiteralLoose(["\n ", ";\n"])), function (_ref) {
12191
- var typography = _ref.theme.typography;
12192
- return typography.modal.title;
12193
- });
12194
- var MessageBox$1 = styled.div(_templateObject3$15 || (_templateObject3$15 = _taggedTemplateLiteralLoose(["\n ", ";\n margin: 28px 0;\n"])), function (_ref2) {
12195
- var typography = _ref2.theme.typography;
12196
- return typography.modal.basicContent;
12197
- });
12309
+ var Title$7 = styled.div(_templateObject2$1c || (_templateObject2$1c = _taggedTemplateLiteralLoose(["\n font-size: 20px;\n font-weight: 400;\n text-align: left;\n text-shadow: 0px 0px 10px var(--white-a5);\n text-decoration: none;\n color: var(--grey-11);\n"])));
12310
+ var MessageBox$1 = styled.div(_templateObject3$15 || (_templateObject3$15 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n line-height: 25px;\n text-align: left;\n text-decoration: none;\n color: var(--grey-11);\n margin: 28px 0;\n"])));
12198
12311
  var StyledButton$6 = styled(Button)(_templateObject4$$ || (_templateObject4$$ = _taggedTemplateLiteralLoose(["\n margin-left: 10px;\n"])));
12199
- var ButtonsGroup$1 = styled.div(_templateObject5$V || (_templateObject5$V = _taggedTemplateLiteralLoose(["\n text-align: right;\n"])));
12200
- var ConfirmationModal = function ConfirmationModal(_ref3) {
12201
- var _ref3$title = _ref3.title,
12202
- title = _ref3$title === void 0 ? '' : _ref3$title,
12203
- _ref3$message = _ref3.message,
12204
- message = _ref3$message === void 0 ? '' : _ref3$message,
12205
- _ref3$leftButtonText = _ref3.leftButtonText,
12206
- leftButtonText = _ref3$leftButtonText === void 0 ? 'submit' : _ref3$leftButtonText,
12207
- _ref3$leftButtonDesig = _ref3.leftButtonDesign,
12208
- leftButtonDesign = _ref3$leftButtonDesig === void 0 ? 'primary' : _ref3$leftButtonDesig,
12209
- _ref3$leftButtonCallb = _ref3.leftButtonCallback,
12210
- leftButtonCallback = _ref3$leftButtonCallb === void 0 ? function () {} : _ref3$leftButtonCallb,
12211
- _ref3$rightButtonDesi = _ref3.rightButtonDesign,
12212
- rightButtonDesign = _ref3$rightButtonDesi === void 0 ? 'secondary' : _ref3$rightButtonDesi,
12213
- _ref3$rightButtonText = _ref3.rightButtonText,
12214
- rightButtonText = _ref3$rightButtonText === void 0 ? 'cancel' : _ref3$rightButtonText,
12215
- _ref3$rightButtonCall = _ref3.rightButtonCallback,
12216
- rightButtonCallback = _ref3$rightButtonCall === void 0 ? function () {} : _ref3$rightButtonCall;
12312
+ var ButtonsGroup$1 = styled.div(_templateObject5$V || (_templateObject5$V = _taggedTemplateLiteralLoose(["\n text-align: right;\n display: flex;\n justify-content: flex-end;\n"])));
12313
+ var ConfirmationModal = function ConfirmationModal(_ref) {
12314
+ var _ref$title = _ref.title,
12315
+ title = _ref$title === void 0 ? '' : _ref$title,
12316
+ _ref$message = _ref.message,
12317
+ message = _ref$message === void 0 ? '' : _ref$message,
12318
+ _ref$leftButtonText = _ref.leftButtonText,
12319
+ leftButtonText = _ref$leftButtonText === void 0 ? 'submit' : _ref$leftButtonText,
12320
+ _ref$leftButtonDesign = _ref.leftButtonDesign,
12321
+ leftButtonDesign = _ref$leftButtonDesign === void 0 ? 'primary' : _ref$leftButtonDesign,
12322
+ _ref$leftButtonCallba = _ref.leftButtonCallback,
12323
+ leftButtonCallback = _ref$leftButtonCallba === void 0 ? function () {} : _ref$leftButtonCallba,
12324
+ _ref$rightButtonDesig = _ref.rightButtonDesign,
12325
+ rightButtonDesign = _ref$rightButtonDesig === void 0 ? 'secondary' : _ref$rightButtonDesig,
12326
+ _ref$rightButtonText = _ref.rightButtonText,
12327
+ rightButtonText = _ref$rightButtonText === void 0 ? 'cancel' : _ref$rightButtonText,
12328
+ _ref$rightButtonCallb = _ref.rightButtonCallback,
12329
+ rightButtonCallback = _ref$rightButtonCallb === void 0 ? function () {} : _ref$rightButtonCallb;
12217
12330
  var _useModal = useModal(),
12218
12331
  setModalOpen = _useModal.setModalOpen;
12219
12332
  var handlePrimaryBtn = function handlePrimaryBtn() {
@@ -12305,7 +12418,7 @@ var _templateObject$1u, _templateObject2$1f, _templateObject3$17, _templateObjec
12305
12418
  var Container$Y = styled.div(_templateObject$1u || (_templateObject$1u = _taggedTemplateLiteralLoose(["\n max-width: var(--max-content-width);\n margin-top: var(--utility-header-padding-top);\n padding: 0 var(--content-layout-padding-right) 0 var(--content-layout-padding-left);\n height: 48px;\n width: 100%;\n display: flex;\n"])));
12306
12419
  var LeftArea = styled.div(_templateObject2$1f || (_templateObject2$1f = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: var(--columnPadding, 16px);\n flex: 1 0 0;\n"])));
12307
12420
  var Breadcrumbs = styled.div(_templateObject3$17 || (_templateObject3$17 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 8px;\n"])));
12308
- var Breadcrumb = styled.div(_templateObject4$10 || (_templateObject4$10 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n\n"])));
12421
+ var Breadcrumb = styled.div(_templateObject4$10 || (_templateObject4$10 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n display: inline-flex;\n align-items: center;\n gap: 8px;\n white-space: nowrap;\n\n"])));
12309
12422
  var BreadcrumbIcon = styled.div(_templateObject5$W || (_templateObject5$W = _taggedTemplateLiteralLoose(["\n flex: 0;\n display: flex;\n align-items: center;\n\n > div {\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n"])));
12310
12423
  var HomeIcon = styled(BreadcrumbIcon)(_templateObject6$H || (_templateObject6$H = _taggedTemplateLiteralLoose(["\n padding-bottom: 1px;\n svg path {\n transition: stroke var(--speed-normal) var(--easing-primary-out);\n }\n"])));
12311
12424
  var BreadcrumbLink = styled(Link)(_templateObject7$D || (_templateObject7$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n flex: 1;\n color: var(--grey-10);\n font-family: var(--font-ui);\n text-decoration: none;\n font-size: 12px;\n font-style: normal;\n font-weight: 500;\n line-height: 12px; /* 100% */\n transition: color var(--speed-normal) var(--easing-primary-out);\n\n &:hover {\n color: var(--grey-12);\n ", " svg {\n path {\n stroke: var(--grey-12);\n }\n }\n }\n"])), HomeIcon);
@@ -13177,6 +13290,8 @@ var MainMenu = function MainMenu(_ref3) {
13177
13290
  _ref3$autoHideText = _ref3.autoHideText,
13178
13291
  autoHideText = _ref3$autoHideText === void 0 ? "Auto-Hide" : _ref3$autoHideText,
13179
13292
  supportUrl = _ref3.supportUrl,
13293
+ _ref3$supportText = _ref3.supportText,
13294
+ supportText = _ref3$supportText === void 0 ? "Help & Support" : _ref3$supportText,
13180
13295
  _ref3$defaultMenuOpen = _ref3.defaultMenuOpen,
13181
13296
  defaultMenuOpen = _ref3$defaultMenuOpen === void 0 ? true : _ref3$defaultMenuOpen,
13182
13297
  _ref3$canAlwaysPin = _ref3.canAlwaysPin,
@@ -13250,7 +13365,7 @@ var MainMenu = function MainMenu(_ref3) {
13250
13365
  compact: true,
13251
13366
  isActive: false,
13252
13367
  icon: 'Question',
13253
- title: 'Help & Support',
13368
+ title: supportText,
13254
13369
  href: supportUrl,
13255
13370
  menuOpen: menuState.isMenuOpen
13256
13371
  })), menuState.canPin ? React__default.createElement(FooterItemContainer, null, React__default.createElement(ContextItem, {
@@ -13340,7 +13455,7 @@ var _templateObject$1E, _templateObject2$1p, _templateObject3$1g, _templateObjec
13340
13455
  var Container$12 = styled.div(_templateObject$1E || (_templateObject$1E = _taggedTemplateLiteralLoose(["\n padding: 16px 10px 14px 23px;\n display: flex;\n flex-direction: row;\n border-top: 1px solid var(--dividing-line);\n align-items: center;\n cursor: pointer;\n svg {\n margin-top: 7px;\n }\n"])));
13341
13456
  var ColumnContainer = styled.div(_templateObject2$1p || (_templateObject2$1p = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n padding-left: 14px;\n align-items: flex-start;\n"])));
13342
13457
  var Title$8 = styled.div(_templateObject3$1g || (_templateObject3$1g = _taggedTemplateLiteralLoose(["\n opacity: 0.76;\n font-family: var(--font-ui);\n font-size: 12px;\n font-weight: 500;\n letter-spacing: 0.34px;\n color: var(--grey-11);\n"])));
13343
- var SubTitle$1 = styled.div(_templateObject4$19 || (_templateObject4$19 = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n font-size: 10px;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: var(--grey-11);\n padding-top: 2px;\n opacity: 0.5;\n"])));
13458
+ var SubTitle$1 = styled.div(_templateObject4$19 || (_templateObject4$19 = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n font-size: 10px;\n line-height: 12px;\n font-weight: 500;\n letter-spacing: 0.29px;\n color: var(--grey-11);\n padding-top: 2px;\n opacity: 0.5;\n"])));
13344
13459
  var DrawerBottomMenu = function DrawerBottomMenu(_ref) {
13345
13460
  var _ref$icon = _ref.icon,
13346
13461
  icon = _ref$icon === void 0 ? 'Settings' : _ref$icon,
@@ -13380,11 +13495,27 @@ var FooterText = styled.div(_templateObject14$b || (_templateObject14$b = _tagge
13380
13495
  var icon = _ref3.icon;
13381
13496
  return icon !== '' ? '136px;' : '164px;';
13382
13497
  });
13498
+ var updateLanguageAttribute = function updateLanguageAttribute(initLanguage) {
13499
+ if (initLanguage) {
13500
+ document.documentElement.setAttribute("lang", initLanguage);
13501
+ return initLanguage;
13502
+ }
13503
+ var browserLang = navigator.language.split("-")[0];
13504
+ var htmlLang = document.documentElement.lang;
13505
+ if (!htmlLang) {
13506
+ document.documentElement.setAttribute("lang", browserLang);
13507
+ return browserLang;
13508
+ }
13509
+ return htmlLang;
13510
+ };
13383
13511
  var UserMenu = function UserMenu(_ref4) {
13384
13512
  var _ref4$hasLanguage = _ref4.hasLanguage,
13385
13513
  hasLanguage = _ref4$hasLanguage === void 0 ? false : _ref4$hasLanguage,
13386
13514
  _ref4$selectedLanguag = _ref4.selectedLanguageText,
13387
13515
  selectedLanguageText = _ref4$selectedLanguag === void 0 ? '' : _ref4$selectedLanguag,
13516
+ _ref4$languageOptions = _ref4.languageOptionsText,
13517
+ languageOptionsText = _ref4$languageOptions === void 0 ? 'LANGUAGE / 言語' : _ref4$languageOptions,
13518
+ selectedLangAttribute = _ref4.selectedLangAttribute,
13388
13519
  _ref4$hasLogout = _ref4.hasLogout,
13389
13520
  hasLogout = _ref4$hasLogout === void 0 ? true : _ref4$hasLogout,
13390
13521
  _ref4$logoutLink = _ref4.logoutLink,
@@ -13448,6 +13579,9 @@ var UserMenu = function UserMenu(_ref4) {
13448
13579
  closeOnClick();
13449
13580
  }
13450
13581
  }, [closeOnClick]);
13582
+ useEffect(function () {
13583
+ updateLanguageAttribute(selectedLangAttribute);
13584
+ }, [selectedLangAttribute]);
13451
13585
  return React__default.createElement(Fragment, null, React__default.createElement(DrawerTop, null, hasCurrentUser ? React__default.createElement(CurrentUser, null, React__default.createElement(DrawerHeader, null, currentUserText), loggedInUser) : null, hasUserDrawerMeta ? React__default.createElement(NavigationContainer$1, null, userDrawerMeta === null || userDrawerMeta === void 0 ? void 0 : userDrawerMeta.map(function (item, key) {
13452
13586
  return React__default.createElement(UserDrawerMeta, Object.assign({
13453
13587
  onUserDrawerMetaClick: onUserDrawerMetaClick,
@@ -13476,7 +13610,7 @@ var UserMenu = function UserMenu(_ref4) {
13476
13610
  onClickCallback: onThemeToggle
13477
13611
  }), hasLanguage && React__default.createElement(DrawerBottomMenu, {
13478
13612
  icon: 'Language',
13479
- title: "LANGUAGE / \u8A00\u8A9E",
13613
+ title: languageOptionsText,
13480
13614
  subTitle: selectedLanguageText,
13481
13615
  onClickCallback: onLanguageToggle
13482
13616
  }), hasUserDrawerFooter ? React__default.createElement(FooterMeta, {
@@ -13630,17 +13764,17 @@ var Container$16 = styled.div(_templateObject$1J || (_templateObject$1J = _tagge
13630
13764
  var RightArea$1 = styled.div(_templateObject2$1u || (_templateObject2$1u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 24px;\n height: 100%;\n"])));
13631
13765
  var SearchBar = styled.div(_templateObject3$1l || (_templateObject3$1l = _taggedTemplateLiteralLoose(["\n flex: 0 1 500px;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n"])));
13632
13766
  var IconWrapper$4 = styled.div(_templateObject4$1d || (_templateObject4$1d = _taggedTemplateLiteralLoose(["\n flex: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n > div {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])));
13633
- var SearchInput = styled.input(_templateObject5$16 || (_templateObject5$16 = _taggedTemplateLiteralLoose(["\n ", ";\n font-family: var(--font-data);\n flex: 1;\n height: 35px;\n line-height: 35px;\n border: none;\n outline: none;\n background: transparent; \n color: var(--grey-10);\n font-size: 14px;\n\n &::placeholder {\n font-family: var(--font-data);\n font-weight: 400;\n font-style: italic;\n font-size: 14px;\n color: var(--grey-8);\n }\n"])), removeAutoFillStyle);
13767
+ var SearchInput = styled.input(_templateObject5$16 || (_templateObject5$16 = _taggedTemplateLiteralLoose(["\n ", ";\n font-family: var(--font-data);\n flex: 1;\n height: 35px;\n line-height: 35px;\n border: none;\n outline: none;\n background: transparent;\n color: var(--grey-10);\n font-size: 14px;\n\n &::placeholder {\n font-family: var(--font-data);\n font-weight: 400;\n font-style: italic;\n font-size: 14px;\n color: var(--grey-8);\n }\n\n &:lang(ja)::placeholder {\n font-style: normal;\n };\n"])), removeAutoFillStyle);
13634
13768
  var ButtonArea = styled.div(_templateObject6$S || (_templateObject6$S = _taggedTemplateLiteralLoose(["\n height: inherit;\n display: flex;\n gap: 0;\n"])));
13635
13769
  var buttonClickAnimation = keyframes(_templateObject7$O || (_templateObject7$O = _taggedTemplateLiteralLoose(["\n 0% {\n opacity:0.9;\n transform: scale(0.85);\n }\n 100% {\n opacity:1;\n transform: scale(1);\n }\n"])));
13636
13770
  var DrawerToggle = styled.button.attrs({
13637
13771
  type: 'button'
13638
- })(_templateObject8$F || (_templateObject8$F = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 0 56px;\n width: 56px;\n height: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n background: none;\n outline: none;\n cursor: pointer;\n\n &::after {\n content: '';\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n height: 5px;\n background-color: transparent;\n border-radius: 2px 2px 0 0;\n }\n \n transition: background-color var(--speed-normal) var(--easing-primary-out);\n \n svg {\n transition: transform var(--speed-normal) var(--easing-primary-out);\n }\n\n &:hover {\n opacity: 0.9;\n &::after {\n background-color: var(--primary-6);\n }\n }\n \n ", "\n"])), function (_ref) {
13772
+ })(_templateObject8$F || (_templateObject8$F = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 0 56px;\n width: 56px;\n height: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n background: none;\n outline: none;\n cursor: pointer;\n\n &::after {\n content: '';\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n height: 5px;\n background-color: transparent;\n border-radius: 2px 2px 0 0;\n }\n\n transition: background-color var(--speed-normal) var(--easing-primary-out);\n\n svg {\n transition: transform var(--speed-normal) var(--easing-primary-out);\n }\n\n &:hover {\n opacity: 0.9;\n &::after {\n background-color: var(--primary-6);\n }\n }\n\n ", "\n"])), function (_ref) {
13639
13773
  var isActive = _ref.isActive;
13640
13774
  return isActive && css(_templateObject9$u || (_templateObject9$u = _taggedTemplateLiteralLoose(["\n &, &:hover {\n border-bottom-color: var(--primary-9);\n &::after {\n background-color: var(--primary-9);\n }\n svg {\n transform: scale(1);\n animation: ", " 0.35s cubic-bezier(0.7, 0, 0.84, 0);\n }\n\n }\n "])), buttonClickAnimation);
13641
13775
  });
13642
13776
  var DrawerPortalWrapper = styled.div(_templateObject10$n || (_templateObject10$n = _taggedTemplateLiteralLoose([""])));
13643
- var Drawer = styled.div(_templateObject11$h || (_templateObject11$h = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n\n position: fixed;\n right: -10px;\n top: 56px;\n bottom: 0;\n background: var(--global-element-background);\n border-left: var(--dividing-line) 1px solid;\n \n width: ", ";\n opacity: 0;\n visibility: hidden;\n z-index: 100;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n transition:\n opacity var(--speed-normal) var(--easing-primary-in-out),\n right var(--speed-normal) var(--easing-primary-in-out);\n\n ", "\n"])), function (_ref2) {
13777
+ var Drawer = styled.div(_templateObject11$h || (_templateObject11$h = _taggedTemplateLiteralLoose(["\n font-family: var(--font-ui);\n\n position: fixed;\n right: -10px;\n top: 56px;\n bottom: 0;\n background: var(--global-element-background);\n border-left: var(--dividing-line) 1px solid;\n\n width: ", ";\n opacity: 0;\n visibility: hidden;\n z-index: 100;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n transition:\n opacity var(--speed-normal) var(--easing-primary-in-out),\n right var(--speed-normal) var(--easing-primary-in-out);\n\n ", "\n"])), function (_ref2) {
13644
13778
  var baseWidth = _ref2.baseWidth;
13645
13779
  return baseWidth ? baseWidth : "200px";
13646
13780
  }, function (_ref3) {
@@ -13655,6 +13789,8 @@ var TopBar = function TopBar(_ref4) {
13655
13789
  hasLanguage = _ref4$hasLanguage === void 0 ? false : _ref4$hasLanguage,
13656
13790
  _ref4$selectedLanguag = _ref4.selectedLanguageText,
13657
13791
  selectedLanguageText = _ref4$selectedLanguag === void 0 ? '' : _ref4$selectedLanguag,
13792
+ languageOptionsText = _ref4.languageOptionsText,
13793
+ selectedLangAttribute = _ref4.selectedLangAttribute,
13658
13794
  _ref4$hasLogout = _ref4.hasLogout,
13659
13795
  hasLogout = _ref4$hasLogout === void 0 ? true : _ref4$hasLogout,
13660
13796
  _ref4$logoutLink = _ref4.logoutLink,
@@ -13756,6 +13892,8 @@ var TopBar = function TopBar(_ref4) {
13756
13892
  onLogout: onLogout,
13757
13893
  onLanguageToggle: onLanguageToggle,
13758
13894
  selectedLanguageText: selectedLanguageText,
13895
+ languageOptionsText: languageOptionsText,
13896
+ selectedLangAttribute: selectedLangAttribute,
13759
13897
  hasSwitchTheme: hasSwitchTheme,
13760
13898
  isLightMode: isLightMode,
13761
13899
  switchThemeText: switchThemeText,
@@ -13888,7 +14026,7 @@ var Title$a = styled.div(_templateObject4$1f || (_templateObject4$1f = _taggedTe
13888
14026
  var active = _ref3.active;
13889
14027
  return active ? 'var(--primary-11)' : 'var(--grey-11)';
13890
14028
  });
13891
- var SubTitle$2 = styled.div(_templateObject5$17 || (_templateObject5$17 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-family: ", ";\n font-style: italic;\n color: var(--grey-a10);\n flex-shrink: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])), function (_ref4) {
14029
+ var SubTitle$2 = styled.div(_templateObject5$17 || (_templateObject5$17 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-family: ", ";\n font-style: italic;\n &:lang(ja) {\n font-style: normal;\n }\n color: var(--grey-a10);\n flex-shrink: 0;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])), function (_ref4) {
13892
14030
  var theme = _ref4.theme;
13893
14031
  return theme.fontFamily.data;
13894
14032
  });
@@ -14000,6 +14138,8 @@ var ItemWrapper = styled.div(_templateObject2$1B || (_templateObject2$1B = _tagg
14000
14138
  var MobileMenu = function MobileMenu(_ref) {
14001
14139
  var content = _ref.content,
14002
14140
  supportUrl = _ref.supportUrl,
14141
+ _ref$supportText = _ref.supportText,
14142
+ supportText = _ref$supportText === void 0 ? "Help & Support" : _ref$supportText,
14003
14143
  closeId = _ref.closeId;
14004
14144
  var _useState = useState(0),
14005
14145
  focusedContext = _useState[0],
@@ -14038,7 +14178,7 @@ var MobileMenu = function MobileMenu(_ref) {
14038
14178
  compact: true,
14039
14179
  isActive: false,
14040
14180
  icon: 'Question',
14041
- title: 'Help & Support',
14181
+ title: supportText,
14042
14182
  href: supportUrl,
14043
14183
  menuOpen: true,
14044
14184
  onClickCallback: handleCloseMenu
@@ -14069,7 +14209,7 @@ var MobileLogoLink = function MobileLogoLink(_ref) {
14069
14209
 
14070
14210
  var _excluded$N = ["closeId", "hasLanguage", "hasLogout", "logoutLink", "hasCurrentUser", "userSubmenu", "userDrawerBespoke", "loggedInUser", "onLogout", "onLanguageToggle"];
14071
14211
  var _templateObject$1U;
14072
- var Container$1d = styled.div(_templateObject$1U || (_templateObject$1U = _taggedTemplateLiteralLoose(["\n background: var(--global-element-background);\n \n z-index: 100;\n display: flex;\n flex-direction: column;\n"])));
14212
+ var Container$1d = styled.div(_templateObject$1U || (_templateObject$1U = _taggedTemplateLiteralLoose(["\n background: var(--global-element-background);\n\n z-index: 100;\n display: flex;\n flex-direction: column;\n"])));
14073
14213
  var MobileUserMenu = function MobileUserMenu(_ref) {
14074
14214
  var closeId = _ref.closeId,
14075
14215
  hasLanguage = _ref.hasLanguage,
@@ -14102,7 +14242,7 @@ var MobileUserMenu = function MobileUserMenu(_ref) {
14102
14242
  })));
14103
14243
  };
14104
14244
 
14105
- var _excluded$O = ["content", "home", "logoMark", "supportUrl", "defaultMenuOpen", "closeText", "hasLanguage", "hasLogout", "logoutLink", "hasCurrentUser", "hasNotifications", "userSubmenu", "userDrawerBespoke", "loggedInUser", "notificationsHistory", "customDrawer", "onLogout", "onLanguageToggle"];
14245
+ var _excluded$O = ["content", "home", "logoMark", "supportUrl", "defaultMenuOpen", "closeText", "hasLanguage", "hasLogout", "logoutLink", "hasCurrentUser", "hasNotifications", "userSubmenu", "userDrawerBespoke", "loggedInUser", "notificationsHistory", "customDrawer", "supportText", "onLogout", "onLanguageToggle"];
14106
14246
  var _templateObject$1V, _templateObject2$1D;
14107
14247
  var CLOSE_ID = 'closeMenu';
14108
14248
  var NOTI_TAB = 'notifications';
@@ -14129,6 +14269,7 @@ var MobileNavbar = function MobileNavbar(_ref) {
14129
14269
  loggedInUser = _ref.loggedInUser,
14130
14270
  notificationsHistory = _ref.notificationsHistory,
14131
14271
  customDrawer = _ref.customDrawer,
14272
+ supportText = _ref.supportText,
14132
14273
  onLogout = _ref.onLogout,
14133
14274
  onLanguageToggle = _ref.onLanguageToggle,
14134
14275
  props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
@@ -14179,6 +14320,7 @@ var MobileNavbar = function MobileNavbar(_ref) {
14179
14320
  }, React__default.createElement(MobileMenu, Object.assign({}, {
14180
14321
  content: content,
14181
14322
  supportUrl: supportUrl,
14323
+ supportText: supportText,
14182
14324
  defaultMenuOpen: defaultMenuOpen
14183
14325
  }, {
14184
14326
  closeId: CLOSE_ID
@@ -14189,7 +14331,7 @@ var MobileNavbar = function MobileNavbar(_ref) {
14189
14331
  })))));
14190
14332
  };
14191
14333
 
14192
- var _excluded$P = ["content", "home", "openWidth", "logoMark", "logoText", "supportUrl", "defaultMenuOpen", "canAlwaysPin", "paddingOverride", "maxWidth", "legacyLayout", "children", "onMenuToggle"];
14334
+ var _excluded$P = ["content", "home", "openWidth", "logoMark", "logoText", "supportUrl", "defaultMenuOpen", "canAlwaysPin", "paddingOverride", "maxWidth", "legacyLayout", "children", "keepOpenText", "autoHideText", "supportText", "onMenuToggle"];
14193
14335
  var GlobalUI = function GlobalUI(_ref) {
14194
14336
  var content = _ref.content,
14195
14337
  home = _ref.home,
@@ -14203,6 +14345,9 @@ var GlobalUI = function GlobalUI(_ref) {
14203
14345
  maxWidth = _ref.maxWidth,
14204
14346
  legacyLayout = _ref.legacyLayout,
14205
14347
  children = _ref.children,
14348
+ keepOpenText = _ref.keepOpenText,
14349
+ autoHideText = _ref.autoHideText,
14350
+ supportText = _ref.supportText,
14206
14351
  onMenuToggle = _ref.onMenuToggle,
14207
14352
  props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
14208
14353
  var _useBreakpoints = useBreakpoints(),
@@ -14216,7 +14361,10 @@ var GlobalUI = function GlobalUI(_ref) {
14216
14361
  supportUrl: supportUrl,
14217
14362
  defaultMenuOpen: defaultMenuOpen,
14218
14363
  canAlwaysPin: canAlwaysPin,
14219
- onMenuToggle: onMenuToggle
14364
+ onMenuToggle: onMenuToggle,
14365
+ keepOpenText: keepOpenText,
14366
+ autoHideText: autoHideText,
14367
+ supportText: supportText
14220
14368
  })), React__default.createElement(MainContainer, null, React__default.createElement(TopBar, Object.assign({}, _extends({}, props))), React__default.createElement(ContentArea, Object.assign({}, {
14221
14369
  maxWidth: maxWidth,
14222
14370
  paddingOverride: paddingOverride,
@@ -14226,7 +14374,8 @@ var GlobalUI = function GlobalUI(_ref) {
14226
14374
  home: home,
14227
14375
  logoMark: logoMark,
14228
14376
  supportUrl: supportUrl,
14229
- defaultMenuOpen: defaultMenuOpen
14377
+ defaultMenuOpen: defaultMenuOpen,
14378
+ supportText: supportText
14230
14379
  }, props))), React__default.createElement(ContentArea, null, children));
14231
14380
  };
14232
14381