useblocks 1.1.85-dev.9 → 1.1.102
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/CHANGELOG.md +91 -0
- package/README.md +74 -41
- package/compat-globals.js +1 -1
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/css/sandbox.css +35 -1
- package/iframe/{iframe.bb6d921f.html → iframe-eblock.1c4e77a0.html} +2 -2
- package/iframe/{iframe-eblock.bb6d921f.html → iframe.1c4e77a0.html} +2 -2
- package/iframe/js/discussHandlers.Xh4-JUcT.js +88 -0
- package/iframe/js/{iframe-eblock.body.js → iframe-eblock.body.1c4e77a0.js} +1 -1
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.1c4e77a0.js +319 -0
- package/iframe/js/iframe.js +2 -2
- package/package.json +8 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +49 -42
- package/runtime/package.json +4 -1
- package/runtime/react/index.js +1 -1
- package/runtime/uuid/index.js +21 -0
- package/static/core/11b821ed.js +1 -0
- package/static/core/160bf060.js +104 -0
- package/static/core/1b68c0f0.js +1 -0
- package/static/core/1ed86ed3.js +1 -0
- package/static/core/26cc947d.js +1 -0
- package/static/core/{67f78cad.js → 3ec42945.js} +7 -7
- package/static/core/3fb172c7.js +1 -0
- package/static/core/448f03f8.js +1 -0
- package/static/core/44d2c046.js +1 -0
- package/static/core/{79749848.js → 4c8d0155.js} +5 -5
- package/static/core/53103851.js +4 -0
- package/static/core/{a767f327.js → 5d849eef.js} +1 -1
- package/static/core/5e7c221f.js +28 -0
- package/static/core/64be048b.js +27 -0
- package/static/core/{de07cade.js → 6a671446.js} +3 -3
- package/static/core/{db82c42b.js → 756874c6.js} +1 -1
- package/static/core/{4c3f5897.js → 847338a8.js} +2 -2
- package/static/core/91e07171.js +2 -0
- package/static/core/a2e57e5f.js +1 -0
- package/static/core/{a5996860.js → a6303cb2.js} +1 -1
- package/static/core/{9f137764.js → a98b6879.js} +1 -1
- package/static/core/ae22b7f6.js +93 -0
- package/static/core/{44a83e21.js → b653f9c5.js} +1 -1
- package/static/core/{cb46784e.js → b7aa9fec.js} +1 -1
- package/static/core/{d8bbcfbd.js → ca4dad9b.js} +2 -2
- package/static/core/{6faa23a1.js → cc180859.js} +1 -1
- package/static/core/d7666ad0.js +291 -0
- package/static/core/dcc37768.js +1 -0
- package/static/core/edf450a1.js +7 -0
- package/static/core/f1ee2bef.js +1 -0
- package/static/core/{1e3078da.js → f323e60e.js} +1 -1
- package/static/core/{175b5b0f.js → ff7d14e8.js} +1 -1
- package/static/esm/2490dab8.js +1 -0
- package/static/esm/668ee399.js +1 -0
- package/static/esm/971f1b2c.js +1 -0
- package/static/esm/f76c9d9d.js +1 -0
- package/static/umd/6639d610.js +1 -0
- package/static/umd-runtime/B7h7P1Np.js +1 -0
- package/static/umd-runtime/{DHIkHsbq.js → BAqQTgiL.js} +1 -1
- package/static/umd-runtime/{DiNHpyis.js → BB6AXfHj.js} +1 -1
- package/static/umd-runtime/{CnUGCoaH.js → BauvM4c_.js} +1 -1
- package/static/umd-runtime/{cL_ha9ef.js → CgVJ4rE0.js} +1 -1
- package/static/umd-runtime/Cvm7BS4_.js +341 -0
- package/static/umd-runtime/{BnE05QKl.js → D7DggGzi.js} +1 -1
- package/static/umd-runtime/{2iAslXEF.js → DBbch1O-.js} +1 -1
- package/static/umd-runtime/{Bcqtk2f7.js → Dqoi-pC_.js} +2 -2
- package/static/umd-runtime/{CDTBLHGd.js → G2k8ELiO.js} +3 -3
- package/static/umd-runtime/{CVtPwspX.js → SFp4nbvq.js} +1 -1
- package/static/umd-runtime/{DVB_-O4B.js → UsRzAWs2.js} +1 -1
- package/static/umd-runtime/runtime.2paN090q.js +1 -0
- package/static/umd-runtime/{ui-kit-icons.js → ui-kit-icons.DqlZwgBU.js} +1 -1
- package/static/umd-runtime/{ui-kit.js → ui-kit.CoVNet0I.js} +2 -2
- package/static/umd-runtime/{DP3QTW77.js → uk9LyZos.js} +1 -1
- package/ui-kit/icons.js +2 -0
- package/useblocks-core.1c4e77a0.js +859 -0
- package/useblocks-esm.js +11 -10
- package/{useblocks-po.bb6d921f.js → useblocks-po.1c4e77a0.js} +1 -1
- package/useblocks.d.ts +162 -28
- package/useblocks.js +39 -15
- package/vendor/@rc-component/cascader/package.json +1 -1
- package/vendor/@rc-component/dialog/es/Dialog/Content/Panel.js +3 -2
- package/vendor/@rc-component/dialog/package.json +1 -1
- package/vendor/@rc-component/image/es/Preview/index.js +3 -3
- package/vendor/@rc-component/image/package.json +1 -1
- package/vendor/@rc-component/input/es/BaseInput.js +3 -3
- package/vendor/@rc-component/input/es/Input.js +20 -27
- package/vendor/@rc-component/{textarea → input}/es/ResizableTextArea.js +5 -4
- package/vendor/@rc-component/{textarea → input}/es/TextArea.js +30 -40
- package/vendor/@rc-component/{textarea → input}/es/calculateNodeHeight.js +4 -4
- package/vendor/@rc-component/input/es/hooks/useCountDisplay.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useCountExceed.js +25 -0
- package/vendor/@rc-component/input/es/hooks/useMergedValue.js +13 -0
- package/vendor/@rc-component/input/es/index.js +3 -1
- package/vendor/@rc-component/input/package.json +1 -1
- package/vendor/@rc-component/mentions/es/DropdownMenu.js +1 -1
- package/vendor/@rc-component/mentions/es/Mentions.js +35 -8
- package/vendor/@rc-component/mentions/package.json +1 -1
- package/vendor/@rc-component/menu/es/Menu.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItem.js +1 -0
- package/vendor/@rc-component/menu/es/MenuItemGroup.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/PopupTrigger.js +1 -0
- package/vendor/@rc-component/menu/es/SubMenu/index.js +1 -0
- package/vendor/@rc-component/menu/es/context/MenuContext.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useAccessibility.js +1 -0
- package/vendor/@rc-component/menu/es/hooks/useKeyRecords.js +1 -0
- package/vendor/@rc-component/menu/es/utils/commonUtil.js +1 -0
- package/vendor/@rc-component/menu/es/utils/nodeUtil.js +2 -1
- package/vendor/@rc-component/menu/es/utils/warnUtil.js +1 -0
- package/vendor/@rc-component/menu/package.json +1 -1
- package/vendor/@rc-component/notification/LICENSE +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/LICENSE +22 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Children/toArray.js +15 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/canUseDom.js +6 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/contains.js +13 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/dynamicCSS.js +94 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/findDOMNode.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/focus.js +99 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/isVisible.js +18 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/shadow.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Dom/styleChecker.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/KeyCode.js +499 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/Portal.js +28 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/isFragment.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/React/render.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/getScrollBarSize.js +2 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useControlledState.js +3 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useDelayState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useEvent.js +9 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useId.js +23 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useLayoutEffect.js +26 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMemo.js +12 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useMergedState.js +4 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useState.js +24 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/hooks/useSyncState.js +20 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/index.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/is.js +21 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isEqual.js +35 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/isMobile.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/mergeProps.js +14 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/omit.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/pickAttrs.js +50 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/proxyObject.js +1 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/raf.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/ref.js +38 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/test/domHook.js +36 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/get.js +11 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/utils/set.js +58 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/es/warning.js +46 -0
- package/vendor/@rc-component/notification/_/@rc-component/util/package.json +6 -0
- package/vendor/@rc-component/notification/es/Notification.js +129 -0
- package/vendor/@rc-component/notification/es/NotificationList/Content.js +33 -0
- package/vendor/@rc-component/notification/es/NotificationList/index.js +174 -0
- package/vendor/@rc-component/notification/es/NotificationProvider.js +4 -3
- package/vendor/@rc-component/notification/es/Notifications.js +28 -31
- package/vendor/@rc-component/notification/es/Progress.js +10 -0
- package/vendor/@rc-component/notification/es/hooks/useClosable.js +30 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/index.js +50 -0
- package/vendor/@rc-component/notification/es/hooks/useListPosition/useSizes.js +33 -0
- package/vendor/@rc-component/notification/es/hooks/useNoticeTimer.js +58 -0
- package/vendor/@rc-component/notification/es/hooks/useNotification.js +27 -18
- package/vendor/@rc-component/notification/es/hooks/useStack.js +4 -4
- package/vendor/@rc-component/notification/es/index.js +4 -2
- package/vendor/@rc-component/notification/package.json +1 -1
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/MultipleDates.js +13 -3
- package/vendor/@rc-component/picker/es/PickerInput/Selector/SingleSelector/index.js +3 -1
- package/vendor/@rc-component/picker/es/PickerInput/SinglePicker.js +2 -1
- package/vendor/@rc-component/picker/package.json +1 -1
- package/vendor/@rc-component/table/LICENSE +21 -0
- package/vendor/@rc-component/table/es/Body/MeasureCell.js +1 -0
- package/vendor/@rc-component/table/es/Body/MeasureRow.js +1 -0
- package/vendor/@rc-component/table/es/Cell/useCellRender.js +1 -0
- package/vendor/@rc-component/table/es/FixedHolder/index.js +1 -0
- package/vendor/@rc-component/table/es/Table.js +17 -9
- package/vendor/@rc-component/table/es/VirtualTable/BodyGrid.js +10 -4
- package/vendor/@rc-component/table/es/VirtualTable/BodyLine.js +13 -5
- package/vendor/@rc-component/table/es/hooks/useColumns/index.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useExpand.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useFixedInfo.js +1 -0
- package/vendor/@rc-component/table/es/hooks/useSticky.js +1 -0
- package/vendor/@rc-component/table/es/index.js +2 -1
- package/vendor/@rc-component/table/es/stickyScrollBar.js +1 -0
- package/vendor/@rc-component/table/es/utils/legacyUtil.js +1 -0
- package/vendor/@rc-component/table/es/utils/offsetUtil.js +1 -0
- package/vendor/@rc-component/table/package.json +1 -1
- package/vendor/@rc-component/tabs/es/TabNavList/OperationNode.js +4 -2
- package/vendor/@rc-component/tabs/es/TabNavList/TabNode.js +5 -4
- package/vendor/@rc-component/tabs/es/TabNavList/index.js +11 -4
- package/vendor/@rc-component/tabs/es/Tabs.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useIndicator.js +1 -0
- package/vendor/@rc-component/tabs/es/hooks/useUpdate.js +1 -0
- package/vendor/@rc-component/tabs/package.json +1 -1
- package/vendor/@rc-component/tour/es/TourStep/DefaultPanel.js +4 -1
- package/vendor/@rc-component/tour/package.json +1 -1
- package/vendor/@rc-component/tree/es/MotionTreeNode.js +1 -0
- package/vendor/@rc-component/tree/es/NodeList.js +2 -2
- package/vendor/@rc-component/tree/es/Tree.js +4 -5
- package/vendor/@rc-component/tree/es/TreeNode.js +7 -2
- package/vendor/@rc-component/tree/es/index.js +3 -0
- package/vendor/@rc-component/tree/es/useUnmount.js +1 -0
- package/vendor/@rc-component/tree/es/util.js +1 -0
- package/vendor/@rc-component/tree/es/utils/conductUtil.js +1 -0
- package/vendor/@rc-component/tree/es/utils/treeUtil.js +1 -0
- package/vendor/@rc-component/tree/package.json +1 -1
- package/vendor/@rc-component/tree-select/package.json +1 -1
- package/vendor/@rc-component/util/es/index.js +10 -10
- package/vendor/antd/es/_util/ActionButton.js +2 -3
- package/vendor/antd/es/_util/ContextIsolator.js +1 -1
- package/vendor/antd/es/_util/PurePanel.js +7 -4
- package/vendor/antd/es/_util/convertToTooltipProps.js +2 -2
- package/vendor/antd/es/_util/fallbackProp.js +15 -0
- package/vendor/antd/es/_util/gapSize.js +2 -1
- package/vendor/antd/es/_util/getRenderPropValue.js +2 -1
- package/vendor/antd/es/_util/getScroll.js +4 -4
- package/vendor/antd/es/_util/hooks/index.js +2 -2
- package/vendor/antd/es/_util/hooks/useAllowClear.js +25 -0
- package/vendor/antd/es/_util/hooks/useClosable.js +6 -5
- package/vendor/antd/es/_util/hooks/{useMergeSemantic.js → useMergeSemantic/index.js} +14 -24
- package/vendor/antd/es/_util/hooks/useMergeSemantic/utils.js +14 -0
- package/vendor/antd/es/_util/hooks/useMergedMask.js +2 -1
- package/vendor/antd/es/_util/is.js +27 -0
- package/vendor/antd/es/_util/motion.js +8 -8
- package/vendor/antd/es/_util/normalizeIcon.js +9 -0
- package/vendor/antd/es/_util/placements.js +2 -1
- package/vendor/antd/es/_util/reactNode.js +2 -1
- package/vendor/antd/es/_util/responsiveObserver.js +3 -2
- package/vendor/antd/es/_util/scrollTo.js +3 -1
- package/vendor/antd/es/_util/styleChecker.js +1 -0
- package/vendor/antd/es/_util/throttleByAnimationFrame.js +1 -0
- package/vendor/antd/es/_util/toList.js +1 -1
- package/vendor/antd/es/_util/wave/WaveEffect.js +3 -1
- package/vendor/antd/es/_util/wave/index.js +14 -4
- package/vendor/antd/es/_util/wave/util.js +5 -3
- package/vendor/antd/es/alert/Alert.js +12 -10
- package/vendor/antd/es/alert/ErrorBoundary.js +1 -1
- package/vendor/antd/es/alert/style/index.js +16 -10
- package/vendor/antd/es/anchor/Anchor.js +23 -16
- package/vendor/antd/es/anchor/AnchorLink.js +4 -4
- package/vendor/antd/es/app/App.js +7 -3
- package/vendor/antd/es/auto-complete/AutoComplete.js +7 -8
- package/vendor/antd/es/avatar/Avatar.js +5 -3
- package/vendor/antd/es/back-top/index.js +1 -0
- package/vendor/antd/es/badge/Badge.js +5 -6
- package/vendor/antd/es/badge/Ribbon.js +1 -2
- package/vendor/antd/es/badge/style/index.js +4 -3
- package/vendor/antd/es/border-beam/BorderBeam.js +42 -0
- package/vendor/antd/es/border-beam/BorderBeamEffect.js +24 -0
- package/vendor/antd/es/border-beam/hooks/useBorderSize.js +37 -0
- package/vendor/antd/es/border-beam/hooks/useChildDom.js +24 -0
- package/vendor/antd/es/border-beam/index.js +7 -0
- package/vendor/antd/es/border-beam/style/index.js +60 -0
- package/vendor/antd/es/border-beam/util.js +26 -0
- package/vendor/antd/es/breadcrumb/Breadcrumb.js +1 -2
- package/vendor/antd/es/breadcrumb/BreadcrumbItem.js +1 -1
- package/vendor/antd/es/breadcrumb/useItemRender.js +3 -2
- package/vendor/antd/es/button/Button.js +7 -6
- package/vendor/antd/es/button/buttonHelpers.js +4 -8
- package/vendor/antd/es/button/index.js +2 -2
- package/vendor/antd/es/button/style/index.js +5 -0
- package/vendor/antd/es/calendar/generateCalendar.js +20 -8
- package/vendor/antd/es/card/Card.js +5 -7
- package/vendor/antd/es/card/CardMeta.js +1 -2
- package/vendor/antd/es/carousel/index.js +2 -1
- package/vendor/antd/es/cascader/Panel.js +1 -1
- package/vendor/antd/es/cascader/index.js +23 -16
- package/vendor/antd/es/cascader/style/columns.js +6 -2
- package/vendor/antd/es/checkbox/Checkbox.js +2 -3
- package/vendor/antd/es/checkbox/Group.js +2 -1
- package/vendor/antd/es/checkbox/style/index.js +1 -5
- package/vendor/antd/es/checkbox/useBubbleLock.js +1 -0
- package/vendor/antd/es/collapse/Collapse.js +3 -3
- package/vendor/antd/es/collapse/style/index.js +1 -4
- package/vendor/antd/es/color-picker/ColorPicker.js +1 -2
- package/vendor/antd/es/color-picker/ColorPickerPanel.js +2 -1
- package/vendor/antd/es/color-picker/components/ColorTrigger.js +3 -1
- package/vendor/antd/es/color-picker/components/PanelPicker/index.js +1 -0
- package/vendor/antd/es/config-provider/hooks/useSize.js +3 -2
- package/vendor/antd/es/config-provider/hooks/useTheme.js +2 -0
- package/vendor/antd/es/config-provider/index.js +11 -3
- package/vendor/antd/es/date-picker/generatePicker/generateRangePicker.js +20 -10
- package/vendor/antd/es/date-picker/generatePicker/generateSinglePicker.js +17 -8
- package/vendor/antd/es/date-picker/generatePicker/useSuffixIcon.js +1 -1
- package/vendor/antd/es/date-picker/hooks/useMergedPickerSemantic.js +1 -2
- package/vendor/antd/es/date-picker/style/index.js +13 -3
- package/vendor/antd/es/date-picker/style/multiple.js +3 -4
- package/vendor/antd/es/date-picker/style/panel.js +5 -20
- package/vendor/antd/es/date-picker/util.js +14 -13
- package/vendor/antd/es/descriptions/Cell.js +2 -3
- package/vendor/antd/es/descriptions/hooks/useItems.js +2 -1
- package/vendor/antd/es/descriptions/index.js +3 -3
- package/vendor/antd/es/divider/index.js +3 -2
- package/vendor/antd/es/drawer/Drawer.js +10 -5
- package/vendor/antd/es/drawer/DrawerPanel.js +3 -2
- package/vendor/antd/es/dropdown/dropdown.js +11 -8
- package/vendor/antd/es/dropdown/style/index.js +2 -6
- package/vendor/antd/es/empty/index.js +1 -2
- package/vendor/antd/es/flex/index.js +2 -2
- package/vendor/antd/es/float-button/BackTop.js +1 -0
- package/vendor/antd/es/float-button/FloatButton.js +3 -3
- package/vendor/antd/es/float-button/FloatButtonGroup.js +2 -2
- package/vendor/antd/es/form/ErrorList.js +13 -6
- package/vendor/antd/es/form/Form.js +7 -6
- package/vendor/antd/es/form/FormItem/ItemHolder.js +1 -1
- package/vendor/antd/es/form/FormItem/index.js +6 -6
- package/vendor/antd/es/form/FormItemInput.js +5 -3
- package/vendor/antd/es/form/FormItemLabel.js +2 -1
- package/vendor/antd/es/form/FormList.js +1 -0
- package/vendor/antd/es/form/hooks/useChildren.js +4 -3
- package/vendor/antd/es/form/hooks/useForm.js +3 -1
- package/vendor/antd/es/form/hooks/useFrameState.js +1 -0
- package/vendor/antd/es/form/hooks/useItemRef.js +7 -5
- package/vendor/antd/es/form/style/index.js +1 -3
- package/vendor/antd/es/grid/col.js +5 -7
- package/vendor/antd/es/grid/hooks/useBreakpoint.js +1 -0
- package/vendor/antd/es/grid/hooks/useGutter.js +2 -1
- package/vendor/antd/es/grid/row.js +7 -6
- package/vendor/antd/es/image/PreviewGroup.js +1 -2
- package/vendor/antd/es/image/Progress.js +58 -0
- package/vendor/antd/es/image/hooks/useMergedPreviewConfig.js +3 -1
- package/vendor/antd/es/image/hooks/usePlaceholderConfig.js +15 -0
- package/vendor/antd/es/image/hooks/usePreviewConfig.js +3 -2
- package/vendor/antd/es/image/index.js +36 -5
- package/vendor/antd/es/image/style/index.js +114 -4
- package/vendor/antd/es/image/style/progressAnimation.js +26 -0
- package/vendor/antd/es/index.js +2 -1
- package/vendor/antd/es/input/Input.js +9 -4
- package/vendor/antd/es/input/OTP/OTPInput.js +1 -0
- package/vendor/antd/es/input/OTP/index.js +3 -3
- package/vendor/antd/es/input/Password.js +45 -26
- package/vendor/antd/es/input/Search.js +6 -5
- package/vendor/antd/es/input/TextArea.js +13 -7
- package/vendor/antd/es/input/style/index.js +17 -11
- package/vendor/antd/es/input/style/otp.js +2 -1
- package/vendor/antd/es/input/style/variants.js +16 -10
- package/vendor/antd/es/input-number/index.js +3 -3
- package/vendor/antd/es/input-number/style/index.js +9 -9
- package/vendor/antd/es/layout/Sider.js +3 -2
- package/vendor/antd/es/list/index.js +5 -3
- package/vendor/antd/es/locale/en_US.js +3 -1
- package/vendor/antd/es/locale/ru_RU.js +3 -1
- package/vendor/antd/es/locale/useLocale.js +2 -1
- package/vendor/antd/es/masonry/Masonry.js +4 -3
- package/vendor/antd/es/mentions/index.js +28 -14
- package/vendor/antd/es/menu/MenuItem.js +2 -1
- package/vendor/antd/es/menu/OverrideContext.js +1 -0
- package/vendor/antd/es/menu/SubMenu.js +1 -1
- package/vendor/antd/es/menu/menu.js +5 -5
- package/vendor/antd/es/menu/style/index.js +21 -36
- package/vendor/antd/es/menu/style/vertical.js +2 -1
- package/vendor/antd/es/message/PureList.js +49 -0
- package/vendor/antd/es/message/PurePanel.js +28 -36
- package/vendor/antd/es/message/index.js +6 -3
- package/vendor/antd/es/message/style/index.js +102 -99
- package/vendor/antd/es/message/useMessage.js +29 -33
- package/vendor/antd/es/message/util.js +1 -1
- package/vendor/antd/es/modal/ConfirmDialog.js +11 -9
- package/vendor/antd/es/modal/Modal.js +12 -7
- package/vendor/antd/es/modal/PurePanel.js +1 -2
- package/vendor/antd/es/modal/confirm.js +4 -3
- package/vendor/antd/es/modal/shared.js +3 -2
- package/vendor/antd/es/modal/useModal/HookModal.js +2 -1
- package/vendor/antd/es/notification/PureList.js +46 -0
- package/vendor/antd/es/notification/PurePanel.js +37 -56
- package/vendor/antd/es/notification/hooks/useStackConfig.js +13 -0
- package/vendor/antd/es/notification/index.js +3 -1
- package/vendor/antd/es/notification/style/index.js +103 -170
- package/vendor/antd/es/notification/style/notification.js +191 -0
- package/vendor/antd/es/notification/style/placement.js +117 -60
- package/vendor/antd/es/notification/useNotification.js +37 -40
- package/vendor/antd/es/notification/util.js +9 -50
- package/vendor/antd/es/pagination/Pagination.js +1 -2
- package/vendor/antd/es/pagination/useShowSizeChanger.js +2 -1
- package/vendor/antd/es/popconfirm/PurePanel.js +4 -1
- package/vendor/antd/es/popconfirm/index.js +1 -2
- package/vendor/antd/es/popover/PurePanel.js +1 -2
- package/vendor/antd/es/popover/index.js +1 -2
- package/vendor/antd/es/progress/Circle.js +2 -1
- package/vendor/antd/es/progress/progress.js +3 -3
- package/vendor/antd/es/progress/utils.js +4 -3
- package/vendor/antd/es/qr-code/index.js +4 -4
- package/vendor/antd/es/radio/group.js +4 -3
- package/vendor/antd/es/radio/radio.js +2 -2
- package/vendor/antd/es/radio/style/index.js +1 -1
- package/vendor/antd/es/rate/index.js +2 -4
- package/vendor/antd/es/result/index.js +6 -5
- package/vendor/antd/es/result/style/index.js +10 -6
- package/vendor/antd/es/segmented/index.js +5 -3
- package/vendor/antd/es/select/index.js +23 -12
- package/vendor/antd/es/select/style/dropdown.js +1 -1
- package/vendor/antd/es/select/style/select-input.js +23 -15
- package/vendor/antd/es/select/useIcons.js +43 -26
- package/vendor/antd/es/skeleton/Element.js +2 -1
- package/vendor/antd/es/skeleton/Skeleton.js +3 -3
- package/vendor/antd/es/slider/SliderTooltip.js +1 -0
- package/vendor/antd/es/slider/index.js +5 -3
- package/vendor/antd/es/slider/useRafLock.js +1 -0
- package/vendor/antd/es/space/Compact.js +1 -1
- package/vendor/antd/es/space/Item.js +1 -1
- package/vendor/antd/es/space/index.js +2 -2
- package/vendor/antd/es/space/style/addon.js +5 -2
- package/vendor/antd/es/spin/Indicator/Progress.js +2 -1
- package/vendor/antd/es/spin/index.js +1 -2
- package/vendor/antd/es/splitter/Panel.js +7 -3
- package/vendor/antd/es/splitter/SplitBar.js +5 -4
- package/vendor/antd/es/splitter/Splitter.js +9 -6
- package/vendor/antd/es/splitter/hooks/useItems.js +2 -1
- package/vendor/antd/es/splitter/hooks/useSizes.js +1 -1
- package/vendor/antd/es/splitter/style/index.js +8 -6
- package/vendor/antd/es/statistic/Number.js +8 -4
- package/vendor/antd/es/statistic/Statistic.js +14 -10
- package/vendor/antd/es/steps/index.js +4 -4
- package/vendor/antd/es/style/compact-item-vertical.js +2 -1
- package/vendor/antd/es/style/compact-item.js +6 -6
- package/vendor/antd/es/switch/index.js +1 -2
- package/vendor/antd/es/table/InternalTable.js +23 -14
- package/vendor/antd/es/table/hooks/useFilledColumns.js +23 -0
- package/vendor/antd/es/table/hooks/useFilter/FilterDropdown.js +22 -16
- package/vendor/antd/es/table/hooks/useFilter/FilterWrapper.js +1 -0
- package/vendor/antd/es/table/hooks/useFilter/index.js +34 -18
- package/vendor/antd/es/table/hooks/useLazyKVMap.js +2 -1
- package/vendor/antd/es/table/hooks/usePagination.js +7 -4
- package/vendor/antd/es/table/hooks/useSelection.js +32 -21
- package/vendor/antd/es/table/hooks/useSorter.js +10 -5
- package/vendor/antd/es/table/style/bordered.js +5 -27
- package/vendor/antd/es/table/style/empty.js +1 -4
- package/vendor/antd/es/table/style/index.js +1 -4
- package/vendor/antd/es/table/util.js +6 -6
- package/vendor/antd/es/tabs/hooks/useAnimateConfig.js +2 -1
- package/vendor/antd/es/tabs/index.js +1 -2
- package/vendor/antd/es/tag/CheckableTagGroup.js +8 -5
- package/vendor/antd/es/tag/hooks/useColor.js +4 -3
- package/vendor/antd/es/tag/index.js +13 -7
- package/vendor/antd/es/theme/themes/dark/colors.js +2 -1
- package/vendor/antd/es/theme/themes/default/colors.js +2 -1
- package/vendor/antd/es/theme/useToken.js +2 -2
- package/vendor/antd/es/theme/util/alias.js +34 -29
- package/vendor/antd/es/timeline/Timeline.js +3 -4
- package/vendor/antd/es/tooltip/PurePanel.js +1 -2
- package/vendor/antd/es/tooltip/UniqueProvider/index.js +2 -1
- package/vendor/antd/es/tooltip/index.js +9 -7
- package/vendor/antd/es/tour/PurePanel.js +2 -2
- package/vendor/antd/es/tour/index.js +1 -1
- package/vendor/antd/es/tour/panelRender.js +4 -2
- package/vendor/antd/es/transfer/ListBody.js +3 -1
- package/vendor/antd/es/transfer/ListItem.js +2 -1
- package/vendor/antd/es/transfer/Section.js +17 -8
- package/vendor/antd/es/transfer/index.js +51 -16
- package/vendor/antd/es/transfer/style/index.js +5 -1
- package/vendor/antd/es/tree/Tree.js +1 -2
- package/vendor/antd/es/tree/style/index.js +5 -1
- package/vendor/antd/es/tree/utils/iconUtil.js +5 -4
- package/vendor/antd/es/tree-select/index.js +3 -3
- package/vendor/antd/es/typography/Base/CopyBtn.js +3 -2
- package/vendor/antd/es/typography/Base/Ellipsis.js +3 -3
- package/vendor/antd/es/typography/Base/index.js +38 -31
- package/vendor/antd/es/typography/Editable.js +10 -4
- package/vendor/antd/es/typography/Link.js +1 -0
- package/vendor/antd/es/typography/Text.js +2 -1
- package/vendor/antd/es/typography/Typography.js +20 -10
- package/vendor/antd/es/typography/hooks/useCopyClick.js +2 -1
- package/vendor/antd/es/typography/hooks/useMergedConfig.js +13 -7
- package/vendor/antd/es/typography/hooks/useTooltipProps.js +2 -1
- package/vendor/antd/es/typography/hooks/useTypographySemantic.js +33 -0
- package/vendor/antd/es/typography/style/index.js +12 -27
- package/vendor/antd/es/typography/style/mixins.js +46 -13
- package/vendor/antd/es/upload/Upload.js +13 -7
- package/vendor/antd/es/upload/UploadList/ListItem.js +6 -5
- package/vendor/antd/es/upload/UploadList/index.js +4 -3
- package/vendor/antd/es/upload/utils.js +18 -1
- package/vendor/antd/es/version/version.js +1 -1
- package/vendor/antd/es/watermark/index.js +6 -4
- package/vendor/antd/es/watermark/useSingletonCache.js +1 -0
- package/vendor/antd/es/watermark/useWatermark.js +3 -3
- package/vendor/antd/package.json +1 -1
- package/vendor/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
- package/vendor/useblocks-ui-kit/es/components/General/EmIcons/deprecationNotice.js +1 -1
- package/vendor/useblocks-ui-kit/package.json +1 -1
- package/vite/index.cjs +2 -2
- package/vite/index.js +2 -2
- package/iframe/js/discussHandlers.ozU2Hn_l.js +0 -87
- package/iframe/js/iframe.body.js +0 -319
- package/static/core/1c535081.js +0 -1
- package/static/core/1cee0d36.js +0 -1
- package/static/core/4fbdd8b6.js +0 -2
- package/static/core/55a38638.js +0 -93
- package/static/core/605c665e.js +0 -28
- package/static/core/68cbe23d.js +0 -1
- package/static/core/89431649.js +0 -7
- package/static/core/8b821a61.js +0 -1
- package/static/core/9718977a.js +0 -1
- package/static/core/b7e9202e.js +0 -27
- package/static/core/b877f7b4.js +0 -1
- package/static/core/baded0c1.js +0 -1
- package/static/core/c6cc104d.js +0 -4
- package/static/core/d70aac44.js +0 -291
- package/static/core/e0d71533.js +0 -100
- package/static/core/fb57f60b.js +0 -1
- package/static/core/fe756e4d.js +0 -1
- package/static/esm/349f9e2c.js +0 -1
- package/static/esm/50fbfdf6.js +0 -1
- package/static/media/icon-sets/lucide.json +0 -6275
- package/static/media/icon-sets/tabler.json +0 -19336
- package/static/umd-runtime/Cl8heeC3.js +0 -1
- package/static/umd-runtime/D0xo8o9c.js +0 -335
- package/static/umd-runtime/runtime.js +0 -1
- package/useblocks-core.bb6d921f.js +0 -859
- package/vendor/@rc-component/notification/es/Notice.js +0 -106
- package/vendor/@rc-component/notification/es/NoticeList.js +0 -98
- package/vendor/@rc-component/textarea/LICENSE.md +0 -9
- package/vendor/@rc-component/textarea/es/index.js +0 -6
- package/vendor/@rc-component/textarea/package.json +0 -6
- package/vendor/antd/es/_util/extendsObject.js +0 -12
- package/vendor/antd/es/_util/getAllowClear.js +0 -12
- package/vendor/antd/es/_util/isNonNullable.js +0 -6
- package/vendor/antd/es/_util/isPrimitive.js +0 -4
- package/vendor/antd/es/notification/style/pure-panel.js +0 -18
- package/vendor/antd/es/notification/style/stack.js +0 -85
- /package/static/monaco/{index.js → index.CO7s5UdA.js} +0 -0
- /package/static/umd-runtime/{delivery-libs.js → delivery-libs.3Svr0avG.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__useblocks__.define("static/core/26cc947d.js",["require","exports","module","static/core/2ff39ddf.js","static/core/d68c5a64.js"],function(i,d,P){const h=i("./2ff39ddf.js"),p=i("./d68c5a64.js");var u={items_per_page:"/ pagina",jump_to:"vai a",jump_to_confirm:"Conferma",page:"Pagina",prev_page:"Pagina precedente",next_page:"Pagina successiva",prev_5:"Precedente 5 pagine",next_5:"Prossime 5 pagine",prev_3:"Precedente 3 pagine",next_3:"Prossime 3 pagine",page_size:"dimensioni della pagina"};function o(a){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(a)}function l(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(S){return Object.getOwnPropertyDescriptor(a,S).enumerable})),r.push.apply(r,n)}return r}function c(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(n){g(a,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(r,n))})}return a}function g(a,e,r){return e=f(e),e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}function f(a){var e=b(a,"string");return o(e)=="symbol"?e:String(e)}function b(a,e){if(o(a)!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var n=r.call(a,e||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var v=c(c({},p.commonLocale),{},{locale:"it_IT",today:"Oggi",now:"Adesso",backToToday:"Torna ad oggi",ok:"OK",clear:"Cancella",week:"Settimana",month:"Mese",year:"Anno",timeSelect:"Seleziona l'ora",dateSelect:"Seleziona la data",monthSelect:"Seleziona il mese",yearSelect:"Seleziona l'anno",decadeSelect:"Seleziona il decennio",previousMonth:"Il mese scorso (PageUp)",nextMonth:"Il prossimo mese (PageDown)",previousYear:"L'anno scorso (Control + sinistra)",nextYear:"L'anno prossimo (Control + destra)",previousDecade:"Ultimo decennio",nextDecade:"Prossimo decennio",previousCentury:"Secolo precedente",nextCentury:"Prossimo secolo",shortWeekDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]}),s={placeholder:"Selezionare l'orario",rangePlaceholder:["Inizio orario","Fine orario"]},m={lang:{placeholder:"Selezionare la data",rangePlaceholder:["Data d'inizio","Data di fine"],...v},timePickerLocale:{...s}},y=m,t=" ${label} non è un ${type} valido",$={locale:"it",Pagination:u,DatePicker:m,TimePicker:s,Calendar:y,global:{placeholder:"Selezionare",close:"Chiudi",show:"Mostra",hide:"Nascondi"},Table:{filterTitle:"Menù Filtro",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"Senza filtri",filterCheckAll:"Seleziona tutti",filterSearchPlaceholder:"Cerca nei filtri",emptyText:"Senza dati",selectAll:"Seleziona pagina corrente",selectInvert:"Inverti selezione nella pagina corrente",selectNone:"Deseleziona tutto",selectionAll:"Seleziona tutto",sortTitle:"Ordina",expand:"Espandi riga",collapse:"Comprimi riga ",triggerDesc:"Clicca per ordinare in modo discendente",triggerAsc:"Clicca per ordinare in modo ascendente",cancelSort:"Clicca per eliminare l'ordinamento"},Tour:{Next:"Successivo",Previous:"Precedente",Finish:"Termina"},Modal:{okText:"OK",cancelText:"Annulla",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annulla"},Transfer:{titles:["",""],searchPlaceholder:"Cerca qui",itemUnit:"elemento",itemsUnit:"elementi",remove:"Elimina",selectCurrent:"Seleziona la pagina corrente",removeCurrent:"Rimuovi la pagina corrente",selectAll:"Seleziona tutti i dati",removeAll:"Rimuovi tutti i dati",selectInvert:"Inverti la pagina corrente"},Upload:{uploading:"Caricamento...",removeFile:"Rimuovi il file",uploadError:"Errore di caricamento",previewFile:"Anteprima file",downloadFile:"Scarica file"},Empty:{description:"Nessun dato"},Icon:{icon:"icona"},Text:{edit:"modifica",copy:"copia",copied:"copia effettuata",expand:"espandi"},Form:{optional:"(opzionale)",defaultValidateMessages:{default:"Errore di convalida del campo ${label}",required:"Si prega di inserire ${label}",enum:"${label} deve essere uno di [${enum}]",whitespace:"${label} non può essere un carattere vuoto",date:{format:"Il formato della data ${label} non è valido",parse:"${label} non può essere convertito in una data",invalid:"${label} non è una data valida"},types:{string:t,method:t,array:t,object:t,number:t,date:t,boolean:t,integer:t,float:t,regexp:t,email:t,url:t,hex:t},string:{len:"${label} deve avere ${len} caratteri",min:"${label} deve contenere almeno ${min} caratteri",max:"${label} deve contenere fino a ${max} caratteri",range:"${label} deve contenere tra ${min}-${max} caratteri"},number:{len:"${label} deve essere uguale a ${len}",min:"${label} valore minimo è ${min}",max:"${label} valor e massimo è ${max}",range:"${label} deve essere compreso tra ${min}-${max}"},array:{len:"Deve essere ${len} ${label}",min:"Almeno ${min} ${label}",max:"Massimo ${max} ${label}",range:"Il totale di ${label} deve essere compreso tra ${min}-${max}"},pattern:{mismatch:"${label} non corrisponde al modello ${pattern}"}}},QRCode:{expired:"Codice QR scaduto",refresh:"Ricarica",scanned:"Scansionato"},ColorPicker:{presetEmpty:"Vuoto",transparent:"Trasparente",singleColor:"Tinta unita",gradientColor:"Gradiente"}};d.default=$});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/3ec42945.js",["require","exports","module","static/core/2ff39ddf.js","static/core/d68c5a64.js"],function(g,$,L){const T=g("./2ff39ddf.js"),u=g("./d68c5a64.js");function w(t,e){const d={bytes:0,hidden:0,byKind:{}};for(const n of e)if(!(n.finishedAt>t.end||n.finishedAt<t.start)){if(n.transferred===null){d.hidden+=1;continue}d.bytes+=n.transferred,d.byKind[n.kind]=(d.byKind[n.kind]??0)+n.transferred}return d}var y="core:module:";function v(t){const e=[...t].sort((n,r)=>n.start-r.start),d=[];return e.forEach(n=>{const r=d[d.length-1];if(r&&n.start<=r.end){r.end=Math.max(r.end,n.end);return}d.push({start:n.start,end:n.end})}),d}function A(t,e){const d=Math.max(0,t.end-t.start),n=v(e.map(r=>({start:Math.max(t.start,r.startedAt),end:Math.min(t.end,r.finishedAt)})).filter(r=>r.end>r.start)).reduce((r,o)=>r+(o.end-o.start),0);return{networkMs:n,quietMs:d-n}}function P(t){const e=new Map;t.forEach(n=>{if(!n.phase.startsWith(y))return;const r=n.phase.slice(12),o=r.lastIndexOf(":");if(o<=0)return;const s=r.slice(0,o),a=r.slice(o+1),i=e.get(s)??{};a==="ask"?(i.ask=n.at,n.parent&&(i.parent=n.parent)):a==="loaded"?i.loaded=n.at:a==="deps"?i.deps=n.at:a==="ready"&&(i.ready=n.at),e.set(s,i)});const d=[];return e.forEach((n,r)=>{if(n.ask===void 0||n.ready===void 0)return;const o=n.ask,s=n.ready,a=n.deps,i=n.loaded;d.push({id:r,parent:n.parent,askedAt:o,loadedAt:i,depsAt:a,readyAt:s,networkMs:i===void 0?0:i-o,waitingMs:a===void 0?0:a-(i??o),executionMs:a===void 0?0:s-a})}),d}function S(t){const e=new Map;t.forEach(o=>{if(o.parent===void 0)return;const s=e.get(o.parent)??[];s.push(o),e.set(o.parent,s)});let d=t.filter(o=>o.parent===void 0).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);const n=[],r=new Set;for(;d&&!r.has(d.id);)r.add(d.id),n.push(d),d=(e.get(d.id)??[]).reduce((o,s)=>o===void 0||s.readyAt>o.readyAt?s:o,void 0);return n}function E(t,e){const d=u.detectMount(t),n=u.requiredPhases(d),r=new Map;t.forEach(l=>{n.includes(l.phase)&&!r.has(l.phase)&&r.set(l.phase,l.at)});const o=[...r.entries()].sort((l,h)=>l[1]-h[1]),s=q(d),a=o.findIndex(([l])=>l===s),i=a===-1?o:o.slice(0,a+1);return i.slice(1).map(([l,h],m)=>{const[x,p]=i[m],f=A({start:p,end:h},e);return{from:x,to:l,startedAt:p,endedAt:h,durationMs:h-p,networkMs:f.networkMs,quietMs:f.quietMs}})}function q(t){return t==="headless"?u.PHASES.showEnd:u.PHASES.canvasSettled}function M(t,e){const d=t.find(n=>n.phase===e);return d?d.at:null}function j(t,e){return t===null?e:e===null?t:Math.max(t,e)}function z(t,e){const d=u.missingRequiredPhases(t),n=d.length===0,r=t.reduce((p,f)=>p===null||f.at<p?f.at:p,null),o=u.detectMount(t),s=M(t,u.PHASES.canvasPainted),a=o==="headless"?M(t,u.PHASES.showEnd):j(M(t,u.PHASES.canvasSettled),M(t,u.PHASES.editorVisible)),i=P(t),l=i.reduce((p,f)=>p+f.executionMs,0),h=r!==null&&n&&(o==="headless"||s!==null),m=o==="headless"?a:s,x=h&&m!==null?A({start:r,end:m},e):{networkMs:0,quietMs:0};return{startedAt:r,paintedAt:s,settledAt:a,totalMs:h&&s!==null?s-r:null,settledMs:h&&a!==null?a-r:null,settleGapMs:h&&a!==null&&s!==null?a-s:null,segments:h?E(t,e):[],complete:n,missingPhases:d,networkMs:x.networkMs,quietMs:x.quietMs,moduleExecutionMs:l,criticalPath:S(i),transferBeforeFrame:h&&r!==null&&m!==null?w({start:r,end:m},e):{bytes:0,hidden:0,byKind:{}}}}function c(t){return t.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function H(){return"dev"}function k(t,e){return{mode:H(),summary:z(t,e),marks:[...t],resources:[...e]}}function b(t){return t===null?"—":`${Math.round(t)} мс`}function _(t){return t==="dev"?"dev-сервер — AMD-ядро не работает, слой модулей пуст":t==="build"?"собранная версия":"режим неизвестен"}function R(t){const{summary:e}=t,d=e.complete?'<span class="ok">прогон полный</span>':'<span class="bad">прогон неполный — в сравнение не идёт</span>',n=e.missingPhases.length===0?"":`<p class="bad">Не хватает фаз: ${e.missingPhases.map(c).join(", ")}</p>`;return`
|
|
2
2
|
<header>
|
|
3
3
|
<h1>Куда ушло время до показа письма</h1>
|
|
4
4
|
<p class="mode">${c(_(t.mode))}</p>
|
|
@@ -31,7 +31,7 @@ __useblocks__.define("static/core/67f78cad.js",["require","exports","module","st
|
|
|
31
31
|
</tr>`}).join("")}</tbody>
|
|
32
32
|
<tfoot><tr><th>Сумма</th><th>${Math.round(e)}</th><th>100%</th><th></th><th></th><th></th></tr></tfoot>
|
|
33
33
|
</table>
|
|
34
|
-
</section>`}function
|
|
34
|
+
</section>`}function C(t){return t.length===0?"<section><h2>Критический путь по модулям ядра</h2><p>Отметок модулей нет.</p></section>":`
|
|
35
35
|
<section>
|
|
36
36
|
<h2>Критический путь по модулям ядра</h2>
|
|
37
37
|
<p class="hint">Звено с малыми «едет» и «исполняется», но поздним «попросили», — это «поздно попросили».</p>
|
|
@@ -47,7 +47,7 @@ __useblocks__.define("static/core/67f78cad.js",["require","exports","module","st
|
|
|
47
47
|
<td>${Math.round(e.readyAt)}</td>
|
|
48
48
|
</tr>`).join("")}</tbody>
|
|
49
49
|
</table>
|
|
50
|
-
</section>`}function
|
|
50
|
+
</section>`}function I(t){const{resources:e,summary:d}=t;if(e.length===0)return"<section><h2>Водопад ресурсов</h2><p>Ресурсов не записано.</p></section>";const n=d.startedAt??Math.min(...e.map(s=>s.startedAt)),r=Math.max(d.paintedAt??0,...e.map(s=>s.finishedAt)),o=Math.max(1,r-n);return`
|
|
51
51
|
<section>
|
|
52
52
|
<h2>Водопад ресурсов</h2>
|
|
53
53
|
<table class="waterfall"><tbody>${[...e].sort((s,a)=>s.startedAt-a.startedAt).map(s=>{const a=(s.startedAt-n)/o*100,i=Math.max(.4,(s.finishedAt-s.startedAt)/o*100),l=s.transferred===null?"размер скрыт":s.fromCache?"из кэша":`${Math.round(s.transferred/1024)} КБ`;return`
|
|
@@ -57,7 +57,7 @@ __useblocks__.define("static/core/67f78cad.js",["require","exports","module","st
|
|
|
57
57
|
<td class="size">${c(l)}</td>
|
|
58
58
|
<td class="bar"><span style="left:${a.toFixed(2)}%;width:${i.toFixed(2)}%"></span></td>
|
|
59
59
|
</tr>`}).join("")}</tbody></table>
|
|
60
|
-
</section>`}function
|
|
60
|
+
</section>`}function O(t){if(t.length===0)return"<section><h2>Отметки</h2><p>Отметок нет.</p></section>";const e=Math.min(...t.map(d=>d.at));return`
|
|
61
61
|
<section>
|
|
62
62
|
<h2>Отметки</h2>
|
|
63
63
|
<table>
|
|
@@ -102,9 +102,9 @@ __useblocks__.define("static/core/67f78cad.js",["require","exports","module","st
|
|
|
102
102
|
<body>
|
|
103
103
|
${R(t)}
|
|
104
104
|
${F(t.summary.segments)}
|
|
105
|
-
${
|
|
106
|
-
${
|
|
107
|
-
${
|
|
105
|
+
${C(t.summary.criticalPath)}
|
|
106
|
+
${I(t)}
|
|
107
|
+
${O(t.marks)}
|
|
108
108
|
<section>
|
|
109
109
|
<h2>Выгрузка JSON</h2>
|
|
110
110
|
<pre>${e}</pre>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__useblocks__.define("static/core/3fb172c7.js",["require","exports","module","static/core/2ff39ddf.js","static/core/d68c5a64.js"],function(n,u,P){const x=n("./2ff39ddf.js"),p=n("./d68c5a64.js");var b={items_per_page:"/ сторінці",jump_to:"Перейти",jump_to_confirm:"підтвердити",page:"",prev_page:"Попередня сторінка",next_page:"Наступна сторінка",prev_5:"Попередні 5 сторінок",next_5:"Наступні 5 сторінок",prev_3:"Попередні 3 сторінки",next_3:"Наступні 3 сторінки",page_size:"Page Size"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),t.push.apply(t,a)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?i(Object(t),!0).forEach(function(a){d(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function d(r,e,t){return e=f(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function f(r){var e=y(r,"string");return o(e)=="symbol"?e:String(e)}function y(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(o(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},p.commonLocale),{},{locale:"uk_UA",today:"Сьогодні",now:"Зараз",backToToday:"Поточна дата",ok:"OK",clear:"Очистити",week:"Тиждень",month:"Місяць",year:"Рік",timeSelect:"Обрати час",dateSelect:"Обрати дату",monthSelect:"Обрати місяць",yearSelect:"Обрати рік",decadeSelect:"Обрати десятиріччя",previousMonth:"Попередній місяць (PageUp)",nextMonth:"Наступний місяць (PageDown)",previousYear:"Попередній рік (Control + left)",nextYear:"Наступний рік (Control + right)",previousDecade:"Попереднє десятиріччя",nextDecade:"Наступне десятиріччя",previousCentury:"Попереднє століття",nextCentury:"Наступне століття"}),s={placeholder:"Оберіть час",rangePlaceholder:["Початковий час","Кінцевий час"]},m={lang:{placeholder:"Оберіть дату",yearPlaceholder:"Оберіть рік",quarterPlaceholder:"Оберіть квартал",monthPlaceholder:"Оберіть місяць",weekPlaceholder:"Оберіть тиждень",rangePlaceholder:["Початкова дата","Кінцева дата"],rangeYearPlaceholder:["Початковий рік","Кінцевий рік"],rangeMonthPlaceholder:["Початковий місяць","Кінцевий місяць"],rangeWeekPlaceholder:["Початковий тиждень","Кінцевий тиждень"],shortWeekDays:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],...g},timePickerLocale:{...s}},h=m,l="${label} не є типом ${type}",$={locale:"uk",Pagination:b,DatePicker:m,TimePicker:s,Calendar:h,global:{placeholder:"Будь ласка, оберіть",close:"Закрити",show:"Показати",hide:"Приховати"},Table:{filterTitle:"Фільтрувати",filterConfirm:"OK",filterReset:"Скинути",filterEmptyText:"Фільтри відсутні",filterCheckAll:"Обрати всі",filterSearchPlaceholder:"Пошук у фільтрах",emptyText:"Даних немає",selectAll:"Обрати всі на сторінці",selectInvert:"Інвертувати вибір",selectNone:"Очистити вибір",selectionAll:"Обрати всі",sortTitle:"Сортувати",expand:"Розгорнути рядок",collapse:"Згорнути рядок",triggerDesc:"Сортувати за спаданням",triggerAsc:"Сортувати за зростанням",cancelSort:"Відмінити сортування"},Tour:{Next:"Далі",Previous:"Назад",Finish:"Завершити"},Modal:{okText:"Гаразд",cancelText:"Скасувати",justOkText:"Гаразд"},Popconfirm:{okText:"Гаразд",cancelText:"Скасувати"},Transfer:{titles:["",""],searchPlaceholder:"Введіть текст для пошуку",itemUnit:"елем.",itemsUnit:"елем.",remove:"Видалити",selectCurrent:"Вибрати поточну сторінку",removeCurrent:"Скасувати вибір на сторінці",selectAll:"Вибрати всі дані",deselectAll:"Очистити вибір",removeAll:"Скасувати вибір",selectInvert:"Інвертувати поточну сторінку"},Upload:{uploading:"Завантаження ...",removeFile:"Видалити файл",uploadError:"Помилка завантаження",previewFile:"Попередній перегляд файлу",downloadFile:"Завантажити файл"},Empty:{description:"Даних немає"},Icon:{icon:"іконка"},Text:{edit:"Редагувати",copy:"Скопіювати",copied:"Скопійовано",expand:"Розширити"},Form:{optional:"(опціонально)",defaultValidateMessages:{default:"Помилка валідації для поля ${label}",required:"Будь ласка, заповніть ${label}",enum:"Лише одне зі значень [${enum}] доступне для ${label}",whitespace:"Значення у полі ${label} не може бути пробілом",date:{format:"Не валідний формат дати у ${label}",parse:"Значення ${label} не може бути приведене до дати",invalid:"Не валідна дата у ${label}"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} має містити ${len} символів",min:"${label} має містити не менш, ніж ${min} символів",max:"${label} має містити не більш, ніж ${max} символів",range:"${label} має містити ${min}-${max} символів"},number:{len:"${label} має дорівнювати ${len}",min:"${label} має бути не менш, ніж ${min}",max:"${label} має бути не більш, ніж ${max}",range:"${label} має бути в межах ${min}-${max}"},array:{len:"${label} має містити ${len} елементи",min:"${label} має містити не менш, ніж ${min} елементи",max:"${label} має містити не більш, ніж ${max} елементи",range:"Кількість елементів в ${label} має бути в межах ${min}-${max}"},pattern:{mismatch:"${label} не відповідає шаблону ${pattern}"}}},QRCode:{expired:"QR-код закінчився",refresh:"Оновити"}};u.default=$});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__useblocks__.define("static/core/448f03f8.js",["require","exports","module","static/core/2ff39ddf.js","static/core/d68c5a64.js"],function(i,p,$){const P=i("./2ff39ddf.js"),d=i("./d68c5a64.js");var u={items_per_page:"/ página",jump_to:"Vá até",jump_to_confirm:"confirme",page:"Página",prev_page:"Página anterior",next_page:"Próxima página",prev_5:"5 páginas anteriores",next_5:"5 próximas páginas",prev_3:"3 páginas anteriores",next_3:"3 próximas páginas",page_size:"tamanho da página"};function n(r){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(r)}function l(r,e){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(h){return Object.getOwnPropertyDescriptor(r,h).enumerable})),a.push.apply(a,t)}return a}function c(r){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?l(Object(a),!0).forEach(function(t){v(r,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t))})}return r}function v(r,e,a){return e=b(e),e in r?Object.defineProperty(r,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[e]=a,r}function b(r){var e=f(r,"string");return n(e)=="symbol"?e:String(e)}function f(r,e){if(n(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var t=a.call(r,e||"default");if(n(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},d.commonLocale),{},{locale:"pt_BR",today:"Hoje",now:"Agora",backToToday:"Voltar para hoje",ok:"OK",clear:"Limpar",week:"Semana",month:"Mês",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Escolher mês",yearSelect:"Escolher ano",decadeSelect:"Escolher década",monthBeforeYear:!1,previousMonth:"Mês anterior (PageUp)",nextMonth:"Próximo mês (PageDown)",previousYear:"Ano anterior (Control + esquerda)",nextYear:"Próximo ano (Control + direita)",previousDecade:"Década anterior",nextDecade:"Próxima década",previousCentury:"Século anterior",nextCentury:"Próximo século",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}),s={placeholder:"Hora",rangePlaceholder:["Hora de início","Hora de término"]},m={lang:{placeholder:"Selecionar data",rangePlaceholder:["Data inicial","Data final"],...g},timePickerLocale:{...s}},x=m,o="${label} não é um ${type} válido",y={locale:"pt-br",Pagination:u,DatePicker:m,TimePicker:s,Calendar:x,global:{placeholder:"Por favor escolha",close:"Fechar",show:"Mostrar",hide:"Ocultar"},Table:{filterTitle:"Menu de Filtro",filterConfirm:"OK",filterReset:"Resetar",filterEmptyText:"Sem filtros",filterCheckAll:"Selecionar todos os itens",filterSearchPlaceholder:"Pesquisar nos filtros",emptyText:"Sem conteúdo",selectAll:"Selecionar página atual",selectInvert:"Inverter seleção",selectNone:"Apagar todo o conteúdo",selectionAll:"Selecionar todo o conteúdo",sortTitle:"Ordenar título",expand:"Expandir linha",collapse:"Colapsar linha",triggerDesc:"Clique organiza por descendente",triggerAsc:"Clique organiza por ascendente",cancelSort:"Clique para cancelar organização"},Tour:{Next:"Próximo",Previous:"Anterior",Finish:"Finalizar"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{titles:["",""],searchPlaceholder:"Procurar",itemUnit:"item",itemsUnit:"items",remove:"Remover",selectCurrent:"Selecionar página atual",removeCurrent:"Remover página atual",selectAll:"Selecionar todos",removeAll:"Remover todos",selectInvert:"Inverter seleção atual"},Upload:{uploading:"Enviando...",removeFile:"Remover arquivo",uploadError:"Erro no envio",previewFile:"Visualizar arquivo",downloadFile:"Baixar arquivo"},Empty:{description:"Não há dados"},Icon:{icon:"ícone"},Text:{edit:"editar",copy:"copiar",copied:"copiado",expand:"expandir"},Form:{optional:"(opcional)",defaultValidateMessages:{default:"Erro ${label} na validação de campo",required:"Por favor, insira ${label}",enum:"${label} deve ser um dos seguinte: [${enum}]",whitespace:"${label} não pode ser um carácter vazio",date:{format:" O formato de data ${label} é inválido",parse:"${label} não pode ser convertido para uma data",invalid:"${label} é uma data inválida"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} deve possuir ${len} caracteres",min:"${label} deve possuir ao menos ${min} caracteres",max:"${label} deve possuir no máximo ${max} caracteres",range:"${label} deve possuir entre ${min} e ${max} caracteres"},number:{len:"${label} deve ser igual à ${len}",min:"O valor mínimo de ${label} é ${min}",max:"O valor máximo de ${label} é ${max}",range:"${label} deve estar entre ${min} e ${max}"},array:{len:"Deve ser ${len} ${label}",min:"No mínimo ${min} ${label}",max:"No máximo ${max} ${label}",range:"A quantidade de ${label} deve estar entre ${min} e ${max}"},pattern:{mismatch:"${label} não se encaixa no padrão ${pattern}"}}}};p.default=y});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__useblocks__.define("static/core/44d2c046.js",["require","exports","module","static/core/2ff39ddf.js","static/core/d68c5a64.js"],function(n,m,P){const x=n("./2ff39ddf.js"),u=n("./d68c5a64.js");var d={items_per_page:"/ стр.",jump_to:"Перейти",jump_to_confirm:"подтвердить",page:"Страница",prev_page:"Назад",next_page:"Вперед",prev_5:"Предыдущие 5",next_5:"Следующие 5",prev_3:"Предыдущие 3",next_3:"Следующие 3",page_size:"размер страницы"};function o(r){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(r)}function i(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),t.push.apply(t,a)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?i(Object(t),!0).forEach(function(a){b(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function b(r,e,t){return e=f(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function f(r){var e=y(r,"string");return o(e)=="symbol"?e:String(e)}function y(r,e){if(o(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e||"default");if(o(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var g=c(c({},u.commonLocale),{},{locale:"ru_RU",today:"Сегодня",now:"Сейчас",backToToday:"Текущая дата",ok:"ОК",clear:"Очистить",week:"Неделя",month:"Месяц",year:"Год",timeSelect:"Выбрать время",dateSelect:"Выбрать дату",monthSelect:"Выбрать месяц",yearSelect:"Выбрать год",decadeSelect:"Выбрать десятилетие",previousMonth:"Предыдущий месяц (PageUp)",nextMonth:"Следующий месяц (PageDown)",previousYear:"Предыдущий год (Control + left)",nextYear:"Следующий год (Control + right)",previousDecade:"Предыдущее десятилетие",nextDecade:"Следущее десятилетие",previousCentury:"Предыдущий век",nextCentury:"Следующий век"}),s={placeholder:"Выберите время",rangePlaceholder:["Время начала","Время окончания"]},p={lang:{placeholder:"Выберите дату",yearPlaceholder:"Выберите год",quarterPlaceholder:"Выберите квартал",monthPlaceholder:"Выберите месяц",weekPlaceholder:"Выберите неделю",rangePlaceholder:["Начальная дата","Конечная дата"],rangeYearPlaceholder:["Начальный год","Год окончания"],rangeMonthPlaceholder:["Начальный месяц","Конечный месяц"],rangeWeekPlaceholder:["Начальная неделя","Конечная неделя"],shortWeekDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],...g},timePickerLocale:{...s}},h=p,l="${label} не является типом ${type}",$={locale:"ru",Pagination:d,DatePicker:p,TimePicker:s,Calendar:h,global:{placeholder:"Пожалуйста выберите",close:"Закрыть",show:"Показать",hide:"Скрыть"},Table:{filterTitle:"Фильтр",filterConfirm:"OK",filterReset:"Сбросить",filterEmptyText:"Без фильтров",filterCheckAll:"Выбрать все элементы",filterSearchPlaceholder:"Поиск в фильтрах",emptyText:"Нет данных",selectAll:"Выбрать всё",selectInvert:"Инвертировать выбор",selectNone:"Очистить все данные",selectionAll:"Выбрать все данные",sortTitle:"Сортировка",expand:"Развернуть строку",collapse:"Свернуть строку",triggerDesc:"Нажмите для сортировки по убыванию",triggerAsc:"Нажмите для сортировки по возрастанию",cancelSort:"Нажмите, чтобы отменить сортировку"},Tour:{Next:"Далее",Previous:"Назад",Finish:"Завершить"},Modal:{okText:"OK",cancelText:"Отмена",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Отмена"},Transfer:{titles:["",""],searchPlaceholder:"Поиск",itemUnit:"элем.",itemsUnit:"элем.",remove:"Удалить",selectAll:"Выбрать все данные",deselectAll:"Очистить все данные",selectCurrent:"Выбрать текущую страницу",selectInvert:"Инвертировать выбор",removeAll:"Удалить все данные",removeCurrent:"Удалить текущую страницу"},Upload:{uploading:"Загрузка...",removeFile:"Удалить файл",uploadError:"При загрузке произошла ошибка",previewFile:"Предпросмотр файла",downloadFile:"Загрузить файл"},Empty:{description:"Нет данных"},Icon:{icon:"иконка"},Text:{edit:"Редактировать",copy:"Копировать",copied:"Скопировано",expand:"Раскрыть",collapse:"Свернуть"},Form:{optional:"(необязательно)",defaultValidateMessages:{default:"Ошибка проверки поля ${label}",required:"Пожалуйста, введите ${label}",enum:"${label} должен быть одним из [${enum}]",whitespace:"${label} не может быть пустым",date:{format:"${label} не правильный формат даты",parse:"${label} не может быть преобразовано в дату",invalid:"${label} не является корректной датой"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} должна быть ${len} символов",min:"${label} должна быть больше или равна ${min} символов",max:"${label} должна быть меньше или равна ${max} символов",range:"Длина ${label} должна быть между ${min}-${max} символами"},number:{len:"${label} должна быть равна ${len}",min:"${label} должна быть больше или равна ${min}",max:"${label} должна быть меньше или равна ${max}",range:"${label} должна быть между ${min}-${max}"},array:{len:"Количество элементов ${label} должно быть равно ${len}",min:"Количество элементов ${label} должно быть больше или равно ${min}",max:"Количество элементов ${label} должно быть меньше или равно ${max}",range:"Количество элементов ${label} должно быть между ${min} и ${max}"},pattern:{mismatch:"${label} не соответствует шаблону ${pattern}"}}},QRCode:{expired:"QR-код устарел",refresh:"Обновить"},ColorPicker:{presetEmpty:"Пустой",transparent:"Прозрачный",singleColor:"Один цвет",gradientColor:"Градиент"}};m.default=$});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
2
|
-
`);let o=0;for(;o<n.length;){const r=n.indexOf("@media",o);if(r===-1)break;const i=n.indexOf("{",r);if(i===-1)break;const l=n.slice(r,i),s=nt(n,i);if(s===-1)break;/max-width|max-device-width/i.test(l)&&
|
|
3
|
-
`)}function ue(t,e,n,o){const r=t.querySelector("img");if(!r)return"";const i=r.getAttribute("src")??"";if(!i)return"";const l=r.getAttribute("alt")??"",s=r.getAttribute("width"),c=x(r.getAttribute("style")),a=r.closest('div[style*="max-width"]'),h=a?L(a,"max-width"):c.get("max-width"),f=new Map;f.set("display","block"),f.set("width","100%"),h&&f.set("max-width",h);const g=c.get("border-radius");g&&f.set("border-radius",g);const b=r.getAttribute("title")??"",d=`<img src="${y(i)}"${s?` width="${y(s)}"`:""} border="0" alt="${y(l)}"${b?` title="${y(b)}"`:""} style="${P(f)}">`,w=r.closest("a")?.getAttribute("href"),m=w?`<a href="${y(w)}" target="_blank">${d}</a>`:d,u=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",{style:p,classes:A}=z(t,e,n);return N({align:u,style:p||void 0,className:A.length?A.join(" "):void 0,visibility:o},m)}function V(t,e){for(const n of t){const o=L(n,e);if(o)return o}}function de(t,e){const n=t.querySelector("span.button");if(n)return n;if(x(e.getAttribute("style")).has("background-color"))return e;const o=Array.from(e.querySelectorAll("div, span")).find(r=>x(r.getAttribute("style")).has("background-color"));return o||(Array.from(e.children).find(r=>/^(?:div|span)$/i.test(r.tagName))??e)}function fe(t,e){let n=E(e);return n.top!=null&&n.right!=null&&n.bottom!=null&&n.left!=null||Array.from(t.querySelectorAll("span, div")).forEach(o=>{const r=E(x(o.getAttribute("style")));n={top:n.top??r.top,right:n.right??r.right,bottom:n.bottom??r.bottom,left:n.left??r.left}}),n}function he(t){const e=(t.get("width")??"").trim();if(e===""||e==="auto")return"";const n=/^(\d+(?:\.\d+)?)px$/.exec(e);return n?` width="${n[1]}"`:/^\d+(?:\.\d+)?%$/.test(e)?` width="${e}"`:""}function ge(t){const e=[],n=o=>{Array.from(o.childNodes).forEach(r=>{if(r.nodeType===Node.TEXT_NODE){e.push(Tt((r.textContent??"").replace(/\s+/g," ")));return}if(r instanceof Element){if(r.tagName.toLowerCase()==="br"){e.push("<br>");return}n(r)}})};return n(t),e.join("").replace(/ *<br> */g,"<br>").replace(/^(?:<br>)+|(?:<br>)+$/g,"").trim()||"Button"}function me(t,e,n,o,r){const i=t.querySelector("a[href]");if(!i)return"";const l=i.getAttribute("href")??"",s=de(t,i),c=x(s.getAttribute("style")),a=Array.from(s.querySelectorAll("span")),h=j(t,e),f=R(c.get("background-color")??"#1C52DC"),g=R(c.get("color")??"#FFFFFF"),b=c.get("border-radius")??"5px",d=c.get("font-size")??V(a,"font-size")??"16px",w=c.get("font-family")??it,m=c.get("font-weight")??V(a,"font-weight"),u=fe(s,c),p=u.top!=null||u.right!=null||u.bottom!=null||u.left!=null?`${u.top??0}px ${u.right??0}px ${u.bottom??0}px ${u.left??0}px`:"10px 20px",A=V(a,"line-height")??c.get("line-height")??`${parseInt(d,10)+12}px`,_=ge(s),C=new Map;f&&f!=="transparent"&&C.set("background-color",f),C.set("border-radius",b);const $=new Map;$.set("display","block"),$.set("font-family",w),m&&$.set("font-weight",m),$.set("color",g),$.set("font-size",d),$.set("line-height",A),$.set("padding",p),$.set("text-decoration","none"),c.get("white-space")==="nowrap"&&$.set("white-space","nowrap");const k=lt($,n)??ft(s,t),v=[];k&&v.push(k),h?.btnFontSize!=null&&v.push(`em-mob-font_size-${h.btnFontSize}px`),h?.btnLineHeight!=null&&v.push(`em-mob-line_height-${h.btnLineHeight}px`);const B=v.length?` class="${v.join(" ")}"`:"",H=h?.btnWidthPerc!=null?` class="em-mob-width-${h.btnWidthPerc}perc"`:"",q=`<table cellpadding="0" cellspacing="0" border="0"${he(c)}${H}><tr><td align="center" valign="middle"${f&&f!=="transparent"?` bgcolor="${y(R(f))}"`:""} style="${P(C)}"><a href="${y(l)}" target="_blank"${B} style="${P($)}">${_}</a></td></tr></table>`,I=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",{style:M,classes:W}=z(t,e,o,{top:10,right:null,bottom:10,left:null});return N({align:I,style:M||void 0,className:W.length?W.join(" "):void 0,visibility:r},q)}function pe(t,e,n,o){const r=t.querySelector(".divider_inner")??t.querySelector('td[style*="border-top"]'),i=L(r,"border-top")??"1px solid #BFBFBF",{style:l,classes:s}=z(t,e,n,{top:20,right:null,bottom:null,left:null});return N({height:"0",style:`${l}${l?" ":""}border-top: ${i};`,className:s.length?s.join(" "):void 0,visibility:o}," ")}function be(t,e,n,o){const r=t.matches(".spacer_block")?t:t.querySelector(".spacer_block"),i=r?L(r,"height"):void 0,l=i?parseInt(i,10):NaN;if(!Number.isFinite(l)||l<=0)return"";const s=j(t,e),c=[];s?.spacerHeight!=null&&s.spacerHeight!==l&&c.push(`em-mob-height-${s.spacerHeight}px`);const{style:a,classes:h}=z(t,e,n);return c.push(...h),N({height:String(l),style:a||void 0,className:c.length?c.join(" "):void 0,visibility:o},"")}function we(t,e,n,o){const r=Array.from(t.querySelectorAll("a")).map(h=>{const f=h.getAttribute("href")??"",g=h.querySelector("img");if(!g)return"";const b=g.getAttribute("src")??"",d=g.getAttribute("width")??"40",w=g.getAttribute("alt")??"",m=g.getAttribute("title")??"",u=Math.round(parseFloat(d))||40,p=Math.round(parseFloat(g.getAttribute("height")??""))||null,A=p?` height="${p}"`:"",_=p?"":"height:auto;";return`<td><a href="${y(f)}" target="_blank"><img src="${y(b)}" width="${u}"${A} border="0" alt="${y(w)}"${m?` title="${y(m)}"`:""} style="display:block;${_}"></a></td>`}).filter(Boolean);if(r.length===0)return"";const i=r.reduce((h,f,g)=>(g>0&&h.push('<td width="5"> </td>'),h.push(f),h),[]),l=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",s=`<table border="0" cellspacing="0" cellpadding="0"><tr>${i.join("")}</tr></table>`,{style:c,classes:a}=z(t,e,n);return N({align:l,style:c||void 0,className:a.length?a.join(" "):void 0,visibility:o},s,' em-type="social"')}function
|
|
1
|
+
__useblocks__.define("static/core/4c8d0155.js",["require","exports","module","static/core/2ff39ddf.js"],function(Ct,Et,nn){const on=Ct("./2ff39ddf.js");function x(t){const e=new Map;return t&&t.split(";").map(n=>n.trim()).filter(Boolean).forEach(n=>{const o=n.indexOf(":");if(o===-1)return;const r=n.slice(0,o).trim().toLowerCase(),i=n.slice(o+1).trim();r&&e.set(r,i)}),e}function R(t){return t.replace(/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])(?![0-9a-fA-F])/g,(e,n,o,r)=>`#${n}${n}${o}${o}${r}${r}`)}function P(t){return Array.from(t.entries()).filter(([,e])=>e!==""&&e!=null).map(([e,n])=>`${e}: ${R(n)};`).join(" ")}function E(t){const e=o=>{if(!o)return null;const r=/^(-?\d+(?:\.\d+)?)px$/.exec(o.trim());return r?Math.round(parseFloat(r[1])):/^0$/.test(o.trim())?0:null},n=t.get("padding");if(n){const o=n.trim().split(/\s+/);if(o.length===1){const r=e(o[0]);return{top:r,right:r,bottom:r,left:r}}if(o.length===2){const r=e(o[0]),i=e(o[1]);return{top:r,right:i,bottom:r,left:i}}if(o.length===3)return{top:e(o[0]),right:e(o[1]),bottom:e(o[2]),left:e(o[1])};if(o.length===4)return{top:e(o[0]),right:e(o[1]),bottom:e(o[2]),left:e(o[3])}}return{top:e(t.get("padding-top")),right:e(t.get("padding-right")),bottom:e(t.get("padding-bottom")),left:e(t.get("padding-left"))}}function T(t,e){return t==null&&e==null?null:(t??0)+(e??0)}function Pt(t,e){return{top:T(t.top,e.top),right:T(t.right,e.right),bottom:T(t.bottom,e.bottom),left:T(t.left,e.left)}}function Q(t,e,n){if(!e&&!n)return;const o=E(t),r=o.top??0,i=(o.right??0)+n,l=o.bottom??0,s=(o.left??0)+e;t.delete("padding"),t.delete("padding-top"),t.delete("padding-right"),t.delete("padding-bottom"),t.delete("padding-left"),t.set("padding",`${r}px ${i}px ${l}px ${s}px`)}function Ft(t){const e=t.top??0,n=t.right??0,o=t.bottom??0,r=t.left??0;return e===0&&n===0&&o===0&&r===0?"":`padding: ${e}px ${n}px ${o}px ${r}px;`}function L(t,e){if(t)return x(t.getAttribute("style")).get(e.toLowerCase())}function F(t){if(!t)return null;const e=t.getAttribute("width");if(e){const o=e.trim();if(/^\d+(\.\d+)?$/.test(o))return Math.round(parseFloat(o));const r=/^(\d+(?:\.\d+)?)px$/i.exec(o);if(r)return Math.round(parseFloat(r[1]))}const n=L(t,"width")??L(t,"max-width");if(n){const o=/^(\d+(?:\.\d+)?)px$/i.exec(n.trim());if(o)return Math.round(parseFloat(o[1]))}return null}function Mt(t,e){const n=F(t);if(n!=null)return n;const o=t.getAttribute("width")?.trim()??"",r=/^(\d+(?:\.\d+)?)%$/.exec(o);return r?Math.round(parseFloat(r[1])/100*e):e}function y(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Tt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var Lt=["font-family","font-size","font-weight","font-style","line-height","letter-spacing","color","direction","text-decoration","text-transform"];function Nt(...t){const e=new Map;return Lt.forEach(n=>{for(const o of t){const r=o?.get(n);if(r!=null&&r!==""){e.set(n,r);break}}}),e}function Bt(t){if(!t)return null;const e=/^(-?\d+(?:\.\d+)?)px$/i.exec(t.trim());return e?parseFloat(e[1]):null}function Rt(t){const e=t.get("line-height")?.trim();if(!e||e==="normal"||e==="inherit")return;const n=/^(-?\d+(?:\.\d+)?)px$/i.exec(e);if(n){t.set("line-height",`${Math.round(parseFloat(n[1]))}px`);return}const o=Bt(t.get("font-size"));if(o==null)return;const r=/^(\d+(?:\.\d+)?)%$/.exec(e);if(r){t.set("line-height",`${Math.round(o*parseFloat(r[1])/100)}px`);return}const i=/^(\d+(?:\.\d+)?)em$/i.exec(e);if(i){t.set("line-height",`${Math.round(o*parseFloat(i[1]))}px`);return}const l=/^(\d+(?:\.\d+)?)$/.exec(e);l&&t.set("line-height",`${Math.round(o*parseFloat(l[1]))}px`)}function zt(t){const e=t.get("letter-spacing")?.trim();e!=null&&(/^-?(?:\d+(?:\.\d+)?|\.\d+)/.test(e)||t.delete("letter-spacing"))}function Ht(t,e){[t,...Array.from(t.querySelectorAll("[style]"))].forEach(n=>{const o=n.getAttribute("style");if(!o||!o.toLowerCase().includes(e.toLowerCase()))return;const r=x(o);if(!r.has(e))return;r.delete(e);const i=P(r);i?n.setAttribute("style",i):n.removeAttribute("style")})}function qt(t){t.get("direction")?.trim().toLowerCase()==="ltr"&&t.delete("direction")}function It(...t){for(const e of t){const n=e?.get("text-align");if(n)return n}}function tt(t){const e=t?/^(\d+(?:\.\d+)?)px$/.exec(t.trim()):null;return e?Math.round(parseFloat(e[1])):null}function et(t,e){const n=tt(t.get(`margin-${e}`));if(n!=null)return n;const o=t.get("margin");if(!o)return null;const r=o.trim().split(/\s+/);return tt(r[e==="top"||r.length<3?0:2])}function jt(t){return et(t,"top")}function Ot(t){return et(t,"bottom")}var D={top:null,right:null,bottom:null,left:null};function Wt(){return{padPadding:{top:null,right:null,bottom:null,left:null},divFontSize:null,divLineHeight:null,divTextAlign:null,btnFontSize:null,btnLineHeight:null,btnWidthPerc:null,spacerHeight:null}}function G(t){if(!t)return null;const e=/^(-?\d+(?:\.\d+)?)px$/i.exec(t.trim());if(e)return Math.round(parseFloat(e[1]));const n=/^(-?\d+(?:\.\d+)?)$/.exec(t.trim());return n?Math.round(parseFloat(n[1])):null}function Dt(t){if(!t)return null;const e=/^(\d+(?:\.\d+)?)%$/.exec(t.trim());return e?Math.round(parseFloat(e[1])):null}function Gt(t){const e=t?.trim().toLowerCase();return e==="left"||e==="center"||e==="right"?e:null}function nt(t,e){let n=0;for(let o=e;o<t.length;o+=1)if(t[o]==="{")n+=1;else if(t[o]==="}"&&(n-=1,n===0))return o;return-1}function U(t,e){["top","right","bottom","left"].forEach(n=>{e[n]!=null&&(t[n]=e[n])})}function Ut(t){const e=x(t.replace(/!important/gi,"")),n=["padding","padding-top","padding-right","padding-bottom","padding-left"].some(o=>e.has(o));return{padding:n?E(e):{...D},hasPadding:n,fontSize:G(e.get("font-size")),lineHeight:G(e.get("line-height")),textAlign:Gt(e.get("text-align")),widthPerc:Dt(e.get("width")),height:G(e.get("height"))}}function Vt(t,e){const n=t.blocks.get(e);if(n)return n;const o=Wt();return t.blocks.set(e,o),o}function Zt(t,e,n){const o=/\.row-(\d+)\b/.exec(t);if(!o)return;const r=o[1],i=/\.column-(\d+)\b/.exec(t),l=/\.block-(\d+)\b/.exec(t);if(t.includes(".row-content")&&!i&&!l){if(e.hasPadding){const b=n.rowContentPadding.get(r)??{...D};U(b,e.padding),n.rowContentPadding.set(r,b)}return}if(i&&!l&&!t.includes(".row-content")){if(e.hasPadding){const b=`${r}|${i[1]}`,d=n.columnPadding.get(b)??{...D};U(d,e.padding),n.columnPadding.set(b,d)}return}if(!i||!l)return;const s=Vt(n,`${r}|${i[1]}|${l[1]}`),c=/td\.pad\s*>\s*div/.test(t)||/\bh[1-6]\b/.test(t),a=/\.button\b/.test(t),h=/\bspan\b/.test(t),f=/\.spacer_block\b/.test(t),g=/td\.pad\b/.test(t);if(f){e.height!=null&&(s.spacerHeight=e.height);return}if(c){e.fontSize!=null&&(s.divFontSize=e.fontSize),e.lineHeight!=null&&(s.divLineHeight=e.lineHeight),e.textAlign!=null&&(s.divTextAlign=e.textAlign);return}if(h){e.fontSize!=null&&(s.btnFontSize=e.fontSize),e.lineHeight!=null&&(s.btnLineHeight=e.lineHeight);return}if(a){e.widthPerc!=null&&(s.btnWidthPerc=e.widthPerc);return}g&&e.hasPadding&&U(s.padPadding,e.padding)}function Kt(t,e){let n=0;for(;n<t.length;){const o=t.indexOf("{",n);if(o===-1)break;const r=t.slice(n,o).trim(),i=nt(t,o);if(i===-1)break;const l=t.slice(o+1,i);if(!r.startsWith("@")){const s=Ut(l);r.split(",").forEach(c=>Zt(c.trim(),s,e))}n=i+1}}function Yt(t){const e={rowContentPadding:new Map,columnPadding:new Map,blocks:new Map},n=Array.from(t.querySelectorAll("style")).map(r=>r.textContent??"").join(`
|
|
2
|
+
`);let o=0;for(;o<n.length;){const r=n.indexOf("@media",o);if(r===-1)break;const i=n.indexOf("{",r);if(i===-1)break;const l=n.slice(r,i),s=nt(n,i);if(s===-1)break;/max-width|max-device-width/i.test(l)&&Kt(n.slice(i+1,s),e),o=s+1}return e}function ot(t,e){if(!t)return[];const n=["top","right","bottom","left"],o=[];return n.forEach(r=>{const i=t[r];i!=null&&i!==(e[r]??0)&&o.push(`em-mob-padding_${r}-${i}`)}),o}function Xt(t){const e=/\bblock-(\d+)\b/.exec(t.getAttribute("class")??""),n=t.closest("td.column"),o=n?/\bcolumn-(\d+)\b/.exec(n.getAttribute("class")??""):null,r=t.closest("table.row"),i=r?/\brow-(\d+)\b/.exec(r.getAttribute("class")??""):null;return!i||!o||!e?null:`${i[1]}|${o[1]}|${e[1]}`}var Jt="em-show-td-mobile",Qt="em-show-td-desktop";function rt(t){const e=t.getAttribute("class")??"";return/\bdesktop_hide\b/.test(e)?"mobile":/\bmobile_hide\b/.test(e)?"desktop":"all"}function te(t){return t==="mobile"?{className:Jt,inlineStyle:"display: none;",wrapNonMso:!0}:t==="desktop"?{className:Qt,inlineStyle:"",wrapNonMso:!1}:{className:"",inlineStyle:"",wrapNonMso:!1}}var it="-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif";function lt(t,e){if(!e)return null;const n=(t.get("font-style")??"").toLowerCase().includes("italic"),o=e.register(t.get("font-family"),t.get("font-weight"),n);return o?(t.set("font-family",o.fallback),o.emClass):null}function ee(t){const e=t.closest("table")?.getAttribute("cellpadding");if(e==null)return null;const n=parseInt(e.trim(),10);return Number.isFinite(n)?n:null}function st(t,e){const n=E(e),o=ee(t);return o==null?n:{top:n.top??o,right:n.right??o,bottom:n.bottom??o,left:n.left??o}}function at(t,e){return t==null?null:(e??0)+t}function ne(t){const e=t.top??0,n=t.right??0,o=t.bottom??0,r=t.left??0;return e===0&&n===0&&o===0&&r===0?"":`padding: ${e}px ${n}px ${o}px ${r}px;`}function ct(t,e,n){const o=n?.left??0,r=n?.right??0,i=n?.mobileLeft??o,l=n?.mobileRight??r,s=t.top??0,c=(t.right??0)+r,a=t.bottom??0,h=(t.left??0)+o,f=[],g=(b,d,w)=>{d!==w&&f.push(`em-mob-padding_${b}-${d}`)};return e?.top!=null&&g("top",e.top,s),e?.bottom!=null&&g("bottom",e.bottom,a),(e?.left!=null||i!==o)&&g("left",(e?.left??t.left??0)+i,h),(e?.right!=null||l!==r)&&g("right",(e?.right??t.right??0)+l,c),{style:ne({top:s,right:c,bottom:a,left:h}),classes:f}}function N(t,e,n=""){const o=[];t.align&&o.push(`align="${y(t.align)}"`),t.valign&&o.push(`valign="${y(t.valign)}"`),t.width&&o.push(`width="${y(t.width)}"`),t.height&&o.push(`height="${y(t.height)}"`),t.className&&o.push(`class="${y(t.className)}"`);let r=t.style??"";if(t.insetX&&(t.insetX.left||t.insetX.right)){const a=x(r);Q(a,t.insetX.left,t.insetX.right),r=P(a)}r&&o.push(`style="${y(r)}"`);const i=o.length?` ${o.join(" ")}`:"",l=["em-mob-width-100perc"];let s="";t.visibility==="desktop"?l.push("em-show-table-desktop"):t.visibility==="mobile"&&(l.push("em-show-table-mobile"),s=' style="display: none;"');const c=`<table cellpadding="0" cellspacing="0" border="0" width="100%" class="${l.join(" ")}"${s} em="atom"${n}><tr><td${i}>${e}</td></tr></table>`;return t.visibility==="mobile"?`<!--[if !mso]><!-->${c}<!--<![endif]-->`:c}function ut(t){return t.querySelector("td.pad")??t.querySelector("td")}function j(t,e){if(!e)return;const n=Xt(t);return n?e.blocks.get(n):void 0}function z(t,e,n,o){const r=ut(t),i=r?st(r,x(r.getAttribute("style"))):{top:null,right:null,bottom:null,left:null},l=i.top==null&&i.right==null&&i.bottom==null&&i.left==null,s=j(t,e);return ct(o&&l?o:i,s?.padPadding,n)}function oe(t){if(!t)return[];const e=[];return t.divFontSize!=null&&e.push(`em-mob-font_size-${t.divFontSize}px`),t.divLineHeight!=null&&e.push(`em-mob-line_height-${t.divLineHeight}px`),e}var O="p, h1, h2, h3, h4, h5, h6",dt="data-em-text-run",re=`${O}, [${dt}]`;function ie(t){const e=t;return t.nodeType===1&&e.querySelector(O)!=null}function le(t){return t.map(e=>e.textContent??"").join("").replace(/\u00a0/g," ").trim()!==""?!0:t.some(e=>{const n=e;return e.nodeType===1&&(n.matches("img")||n.querySelector("img")!=null)})}function se(t){const e=t.ownerDocument;if(!e)return;const n=o=>{let r=[];const i=()=>{const l=r;if(r=[],l.length===0||!le(l))return;const s=e.createElement("div");s.setAttribute(dt,""),o.insertBefore(s,l[0]),l.forEach(c=>s.appendChild(c))};Array.from(o.childNodes).forEach(l=>{if(l.nodeType===1&&l.matches(O)){i();return}if(ie(l)){i(),n(l);return}r.push(l)}),i()};n(t)}function ft(t,e){let n=t;for(;n;){const o=Array.from(n.classList).find(r=>r.startsWith("em-font-"));if(o)return o;if(n===e)return null;n=n.parentElement}return null}function ae(t,e){let n=t.parentElement;for(;n&&n!==e;){const o=x(n.getAttribute("style"));if(o.get("font-family")||o.get("font-size")||o.get("color"))return o;n=n.parentElement}return new Map}function ce(t,e,n,o,r){const i=ut(t);if(!i)return"";const l=x(i.getAttribute("style")),s=st(i,l),c=i.getAttribute("align")??void 0,a=j(t,e),h=oe(a);i.querySelector(O)&&se(i);let f=Array.from(i.querySelectorAll(re));if(f.length===0){const d=i.querySelector("div");d&&(d.textContent??"").trim()!==""?f=[d]:(i.textContent??"").trim()!==""&&(f=[i])}if(f.length===0)return"";const g=/\bheading_block\b/.test(t.getAttribute("class")??""),b=f.length;return f.map((d,w)=>{const m=x(d.getAttribute("style")),u=ae(d,i),p=Nt(m,u,l);g&&!p.get("font-weight")&&p.set("font-weight","700"),p.get("font-family")||p.set("font-family",it),Rt(p),zt(p),qt(p);const A=lt(p,n)??ft(d,i),_=It(m,u,l)??d.getAttribute("align")??c??"left",C=jt(m),$=Ot(m),k={top:T(C,w===0?s.top:null),right:s.right,bottom:T($,w===b-1?s.bottom:null),left:s.left};Ht(d,"word-break");const v=d.innerHTML.trim(),B=A?[...h,A]:h,H=`<div${B.length?` class="${B.join(" ")}"`:""} style="${P(p)}">${v}</div>`,{style:q,classes:I}=ct(k,{top:w===0?at(a?.padPadding.top,C):null,right:a?.padPadding.right??null,bottom:w===b-1?at(a?.padPadding.bottom,$):null,left:a?.padPadding.left??null},o),M=[...I];return a?.divTextAlign!=null&&M.push(`em-mob-text_align-${a.divTextAlign}`),N({align:_??void 0,style:q||void 0,className:M.length?M.join(" "):void 0,visibility:r},H)}).join(`
|
|
3
|
+
`)}function ue(t,e,n,o){const r=t.querySelector("img");if(!r)return"";const i=r.getAttribute("src")??"";if(!i)return"";const l=r.getAttribute("alt")??"",s=r.getAttribute("width"),c=x(r.getAttribute("style")),a=r.closest('div[style*="max-width"]'),h=a?L(a,"max-width"):c.get("max-width"),f=new Map;f.set("display","block"),f.set("width","100%"),h&&f.set("max-width",h);const g=c.get("border-radius");g&&f.set("border-radius",g);const b=r.getAttribute("title")??"",d=`<img src="${y(i)}"${s?` width="${y(s)}"`:""} border="0" alt="${y(l)}"${b?` title="${y(b)}"`:""} style="${P(f)}">`,w=r.closest("a")?.getAttribute("href"),m=w?`<a href="${y(w)}" target="_blank">${d}</a>`:d,u=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",{style:p,classes:A}=z(t,e,n);return N({align:u,style:p||void 0,className:A.length?A.join(" "):void 0,visibility:o},m)}function V(t,e){for(const n of t){const o=L(n,e);if(o)return o}}function de(t,e){const n=t.querySelector("span.button");if(n)return n;if(x(e.getAttribute("style")).has("background-color"))return e;const o=Array.from(e.querySelectorAll("div, span")).find(r=>x(r.getAttribute("style")).has("background-color"));return o||(Array.from(e.children).find(r=>/^(?:div|span)$/i.test(r.tagName))??e)}function fe(t,e){let n=E(e);return n.top!=null&&n.right!=null&&n.bottom!=null&&n.left!=null||Array.from(t.querySelectorAll("span, div")).forEach(o=>{const r=E(x(o.getAttribute("style")));n={top:n.top??r.top,right:n.right??r.right,bottom:n.bottom??r.bottom,left:n.left??r.left}}),n}function he(t){const e=(t.get("width")??"").trim();if(e===""||e==="auto")return"";const n=/^(\d+(?:\.\d+)?)px$/.exec(e);return n?` width="${n[1]}"`:/^\d+(?:\.\d+)?%$/.test(e)?` width="${e}"`:""}function ge(t){const e=[],n=o=>{Array.from(o.childNodes).forEach(r=>{if(r.nodeType===Node.TEXT_NODE){e.push(Tt((r.textContent??"").replace(/\s+/g," ")));return}if(r instanceof Element){if(r.tagName.toLowerCase()==="br"){e.push("<br>");return}n(r)}})};return n(t),e.join("").replace(/ *<br> */g,"<br>").replace(/^(?:<br>)+|(?:<br>)+$/g,"").trim()||"Button"}function me(t,e,n,o,r){const i=t.querySelector("a[href]");if(!i)return"";const l=i.getAttribute("href")??"",s=de(t,i),c=x(s.getAttribute("style")),a=Array.from(s.querySelectorAll("span")),h=j(t,e),f=R(c.get("background-color")??"#1C52DC"),g=R(c.get("color")??"#FFFFFF"),b=c.get("border-radius")??"5px",d=c.get("font-size")??V(a,"font-size")??"16px",w=c.get("font-family")??it,m=c.get("font-weight")??V(a,"font-weight"),u=fe(s,c),p=u.top!=null||u.right!=null||u.bottom!=null||u.left!=null?`${u.top??0}px ${u.right??0}px ${u.bottom??0}px ${u.left??0}px`:"10px 20px",A=V(a,"line-height")??c.get("line-height")??`${parseInt(d,10)+12}px`,_=ge(s),C=new Map;f&&f!=="transparent"&&C.set("background-color",f),C.set("border-radius",b);const $=new Map;$.set("display","block"),$.set("font-family",w),m&&$.set("font-weight",m),$.set("color",g),$.set("font-size",d),$.set("line-height",A),$.set("padding",p),$.set("text-decoration","none"),c.get("white-space")==="nowrap"&&$.set("white-space","nowrap");const k=lt($,n)??ft(s,t),v=[];k&&v.push(k),h?.btnFontSize!=null&&v.push(`em-mob-font_size-${h.btnFontSize}px`),h?.btnLineHeight!=null&&v.push(`em-mob-line_height-${h.btnLineHeight}px`);const B=v.length?` class="${v.join(" ")}"`:"",H=h?.btnWidthPerc!=null?` class="em-mob-width-${h.btnWidthPerc}perc"`:"",q=`<table cellpadding="0" cellspacing="0" border="0"${he(c)}${H}><tr><td align="center" valign="middle"${f&&f!=="transparent"?` bgcolor="${y(R(f))}"`:""} style="${P(C)}"><a href="${y(l)}" target="_blank"${B} style="${P($)}">${_}</a></td></tr></table>`,I=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",{style:M,classes:W}=z(t,e,o,{top:10,right:null,bottom:10,left:null});return N({align:I,style:M||void 0,className:W.length?W.join(" "):void 0,visibility:r},q)}function pe(t,e,n,o){const r=t.querySelector(".divider_inner")??t.querySelector('td[style*="border-top"]'),i=L(r,"border-top")??"1px solid #BFBFBF",{style:l,classes:s}=z(t,e,n,{top:20,right:null,bottom:null,left:null});return N({height:"0",style:`${l}${l?" ":""}border-top: ${i};`,className:s.length?s.join(" "):void 0,visibility:o}," ")}function be(t,e,n,o){const r=t.matches(".spacer_block")?t:t.querySelector(".spacer_block"),i=r?L(r,"height"):void 0,l=i?parseInt(i,10):NaN;if(!Number.isFinite(l)||l<=0)return"";const s=j(t,e),c=[];s?.spacerHeight!=null&&s.spacerHeight!==l&&c.push(`em-mob-height-${s.spacerHeight}px`);const{style:a,classes:h}=z(t,e,n);return c.push(...h),N({height:String(l),style:a||void 0,className:c.length?c.join(" "):void 0,visibility:o},"")}function we(t,e,n,o){const r=Array.from(t.querySelectorAll("a")).map(h=>{const f=h.getAttribute("href")??"",g=h.querySelector("img");if(!g)return"";const b=g.getAttribute("src")??"",d=g.getAttribute("width")??"40",w=g.getAttribute("alt")??"",m=g.getAttribute("title")??"",u=Math.round(parseFloat(d))||40,p=Math.round(parseFloat(g.getAttribute("height")??""))||null,A=p?` height="${p}"`:"",_=p?"":"height:auto;";return`<td><a href="${y(f)}" target="_blank"><img src="${y(b)}" width="${u}"${A} border="0" alt="${y(w)}"${m?` title="${y(m)}"`:""} style="display:block;${_}"></a></td>`}).filter(Boolean);if(r.length===0)return"";const i=r.reduce((h,f,g)=>(g>0&&h.push('<td width="5"> </td>'),h.push(f),h),[]),l=(t.querySelector(".alignment")??t.querySelector("[align]"))?.getAttribute("align")??"center",s=`<table border="0" cellspacing="0" cellpadding="0"><tr>${i.join("")}</tr></table>`,{style:c,classes:a}=z(t,e,n);return N({align:l,style:c||void 0,className:a.length?a.join(" "):void 0,visibility:o},s,' em-type="social"')}function Z(t,e,n,o){const r=t.getAttribute("class")??"",i=rt(t);return/\bheading_block\b/.test(r)||/\bparagraph_block\b/.test(r)||/\btext_block\b/.test(r)?ce(t,e,n,o,i):/\bimage_block\b/.test(r)?ue(t,e,o,i):/\bbutton_block\b/.test(r)?me(t,e,n,o,i):/\bdivider_block\b/.test(r)?pe(t,e,o,i):/\bspacer_block\b/.test(r)?be(t,e,o,i):/\bsocial_block\b/.test(r)?we(t,e,o,i):""}function ye(t){const e=[];return Array.from(t.children).forEach(n=>{n.tagName.toLowerCase()==="tbody"?e.push(...Array.from(n.children)):e.push(n)}),e.filter(n=>n.tagName.toLowerCase()==="tr")}function ht(t){return ye(t).find(e=>/\bem-structure\b/.test(e.getAttribute("class")??""))??null}function xe(t){return/\brow-content\b/.test(t.getAttribute("class")??"")}function $e(t){return t.tagName.toLowerCase()!=="table"||t.getAttribute("em")!=="block"||xe(t)?!1:ht(t)!==null}function gt(t){const e=ht(t);if(!e)return null;const n=Array.from(e.children).filter(o=>o.tagName.toLowerCase()==="td");return n.length===0?null:`<tr em="block">${n.map(o=>o.outerHTML).join("")}</tr>`}var rn=".paragraph_block, .text_block, .heading_block, .image_block, .button_block, .divider_block, .spacer_block, .social_block";function Ae(t){return t.tagName.toLowerCase()==="table"&&/\brow-content\b/.test(t.getAttribute("class")??"")}function Se(t){return Ae(t)?"row-content":$e(t)?"em-block":t.matches(".paragraph_block, .text_block, .heading_block, .image_block, .button_block, .divider_block, .spacer_block, .social_block")?"beefree-block":null}function K(t){return(t.textContent??"").trim()!==""||t.querySelector("img")!==null}function ke(t){return t.tagName.toLowerCase()!=="table"?!1:K(t)}function mt(t,e){return(t.getAttribute("class")??"").split(/\s+/).includes(e)}function ve(t){return t.tagName.toLowerCase()==="table"&&(mt(t,"row")||mt(t,"row-content"))}function _e(t,e){let n=e;for(;n&&n.parentElement!==t;)n=n.parentElement;return n}function Ce(t){if(t)for(let e=0;e<8;e+=1){const n=new Map;let o=!1;if(Array.from(t.querySelectorAll("table")).forEach(r=>{if(!ve(r)||!r.parentElement?.closest("table.row-content"))return;const i=_e(t,r);!i||i===r||((n.get(i)??i).insertAdjacentElement("afterend",r),n.set(i,r),o=!0)}),!o)return}}function Ee(t){const e=[];if(!t)return e;const n=o=>{if(o.matches(".preheader"))return;const r=Se(o);if(r){e.push({kind:r,element:o});return}const i=e.length;Array.from(o.children).forEach(n),e.length===i&&ke(o)&&e.push({kind:"unknown",element:o})};return Array.from(t.children).forEach(n),e}var Pe=/^\.(em-mob-[A-Za-z0-9_-]+)$/,pt=/([^{}]+)\{([^{}]*)\}/g;function Fe(t){return t.split(";").map(e=>e.trim()).filter(e=>e!=="").map(e=>` ${e};`).join(`
|
|
4
4
|
`)}function Me(t){const e=new Map;return t.querySelectorAll('style[em="styles"]').forEach(n=>{const o=n.textContent??"";let r;for(pt.lastIndex=0;(r=pt.exec(o))!==null;){const i=r[1].trim(),l=Pe.exec(i);if(!l||e.has(l[1]))continue;const s=Fe(r[2]);s!==""&&e.set(l[1],s)}}),e}var bt={Thin:"100","Thin Italic":"100i",ExtraLight:"200","ExtraLight Italic":"200i",Light:"300","Light Italic":"300i",Regular:"400","Regular Italic":"400i",Medium:"500","Medium Italic":"500i",SemiBold:"600","SemiBold Italic":"600i",Bold:"700","Bold Italic":"700i",ExtraBold:"800","ExtraBold Italic":"800i",Black:"900","Black Italic":"900i"},Te={"Sans Serif":"sans-serif",Serif:"serif"},Le={100:"Thin",200:"ExtraLight",300:"Light",400:"Regular",500:"Medium",600:"SemiBold",700:"Bold",800:"ExtraBold",900:"Black"};function Y(t){return t.replace(/\s+/g," ").trim().toLowerCase()}function wt(t){return(t.split(",")[0]??"").trim().replace(/^['"]/,"").replace(/['"]$/,"").trim()}function yt(t){const e=t.split(",").map(n=>n.trim().replace(/^['"]|['"]$/g,"").toLowerCase());return e.includes("serif")&&!e.includes("sans-serif")?"Serif":"Sans Serif"}function xt(t,e){let n=(t??"").trim().toLowerCase();n==="bold"?n="700":(n==="normal"||n==="")&&(n="400");const o=Le[n]??"Regular";return e?`${o} Italic`:o}function Ne(t,e){return`em-font-${t.replace(/\s/g,"")}-${e.replace(/\s/g,"")}`}function $t(t){const e=[],n=t.split("?")[1];return n&&n.split("&").forEach(o=>{const r=o.indexOf("=");if(r===-1)return;const i=o.slice(0,r),l=o.slice(r+1);if(i!=="family"||!l)return;let s=l;try{s=decodeURIComponent(l.replace(/\+/g," "))}catch{s=l.replace(/\+/g," ")}s.split("|").forEach(c=>{const a=c.split(":")[0].trim();a&&e.push(a)})}),e}function Be(t){const e=new Set;t.querySelectorAll("link[href]").forEach(o=>{const r=o.getAttribute("href")??"";r.includes("fonts.googleapis.com")&&$t(r).forEach(i=>e.add(Y(i)))});const n=/@import\s+(?:url\(\s*)?['"]?(https?:\/\/fonts\.googleapis\.com\/[^'")\s]+)/g;return t.querySelectorAll("style").forEach(o=>{const r=o.textContent??"";let i;for(;(i=n.exec(r))!==null;)$t(i[1]).forEach(l=>e.add(Y(l)))}),e}function Re(t,e){const n=new RegExp(`(?:^|;)\\s*${e}\\s*:([^;]+)`,"i").exec(t)?.[1];return n?n.replace(/!important/gi,"").trim():void 0}function ze(t){const e=new Map,n=/([^{}]+)\{([^{}]*)\}/g;t.querySelectorAll("style").forEach(r=>{const i=r.textContent??"";let l;for(n.lastIndex=0;(l=n.exec(i))!==null;){const s=l[2];l[1].split(",").forEach(c=>{const a=/^\s*\.(em-font-[A-Za-z0-9_-]+)\s*$/.exec(c);if(!a)return;const h=e.get(a[1])??new Map;["font-family","font-weight","font-style"].forEach(f=>{const g=Re(s,f);g&&h.set(f,g)}),e.set(a[1],h)})}});const o=new Map;return e.forEach((r,i)=>{const l=r.get("font-family"),s=l?wt(l):"";if(!l||!s)return;const c=(r.get("font-style")??"").toLowerCase().includes("italic");o.set(i,{emClass:i,family:s,variant:xt(r.get("font-weight"),c),category:yt(l)})}),o}var He=class{imported;emFontRules;used=new Map;constructor(t,e=new Map){this.imported=t,this.emFontRules=e}register(t,e,n=!1){if(!t)return null;const o=wt(t);if(!o||!this.imported.has(Y(o)))return null;const r=yt(t),i=xt(e,n),l=Ne(o,i);return this.used.has(l)||this.used.set(l,{emClass:l,family:o,variant:i,category:r}),{emClass:l,fallback:r==="Serif"?'"Times New Roman", Times, serif':"Helvetica, Arial, sans-serif"}}registerEmFontClasses(t){const e=/em-font-[A-Za-z0-9_-]+/g;let n;for(;(n=e.exec(t))!==null;){const o=this.emFontRules.get(n[0]);o&&!this.used.has(o.emClass)&&this.used.set(o.emClass,o)}}get hasFonts(){return this.used.size>0}linkTags(){return Array.from(this.used.values()).map(({emClass:t,family:e,variant:n})=>{const o=bt[n]??"400",r=o.includes("i"),i=o.replace(/i/g,"");return` <link rel="stylesheet" href="${`https://fonts.googleapis.com/css2?family=${e}:ital,wght@${r?"1":"0"},${i}&display=swap`}" em-class="${t}">`}).join(`
|
|
5
5
|
`)}styleRules(){return Array.from(this.used.values()).map(({emClass:t,family:e,variant:n,category:o})=>{const r=bt[n]??"400",i=r.includes("i"),l=r.replace(/i/g,"");let s=`font-family: '${e}', ${Te[o]??"sans-serif"}!important; font-weight: ${l}!important;`;return i&&(s+=" font-style: italic!important;"),` .${t} { ${s} }`})}};function At(t,e){const n=new Set;let o;for(;(o=e.exec(t))!==null;)n.add(o[1]);return Array.from(n).sort((r,i)=>Number(r)-Number(i))}function qe(t){const e=new Set;return t.forEach(n=>{(n.split("{")[0].match(/\.[A-Za-z][A-Za-z0-9_-]*/g)??[]).forEach(o=>e.add(o.slice(1)))}),e}function Ie(t,e,n=[],o=new Map){const r=[];r.push(` .em-narrow-table {
|
|
6
6
|
width: 100%!important;
|
|
@@ -86,6 +86,6 @@ ${l}
|
|
|
86
86
|
</tr>
|
|
87
87
|
</table>
|
|
88
88
|
</body>
|
|
89
|
-
</html>`}var Oe=["background-color","border","border-top","border-right","border-bottom","border-left","border-radius","box-shadow"],We=["padding","padding-top","padding-right","padding-bottom","padding-left"];function St(t,e){const n=new Map;return Oe.forEach(o=>{const r=t.get(o);r&&n.set(o,r)}),e&&We.forEach(o=>{const r=t.get(o);r&&n.set(o,r)}),n}function De(t){const e=t.querySelector(".preheader");if(!e)return"";const n=e.cloneNode(!0);return n.querySelectorAll("vk-snippet-end").forEach(o=>o.remove()),(n.textContent??"").replace(/[\u034F\u200C\u200B\u00AD\uFEFF\u2800]/g,"").replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}function Ge(t){return t.nonWrap?["em-mob-wrap","em-mob-wrap-cancel",`em-mob-width-${t.columnWidthPerc}perc`]:["em-mob-wrap","em-mob-width-100perc"]}function Ue(t,e){const n=t.closest("table.row"),o=n?/\brow-(\d+)\b/.exec(n.getAttribute("class")??""):null,r=/\bcolumn-(\d+)\b/.exec(t.getAttribute("class")??"");if(!(!o||!r))return e.columnPadding.get(`${o[1]}|${r[1]}`)}function Ve(t,e){const n=t?{top:t.top,right:null,bottom:t.bottom,left:null}:void 0,o={top:e.top,right:null,bottom:e.bottom,left:null};return ot(n,o)}function
|
|
90
|
-
`)}function Ye(t,e,n,o,r,i){const l=x(t.getAttribute("style")),s=Mt(t,e),c=St(l,!1),a=
|
|
89
|
+
</html>`}var Oe=["background-color","border","border-top","border-right","border-bottom","border-left","border-radius","box-shadow"],We=["padding","padding-top","padding-right","padding-bottom","padding-left"];function St(t,e){const n=new Map;return Oe.forEach(o=>{const r=t.get(o);r&&n.set(o,r)}),e&&We.forEach(o=>{const r=t.get(o);r&&n.set(o,r)}),n}function De(t){const e=t.querySelector(".preheader");if(!e)return"";const n=e.cloneNode(!0);return n.querySelectorAll("vk-snippet-end").forEach(o=>o.remove()),(n.textContent??"").replace(/[\u034F\u200C\u200B\u00AD\uFEFF\u2800]/g,"").replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}function Ge(t){return t.nonWrap?["em-mob-wrap","em-mob-wrap-cancel",`em-mob-width-${t.columnWidthPerc}perc`]:["em-mob-wrap","em-mob-width-100perc"]}function Ue(t,e){const n=t.closest("table.row"),o=n?/\brow-(\d+)\b/.exec(n.getAttribute("class")??""):null,r=/\bcolumn-(\d+)\b/.exec(t.getAttribute("class")??"");if(!(!o||!r))return e.columnPadding.get(`${o[1]}|${r[1]}`)}function Ve(t,e){const n=t?{top:t.top,right:null,bottom:t.bottom,left:null}:void 0,o={top:e.top,right:null,bottom:e.bottom,left:null};return ot(n,o)}function Ze(t,e){const n=t.querySelector("td.col-pad"),o=E(n?x(n.getAttribute("style")):new Map);return Pt(E(e),o)}function Ke(t,e,n,o){const r=[],i=s=>{s.matches(".paragraph_block, .text_block, .heading_block, .image_block, .button_block, .divider_block, .spacer_block, .social_block")&&r.push(Z(s,e,n,o)),Array.from(s.children).forEach(i)},l=s=>{if(s.matches(".paragraph_block, .text_block, .heading_block, .image_block, .button_block, .divider_block, .spacer_block, .social_block")){r.push(Z(s,e,n,o)),Array.from(s.children).forEach(i);return}if(s.querySelector(".paragraph_block, .text_block, .heading_block, .image_block, .button_block, .divider_block, .spacer_block, .social_block")){Array.from(s.children).forEach(l);return}K(s)&&r.push(s.outerHTML)};return Array.from(t.children).forEach(l),r.filter(s=>s.trim()!=="").join(`
|
|
90
|
+
`)}function Ye(t,e,n,o,r,i){const l=x(t.getAttribute("style")),s=Mt(t,e),c=St(l,!1),a=Ze(t,l),h=Ue(t,n),f={left:a.left??0,right:a.right??0},g={left:h?.left??null,right:h?.right??null},b={top:a.top,right:null,bottom:a.bottom,left:null},d=i?{left:f.left,right:f.right,mobileLeft:g.left,mobileRight:g.right}:{left:0,right:0},w=[P(c),Ft(b)].filter(Boolean).join(" "),m=Ke(t,n,o,d),u=[...Ge(r),...Ve(h,a)],p=w?` style="${y(w)}"`:"";return{cellHtml:`<td width="${s}" valign="top" class="${u.join(" ")}"${p}>${m||" "}</td>`,hasContent:m.trim()!=="",hoistedHorizontal:i?{left:0,right:0,mobileLeft:null,mobileRight:null}:{left:f.left,right:f.right,mobileLeft:g.left,mobileRight:g.right}}}function kt(t,e){return`<td width="${t}" class="em-mob-wrap${e.nonWrap?" em-mob-wrap-cancel":""} em-mob-height-${t}px"> </td>`}function Xe(t,e){const n=t.querySelector("table");return kt(F(n)??F(t)??0,e)}function Je(t,e,n){const o=t.closest("table.row"),r=x(t.getAttribute("style"));if(o&&!r.has("background-color")){const S=x(o.getAttribute("style")).get("background-color")??o.getAttribute("bgcolor")??"";S&&S!=="transparent"&&r.set("background-color",S)}const i=F(t)??660,l=Array.from(t.querySelectorAll("td.column")).filter(S=>!/\bgap\b/.test(S.getAttribute("class")??""));if(l.length===0){const S=gt(t);return S?{html:S,width:i}:null}const s=/\bstack\b/.test(t.getAttribute("class")??""),c=l.length>1,a=!s&&c,h={nonWrap:a,columnWidthPerc:a?Math.round(100/l.length)-2:100},f=l[0].parentElement,g=f?Array.from(f.children):l,b=[];let d=!1,w=!1,m={left:0,right:0,mobileLeft:null,mobileRight:null};if(g.forEach(S=>{if(!(S instanceof Element)||S.tagName.toLowerCase()!=="td")return;const X=S.getAttribute("class")??"";if(/\bcolumn\b/.test(X)&&/\bgap\b/.test(X))b.push(Xe(S,h)),w=!1;else if(/\bcolumn\b/.test(X)){w&&b.push(kt(0,h));const J=Ye(S,i,e,n,h,c);b.push(J.cellHtml),d=d||J.hasContent,m=J.hoistedHorizontal,w=!0}}),!d)return null;const u=`<table cellpadding="0" cellspacing="0" border="0" class="em-mob-width-100perc"><tr>${b.join("")}</tr></table>`,p=St(r,!0);Q(p,m.left,m.right);const A=P(p),_=o?rt(o):"all",C=te(_),$=o?/\brow-(\d+)\b/.exec(o.getAttribute("class")??""):null,k=$?e.rowContentPadding.get($[1]):void 0,v=E(p),B=(v.left??0)-m.left,H=(v.right??0)-m.right,q={top:k?.top??null,bottom:k?.bottom??null,left:m.mobileLeft!=null?(k?.left??B)+m.mobileLeft:k?.left??null,right:m.mobileRight!=null?(k?.right??H)+m.mobileRight:k?.right??null},I=ot(q,v),M=[C.className,...I].filter(Boolean),W=M.length?` class="${M.join(" ")}"`:"",vt=[A,C.inlineStyle].filter(Boolean).join(" "),_t=`<td${W}${vt?` style="${y(vt)}"`:""}>${u}</td>`;return{html:`<tr em="block">${C.wrapNonMso?`<!--[if !mso]><!-->${_t}<!--<![endif]-->`:_t}</tr>`,width:i}}function Qe(t,e,n,o){const r=Z(t,e,n,{left:0,right:0});return r.trim()===""?null:{html:`<tr em="block"><td>${`<table cellpadding="0" cellspacing="0" border="0" class="em-mob-width-100perc"><tr><td width="${o}" valign="top" class="em-mob-wrap em-mob-width-100perc">${r}</td></tr></table>`}</td></tr>`,width:o}}function tn(t){let e=0;return t.querySelectorAll('table.row-content, table[em="block"]').forEach(n=>{e=Math.max(e,F(n)??0)}),e>0?e:660}function en(t){const e=new DOMParser().parseFromString(t,"text/html"),n=x(e.body?.getAttribute("style")),o=R(n.get("background-color")??"#FFFFFF"),r=De(e),i=(e.querySelector("title")?.textContent??"").trim()||"Email";Ce(e.body);const l=Yt(e),s=new He(Be(e),ze(e)),c=[];let a=0;const h=tn(e);Ee(e.body).forEach(d=>{if(d.kind==="row-content"){const m=Je(d.element,l,s);if(m){c.push(m.html),a=Math.max(a,m.width);return}K(d.element)&&(c.push(`<tr em="block"><td>${d.element.outerHTML}</td></tr>`),a=Math.max(a,F(d.element)??0));return}if(d.kind==="beefree-block"){const m=Qe(d.element,l,s,h);m&&(c.push(m.html),a=Math.max(a,m.width));return}if(d.kind==="unknown"){c.push(`<tr em="block"><td>${d.element.outerHTML}</td></tr>`),a=Math.max(a,F(d.element)??0);return}const w=gt(d.element);w&&(c.push(w),a=Math.max(a,F(d.element)??0))});const f=a>0?a:660,g=c.map(d=>` ${d}`).join(`
|
|
91
91
|
`);s.registerEmFontClasses(g);const b=Ie(g,f,s.styleRules(),Me(e));return je({title:i,preheader:r,outerBackground:o,narrowWidth:f,stylesBlock:b,blocksHtml:g,fontLinks:s.linkTags()})}Et.convertBeeFreeToEmailMaker=en});
|