@antscorp/antsomi-ui 1.3.3-beta.34 → 1.3.3-beta.35
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.
- package/es/components/atoms/Alert/Alert.js +6 -13
- package/es/components/atoms/Button/index.js +1 -1
- package/es/components/atoms/Button/test.js +6 -6
- package/es/components/atoms/DividerPure/DividerPure.js +15 -4
- package/es/components/atoms/DividerPure/styled.js +6 -36
- package/es/components/atoms/Empty/Empty.js +1 -1
- package/es/components/atoms/FloatButton/index.js +1 -1
- package/es/components/atoms/Grid/Grid.js +2 -2
- package/es/components/atoms/Icon/index.js +15 -28
- package/es/components/atoms/Input/Input.js +32 -21
- package/es/components/atoms/Input/styled.js +12 -102
- package/es/components/atoms/InputDynamic/EditCaretPositioning.js +13 -13
- package/es/components/atoms/InputDynamic/InputDynamic.js +97 -83
- package/es/components/atoms/InputDynamic/PopupShortLink.js +21 -20
- package/es/components/atoms/InputDynamic/styled.js +13 -275
- package/es/components/atoms/InputDynamic/utils.js +114 -104
- package/es/components/atoms/InputNumber/InputNumber.js +14 -3
- package/es/components/atoms/MobileFrame/MobileFrame.js +14 -3
- package/es/components/atoms/MobileFrame/constants.js +1 -1
- package/es/components/atoms/MobileFrame/styled.js +8 -29
- package/es/components/atoms/Pagination/Pagination.js +1 -1
- package/es/components/atoms/Popover/Popover.js +1 -1
- package/es/components/atoms/Popover/styled.js +6 -1
- package/es/components/atoms/PreviewTabs/PreviewTabs.js +31 -20
- package/es/components/atoms/PreviewTabs/styled.js +10 -71
- package/es/components/atoms/Progress/Progress.js +1 -1
- package/es/components/atoms/Radio/index.js +8 -18
- package/es/components/atoms/Rate/Rate.js +1 -1
- package/es/components/atoms/RateV2/RateV2.js +30 -24
- package/es/components/atoms/RequiredLabel/index.js +14 -3
- package/es/components/atoms/RequiredLabel/styled.js +7 -5
- package/es/components/atoms/ScrollBox/index.js +25 -14
- package/es/components/atoms/Segmented/Segmented.js +1 -1
- package/es/components/atoms/Skeleton/Skeleton.js +1 -1
- package/es/components/atoms/Slider/index.js +18 -7
- package/es/components/atoms/Slider/styled.js +10 -38
- package/es/components/atoms/SliderV2/index.js +21 -10
- package/es/components/atoms/Space/Space.js +7 -6
- package/es/components/atoms/Spin/Spin.js +14 -3
- package/es/components/atoms/Spin/styled.js +6 -3
- package/es/components/atoms/Statistic/Statistic.js +1 -1
- package/es/components/atoms/Steps/Steps.js +1 -1
- package/es/components/atoms/Switch/Switch.js +1 -1
- package/es/components/atoms/Text/index.js +15 -4
- package/es/components/atoms/Text/styled.js +11 -40
- package/es/components/atoms/Timeline/Timeline.js +1 -1
- package/es/components/atoms/Watermark/Watermark.js +1 -1
- package/es/components/common/ConfigProvider/ConfigProvider.js +15 -4
- package/es/components/common/ConfigProvider/GlobalStyle.js +8 -569
- package/es/components/icons/AccountCircle.js +13 -2
- package/es/components/icons/AddShoppingCart.js +13 -2
- package/es/components/icons/ArrowGrowIcon.js +13 -2
- package/es/components/icons/AssignmentInd.js +13 -2
- package/es/components/icons/AudioRecordIcon.js +13 -2
- package/es/components/icons/BugIcon.js +13 -2
- package/es/components/icons/Call.js +13 -2
- package/es/components/icons/CameraIcon.js +13 -2
- package/es/components/icons/CaptureIcon.js +13 -2
- package/es/components/icons/Category.js +13 -2
- package/es/components/icons/ChatBubbleOutline.js +13 -2
- package/es/components/icons/CheckSlimIcon.js +13 -2
- package/es/components/icons/CircleNotifications.js +13 -2
- package/es/components/icons/CloseIcon.js +13 -2
- package/es/components/icons/CommentIcon.js +13 -2
- package/es/components/icons/ConfirmationNumber.js +13 -2
- package/es/components/icons/DesktopWindows.js +13 -2
- package/es/components/icons/EventIcon.js +13 -2
- package/es/components/icons/FactCheck.js +13 -2
- package/es/components/icons/FreeDrawIcon.js +13 -2
- package/es/components/icons/GPTIcon.js +2 -2
- package/es/components/icons/GPTIconV2.js +2 -2
- package/es/components/icons/GPTIconV3.js +13 -2
- package/es/components/icons/HighlightIcon.js +13 -2
- package/es/components/icons/HightlightAlt.js +13 -2
- package/es/components/icons/HowToReg.js +13 -2
- package/es/components/icons/IdeaIcon.js +13 -2
- package/es/components/icons/Interactive.js +13 -2
- package/es/components/icons/InvisibleIcon.js +13 -2
- package/es/components/icons/List.js +13 -2
- package/es/components/icons/LocalMallIcon.js +13 -2
- package/es/components/icons/MobileFriendly.js +13 -2
- package/es/components/icons/MuteIcon.js +13 -2
- package/es/components/icons/NotificationsActive.js +13 -2
- package/es/components/icons/OpenUrlIcon.js +13 -2
- package/es/components/icons/PauseIcon.js +13 -2
- package/es/components/icons/Payment.js +13 -2
- package/es/components/icons/PersonAddDisabled.js +13 -2
- package/es/components/icons/PhoneCallback.js +13 -2
- package/es/components/icons/PlaneIcon.js +13 -2
- package/es/components/icons/Preview.js +13 -2
- package/es/components/icons/Redeem.js +13 -2
- package/es/components/icons/RemoveRedEye.js +13 -2
- package/es/components/icons/RemoveShoppingCart.js +13 -2
- package/es/components/icons/RequestIcon.js +13 -2
- package/es/components/icons/Search.js +13 -2
- package/es/components/icons/ShoppingBag.js +13 -2
- package/es/components/icons/ShoppingCart.js +13 -2
- package/es/components/icons/StopRecordIcon.js +13 -2
- package/es/components/icons/Store.js +13 -2
- package/es/components/icons/UserIcon.js +13 -2
- package/es/components/icons/VerticalDotsIcon.js +13 -2
- package/es/components/icons/WarningIcon.js +13 -2
- package/es/components/icons/Web.js +13 -2
- package/es/components/icons/WebAsset.js +13 -2
- package/es/components/molecules/AlignSetting/index.js +20 -9
- package/es/components/molecules/AlignSetting/styled.js +6 -5
- package/es/components/molecules/AlignSetting/utils.js +2 -2
- package/es/components/molecules/CaptureScreen/CaptureScreen.js +269 -240
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.js +36 -25
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +15 -129
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.js +2 -2
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +10 -73
- package/es/components/molecules/CaptureScreen/constants.js +7 -7
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.js +23 -23
- package/es/components/molecules/CaptureScreen/styled.js +28 -247
- package/es/components/molecules/CaptureScreen/themes/black.js +1 -1
- package/es/components/molecules/CaptureScreen/themes/white.js +1 -1
- package/es/components/molecules/CaptureScreen/utils.js +32 -29
- package/es/components/molecules/Card/Card.js +1 -1
- package/es/components/molecules/ChatBox/ChatBox.js +147 -81
- package/es/components/molecules/ChatBox/MessageItem.js +22 -20
- package/es/components/molecules/ChatBox/constants.js +2 -2
- package/es/components/molecules/ChatBox/styled.js +13 -275
- package/es/components/molecules/Collapse/Collapse.js +4 -3
- package/es/components/molecules/ColorPicker/ChromePicker/index.js +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +6 -11
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +33 -21
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +14 -95
- package/es/components/molecules/ColorPicker/SketchPicker/index.js +12 -1
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +6 -6
- package/es/components/molecules/ColorPicker/index.js +17 -17
- package/es/components/molecules/ColorPicker/styled.js +6 -8
- package/es/components/molecules/ColorSetting/index.js +35 -15
- package/es/components/molecules/ColorSetting/styled.js +9 -36
- package/es/components/molecules/DatePicker/DatePicker.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +146 -112
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +10 -10
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +12 -45
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +8 -3
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +28 -9
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.js +1 -1
- package/es/components/molecules/Drawer/Drawer.js +1 -1
- package/es/components/molecules/EdgeSetting/index.js +69 -45
- package/es/components/molecules/EdgeSetting/styled.js +8 -13
- package/es/components/molecules/FontFamilySelect/constants.js +1 -1
- package/es/components/molecules/FontFamilySelect/index.js +33 -10
- package/es/components/molecules/FontSetting/constants.js +2 -2
- package/es/components/molecules/FontSetting/index.js +36 -22
- package/es/components/molecules/FontWeightSelect/constants.js +1 -1
- package/es/components/molecules/FontWeightSelect/index.js +32 -9
- package/es/components/molecules/GradientSetting/index.js +55 -35
- package/es/components/molecules/GradientSetting/styled.js +6 -58
- package/es/components/molecules/IconSelection/components/Icon/index.js +19 -8
- package/es/components/molecules/IconSelection/constants.js +37 -31
- package/es/components/molecules/IconSelection/index.js +56 -43
- package/es/components/molecules/IconSelection/styled.js +10 -74
- package/es/components/molecules/IconSelection/types.js +3 -1
- package/es/components/molecules/IconSelection/utils.js +3 -3
- package/es/components/molecules/InputNumber/index.js +23 -12
- package/es/components/molecules/InputNumberWithUnit/index.js +19 -5
- package/es/components/molecules/InputNumberWithUnit/styled.js +6 -15
- package/es/components/molecules/InputSearch/index.js +14 -3
- package/es/components/molecules/InputSearch/styled.js +6 -43
- package/es/components/molecules/Modal/Modal.js +23 -8
- package/es/components/molecules/Modal/styled.js +17 -69
- package/es/components/molecules/ModalV2/ModalV2.js +17 -6
- package/es/components/molecules/ModalV2/styled.js +6 -19
- package/es/components/molecules/Popconfirm/Popconfirm.js +1 -1
- package/es/components/molecules/PopupDraggable/PopupDraggable.js +25 -13
- package/es/components/molecules/PopupDraggable/styled.js +11 -47
- package/es/components/molecules/PreviewModal/PreviewModal.js +16 -5
- package/es/components/molecules/PreviewModal/styled.js +9 -30
- package/es/components/molecules/RadioGroup/index.js +14 -3
- package/es/components/molecules/RadioGroup/styled.js +7 -11
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +338 -275
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +37 -23
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +6 -78
- package/es/components/molecules/ResizeGrid/constant.js +37 -26
- package/es/components/molecules/ResizeGrid/styled.js +9 -54
- package/es/components/molecules/Result/Result.js +1 -1
- package/es/components/molecules/RichMenuBlock/RichMenuBlock.js +34 -23
- package/es/components/molecules/RichMenuBlock/RichMenuCell/index.js +11 -11
- package/es/components/molecules/RichMenuBlock/RichMenuCell/styled.js +18 -34
- package/es/components/molecules/RichMenuBlock/constants.js +1 -1
- package/es/components/molecules/RichMenuBlock/styled.js +16 -15
- package/es/components/molecules/RichMenuChatBar/RichMenuChatBar.js +17 -6
- package/es/components/molecules/RichMenuChatBar/TypingChat/index.js +3 -3
- package/es/components/molecules/RichMenuChatBar/TypingChat/styled.js +8 -43
- package/es/components/molecules/RichMenuChatBar/styled.js +10 -25
- package/es/components/molecules/RichMenuMobileView/RichMenuMobileView.js +22 -7
- package/es/components/molecules/RichMenuMobileView/styled.js +11 -18
- package/es/components/molecules/Select/Select.js +20 -9
- package/es/components/molecules/Select/Test.js +2 -2
- package/es/components/molecules/Select/styled.js +7 -34
- package/es/components/molecules/SettingWrapper/index.js +2 -2
- package/es/components/molecules/SettingWrapper/styled.js +9 -15
- package/es/components/molecules/SettingWrapperPopover/index.js +16 -4
- package/es/components/molecules/SliderWithInputNumber/index.js +19 -8
- package/es/components/molecules/SliderWithInputNumber/styled.js +6 -3
- package/es/components/molecules/TextDecorationSelect/constants.js +1 -1
- package/es/components/molecules/TextDecorationSelect/index.js +32 -9
- package/es/components/molecules/TextTransformSelect/constants.js +1 -1
- package/es/components/molecules/TextTransformSelect/index.js +32 -9
- package/es/components/molecules/TreeSelect/TreeSelect.js +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.js +2 -2
- package/es/components/molecules/UploadImage/index.js +280 -182
- package/es/components/molecules/UploadImage/styled.js +16 -129
- package/es/components/organism/Help/Help.js +530 -422
- package/es/components/organism/Help/constants.js +12 -11
- package/es/components/organism/Help/styled.js +48 -257
- package/es/components/organism/Help/utils.js +11 -11
- package/es/components/organism/PositionSetting/config.js +2 -2
- package/es/components/organism/PositionSetting/index.js +27 -15
- package/es/components/organism/PositionSetting/styled.js +6 -1
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.js +10 -10
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.js +6 -6
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +6 -12
- package/es/components/organism/Table/CrossTabTable/constants.js +3 -3
- package/es/components/organism/Table/CrossTabTable/styled.js +6 -12
- package/es/components/organism/Table/CrossTabTable/utils.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.js +23 -12
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.js +8 -8
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +8 -20
- package/es/components/organism/Table/ExplorePivotTable/constants.js +2 -2
- package/es/components/organism/Table/ExplorePivotTable/styled.js +7 -13
- package/es/components/organism/Table/ExplorePivotTable/utils.js +72 -52
- package/es/constants/gradientSetting.js +4 -4
- package/es/constants/keyCode.js +387 -387
- package/es/constants/richMenu.js +2 -2
- package/es/constants/storybook.js +2 -2
- package/es/constants/theme.js +6 -6
- package/es/hooks/index.js +1 -1
- package/es/hooks/useDebounce.js +5 -5
- package/es/hooks/useDeepCompareEffect.js +1 -1
- package/es/locales/i18n.js +2 -2
- package/es/locales/translations.js +23 -7
- package/es/models/SavedImage.js +68 -23
- package/es/models/Upload.js +64 -19
- package/es/models/model.js +5 -3
- package/es/services/MediaTemplateDesign/UploadFile/index.js +102 -46
- package/es/services/Ticket.js +89 -48
- package/es/services/constants.js +3 -3
- package/es/services/index.js +30 -19
- package/es/test.js +36 -25
- package/es/utils/color.js +22 -22
- package/es/utils/common.js +88 -75
- package/es/utils/handleError.js +49 -8
- package/es/utils/loadable.js +18 -6
- package/es/utils/web.js +26 -20
- package/package.json +3 -3
- package/dist/02028cc6be94478e1f13.svg +0 -1
- package/dist/0dfb9214dfd945cd7290.png +0 -1
- package/dist/19a777928d8a4fb24864.svg +0 -1
- package/dist/256cc472918edbfc13f3.ttf +0 -0
- package/dist/42deb30bedf71d95ec56.woff +0 -0
- package/dist/574b7bee0563a9fe9a29.png +0 -1
- package/dist/a772098db05052e4b517.eot +0 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +0 -1
- package/dist/e32f09119052a55cce3c.png +0 -1
- package/dist/e3851b9384a984c6fdb5.png +0 -1
- package/dist/f422f99dc05cb0013092.png +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -69
- package/dist/main.css +0 -69
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/84d7dd910e6235dc6ce60657dd3bb062.svg +0 -87
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/97210ba7dc321670f4a144c1b40e88d8.png +0 -0
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/fe347d51ab67ec846138b9a565b3071b.svg +0 -361
- package/dist/public/icons/iphone-top-bar.png +0 -0
- package/dist/public/icons/iphone.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/stars_slider.png +0 -0
- package/dist/public/icons/transparent.svg +0 -1
|
@@ -14,49 +14,57 @@ import { decode } from 'html-entities';
|
|
|
14
14
|
import { getObjectPropSafely, random } from '@antscorp/antsomi-ui/es/utils';
|
|
15
15
|
export function validateURL(string) {
|
|
16
16
|
// eslint-disable-next-line no-useless-escape
|
|
17
|
-
|
|
17
|
+
var regexp = /^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;
|
|
18
18
|
return regexp.test(string);
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
export var getInsertPatternWithAppendSpaceEnd = function (id, code, label, bgColor) {
|
|
21
|
+
return "<button id=\"".concat(id, "\" contenteditable=\"false\" class=\"insert-word\" style=\"max-width: 250px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding: 5px 8px; color: white; font-size: inherit; outline: none; border: 1px solid transparent; border-radius: 1.2rem; margin-top: 2px; cursor: pointer; background: ").concat(bgColor, "; height: auto\" value=").concat(code
|
|
22
|
+
.replace(/\s/gm, ' ')
|
|
23
|
+
.replace(/"/gm, '"'), "><span style=\"line-height: 20px;margin-right: 8px;pointer-events:none;\">").concat(label, "</span><em class=\"editor-icon-remove\" style=\"color: white;font-style: normal; marign-left: 4px; position: relative; z-index: 1;font-size: 1rem;font-weight: bold\">x</em></button> ");
|
|
24
|
+
};
|
|
25
|
+
export var genShortLinkValue = function (url, type) {
|
|
26
|
+
var id = random(5);
|
|
27
|
+
var keyTag = 'shortlink';
|
|
26
28
|
if (type === 'general') {
|
|
27
29
|
keyTag = 'shortlink_static';
|
|
28
30
|
}
|
|
29
31
|
return {
|
|
30
|
-
id,
|
|
31
|
-
value:
|
|
32
|
-
label:
|
|
32
|
+
id: id,
|
|
33
|
+
value: "#{".concat(keyTag, "(").concat(url, ")}"),
|
|
34
|
+
label: "https://ants.ly/".concat(id),
|
|
33
35
|
};
|
|
34
36
|
};
|
|
35
|
-
export
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
export var getInsertPattern = function (id, code, label, bgColor) {
|
|
38
|
+
return "<button id=\"".concat(id, "\" contenteditable=\"false\" class=\"insert-word\" style=\"padding: 5px 8px; color: white; font-size: inherit; outline: none; border: 1px solid transparent; border-radius: 1.2rem; height: auto; margin-top: 2px; cursor: pointer; background: ").concat(bgColor, "\" value=").concat(code
|
|
39
|
+
.replace(/\s/gm, ' ')
|
|
40
|
+
.replace(/"/gm, '"'), "><span style=\"line-height: 20px;margin-right: 8px;pointer-events:none;\">").concat(label, "</span><em class=\"editor-icon-remove\" style=\"color: white;font-style: normal; marign-left: 4px; position: relative; z-index: 1;font-size: 1rem;font-weight: bold\">x</em></button>");
|
|
41
|
+
};
|
|
42
|
+
export var convertHtmlText = function (htmlText, format, state, objectWidgetInput, type, init) {
|
|
43
|
+
if (format === void 0) { format = 'raw'; }
|
|
44
|
+
if (objectWidgetInput === void 0) { objectWidgetInput = {}; }
|
|
45
|
+
if (type === void 0) { type = ''; }
|
|
46
|
+
if (init === void 0) { init = ''; }
|
|
47
|
+
var result = htmlText;
|
|
40
48
|
try {
|
|
41
49
|
if (format && format.toLowerCase() === 'raw') {
|
|
42
50
|
// pattern find all button insert word
|
|
43
|
-
|
|
51
|
+
var regexInsertPattern = type === 'input'
|
|
44
52
|
? /<button .*?class="insert-word.*?".*? value="([^"]*?)".*?>(.*?)<\/button>/gim
|
|
45
53
|
: /<button .*?class="insert-word.*?".*? value=(.*?)>(.*?)<\/button>/gim;
|
|
46
54
|
// pattern find all symbol `"`
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
var regexQuot_1 = /"/gm;
|
|
56
|
+
var regexSpace_1 = / /gm;
|
|
57
|
+
var regexSpaceV2_1 = /nbsp;/gm;
|
|
58
|
+
var regexShortLink_1 = /#{shortlink\(.*?\)}/;
|
|
59
|
+
var regexShortLinkStatic_1 = /#{shortlink_static\(.*?\)}/;
|
|
52
60
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
var replacer = function (match, p1, p2, p3, offset, string) {
|
|
62
|
+
var newPlacer = p1
|
|
55
63
|
.replace(/"/gm, '')
|
|
56
|
-
.replace(
|
|
57
|
-
.replace(
|
|
58
|
-
.replace(
|
|
59
|
-
if (!
|
|
64
|
+
.replace(regexQuot_1, '"')
|
|
65
|
+
.replace(regexSpace_1, ' ')
|
|
66
|
+
.replace(regexSpaceV2_1, ' ');
|
|
67
|
+
if (!regexShortLink_1.test(newPlacer) || !regexShortLinkStatic_1.test(newPlacer)) {
|
|
60
68
|
return newPlacer.replace(/&/gm, '');
|
|
61
69
|
}
|
|
62
70
|
return newPlacer;
|
|
@@ -75,55 +83,55 @@ export const convertHtmlText = (htmlText, format = 'raw', state, objectWidgetInp
|
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
if (format && format.toLowerCase() === 'html') {
|
|
78
|
-
|
|
86
|
+
var insertPattern = /#{.*?}/gm;
|
|
79
87
|
if (insertPattern.test(htmlText)) {
|
|
80
|
-
|
|
88
|
+
var htmlReplacer = function (matcher) {
|
|
81
89
|
// const regex = /(\w+.\w+)|(\(\w+)\)|"(.*?)"/gmi;
|
|
82
90
|
// const regex = /(\w+.\w+)|(\(\w+)\)|"(.*?)"/gim;
|
|
83
91
|
// const regex = /(\w+)|(\(\w+)\)|"(.*?)"/gim;
|
|
84
92
|
// const found = matcher.match(regex);
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
var found = matcher.replace(/#|{|}|/g, '').split('.');
|
|
94
|
+
var foundLink = found[0].split('(');
|
|
87
95
|
if (found && found.length) {
|
|
88
|
-
|
|
96
|
+
var bgColor_1 = '#ccc';
|
|
89
97
|
// console.log(found);
|
|
90
98
|
if (found[0] === 'customer') {
|
|
91
|
-
|
|
99
|
+
bgColor_1 = '#3C39BA';
|
|
92
100
|
}
|
|
93
101
|
else if (found[0] === 'visitor') {
|
|
94
|
-
|
|
102
|
+
bgColor_1 = '#009000';
|
|
95
103
|
}
|
|
96
104
|
else if (found[0] === 'event') {
|
|
97
|
-
|
|
105
|
+
bgColor_1 = '#FBAC00';
|
|
98
106
|
}
|
|
99
107
|
else if (found[0] === 'objectWidget') {
|
|
100
|
-
|
|
108
|
+
bgColor_1 = '#24abb9';
|
|
101
109
|
}
|
|
102
110
|
else if (found[0] === 'productTemplate') {
|
|
103
|
-
|
|
111
|
+
bgColor_1 = '#9238b5';
|
|
104
112
|
}
|
|
105
113
|
else if (found[0] === 'promotion_code' ||
|
|
106
114
|
foundLink[0] === 'nontrackurl' ||
|
|
107
115
|
foundLink[0] === 'shortlink' ||
|
|
108
116
|
foundLink[0] === 'shortlink_static') {
|
|
109
|
-
|
|
117
|
+
bgColor_1 = '#6750A7';
|
|
110
118
|
}
|
|
111
119
|
else if (found[0] === 'custom') {
|
|
112
|
-
|
|
120
|
+
bgColor_1 = '#BBEFBE';
|
|
113
121
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
var label = getObjectPropSafely(function () {
|
|
123
|
+
var foundAttribute = '';
|
|
124
|
+
var codeTag = '';
|
|
117
125
|
if (found.length === 2) {
|
|
118
126
|
if (found[0] === 'objectWidget' && found[1].startsWith('custom_')) {
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
bgColor_1 = '#1890F0';
|
|
128
|
+
var contentWidget = found[1].substring(7);
|
|
121
129
|
// remove custom_ for get right content
|
|
122
130
|
if (contentWidget.length > 0) {
|
|
123
131
|
if (objectWidgetInput[contentWidget] !== undefined) {
|
|
124
132
|
return objectWidgetInput[contentWidget].name;
|
|
125
133
|
}
|
|
126
|
-
|
|
134
|
+
bgColor_1 = '#ccc';
|
|
127
135
|
// return contentWidget;
|
|
128
136
|
return 'Unknow Widget';
|
|
129
137
|
}
|
|
@@ -137,8 +145,8 @@ export const convertHtmlText = (htmlText, format = 'raw', state, objectWidgetInp
|
|
|
137
145
|
codeTag = found[1];
|
|
138
146
|
}
|
|
139
147
|
else {
|
|
140
|
-
|
|
141
|
-
codeTag =
|
|
148
|
+
var splitString = found[2].split('||');
|
|
149
|
+
codeTag = "".concat(found[1], ".").concat(splitString[0]);
|
|
142
150
|
}
|
|
143
151
|
}
|
|
144
152
|
// console.log('foundAttribute', found, foundAttribute, codeTag);
|
|
@@ -147,28 +155,28 @@ export const convertHtmlText = (htmlText, format = 'raw', state, objectWidgetInp
|
|
|
147
155
|
}
|
|
148
156
|
// bgColor = '#ccc';
|
|
149
157
|
// return `${found[0]}.${codeTag}`;
|
|
150
|
-
return
|
|
158
|
+
return "".concat(codeTag);
|
|
151
159
|
});
|
|
152
160
|
if (foundLink[0] === 'nontrackurl') {
|
|
153
161
|
label = 'Non tracking Link';
|
|
154
162
|
}
|
|
155
163
|
if (foundLink[0] === 'shortlink' || foundLink[0] === 'shortlink_static') {
|
|
156
|
-
|
|
164
|
+
var url = get(matcher.match(/\((.*?)\)/), '.1', '');
|
|
157
165
|
label = genShortLinkValue(url).label;
|
|
158
166
|
}
|
|
159
167
|
// console.log(type);
|
|
160
168
|
if (type === 'input') {
|
|
161
169
|
if (init === 'add') {
|
|
162
|
-
return getInsertPatternWithAppendSpaceEnd(random(8), matcher, label || found[0],
|
|
170
|
+
return getInsertPatternWithAppendSpaceEnd(random(8), matcher, label || found[0], bgColor_1);
|
|
163
171
|
}
|
|
164
|
-
return getInsertPattern(random(8), matcher, label || found[0],
|
|
172
|
+
return getInsertPattern(random(8), matcher, label || found[0], bgColor_1);
|
|
165
173
|
}
|
|
166
|
-
return getInsertPattern(random(8), matcher, label || found[0],
|
|
174
|
+
return getInsertPattern(random(8), matcher, label || found[0], bgColor_1);
|
|
167
175
|
}
|
|
168
176
|
return matcher;
|
|
169
177
|
};
|
|
170
178
|
try {
|
|
171
|
-
return
|
|
179
|
+
return "".concat(result.replace(insertPattern, htmlReplacer));
|
|
172
180
|
}
|
|
173
181
|
catch (error) {
|
|
174
182
|
// eslint-disable-next-line no-console
|
|
@@ -184,11 +192,11 @@ export const convertHtmlText = (htmlText, format = 'raw', state, objectWidgetInp
|
|
|
184
192
|
}
|
|
185
193
|
return result;
|
|
186
194
|
};
|
|
187
|
-
export
|
|
188
|
-
listIconRemove.forEach((each)
|
|
195
|
+
export var handleUpdateInputPersonalization = function (listIconRemove, listBtnElement) {
|
|
196
|
+
listIconRemove.forEach(function (each) {
|
|
189
197
|
each.innerHTML = '';
|
|
190
198
|
each.innerHTML = '✕';
|
|
191
|
-
|
|
199
|
+
var styleBtnRemove = each.style;
|
|
192
200
|
styleBtnRemove.fontSize = '13px';
|
|
193
201
|
styleBtnRemove.color = '#305FB8';
|
|
194
202
|
styleBtnRemove.marginLeft = '-12px';
|
|
@@ -202,8 +210,8 @@ export const handleUpdateInputPersonalization = (listIconRemove, listBtnElement)
|
|
|
202
210
|
styleBtnRemove.transform = 'translate(-50%, -50%)';
|
|
203
211
|
styleBtnRemove.left = '100%';
|
|
204
212
|
});
|
|
205
|
-
listBtnElement.forEach((each)
|
|
206
|
-
|
|
213
|
+
listBtnElement.forEach(function (each) {
|
|
214
|
+
var styleBtnElement = each.style;
|
|
207
215
|
styleBtnElement.position = 'relative';
|
|
208
216
|
styleBtnElement.color = '#000';
|
|
209
217
|
styleBtnElement.padding = '3px 8px';
|
|
@@ -214,7 +222,7 @@ export const handleUpdateInputPersonalization = (listIconRemove, listBtnElement)
|
|
|
214
222
|
});
|
|
215
223
|
};
|
|
216
224
|
export function removeHtmlTag(text) {
|
|
217
|
-
text =
|
|
225
|
+
text = "".concat(text).replace(/(<([^>]+)>)/gi, '');
|
|
218
226
|
text = text.replace(/ /gm, ' ');
|
|
219
227
|
return decode(text.trim());
|
|
220
228
|
}
|
|
@@ -224,14 +232,14 @@ export function convertBreakTag(text) {
|
|
|
224
232
|
export function convertDivToBreakTag(text) {
|
|
225
233
|
return text.replace(/<div>/gi, '<br>').replace(/<\/div>/gi, '');
|
|
226
234
|
}
|
|
227
|
-
export
|
|
235
|
+
export var pasteHtmlAtCaret = function (html, selectPastedContent, callback) {
|
|
228
236
|
try {
|
|
229
237
|
// console.log('callback', callback, typeof callback);
|
|
230
238
|
if (typeof callback === 'function') {
|
|
231
239
|
callback();
|
|
232
240
|
}
|
|
233
|
-
|
|
234
|
-
|
|
241
|
+
var sel = void 0;
|
|
242
|
+
var range = void 0;
|
|
235
243
|
if (window.getSelection) {
|
|
236
244
|
// IE9 and non-IE
|
|
237
245
|
sel = window.getSelection();
|
|
@@ -241,16 +249,16 @@ export const pasteHtmlAtCaret = (html, selectPastedContent, callback) => {
|
|
|
241
249
|
// Range.createContextualFragment() would be useful here but is
|
|
242
250
|
// only relatively recently standardized and is not supported in
|
|
243
251
|
// some browsers (IE9, for one)
|
|
244
|
-
|
|
252
|
+
var el = document.createElement('div');
|
|
245
253
|
el.innerHTML = html;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
var frag = document.createDocumentFragment();
|
|
255
|
+
var node = void 0;
|
|
256
|
+
var lastNode = void 0;
|
|
249
257
|
// eslint-disable-next-line no-cond-assign
|
|
250
258
|
while ((node = el.firstChild)) {
|
|
251
259
|
lastNode = frag.appendChild(node);
|
|
252
260
|
}
|
|
253
|
-
|
|
261
|
+
var firstNode = frag.firstChild;
|
|
254
262
|
range.insertNode(frag);
|
|
255
263
|
// Preserve the selection
|
|
256
264
|
if (lastNode) {
|
|
@@ -270,7 +278,7 @@ export const pasteHtmlAtCaret = (html, selectPastedContent, callback) => {
|
|
|
270
278
|
}
|
|
271
279
|
else if ((sel = document.selection) && sel.type !== 'Control') {
|
|
272
280
|
// IE < 9
|
|
273
|
-
|
|
281
|
+
var originalRange = sel.createRange();
|
|
274
282
|
originalRange.collapse(true);
|
|
275
283
|
sel.createRange().pasteHTML(html);
|
|
276
284
|
if (selectPastedContent) {
|
|
@@ -285,12 +293,14 @@ export const pasteHtmlAtCaret = (html, selectPastedContent, callback) => {
|
|
|
285
293
|
console.log(error);
|
|
286
294
|
}
|
|
287
295
|
};
|
|
288
|
-
export
|
|
289
|
-
.
|
|
290
|
-
|
|
296
|
+
export var getInsertLinkPatternWithAppendSpaceEnd = function (id, value, label) {
|
|
297
|
+
return "<button id=\"".concat(id, "\" contenteditable=\"false\" class=\"insert-word\" style=\"padding: 5px 8px; color: #000; font-size: inherit; outline: none; border: 1px solid transparent; border-radius: 1.2rem; margin-top: 2px; cursor: pointer; height: auto; background-color: #CAE5FE\" value=").concat(value
|
|
298
|
+
.replace(/\s/gm, ' ')
|
|
299
|
+
.replace(/"/gm, '"'), "><span style=\"line-height: 20px;margin-right: 8px;pointer-events:none;\">").concat(label, "</span><em class=\"editor-icon-remove\" style=\"color: white;font-style: normal; marign-left: 4px; position: relative; z-index: 999;font-size: 1rem;font-weight: bold\">x</em></button> ");
|
|
300
|
+
};
|
|
291
301
|
// eslint-disable-next-line func-names
|
|
292
|
-
export
|
|
293
|
-
|
|
302
|
+
export var validateHTMLTags = (function () {
|
|
303
|
+
var e = [
|
|
294
304
|
'<a ',
|
|
295
305
|
'<a>',
|
|
296
306
|
'</a>',
|
|
@@ -642,8 +652,8 @@ export const validateHTMLTags = (function () {
|
|
|
642
652
|
'<wbr ',
|
|
643
653
|
'</wbr>',
|
|
644
654
|
];
|
|
645
|
-
|
|
646
|
-
escapeCustomTags(t) {
|
|
655
|
+
var t = {
|
|
656
|
+
escapeCustomTags: function (t) {
|
|
647
657
|
if (!t || typeof t !== 'string')
|
|
648
658
|
return t;
|
|
649
659
|
for (var r = 0, a = [], i = [], o = [], s = t, n = 0; n <= t.length; n++)
|
|
@@ -654,15 +664,15 @@ export const validateHTMLTags = (function () {
|
|
|
654
664
|
var d = t.indexOf('<', r);
|
|
655
665
|
if (d === -1)
|
|
656
666
|
break;
|
|
657
|
-
|
|
658
|
-
|
|
667
|
+
var l = t.indexOf(' ', d + 1);
|
|
668
|
+
var p = t.indexOf('/>', d + 1);
|
|
659
669
|
var u = t.indexOf('>', d + 1);
|
|
660
|
-
|
|
670
|
+
var b = [];
|
|
661
671
|
l != -1 && b.push(l), p != -1 && b.push(p), u != -1 && b.push(u);
|
|
662
672
|
var f;
|
|
663
|
-
|
|
673
|
+
var m = Math.min.apply(Math, b);
|
|
664
674
|
var h = t.substring(d, m + 1);
|
|
665
|
-
(f = e.some(e
|
|
675
|
+
(f = e.some(function (e) {
|
|
666
676
|
if (h === e)
|
|
667
677
|
return a.push({ index: d, type: 'lt' }, { index: u, type: 'gt' }), !0;
|
|
668
678
|
})),
|
|
@@ -670,30 +680,30 @@ export const validateHTMLTags = (function () {
|
|
|
670
680
|
f ? (r = m) : (r += 1);
|
|
671
681
|
}
|
|
672
682
|
for (n = 0; n < i.length; n++) {
|
|
673
|
-
a.some((e)
|
|
683
|
+
a.some(function (e) { return e.index === i[n].index; }) || o.push(i[n]);
|
|
674
684
|
}
|
|
675
685
|
for (n = o.length - 1; n >= 0; n--)
|
|
676
686
|
o[n].type == 'lt'
|
|
677
|
-
? (s =
|
|
687
|
+
? (s = "".concat(s.substring(0, o[n].index), "<").concat(s.substring(o[n].index + 1)))
|
|
678
688
|
: o[n].type == 'gt' &&
|
|
679
|
-
(s =
|
|
689
|
+
(s = "".concat(s.substring(0, o[n].index), ">").concat(s.substring(o[n].index + 1)));
|
|
680
690
|
return s;
|
|
681
691
|
},
|
|
682
|
-
isCustomTag(t) {
|
|
692
|
+
isCustomTag: function (t) {
|
|
683
693
|
if (!t || typeof t !== 'string')
|
|
684
694
|
return !1;
|
|
685
695
|
for (var r = !1, a = 0, i = 0; i <= t.length;) {
|
|
686
|
-
|
|
696
|
+
var o = t.indexOf('<', a);
|
|
687
697
|
if (o == -1)
|
|
688
698
|
break;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
699
|
+
var s = t.indexOf(' ', o + 1);
|
|
700
|
+
var n = t.indexOf('/>', o + 1);
|
|
701
|
+
var d = t.indexOf('>', o + 1);
|
|
702
|
+
var l = [];
|
|
693
703
|
s != -1 && l.push(s), n != -1 && l.push(n), d != -1 && l.push(d);
|
|
694
|
-
|
|
704
|
+
var p = Math.min.apply(Math, l);
|
|
695
705
|
var u = t.substring(o, p + 1);
|
|
696
|
-
if ((e.some((t, a)
|
|
706
|
+
if ((e.some(function (t, a) {
|
|
697
707
|
if (u === t)
|
|
698
708
|
return !0;
|
|
699
709
|
a + 1 == e.length && (r = !0);
|
|
@@ -704,21 +714,21 @@ export const validateHTMLTags = (function () {
|
|
|
704
714
|
}
|
|
705
715
|
return r;
|
|
706
716
|
},
|
|
707
|
-
isValidTag(t) {
|
|
717
|
+
isValidTag: function (t) {
|
|
708
718
|
if (!t || typeof t !== 'string')
|
|
709
719
|
return !1;
|
|
710
720
|
for (var r = !1, a = 0, i = 0; i <= t.length;) {
|
|
711
|
-
|
|
721
|
+
var o = t.indexOf('<', a);
|
|
712
722
|
if (o == -1)
|
|
713
723
|
break;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
724
|
+
var s = t.indexOf(' ', o + 1);
|
|
725
|
+
var n = t.indexOf('/>', o + 1);
|
|
726
|
+
var d = t.indexOf('>', o + 1);
|
|
727
|
+
var l = [];
|
|
718
728
|
s != -1 && l.push(s), n != -1 && l.push(n), d != -1 && l.push(d);
|
|
719
|
-
|
|
729
|
+
var p = Math.min.apply(Math, l);
|
|
720
730
|
var u = t.substring(o, p + 1);
|
|
721
|
-
if ((r = e.some(e
|
|
731
|
+
if ((r = e.some(function (e) { return u === e; })))
|
|
722
732
|
break;
|
|
723
733
|
(i = p), r ? (a = p) : (a += 1);
|
|
724
734
|
}
|
|
@@ -728,19 +738,19 @@ export const validateHTMLTags = (function () {
|
|
|
728
738
|
return t;
|
|
729
739
|
})();
|
|
730
740
|
// Fix bug con trỏ input check text Value đã có thẻ <br/>
|
|
731
|
-
export
|
|
741
|
+
export var spacingNonTracking = function (data) {
|
|
732
742
|
// eslint-disable-next-line prefer-regex-literals
|
|
733
|
-
|
|
743
|
+
var regexHasBannedPrefix = new RegExp(/<br\s*\/?>/gi);
|
|
734
744
|
if (typeof data === 'string' && regexHasBannedPrefix.test(data)) {
|
|
735
745
|
return true;
|
|
736
746
|
}
|
|
737
747
|
return false;
|
|
738
748
|
};
|
|
739
|
-
export
|
|
749
|
+
export var initialValue = function (initValue) {
|
|
740
750
|
try {
|
|
741
|
-
|
|
751
|
+
var newTextValue = convertHtmlText(initValue, 'html', {}, {}, 'input', '');
|
|
742
752
|
if (newTextValue && !newTextValue.endsWith(' ')) {
|
|
743
|
-
return
|
|
753
|
+
return "".concat(newTextValue, " ");
|
|
744
754
|
}
|
|
745
755
|
return newTextValue;
|
|
746
756
|
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
13
|
var t = {};
|
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -15,10 +26,10 @@ import clsx from 'clsx';
|
|
|
15
26
|
import { InputNumber as AntdInputNumber } from 'antd';
|
|
16
27
|
// Icons
|
|
17
28
|
import Icon from '@antscorp/icons';
|
|
18
|
-
export
|
|
29
|
+
export var InputNumber = function (props) {
|
|
19
30
|
// Props
|
|
20
|
-
|
|
21
|
-
return (React.createElement(AntdInputNumber,
|
|
31
|
+
var showHandler = props.showHandler, className = props.className, restOfProps = __rest(props, ["showHandler", "className"]);
|
|
32
|
+
return (React.createElement(AntdInputNumber, __assign({}, restOfProps, { className: clsx(className, {
|
|
22
33
|
'--show-handler': showHandler,
|
|
23
34
|
}), upHandler: React.createElement(Icon, { type: "icon-ants-caret-up", style: { fontSize: 8 } }), downHandler: React.createElement(Icon, { type: "icon-ants-caret-down", style: { fontSize: 8 } }) })));
|
|
24
35
|
};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
13
|
var t = {};
|
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -13,9 +24,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
24
|
import React from 'react';
|
|
14
25
|
// Styled
|
|
15
26
|
import { MobileWrapper, MobileInner, MobileBottomLine } from './styled';
|
|
16
|
-
export
|
|
17
|
-
var
|
|
18
|
-
return (React.createElement(MobileWrapper,
|
|
27
|
+
export var MobileFrame = function (_a) {
|
|
28
|
+
var children = _a.children, restOfProps = __rest(_a, ["children"]);
|
|
29
|
+
return (React.createElement(MobileWrapper, __assign({}, restOfProps),
|
|
19
30
|
React.createElement(MobileInner, null,
|
|
20
31
|
children,
|
|
21
32
|
React.createElement(MobileBottomLine, null))));
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
1
5
|
// Libraries
|
|
2
6
|
import styled from 'styled-components';
|
|
3
7
|
// Assets
|
|
4
8
|
import MobileFrame from '@antscorp/antsomi-ui/es/assets/images/iphone.png';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
background: url(${MobileFrame}) no-repeat center center;
|
|
10
|
-
background-size: contain;
|
|
11
|
-
`;
|
|
12
|
-
export const MobileInner = styled.div `
|
|
13
|
-
position: relative;
|
|
14
|
-
width: 100%;
|
|
15
|
-
max-width: 336px;
|
|
16
|
-
height: 695px;
|
|
17
|
-
margin: 61px 23px 20px 24px;
|
|
18
|
-
border-bottom-left-radius: 50px;
|
|
19
|
-
border-bottom-right-radius: 50px;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
`;
|
|
22
|
-
export const MobileBottomLine = styled.div `
|
|
23
|
-
width: 145px;
|
|
24
|
-
height: 5px;
|
|
25
|
-
background-color: #000000;
|
|
26
|
-
border-radius: 20px;
|
|
27
|
-
position: absolute;
|
|
28
|
-
margin: auto;
|
|
29
|
-
bottom: 10px;
|
|
30
|
-
left: 50%;
|
|
31
|
-
transform: translateX(-50%);
|
|
32
|
-
z-index: 10;
|
|
33
|
-
`;
|
|
9
|
+
export var MobileWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n width: 100%;\n background: url(", ") no-repeat center center;\n background-size: contain;\n"], ["\n display: flex;\n justify-content: center;\n width: 100%;\n background: url(", ") no-repeat center center;\n background-size: contain;\n"])), MobileFrame);
|
|
10
|
+
export var MobileInner = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n max-width: 336px;\n height: 695px;\n margin: 61px 23px 20px 24px;\n border-bottom-left-radius: 50px;\n border-bottom-right-radius: 50px;\n overflow: hidden;\n"], ["\n position: relative;\n width: 100%;\n max-width: 336px;\n height: 695px;\n margin: 61px 23px 20px 24px;\n border-bottom-left-radius: 50px;\n border-bottom-right-radius: 50px;\n overflow: hidden;\n"])));
|
|
11
|
+
export var MobileBottomLine = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 145px;\n height: 5px;\n background-color: #000000;\n border-radius: 20px;\n position: absolute;\n margin: auto;\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10;\n"], ["\n width: 145px;\n height: 5px;\n background-color: #000000;\n border-radius: 20px;\n position: absolute;\n margin: auto;\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 10;\n"])));
|
|
12
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Pagination as AntdPagination } from 'antd';
|
|
2
|
-
export
|
|
2
|
+
export var Pagination = AntdPagination;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Popover as AntdPopover } from 'antd';
|
|
2
|
-
export
|
|
2
|
+
export var Popover = AntdPopover;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
1
5
|
// Libraries
|
|
2
6
|
import styled from 'styled-components';
|
|
3
7
|
// Components
|
|
4
8
|
import { Popover as AntdPopover } from 'antd';
|
|
5
|
-
export
|
|
9
|
+
export var PopoverWrapper = styled(AntdPopover)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
10
|
+
var templateObject_1;
|