@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.
Files changed (278) hide show
  1. package/es/components/atoms/Alert/Alert.js +6 -13
  2. package/es/components/atoms/Button/index.js +1 -1
  3. package/es/components/atoms/Button/test.js +6 -6
  4. package/es/components/atoms/DividerPure/DividerPure.js +15 -4
  5. package/es/components/atoms/DividerPure/styled.js +6 -36
  6. package/es/components/atoms/Empty/Empty.js +1 -1
  7. package/es/components/atoms/FloatButton/index.js +1 -1
  8. package/es/components/atoms/Grid/Grid.js +2 -2
  9. package/es/components/atoms/Icon/index.js +15 -28
  10. package/es/components/atoms/Input/Input.js +32 -21
  11. package/es/components/atoms/Input/styled.js +12 -102
  12. package/es/components/atoms/InputDynamic/EditCaretPositioning.js +13 -13
  13. package/es/components/atoms/InputDynamic/InputDynamic.js +97 -83
  14. package/es/components/atoms/InputDynamic/PopupShortLink.js +21 -20
  15. package/es/components/atoms/InputDynamic/styled.js +13 -275
  16. package/es/components/atoms/InputDynamic/utils.js +114 -104
  17. package/es/components/atoms/InputNumber/InputNumber.js +14 -3
  18. package/es/components/atoms/MobileFrame/MobileFrame.js +14 -3
  19. package/es/components/atoms/MobileFrame/constants.js +1 -1
  20. package/es/components/atoms/MobileFrame/styled.js +8 -29
  21. package/es/components/atoms/Pagination/Pagination.js +1 -1
  22. package/es/components/atoms/Popover/Popover.js +1 -1
  23. package/es/components/atoms/Popover/styled.js +6 -1
  24. package/es/components/atoms/PreviewTabs/PreviewTabs.js +31 -20
  25. package/es/components/atoms/PreviewTabs/styled.js +10 -71
  26. package/es/components/atoms/Progress/Progress.js +1 -1
  27. package/es/components/atoms/Radio/index.js +8 -18
  28. package/es/components/atoms/Rate/Rate.js +1 -1
  29. package/es/components/atoms/RateV2/RateV2.js +30 -24
  30. package/es/components/atoms/RequiredLabel/index.js +14 -3
  31. package/es/components/atoms/RequiredLabel/styled.js +7 -5
  32. package/es/components/atoms/ScrollBox/index.js +25 -14
  33. package/es/components/atoms/Segmented/Segmented.js +1 -1
  34. package/es/components/atoms/Skeleton/Skeleton.js +1 -1
  35. package/es/components/atoms/Slider/index.js +18 -7
  36. package/es/components/atoms/Slider/styled.js +10 -38
  37. package/es/components/atoms/SliderV2/index.js +21 -10
  38. package/es/components/atoms/Space/Space.js +7 -6
  39. package/es/components/atoms/Spin/Spin.js +14 -3
  40. package/es/components/atoms/Spin/styled.js +6 -3
  41. package/es/components/atoms/Statistic/Statistic.js +1 -1
  42. package/es/components/atoms/Steps/Steps.js +1 -1
  43. package/es/components/atoms/Switch/Switch.js +1 -1
  44. package/es/components/atoms/Text/index.js +15 -4
  45. package/es/components/atoms/Text/styled.js +11 -40
  46. package/es/components/atoms/Timeline/Timeline.js +1 -1
  47. package/es/components/atoms/Watermark/Watermark.js +1 -1
  48. package/es/components/common/ConfigProvider/ConfigProvider.js +15 -4
  49. package/es/components/common/ConfigProvider/GlobalStyle.js +8 -569
  50. package/es/components/icons/AccountCircle.js +13 -2
  51. package/es/components/icons/AddShoppingCart.js +13 -2
  52. package/es/components/icons/ArrowGrowIcon.js +13 -2
  53. package/es/components/icons/AssignmentInd.js +13 -2
  54. package/es/components/icons/AudioRecordIcon.js +13 -2
  55. package/es/components/icons/BugIcon.js +13 -2
  56. package/es/components/icons/Call.js +13 -2
  57. package/es/components/icons/CameraIcon.js +13 -2
  58. package/es/components/icons/CaptureIcon.js +13 -2
  59. package/es/components/icons/Category.js +13 -2
  60. package/es/components/icons/ChatBubbleOutline.js +13 -2
  61. package/es/components/icons/CheckSlimIcon.js +13 -2
  62. package/es/components/icons/CircleNotifications.js +13 -2
  63. package/es/components/icons/CloseIcon.js +13 -2
  64. package/es/components/icons/CommentIcon.js +13 -2
  65. package/es/components/icons/ConfirmationNumber.js +13 -2
  66. package/es/components/icons/DesktopWindows.js +13 -2
  67. package/es/components/icons/EventIcon.js +13 -2
  68. package/es/components/icons/FactCheck.js +13 -2
  69. package/es/components/icons/FreeDrawIcon.js +13 -2
  70. package/es/components/icons/GPTIcon.js +2 -2
  71. package/es/components/icons/GPTIconV2.js +2 -2
  72. package/es/components/icons/GPTIconV3.js +13 -2
  73. package/es/components/icons/HighlightIcon.js +13 -2
  74. package/es/components/icons/HightlightAlt.js +13 -2
  75. package/es/components/icons/HowToReg.js +13 -2
  76. package/es/components/icons/IdeaIcon.js +13 -2
  77. package/es/components/icons/Interactive.js +13 -2
  78. package/es/components/icons/InvisibleIcon.js +13 -2
  79. package/es/components/icons/List.js +13 -2
  80. package/es/components/icons/LocalMallIcon.js +13 -2
  81. package/es/components/icons/MobileFriendly.js +13 -2
  82. package/es/components/icons/MuteIcon.js +13 -2
  83. package/es/components/icons/NotificationsActive.js +13 -2
  84. package/es/components/icons/OpenUrlIcon.js +13 -2
  85. package/es/components/icons/PauseIcon.js +13 -2
  86. package/es/components/icons/Payment.js +13 -2
  87. package/es/components/icons/PersonAddDisabled.js +13 -2
  88. package/es/components/icons/PhoneCallback.js +13 -2
  89. package/es/components/icons/PlaneIcon.js +13 -2
  90. package/es/components/icons/Preview.js +13 -2
  91. package/es/components/icons/Redeem.js +13 -2
  92. package/es/components/icons/RemoveRedEye.js +13 -2
  93. package/es/components/icons/RemoveShoppingCart.js +13 -2
  94. package/es/components/icons/RequestIcon.js +13 -2
  95. package/es/components/icons/Search.js +13 -2
  96. package/es/components/icons/ShoppingBag.js +13 -2
  97. package/es/components/icons/ShoppingCart.js +13 -2
  98. package/es/components/icons/StopRecordIcon.js +13 -2
  99. package/es/components/icons/Store.js +13 -2
  100. package/es/components/icons/UserIcon.js +13 -2
  101. package/es/components/icons/VerticalDotsIcon.js +13 -2
  102. package/es/components/icons/WarningIcon.js +13 -2
  103. package/es/components/icons/Web.js +13 -2
  104. package/es/components/icons/WebAsset.js +13 -2
  105. package/es/components/molecules/AlignSetting/index.js +20 -9
  106. package/es/components/molecules/AlignSetting/styled.js +6 -5
  107. package/es/components/molecules/AlignSetting/utils.js +2 -2
  108. package/es/components/molecules/CaptureScreen/CaptureScreen.js +269 -240
  109. package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.js +36 -25
  110. package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +15 -129
  111. package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.js +2 -2
  112. package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +10 -73
  113. package/es/components/molecules/CaptureScreen/constants.js +7 -7
  114. package/es/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +1 -1
  115. package/es/components/molecules/CaptureScreen/hooks/useImageEditor.js +23 -23
  116. package/es/components/molecules/CaptureScreen/styled.js +28 -247
  117. package/es/components/molecules/CaptureScreen/themes/black.js +1 -1
  118. package/es/components/molecules/CaptureScreen/themes/white.js +1 -1
  119. package/es/components/molecules/CaptureScreen/utils.js +32 -29
  120. package/es/components/molecules/Card/Card.js +1 -1
  121. package/es/components/molecules/ChatBox/ChatBox.js +147 -81
  122. package/es/components/molecules/ChatBox/MessageItem.js +22 -20
  123. package/es/components/molecules/ChatBox/constants.js +2 -2
  124. package/es/components/molecules/ChatBox/styled.js +13 -275
  125. package/es/components/molecules/Collapse/Collapse.js +4 -3
  126. package/es/components/molecules/ColorPicker/ChromePicker/index.js +1 -1
  127. package/es/components/molecules/ColorPicker/ChromePicker/styled.js +6 -11
  128. package/es/components/molecules/ColorPicker/CustomPicker/index.js +33 -21
  129. package/es/components/molecules/ColorPicker/CustomPicker/styled.js +14 -95
  130. package/es/components/molecules/ColorPicker/SketchPicker/index.js +12 -1
  131. package/es/components/molecules/ColorPicker/SketchPicker/styled.js +6 -6
  132. package/es/components/molecules/ColorPicker/index.js +17 -17
  133. package/es/components/molecules/ColorPicker/styled.js +6 -8
  134. package/es/components/molecules/ColorSetting/index.js +35 -15
  135. package/es/components/molecules/ColorSetting/styled.js +9 -36
  136. package/es/components/molecules/DatePicker/DatePicker.js +1 -1
  137. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +146 -112
  138. package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +10 -10
  139. package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +12 -45
  140. package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +8 -3
  141. package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +28 -9
  142. package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.js +1 -1
  143. package/es/components/molecules/Drawer/Drawer.js +1 -1
  144. package/es/components/molecules/EdgeSetting/index.js +69 -45
  145. package/es/components/molecules/EdgeSetting/styled.js +8 -13
  146. package/es/components/molecules/FontFamilySelect/constants.js +1 -1
  147. package/es/components/molecules/FontFamilySelect/index.js +33 -10
  148. package/es/components/molecules/FontSetting/constants.js +2 -2
  149. package/es/components/molecules/FontSetting/index.js +36 -22
  150. package/es/components/molecules/FontWeightSelect/constants.js +1 -1
  151. package/es/components/molecules/FontWeightSelect/index.js +32 -9
  152. package/es/components/molecules/GradientSetting/index.js +55 -35
  153. package/es/components/molecules/GradientSetting/styled.js +6 -58
  154. package/es/components/molecules/IconSelection/components/Icon/index.js +19 -8
  155. package/es/components/molecules/IconSelection/constants.js +37 -31
  156. package/es/components/molecules/IconSelection/index.js +56 -43
  157. package/es/components/molecules/IconSelection/styled.js +10 -74
  158. package/es/components/molecules/IconSelection/types.js +3 -1
  159. package/es/components/molecules/IconSelection/utils.js +3 -3
  160. package/es/components/molecules/InputNumber/index.js +23 -12
  161. package/es/components/molecules/InputNumberWithUnit/index.js +19 -5
  162. package/es/components/molecules/InputNumberWithUnit/styled.js +6 -15
  163. package/es/components/molecules/InputSearch/index.js +14 -3
  164. package/es/components/molecules/InputSearch/styled.js +6 -43
  165. package/es/components/molecules/Modal/Modal.js +23 -8
  166. package/es/components/molecules/Modal/styled.js +17 -69
  167. package/es/components/molecules/ModalV2/ModalV2.js +17 -6
  168. package/es/components/molecules/ModalV2/styled.js +6 -19
  169. package/es/components/molecules/Popconfirm/Popconfirm.js +1 -1
  170. package/es/components/molecules/PopupDraggable/PopupDraggable.js +25 -13
  171. package/es/components/molecules/PopupDraggable/styled.js +11 -47
  172. package/es/components/molecules/PreviewModal/PreviewModal.js +16 -5
  173. package/es/components/molecules/PreviewModal/styled.js +9 -30
  174. package/es/components/molecules/RadioGroup/index.js +14 -3
  175. package/es/components/molecules/RadioGroup/styled.js +7 -11
  176. package/es/components/molecules/ResizeGrid/ResizeGrid.js +338 -275
  177. package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +37 -23
  178. package/es/components/molecules/ResizeGrid/components/Cell/styled.js +6 -78
  179. package/es/components/molecules/ResizeGrid/constant.js +37 -26
  180. package/es/components/molecules/ResizeGrid/styled.js +9 -54
  181. package/es/components/molecules/Result/Result.js +1 -1
  182. package/es/components/molecules/RichMenuBlock/RichMenuBlock.js +34 -23
  183. package/es/components/molecules/RichMenuBlock/RichMenuCell/index.js +11 -11
  184. package/es/components/molecules/RichMenuBlock/RichMenuCell/styled.js +18 -34
  185. package/es/components/molecules/RichMenuBlock/constants.js +1 -1
  186. package/es/components/molecules/RichMenuBlock/styled.js +16 -15
  187. package/es/components/molecules/RichMenuChatBar/RichMenuChatBar.js +17 -6
  188. package/es/components/molecules/RichMenuChatBar/TypingChat/index.js +3 -3
  189. package/es/components/molecules/RichMenuChatBar/TypingChat/styled.js +8 -43
  190. package/es/components/molecules/RichMenuChatBar/styled.js +10 -25
  191. package/es/components/molecules/RichMenuMobileView/RichMenuMobileView.js +22 -7
  192. package/es/components/molecules/RichMenuMobileView/styled.js +11 -18
  193. package/es/components/molecules/Select/Select.js +20 -9
  194. package/es/components/molecules/Select/Test.js +2 -2
  195. package/es/components/molecules/Select/styled.js +7 -34
  196. package/es/components/molecules/SettingWrapper/index.js +2 -2
  197. package/es/components/molecules/SettingWrapper/styled.js +9 -15
  198. package/es/components/molecules/SettingWrapperPopover/index.js +16 -4
  199. package/es/components/molecules/SliderWithInputNumber/index.js +19 -8
  200. package/es/components/molecules/SliderWithInputNumber/styled.js +6 -3
  201. package/es/components/molecules/TextDecorationSelect/constants.js +1 -1
  202. package/es/components/molecules/TextDecorationSelect/index.js +32 -9
  203. package/es/components/molecules/TextTransformSelect/constants.js +1 -1
  204. package/es/components/molecules/TextTransformSelect/index.js +32 -9
  205. package/es/components/molecules/TreeSelect/TreeSelect.js +1 -1
  206. package/es/components/molecules/UploadImage/MediaIcon.js +2 -2
  207. package/es/components/molecules/UploadImage/index.js +280 -182
  208. package/es/components/molecules/UploadImage/styled.js +16 -129
  209. package/es/components/organism/Help/Help.js +530 -422
  210. package/es/components/organism/Help/constants.js +12 -11
  211. package/es/components/organism/Help/styled.js +48 -257
  212. package/es/components/organism/Help/utils.js +11 -11
  213. package/es/components/organism/PositionSetting/config.js +2 -2
  214. package/es/components/organism/PositionSetting/index.js +27 -15
  215. package/es/components/organism/PositionSetting/styled.js +6 -1
  216. package/es/components/organism/Table/CrossTabTable/CrossTabTable.js +10 -10
  217. package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.js +6 -6
  218. package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +6 -12
  219. package/es/components/organism/Table/CrossTabTable/constants.js +3 -3
  220. package/es/components/organism/Table/CrossTabTable/styled.js +6 -12
  221. package/es/components/organism/Table/CrossTabTable/utils.js +1 -1
  222. package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.js +23 -12
  223. package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.js +8 -8
  224. package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +8 -20
  225. package/es/components/organism/Table/ExplorePivotTable/constants.js +2 -2
  226. package/es/components/organism/Table/ExplorePivotTable/styled.js +7 -13
  227. package/es/components/organism/Table/ExplorePivotTable/utils.js +72 -52
  228. package/es/constants/gradientSetting.js +4 -4
  229. package/es/constants/keyCode.js +387 -387
  230. package/es/constants/richMenu.js +2 -2
  231. package/es/constants/storybook.js +2 -2
  232. package/es/constants/theme.js +6 -6
  233. package/es/hooks/index.js +1 -1
  234. package/es/hooks/useDebounce.js +5 -5
  235. package/es/hooks/useDeepCompareEffect.js +1 -1
  236. package/es/locales/i18n.js +2 -2
  237. package/es/locales/translations.js +23 -7
  238. package/es/models/SavedImage.js +68 -23
  239. package/es/models/Upload.js +64 -19
  240. package/es/models/model.js +5 -3
  241. package/es/services/MediaTemplateDesign/UploadFile/index.js +102 -46
  242. package/es/services/Ticket.js +89 -48
  243. package/es/services/constants.js +3 -3
  244. package/es/services/index.js +30 -19
  245. package/es/test.js +36 -25
  246. package/es/utils/color.js +22 -22
  247. package/es/utils/common.js +88 -75
  248. package/es/utils/handleError.js +49 -8
  249. package/es/utils/loadable.js +18 -6
  250. package/es/utils/web.js +26 -20
  251. package/package.json +3 -3
  252. package/dist/02028cc6be94478e1f13.svg +0 -1
  253. package/dist/0dfb9214dfd945cd7290.png +0 -1
  254. package/dist/19a777928d8a4fb24864.svg +0 -1
  255. package/dist/256cc472918edbfc13f3.ttf +0 -0
  256. package/dist/42deb30bedf71d95ec56.woff +0 -0
  257. package/dist/574b7bee0563a9fe9a29.png +0 -1
  258. package/dist/a772098db05052e4b517.eot +0 -0
  259. package/dist/bc6bf11c6f5e6743aa4c.png +0 -1
  260. package/dist/e32f09119052a55cce3c.png +0 -1
  261. package/dist/e3851b9384a984c6fdb5.png +0 -1
  262. package/dist/f422f99dc05cb0013092.png +0 -1
  263. package/dist/index.js +0 -2
  264. package/dist/index.js.LICENSE.txt +0 -69
  265. package/dist/main.css +0 -69
  266. package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
  267. package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
  268. package/dist/public/icons/84d7dd910e6235dc6ce60657dd3bb062.svg +0 -87
  269. package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
  270. package/dist/public/icons/97210ba7dc321670f4a144c1b40e88d8.png +0 -0
  271. package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
  272. package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
  273. package/dist/public/icons/fe347d51ab67ec846138b9a565b3071b.svg +0 -361
  274. package/dist/public/icons/iphone-top-bar.png +0 -0
  275. package/dist/public/icons/iphone.png +0 -0
  276. package/dist/public/icons/placeholder-image.png +0 -0
  277. package/dist/public/icons/stars_slider.png +0 -0
  278. 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
- const regexp = /^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;
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 const getInsertPatternWithAppendSpaceEnd = (id, code, label, bgColor) => `<button id="${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: ${bgColor}; height: auto" value=${code
21
- .replace(/\s/gm, '&nbsp;')
22
- .replace(/"/gm, '&quot;')}><span style="line-height: 20px;margin-right: 8px;pointer-events:none;">${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>&nbsp;`;
23
- export const genShortLinkValue = (url, type) => {
24
- const id = random(5);
25
- let keyTag = 'shortlink';
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, '&nbsp;')
23
+ .replace(/"/gm, '&quot;'), "><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>&nbsp;");
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: `#{${keyTag}(${url})}`,
32
- label: `https://ants.ly/${id}`,
32
+ id: id,
33
+ value: "#{".concat(keyTag, "(").concat(url, ")}"),
34
+ label: "https://ants.ly/".concat(id),
33
35
  };
34
36
  };
35
- export const getInsertPattern = (id, code, label, bgColor) => `<button id="${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: ${bgColor}" value=${code
36
- .replace(/\s/gm, '&nbsp;')
37
- .replace(/"/gm, '&quot;')}><span style="line-height: 20px;margin-right: 8px;pointer-events:none;">${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>`;
38
- export const convertHtmlText = (htmlText, format = 'raw', state, objectWidgetInput = {}, type = '', init = '') => {
39
- const result = htmlText;
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, '&nbsp;')
40
+ .replace(/"/gm, '&quot;'), "><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
- const regexInsertPattern = type === 'input'
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
- const regexQuot = /&quot;/gm;
48
- const regexSpace = /&nbsp;/gm;
49
- const regexSpaceV2 = /nbsp;/gm;
50
- const regexShortLink = /#{shortlink\(.*?\)}/;
51
- const regexShortLinkStatic = /#{shortlink_static\(.*?\)}/;
55
+ var regexQuot_1 = /&quot;/gm;
56
+ var regexSpace_1 = /&nbsp;/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
- const replacer = (match, p1, p2, p3, offset, string) => {
54
- const newPlacer = p1
61
+ var replacer = function (match, p1, p2, p3, offset, string) {
62
+ var newPlacer = p1
55
63
  .replace(/"/gm, '')
56
- .replace(regexQuot, '"')
57
- .replace(regexSpace, ' ')
58
- .replace(regexSpaceV2, ' ');
59
- if (!regexShortLink.test(newPlacer) || !regexShortLinkStatic.test(newPlacer)) {
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(/&amp;/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
- const insertPattern = /#{.*?}/gm;
86
+ var insertPattern = /#{.*?}/gm;
79
87
  if (insertPattern.test(htmlText)) {
80
- const htmlReplacer = (matcher) => {
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
- const found = matcher.replace(/#|{|}|/g, '').split('.');
86
- const foundLink = found[0].split('(');
93
+ var found = matcher.replace(/#|{|}|/g, '').split('.');
94
+ var foundLink = found[0].split('(');
87
95
  if (found && found.length) {
88
- let bgColor = '#ccc';
96
+ var bgColor_1 = '#ccc';
89
97
  // console.log(found);
90
98
  if (found[0] === 'customer') {
91
- bgColor = '#3C39BA';
99
+ bgColor_1 = '#3C39BA';
92
100
  }
93
101
  else if (found[0] === 'visitor') {
94
- bgColor = '#009000';
102
+ bgColor_1 = '#009000';
95
103
  }
96
104
  else if (found[0] === 'event') {
97
- bgColor = '#FBAC00';
105
+ bgColor_1 = '#FBAC00';
98
106
  }
99
107
  else if (found[0] === 'objectWidget') {
100
- bgColor = '#24abb9';
108
+ bgColor_1 = '#24abb9';
101
109
  }
102
110
  else if (found[0] === 'productTemplate') {
103
- bgColor = '#9238b5';
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
- bgColor = '#6750A7';
117
+ bgColor_1 = '#6750A7';
110
118
  }
111
119
  else if (found[0] === 'custom') {
112
- bgColor = '#BBEFBE';
120
+ bgColor_1 = '#BBEFBE';
113
121
  }
114
- let label = getObjectPropSafely(() => {
115
- const foundAttribute = '';
116
- let codeTag = '';
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
- bgColor = '#1890F0';
120
- const contentWidget = found[1].substring(7);
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
- bgColor = '#ccc';
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
- const splitString = found[2].split('||');
141
- codeTag = `${found[1]}.${splitString[0]}`;
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 `${codeTag}`;
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
- const url = get(matcher.match(/\((.*?)\)/), '.1', '');
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], bgColor);
170
+ return getInsertPatternWithAppendSpaceEnd(random(8), matcher, label || found[0], bgColor_1);
163
171
  }
164
- return getInsertPattern(random(8), matcher, label || found[0], bgColor);
172
+ return getInsertPattern(random(8), matcher, label || found[0], bgColor_1);
165
173
  }
166
- return getInsertPattern(random(8), matcher, label || found[0], bgColor);
174
+ return getInsertPattern(random(8), matcher, label || found[0], bgColor_1);
167
175
  }
168
176
  return matcher;
169
177
  };
170
178
  try {
171
- return `${result.replace(insertPattern, htmlReplacer)}`;
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 const handleUpdateInputPersonalization = (listIconRemove, listBtnElement) => {
188
- listIconRemove.forEach((each) => {
195
+ export var handleUpdateInputPersonalization = function (listIconRemove, listBtnElement) {
196
+ listIconRemove.forEach(function (each) {
189
197
  each.innerHTML = '';
190
198
  each.innerHTML = '&#x2715';
191
- const styleBtnRemove = each.style;
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
- const styleBtnElement = each.style;
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 = `${text}`.replace(/(<([^>]+)>)/gi, '');
225
+ text = "".concat(text).replace(/(<([^>]+)>)/gi, '');
218
226
  text = text.replace(/&nbsp;/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 const pasteHtmlAtCaret = (html, selectPastedContent, callback) => {
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
- let sel;
234
- let range;
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
- const el = document.createElement('div');
252
+ var el = document.createElement('div');
245
253
  el.innerHTML = html;
246
- const frag = document.createDocumentFragment();
247
- let node;
248
- let lastNode;
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
- const firstNode = frag.firstChild;
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
- const originalRange = sel.createRange();
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 const getInsertLinkPatternWithAppendSpaceEnd = (id, value, label) => `<button id="${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=${value
289
- .replace(/\s/gm, '&nbsp;')
290
- .replace(/"/gm, '&quot;')}><span style="line-height: 20px;margin-right: 8px;pointer-events:none;">${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>&nbsp;`;
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, '&nbsp;')
299
+ .replace(/"/gm, '&quot;'), "><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>&nbsp;");
300
+ };
291
301
  // eslint-disable-next-line func-names
292
- export const validateHTMLTags = (function () {
293
- const e = [
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
- const t = {
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
- const l = t.indexOf(' ', d + 1);
658
- const p = t.indexOf('/>', d + 1);
667
+ var l = t.indexOf(' ', d + 1);
668
+ var p = t.indexOf('/>', d + 1);
659
669
  var u = t.indexOf('>', d + 1);
660
- const b = [];
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
- const m = Math.min(...b);
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) => e.index === i[n].index) || o.push(i[n]);
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 = `${s.substring(0, o[n].index)}&lt;${s.substring(o[n].index + 1)}`)
687
+ ? (s = "".concat(s.substring(0, o[n].index), "&lt;").concat(s.substring(o[n].index + 1)))
678
688
  : o[n].type == 'gt' &&
679
- (s = `${s.substring(0, o[n].index)}&gt;${s.substring(o[n].index + 1)}`);
689
+ (s = "".concat(s.substring(0, o[n].index), "&gt;").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
- const o = t.indexOf('<', a);
696
+ var o = t.indexOf('<', a);
687
697
  if (o == -1)
688
698
  break;
689
- const s = t.indexOf(' ', o + 1);
690
- const n = t.indexOf('/>', o + 1);
691
- const d = t.indexOf('>', o + 1);
692
- const l = [];
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
- const p = Math.min(...l);
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
- const o = t.indexOf('<', a);
721
+ var o = t.indexOf('<', a);
712
722
  if (o == -1)
713
723
  break;
714
- const s = t.indexOf(' ', o + 1);
715
- const n = t.indexOf('/>', o + 1);
716
- const d = t.indexOf('>', o + 1);
717
- const l = [];
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
- const p = Math.min(...l);
729
+ var p = Math.min.apply(Math, l);
720
730
  var u = t.substring(o, p + 1);
721
- if ((r = e.some(e => u === 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 const spacingNonTracking = (data) => {
741
+ export var spacingNonTracking = function (data) {
732
742
  // eslint-disable-next-line prefer-regex-literals
733
- const regexHasBannedPrefix = new RegExp(/<br\s*\/?>/gi);
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 const initialValue = (initValue) => {
749
+ export var initialValue = function (initValue) {
740
750
  try {
741
- const newTextValue = convertHtmlText(initValue, 'html', {}, {}, 'input', '');
751
+ var newTextValue = convertHtmlText(initValue, 'html', {}, {}, 'input', '');
742
752
  if (newTextValue && !newTextValue.endsWith('&nbsp;')) {
743
- return `${newTextValue}&nbsp;`;
753
+ return "".concat(newTextValue, "&nbsp;");
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 const InputNumber = props => {
29
+ export var InputNumber = function (props) {
19
30
  // Props
20
- const { showHandler, className } = props, restOfProps = __rest(props, ["showHandler", "className"]);
21
- return (React.createElement(AntdInputNumber, Object.assign({}, restOfProps, { className: clsx(className, {
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 const MobileFrame = (_a) => {
17
- var { children } = _a, restOfProps = __rest(_a, ["children"]);
18
- return (React.createElement(MobileWrapper, Object.assign({}, restOfProps),
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,4 +1,4 @@
1
- export const MOBILE_SETTING = {
1
+ export var MOBILE_SETTING = {
2
2
  width: 391,
3
3
  height: 660,
4
4
  };
@@ -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 const MobileWrapper = styled.div `
6
- display: flex;
7
- justify-content: center;
8
- width: 100%;
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 const Pagination = AntdPagination;
2
+ export var Pagination = AntdPagination;
@@ -1,2 +1,2 @@
1
1
  import { Popover as AntdPopover } from 'antd';
2
- export const Popover = AntdPopover;
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 const PopoverWrapper = styled(AntdPopover) ``;
9
+ export var PopoverWrapper = styled(AntdPopover)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
10
+ var templateObject_1;