@gisce/react-ooui 1.1.18 → 1.1.19-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import React__default, { useContext, useState, useEffect, useRef, useLayoutEffect, Component, useCallback, forwardRef, useImperativeHandle } from "react";
3
- import { Tooltip as Tooltip$2, Typography as Typography$1, Form as Form$3, Row, Col, Modal, Button as Button$1, Dropdown, Menu, Spin, Divider, Space, Input as Input$1, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Tabs, Popover, Radio as Radio$1, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
3
+ import { Tooltip as Tooltip$2, Typography as Typography$1, Form as Form$3, Row, Col, Modal, Button as Button$1, Dropdown, Menu, Spin, Divider, Space, Input as Input$1, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Tabs, Popover, message as message$1, Radio as Radio$1, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
4
4
  import { Label as Label$1, Field as Field$2, Container as Container$1, Tree as Tree$1, Selection as Selection$1, Many2one as Many2one$1, Boolean as Boolean$2, parseContext, Form as Form$4, Integer as Integer$1, SearchFilter as SearchFilter$1, transformDomainForChildWidget, graphProcessor, parseGraph, graphFieldUtils } from "@gisce/ooui";
5
5
  import Icon, { QuestionCircleOutlined, ExclamationCircleOutlined as ExclamationCircleOutlined$3, AccountBookFilled, AccountBookOutlined, AccountBookTwoTone, AimOutlined, AlertFilled, AlertOutlined, AlertTwoTone, AlibabaOutlined, AlignCenterOutlined, AlignLeftOutlined, AlignRightOutlined, AlipayCircleFilled, AlipayCircleOutlined, AlipayOutlined, AlipaySquareFilled, AliwangwangFilled, AliwangwangOutlined, AliyunOutlined, AmazonCircleFilled, AmazonOutlined, AmazonSquareFilled, AndroidFilled, AndroidOutlined, AntCloudOutlined, AntDesignOutlined, ApartmentOutlined, ApiFilled, ApiOutlined, ApiTwoTone, AppleFilled, AppleOutlined, AppstoreAddOutlined, AppstoreFilled, AppstoreOutlined, AppstoreTwoTone, AreaChartOutlined, ArrowDownOutlined, ArrowLeftOutlined, ArrowRightOutlined, ArrowUpOutlined, ArrowsAltOutlined, AudioFilled, AudioMutedOutlined, AudioOutlined, AudioTwoTone, AuditOutlined, BackwardFilled, BackwardOutlined, BankFilled, BankOutlined, BankTwoTone, BarChartOutlined, BarcodeOutlined, BarsOutlined, BehanceCircleFilled, BehanceOutlined, BehanceSquareFilled, BehanceSquareOutlined, BellFilled, BellOutlined, BellTwoTone, BgColorsOutlined, BlockOutlined, BoldOutlined, BookFilled, BookOutlined, BookTwoTone, BorderBottomOutlined, BorderHorizontalOutlined, BorderInnerOutlined, BorderLeftOutlined, BorderOuterOutlined, BorderOutlined, BorderRightOutlined, BorderTopOutlined, BorderVerticleOutlined, BorderlessTableOutlined, BoxPlotFilled, BoxPlotOutlined, BoxPlotTwoTone, BranchesOutlined, BugFilled, BugOutlined, BugTwoTone, BuildFilled, BuildOutlined, BuildTwoTone, BulbFilled, BulbOutlined, BulbTwoTone, CalculatorFilled, CalculatorOutlined, CalculatorTwoTone, CalendarFilled, CalendarOutlined, CalendarTwoTone, CameraFilled, CameraOutlined, CameraTwoTone, CarFilled, CarOutlined, CarTwoTone, CaretDownFilled, CaretDownOutlined, CaretLeftFilled, CaretLeftOutlined, CaretRightFilled, CaretRightOutlined, CaretUpFilled, CaretUpOutlined, CarryOutFilled, CarryOutOutlined, CarryOutTwoTone, CheckCircleFilled as CheckCircleFilled$3, CheckCircleOutlined as CheckCircleOutlined$3, CheckCircleTwoTone, CheckOutlined as CheckOutlined$3, CheckSquareFilled, CheckSquareOutlined, CheckSquareTwoTone, ChromeFilled, ChromeOutlined, CiCircleFilled, CiCircleOutlined, CiCircleTwoTone, CiOutlined, CiTwoTone, ClearOutlined, ClockCircleFilled, ClockCircleOutlined, ClockCircleTwoTone, CloseCircleFilled as CloseCircleFilled$3, CloseCircleOutlined as CloseCircleOutlined$3, CloseCircleTwoTone, CloseOutlined as CloseOutlined$3, CloseSquareFilled, CloseSquareOutlined, CloseSquareTwoTone, CloudDownloadOutlined, CloudFilled, CloudOutlined, CloudServerOutlined, CloudSyncOutlined, CloudTwoTone, CloudUploadOutlined, ClusterOutlined, CodeFilled, CodeOutlined, CodeSandboxCircleFilled, CodeSandboxOutlined, CodeSandboxSquareFilled, CodeTwoTone, CodepenCircleFilled, CodepenCircleOutlined, CodepenOutlined, CodepenSquareFilled, CoffeeOutlined, ColumnHeightOutlined, ColumnWidthOutlined, CommentOutlined, CompassFilled, CompassOutlined, CompassTwoTone, CompressOutlined, ConsoleSqlOutlined, ContactsFilled, ContactsOutlined, ContactsTwoTone, ContainerFilled, ContainerOutlined, ContainerTwoTone, ControlFilled, ControlOutlined, ControlTwoTone, CopyFilled, CopyOutlined as CopyOutlined$3, CopyTwoTone, CopyrightCircleFilled, CopyrightCircleOutlined, CopyrightCircleTwoTone, CopyrightOutlined, CopyrightTwoTone, CreditCardFilled, CreditCardOutlined, CreditCardTwoTone, CrownFilled, CrownOutlined, CrownTwoTone, CustomerServiceFilled, CustomerServiceOutlined, CustomerServiceTwoTone, DashOutlined, DashboardFilled, DashboardOutlined, DashboardTwoTone, DatabaseFilled, DatabaseOutlined, DatabaseTwoTone, DeleteColumnOutlined, DeleteFilled, DeleteOutlined, DeleteRowOutlined, DeleteTwoTone, DeliveredProcedureOutlined, DeploymentUnitOutlined, DesktopOutlined, DiffFilled, DiffOutlined, DiffTwoTone, DingdingOutlined, DingtalkCircleFilled, DingtalkOutlined, DingtalkSquareFilled, DisconnectOutlined, DislikeFilled, DislikeOutlined, DislikeTwoTone, DollarCircleFilled, DollarCircleOutlined, DollarCircleTwoTone, DollarOutlined, DollarTwoTone, DotChartOutlined, DoubleLeftOutlined, DoubleRightOutlined, DownCircleFilled, DownCircleOutlined, DownCircleTwoTone, DownOutlined, DownSquareFilled, DownSquareOutlined, DownSquareTwoTone, DownloadOutlined, DragOutlined, DribbbleCircleFilled, DribbbleOutlined, DribbbleSquareFilled, DribbbleSquareOutlined, DropboxCircleFilled, DropboxOutlined, DropboxSquareFilled, EditFilled, EditOutlined as EditOutlined$3, EditTwoTone, EllipsisOutlined, EnterOutlined as EnterOutlined$3, EnvironmentFilled, EnvironmentOutlined, EnvironmentTwoTone, EuroCircleFilled, EuroCircleOutlined, EuroCircleTwoTone, EuroOutlined, EuroTwoTone, ExceptionOutlined, ExclamationCircleFilled as ExclamationCircleFilled$3, ExclamationCircleTwoTone, ExclamationOutlined, ExpandAltOutlined, ExpandOutlined, ExperimentFilled, ExperimentOutlined, ExperimentTwoTone, ExportOutlined, EyeFilled, EyeInvisibleFilled, EyeInvisibleOutlined, EyeInvisibleTwoTone, EyeOutlined, EyeTwoTone, FacebookFilled, FacebookOutlined, FallOutlined, FastBackwardFilled, FastBackwardOutlined, FastForwardFilled, FastForwardOutlined, FieldBinaryOutlined, FieldNumberOutlined, FieldStringOutlined, FieldTimeOutlined, FileAddFilled, FileAddOutlined, FileAddTwoTone, FileDoneOutlined, FileExcelFilled, FileExcelOutlined, FileExcelTwoTone, FileExclamationFilled, FileExclamationOutlined, FileExclamationTwoTone, FileFilled, FileGifOutlined, FileImageFilled, FileImageOutlined, FileImageTwoTone, FileJpgOutlined, FileMarkdownFilled, FileMarkdownOutlined, FileMarkdownTwoTone, FileOutlined, FilePdfFilled, FilePdfOutlined, FilePdfTwoTone, FilePptFilled, FilePptOutlined, FilePptTwoTone, FileProtectOutlined, FileSearchOutlined, FileSyncOutlined, FileTextFilled, FileTextOutlined, FileTextTwoTone, FileTwoTone, FileUnknownFilled, FileUnknownOutlined, FileUnknownTwoTone, FileWordFilled, FileWordOutlined, FileWordTwoTone, FileZipFilled, FileZipOutlined, FileZipTwoTone, FilterFilled, FilterOutlined, FilterTwoTone, FireFilled, FireOutlined, FireTwoTone, FlagFilled, FlagOutlined, FlagTwoTone, FolderAddFilled, FolderAddOutlined, FolderAddTwoTone, FolderFilled, FolderOpenFilled, FolderOpenOutlined, FolderOpenTwoTone, FolderOutlined, FolderTwoTone, FolderViewOutlined, FontColorsOutlined, FontSizeOutlined, ForkOutlined, FormOutlined, FormatPainterFilled, FormatPainterOutlined, ForwardFilled, ForwardOutlined, FrownFilled, FrownOutlined, FrownTwoTone, FullscreenExitOutlined, FullscreenOutlined, FunctionOutlined, FundFilled, FundOutlined, FundProjectionScreenOutlined, FundTwoTone, FundViewOutlined, FunnelPlotFilled, FunnelPlotOutlined, FunnelPlotTwoTone, GatewayOutlined, GifOutlined, GiftFilled, GiftOutlined, GiftTwoTone, GithubFilled, GithubOutlined, GitlabFilled, GitlabOutlined, GlobalOutlined, GoldFilled, GoldOutlined, GoldTwoTone, GoldenFilled, GoogleCircleFilled, GoogleOutlined, GooglePlusCircleFilled, GooglePlusOutlined, GooglePlusSquareFilled, GoogleSquareFilled, GroupOutlined, HddFilled, HddOutlined, HddTwoTone, HeartFilled, HeartOutlined, HeartTwoTone, HeatMapOutlined, HighlightFilled, HighlightOutlined, HighlightTwoTone, HistoryOutlined, HolderOutlined, HomeFilled, HomeOutlined, HomeTwoTone, HourglassFilled, HourglassOutlined, HourglassTwoTone, Html5Filled, Html5Outlined, Html5TwoTone, IdcardFilled, IdcardOutlined, IdcardTwoTone, IeCircleFilled, IeOutlined, IeSquareFilled, ImportOutlined, InboxOutlined, InfoCircleFilled as InfoCircleFilled$3, InfoCircleOutlined as InfoCircleOutlined$3, InfoCircleTwoTone, InfoOutlined, InsertRowAboveOutlined, InsertRowBelowOutlined, InsertRowLeftOutlined, InsertRowRightOutlined, InstagramFilled, InstagramOutlined, InsuranceFilled, InsuranceOutlined, InsuranceTwoTone, InteractionFilled, InteractionOutlined, InteractionTwoTone, IssuesCloseOutlined, ItalicOutlined, KeyOutlined, LaptopOutlined, LayoutFilled, LayoutOutlined, LayoutTwoTone, LeftCircleFilled, LeftCircleOutlined, LeftCircleTwoTone, LeftOutlined, LeftSquareFilled, LeftSquareOutlined, LeftSquareTwoTone, LikeFilled, LikeOutlined, LikeTwoTone, LineChartOutlined, LineHeightOutlined, LineOutlined, LinkOutlined, LinkedinFilled, LinkedinOutlined, Loading3QuartersOutlined, LoadingOutlined as LoadingOutlined$3, LockFilled, LockOutlined, LockTwoTone, LoginOutlined, LogoutOutlined, MacCommandFilled, MacCommandOutlined, MailFilled, MailOutlined, MailTwoTone, ManOutlined, MedicineBoxFilled, MedicineBoxOutlined, MedicineBoxTwoTone, MediumCircleFilled, MediumOutlined, MediumSquareFilled, MediumWorkmarkOutlined, MehFilled, MehOutlined, MehTwoTone, MenuFoldOutlined, MenuOutlined, MenuUnfoldOutlined, MergeCellsOutlined, MessageFilled, MessageOutlined, MessageTwoTone, MinusCircleFilled, MinusCircleOutlined, MinusCircleTwoTone, MinusOutlined, MinusSquareFilled, MinusSquareOutlined, MinusSquareTwoTone, MobileFilled, MobileOutlined, MobileTwoTone, MoneyCollectFilled, MoneyCollectOutlined, MoneyCollectTwoTone, MonitorOutlined, MoreOutlined, NodeCollapseOutlined, NodeExpandOutlined, NodeIndexOutlined, NotificationFilled, NotificationOutlined, NotificationTwoTone, NumberOutlined, OneToOneOutlined, OrderedListOutlined, PaperClipOutlined, PartitionOutlined, PauseCircleFilled, PauseCircleOutlined, PauseCircleTwoTone, PauseOutlined, PayCircleFilled, PayCircleOutlined, PercentageOutlined, PhoneFilled, PhoneOutlined, PhoneTwoTone, PicCenterOutlined, PicLeftOutlined, PicRightOutlined, PictureFilled, PictureOutlined, PictureTwoTone, PieChartFilled, PieChartOutlined, PieChartTwoTone, PlayCircleFilled, PlayCircleOutlined, PlayCircleTwoTone, PlaySquareFilled, PlaySquareOutlined, PlaySquareTwoTone, PlusCircleFilled, PlusCircleOutlined, PlusCircleTwoTone, PlusOutlined, PlusSquareFilled, PlusSquareOutlined, PlusSquareTwoTone, PoundCircleFilled, PoundCircleOutlined, PoundCircleTwoTone, PoundOutlined, PoweroffOutlined, PrinterFilled, PrinterOutlined, PrinterTwoTone, ProfileFilled, ProfileOutlined, ProfileTwoTone, ProjectFilled, ProjectOutlined, ProjectTwoTone, PropertySafetyFilled, PropertySafetyOutlined, PropertySafetyTwoTone, PullRequestOutlined, PushpinFilled, PushpinOutlined, PushpinTwoTone, QqCircleFilled, QqOutlined, QqSquareFilled, QrcodeOutlined, QuestionCircleFilled, QuestionCircleTwoTone, QuestionOutlined, RadarChartOutlined, RadiusBottomleftOutlined, RadiusBottomrightOutlined, RadiusSettingOutlined, RadiusUpleftOutlined, RadiusUprightOutlined, ReadFilled, ReadOutlined, ReconciliationFilled, ReconciliationOutlined, ReconciliationTwoTone, RedEnvelopeFilled, RedEnvelopeOutlined, RedEnvelopeTwoTone, RedditCircleFilled, RedditOutlined, RedditSquareFilled, RedoOutlined, ReloadOutlined, RestFilled, RestOutlined, RestTwoTone, RetweetOutlined, RightCircleFilled, RightCircleOutlined, RightCircleTwoTone, RightOutlined, RightSquareFilled, RightSquareOutlined, RightSquareTwoTone, RiseOutlined, RobotFilled, RobotOutlined, RocketFilled, RocketOutlined, RocketTwoTone, RollbackOutlined, RotateLeftOutlined, RotateRightOutlined, SafetyCertificateFilled, SafetyCertificateOutlined, SafetyCertificateTwoTone, SafetyOutlined, SaveFilled, SaveOutlined, SaveTwoTone, ScanOutlined, ScheduleFilled, ScheduleOutlined, ScheduleTwoTone, ScissorOutlined, SearchOutlined, SecurityScanFilled, SecurityScanOutlined, SecurityScanTwoTone, SelectOutlined, SendOutlined, SettingFilled, SettingOutlined, SettingTwoTone, ShakeOutlined, ShareAltOutlined, ShopFilled, ShopOutlined, ShopTwoTone, ShoppingCartOutlined, ShoppingFilled, ShoppingOutlined, ShoppingTwoTone, ShrinkOutlined, SignalFilled, SisternodeOutlined, SketchCircleFilled, SketchOutlined, SketchSquareFilled, SkinFilled, SkinOutlined, SkinTwoTone, SkypeFilled, SkypeOutlined, SlackCircleFilled, SlackOutlined, SlackSquareFilled, SlackSquareOutlined, SlidersFilled, SlidersOutlined, SlidersTwoTone, SmallDashOutlined, SmileFilled, SmileOutlined, SmileTwoTone, SnippetsFilled, SnippetsOutlined, SnippetsTwoTone, SolutionOutlined, SortAscendingOutlined, SortDescendingOutlined, SoundFilled, SoundOutlined, SoundTwoTone, SplitCellsOutlined, StarFilled, StarOutlined, StarTwoTone, StepBackwardFilled, StepBackwardOutlined, StepForwardFilled, StepForwardOutlined, StockOutlined, StopFilled, StopOutlined, StopTwoTone, StrikethroughOutlined, SubnodeOutlined, SwapLeftOutlined, SwapOutlined, SwapRightOutlined, SwitcherFilled, SwitcherOutlined, SwitcherTwoTone, SyncOutlined, TableOutlined, TabletFilled, TabletOutlined, TabletTwoTone, TagFilled, TagOutlined, TagTwoTone, TagsFilled, TagsOutlined, TagsTwoTone, TaobaoCircleFilled, TaobaoCircleOutlined, TaobaoOutlined, TaobaoSquareFilled, TeamOutlined, ThunderboltFilled, ThunderboltOutlined, ThunderboltTwoTone, ToTopOutlined, ToolFilled, ToolOutlined, ToolTwoTone, TrademarkCircleFilled, TrademarkCircleOutlined, TrademarkCircleTwoTone, TrademarkOutlined, TransactionOutlined, TranslationOutlined, TrophyFilled, TrophyOutlined, TrophyTwoTone, TwitterCircleFilled, TwitterOutlined, TwitterSquareFilled, UnderlineOutlined, UndoOutlined, UngroupOutlined, UnlockFilled, UnlockOutlined, UnlockTwoTone, UnorderedListOutlined, UpCircleFilled, UpCircleOutlined, UpCircleTwoTone, UpOutlined, UpSquareFilled, UpSquareOutlined, UpSquareTwoTone, UploadOutlined, UsbFilled, UsbOutlined, UsbTwoTone, UserAddOutlined, UserDeleteOutlined, UserOutlined, UserSwitchOutlined, UsergroupAddOutlined, UsergroupDeleteOutlined, VerifiedOutlined, VerticalAlignBottomOutlined, VerticalAlignMiddleOutlined, VerticalAlignTopOutlined, VerticalLeftOutlined, VerticalRightOutlined, VideoCameraAddOutlined, VideoCameraFilled, VideoCameraOutlined, VideoCameraTwoTone, WalletFilled, WalletOutlined, WalletTwoTone, WarningFilled, WarningOutlined, WarningTwoTone, WechatFilled, WechatOutlined, WeiboCircleFilled, WeiboCircleOutlined, WeiboOutlined, WeiboSquareFilled, WeiboSquareOutlined, WhatsAppOutlined, WifiOutlined, WindowsFilled, WindowsOutlined, WomanOutlined, YahooFilled, YahooOutlined, YoutubeFilled, YoutubeOutlined, YuqueFilled, YuqueOutlined, ZhihuCircleFilled, ZhihuOutlined, ZhihuSquareFilled, ZoomInOutlined, ZoomOutOutlined } from "@ant-design/icons";
6
6
  import { Interweave } from "interweave";
@@ -133,7 +133,8 @@ const {
133
133
  openAttachment: "Veure detall de l'adjunt",
134
134
  openAttachmentLink: "Obrir enlla\xE7 de l'adjunt",
135
135
  uninformed: "Sense informar",
136
- totalRegisters: "Registres totals:"
136
+ totalRegisters: "Registres totals:",
137
+ savedRegisters: "Registre guardat correctament"
137
138
  }, en_US$5 = {
138
139
  true: "Yes",
139
140
  false: "No",
@@ -213,7 +214,8 @@ const {
213
214
  openAttachment: "Open attachment detail",
214
215
  openAttachmentLink: "Open attachment link",
215
216
  uninformed: "Uninformed",
216
- totalRegisters: "Total registers:"
217
+ totalRegisters: "Total registers:",
218
+ savedRegisters: "Record successfully saved"
217
219
  }, es_ES = {
218
220
  true: "S\xED",
219
221
  false: "No",
@@ -293,7 +295,8 @@ const {
293
295
  openAttachment: "Ver detalle del adjunto",
294
296
  openAttachmentLink: "Abrir enlace del adjunto",
295
297
  uninformed: "Sin informar",
296
- totalRegisters: "Registros totales:"
298
+ totalRegisters: "Registros totales:",
299
+ savedRegisters: "Registro guardado correctamente"
297
300
  }, localeStrings = {
298
301
  ca_ES,
299
302
  en_US: en_US$5,
@@ -4700,7 +4703,7 @@ function requireReactIs_development() {
4700
4703
  }
4701
4704
  }
4702
4705
  }
4703
- var O = l, b = u, E = c, w = s, T = t, S = d, k = r, N = m, D = h, M = n, L = a, q = o, $ = f, B = !1;
4706
+ var O = l, b = u, E = c, w = s, S = t, T = d, k = r, $ = m, D = h, M = n, L = a, q = o, N = f, B = !1;
4704
4707
  function U(_) {
4705
4708
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), G(_) || y(_) === l;
4706
4709
  }
@@ -4740,7 +4743,7 @@ function requireReactIs_development() {
4740
4743
  function F(_) {
4741
4744
  return y(_) === f;
4742
4745
  }
4743
- reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element = T, reactIs_development.ForwardRef = S, reactIs_development.Fragment = k, reactIs_development.Lazy = N, reactIs_development.Memo = D, reactIs_development.Portal = M, reactIs_development.Profiler = L, reactIs_development.StrictMode = q, reactIs_development.Suspense = $, reactIs_development.isAsyncMode = U, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = W, reactIs_development.isElement = K, reactIs_development.isForwardRef = V, reactIs_development.isFragment = H, reactIs_development.isLazy = P, reactIs_development.isMemo = A, reactIs_development.isPortal = j, reactIs_development.isProfiler = Y, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = F, reactIs_development.isValidElementType = C, reactIs_development.typeOf = y;
4746
+ reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = M, reactIs_development.Profiler = L, reactIs_development.StrictMode = q, reactIs_development.Suspense = N, reactIs_development.isAsyncMode = U, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = W, reactIs_development.isElement = K, reactIs_development.isForwardRef = V, reactIs_development.isFragment = H, reactIs_development.isLazy = P, reactIs_development.isMemo = A, reactIs_development.isPortal = j, reactIs_development.isProfiler = Y, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = F, reactIs_development.isValidElementType = C, reactIs_development.typeOf = y;
4744
4747
  }()), reactIs_development;
4745
4748
  }
4746
4749
  var hasRequiredReactIs;
@@ -6401,16 +6404,16 @@ function requireAntdIcon() {
6401
6404
  var n = e(requireObjectSpread2()), r = e(requireSlicedToArray()), o = e(requireDefineProperty()), a = e(requireObjectWithoutProperties()), s = t(React__default), c = e(requireClassnames()), l = e(requireContext$2()), u = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), p = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6402
6405
  (0, d.setTwoToneColor)("#1890ff");
6403
6406
  var h = /* @__PURE__ */ s.forwardRef(function(v, x) {
6404
- var g, I = v.className, C = v.icon, y = v.spin, O = v.rotate, b = v.tabIndex, E = v.onClick, w = v.twoToneColor, T = (0, a.default)(v, p), S = s.useContext(l.default), k = S.prefixCls, N = k === void 0 ? "anticon" : k, D = (0, c.default)(N, (g = {}, (0, o.default)(g, "".concat(N, "-").concat(C.name), !!C.name), (0, o.default)(g, "".concat(N, "-spin"), !!y || C.name === "loading"), g), I), M = b;
6407
+ var g, I = v.className, C = v.icon, y = v.spin, O = v.rotate, b = v.tabIndex, E = v.onClick, w = v.twoToneColor, S = (0, a.default)(v, p), T = s.useContext(l.default), k = T.prefixCls, $ = k === void 0 ? "anticon" : k, D = (0, c.default)($, (g = {}, (0, o.default)(g, "".concat($, "-").concat(C.name), !!C.name), (0, o.default)(g, "".concat($, "-spin"), !!y || C.name === "loading"), g), I), M = b;
6405
6408
  M === void 0 && E && (M = -1);
6406
6409
  var L = O ? {
6407
6410
  msTransform: "rotate(".concat(O, "deg)"),
6408
6411
  transform: "rotate(".concat(O, "deg)")
6409
- } : void 0, q = (0, f.normalizeTwoToneColors)(w), $ = (0, r.default)(q, 2), B = $[0], U = $[1];
6412
+ } : void 0, q = (0, f.normalizeTwoToneColors)(w), N = (0, r.default)(q, 2), B = N[0], U = N[1];
6410
6413
  return /* @__PURE__ */ s.createElement("span", (0, n.default)((0, n.default)({
6411
6414
  role: "img",
6412
6415
  "aria-label": C.name
6413
- }, T), {}, {
6416
+ }, S), {}, {
6414
6417
  ref: x,
6415
6418
  tabIndex: M,
6416
6419
  onClick: E,
@@ -6585,12 +6588,12 @@ function requireRegeneratorRuntime() {
6585
6588
  try {
6586
6589
  d({}, "");
6587
6590
  } catch {
6588
- d = function(L, q, $) {
6589
- return L[q] = $;
6591
+ d = function(L, q, N) {
6592
+ return L[q] = N;
6590
6593
  };
6591
6594
  }
6592
6595
  function f(D, M, L, q) {
6593
- var $ = M && M.prototype instanceof m ? M : m, B = Object.create($.prototype), U = new S(q || []);
6596
+ var N = M && M.prototype instanceof m ? M : m, B = Object.create(N.prototype), U = new T(q || []);
6594
6597
  return B._invoke = function(G, z, W) {
6595
6598
  var K = "suspendedStart";
6596
6599
  return function(V, H) {
@@ -6599,7 +6602,7 @@ function requireRegeneratorRuntime() {
6599
6602
  if (K === "completed") {
6600
6603
  if (V === "throw")
6601
6604
  throw H;
6602
- return N();
6605
+ return $();
6603
6606
  }
6604
6607
  for (W.method = V, W.arg = H; ; ) {
6605
6608
  var P = W.delegate;
@@ -6670,8 +6673,8 @@ function requireRegeneratorRuntime() {
6670
6673
  });
6671
6674
  }
6672
6675
  function b(D, M) {
6673
- function L($, B, U, G) {
6674
- var z = p(D[$], D, B);
6676
+ function L(N, B, U, G) {
6677
+ var z = p(D[N], D, B);
6675
6678
  if (z.type !== "throw") {
6676
6679
  var W = z.arg, K = W.value;
6677
6680
  return K && t(K) == "object" && a.call(K, "__await") ? M.resolve(K.__await).then(function(V) {
@@ -6687,10 +6690,10 @@ function requireRegeneratorRuntime() {
6687
6690
  G(z.arg);
6688
6691
  }
6689
6692
  var q;
6690
- this._invoke = function($, B) {
6693
+ this._invoke = function(N, B) {
6691
6694
  function U() {
6692
6695
  return new M(function(G, z) {
6693
- L($, B, G, z);
6696
+ L(N, B, G, z);
6694
6697
  });
6695
6698
  }
6696
6699
  return q = q ? q.then(U, U) : U();
@@ -6709,8 +6712,8 @@ function requireRegeneratorRuntime() {
6709
6712
  var q = p(L, D.iterator, M.arg);
6710
6713
  if (q.type === "throw")
6711
6714
  return M.method = "throw", M.arg = q.arg, M.delegate = null, h;
6712
- var $ = q.arg;
6713
- return $ ? $.done ? (M[D.resultName] = $.value, M.next = D.nextLoc, M.method !== "return" && (M.method = "next", M.arg = void 0), M.delegate = null, h) : $ : (M.method = "throw", M.arg = new TypeError("iterator result is not an object"), M.delegate = null, h);
6715
+ var N = q.arg;
6716
+ return N ? N.done ? (M[D.resultName] = N.value, M.next = D.nextLoc, M.method !== "return" && (M.method = "next", M.arg = void 0), M.delegate = null, h) : N : (M.method = "throw", M.arg = new TypeError("iterator result is not an object"), M.delegate = null, h);
6714
6717
  }
6715
6718
  function w(D) {
6716
6719
  var M = {
@@ -6718,11 +6721,11 @@ function requireRegeneratorRuntime() {
6718
6721
  };
6719
6722
  1 in D && (M.catchLoc = D[1]), 2 in D && (M.finallyLoc = D[2], M.afterLoc = D[3]), this.tryEntries.push(M);
6720
6723
  }
6721
- function T(D) {
6724
+ function S(D) {
6722
6725
  var M = D.completion || {};
6723
6726
  M.type = "normal", delete M.arg, D.completion = M;
6724
6727
  }
6725
- function S(D) {
6728
+ function T(D) {
6726
6729
  this.tryEntries = [{
6727
6730
  tryLoc: "root"
6728
6731
  }], D.forEach(w, this), this.reset(!0);
@@ -6735,20 +6738,20 @@ function requireRegeneratorRuntime() {
6735
6738
  if (typeof D.next == "function")
6736
6739
  return D;
6737
6740
  if (!isNaN(D.length)) {
6738
- var L = -1, q = function $() {
6741
+ var L = -1, q = function N() {
6739
6742
  for (; ++L < D.length; )
6740
6743
  if (a.call(D, L))
6741
- return $.value = D[L], $.done = !1, $;
6742
- return $.value = void 0, $.done = !0, $;
6744
+ return N.value = D[L], N.done = !1, N;
6745
+ return N.value = void 0, N.done = !0, N;
6743
6746
  };
6744
6747
  return q.next = q;
6745
6748
  }
6746
6749
  }
6747
6750
  return {
6748
- next: N
6751
+ next: $
6749
6752
  };
6750
6753
  }
6751
- function N() {
6754
+ function $() {
6752
6755
  return {
6753
6756
  value: void 0,
6754
6757
  done: !0
@@ -6765,9 +6768,9 @@ function requireRegeneratorRuntime() {
6765
6768
  };
6766
6769
  }, O(b.prototype), d(b.prototype, l, function() {
6767
6770
  return this;
6768
- }), r.AsyncIterator = b, r.async = function(D, M, L, q, $) {
6769
- $ === void 0 && ($ = Promise);
6770
- var B = new b(f(D, M, L, q), $);
6771
+ }), r.AsyncIterator = b, r.async = function(D, M, L, q, N) {
6772
+ N === void 0 && (N = Promise);
6773
+ var B = new b(f(D, M, L, q), N);
6771
6774
  return r.isGeneratorFunction(M) ? B : B.next().then(function(U) {
6772
6775
  return U.done ? U.value : B.next();
6773
6776
  });
@@ -6781,16 +6784,16 @@ function requireRegeneratorRuntime() {
6781
6784
  M.push(L);
6782
6785
  return M.reverse(), function q() {
6783
6786
  for (; M.length; ) {
6784
- var $ = M.pop();
6785
- if ($ in D)
6786
- return q.value = $, q.done = !1, q;
6787
+ var N = M.pop();
6788
+ if (N in D)
6789
+ return q.value = N, q.done = !1, q;
6787
6790
  }
6788
6791
  return q.done = !0, q;
6789
6792
  };
6790
- }, r.values = k, S.prototype = {
6791
- constructor: S,
6793
+ }, r.values = k, T.prototype = {
6794
+ constructor: T,
6792
6795
  reset: function(M) {
6793
- if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(T), !M)
6796
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(S), !M)
6794
6797
  for (var L in this)
6795
6798
  L.charAt(0) === "t" && a.call(this, L) && !isNaN(+L.slice(1)) && (this[L] = void 0);
6796
6799
  },
@@ -6808,8 +6811,8 @@ function requireRegeneratorRuntime() {
6808
6811
  function q(W, K) {
6809
6812
  return U.type = "throw", U.arg = M, L.next = W, K && (L.method = "next", L.arg = void 0), !!K;
6810
6813
  }
6811
- for (var $ = this.tryEntries.length - 1; $ >= 0; --$) {
6812
- var B = this.tryEntries[$], U = B.completion;
6814
+ for (var N = this.tryEntries.length - 1; N >= 0; --N) {
6815
+ var B = this.tryEntries[N], U = B.completion;
6813
6816
  if (B.tryLoc === "root")
6814
6817
  return q("end");
6815
6818
  if (B.tryLoc <= this.prev) {
@@ -6833,9 +6836,9 @@ function requireRegeneratorRuntime() {
6833
6836
  },
6834
6837
  abrupt: function(M, L) {
6835
6838
  for (var q = this.tryEntries.length - 1; q >= 0; --q) {
6836
- var $ = this.tryEntries[q];
6837
- if ($.tryLoc <= this.prev && a.call($, "finallyLoc") && this.prev < $.finallyLoc) {
6838
- var B = $;
6839
+ var N = this.tryEntries[q];
6840
+ if (N.tryLoc <= this.prev && a.call(N, "finallyLoc") && this.prev < N.finallyLoc) {
6841
+ var B = N;
6839
6842
  break;
6840
6843
  }
6841
6844
  }
@@ -6852,17 +6855,17 @@ function requireRegeneratorRuntime() {
6852
6855
  for (var L = this.tryEntries.length - 1; L >= 0; --L) {
6853
6856
  var q = this.tryEntries[L];
6854
6857
  if (q.finallyLoc === M)
6855
- return this.complete(q.completion, q.afterLoc), T(q), h;
6858
+ return this.complete(q.completion, q.afterLoc), S(q), h;
6856
6859
  }
6857
6860
  },
6858
6861
  catch: function(M) {
6859
6862
  for (var L = this.tryEntries.length - 1; L >= 0; --L) {
6860
6863
  var q = this.tryEntries[L];
6861
6864
  if (q.tryLoc === M) {
6862
- var $ = q.completion;
6863
- if ($.type === "throw") {
6864
- var B = $.arg;
6865
- T(q);
6865
+ var N = q.completion;
6866
+ if (N.type === "throw") {
6867
+ var B = N.arg;
6868
+ S(q);
6866
6869
  }
6867
6870
  return B;
6868
6871
  }
@@ -7497,16 +7500,16 @@ Schema.prototype = {
7497
7500
  return g.message !== void 0 ? E = [].concat(g.message).map(complementError(g)) : s.error && (E = [s.error(g, format$1(s.messages.required, g.field))]), x(E);
7498
7501
  var w = {};
7499
7502
  if (g.defaultField)
7500
- for (var T in v.value)
7501
- v.value.hasOwnProperty(T) && (w[T] = g.defaultField);
7503
+ for (var S in v.value)
7504
+ v.value.hasOwnProperty(S) && (w[S] = g.defaultField);
7502
7505
  w = _extends(_extends({}, w), v.rule.fields);
7503
- for (var S in w)
7504
- if (w.hasOwnProperty(S)) {
7505
- var k = Array.isArray(w[S]) ? w[S] : [w[S]];
7506
- w[S] = k.map(C.bind(null, S));
7506
+ for (var T in w)
7507
+ if (w.hasOwnProperty(T)) {
7508
+ var k = Array.isArray(w[T]) ? w[T] : [w[T]];
7509
+ w[T] = k.map(C.bind(null, T));
7507
7510
  }
7508
- var N = new Schema(w);
7509
- N.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), N.validate(v.value, v.rule.options || s, function(D) {
7511
+ var $ = new Schema(w);
7512
+ $.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), $.validate(v.value, v.rule.options || s, function(D) {
7510
7513
  var M = [];
7511
7514
  E && E.length && M.push.apply(M, E), D && D.length && M.push.apply(M, D), x(M.length ? M : null);
7512
7515
  });
@@ -8016,32 +8019,32 @@ var Field = /* @__PURE__ */ function(e) {
8016
8019
  var u = o.props.fieldContext.getFieldsValue, d = o.getNamePath();
8017
8020
  return getValue(l || u(!0), d);
8018
8021
  }, o.getControlled = function() {
8019
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, I = o.getNamePath(), C = x.getInternalHooks, y = x.getFieldsValue, O = C(HOOK_MARK), b = O.dispatch, E = o.getValue(), w = v || function(N) {
8020
- return _defineProperty$1({}, m, N);
8021
- }, T = l[d], S = _objectSpread2$1(_objectSpread2$1({}, l), w(E));
8022
- S[d] = function() {
8022
+ var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = o.props, d = u.trigger, f = u.validateTrigger, p = u.getValueFromEvent, h = u.normalize, m = u.valuePropName, v = u.getValueProps, x = u.fieldContext, g = f !== void 0 ? f : x.validateTrigger, I = o.getNamePath(), C = x.getInternalHooks, y = x.getFieldsValue, O = C(HOOK_MARK), b = O.dispatch, E = o.getValue(), w = v || function($) {
8023
+ return _defineProperty$1({}, m, $);
8024
+ }, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), w(E));
8025
+ T[d] = function() {
8023
8026
  o.touched = !0, o.dirty = !0;
8024
- for (var N, D = arguments.length, M = new Array(D), L = 0; L < D; L++)
8027
+ for (var $, D = arguments.length, M = new Array(D), L = 0; L < D; L++)
8025
8028
  M[L] = arguments[L];
8026
- p ? N = p.apply(void 0, M) : N = defaultGetValueFromEvent.apply(void 0, [m].concat(M)), h && (N = h(N, E, y(!0))), b({
8029
+ p ? $ = p.apply(void 0, M) : $ = defaultGetValueFromEvent.apply(void 0, [m].concat(M)), h && ($ = h($, E, y(!0))), b({
8027
8030
  type: "updateValue",
8028
8031
  namePath: I,
8029
- value: N
8030
- }), T && T.apply(void 0, M);
8032
+ value: $
8033
+ }), S && S.apply(void 0, M);
8031
8034
  };
8032
8035
  var k = toArray$2(g || []);
8033
- return k.forEach(function(N) {
8034
- var D = S[N];
8035
- S[N] = function() {
8036
+ return k.forEach(function($) {
8037
+ var D = T[$];
8038
+ T[$] = function() {
8036
8039
  D && D.apply(void 0, arguments);
8037
8040
  var M = o.props.rules;
8038
8041
  M && M.length && b({
8039
8042
  type: "validateField",
8040
8043
  namePath: I,
8041
- triggerName: N
8044
+ triggerName: $
8042
8045
  });
8043
8046
  };
8044
- }), S;
8047
+ }), T;
8045
8048
  }, r.fieldContext) {
8046
8049
  var a = r.fieldContext.getInternalHooks, s = a(HOOK_MARK), c = s.initEntityValue;
8047
8050
  c(_assertThisInitialized(o));
@@ -8120,21 +8123,21 @@ var List = function(t) {
8120
8123
  return E || [];
8121
8124
  }, y = {
8122
8125
  add: function(E, w) {
8123
- var T = C();
8124
- w >= 0 && w <= T.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, w)), [u.id], _toConsumableArray(u.keys.slice(w))), g([].concat(_toConsumableArray(T.slice(0, w)), [E], _toConsumableArray(T.slice(w))))) : (process.env.NODE_ENV !== "production" && (w < 0 || w > T.length) && warningOnce(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(_toConsumableArray(u.keys), [u.id]), g([].concat(_toConsumableArray(T), [E]))), u.id += 1;
8126
+ var S = C();
8127
+ w >= 0 && w <= S.length ? (u.keys = [].concat(_toConsumableArray(u.keys.slice(0, w)), [u.id], _toConsumableArray(u.keys.slice(w))), g([].concat(_toConsumableArray(S.slice(0, w)), [E], _toConsumableArray(S.slice(w))))) : (process.env.NODE_ENV !== "production" && (w < 0 || w > S.length) && warningOnce(!1, "The second parameter of the add function should be a valid positive number."), u.keys = [].concat(_toConsumableArray(u.keys), [u.id]), g([].concat(_toConsumableArray(S), [E]))), u.id += 1;
8125
8128
  },
8126
8129
  remove: function(E) {
8127
- var w = C(), T = new Set(Array.isArray(E) ? E : [E]);
8128
- T.size <= 0 || (u.keys = u.keys.filter(function(S, k) {
8129
- return !T.has(k);
8130
- }), g(w.filter(function(S, k) {
8131
- return !T.has(k);
8130
+ var w = C(), S = new Set(Array.isArray(E) ? E : [E]);
8131
+ S.size <= 0 || (u.keys = u.keys.filter(function(T, k) {
8132
+ return !S.has(k);
8133
+ }), g(w.filter(function(T, k) {
8134
+ return !S.has(k);
8132
8135
  })));
8133
8136
  },
8134
8137
  move: function(E, w) {
8135
8138
  if (E !== w) {
8136
- var T = C();
8137
- E < 0 || E >= T.length || w < 0 || w >= T.length || (u.keys = move(u.keys, E, w), g(move(T, E, w)));
8139
+ var S = C();
8140
+ E < 0 || E >= S.length || w < 0 || w >= S.length || (u.keys = move(u.keys, E, w), g(move(S, E, w)));
8138
8141
  }
8139
8142
  }
8140
8143
  }, O = x || [];
@@ -8713,14 +8716,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
8713
8716
  children: a
8714
8717
  });
8715
8718
  }, Form$2 = function(t, n) {
8716
- var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, I = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), C = React.useContext(FormContext), y = useForm(s), O = _slicedToArray(y, 1), b = O[0], E = b.getInternalHooks(HOOK_MARK), w = E.useSubscribe, T = E.setInitialValues, S = E.setCallbacks, k = E.setValidateMessages, N = E.setPreserve;
8719
+ var r = t.name, o = t.initialValues, a = t.fields, s = t.form, c = t.preserve, l = t.children, u = t.component, d = u === void 0 ? "form" : u, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, v = t.onFieldsChange, x = t.onFinish, g = t.onFinishFailed, I = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), C = React.useContext(FormContext), y = useForm(s), O = _slicedToArray(y, 1), b = O[0], E = b.getInternalHooks(HOOK_MARK), w = E.useSubscribe, S = E.setInitialValues, T = E.setCallbacks, k = E.setValidateMessages, $ = E.setPreserve;
8717
8720
  React.useImperativeHandle(n, function() {
8718
8721
  return b;
8719
8722
  }), React.useEffect(function() {
8720
8723
  return C.registerForm(r, b), function() {
8721
8724
  C.unregisterForm(r);
8722
8725
  };
8723
- }, [C, b, r]), k(_objectSpread2$1(_objectSpread2$1({}, C.validateMessages), f)), S({
8726
+ }, [C, b, r]), k(_objectSpread2$1(_objectSpread2$1({}, C.validateMessages), f)), T({
8724
8727
  onValuesChange: m,
8725
8728
  onFieldsChange: function(z) {
8726
8729
  if (C.triggerFormChange(r, z), v) {
@@ -8733,18 +8736,18 @@ var FormContext = /* @__PURE__ */ React.createContext({
8733
8736
  C.triggerFormFinish(r, z), x && x(z);
8734
8737
  },
8735
8738
  onFinishFailed: g
8736
- }), N(c);
8739
+ }), $(c);
8737
8740
  var D = React.useRef(null);
8738
- T(o, !D.current), D.current || (D.current = !0);
8741
+ S(o, !D.current), D.current || (D.current = !0);
8739
8742
  var M = l, L = typeof l == "function";
8740
8743
  if (L) {
8741
8744
  var q = b.getFieldsValue(!0);
8742
8745
  M = l(q, b);
8743
8746
  }
8744
8747
  w(!L);
8745
- var $ = React.useRef();
8748
+ var N = React.useRef();
8746
8749
  React.useEffect(function() {
8747
- isSimilar($.current || [], a || []) || b.setFields(a || []), $.current = a;
8750
+ isSimilar(N.current || [], a || []) || b.setFields(a || []), N.current = a;
8748
8751
  }, [a, b]);
8749
8752
  var B = React.useMemo(function() {
8750
8753
  return _objectSpread2$1(_objectSpread2$1({}, b), {}, {
@@ -9315,17 +9318,17 @@ function requireEmpty() {
9315
9318
  g.indexOf(C[y]) < 0 && Object.prototype.propertyIsEnumerable.call(x, C[y]) && (I[C[y]] = x[C[y]]);
9316
9319
  return I;
9317
9320
  }, p = /* @__PURE__ */ a.createElement(u.default, null), h = /* @__PURE__ */ a.createElement(d.default, null), m = function(g) {
9318
- var I = g.className, C = g.prefixCls, y = g.image, O = y === void 0 ? p : y, b = g.description, E = g.children, w = g.imageStyle, T = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), S = a.useContext(c.ConfigContext), k = S.getPrefixCls, N = S.direction;
9321
+ var I = g.className, C = g.prefixCls, y = g.image, O = y === void 0 ? p : y, b = g.description, E = g.children, w = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = a.useContext(c.ConfigContext), k = T.getPrefixCls, $ = T.direction;
9319
9322
  return /* @__PURE__ */ a.createElement(l.default, {
9320
9323
  componentName: "Empty"
9321
9324
  }, function(D) {
9322
- var M, L = k("empty", C), q = typeof b < "u" ? b : D.description, $ = typeof q == "string" ? q : "empty", B = null;
9325
+ var M, L = k("empty", C), q = typeof b < "u" ? b : D.description, N = typeof q == "string" ? q : "empty", B = null;
9323
9326
  return typeof O == "string" ? B = /* @__PURE__ */ a.createElement("img", {
9324
- alt: $,
9327
+ alt: N,
9325
9328
  src: O
9326
9329
  }) : B = O, /* @__PURE__ */ a.createElement("div", (0, r.default)({
9327
- className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"), N === "rtl"), M), I)
9328
- }, T), /* @__PURE__ */ a.createElement("div", {
9330
+ className: (0, s.default)(L, (M = {}, (0, o.default)(M, "".concat(L, "-normal"), O === h), (0, o.default)(M, "".concat(L, "-rtl"), $ === "rtl"), M), I)
9331
+ }, S), /* @__PURE__ */ a.createElement("div", {
9329
9332
  className: "".concat(L, "-image"),
9330
9333
  style: w
9331
9334
  }, B), q && /* @__PURE__ */ a.createElement("div", {
@@ -9563,7 +9566,7 @@ const useStepQueue = function(e, t) {
9563
9566
  }, []), [a, o];
9564
9567
  };
9565
9568
  function useStatus(e, t, n, r) {
9566
- var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, T = useMountStatus(), S = _slicedToArray(T, 2), k = S[0], N = S[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], $ = useMountStatus(null), B = _slicedToArray($, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null), K = useRef(!1), V = useRef(null);
9569
+ var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], N = useMountStatus(null), B = _slicedToArray(N, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null), K = useRef(!1), V = useRef(null);
9567
9570
  function H() {
9568
9571
  var ie = n();
9569
9572
  return ie || V.current;
@@ -9604,7 +9607,7 @@ function useStatus(e, t, n, r) {
9604
9607
  }, d))), DoStep;
9605
9608
  }), Z = _slicedToArray(_, 2), Q = Z[0], ee = Z[1], J = isActive(ee);
9606
9609
  P.current = J, useIsomorphicLayoutEffect(function() {
9607
- if (N(t), !!e) {
9610
+ if ($(t), !!e) {
9608
9611
  var ie = z.current;
9609
9612
  z.current = !0;
9610
9613
  var le;
@@ -9652,29 +9655,29 @@ function genCSSMotion(e) {
9652
9655
  return null;
9653
9656
  }
9654
9657
  }
9655
- var C = useStatus(v, c, I, o), y = _slicedToArray(C, 4), O = y[0], b = y[1], E = y[2], w = y[3], T = useRef(a);
9656
- T.current = a;
9657
- var S = React.useCallback(function(L) {
9658
- x.current = L, fillRef(T.current, L);
9659
- }, []), k, N = _objectSpread2$1(_objectSpread2$1({}, m), {}, {
9658
+ var C = useStatus(v, c, I, o), y = _slicedToArray(C, 4), O = y[0], b = y[1], E = y[2], w = y[3], S = useRef(a);
9659
+ S.current = a;
9660
+ var T = React.useCallback(function(L) {
9661
+ x.current = L, fillRef(S.current, L);
9662
+ }, []), k, $ = _objectSpread2$1(_objectSpread2$1({}, m), {}, {
9660
9663
  visible: c
9661
9664
  });
9662
9665
  if (!f)
9663
9666
  k = null;
9664
9667
  else if (O === STATUS_NONE || !n(o))
9665
- w ? k = f(_objectSpread2$1({}, N), S) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, N), {}, {
9668
+ w ? k = f(_objectSpread2$1({}, $), T) : u ? d ? k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9666
9669
  style: {
9667
9670
  display: "none"
9668
9671
  }
9669
- }), S) : k = null : k = f(_objectSpread2$1(_objectSpread2$1({}, N), {}, {
9672
+ }), T) : k = null : k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9670
9673
  className: h
9671
- }), S);
9674
+ }), T);
9672
9675
  else {
9673
9676
  var D, M;
9674
- b === STEP_PREPARE ? M = "prepare" : isActive(b) ? M = "active" : b === STEP_START && (M = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, N), {}, {
9677
+ b === STEP_PREPARE ? M = "prepare" : isActive(b) ? M = "active" : b === STEP_START && (M = "start"), k = f(_objectSpread2$1(_objectSpread2$1({}, $), {}, {
9675
9678
  className: classnamesExports(getTransitionName$1(p, O), (D = {}, _defineProperty$1(D, getTransitionName$1(p, "".concat(O, "-").concat(M)), M), _defineProperty$1(D, p, typeof p == "string"), D)),
9676
9679
  style: E
9677
- }), S);
9680
+ }), T);
9678
9681
  }
9679
9682
  return /* @__PURE__ */ jsx(DomWrapper, {
9680
9683
  ref: g,
@@ -10264,22 +10267,22 @@ function requireNotice() {
10264
10267
  }, {
10265
10268
  key: "render",
10266
10269
  value: function() {
10267
- var v = this, x = this.props, g = x.prefixCls, I = x.className, C = x.closable, y = x.closeIcon, O = x.style, b = x.onClick, E = x.children, w = x.holder, T = "".concat(g, "-notice"), S = Object.keys(this.props).reduce(function(N, D) {
10268
- return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && (N[D] = v.props[D]), N;
10270
+ var v = this, x = this.props, g = x.prefixCls, I = x.className, C = x.closable, y = x.closeIcon, O = x.style, b = x.onClick, E = x.children, w = x.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function($, D) {
10271
+ return (D.substr(0, 5) === "data-" || D.substr(0, 5) === "aria-" || D === "role") && ($[D] = v.props[D]), $;
10269
10272
  }, {}), k = c.createElement("div", Object.assign({
10270
- className: (0, u.default)(T, I, (0, n.default)({}, "".concat(T, "-closable"), C)),
10273
+ className: (0, u.default)(S, I, (0, n.default)({}, "".concat(S, "-closable"), C)),
10271
10274
  style: O,
10272
10275
  onMouseEnter: this.clearCloseTimer,
10273
10276
  onMouseLeave: this.startCloseTimer,
10274
10277
  onClick: b
10275
- }, S), c.createElement("div", {
10276
- className: "".concat(T, "-content")
10278
+ }, T), c.createElement("div", {
10279
+ className: "".concat(S, "-content")
10277
10280
  }, E), C ? c.createElement("a", {
10278
10281
  tabIndex: 0,
10279
10282
  onClick: this.close,
10280
- className: "".concat(T, "-close")
10283
+ className: "".concat(S, "-close")
10281
10284
  }, y || c.createElement("span", {
10282
- className: "".concat(T, "-close-x")
10285
+ className: "".concat(S, "-close-x")
10283
10286
  })) : null);
10284
10287
  return w ? l.default.createPortal(k, w) : k;
10285
10288
  }
@@ -10331,30 +10334,30 @@ function requireUseMessage() {
10331
10334
  function u(d, f) {
10332
10335
  var p = function() {
10333
10336
  var m, v = null, x = {
10334
- add: function(w, T) {
10335
- v == null || v.component.add(w, T);
10337
+ add: function(w, S) {
10338
+ v == null || v.component.add(w, S);
10336
10339
  }
10337
10340
  }, g = (0, s.default)(x), I = (0, o.default)(g, 2), C = I[0], y = I[1];
10338
10341
  function O(E) {
10339
- var w = E.prefixCls, T = m("message", w), S = E.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(D) {
10342
+ var w = E.prefixCls, S = m("message", w), T = E.key || (0, l.getKeyThenIncreaseKey)(), k = new Promise(function(D) {
10340
10343
  var M = function() {
10341
10344
  return typeof E.onClose == "function" && E.onClose(), D(!0);
10342
10345
  };
10343
10346
  d((0, r.default)((0, r.default)({}, E), {
10344
- prefixCls: T
10347
+ prefixCls: S
10345
10348
  }), function(L) {
10346
- var q = L.prefixCls, $ = L.instance;
10347
- v = $, C(f((0, r.default)((0, r.default)({}, E), {
10348
- key: S,
10349
+ var q = L.prefixCls, N = L.instance;
10350
+ v = N, C(f((0, r.default)((0, r.default)({}, E), {
10351
+ key: T,
10349
10352
  onClose: M
10350
10353
  }), q));
10351
10354
  });
10352
- }), N = function() {
10353
- v && v.removeNotice(S);
10355
+ }), $ = function() {
10356
+ v && v.removeNotice(T);
10354
10357
  };
10355
- return N.then = function(D, M) {
10358
+ return $.then = function(D, M) {
10356
10359
  return k.then(D, M);
10357
- }, N.promise = k, N;
10360
+ }, $.promise = k, $;
10358
10361
  }
10359
10362
  var b = a.useRef({});
10360
10363
  return b.current.open = O, ["success", "info", "warning", "error", "loading"].forEach(function(E) {
@@ -10383,7 +10386,7 @@ function requireMessage() {
10383
10386
  function w(B) {
10384
10387
  B.top !== void 0 && (x = B.top, m = null), B.duration !== void 0 && (v = B.duration), B.prefixCls !== void 0 && (I = B.prefixCls), B.getContainer !== void 0 && (y = B.getContainer), B.transitionName !== void 0 && (C = B.transitionName, m = null), B.maxCount !== void 0 && (O = B.maxCount, m = null), B.rtl !== void 0 && (b = B.rtl);
10385
10388
  }
10386
- function T(B, U) {
10389
+ function S(B, U) {
10387
10390
  var G = B.prefixCls || I;
10388
10391
  if (m) {
10389
10392
  U({
@@ -10414,7 +10417,7 @@ function requireMessage() {
10414
10417
  });
10415
10418
  });
10416
10419
  }
10417
- var S = {
10420
+ var T = {
10418
10421
  info: p.default,
10419
10422
  success: f.default,
10420
10423
  error: d.default,
@@ -10422,7 +10425,7 @@ function requireMessage() {
10422
10425
  loading: l.default
10423
10426
  };
10424
10427
  function k(B, U) {
10425
- var G, z = B.duration !== void 0 ? B.duration : v, W = S[B.type], K = (0, s.default)("".concat(U, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(U, "-").concat(B.type), B.type), (0, o.default)(G, "".concat(U, "-rtl"), b === !0), G));
10428
+ var G, z = B.duration !== void 0 ? B.duration : v, W = T[B.type], K = (0, s.default)("".concat(U, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(U, "-").concat(B.type), B.type), (0, o.default)(G, "".concat(U, "-rtl"), b === !0), G));
10426
10429
  return {
10427
10430
  key: B.key,
10428
10431
  duration: z,
@@ -10435,12 +10438,12 @@ function requireMessage() {
10435
10438
  onClick: B.onClick
10436
10439
  };
10437
10440
  }
10438
- function N(B) {
10441
+ function $(B) {
10439
10442
  var U = B.key || g++, G = new Promise(function(W) {
10440
10443
  var K = function() {
10441
10444
  return typeof B.onClose == "function" && B.onClose(), W(!0);
10442
10445
  };
10443
- T(B, function(V) {
10446
+ S(B, function(V) {
10444
10447
  var H = V.prefixCls, P = V.instance;
10445
10448
  P.notice(k((0, r.default)((0, r.default)({}, B), {
10446
10449
  key: U,
@@ -10458,7 +10461,7 @@ function requireMessage() {
10458
10461
  return Object.prototype.toString.call(B) === "[object Object]" && !!B.content;
10459
10462
  }
10460
10463
  var M = {
10461
- open: N,
10464
+ open: $,
10462
10465
  config: w,
10463
10466
  destroy: function(U) {
10464
10467
  if (m)
@@ -10485,13 +10488,13 @@ function requireMessage() {
10485
10488
  }
10486
10489
  ["success", "info", "warning", "error", "loading"].forEach(function(B) {
10487
10490
  return L(M, B);
10488
- }), M.warn = M.warning, M.useMessage = (0, h.default)(T, k);
10491
+ }), M.warn = M.warning, M.useMessage = (0, h.default)(S, k);
10489
10492
  var q = function() {
10490
10493
  return process.env.NODE_ENV === "test" ? m : null;
10491
10494
  };
10492
10495
  e.getInstance = q;
10493
- var $ = M;
10494
- e.default = $;
10496
+ var N = M;
10497
+ e.default = N;
10495
10498
  }(message)), message;
10496
10499
  }
10497
10500
  var notification = {}, CloseOutlined$2 = { exports: {} }, CloseOutlined$1 = {}, CloseOutlined = {}, hasRequiredCloseOutlined$2;
@@ -10718,9 +10721,9 @@ function requireUseNotification() {
10718
10721
  var E = b.prefixCls, w = h("notification", E);
10719
10722
  u((0, r.default)((0, r.default)({}, b), {
10720
10723
  prefixCls: w
10721
- }), function(T) {
10722
- var S = T.prefixCls, k = T.instance;
10723
- m = k, I(d(b, S));
10724
+ }), function(S) {
10725
+ var T = S.prefixCls, k = S.instance;
10726
+ m = k, I(d(b, T));
10724
10727
  });
10725
10728
  }
10726
10729
  var O = a.useRef({});
@@ -10774,11 +10777,11 @@ function requireNotification() {
10774
10777
  A((z = z.apply(B, U || [])).next());
10775
10778
  });
10776
10779
  }, x = {}, g = 4.5, I = 24, C = 24, y = "ant-notification", O = "topRight", b, E, w = !1;
10777
- function T(B) {
10780
+ function S(B) {
10778
10781
  var U = B.duration, G = B.placement, z = B.bottom, W = B.top, K = B.getContainer, V = B.closeIcon, H = B.prefixCls;
10779
10782
  H !== void 0 && (y = H), U !== void 0 && (g = U), G !== void 0 ? O = G : B.rtl && (O = "topLeft"), z !== void 0 && (C = z), W !== void 0 && (I = W), K !== void 0 && (b = K), V !== void 0 && (E = V), B.rtl !== void 0 && (w = B.rtl);
10780
10783
  }
10781
- function S(B) {
10784
+ function T(B) {
10782
10785
  var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : I, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C, z;
10783
10786
  switch (B) {
10784
10787
  case "topLeft":
@@ -10832,7 +10835,7 @@ function requireNotification() {
10832
10835
  c.default.newInstance({
10833
10836
  prefixCls: j,
10834
10837
  className: Z,
10835
- style: S(z, W, K),
10838
+ style: T(z, W, K),
10836
10839
  getContainer: H,
10837
10840
  closeIcon: _
10838
10841
  }, function(ee) {
@@ -10843,7 +10846,7 @@ function requireNotification() {
10843
10846
  });
10844
10847
  });
10845
10848
  }
10846
- var N = {
10849
+ var $ = {
10847
10850
  success: d.default,
10848
10851
  info: h.default,
10849
10852
  error: f.default,
@@ -10853,7 +10856,7 @@ function requireNotification() {
10853
10856
  var G = B.duration === void 0 ? g : B.duration, z = null;
10854
10857
  B.icon ? z = /* @__PURE__ */ s.createElement("span", {
10855
10858
  className: "".concat(U, "-icon")
10856
- }, B.icon) : B.type && (z = /* @__PURE__ */ s.createElement(N[B.type] || null, {
10859
+ }, B.icon) : B.type && (z = /* @__PURE__ */ s.createElement($[B.type] || null, {
10857
10860
  className: "".concat(U, "-icon ").concat(U, "-icon-").concat(B.type)
10858
10861
  }));
10859
10862
  var W = !B.description && z ? /* @__PURE__ */ s.createElement("span", {
@@ -10894,7 +10897,7 @@ function requireNotification() {
10894
10897
  });
10895
10898
  });
10896
10899
  },
10897
- config: T,
10900
+ config: S,
10898
10901
  destroy: function() {
10899
10902
  Object.keys(x).forEach(function(U) {
10900
10903
  Promise.resolve(x[U]).then(function(G) {
@@ -10925,8 +10928,8 @@ function requireNotification() {
10925
10928
  }));
10926
10929
  };
10927
10930
  e.getInstance = q;
10928
- var $ = L;
10929
- e.default = $;
10931
+ var N = L;
10932
+ e.default = N;
10930
10933
  }(notification)), notification;
10931
10934
  }
10932
10935
  var hasRequiredConfigProvider;
@@ -10949,7 +10952,7 @@ function requireConfigProvider() {
10949
10952
  var r = n(require_extends()), o = t(React__default), a = n(requireContext$2()), s = require$$5, c = n(requireUseMemo()), l = t(requireLocaleProvider()), u = n(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), p = n(requireMessage()), h = n(requireNotification()), m = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
10950
10953
  e.configConsumerProps = m;
10951
10954
  var v = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], x = function(y) {
10952
- var O = y.children, b = y.csp, E = y.autoInsertSpaceInButton, w = y.form, T = y.locale, S = y.componentSize, k = y.direction, N = y.space, D = y.virtual, M = y.dropdownMatchSelectWidth, L = y.legacyLocale, q = y.parentContext, $ = y.iconPrefixCls, B = o.useCallback(function(V, H) {
10955
+ var O = y.children, b = y.csp, E = y.autoInsertSpaceInButton, w = y.form, S = y.locale, T = y.componentSize, k = y.direction, $ = y.space, D = y.virtual, M = y.dropdownMatchSelectWidth, L = y.legacyLocale, q = y.parentContext, N = y.iconPrefixCls, B = o.useCallback(function(V, H) {
10953
10956
  var P = y.prefixCls;
10954
10957
  if (H)
10955
10958
  return H;
@@ -10958,9 +10961,9 @@ function requireConfigProvider() {
10958
10961
  }, [q.getPrefixCls]), U = (0, r.default)((0, r.default)({}, q), {
10959
10962
  csp: b,
10960
10963
  autoInsertSpaceInButton: E,
10961
- locale: T || L,
10964
+ locale: S || L,
10962
10965
  direction: k,
10963
- space: N,
10966
+ space: $,
10964
10967
  virtual: D,
10965
10968
  dropdownMatchSelectWidth: M,
10966
10969
  getPrefixCls: B
@@ -10978,18 +10981,18 @@ function requireConfigProvider() {
10978
10981
  });
10979
10982
  }), z = o.useMemo(function() {
10980
10983
  return {
10981
- prefixCls: $
10984
+ prefixCls: N
10982
10985
  };
10983
- }, [$]), W = O, K = {};
10984
- return T && T.Form && T.Form.defaultValidateMessages && (K = T.Form.defaultValidateMessages), w && w.validateMessages && (K = (0, r.default)((0, r.default)({}, K), w.validateMessages)), Object.keys(K).length > 0 && (W = /* @__PURE__ */ o.createElement(s.FormProvider, {
10986
+ }, [N]), W = O, K = {};
10987
+ return S && S.Form && S.Form.defaultValidateMessages && (K = S.Form.defaultValidateMessages), w && w.validateMessages && (K = (0, r.default)((0, r.default)({}, K), w.validateMessages)), Object.keys(K).length > 0 && (W = /* @__PURE__ */ o.createElement(s.FormProvider, {
10985
10988
  validateMessages: K
10986
- }, O)), T && (W = /* @__PURE__ */ o.createElement(l.default, {
10987
- locale: T,
10989
+ }, O)), S && (W = /* @__PURE__ */ o.createElement(l.default, {
10990
+ locale: S,
10988
10991
  _ANT_MARK__: l.ANT_MARK
10989
- }, W)), $ && (W = /* @__PURE__ */ o.createElement(a.default.Provider, {
10992
+ }, W)), N && (W = /* @__PURE__ */ o.createElement(a.default.Provider, {
10990
10993
  value: z
10991
- }, W)), S && (W = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
10992
- size: S
10994
+ }, W)), T && (W = /* @__PURE__ */ o.createElement(f.SizeContextProvider, {
10995
+ size: T
10993
10996
  }, W)), /* @__PURE__ */ o.createElement(d.ConfigContext.Provider, {
10994
10997
  value: G
10995
10998
  }, W);
@@ -11027,35 +11030,35 @@ function requireInput() {
11027
11030
  }
11028
11031
  function g(b, E, w) {
11029
11032
  if (w) {
11030
- var T = E;
11033
+ var S = E;
11031
11034
  if (E.type === "click") {
11032
- T = Object.create(E), T.target = b, T.currentTarget = b;
11033
- var S = b.value;
11034
- b.value = "", w(T), b.value = S;
11035
+ S = Object.create(E), S.target = b, S.currentTarget = b;
11036
+ var T = b.value;
11037
+ b.value = "", w(S), b.value = T;
11035
11038
  return;
11036
11039
  }
11037
- w(T);
11040
+ w(S);
11038
11041
  }
11039
11042
  }
11040
- function I(b, E, w, T, S) {
11043
+ function I(b, E, w, S, T) {
11041
11044
  var k;
11042
- return (0, d.default)(b, (k = {}, (0, l.default)(k, "".concat(b, "-sm"), w === "small"), (0, l.default)(k, "".concat(b, "-lg"), w === "large"), (0, l.default)(k, "".concat(b, "-disabled"), T), (0, l.default)(k, "".concat(b, "-rtl"), S === "rtl"), (0, l.default)(k, "".concat(b, "-borderless"), !E), k));
11045
+ return (0, d.default)(b, (k = {}, (0, l.default)(k, "".concat(b, "-sm"), w === "small"), (0, l.default)(k, "".concat(b, "-lg"), w === "large"), (0, l.default)(k, "".concat(b, "-disabled"), S), (0, l.default)(k, "".concat(b, "-rtl"), T === "rtl"), (0, l.default)(k, "".concat(b, "-borderless"), !E), k));
11043
11046
  }
11044
11047
  function C(b, E) {
11045
11048
  if (!!b) {
11046
11049
  b.focus(E);
11047
- var w = E || {}, T = w.cursor;
11048
- if (T) {
11049
- var S = b.value.length;
11050
- switch (T) {
11050
+ var w = E || {}, S = w.cursor;
11051
+ if (S) {
11052
+ var T = b.value.length;
11053
+ switch (S) {
11051
11054
  case "start":
11052
11055
  b.setSelectionRange(0, 0);
11053
11056
  break;
11054
11057
  case "end":
11055
- b.setSelectionRange(S, S);
11058
+ b.setSelectionRange(T, T);
11056
11059
  break;
11057
11060
  default:
11058
- b.setSelectionRange(0, S);
11061
+ b.setSelectionRange(0, T);
11059
11062
  }
11060
11063
  }
11061
11064
  }
@@ -11063,30 +11066,30 @@ function requireInput() {
11063
11066
  var y = /* @__PURE__ */ function(b) {
11064
11067
  (0, s.default)(w, b);
11065
11068
  var E = (0, c.default)(w);
11066
- function w(T) {
11067
- var S;
11068
- (0, o.default)(this, w), S = E.call(this, T), S.direction = "ltr", S.focus = function(N) {
11069
- C(S.input, N);
11070
- }, S.saveClearableInput = function(N) {
11071
- S.clearableInput = N;
11072
- }, S.saveInput = function(N) {
11073
- S.input = N;
11074
- }, S.onFocus = function(N) {
11075
- var D = S.props.onFocus;
11076
- S.setState({
11069
+ function w(S) {
11070
+ var T;
11071
+ (0, o.default)(this, w), T = E.call(this, S), T.direction = "ltr", T.focus = function($) {
11072
+ C(T.input, $);
11073
+ }, T.saveClearableInput = function($) {
11074
+ T.clearableInput = $;
11075
+ }, T.saveInput = function($) {
11076
+ T.input = $;
11077
+ }, T.onFocus = function($) {
11078
+ var D = T.props.onFocus;
11079
+ T.setState({
11077
11080
  focused: !0
11078
- }, S.clearPasswordValueAttribute), D && D(N);
11079
- }, S.onBlur = function(N) {
11080
- var D = S.props.onBlur;
11081
- S.setState({
11081
+ }, T.clearPasswordValueAttribute), D && D($);
11082
+ }, T.onBlur = function($) {
11083
+ var D = T.props.onBlur;
11084
+ T.setState({
11082
11085
  focused: !1
11083
- }, S.clearPasswordValueAttribute), D && D(N);
11084
- }, S.handleReset = function(N) {
11085
- S.setValue("", function() {
11086
- S.focus();
11087
- }), g(S.input, N, S.props.onChange);
11088
- }, S.renderInput = function(N, D, M) {
11089
- var L = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = S.props, $ = q.className, B = q.addonBefore, U = q.addonAfter, G = q.size, z = q.disabled, W = (0, f.default)(S.props, [
11086
+ }, T.clearPasswordValueAttribute), D && D($);
11087
+ }, T.handleReset = function($) {
11088
+ T.setValue("", function() {
11089
+ T.focus();
11090
+ }), g(T.input, $, T.props.onChange);
11091
+ }, T.renderInput = function($, D, M) {
11092
+ var L = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, q = T.props, N = q.className, B = q.addonBefore, U = q.addonAfter, G = q.size, z = q.disabled, W = (0, f.default)(T.props, [
11090
11093
  "prefixCls",
11091
11094
  "onPressEnter",
11092
11095
  "addonBefore",
@@ -11102,47 +11105,47 @@ function requireInput() {
11102
11105
  return /* @__PURE__ */ u.createElement("input", (0, r.default)({
11103
11106
  autoComplete: L.autoComplete
11104
11107
  }, W, {
11105
- onChange: S.handleChange,
11106
- onFocus: S.onFocus,
11107
- onBlur: S.onBlur,
11108
- onKeyDown: S.handleKeyDown,
11109
- className: (0, d.default)(I(N, M, G || D, z, S.direction), (0, l.default)({}, $, $ && !B && !U)),
11110
- ref: S.saveInput
11108
+ onChange: T.handleChange,
11109
+ onFocus: T.onFocus,
11110
+ onBlur: T.onBlur,
11111
+ onKeyDown: T.handleKeyDown,
11112
+ className: (0, d.default)(I($, M, G || D, z, T.direction), (0, l.default)({}, N, N && !B && !U)),
11113
+ ref: T.saveInput
11111
11114
  }));
11112
- }, S.clearPasswordValueAttribute = function() {
11113
- S.removePasswordTimeout = setTimeout(function() {
11114
- S.input && S.input.getAttribute("type") === "password" && S.input.hasAttribute("value") && S.input.removeAttribute("value");
11115
+ }, T.clearPasswordValueAttribute = function() {
11116
+ T.removePasswordTimeout = setTimeout(function() {
11117
+ T.input && T.input.getAttribute("type") === "password" && T.input.hasAttribute("value") && T.input.removeAttribute("value");
11115
11118
  });
11116
- }, S.handleChange = function(N) {
11117
- S.setValue(N.target.value, S.clearPasswordValueAttribute), g(S.input, N, S.props.onChange);
11118
- }, S.handleKeyDown = function(N) {
11119
- var D = S.props, M = D.onPressEnter, L = D.onKeyDown;
11120
- N.keyCode === 13 && M && M(N), L && L(N);
11121
- }, S.renderComponent = function(N) {
11122
- var D = N.getPrefixCls, M = N.direction, L = N.input, q = S.state, $ = q.value, B = q.focused, U = S.props, G = U.prefixCls, z = U.bordered, W = z === void 0 ? !0 : z, K = D("input", G);
11123
- return S.direction = M, /* @__PURE__ */ u.createElement(m.default.Consumer, null, function(V) {
11119
+ }, T.handleChange = function($) {
11120
+ T.setValue($.target.value, T.clearPasswordValueAttribute), g(T.input, $, T.props.onChange);
11121
+ }, T.handleKeyDown = function($) {
11122
+ var D = T.props, M = D.onPressEnter, L = D.onKeyDown;
11123
+ $.keyCode === 13 && M && M($), L && L($);
11124
+ }, T.renderComponent = function($) {
11125
+ var D = $.getPrefixCls, M = $.direction, L = $.input, q = T.state, N = q.value, B = q.focused, U = T.props, G = U.prefixCls, z = U.bordered, W = z === void 0 ? !0 : z, K = D("input", G);
11126
+ return T.direction = M, /* @__PURE__ */ u.createElement(m.default.Consumer, null, function(V) {
11124
11127
  return /* @__PURE__ */ u.createElement(p.default, (0, r.default)({
11125
11128
  size: V
11126
- }, S.props, {
11129
+ }, T.props, {
11127
11130
  prefixCls: K,
11128
11131
  inputType: "input",
11129
- value: x($),
11130
- element: S.renderInput(K, V, W, L),
11131
- handleReset: S.handleReset,
11132
- ref: S.saveClearableInput,
11132
+ value: x(N),
11133
+ element: T.renderInput(K, V, W, L),
11134
+ handleReset: T.handleReset,
11135
+ ref: T.saveClearableInput,
11133
11136
  direction: M,
11134
11137
  focused: B,
11135
- triggerFocus: S.focus,
11138
+ triggerFocus: T.focus,
11136
11139
  bordered: W
11137
11140
  }));
11138
11141
  });
11139
11142
  };
11140
- var k = typeof T.value > "u" ? T.defaultValue : T.value;
11141
- return S.state = {
11143
+ var k = typeof S.value > "u" ? S.defaultValue : S.value;
11144
+ return T.state = {
11142
11145
  value: k,
11143
11146
  focused: !1,
11144
- prevValue: T.value
11145
- }, S;
11147
+ prevValue: S.value
11148
+ }, T;
11146
11149
  }
11147
11150
  return (0, a.default)(w, [{
11148
11151
  key: "componentDidMount",
@@ -11155,8 +11158,8 @@ function requireInput() {
11155
11158
  }
11156
11159
  }, {
11157
11160
  key: "getSnapshotBeforeUpdate",
11158
- value: function(S) {
11159
- return (0, p.hasPrefixSuffix)(S) !== (0, p.hasPrefixSuffix)(this.props) && (0, v.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
11161
+ value: function(T) {
11162
+ return (0, p.hasPrefixSuffix)(T) !== (0, p.hasPrefixSuffix)(this.props) && (0, v.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
11160
11163
  }
11161
11164
  }, {
11162
11165
  key: "componentWillUnmount",
@@ -11170,8 +11173,8 @@ function requireInput() {
11170
11173
  }
11171
11174
  }, {
11172
11175
  key: "setSelectionRange",
11173
- value: function(S, k, N) {
11174
- this.input.setSelectionRange(S, k, N);
11176
+ value: function(T, k, $) {
11177
+ this.input.setSelectionRange(T, k, $);
11175
11178
  }
11176
11179
  }, {
11177
11180
  key: "select",
@@ -11180,9 +11183,9 @@ function requireInput() {
11180
11183
  }
11181
11184
  }, {
11182
11185
  key: "setValue",
11183
- value: function(S, k) {
11186
+ value: function(T, k) {
11184
11187
  this.props.value === void 0 ? this.setState({
11185
- value: S
11188
+ value: T
11186
11189
  }, k) : k == null || k();
11187
11190
  }
11188
11191
  }, {
@@ -11192,11 +11195,11 @@ function requireInput() {
11192
11195
  }
11193
11196
  }], [{
11194
11197
  key: "getDerivedStateFromProps",
11195
- value: function(S, k) {
11196
- var N = k.prevValue, D = {
11197
- prevValue: S.value
11198
+ value: function(T, k) {
11199
+ var $ = k.prevValue, D = {
11200
+ prevValue: T.value
11198
11201
  };
11199
- return (S.value !== void 0 || N !== S.value) && (D.value = S.value), D;
11202
+ return (T.value !== void 0 || $ !== T.value) && (D.value = T.value), D;
11200
11203
  }
11201
11204
  }]), w;
11202
11205
  }(u.Component);
@@ -11248,18 +11251,18 @@ function requireClearableLabeledInput() {
11248
11251
  return (0, o.default)(this, O), b = y.apply(this, arguments), b.containerRef = /* @__PURE__ */ l.createRef(), b.onInputMouseUp = function(E) {
11249
11252
  var w;
11250
11253
  if (!((w = b.containerRef.current) === null || w === void 0) && w.contains(E.target)) {
11251
- var T = b.props.triggerFocus;
11252
- T == null || T();
11254
+ var S = b.props.triggerFocus;
11255
+ S == null || S();
11253
11256
  }
11254
11257
  }, b;
11255
11258
  }
11256
11259
  return (0, a.default)(O, [{
11257
11260
  key: "renderClearIcon",
11258
11261
  value: function(E) {
11259
- var w = this.props, T = w.allowClear, S = w.value, k = w.disabled, N = w.readOnly, D = w.handleReset;
11260
- if (!T)
11262
+ var w = this.props, S = w.allowClear, T = w.value, k = w.disabled, $ = w.readOnly, D = w.handleReset;
11263
+ if (!S)
11261
11264
  return null;
11262
- var M = !k && !N && S, L = "".concat(E, "-clear-icon");
11265
+ var M = !k && !$ && T, L = "".concat(E, "-clear-icon");
11263
11266
  return /* @__PURE__ */ l.createElement(d.default, {
11264
11267
  onClick: D,
11265
11268
  className: (0, u.default)((0, r.default)({}, "".concat(L, "-hidden"), !M), L),
@@ -11269,22 +11272,22 @@ function requireClearableLabeledInput() {
11269
11272
  }, {
11270
11273
  key: "renderSuffix",
11271
11274
  value: function(E) {
11272
- var w = this.props, T = w.suffix, S = w.allowClear;
11273
- return T || S ? /* @__PURE__ */ l.createElement("span", {
11275
+ var w = this.props, S = w.suffix, T = w.allowClear;
11276
+ return S || T ? /* @__PURE__ */ l.createElement("span", {
11274
11277
  className: "".concat(E, "-suffix")
11275
- }, this.renderClearIcon(E), T) : null;
11278
+ }, this.renderClearIcon(E), S) : null;
11276
11279
  }
11277
11280
  }, {
11278
11281
  key: "renderLabeledIcon",
11279
11282
  value: function(E, w) {
11280
- var T, S = this.props, k = S.focused, N = S.value, D = S.prefix, M = S.className, L = S.size, q = S.suffix, $ = S.disabled, B = S.allowClear, U = S.direction, G = S.style, z = S.readOnly, W = S.bordered, K = this.renderSuffix(E);
11283
+ var S, T = this.props, k = T.focused, $ = T.value, D = T.prefix, M = T.className, L = T.size, q = T.suffix, N = T.disabled, B = T.allowClear, U = T.direction, G = T.style, z = T.readOnly, W = T.bordered, K = this.renderSuffix(E);
11281
11284
  if (!v(this.props))
11282
11285
  return (0, h.cloneElement)(w, {
11283
- value: N
11286
+ value: $
11284
11287
  });
11285
11288
  var V = D ? /* @__PURE__ */ l.createElement("span", {
11286
11289
  className: "".concat(E, "-prefix")
11287
- }, D) : null, H = (0, u.default)("".concat(E, "-affix-wrapper"), (T = {}, (0, r.default)(T, "".concat(E, "-affix-wrapper-focused"), k), (0, r.default)(T, "".concat(E, "-affix-wrapper-disabled"), $), (0, r.default)(T, "".concat(E, "-affix-wrapper-sm"), L === "small"), (0, r.default)(T, "".concat(E, "-affix-wrapper-lg"), L === "large"), (0, r.default)(T, "".concat(E, "-affix-wrapper-input-with-clear-btn"), q && B && N), (0, r.default)(T, "".concat(E, "-affix-wrapper-rtl"), U === "rtl"), (0, r.default)(T, "".concat(E, "-affix-wrapper-readonly"), z), (0, r.default)(T, "".concat(E, "-affix-wrapper-borderless"), !W), (0, r.default)(T, "".concat(M), !x(this.props) && M), T));
11290
+ }, D) : null, H = (0, u.default)("".concat(E, "-affix-wrapper"), (S = {}, (0, r.default)(S, "".concat(E, "-affix-wrapper-focused"), k), (0, r.default)(S, "".concat(E, "-affix-wrapper-disabled"), N), (0, r.default)(S, "".concat(E, "-affix-wrapper-sm"), L === "small"), (0, r.default)(S, "".concat(E, "-affix-wrapper-lg"), L === "large"), (0, r.default)(S, "".concat(E, "-affix-wrapper-input-with-clear-btn"), q && B && $), (0, r.default)(S, "".concat(E, "-affix-wrapper-rtl"), U === "rtl"), (0, r.default)(S, "".concat(E, "-affix-wrapper-readonly"), z), (0, r.default)(S, "".concat(E, "-affix-wrapper-borderless"), !W), (0, r.default)(S, "".concat(M), !x(this.props) && M), S));
11288
11291
  return /* @__PURE__ */ l.createElement("span", {
11289
11292
  ref: this.containerRef,
11290
11293
  className: H,
@@ -11292,21 +11295,21 @@ function requireClearableLabeledInput() {
11292
11295
  onMouseUp: this.onInputMouseUp
11293
11296
  }, V, (0, h.cloneElement)(w, {
11294
11297
  style: null,
11295
- value: N,
11296
- className: (0, p.getInputClassName)(E, W, L, $)
11298
+ value: $,
11299
+ className: (0, p.getInputClassName)(E, W, L, N)
11297
11300
  }), K);
11298
11301
  }
11299
11302
  }, {
11300
11303
  key: "renderInputWithLabel",
11301
11304
  value: function(E, w) {
11302
- var T, S = this.props, k = S.addonBefore, N = S.addonAfter, D = S.style, M = S.size, L = S.className, q = S.direction;
11305
+ var S, T = this.props, k = T.addonBefore, $ = T.addonAfter, D = T.style, M = T.size, L = T.className, q = T.direction;
11303
11306
  if (!x(this.props))
11304
11307
  return w;
11305
- var $ = "".concat(E, "-group"), B = "".concat($, "-addon"), U = k ? /* @__PURE__ */ l.createElement("span", {
11308
+ var N = "".concat(E, "-group"), B = "".concat(N, "-addon"), U = k ? /* @__PURE__ */ l.createElement("span", {
11306
11309
  className: B
11307
- }, k) : null, G = N ? /* @__PURE__ */ l.createElement("span", {
11310
+ }, k) : null, G = $ ? /* @__PURE__ */ l.createElement("span", {
11308
11311
  className: B
11309
- }, N) : null, z = (0, u.default)("".concat(E, "-wrapper"), $, (0, r.default)({}, "".concat($, "-rtl"), q === "rtl")), W = (0, u.default)("".concat(E, "-group-wrapper"), (T = {}, (0, r.default)(T, "".concat(E, "-group-wrapper-sm"), M === "small"), (0, r.default)(T, "".concat(E, "-group-wrapper-lg"), M === "large"), (0, r.default)(T, "".concat(E, "-group-wrapper-rtl"), q === "rtl"), T), L);
11312
+ }, $) : null, z = (0, u.default)("".concat(E, "-wrapper"), N, (0, r.default)({}, "".concat(N, "-rtl"), q === "rtl")), W = (0, u.default)("".concat(E, "-group-wrapper"), (S = {}, (0, r.default)(S, "".concat(E, "-group-wrapper-sm"), M === "small"), (0, r.default)(S, "".concat(E, "-group-wrapper-lg"), M === "large"), (0, r.default)(S, "".concat(E, "-group-wrapper-rtl"), q === "rtl"), S), L);
11310
11313
  return /* @__PURE__ */ l.createElement("span", {
11311
11314
  className: W,
11312
11315
  style: D
@@ -11319,14 +11322,14 @@ function requireClearableLabeledInput() {
11319
11322
  }, {
11320
11323
  key: "renderTextAreaWithClearIcon",
11321
11324
  value: function(E, w) {
11322
- var T, S = this.props, k = S.value, N = S.allowClear, D = S.className, M = S.style, L = S.direction, q = S.bordered;
11323
- if (!N)
11325
+ var S, T = this.props, k = T.value, $ = T.allowClear, D = T.className, M = T.style, L = T.direction, q = T.bordered;
11326
+ if (!$)
11324
11327
  return (0, h.cloneElement)(w, {
11325
11328
  value: k
11326
11329
  });
11327
- var $ = (0, u.default)("".concat(E, "-affix-wrapper"), "".concat(E, "-affix-wrapper-textarea-with-clear-btn"), (T = {}, (0, r.default)(T, "".concat(E, "-affix-wrapper-rtl"), L === "rtl"), (0, r.default)(T, "".concat(E, "-affix-wrapper-borderless"), !q), (0, r.default)(T, "".concat(D), !x(this.props) && D), T));
11330
+ var N = (0, u.default)("".concat(E, "-affix-wrapper"), "".concat(E, "-affix-wrapper-textarea-with-clear-btn"), (S = {}, (0, r.default)(S, "".concat(E, "-affix-wrapper-rtl"), L === "rtl"), (0, r.default)(S, "".concat(E, "-affix-wrapper-borderless"), !q), (0, r.default)(S, "".concat(D), !x(this.props) && D), S));
11328
11331
  return /* @__PURE__ */ l.createElement("span", {
11329
- className: $,
11332
+ className: N,
11330
11333
  style: M
11331
11334
  }, (0, h.cloneElement)(w, {
11332
11335
  style: null,
@@ -11336,8 +11339,8 @@ function requireClearableLabeledInput() {
11336
11339
  }, {
11337
11340
  key: "render",
11338
11341
  value: function() {
11339
- var E = this.props, w = E.prefixCls, T = E.inputType, S = E.element;
11340
- return T === m[0] ? this.renderTextAreaWithClearIcon(w, S) : this.renderInputWithLabel(w, this.renderLabeledIcon(w, S));
11342
+ var E = this.props, w = E.prefixCls, S = E.inputType, T = E.element;
11343
+ return S === m[0] ? this.renderTextAreaWithClearIcon(w, T) : this.renderInputWithLabel(w, this.renderLabeledIcon(w, T));
11341
11344
  }
11342
11345
  }]), O;
11343
11346
  }(l.Component), I = g;
@@ -11358,7 +11361,7 @@ function requireClearableLabeledInput() {
11358
11361
  O.indexOf(E[w]) < 0 && Object.prototype.propertyIsEnumerable.call(y, E[w]) && (b[E[w]] = y[E[w]]);
11359
11362
  return b;
11360
11363
  }, I = /* @__PURE__ */ l.forwardRef(function(y, O) {
11361
- var b, E = y.prefixCls, w = y.bordered, T = w === void 0 ? !0 : w, S = y.showCount, k = S === void 0 ? !1 : S, N = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), $ = l.useContext(m.ConfigContext), B = $.getPrefixCls, U = $.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null), K = (0, p.default)(q.defaultValue, {
11364
+ var b, E = y.prefixCls, w = y.bordered, S = w === void 0 ? !0 : w, T = y.showCount, k = T === void 0 ? !1 : T, $ = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), N = l.useContext(m.ConfigContext), B = N.getPrefixCls, U = N.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null), K = (0, p.default)(q.defaultValue, {
11362
11365
  value: q.value
11363
11366
  }), V = (0, c.default)(K, 2), H = V[0], P = V[1], A = l.useRef(q.value);
11364
11367
  l.useEffect(function() {
@@ -11389,14 +11392,14 @@ function requireClearableLabeledInput() {
11389
11392
  };
11390
11393
  });
11391
11394
  var _ = /* @__PURE__ */ l.createElement(u.default, (0, a.default)({}, (0, d.default)(q, ["allowClear"]), {
11392
- maxLength: N,
11393
- className: (0, f.default)((b = {}, (0, s.default)(b, "".concat(F, "-borderless"), !T), (0, s.default)(b, D, D && !k), (0, s.default)(b, "".concat(F, "-sm"), G === "small" || L === "small"), (0, s.default)(b, "".concat(F, "-lg"), G === "large" || L === "large"), b)),
11395
+ maxLength: $,
11396
+ className: (0, f.default)((b = {}, (0, s.default)(b, "".concat(F, "-borderless"), !S), (0, s.default)(b, D, D && !k), (0, s.default)(b, "".concat(F, "-sm"), G === "small" || L === "small"), (0, s.default)(b, "".concat(F, "-lg"), G === "large" || L === "large"), b)),
11394
11397
  style: k ? void 0 : M,
11395
11398
  prefixCls: F,
11396
11399
  onChange: Y,
11397
11400
  ref: z
11398
- })), Z = (0, v.fixControlledValue)(H), Q = Number(N) > 0;
11399
- Z = Q ? (0, o.default)(Z).slice(0, N).join("") : Z;
11401
+ })), Z = (0, v.fixControlledValue)(H), Q = Number($) > 0;
11402
+ Z = Q ? (0, o.default)(Z).slice(0, $).join("") : Z;
11400
11403
  var ee = /* @__PURE__ */ l.createElement(h.default, (0, a.default)({}, q, {
11401
11404
  prefixCls: F,
11402
11405
  direction: U,
@@ -11405,14 +11408,14 @@ function requireClearableLabeledInput() {
11405
11408
  element: _,
11406
11409
  handleReset: X,
11407
11410
  ref: W,
11408
- bordered: T
11411
+ bordered: S
11409
11412
  }));
11410
11413
  if (k) {
11411
- var J = Math.min(Z.length, N != null ? N : 1 / 0), te = "";
11414
+ var J = Math.min(Z.length, $ != null ? $ : 1 / 0), te = "";
11412
11415
  return (0, r.default)(k) === "object" ? te = k.formatter({
11413
11416
  count: J,
11414
- maxLength: N
11415
- }) : te = "".concat(J).concat(Q ? " / ".concat(N) : ""), /* @__PURE__ */ l.createElement("div", {
11417
+ maxLength: $
11418
+ }) : te = "".concat(J).concat(Q ? " / ".concat($) : ""), /* @__PURE__ */ l.createElement("div", {
11416
11419
  className: (0, f.default)("".concat(F, "-textarea"), (0, s.default)({}, "".concat(F, "-textarea-rtl"), U === "rtl"), "".concat(F, "-textarea-show-count"), D),
11417
11420
  style: M,
11418
11421
  "data-count": te
@@ -11471,33 +11474,33 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11471
11474
  p(!1);
11472
11475
  }
11473
11476
  async function C() {
11474
- const T = (await ConnectionProvider.getHandler().search({
11477
+ const S = (await ConnectionProvider.getHandler().search({
11475
11478
  params: [["translatable", "=", "1"]],
11476
11479
  fields: ["code", "name"],
11477
11480
  model: "res.lang"
11478
- })).map((S) => ({
11479
- code: S.code,
11480
- name: S.name
11481
+ })).map((T) => ({
11482
+ code: T.code,
11483
+ name: T.name
11481
11484
  }));
11482
- return d == null || d(T), T;
11485
+ return d == null || d(S), S;
11483
11486
  }
11484
11487
  async function y(w) {
11485
- const T = {};
11486
- for (const S of w) {
11488
+ const S = {};
11489
+ for (const T of w) {
11487
11490
  const k = (await ConnectionProvider.getHandler().readObjects({
11488
11491
  model: r,
11489
11492
  ids: [o],
11490
11493
  fieldsToRetrieve: [a],
11491
11494
  context: {
11492
- lang: S.code
11495
+ lang: T.code
11493
11496
  }
11494
11497
  }))[0];
11495
- T[S.code] = k[a] || "";
11498
+ S[T.code] = k[a] || "";
11496
11499
  }
11497
- g.current = T, x(T);
11500
+ g.current = S, x(S);
11498
11501
  }
11499
11502
  function O() {
11500
- return u.map((w, T) => /* @__PURE__ */ jsxs(Row, {
11503
+ return u.map((w, S) => /* @__PURE__ */ jsxs(Row, {
11501
11504
  style: {
11502
11505
  paddingBottom: 20
11503
11506
  },
@@ -11512,16 +11515,16 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
11512
11515
  children: /* @__PURE__ */ jsx(TextArea$1, {
11513
11516
  rows: 4,
11514
11517
  value: v[w.code] || "",
11515
- onChange: (S) => {
11518
+ onChange: (T) => {
11516
11519
  x({
11517
11520
  ...v,
11518
- [w.code]: S.target.value
11521
+ [w.code]: T.target.value
11519
11522
  });
11520
11523
  },
11521
11524
  disabled: h
11522
11525
  })
11523
11526
  })]
11524
- }, T));
11527
+ }, S));
11525
11528
  }
11526
11529
  async function b() {
11527
11530
  m(!0);
@@ -11866,8 +11869,8 @@ function debounce(e, t, n) {
11866
11869
  return u = b, c = setTimeout(g, t), d ? h(b) : s;
11867
11870
  }
11868
11871
  function v(b) {
11869
- var E = b - l, w = b - u, T = t - E;
11870
- return f ? nativeMin(T, a - w) : T;
11872
+ var E = b - l, w = b - u, S = t - E;
11873
+ return f ? nativeMin(S, a - w) : S;
11871
11874
  }
11872
11875
  function x(b) {
11873
11876
  var E = b - l, w = b - u;
@@ -12499,17 +12502,17 @@ function require_stream_writable() {
12499
12502
  w.prototype.pipe = function() {
12500
12503
  y(this, new v());
12501
12504
  };
12502
- function T(P, A) {
12505
+ function S(P, A) {
12503
12506
  var j = new I();
12504
12507
  y(P, j), process.nextTick(A, j);
12505
12508
  }
12506
- function S(P, A, j, Y) {
12509
+ function T(P, A, j, Y) {
12507
12510
  var X;
12508
12511
  return j === null ? X = new g() : typeof j != "string" && !A.objectMode && (X = new p("chunk", ["string", "Buffer"], j)), X ? (y(P, X), process.nextTick(Y, X), !1) : !0;
12509
12512
  }
12510
12513
  w.prototype.write = function(P, A, j) {
12511
12514
  var Y = this._writableState, X = !1, F = !Y.objectMode && c(P);
12512
- return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A = Y.defaultEncoding), typeof j != "function" && (j = O), Y.ending ? T(this, j) : (F || S(this, Y, P, j)) && (Y.pendingcb++, X = N(this, Y, F, P, A, j)), X;
12515
+ return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A = Y.defaultEncoding), typeof j != "function" && (j = O), Y.ending ? S(this, j) : (F || T(this, Y, P, j)) && (Y.pendingcb++, X = $(this, Y, F, P, A, j)), X;
12513
12516
  }, w.prototype.cork = function() {
12514
12517
  this._writableState.corked++;
12515
12518
  }, w.prototype.uncork = function() {
@@ -12534,7 +12537,7 @@ function require_stream_writable() {
12534
12537
  return this._writableState.highWaterMark;
12535
12538
  }
12536
12539
  });
12537
- function N(P, A, j, Y, X, F) {
12540
+ function $(P, A, j, Y, X, F) {
12538
12541
  if (!j) {
12539
12542
  var _ = k(A, Y, X);
12540
12543
  Y !== _ && (j = !0, X = "buffer", Y = _);
@@ -12572,10 +12575,10 @@ function require_stream_writable() {
12572
12575
  M(P, j, Y, A, X);
12573
12576
  else {
12574
12577
  var F = G(j) || P.destroyed;
12575
- !F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j), Y ? process.nextTick($, P, j, F, X) : $(P, j, F, X);
12578
+ !F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j), Y ? process.nextTick(N, P, j, F, X) : N(P, j, F, X);
12576
12579
  }
12577
12580
  }
12578
- function $(P, A, j, Y) {
12581
+ function N(P, A, j, Y) {
12579
12582
  j || B(P, A), A.pendingcb--, Y(), K(P, A);
12580
12583
  }
12581
12584
  function B(P, A) {
@@ -13072,9 +13075,9 @@ var _stream_readable, hasRequired_stream_readable;
13072
13075
  function require_stream_readable() {
13073
13076
  if (hasRequired_stream_readable)
13074
13077
  return _stream_readable;
13075
- hasRequired_stream_readable = 1, _stream_readable = T;
13078
+ hasRequired_stream_readable = 1, _stream_readable = S;
13076
13079
  var e;
13077
- T.ReadableState = w, events.exports.EventEmitter;
13080
+ S.ReadableState = w, events.exports.EventEmitter;
13078
13081
  var t = function(_, Z) {
13079
13082
  return _.listeners(Z).length;
13080
13083
  }, n = streamBrowser, r = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
@@ -13089,7 +13092,7 @@ function require_stream_readable() {
13089
13092
  c && c.debuglog ? l = c.debuglog("stream") : l = function() {
13090
13093
  };
13091
13094
  var u = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, v = h.ERR_STREAM_PUSH_AFTER_EOF, x = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, C, y;
13092
- inherits_browser.exports(T, n);
13095
+ inherits_browser.exports(S, n);
13093
13096
  var O = d.errorOrDestroy, b = ["error", "close", "destroy", "pause", "resume"];
13094
13097
  function E(F, _, Z) {
13095
13098
  if (typeof F.prependListener == "function")
@@ -13099,13 +13102,13 @@ function require_stream_readable() {
13099
13102
  function w(F, _, Z) {
13100
13103
  e = e || require_stream_duplex(), F = F || {}, typeof Z != "boolean" && (Z = _ instanceof e), this.objectMode = !!F.objectMode, Z && (this.objectMode = this.objectMode || !!F.readableObjectMode), this.highWaterMark = p(this, F, "readableHighWaterMark", Z), this.buffer = new u(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = F.emitClose !== !1, this.autoDestroy = !!F.autoDestroy, this.destroyed = !1, this.defaultEncoding = F.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, F.encoding && (I || (I = requireString_decoder().StringDecoder), this.decoder = new I(F.encoding), this.encoding = F.encoding);
13101
13104
  }
13102
- function T(F) {
13103
- if (e = e || require_stream_duplex(), !(this instanceof T))
13104
- return new T(F);
13105
+ function S(F) {
13106
+ if (e = e || require_stream_duplex(), !(this instanceof S))
13107
+ return new S(F);
13105
13108
  var _ = this instanceof e;
13106
13109
  this._readableState = new w(F, this, _), this.readable = !0, F && (typeof F.read == "function" && (this._read = F.read), typeof F.destroy == "function" && (this._destroy = F.destroy)), n.call(this);
13107
13110
  }
13108
- Object.defineProperty(T.prototype, "destroyed", {
13111
+ Object.defineProperty(S.prototype, "destroyed", {
13109
13112
  enumerable: !1,
13110
13113
  get: function() {
13111
13114
  return this._readableState === void 0 ? !1 : this._readableState.destroyed;
@@ -13113,22 +13116,22 @@ function require_stream_readable() {
13113
13116
  set: function(_) {
13114
13117
  !this._readableState || (this._readableState.destroyed = _);
13115
13118
  }
13116
- }), T.prototype.destroy = d.destroy, T.prototype._undestroy = d.undestroy, T.prototype._destroy = function(F, _) {
13119
+ }), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(F, _) {
13117
13120
  _(F);
13118
- }, T.prototype.push = function(F, _) {
13121
+ }, S.prototype.push = function(F, _) {
13119
13122
  var Z = this._readableState, Q;
13120
- return Z.objectMode ? Q = !0 : typeof F == "string" && (_ = _ || Z.defaultEncoding, _ !== Z.encoding && (F = r.from(F, _), _ = ""), Q = !0), S(this, F, _, !1, Q);
13121
- }, T.prototype.unshift = function(F) {
13122
- return S(this, F, null, !0, !1);
13123
+ return Z.objectMode ? Q = !0 : typeof F == "string" && (_ = _ || Z.defaultEncoding, _ !== Z.encoding && (F = r.from(F, _), _ = ""), Q = !0), T(this, F, _, !1, Q);
13124
+ }, S.prototype.unshift = function(F) {
13125
+ return T(this, F, null, !0, !1);
13123
13126
  };
13124
- function S(F, _, Z, Q, ee) {
13127
+ function T(F, _, Z, Q, ee) {
13125
13128
  l("readableAddChunk", _);
13126
13129
  var J = F._readableState;
13127
13130
  if (_ === null)
13128
13131
  J.reading = !1, q(F, J);
13129
13132
  else {
13130
13133
  var te;
13131
- if (ee || (te = N(J, _)), te)
13134
+ if (ee || (te = $(J, _)), te)
13132
13135
  O(F, te);
13133
13136
  else if (J.objectMode || _ && _.length > 0)
13134
13137
  if (typeof _ != "string" && !J.objectMode && Object.getPrototypeOf(_) !== r.prototype && (_ = a(_)), Q)
@@ -13146,15 +13149,15 @@ function require_stream_readable() {
13146
13149
  return !J.ended && (J.length < J.highWaterMark || J.length === 0);
13147
13150
  }
13148
13151
  function k(F, _, Z, Q) {
13149
- _.flowing && _.length === 0 && !_.sync ? (_.awaitDrain = 0, F.emit("data", Z)) : (_.length += _.objectMode ? 1 : Z.length, Q ? _.buffer.unshift(Z) : _.buffer.push(Z), _.needReadable && $(F)), U(F, _);
13152
+ _.flowing && _.length === 0 && !_.sync ? (_.awaitDrain = 0, F.emit("data", Z)) : (_.length += _.objectMode ? 1 : Z.length, Q ? _.buffer.unshift(Z) : _.buffer.push(Z), _.needReadable && N(F)), U(F, _);
13150
13153
  }
13151
- function N(F, _) {
13154
+ function $(F, _) {
13152
13155
  var Z;
13153
13156
  return !s(_) && typeof _ != "string" && _ !== void 0 && !F.objectMode && (Z = new m("chunk", ["string", "Buffer", "Uint8Array"], _)), Z;
13154
13157
  }
13155
- T.prototype.isPaused = function() {
13158
+ S.prototype.isPaused = function() {
13156
13159
  return this._readableState.flowing === !1;
13157
- }, T.prototype.setEncoding = function(F) {
13160
+ }, S.prototype.setEncoding = function(F) {
13158
13161
  I || (I = requireString_decoder().StringDecoder);
13159
13162
  var _ = new I(F);
13160
13163
  this._readableState.decoder = _, this._readableState.encoding = this._readableState.decoder.encoding;
@@ -13169,11 +13172,11 @@ function require_stream_readable() {
13169
13172
  function L(F, _) {
13170
13173
  return F <= 0 || _.length === 0 && _.ended ? 0 : _.objectMode ? 1 : F !== F ? _.flowing && _.length ? _.buffer.head.data.length : _.length : (F > _.highWaterMark && (_.highWaterMark = M(F)), F <= _.length ? F : _.ended ? _.length : (_.needReadable = !0, 0));
13171
13174
  }
13172
- T.prototype.read = function(F) {
13175
+ S.prototype.read = function(F) {
13173
13176
  l("read", F), F = parseInt(F, 10);
13174
13177
  var _ = this._readableState, Z = F;
13175
13178
  if (F !== 0 && (_.emittedReadable = !1), F === 0 && _.needReadable && ((_.highWaterMark !== 0 ? _.length >= _.highWaterMark : _.length > 0) || _.ended))
13176
- return l("read: emitReadable", _.length, _.ended), _.length === 0 && _.ended ? j(this) : $(this), null;
13179
+ return l("read: emitReadable", _.length, _.ended), _.length === 0 && _.ended ? j(this) : N(this), null;
13177
13180
  if (F = L(F, _), F === 0 && _.ended)
13178
13181
  return _.length === 0 && j(this), null;
13179
13182
  var Q = _.needReadable;
@@ -13187,10 +13190,10 @@ function require_stream_readable() {
13187
13190
  var Z = _.decoder.end();
13188
13191
  Z && Z.length && (_.buffer.push(Z), _.length += _.objectMode ? 1 : Z.length);
13189
13192
  }
13190
- _.ended = !0, _.sync ? $(F) : (_.needReadable = !1, _.emittedReadable || (_.emittedReadable = !0, B(F)));
13193
+ _.ended = !0, _.sync ? N(F) : (_.needReadable = !1, _.emittedReadable || (_.emittedReadable = !0, B(F)));
13191
13194
  }
13192
13195
  }
13193
- function $(F) {
13196
+ function N(F) {
13194
13197
  var _ = F._readableState;
13195
13198
  l("emitReadable", _.needReadable, _.emittedReadable), _.needReadable = !1, _.emittedReadable || (l("emitReadable", _.flowing), _.emittedReadable = !0, process.nextTick(B, F));
13196
13199
  }
@@ -13209,9 +13212,9 @@ function require_stream_readable() {
13209
13212
  }
13210
13213
  _.readingMore = !1;
13211
13214
  }
13212
- T.prototype._read = function(F) {
13215
+ S.prototype._read = function(F) {
13213
13216
  O(this, new x("_read()"));
13214
- }, T.prototype.pipe = function(F, _) {
13217
+ }, S.prototype.pipe = function(F, _) {
13215
13218
  var Z = this, Q = this._readableState;
13216
13219
  switch (Q.pipesCount) {
13217
13220
  case 0:
@@ -13268,7 +13271,7 @@ function require_stream_readable() {
13268
13271
  l("pipeOnDrain", Z.awaitDrain), Z.awaitDrain && Z.awaitDrain--, Z.awaitDrain === 0 && t(F, "data") && (Z.flowing = !0, P(F));
13269
13272
  };
13270
13273
  }
13271
- T.prototype.unpipe = function(F) {
13274
+ S.prototype.unpipe = function(F) {
13272
13275
  var _ = this._readableState, Z = {
13273
13276
  hasUnpiped: !1
13274
13277
  };
@@ -13287,13 +13290,13 @@ function require_stream_readable() {
13287
13290
  }
13288
13291
  var te = X(_.pipes, F);
13289
13292
  return te === -1 ? this : (_.pipes.splice(te, 1), _.pipesCount -= 1, _.pipesCount === 1 && (_.pipes = _.pipes[0]), F.emit("unpipe", this, Z), this);
13290
- }, T.prototype.on = function(F, _) {
13293
+ }, S.prototype.on = function(F, _) {
13291
13294
  var Z = n.prototype.on.call(this, F, _), Q = this._readableState;
13292
- return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ? $(this) : Q.reading || process.nextTick(K, this)), Z;
13293
- }, T.prototype.addListener = T.prototype.on, T.prototype.removeListener = function(F, _) {
13295
+ return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ? N(this) : Q.reading || process.nextTick(K, this)), Z;
13296
+ }, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(F, _) {
13294
13297
  var Z = n.prototype.removeListener.call(this, F, _);
13295
13298
  return F === "readable" && process.nextTick(W, this), Z;
13296
- }, T.prototype.removeAllListeners = function(F) {
13299
+ }, S.prototype.removeAllListeners = function(F) {
13297
13300
  var _ = n.prototype.removeAllListeners.apply(this, arguments);
13298
13301
  return (F === "readable" || F === void 0) && process.nextTick(W, this), _;
13299
13302
  };
@@ -13304,7 +13307,7 @@ function require_stream_readable() {
13304
13307
  function K(F) {
13305
13308
  l("readable nexttick read 0"), F.read(0);
13306
13309
  }
13307
- T.prototype.resume = function() {
13310
+ S.prototype.resume = function() {
13308
13311
  var F = this._readableState;
13309
13312
  return F.flowing || (l("resume"), F.flowing = !F.readableListening, V(this, F)), F.paused = !1, this;
13310
13313
  };
@@ -13314,7 +13317,7 @@ function require_stream_readable() {
13314
13317
  function H(F, _) {
13315
13318
  l("resume", _.reading), _.reading || F.read(0), _.resumeScheduled = !1, F.emit("resume"), P(F), _.flowing && !_.reading && F.read(0);
13316
13319
  }
13317
- T.prototype.pause = function() {
13320
+ S.prototype.pause = function() {
13318
13321
  return l("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (l("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
13319
13322
  };
13320
13323
  function P(F) {
@@ -13322,7 +13325,7 @@ function require_stream_readable() {
13322
13325
  for (l("flow", _.flowing); _.flowing && F.read() !== null; )
13323
13326
  ;
13324
13327
  }
13325
- T.prototype.wrap = function(F) {
13328
+ S.prototype.wrap = function(F) {
13326
13329
  var _ = this, Z = this._readableState, Q = !1;
13327
13330
  F.on("end", function() {
13328
13331
  if (l("wrapped end"), Z.decoder && !Z.ended) {
@@ -13347,19 +13350,19 @@ function require_stream_readable() {
13347
13350
  return this._read = function(te) {
13348
13351
  l("wrapped _read", te), Q && (Q = !1, F.resume());
13349
13352
  }, this;
13350
- }, typeof Symbol == "function" && (T.prototype[Symbol.asyncIterator] = function() {
13353
+ }, typeof Symbol == "function" && (S.prototype[Symbol.asyncIterator] = function() {
13351
13354
  return C === void 0 && (C = requireAsync_iterator()), C(this);
13352
- }), Object.defineProperty(T.prototype, "readableHighWaterMark", {
13355
+ }), Object.defineProperty(S.prototype, "readableHighWaterMark", {
13353
13356
  enumerable: !1,
13354
13357
  get: function() {
13355
13358
  return this._readableState.highWaterMark;
13356
13359
  }
13357
- }), Object.defineProperty(T.prototype, "readableBuffer", {
13360
+ }), Object.defineProperty(S.prototype, "readableBuffer", {
13358
13361
  enumerable: !1,
13359
13362
  get: function() {
13360
13363
  return this._readableState && this._readableState.buffer;
13361
13364
  }
13362
- }), Object.defineProperty(T.prototype, "readableFlowing", {
13365
+ }), Object.defineProperty(S.prototype, "readableFlowing", {
13363
13366
  enumerable: !1,
13364
13367
  get: function() {
13365
13368
  return this._readableState.flowing;
@@ -13367,7 +13370,7 @@ function require_stream_readable() {
13367
13370
  set: function(_) {
13368
13371
  this._readableState && (this._readableState.flowing = _);
13369
13372
  }
13370
- }), T._fromList = A, Object.defineProperty(T.prototype, "readableLength", {
13373
+ }), S._fromList = A, Object.defineProperty(S.prototype, "readableLength", {
13371
13374
  enumerable: !1,
13372
13375
  get: function() {
13373
13376
  return this._readableState.length;
@@ -13389,8 +13392,8 @@ function require_stream_readable() {
13389
13392
  (!Z || Z.autoDestroy && Z.finished) && _.destroy();
13390
13393
  }
13391
13394
  }
13392
- typeof Symbol == "function" && (T.from = function(F, _) {
13393
- return y === void 0 && (y = requireFromBrowser()), y(T, F, _);
13395
+ typeof Symbol == "function" && (S.from = function(F, _) {
13396
+ return y === void 0 && (y = requireFromBrowser()), y(S, F, _);
13394
13397
  });
13395
13398
  function X(F, _) {
13396
13399
  for (var Z = 0, Q = F.length; Z < Q; Z++)
@@ -15759,8 +15762,8 @@ const Image = (e) => {
15759
15762
  style: {
15760
15763
  padding: "1rem"
15761
15764
  },
15762
- children: C.map((w, T) => {
15763
- var S, k;
15765
+ children: C.map((w, S) => {
15766
+ var T, k;
15764
15767
  return /* @__PURE__ */ jsx("div", {
15765
15768
  children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
15766
15769
  children: [/* @__PURE__ */ jsx("div", {
@@ -15769,10 +15772,10 @@ const Image = (e) => {
15769
15772
  cursor: "pointer"
15770
15773
  },
15771
15774
  onClick: () => {
15772
- h(C.find((N) => w.id === N.id)), f(!0);
15775
+ h(C.find(($) => w.id === $.id)), f(!0);
15773
15776
  },
15774
15777
  children: /* @__PURE__ */ jsx("strong", {
15775
- children: (S = w.values) == null ? void 0 : S[I]
15778
+ children: (T = w.values) == null ? void 0 : T[I]
15776
15779
  })
15777
15780
  }), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
15778
15781
  style: {
@@ -15780,12 +15783,12 @@ const Image = (e) => {
15780
15783
  cursor: "pointer"
15781
15784
  },
15782
15785
  onClick: () => {
15783
- h(C.find((N) => w.id === N.id)), f(!0);
15786
+ h(C.find(($) => w.id === $.id)), f(!0);
15784
15787
  },
15785
15788
  children: (k = w.values) == null ? void 0 : k[g]
15786
15789
  })]
15787
- }, T)
15788
- }, T);
15790
+ }, S)
15791
+ }, S);
15789
15792
  })
15790
15793
  }), /* @__PURE__ */ jsx(FormModal, {
15791
15794
  formView: n.get("form"),
@@ -16009,7 +16012,7 @@ const transformPlainMany2Ones = ({
16009
16012
  let b = [];
16010
16013
  try {
16011
16014
  if (m && (b = [["id", "in", a]]), n.domain) {
16012
- const T = await ConnectionProvider.getHandler().evalDomain({
16015
+ const S = await ConnectionProvider.getHandler().evalDomain({
16013
16016
  domain: n.domain,
16014
16017
  values: transformPlainMany2Ones({
16015
16018
  fields: x == null ? void 0 : x.getFields(),
@@ -16018,7 +16021,7 @@ const transformPlainMany2Ones = ({
16018
16021
  fields: x == null ? void 0 : x.getFields(),
16019
16022
  context: x.getContext()
16020
16023
  });
16021
- b = [...b, ...T];
16024
+ b = [...b, ...S];
16022
16025
  }
16023
16026
  const w = (await ConnectionProvider.getHandler().search({
16024
16027
  model: p,
@@ -16028,12 +16031,12 @@ const transformPlainMany2Ones = ({
16028
16031
  ...g == null ? void 0 : g(),
16029
16032
  ...h
16030
16033
  }
16031
- })).map((T) => {
16032
- const S = T[v];
16033
- let k = S;
16034
- return Array.isArray(S) && (k = S[1]), {
16034
+ })).map((S) => {
16035
+ const T = S[v];
16036
+ let k = T;
16037
+ return Array.isArray(T) && (k = T[1]), {
16035
16038
  label: k,
16036
- value: T.id
16039
+ value: S.id
16037
16040
  };
16038
16041
  });
16039
16042
  c(w);
@@ -16044,16 +16047,16 @@ const transformPlainMany2Ones = ({
16044
16047
  }
16045
16048
  }
16046
16049
  const y = (b) => {
16047
- const E = o.map((T) => b.includes(T.id) ? T.operation == "pendingRemove" ? {
16048
- ...T,
16050
+ const E = o.map((S) => b.includes(S.id) ? S.operation == "pendingRemove" ? {
16051
+ ...S,
16049
16052
  operation: "pendingLink"
16050
- } : T : {
16051
- id: T.id,
16053
+ } : S : {
16054
+ id: S.id,
16052
16055
  operation: "pendingRemove"
16053
- }), w = E.map((T) => T.id);
16054
- b.filter((T) => !w.includes(T)).map((T) => {
16056
+ }), w = E.map((S) => S.id);
16057
+ b.filter((S) => !w.includes(S)).map((S) => {
16055
16058
  E.push({
16056
- id: T,
16059
+ id: S,
16057
16060
  operation: "pendingLink"
16058
16061
  });
16059
16062
  }), I(E);
@@ -16061,18 +16064,18 @@ const transformPlainMany2Ones = ({
16061
16064
  const {
16062
16065
  label: E,
16063
16066
  closable: w,
16064
- onClose: T
16065
- } = b, S = (k) => {
16067
+ onClose: S
16068
+ } = b, T = (k) => {
16066
16069
  k.preventDefault(), k.stopPropagation();
16067
16070
  };
16068
16071
  return /* @__PURE__ */ jsx(Tag, {
16069
16072
  color: colorFromString(E),
16070
- onMouseDown: S,
16073
+ onMouseDown: T,
16071
16074
  style: {
16072
16075
  margin: "5px"
16073
16076
  },
16074
16077
  closable: w,
16075
- onClose: T,
16078
+ onClose: S,
16076
16079
  children: E
16077
16080
  });
16078
16081
  };
@@ -16463,7 +16466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16463
16466
  setLimit: O,
16464
16467
  searchParams: b = [],
16465
16468
  setSearchValues: E
16466
- } = e, [w, T] = useState(!1), [S, k] = useState(!1), [N, D] = useState(), [M, L] = useState(1), [q, $] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W, K] = useState(void 0), V = useRef(y || DEFAULT_SEARCH_LIMIT$1), H = useRef([]), P = useCallback((J) => {
16469
+ } = e, [w, S] = useState(!1), [T, k] = useState(!1), [$, D] = useState(), [M, L] = useState(1), [q, N] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W, K] = useState(void 0), V = useRef(y || DEFAULT_SEARCH_LIMIT$1), H = useRef([]), P = useCallback((J) => {
16467
16470
  x == null || x([...J]), z([...J]);
16468
16471
  }, []), A = useCallback(() => g || G, [g, G]), j = useCallback(async () => {
16469
16472
  const J = await ConnectionProvider.getHandler().nameSearch({
@@ -16552,11 +16555,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16552
16555
  ), X = useCallback(
16553
16556
  async (J) => {
16554
16557
  try {
16555
- T(!0), s == null || s(!0), c && !l.current ? await j() : await Y(J);
16558
+ S(!0), s == null || s(!0), c && !l.current ? await j() : await Y(J);
16556
16559
  } catch (te) {
16557
16560
  D(te.message);
16558
16561
  } finally {
16559
- T(!1), k(!1), s == null || s(!1);
16562
+ S(!1), k(!1), s == null || s(!1);
16560
16563
  }
16561
16564
  },
16562
16565
  [
@@ -16575,7 +16578,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16575
16578
  P,
16576
16579
  D,
16577
16580
  k,
16578
- T,
16581
+ S,
16579
16582
  s,
16580
16583
  h,
16581
16584
  f
@@ -16594,7 +16597,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16594
16597
  ), _ = useCallback(
16595
16598
  (J) => {
16596
16599
  const { params: te, searchValues: ie, limit: le, offset: ae } = J;
16597
- w || (n == null || n(void 0), r == null || r([]), E == null || E(ie), o == null || o(te), a == null || a(!1), k(!0), D(void 0), L(1), le && (V.current = le, O == null || O(le)), ae && $(ae), X({
16600
+ w || (n == null || n(void 0), r == null || r([]), E == null || E(ie), o == null || o(te), a == null || a(!1), k(!0), D(void 0), L(1), le && (V.current = le, O == null || O(le)), ae && N(ae), X({
16598
16601
  params: te,
16599
16602
  newOffset: ae
16600
16603
  }));
@@ -16609,22 +16612,22 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16609
16612
  D,
16610
16613
  L,
16611
16614
  O,
16612
- $,
16615
+ N,
16613
16616
  X
16614
16617
  ]
16615
16618
  ), Z = useCallback(
16616
16619
  (J) => {
16617
- T(!0), L(J), $((J - 1) * y);
16620
+ S(!0), L(J), N((J - 1) * y);
16618
16621
  },
16619
- [T, y, $, L]
16622
+ [S, y, N, L]
16620
16623
  ), Q = useCallback(() => {
16621
- w || (n == null || n(void 0), o == null || o([]), E == null || E({}), D(void 0), $(0), L(1), O == null || O(y || DEFAULT_SEARCH_LIMIT$1));
16624
+ w || (n == null || n(void 0), o == null || o([]), E == null || E({}), D(void 0), N(0), L(1), O == null || O(y || DEFAULT_SEARCH_LIMIT$1));
16622
16625
  }, [
16623
16626
  w,
16624
16627
  n,
16625
16628
  o,
16626
16629
  D,
16627
- $,
16630
+ N,
16628
16631
  L,
16629
16632
  O,
16630
16633
  y
@@ -16645,8 +16648,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16645
16648
  clear: Q,
16646
16649
  fetchResults: X,
16647
16650
  tableRefreshing: w,
16648
- searchFilterLoading: S,
16649
- searchError: N,
16651
+ searchFilterLoading: T,
16652
+ searchError: $,
16650
16653
  page: M,
16651
16654
  offset: q,
16652
16655
  limit: y,
@@ -16683,13 +16686,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16683
16686
  searchTreeNameSearch: b,
16684
16687
  setSearchTreeNameSearch: E,
16685
16688
  goToResourceId: w,
16686
- limit: T
16687
- } = e, [S, k] = useState(!1), [N, D] = useState(!1), [M, L] = useState(!1), [q, $] = useState(!0), [B, U] = useState(!0), [G, z] = useState([]), [W, K] = useState(!1), [V, H] = useState([]), [P, A] = useState(!1), [j, Y] = useState(!0), [X, F] = useState(), [_, Z] = useState({}), [Q, ee] = useState(T !== void 0 ? T : DEFAULT_SEARCH_LIMIT$1);
16689
+ limit: S
16690
+ } = e, [T, k] = useState(!1), [$, D] = useState(!1), [M, L] = useState(!1), [q, N] = useState(!0), [B, U] = useState(!0), [G, z] = useState([]), [W, K] = useState(!1), [V, H] = useState([]), [P, A] = useState(!1), [j, Y] = useState(!0), [X, F] = useState(), [_, Z] = useState({}), [Q, ee] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
16688
16691
  useEffect(() => {
16689
16692
  p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
16690
16693
  }, [p]), useEffect(() => {
16691
- ee(T !== void 0 ? T : DEFAULT_SEARCH_LIMIT$1);
16692
- }, [T]), useEffect(() => {
16694
+ ee(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
16695
+ }, [S]), useEffect(() => {
16693
16696
  a.length === 1 ? F(a[0]) : a.length > 1 && F(a.filter((te) => te.view_id !== n.view_id)[0]);
16694
16697
  }, [a]), useEffect(() => {
16695
16698
  (X == null ? void 0 : X.view_id) === n.view_id && a.length > 1 && F(a.filter((te) => te.view_id !== n.view_id)[0]);
@@ -16704,9 +16707,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16704
16707
  currentView: n,
16705
16708
  setCurrentView: o,
16706
16709
  availableViews: a,
16707
- formIsSaving: S,
16710
+ formIsSaving: T,
16708
16711
  setFormIsSaving: k,
16709
- formHasChanges: N,
16712
+ formHasChanges: $,
16710
16713
  setFormHasChanges: D,
16711
16714
  formRef: s,
16712
16715
  searchTreeRef: c,
@@ -16722,7 +16725,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16722
16725
  removingItem: M,
16723
16726
  setRemovingItem: L,
16724
16727
  formIsLoading: q,
16725
- setFormIsLoading: $,
16728
+ setFormIsLoading: N,
16726
16729
  treeIsLoading: B,
16727
16730
  setTreeIsLoading: U,
16728
16731
  attachments: G,
@@ -16804,11 +16807,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16804
16807
  async function x(E) {
16805
16808
  const {
16806
16809
  reportData: w,
16807
- fields: T,
16808
- values: S,
16810
+ fields: S,
16811
+ values: T,
16809
16812
  context: k = {}
16810
16813
  } = E, {
16811
- context: N,
16814
+ context: $,
16812
16815
  model: D,
16813
16816
  datas: M = {},
16814
16817
  report_name: L,
@@ -16819,14 +16822,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16819
16822
  return;
16820
16823
  }
16821
16824
  const {
16822
- ids: $
16825
+ ids: N
16823
16826
  } = M || {};
16824
- let B = $ || [];
16825
- const U = typeof N == "string" ? parseContext({
16826
- context: N,
16827
- fields: T,
16828
- values: S
16829
- }) : N;
16827
+ let B = N || [];
16828
+ const U = typeof $ == "string" ? parseContext({
16829
+ context: $,
16830
+ fields: S,
16831
+ values: T
16832
+ }) : $;
16830
16833
  try {
16831
16834
  const G = await ConnectionProvider.getHandler().createReport({
16832
16835
  model: D,
@@ -16852,58 +16855,58 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16852
16855
  id: E
16853
16856
  }), w.state && a.current === !0) {
16854
16857
  a.current = !1, clearInterval(o.current), c(!1);
16855
- const T = await getMimeType(w.result);
16856
- openBase64InNewTab(w.result, T.mime);
16858
+ const S = await getMimeType(w.result);
16859
+ openBase64InNewTab(w.result, S.mime);
16857
16860
  }
16858
- } catch (T) {
16859
- a.current = !1, clearInterval(o.current), c(!1), showDialog$8(T.exception || T);
16861
+ } catch (S) {
16862
+ a.current = !1, clearInterval(o.current), c(!1), showDialog$8(S.exception || S);
16860
16863
  }
16861
16864
  }
16862
16865
  async function I({
16863
16866
  actionData: E,
16864
16867
  fields: w,
16865
- values: T,
16866
- context: S,
16868
+ values: S,
16869
+ context: T,
16867
16870
  onRefreshParentValues: k
16868
16871
  }) {
16869
16872
  const {
16870
- type: N
16873
+ type: $
16871
16874
  } = E;
16872
- return d.current.push(k), N === "ir.actions.report.xml" ? await x({
16875
+ return d.current.push(k), $ === "ir.actions.report.xml" ? await x({
16873
16876
  reportData: E,
16874
16877
  fields: w,
16875
- values: T,
16876
- context: S
16877
- }) : N === "ir.actions.act_window" ? await C({
16878
+ values: S,
16879
+ context: T
16880
+ }) : $ === "ir.actions.act_window" ? await C({
16878
16881
  actionData: E,
16879
16882
  fields: w,
16880
- values: T,
16881
- context: S
16882
- }) : (showDialog$8(`${N} action not supported`), {});
16883
+ values: S,
16884
+ context: T
16885
+ }) : (showDialog$8(`${$} action not supported`), {});
16883
16886
  }
16884
16887
  async function C({
16885
16888
  actionData: E,
16886
16889
  fields: w = {},
16887
- values: T = {},
16888
- context: S = {}
16890
+ values: S = {},
16891
+ context: T = {}
16889
16892
  }) {
16890
16893
  var L;
16891
16894
  let k = E;
16892
16895
  E.res_model || (k = (await ConnectionProvider.getHandler().readObjects({
16893
16896
  model: "ir.actions.act_window",
16894
16897
  ids: [parseInt(E.id)],
16895
- context: S
16898
+ context: T
16896
16899
  }))[0]);
16897
16900
  const D = {
16898
16901
  ...typeof (k == null ? void 0 : k.context) == "string" ? parseContext({
16899
16902
  context: k.context,
16900
16903
  fields: w,
16901
16904
  values: {
16902
- ...T,
16905
+ ...S,
16903
16906
  ...r
16904
16907
  }
16905
16908
  }) : k.context,
16906
- ...S
16909
+ ...T
16907
16910
  };
16908
16911
  let M = [];
16909
16912
  if (k.domain && (M = await ConnectionProvider.getHandler().evalDomain({
@@ -16911,7 +16914,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16911
16914
  values: transformPlainMany2Ones({
16912
16915
  fields: w,
16913
16916
  values: {
16914
- ...T,
16917
+ ...S,
16915
16918
  ...r
16916
16919
  }
16917
16920
  }),
@@ -16932,8 +16935,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16932
16935
  }), {};
16933
16936
  } else {
16934
16937
  let q;
16935
- const $ = k.view_mode.split(","), B = [];
16936
- for (const U of $) {
16938
+ const N = k.view_mode.split(","), B = [];
16939
+ for (const U of N) {
16937
16940
  const G = await ConnectionProvider.getHandler().getView({
16938
16941
  model: k.res_model,
16939
16942
  type: U,
@@ -16971,29 +16974,29 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16971
16974
  function y({
16972
16975
  domain: E,
16973
16976
  model: w,
16974
- formView: T,
16975
- context: S,
16977
+ formView: S,
16978
+ context: T,
16976
16979
  actionData: k
16977
16980
  }) {
16978
16981
  p ? O({
16979
16982
  domain: E,
16980
16983
  model: w,
16981
- formView: T,
16982
- context: S,
16984
+ formView: S,
16985
+ context: T,
16983
16986
  actionData: k
16984
16987
  }) : (v({
16985
16988
  domain: E,
16986
16989
  model: w,
16987
- context: S,
16988
- formView: T,
16990
+ context: T,
16991
+ formView: S,
16989
16992
  actionData: k
16990
16993
  }), h(!0));
16991
16994
  }
16992
16995
  async function O({
16993
16996
  domain: E,
16994
16997
  model: w,
16995
- formView: T,
16996
- context: S,
16998
+ formView: S,
16999
+ context: T,
16997
17000
  actionData: k
16998
17001
  }) {
16999
17002
  v({
@@ -17002,11 +17005,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
17002
17005
  context: {},
17003
17006
  formView: void 0,
17004
17007
  actionData: void 0
17005
- }), h(!1), await new Promise((N) => setTimeout(N, 300)), v({
17008
+ }), h(!1), await new Promise(($) => setTimeout($, 300)), v({
17006
17009
  domain: E,
17007
17010
  model: w,
17008
- context: S,
17009
- formView: T,
17011
+ context: T,
17012
+ formView: S,
17010
17013
  actionData: k
17011
17014
  }), h(!0);
17012
17015
  }
@@ -17084,7 +17087,7 @@ function Form(e, t) {
17084
17087
  forcedValues: b = {}
17085
17088
  } = e, {
17086
17089
  lang: E
17087
- } = useContext(LocaleContext), [w, T] = useState(!1), [S, k] = useState(), [N, D] = useState(), [M] = Form$3.useForm(), [L, q] = useState(), [$, B] = useState(), U = useContext(FormModalContext), [G, z] = useState(), [W, K] = useState(!1), V = useRef(), H = useRef({}), P = useRef({}), A = useRef(!1), j = useRef(!1), Y = G < WIDTH_BREAKPOINT, X = useContext(FormContext$1), {
17090
+ } = useContext(LocaleContext), [w, S] = useState(!1), [T, k] = useState(), [$, D] = useState(), [M] = Form$3.useForm(), [L, q] = useState(), [N, B] = useState(), U = useContext(FormModalContext), [G, z] = useState(), [W, K] = useState(!1), V = useRef(), H = useRef({}), P = useRef({}), A = useRef(!1), j = useRef(!1), Y = G < WIDTH_BREAKPOINT, X = useContext(FormContext$1), {
17088
17091
  activeId: F,
17089
17092
  getPlainValues: _
17090
17093
  } = X || {}, Z = useContext(ActionViewContext), {
@@ -17114,7 +17117,7 @@ function Form(e, t) {
17114
17117
  V.current = void 0, D(void 0);
17115
17118
  return;
17116
17119
  }
17117
- (r === void 0 && $ || r !== void 0 && $ && r < 0) && (V.current = void 0, D(void 0)), Ee();
17120
+ (r === void 0 && N || r !== void 0 && N && r < 0) && (V.current = void 0, D(void 0)), Ee();
17118
17121
  }
17119
17122
  }, [r, n, h, m, C]), useEffect(() => {
17120
17123
  W && (De({
@@ -17132,11 +17135,11 @@ function Form(e, t) {
17132
17135
  return r || V.current;
17133
17136
  }
17134
17137
  function Ie() {
17135
- return $;
17138
+ return N;
17136
17139
  }
17137
17140
  function me() {
17138
17141
  const oe = {
17139
- ...he($),
17142
+ ...he(N),
17140
17143
  ...se()
17141
17144
  };
17142
17145
  for (const re in oe)
@@ -17153,7 +17156,7 @@ function Form(e, t) {
17153
17156
  }
17154
17157
  function be() {
17155
17158
  const oe = {
17156
- ...he($)
17159
+ ...he(N)
17157
17160
  };
17158
17161
  for (const re in oe)
17159
17162
  oe[re] === void 0 && delete oe[re];
@@ -17162,7 +17165,7 @@ function Form(e, t) {
17162
17165
  function Se() {
17163
17166
  return {
17164
17167
  ...g,
17165
- ...N == null ? void 0 : N.context
17168
+ ...$ == null ? void 0 : $.context
17166
17169
  };
17167
17170
  }
17168
17171
  function se() {
@@ -17175,7 +17178,7 @@ function Form(e, t) {
17175
17178
  };
17176
17179
  }
17177
17180
  const ue = async (oe) => {
17178
- const re = de() ? N == null ? void 0 : N.context : {};
17181
+ const re = de() ? $ == null ? void 0 : $.context : {};
17179
17182
  return await ConnectionProvider.getHandler().defaultGet({
17180
17183
  model: n,
17181
17184
  fields: oe,
@@ -17187,18 +17190,18 @@ function Form(e, t) {
17187
17190
  });
17188
17191
  }, ye = () => Object.keys(getTouchedValues({
17189
17192
  source: H.current,
17190
- target: he($),
17191
- fields: $
17193
+ target: he(N),
17194
+ fields: N
17192
17195
  })).length !== 0, he = (oe) => {
17193
17196
  const re = M.getFieldsValue(!0);
17194
17197
  return processValues(re, oe);
17195
17198
  }, we = (oe, re) => {
17196
17199
  Ae({
17197
17200
  values: {
17198
- ...processValues(M.getFieldsValue(!0), $),
17201
+ ...processValues(M.getFieldsValue(!0), N),
17199
17202
  [oe]: re
17200
17203
  },
17201
- fields: $,
17204
+ fields: N,
17202
17205
  reset: !1
17203
17206
  });
17204
17207
  }, _e = (oe) => M.getFieldsValue(!0)[oe];
@@ -17230,7 +17233,7 @@ function Form(e, t) {
17230
17233
  }
17231
17234
  }, Ce = async (oe) => {
17232
17235
  let re, ce, fe, xe;
17233
- te == null || te(!0), k(void 0), oe ? (ce = oe.fields, fe = oe.arch) : (ce = $, fe = L), h ? re = h : {
17236
+ te == null || te(!0), k(void 0), oe ? (ce = oe.fields, fe = oe.arch) : (ce = N, fe = L), h ? re = h : {
17234
17237
  values: re,
17235
17238
  defaultGetCalled: xe
17236
17239
  } = await qe({
@@ -17326,8 +17329,8 @@ function Form(e, t) {
17326
17329
  if (de()) {
17327
17330
  const ce = getTouchedValues({
17328
17331
  source: H.current,
17329
- target: he($),
17330
- fields: $
17332
+ target: he(N),
17333
+ fields: N
17331
17334
  });
17332
17335
  await ConnectionProvider.getHandler().update({
17333
17336
  model: n,
@@ -17336,23 +17339,23 @@ function Form(e, t) {
17336
17339
  ...ce,
17337
17340
  ...b
17338
17341
  },
17339
- fields: $,
17342
+ fields: N,
17340
17343
  context: {
17341
17344
  ...g,
17342
- ...N == null ? void 0 : N.context
17345
+ ...$ == null ? void 0 : $.context
17343
17346
  }
17344
- }), H.current = he($);
17347
+ }), H.current = he(N);
17345
17348
  } else {
17346
- const ce = he($), fe = await ConnectionProvider.getHandler().create({
17349
+ const ce = he(N), fe = await ConnectionProvider.getHandler().create({
17347
17350
  model: n,
17348
17351
  values: {
17349
17352
  ...ce,
17350
17353
  ...b
17351
17354
  },
17352
- fields: $,
17355
+ fields: N,
17353
17356
  context: {
17354
17357
  ...g,
17355
- ...N == null ? void 0 : N.context
17358
+ ...$ == null ? void 0 : $.context
17356
17359
  }
17357
17360
  });
17358
17361
  V.current = fe, H.current = ce;
@@ -17372,17 +17375,17 @@ function Form(e, t) {
17372
17375
  return j.current = !1, ee == null || ee(!1), ne == null || ne(), !0;
17373
17376
  if (await Re())
17374
17377
  return j.current = !1, showDialog$5(E), !1;
17375
- T(!0), Q == null || Q(!0);
17378
+ S(!0), Q == null || Q(!0);
17376
17379
  try {
17377
17380
  p === "api" ? await je(oe) : await Ve(oe), f && (V.current = void 0, Ae({
17378
17381
  values: {},
17379
- fields: $,
17382
+ fields: N,
17380
17383
  reset: !0
17381
17384
  })), await Ce(), re = !0;
17382
17385
  } catch (fe) {
17383
- j.current = !1, T(!1), Q == null || Q(!1), ge == null || ge(fe), k(fe != null && fe.message ? fe.message : fe);
17386
+ j.current = !1, S(!1), Q == null || Q(!1), ge == null || ge(fe), k(fe != null && fe.message ? fe.message : fe);
17384
17387
  } finally {
17385
- j.current = !1, Q == null || Q(!1), T(!1);
17388
+ j.current = !1, Q == null || Q(!1), S(!1);
17386
17389
  }
17387
17390
  return re;
17388
17391
  }, Me = ({
@@ -17406,18 +17409,18 @@ function Form(e, t) {
17406
17409
  return;
17407
17410
  const re = getTouchedValues({
17408
17411
  source: P.current,
17409
- target: he($),
17410
- fields: $
17412
+ target: he(N),
17413
+ fields: N
17411
17414
  }), ce = Object.keys(re);
17412
17415
  if (ce.length !== 0) {
17413
17416
  if (checkFieldsType({
17414
17417
  changedFields: ce,
17415
- fields: $,
17418
+ fields: N,
17416
17419
  types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
17417
17420
  }) && oe !== !0)
17418
17421
  return;
17419
17422
  {
17420
- const fe = processValues(M.getFieldsValue(!0), $);
17423
+ const fe = processValues(M.getFieldsValue(!0), N);
17421
17424
  P.current = fe, l == null || l(fe), ee == null || ee(!0), He(ce);
17422
17425
  }
17423
17426
  }
@@ -17431,21 +17434,21 @@ function Form(e, t) {
17431
17434
  showDialog$8(re);
17432
17435
  }
17433
17436
  }, We = async (oe) => {
17434
- const re = N == null ? void 0 : N.onChangeFields[oe];
17437
+ const re = $ == null ? void 0 : $.onChangeFields[oe];
17435
17438
  if (!re) {
17436
17439
  Me({
17437
- fields: $,
17440
+ fields: N,
17438
17441
  arch: L,
17439
- values: he($)
17442
+ values: he(N)
17440
17443
  });
17441
17444
  return;
17442
17445
  }
17443
17446
  const ce = getOnChangePayload({
17444
17447
  values: {
17445
- ...he($),
17448
+ ...he(N),
17446
17449
  context: {
17447
17450
  ...g,
17448
- ...N == null ? void 0 : N.context
17451
+ ...$ == null ? void 0 : $.context
17449
17452
  }
17450
17453
  },
17451
17454
  parentValues: _ == null ? void 0 : _(),
@@ -17455,20 +17458,20 @@ function Form(e, t) {
17455
17458
  action: re.method,
17456
17459
  ids: de() ? [de()] : [],
17457
17460
  payload: ce,
17458
- fields: $
17461
+ fields: N
17459
17462
  });
17460
17463
  if (fe.value) {
17461
17464
  const xe = {
17462
- ...he($),
17465
+ ...he(N),
17463
17466
  ...fe.value
17464
17467
  };
17465
17468
  Me({
17466
- fields: $,
17469
+ fields: N,
17467
17470
  arch: L,
17468
17471
  values: xe
17469
17472
  }), Ae({
17470
17473
  values: xe,
17471
- fields: $,
17474
+ fields: N,
17472
17475
  reset: !1
17473
17476
  });
17474
17477
  }
@@ -17484,7 +17487,7 @@ function Form(e, t) {
17484
17487
  if (fe.domain && Object.keys(fe.domain).length > 0) {
17485
17488
  const xe = mergeFieldsDomain({
17486
17489
  fieldsDomain: fe.domain,
17487
- fields: $
17490
+ fields: N
17488
17491
  });
17489
17492
  Me({
17490
17493
  fields: xe,
@@ -17503,7 +17506,7 @@ function Form(e, t) {
17503
17506
  payload: [de()],
17504
17507
  context: {
17505
17508
  ...re,
17506
- ...N == null ? void 0 : N.context,
17509
+ ...$ == null ? void 0 : $.context,
17507
17510
  ...g
17508
17511
  }
17509
17512
  });
@@ -17515,7 +17518,7 @@ function Form(e, t) {
17515
17518
  let fe = {};
17516
17519
  ce.context && (fe = parseContext({
17517
17520
  context: ce.context,
17518
- fields: $,
17521
+ fields: N,
17519
17522
  values: me()
17520
17523
  })), await $e({
17521
17524
  actionData: ce,
@@ -17559,11 +17562,11 @@ function Form(e, t) {
17559
17562
  closeParent: ce
17560
17563
  } = await (ae == null ? void 0 : ae({
17561
17564
  actionData: oe,
17562
- fields: $,
17565
+ fields: N,
17563
17566
  values: me(),
17564
17567
  context: {
17565
17568
  ...g,
17566
- ...N == null ? void 0 : N.context,
17569
+ ...$ == null ? void 0 : $.context,
17567
17570
  ...re
17568
17571
  },
17569
17572
  onRefreshParentValues: () => {
@@ -17606,7 +17609,7 @@ function Form(e, t) {
17606
17609
  showDialog$8(fe);
17607
17610
  }
17608
17611
  }
17609
- const Xe = () => !N && !S ? /* @__PURE__ */ jsx(Spin, {}) : !n && !m || !C ? null : /* @__PURE__ */ jsx(Fragment, {
17612
+ const Xe = () => !$ && !T ? /* @__PURE__ */ jsx(Spin, {}) : !n && !m || !C ? null : /* @__PURE__ */ jsx(Fragment, {
17610
17613
  children: /* @__PURE__ */ jsx(FormProvider$1, {
17611
17614
  getValues: me,
17612
17615
  getPlainValues: ve,
@@ -17631,8 +17634,8 @@ function Form(e, t) {
17631
17634
  });
17632
17635
  },
17633
17636
  component: !1,
17634
- children: N && /* @__PURE__ */ jsx(Container, {
17635
- container: N.container,
17637
+ children: $ && /* @__PURE__ */ jsx(Container, {
17638
+ container: $.container,
17636
17639
  responsiveBehaviour: Y
17637
17640
  })
17638
17641
  })
@@ -17672,9 +17675,9 @@ function Form(e, t) {
17672
17675
  }) => /* @__PURE__ */ jsxs("div", {
17673
17676
  className: "pb-2",
17674
17677
  ref: oe,
17675
- children: [S && /* @__PURE__ */ jsx(Alert, {
17678
+ children: [T && /* @__PURE__ */ jsx(Alert, {
17676
17679
  className: "mt-10 mb-20",
17677
- message: JSON.stringify(S),
17680
+ message: JSON.stringify(T),
17678
17681
  type: "error",
17679
17682
  banner: !0
17680
17683
  }), Xe(), s && Qe()]
@@ -18155,14 +18158,14 @@ function SearchFilter(e) {
18155
18158
  const O = () => {
18156
18159
  if (!x)
18157
18160
  return;
18158
- const w = I ? x : m, T = w == null ? void 0 : w.rows;
18159
- return T == null ? void 0 : T.map((S, k) => /* @__PURE__ */ jsx(Row, {
18160
- children: S.map((N, D) => /* @__PURE__ */ jsx(Col, {
18161
+ const w = I ? x : m, S = w == null ? void 0 : w.rows;
18162
+ return S == null ? void 0 : S.map((T, k) => /* @__PURE__ */ jsx(Row, {
18163
+ children: T.map(($, D) => /* @__PURE__ */ jsx(Col, {
18161
18164
  xs: 24,
18162
18165
  className: "p-2",
18163
18166
  xl: 6,
18164
18167
  children: /* @__PURE__ */ jsx(SearchField, {
18165
- field: N
18168
+ field: $
18166
18169
  })
18167
18170
  }, D))
18168
18171
  }, k));
@@ -18174,23 +18177,23 @@ function SearchFilter(e) {
18174
18177
  }, [t, n]);
18175
18178
  const b = O(), E = (w) => {
18176
18179
  const {
18177
- limit: T,
18178
- offset: S
18180
+ limit: S,
18181
+ offset: T
18179
18182
  } = w;
18180
18183
  delete w.offset, delete w.limit;
18181
18184
  const k = getParamsForFields(w, t);
18182
18185
  o({
18183
18186
  params: k,
18184
- offset: S,
18185
- limit: T,
18187
+ offset: T,
18188
+ limit: S,
18186
18189
  searchValues: w
18187
18190
  });
18188
18191
  };
18189
18192
  return /* @__PURE__ */ jsx(Measure, {
18190
18193
  bounds: !0,
18191
18194
  onResize: (w) => {
18192
- var T;
18193
- d == null || d((T = w.bounds) == null ? void 0 : T.height);
18195
+ var S;
18196
+ d == null || d((S = w.bounds) == null ? void 0 : S.height);
18194
18197
  },
18195
18198
  children: ({
18196
18199
  measureRef: w
@@ -18262,7 +18265,7 @@ const Many2oneSuffixModal = (e) => {
18262
18265
  })
18263
18266
  });
18264
18267
  }, Many2oneSuffix = (e) => {
18265
- var w, T;
18268
+ var w, S;
18266
18269
  const {
18267
18270
  id: t,
18268
18271
  model: n,
@@ -18279,16 +18282,16 @@ const Many2oneSuffixModal = (e) => {
18279
18282
  async function C() {
18280
18283
  u(!0);
18281
18284
  try {
18282
- const S = await ConnectionProvider.getHandler().getView({
18285
+ const T = await ConnectionProvider.getHandler().getView({
18283
18286
  model: n,
18284
18287
  type: "form",
18285
18288
  context: r
18286
18289
  });
18287
- f(S);
18290
+ f(T);
18288
18291
  const {
18289
18292
  fields: k,
18290
- arch: N
18291
- } = S, D = (await ConnectionProvider.getHandler().readObjects({
18293
+ arch: $
18294
+ } = T, D = (await ConnectionProvider.getHandler().readObjects({
18292
18295
  model: n,
18293
18296
  ids: [t],
18294
18297
  fields: k,
@@ -18298,8 +18301,8 @@ const Many2oneSuffixModal = (e) => {
18298
18301
  ...processValues(D, k),
18299
18302
  active_id: t
18300
18303
  }), u(!1);
18301
- } catch (S) {
18302
- u(!1), showDialog$8(S);
18304
+ } catch (T) {
18305
+ u(!1), showDialog$8(T);
18303
18306
  return;
18304
18307
  }
18305
18308
  }
@@ -18316,9 +18319,9 @@ const Many2oneSuffixModal = (e) => {
18316
18319
  });
18317
18320
  if (!d || !d.toolbar)
18318
18321
  return /* @__PURE__ */ jsx(Menu, {});
18319
- const S = (k = d == null ? void 0 : d.toolbar) == null ? void 0 : k.relate.map((N) => /* @__PURE__ */ jsx(Menu.Item, {
18320
- children: N.name
18321
- }, N.id));
18322
+ const T = (k = d == null ? void 0 : d.toolbar) == null ? void 0 : k.relate.map(($) => /* @__PURE__ */ jsx(Menu.Item, {
18323
+ children: $.name
18324
+ }, $.id));
18322
18325
  return /* @__PURE__ */ jsx(Menu, {
18323
18326
  onClick: O,
18324
18327
  children: [/* @__PURE__ */ jsx(Menu.Item, {
@@ -18335,17 +18338,17 @@ const Many2oneSuffixModal = (e) => {
18335
18338
  children: [" ", m("related")]
18336
18339
  })]
18337
18340
  }),
18338
- children: S
18341
+ children: T
18339
18342
  })]
18340
18343
  });
18341
18344
  }
18342
- function O(S) {
18343
- if (S.key === "action")
18345
+ function O(T) {
18346
+ if (T.key === "action")
18344
18347
  a(!0);
18345
- else if (S.key === "print")
18348
+ else if (T.key === "print")
18346
18349
  c(!0);
18347
18350
  else {
18348
- const k = d.toolbar.relate.find((N) => N.id === parseInt(S.key));
18351
+ const k = d.toolbar.relate.find(($) => $.id === parseInt(T.key));
18349
18352
  if (!k)
18350
18353
  return;
18351
18354
  x({
@@ -18357,9 +18360,9 @@ const Many2oneSuffixModal = (e) => {
18357
18360
  });
18358
18361
  }
18359
18362
  }
18360
- function b(S) {
18363
+ function b(T) {
18361
18364
  a(!1), I == null || I({
18362
- actionData: S,
18365
+ actionData: T,
18363
18366
  values: p,
18364
18367
  fields: d.fields,
18365
18368
  context: {
@@ -18368,12 +18371,12 @@ const Many2oneSuffixModal = (e) => {
18368
18371
  }
18369
18372
  });
18370
18373
  }
18371
- function E(S) {
18374
+ function E(T) {
18372
18375
  c(!1), I == null || I({
18373
18376
  actionData: {
18374
- ...S,
18377
+ ...T,
18375
18378
  datas: {
18376
- ...S.datas || {},
18379
+ ...T.datas || {},
18377
18380
  ids: [t]
18378
18381
  }
18379
18382
  },
@@ -18389,8 +18392,8 @@ const Many2oneSuffixModal = (e) => {
18389
18392
  style: {
18390
18393
  color: "rgba(0,0,0,.45)"
18391
18394
  },
18392
- onClick: (S) => {
18393
- S.preventDefault(), C();
18395
+ onClick: (T) => {
18396
+ T.preventDefault(), C();
18394
18397
  }
18395
18398
  })
18396
18399
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
@@ -18400,7 +18403,7 @@ const Many2oneSuffixModal = (e) => {
18400
18403
  onCancel: () => a(!1)
18401
18404
  }), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
18402
18405
  visible: s,
18403
- items: (T = d == null ? void 0 : d.toolbar) == null ? void 0 : T.print,
18406
+ items: (S = d == null ? void 0 : d.toolbar) == null ? void 0 : S.print,
18404
18407
  onItemClicked: E,
18405
18408
  onCancel: () => c(!1)
18406
18409
  })]
@@ -18578,14 +18581,14 @@ function Tree(e) {
18578
18581
  const q = getTableItems(b.current, a);
18579
18582
  I(q), w.current = n;
18580
18583
  }, [a]);
18581
- const T = (t - 1) * w.current + 1, S = T - 1 + g.length, k = r === void 0 ? null : r === 0 ? E("no_results") : E("summary").replace("{from}", T == null ? void 0 : T.toString()).replace("{to}", S == null ? void 0 : S.toString()).replace("{total}", r == null ? void 0 : r.toString()), N = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
18584
+ const S = (t - 1) * w.current + 1, T = S - 1 + g.length, k = r === void 0 ? null : r === 0 ? E("no_results") : E("summary").replace("{from}", S == null ? void 0 : S.toString()).replace("{to}", T == null ? void 0 : T.toString()).replace("{total}", r == null ? void 0 : r.toString()), $ = () => !u || o.isExpandable || c ? null : r === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
18582
18585
  align: "bottom",
18583
18586
  className: "pb-4",
18584
18587
  children: [/* @__PURE__ */ jsx(Col, {
18585
18588
  span: 12,
18586
18589
  children: /* @__PURE__ */ jsx(Pagination, {
18587
18590
  total: r,
18588
- pageSize: w.current,
18591
+ pageSize: w.current === 0 ? r : w.current,
18589
18592
  current: t,
18590
18593
  showSizeChanger: !1,
18591
18594
  onChange: s
@@ -18598,14 +18601,14 @@ function Tree(e) {
18598
18601
  });
18599
18602
  function D() {
18600
18603
  var G;
18601
- const $ = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
18604
+ const N = b.current.columns.filter((z) => z.sum !== void 0).map((z) => ({
18602
18605
  label: z.sum,
18603
18606
  field: z.id
18604
18607
  }));
18605
- if (!$ || $.length === 0)
18608
+ if (!N || N.length === 0)
18606
18609
  return null;
18607
18610
  let B = [], U = ((G = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : G.length) > 0 ? g.filter((z) => d == null ? void 0 : d.selectedRowKeys.includes(z.id)) : g;
18608
- return $.forEach((z) => {
18611
+ return N.forEach((z) => {
18609
18612
  const W = U.reduce((K, V) => V[z.field] && !isNaN(V[z.field]) ? K + V[z.field] : K, 0);
18610
18613
  B.push(`${z.label}: ${Math.round(W * 100) / 100}`);
18611
18614
  }), /* @__PURE__ */ jsx("div", {
@@ -18616,15 +18619,15 @@ function Tree(e) {
18616
18619
  let M, L = f;
18617
18620
  if (b.current !== null) {
18618
18621
  M = calculateColumnsWidth(C, g, 600);
18619
- const $ = b.current;
18620
- f && $.columns.some((B) => B.sum !== void 0) && (L = f - 30);
18622
+ const N = b.current;
18623
+ f && N.columns.some((B) => B.sum !== void 0) && (L = f - 30);
18621
18624
  }
18622
18625
  return b.current === null ? /* @__PURE__ */ jsx(Spin, {
18623
18626
  style: {
18624
18627
  padding: "2rem"
18625
18628
  }
18626
18629
  }) : /* @__PURE__ */ jsxs("div", {
18627
- children: [N(), /* @__PURE__ */ jsx(Table, {
18630
+ children: [$(), /* @__PURE__ */ jsx(Table, {
18628
18631
  height: L,
18629
18632
  columns: M.columns,
18630
18633
  dataSource: g,
@@ -18663,12 +18666,12 @@ function SearchTree(e, t) {
18663
18666
  rootTree: d = !1,
18664
18667
  parentContext: f = {},
18665
18668
  onChangeSelectedRowKeys: p
18666
- } = e, [h, m] = useState(!1), [v, x] = useState(!1), g = useRef(!1), [I, C] = useState(), [y, O] = useState(), [b, E] = useState(), [w, T] = useState(), [S, k] = useState(200), N = useRef(), {
18669
+ } = e, [h, m] = useState(!1), [v, x] = useState(!1), g = useRef(!1), [I, C] = useState(), [y, O] = useState(), [b, E] = useState(), [w, S] = useState(), [T, k] = useState(200), $ = useRef(), {
18667
18670
  height: D
18668
18671
  } = useWindowDimensions(), M = useContext(ContentRootContext), {
18669
18672
  processAction: L
18670
18673
  } = M || {}, q = useContext(ActionViewContext), {
18671
- setResults: $ = void 0,
18674
+ setResults: N = void 0,
18672
18675
  setCurrentItemIndex: B = void 0,
18673
18676
  currentId: U = void 0,
18674
18677
  results: G = void 0,
@@ -18719,7 +18722,7 @@ function SearchTree(e, t) {
18719
18722
  sorter: A,
18720
18723
  setSorter: j,
18721
18724
  setCurrentItemIndex: B,
18722
- setResultsActionView: $,
18725
+ setResultsActionView: N,
18723
18726
  resultsActionView: G,
18724
18727
  domain: l,
18725
18728
  currentId: U,
@@ -18735,11 +18738,11 @@ function SearchTree(e, t) {
18735
18738
  !v || u && (g.current = !1, ie());
18736
18739
  }, [pe, ne, v, u, s]);
18737
18740
  const Se = async () => {
18738
- x(!1), m(!0), T(void 0), F == null || F(!0);
18741
+ x(!1), m(!0), S(void 0), F == null || F(!0);
18739
18742
  try {
18740
18743
  await se(), x(!0);
18741
18744
  } catch (Ce) {
18742
- T(Ce);
18745
+ S(Ce);
18743
18746
  } finally {
18744
18747
  m(!1), F == null || F(!1);
18745
18748
  }
@@ -18767,12 +18770,12 @@ function SearchTree(e, t) {
18767
18770
  const {
18768
18771
  id: Te
18769
18772
  } = Ce;
18770
- N.current || (N.current = await ConnectionProvider.getHandler().treeButOpen({
18773
+ $.current || ($.current = await ConnectionProvider.getHandler().treeButOpen({
18771
18774
  id: y.view_id,
18772
18775
  model: I,
18773
18776
  context: f
18774
18777
  }));
18775
- const Fe = N.current[0][2];
18778
+ const Fe = $.current[0][2];
18776
18779
  await (L == null ? void 0 : L({
18777
18780
  actionData: Fe,
18778
18781
  fields: y.fields,
@@ -18806,7 +18809,7 @@ function SearchTree(e, t) {
18806
18809
  W == null || W(Te), p == null || p(Ce);
18807
18810
  }
18808
18811
  function _e() {
18809
- return y != null && y.isExpandable ? D - 160 : D - (S + 210);
18812
+ return y != null && y.isExpandable ? D - 160 : D - (T + 210);
18810
18813
  }
18811
18814
  const Re = () => !y || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
18812
18815
  children: [/* @__PURE__ */ jsx(SearchFilter, {
@@ -18991,16 +18994,16 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18991
18994
  domain: u
18992
18995
  } = r, d = o && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [v, x] = useState(!1), [g, I] = useState(), C = useRef(!1), [y, O] = useState(""), b = useRef(), E = useContext(FormContext$1), {
18993
18996
  domain: w,
18994
- getValues: T,
18995
- getFields: S,
18997
+ getValues: S,
18998
+ getFields: T,
18996
18999
  getContext: k,
18997
- setOriginalValue: N,
19000
+ setOriginalValue: $,
18998
19001
  elementHasLostFocus: D
18999
- } = E || {}, M = useRef([]), [L, q] = useState([]), $ = t && t[0] || void 0, B = t && t[1] || "";
19002
+ } = E || {}, M = useRef([]), [L, q] = useState([]), N = t && t[0] || void 0, B = t && t[1] || "";
19000
19003
  useEffect(() => {
19001
19004
  !Array.isArray(t) && t && K(t);
19002
19005
  }, [t]), useEffect(() => {
19003
- $ && B.length === 0 ? K($) : $ && B.length > 0 ? O(B) : !$ && !B && O(b.current || "");
19006
+ N && B.length === 0 ? K(N) : N && B.length > 0 ? O(B) : !N && !B && O(b.current || "");
19004
19007
  }, [t]);
19005
19008
  const U = (A) => {
19006
19009
  n == null || n(A), D == null || D();
@@ -19060,7 +19063,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19060
19063
  ...c
19061
19064
  }
19062
19065
  });
19063
- U([A, Y[0][1]]), j && N(r.id, [A, Y[0][1]]);
19066
+ U([A, Y[0][1]]), j && $(r.id, [A, Y[0][1]]);
19064
19067
  } catch (Y) {
19065
19068
  showDialog$3(Y);
19066
19069
  } finally {
@@ -19071,10 +19074,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19071
19074
  u && (M.current = await ConnectionProvider.getHandler().evalDomain({
19072
19075
  domain: u,
19073
19076
  values: transformPlainMany2Ones({
19074
- fields: S(),
19075
- values: T()
19077
+ fields: T(),
19078
+ values: S()
19076
19079
  }),
19077
- fields: S(),
19080
+ fields: T(),
19078
19081
  context: k()
19079
19082
  })), w && w.length > 0 && (M.current = M.current.concat(transformDomainForChildWidget({
19080
19083
  domain: w,
@@ -19082,7 +19085,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19082
19085
  }))), q(M.current);
19083
19086
  }
19084
19087
  async function H(A) {
19085
- A.keyCode === 13 ? (A.preventDefault(), A.stopPropagation(), await z()) : A.code === "Backspace" && $ !== void 0 && (A.preventDefault(), A.stopPropagation(), U([void 0, ""]));
19088
+ A.keyCode === 13 ? (A.preventDefault(), A.stopPropagation(), await z()) : A.code === "Backspace" && N !== void 0 && (A.preventDefault(), A.stopPropagation(), U([void 0, ""]));
19086
19089
  }
19087
19090
  return /* @__PURE__ */ jsxs(Row, {
19088
19091
  gutter: 8,
@@ -19098,7 +19101,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19098
19101
  onBlur: z,
19099
19102
  onKeyDown: H,
19100
19103
  suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
19101
- id: $,
19104
+ id: N,
19102
19105
  model: a,
19103
19106
  context: {
19104
19107
  ...k == null ? void 0 : k(),
@@ -19110,7 +19113,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19110
19113
  flex: "32px",
19111
19114
  children: /* @__PURE__ */ jsx(Button$1, {
19112
19115
  icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
19113
- disabled: $ === void 0 || B === "" || y === void 0,
19116
+ disabled: N === void 0 || B === "" || y === void 0,
19114
19117
  onClick: () => {
19115
19118
  m(!0);
19116
19119
  },
@@ -19134,7 +19137,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19134
19137
  ...c
19135
19138
  },
19136
19139
  visible: f,
19137
- nameSearch: $ ? void 0 : g,
19140
+ nameSearch: N ? void 0 : g,
19138
19141
  onSelectValues: (A) => {
19139
19142
  p(!1), K(A[0]), C.current = !1, b.current = void 0;
19140
19143
  },
@@ -20296,18 +20299,18 @@ function doAlign(e, t, n, r) {
20296
20299
  isCompleteFailY(E, h, p) || (d = 1, o = y, a = O, s = b);
20297
20300
  }
20298
20301
  d && (m = getElFuturePos(h, t, o, a, s), utils.mix(v, m));
20299
- var w = isFailX(m, h, p), T = isFailY(m, h, p);
20300
- if (w || T) {
20301
- var S = o;
20302
- w && (S = flip(o, /[lr]/gi, {
20302
+ var w = isFailX(m, h, p), S = isFailY(m, h, p);
20303
+ if (w || S) {
20304
+ var T = o;
20305
+ w && (T = flip(o, /[lr]/gi, {
20303
20306
  l: "r",
20304
20307
  r: "l"
20305
- })), T && (S = flip(o, /[tb]/gi, {
20308
+ })), S && (T = flip(o, /[tb]/gi, {
20306
20309
  t: "b",
20307
20310
  b: "t"
20308
- })), o = S, a = n.offset || [0, 0], s = n.targetOffset || [0, 0];
20311
+ })), o = T, a = n.offset || [0, 0], s = n.targetOffset || [0, 0];
20309
20312
  }
20310
- u.adjustX = c.adjustX && w, u.adjustY = c.adjustY && T, (u.adjustX || u.adjustY) && (v = adjustForViewport(m, h, p, u));
20313
+ u.adjustX = c.adjustX && w, u.adjustY = c.adjustY && S, (u.adjustX || u.adjustY) && (v = adjustForViewport(m, h, p, u));
20311
20314
  }
20312
20315
  return v.width !== h.width && utils.css(l, "width", utils.width(l) + v.width - h.width), v.height !== h.height && utils.css(l, "height", utils.height(l) + v.height - h.height), utils.offset(l, {
20313
20316
  left: v.left,
@@ -20403,12 +20406,12 @@ var Align = function e(t, n) {
20403
20406
  var r = t.children, o = t.disabled, a = t.target, s = t.align, c = t.onAlign, l = t.monitorWindowResize, u = t.monitorBufferTime, d = u === void 0 ? 0 : u, f = React__default.useRef({}), p = React__default.useRef(), h = React__default.Children.only(r), m = React__default.useRef({});
20404
20407
  m.current.disabled = o, m.current.target = a, m.current.onAlign = c;
20405
20408
  var v = useBuffer(function() {
20406
- var b = m.current, E = b.disabled, w = b.target, T = b.onAlign;
20409
+ var b = m.current, E = b.disabled, w = b.target, S = b.onAlign;
20407
20410
  if (!E && w) {
20408
- var S = p.current, k, N = getElement(w), D = getPoint(w);
20409
- f.current.element = N, f.current.point = D;
20411
+ var T = p.current, k, $ = getElement(w), D = getPoint(w);
20412
+ f.current.element = $, f.current.point = D;
20410
20413
  var M = document, L = M.activeElement;
20411
- return N && isVisible(N) ? k = alignElement(S, N, s) : D && (k = alignPoint(S, D, s)), restoreFocus(L, S), T && k && T(S, k), !0;
20414
+ return $ && isVisible($) ? k = alignElement(T, $, s) : D && (k = alignPoint(T, D, s)), restoreFocus(L, T), S && k && S(T, k), !0;
20412
20415
  }
20413
20416
  return !1;
20414
20417
  }, d), x = _slicedToArray(v, 2), g = x[0], I = x[1], C = React__default.useRef({
@@ -20512,11 +20515,11 @@ const useVisibleStatus = function(e, t) {
20512
20515
  return [s, a];
20513
20516
  };
20514
20517
  var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20515
- var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, I = e.onTouchStart, C = useRef(), y = useRef(), O = useState(), b = _slicedToArray(O, 2), E = b[0], w = b[1], T = useStretchStyle(l), S = _slicedToArray(T, 2), k = S[0], N = S[1];
20518
+ var n = e.visible, r = e.prefixCls, o = e.className, a = e.style, s = e.children, c = e.zIndex, l = e.stretch, u = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, v = e.onMouseEnter, x = e.onMouseLeave, g = e.onMouseDown, I = e.onTouchStart, C = useRef(), y = useRef(), O = useState(), b = _slicedToArray(O, 2), E = b[0], w = b[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), k = T[0], $ = T[1];
20516
20519
  function D() {
20517
- l && N(p());
20520
+ l && $(p());
20518
20521
  }
20519
- var M = useVisibleStatus(n, D), L = _slicedToArray(M, 2), q = L[0], $ = L[1], B = useRef();
20522
+ var M = useVisibleStatus(n, D), L = _slicedToArray(M, 2), q = L[0], N = L[1], B = useRef();
20520
20523
  function U() {
20521
20524
  return f || p;
20522
20525
  }
@@ -20529,7 +20532,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20529
20532
  var Y = h(j);
20530
20533
  w(Y), E !== Y ? Promise.resolve().then(function() {
20531
20534
  G();
20532
- }) : $(function() {
20535
+ }) : N(function() {
20533
20536
  var X;
20534
20537
  (X = B.current) === null || X === void 0 || X.call(B);
20535
20538
  }), m == null || m(A, j);
@@ -20539,7 +20542,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20539
20542
  ["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(A) {
20540
20543
  var j = W[A];
20541
20544
  W[A] = function(Y, X) {
20542
- return $(), j == null ? void 0 : j(Y, X);
20545
+ return N(), j == null ? void 0 : j(Y, X);
20543
20546
  };
20544
20547
  });
20545
20548
  function K() {
@@ -20548,7 +20551,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
20548
20551
  });
20549
20552
  }
20550
20553
  React.useEffect(function() {
20551
- !W.motionName && q === "motion" && $();
20554
+ !W.motionName && q === "motion" && N();
20552
20555
  }, [W.motionName, q]), React.useImperativeHandle(t, function() {
20553
20556
  return {
20554
20557
  forceAlign: G,
@@ -20735,12 +20738,12 @@ function generateTrigger(e) {
20735
20738
  var u = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, v = d.getPopupClassNameFromAlign;
20736
20739
  return f && p && u.push(getAlignPopupClassName(p, h, l, m)), v && u.push(v(l)), u.join(" ");
20737
20740
  }, s.getComponent = function() {
20738
- var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, I = l.maskAnimation, C = l.maskTransitionName, y = l.maskMotion, O = l.zIndex, b = l.popup, E = l.stretch, w = l.alignPoint, T = l.mobile, S = s.state, k = S.popupVisible, N = S.point, D = s.getPopupAlign(), M = {};
20741
+ var l = s.props, u = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, v = l.popupTransitionName, x = l.popupStyle, g = l.mask, I = l.maskAnimation, C = l.maskTransitionName, y = l.maskMotion, O = l.zIndex, b = l.popup, E = l.stretch, w = l.alignPoint, S = l.mobile, T = s.state, k = T.popupVisible, $ = T.point, D = s.getPopupAlign(), M = {};
20739
20742
  return s.isMouseEnterToShow() && (M.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (M.onMouseLeave = s.onPopupMouseLeave), M.onMouseDown = s.onPopupMouseDown, M.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
20740
20743
  prefixCls: u,
20741
20744
  destroyPopupOnHide: d,
20742
20745
  visible: k,
20743
- point: w && N,
20746
+ point: w && $,
20744
20747
  className: f,
20745
20748
  align: D,
20746
20749
  onAlign: p,
@@ -20758,7 +20761,7 @@ function generateTrigger(e) {
20758
20761
  maskMotion: y,
20759
20762
  ref: s.popupRef,
20760
20763
  motion: h,
20761
- mobile: T,
20764
+ mobile: S,
20762
20765
  children: typeof b == "function" ? b() : b
20763
20766
  });
20764
20767
  }, s.attachParent = function(l) {
@@ -21069,9 +21072,9 @@ var autoAdjustOverflow = {
21069
21072
  children: typeof n == "function" ? n() : n
21070
21073
  });
21071
21074
  }, Tooltip = function e(t, n) {
21072
- var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, I = t.placement, C = I === void 0 ? "right" : I, y = t.align, O = y === void 0 ? {} : y, b = t.destroyTooltipOnHide, E = b === void 0 ? !1 : b, w = t.defaultVisible, T = t.getTooltipContainer, S = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), N = useRef(null);
21075
+ var r = t.overlayClassName, o = t.trigger, a = o === void 0 ? ["hover"] : o, s = t.mouseEnterDelay, c = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, u = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, v = t.afterVisibleChange, x = t.transitionName, g = t.animation, I = t.placement, C = I === void 0 ? "right" : I, y = t.align, O = y === void 0 ? {} : y, b = t.destroyTooltipOnHide, E = b === void 0 ? !1 : b, w = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, k = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), $ = useRef(null);
21073
21076
  useImperativeHandle(n, function() {
21074
- return N.current;
21077
+ return $.current;
21075
21078
  });
21076
21079
  var D = _objectSpread2$1({}, k);
21077
21080
  "visible" in t && (D.popupVisible = t.visible);
@@ -21086,15 +21089,15 @@ var autoAdjustOverflow = {
21086
21089
  prefixCls: p,
21087
21090
  id: W,
21088
21091
  overlay: z,
21089
- overlayInnerStyle: S
21092
+ overlayInnerStyle: T
21090
21093
  }, "content")
21091
21094
  ];
21092
21095
  }, L = !1, q = !1;
21093
21096
  if (typeof E == "boolean")
21094
21097
  L = E;
21095
21098
  else if (E && _typeof$1(E) === "object") {
21096
- var $ = E.keepParent;
21097
- L = $ === !0, q = $ === !1;
21099
+ var N = E.keepParent;
21100
+ L = N === !0, q = N === !1;
21098
21101
  }
21099
21102
  return /* @__PURE__ */ jsx(Trigger, {
21100
21103
  ...Object.assign({
@@ -21104,9 +21107,9 @@ var autoAdjustOverflow = {
21104
21107
  action: a,
21105
21108
  builtinPlacements: placements$2,
21106
21109
  popupPlacement: C,
21107
- ref: N,
21110
+ ref: $,
21108
21111
  popupAlign: O,
21109
- getPopupContainer: T,
21112
+ getPopupContainer: S,
21110
21113
  onPopupVisibleChange: m,
21111
21114
  afterPopupVisibleChange: v,
21112
21115
  popupTransitionName: x,
@@ -21328,29 +21331,29 @@ function requireTooltip() {
21328
21331
  }, b), {
21329
21332
  cursor: "not-allowed",
21330
21333
  width: I.props.block ? "100%" : null
21331
- }), T = (0, a.default)((0, a.default)({}, E), {
21334
+ }), S = (0, a.default)((0, a.default)({}, E), {
21332
21335
  pointerEvents: "none"
21333
- }), S = (0, d.cloneElement)(I, {
21334
- style: T,
21336
+ }), T = (0, d.cloneElement)(I, {
21337
+ style: S,
21335
21338
  className: null
21336
21339
  });
21337
21340
  return /* @__PURE__ */ s.createElement("span", {
21338
21341
  style: w,
21339
21342
  className: (0, l.default)(I.props.className, "".concat(C, "-disabled-compatible-wrapper"))
21340
- }, S);
21343
+ }, T);
21341
21344
  }
21342
21345
  return I;
21343
21346
  }
21344
21347
  var x = /* @__PURE__ */ s.forwardRef(function(I, C) {
21345
- var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction, T = s.useState(!!I.visible || !!I.defaultVisible), S = (0, o.default)(T, 2), k = S[0], N = S[1];
21348
+ var y, O = s.useContext(f.ConfigContext), b = O.getPopupContainer, E = O.getPrefixCls, w = O.direction, S = s.useState(!!I.visible || !!I.defaultVisible), T = (0, o.default)(S, 2), k = T[0], $ = T[1];
21346
21349
  s.useEffect(function() {
21347
- "visible" in I && N(I.visible);
21350
+ "visible" in I && $(I.visible);
21348
21351
  }, [I.visible]);
21349
21352
  var D = function() {
21350
21353
  var ee = I.title, J = I.overlay;
21351
21354
  return !ee && !J && ee !== 0;
21352
21355
  }, M = function(ee) {
21353
- "visible" in I || N(D() ? !1 : ee), I.onVisibleChange && !D() && I.onVisibleChange(ee);
21356
+ "visible" in I || $(D() ? !1 : ee), I.onVisibleChange && !D() && I.onVisibleChange(ee);
21354
21357
  }, L = function() {
21355
21358
  var ee = I.builtinPlacements, J = I.arrowPointAtCenter, te = I.autoAdjustOverflow;
21356
21359
  return ee || (0, u.default)({
@@ -21368,7 +21371,7 @@ function requireTooltip() {
21368
21371
  };
21369
21372
  ie.indexOf("top") >= 0 || ie.indexOf("Bottom") >= 0 ? ae.top = "".concat(le.height - J.offset[1], "px") : (ie.indexOf("Top") >= 0 || ie.indexOf("bottom") >= 0) && (ae.top = "".concat(-J.offset[1], "px")), ie.indexOf("left") >= 0 || ie.indexOf("Right") >= 0 ? ae.left = "".concat(le.width - J.offset[0], "px") : (ie.indexOf("right") >= 0 || ie.indexOf("Left") >= 0) && (ae.left = "".concat(-J.offset[0], "px")), ee.style.transformOrigin = "".concat(ae.left, " ").concat(ae.top);
21370
21373
  }
21371
- }, $ = function() {
21374
+ }, N = function() {
21372
21375
  var ee = I.title, J = I.overlay;
21373
21376
  return ee === 0 ? ee : J || ee || "";
21374
21377
  }, B = I.prefixCls, U = I.openClassName, G = I.getPopupContainer, z = I.getTooltipContainer, W = I.overlayClassName, K = I.color, V = I.overlayInnerStyle, H = I.children, P = E("tooltip", B), A = k;
@@ -21384,7 +21387,7 @@ function requireTooltip() {
21384
21387
  getTooltipContainer: G || z || b,
21385
21388
  ref: C,
21386
21389
  builtinPlacements: L(),
21387
- overlay: $(),
21390
+ overlay: N(),
21388
21391
  visible: A,
21389
21392
  onVisibleChange: M,
21390
21393
  onPopupAlign: q,
@@ -21453,14 +21456,14 @@ function requireTypography() {
21453
21456
  x.indexOf(I[C]) < 0 && Object.prototype.propertyIsEnumerable.call(v, I[C]) && (g[I[C]] = v[I[C]]);
21454
21457
  return g;
21455
21458
  }, f = function(x, g) {
21456
- var I = x.prefixCls, C = x.component, y = C === void 0 ? "article" : C, O = x.className, b = x["aria-label"], E = x.setContentRef, w = x.children, T = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), S = g;
21457
- return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), S = (0, c.composeRef)(g, E)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
21458
- var N = k.getPrefixCls, D = k.direction, M = y, L = N("typography", I), q = (0, s.default)(L, (0, o.default)({}, "".concat(L, "-rtl"), D === "rtl"), O);
21459
+ var I = x.prefixCls, C = x.component, y = C === void 0 ? "article" : C, O = x.className, b = x["aria-label"], E = x.setContentRef, w = x.children, S = d(x, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
21460
+ return E && ((0, u.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, c.composeRef)(g, E)), /* @__PURE__ */ a.createElement(l.ConfigConsumer, null, function(k) {
21461
+ var $ = k.getPrefixCls, D = k.direction, M = y, L = $("typography", I), q = (0, s.default)(L, (0, o.default)({}, "".concat(L, "-rtl"), D === "rtl"), O);
21459
21462
  return /* @__PURE__ */ a.createElement(M, (0, r.default)({
21460
21463
  className: q,
21461
21464
  "aria-label": b,
21462
- ref: S
21463
- }, T), w);
21465
+ ref: T
21466
+ }, S), w);
21464
21467
  });
21465
21468
  }, p = /* @__PURE__ */ a.forwardRef(f);
21466
21469
  p.displayName = "Typography";
@@ -21517,12 +21520,12 @@ function requireEditable() {
21517
21520
  value: !0
21518
21521
  }), e.default = void 0;
21519
21522
  var r = n(requireDefineProperty()), o = n(requireSlicedToArray()), a = t(React__default), s = n(requireClassnames()), c = n(requireKeyCode()), l = n(requireEnterOutlined()), u = n(TextArea$3), d = function(h) {
21520
- var m = h.prefixCls, v = h["aria-label"], x = h.className, g = h.style, I = h.direction, C = h.maxLength, y = h.autoSize, O = y === void 0 ? !0 : y, b = h.value, E = h.onSave, w = h.onCancel, T = a.useRef(), S = a.useRef(!1), k = a.useRef(), N = a.useState(b), D = (0, o.default)(N, 2), M = D[0], L = D[1];
21523
+ var m = h.prefixCls, v = h["aria-label"], x = h.className, g = h.style, I = h.direction, C = h.maxLength, y = h.autoSize, O = y === void 0 ? !0 : y, b = h.value, E = h.onSave, w = h.onCancel, S = a.useRef(), T = a.useRef(!1), k = a.useRef(), $ = a.useState(b), D = (0, o.default)($, 2), M = D[0], L = D[1];
21521
21524
  a.useEffect(function() {
21522
21525
  L(b);
21523
21526
  }, [b]), a.useEffect(function() {
21524
- if (T.current && T.current.resizableTextArea) {
21525
- var V = T.current.resizableTextArea.textArea;
21527
+ if (S.current && S.current.resizableTextArea) {
21528
+ var V = S.current.resizableTextArea.textArea;
21526
21529
  V.focus();
21527
21530
  var H = V.value.length;
21528
21531
  V.setSelectionRange(H, H);
@@ -21531,18 +21534,18 @@ function requireEditable() {
21531
21534
  var q = function(H) {
21532
21535
  var P = H.target;
21533
21536
  L(P.value.replace(/[\n\r]/g, ""));
21534
- }, $ = function() {
21535
- S.current = !0;
21537
+ }, N = function() {
21538
+ T.current = !0;
21536
21539
  }, B = function() {
21537
- S.current = !1;
21540
+ T.current = !1;
21538
21541
  }, U = function(H) {
21539
21542
  var P = H.keyCode;
21540
- S.current || (k.current = P);
21543
+ T.current || (k.current = P);
21541
21544
  }, G = function() {
21542
21545
  E(M.trim());
21543
21546
  }, z = function(H) {
21544
21547
  var P = H.keyCode, A = H.ctrlKey, j = H.altKey, Y = H.metaKey, X = H.shiftKey;
21545
- k.current === P && !S.current && !A && !j && !Y && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
21548
+ k.current === P && !T.current && !A && !j && !Y && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
21546
21549
  }, W = function() {
21547
21550
  G();
21548
21551
  }, K = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"), I === "rtl"), x);
@@ -21550,13 +21553,13 @@ function requireEditable() {
21550
21553
  className: K,
21551
21554
  style: g
21552
21555
  }, /* @__PURE__ */ a.createElement(u.default, {
21553
- ref: T,
21556
+ ref: S,
21554
21557
  maxLength: C,
21555
21558
  value: M,
21556
21559
  onChange: q,
21557
21560
  onKeyDown: U,
21558
21561
  onKeyUp: z,
21559
- onCompositionStart: $,
21562
+ onCompositionStart: N,
21560
21563
  onCompositionEnd: B,
21561
21564
  onBlur: W,
21562
21565
  "aria-label": v,
@@ -21602,14 +21605,14 @@ function requireUtil() {
21602
21605
  }
21603
21606
  var m = function(x, g, I, C, y) {
21604
21607
  u || (u = document.createElement("div"), u.setAttribute("aria-hidden", "true"), document.body.appendChild(u));
21605
- var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x), T = p(w), S = f(w.lineHeight), k = Math.round(S * (O + 1) + f(w.paddingTop) + f(w.paddingBottom));
21606
- u.setAttribute("style", T), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
21607
- var N = h((0, a.default)(I));
21608
+ var O = g.rows, b = g.suffix, E = b === void 0 ? "" : b, w = window.getComputedStyle(x), S = p(w), T = f(w.lineHeight), k = Math.round(T * (O + 1) + f(w.paddingTop) + f(w.paddingBottom));
21609
+ u.setAttribute("style", S), u.style.position = "fixed", u.style.left = "0", u.style.height = "auto", u.style.minHeight = "auto", u.style.maxHeight = "auto", u.style.top = "-999999px", u.style.zIndex = "-1000", u.style.textOverflow = "clip", u.style.whiteSpace = "normal", u.style.webkitLineClamp = "none";
21610
+ var $ = h((0, a.default)(I));
21608
21611
  (0, r.render)(/* @__PURE__ */ o.createElement("div", {
21609
21612
  style: d
21610
21613
  }, /* @__PURE__ */ o.createElement("span", {
21611
21614
  style: d
21612
- }, N, E), /* @__PURE__ */ o.createElement("span", {
21615
+ }, $, E), /* @__PURE__ */ o.createElement("span", {
21613
21616
  style: d
21614
21617
  }, C)), u);
21615
21618
  function D() {
@@ -21628,14 +21631,14 @@ function requireUtil() {
21628
21631
  (0, r.unmountComponentAtNode)(u);
21629
21632
  var q = [];
21630
21633
  u.innerHTML = "";
21631
- var $ = document.createElement("span");
21632
- u.appendChild($);
21634
+ var N = document.createElement("span");
21635
+ u.appendChild(N);
21633
21636
  var B = document.createTextNode(y + E);
21634
- $.appendChild(B), L.forEach(function(W) {
21637
+ N.appendChild(B), L.forEach(function(W) {
21635
21638
  u.appendChild(W);
21636
21639
  });
21637
21640
  function U(W) {
21638
- $.insertBefore(W, B);
21641
+ N.insertBefore(W, B);
21639
21642
  }
21640
21643
  function G(W, K) {
21641
21644
  var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : K.length, P = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((V + H) / 2), j = K.slice(0, A);
@@ -21658,8 +21661,8 @@ function requireUtil() {
21658
21661
  if (V === s)
21659
21662
  return U(W), D() ? {
21660
21663
  finished: !1,
21661
- reactNode: N[K]
21662
- } : ($.removeChild(W), {
21664
+ reactNode: $[K]
21665
+ } : (N.removeChild(W), {
21663
21666
  finished: !0,
21664
21667
  reactNode: null
21665
21668
  });
@@ -21691,7 +21694,7 @@ function requireBase() {
21691
21694
  Object.defineProperty(e, "__esModule", {
21692
21695
  value: !0
21693
21696
  }), e.default = void 0;
21694
- var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()), T = requireStyleChecker(), S = n(requireTooltip()), k = n(requireTypography()), N = n(requireEditable()), D = n(requireUtil()), M = function(z, W) {
21697
+ var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), D = n(requireUtil()), M = function(z, W) {
21695
21698
  var K = {};
21696
21699
  for (var V in z)
21697
21700
  Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (K[V] = z[V]);
@@ -21699,8 +21702,8 @@ function requireBase() {
21699
21702
  for (var H = 0, V = Object.getOwnPropertySymbols(z); H < V.length; H++)
21700
21703
  W.indexOf(V[H]) < 0 && Object.prototype.propertyIsEnumerable.call(z, V[H]) && (K[V[H]] = z[V[H]]);
21701
21704
  return K;
21702
- }, L = (0, T.isStyleSupport)("webkitLineClamp"), q = (0, T.isStyleSupport)("textOverflow");
21703
- function $(z, W) {
21705
+ }, L = (0, S.isStyleSupport)("webkitLineClamp"), q = (0, S.isStyleSupport)("textOverflow");
21706
+ function N(z, W) {
21704
21707
  var K = z.mark, V = z.code, H = z.underline, P = z.delete, A = z.strong, j = z.keyboard, Y = W;
21705
21708
  function X(F, _) {
21706
21709
  !F || (Y = /* @__PURE__ */ f.createElement(_, {}, Y));
@@ -21844,7 +21847,7 @@ function requireBase() {
21844
21847
  var H = this.props.editable;
21845
21848
  if (!!H) {
21846
21849
  var P = H.icon, A = H.tooltip, j = (0, h.default)(A)[0] || this.editStr, Y = typeof j == "string" ? j : "";
21847
- return /* @__PURE__ */ f.createElement(S.default, {
21850
+ return /* @__PURE__ */ f.createElement(T.default, {
21848
21851
  key: "edit",
21849
21852
  title: A === !1 ? "" : j
21850
21853
  }, /* @__PURE__ */ f.createElement(E.default, {
@@ -21865,7 +21868,7 @@ function requireBase() {
21865
21868
  var A = this.getPrefixCls(), j = P.tooltips, Y = (0, h.default)(j);
21866
21869
  Y.length === 0 && (Y = [this.copyStr, this.copiedStr]);
21867
21870
  var X = H ? Y[1] : Y[0], F = typeof X == "string" ? X : "", _ = (0, h.default)(P.icon);
21868
- return /* @__PURE__ */ f.createElement(S.default, {
21871
+ return /* @__PURE__ */ f.createElement(T.default, {
21869
21872
  key: "copy",
21870
21873
  title: j === !1 ? "" : X
21871
21874
  }, /* @__PURE__ */ f.createElement(E.default, {
@@ -21879,7 +21882,7 @@ function requireBase() {
21879
21882
  key: "renderEditInput",
21880
21883
  value: function() {
21881
21884
  var H = this.props, P = H.children, A = H.className, j = H.style, Y = this.context.direction, X = this.getEditable(), F = X.maxLength, _ = X.autoSize;
21882
- return /* @__PURE__ */ f.createElement(N.default, {
21885
+ return /* @__PURE__ */ f.createElement($.default, {
21883
21886
  value: typeof P == "string" ? P : "",
21884
21887
  onSave: this.onEditChange,
21885
21888
  onCancel: this.onEditCancel,
@@ -21907,12 +21910,12 @@ function requireBase() {
21907
21910
  !be && (typeof _ == "string" || typeof _ == "number") && (Se = String(_)), Se = Se == null ? void 0 : Se.slice(String(A || "").length), ve = /* @__PURE__ */ f.createElement(f.Fragment, null, A, /* @__PURE__ */ f.createElement("span", {
21908
21911
  title: Se,
21909
21912
  "aria-hidden": "true"
21910
- }, B), Oe), pe && (ve = /* @__PURE__ */ f.createElement(S.default, {
21913
+ }, B), Oe), pe && (ve = /* @__PURE__ */ f.createElement(T.default, {
21911
21914
  title: pe === !0 ? _ : pe
21912
21915
  }, /* @__PURE__ */ f.createElement("span", null, ve)));
21913
21916
  } else
21914
21917
  ve = /* @__PURE__ */ f.createElement(f.Fragment, null, _, Oe);
21915
- return ve = $(this.props, ve), /* @__PURE__ */ f.createElement(O.default, {
21918
+ return ve = N(this.props, ve), /* @__PURE__ */ f.createElement(O.default, {
21916
21919
  componentName: "Text"
21917
21920
  }, function(se) {
21918
21921
  var ue, ye = se.edit, he = se.copy, we = se.copied, _e = se.expand;
@@ -21987,21 +21990,21 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
21987
21990
  field: u,
21988
21991
  operator: d,
21989
21992
  manualIds: f
21990
- } = e, [p, h] = useState(!1), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(), [y, O] = useState(0), [b, E] = useState(0), [w, T] = useState(), [S, k] = useState(), [N, D] = useState();
21993
+ } = e, [p, h] = useState(!1), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(), [y, O] = useState(0), [b, E] = useState(0), [w, S] = useState(), [T, k] = useState(), [$, D] = useState();
21991
21994
  useEffect(() => {
21992
21995
  q();
21993
21996
  }, [t, o]);
21994
21997
  async function M({
21995
- domain: $,
21998
+ domain: N,
21996
21999
  isTotal: B
21997
22000
  }) {
21998
22001
  if (B)
21999
22002
  return await L({
22000
- domain: $
22003
+ domain: N
22001
22004
  });
22002
22005
  if (u && d) {
22003
22006
  const U = f || await ConnectionProvider.getHandler().searchAllIds({
22004
- params: $,
22007
+ params: N,
22005
22008
  model: t,
22006
22009
  context: r
22007
22010
  }), G = await ConnectionProvider.getHandler().readObjects({
@@ -22017,16 +22020,16 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22017
22020
  } else
22018
22021
  return f ? f.length : await ConnectionProvider.getHandler().searchCount({
22019
22022
  model: t,
22020
- params: $,
22023
+ params: N,
22021
22024
  context: r
22022
22025
  });
22023
22026
  }
22024
22027
  async function L({
22025
- domain: $
22028
+ domain: N
22026
22029
  }) {
22027
22030
  if (u && d) {
22028
22031
  const B = await ConnectionProvider.getHandler().searchAllIds({
22029
- params: $,
22032
+ params: N,
22030
22033
  model: t,
22031
22034
  context: r
22032
22035
  }), U = await ConnectionProvider.getHandler().readObjects({
@@ -22042,13 +22045,13 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22042
22045
  } else
22043
22046
  return await ConnectionProvider.getHandler().searchCount({
22044
22047
  model: t,
22045
- params: $,
22048
+ params: N,
22046
22049
  context: r
22047
22050
  });
22048
22051
  }
22049
22052
  async function q() {
22050
22053
  h(!0);
22051
- let $, B;
22054
+ let N, B;
22052
22055
  try {
22053
22056
  const U = await M({
22054
22057
  domain: n,
@@ -22060,12 +22063,12 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22060
22063
  values: {},
22061
22064
  context: r
22062
22065
  });
22063
- $ = await M({
22066
+ N = await M({
22064
22067
  domain: G,
22065
22068
  isTotal: !0
22066
- }), C($);
22069
+ }), C(N);
22067
22070
  }
22068
- if ($ ? (B = Math.round(U / $ * 100 * 100) / 100, g(B)) : g(0), o) {
22071
+ if (N ? (B = Math.round(U / N * 100 * 100) / 100, g(B)) : g(0), o) {
22069
22072
  const G = await ConnectionProvider.getHandler().parseCondition({
22070
22073
  condition: o,
22071
22074
  values: {
@@ -22074,7 +22077,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22074
22077
  },
22075
22078
  context: r
22076
22079
  });
22077
- T(G);
22080
+ S(G);
22078
22081
  }
22079
22082
  if (c)
22080
22083
  if (c.indexOf(":") !== -1) {
@@ -22094,9 +22097,9 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22094
22097
  }
22095
22098
  h(!1);
22096
22099
  }
22097
- return N ? /* @__PURE__ */ jsx(Alert, {
22100
+ return $ ? /* @__PURE__ */ jsx(Alert, {
22098
22101
  className: "mt-10",
22099
- message: N,
22102
+ message: $,
22100
22103
  type: "error",
22101
22104
  banner: !0
22102
22105
  }) : p ? /* @__PURE__ */ jsx("div", {
@@ -22110,30 +22113,30 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
22110
22113
  })
22111
22114
  }) : /* @__PURE__ */ jsx(Measure, {
22112
22115
  bounds: !0,
22113
- onResize: ($) => {
22116
+ onResize: (N) => {
22114
22117
  var B, U;
22115
- O((B = $.bounds) == null ? void 0 : B.height), E((U = $.bounds) == null ? void 0 : U.width);
22118
+ O((B = N.bounds) == null ? void 0 : B.height), E((U = N.bounds) == null ? void 0 : U.width);
22116
22119
  },
22117
22120
  children: ({
22118
- measureRef: $
22121
+ measureRef: N
22119
22122
  }) => s ? /* @__PURE__ */ jsx(PercentageIndicator, {
22120
22123
  value: m,
22121
22124
  total: I,
22122
22125
  percent: x,
22123
- measureRef: $,
22126
+ measureRef: N,
22124
22127
  height: y,
22125
22128
  width: b,
22126
22129
  color: w,
22127
- icon: S,
22130
+ icon: T,
22128
22131
  suffix: l
22129
22132
  }) : /* @__PURE__ */ jsx(CommonIndicator, {
22130
22133
  value: m,
22131
22134
  total: I,
22132
- measureRef: $,
22135
+ measureRef: N,
22133
22136
  height: y,
22134
22137
  width: b,
22135
22138
  color: w,
22136
- icon: S,
22139
+ icon: T,
22137
22140
  suffix: l
22138
22141
  })
22139
22142
  });
@@ -22734,7 +22737,7 @@ const One2manyInput = (e) => {
22734
22737
  } = d || {}, {
22735
22738
  lang: x,
22736
22739
  t: g
22737
- } = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [T, S] = useState(!1), [k, N] = useState(!1), [D, M] = useState(), [L, q] = useState([]), [$, B] = useState(!1), U = useRef([]), [G, z] = useState(), W = useRef(), {
22740
+ } = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [S, T] = useState(!1), [k, $] = useState(!1), [D, M] = useState(), [L, q] = useState([]), [N, B] = useState(!1), U = useRef([]), [G, z] = useState(), W = useRef(), {
22738
22741
  readOnly: K,
22739
22742
  relation: V,
22740
22743
  context: H,
@@ -22864,14 +22867,14 @@ const One2manyInput = (e) => {
22864
22867
  }), s === "form" ? ie(() => {
22865
22868
  B(!0), M({
22866
22869
  defaultValues: ue
22867
- }), S(!0);
22870
+ }), T(!0);
22868
22871
  }) : (B(!0), M({
22869
22872
  defaultValues: ue
22870
- }), S(!0));
22873
+ }), T(!0));
22871
22874
  }, Oe = async () => {
22872
22875
  s === "form" ? ie(() => {
22873
- N(!0);
22874
- }) : N(!0);
22876
+ $(!0);
22877
+ }) : $(!0);
22875
22878
  }, pe = async () => {
22876
22879
  b(!0), y(!1), w(void 0);
22877
22880
  try {
@@ -22930,12 +22933,12 @@ const One2manyInput = (e) => {
22930
22933
  }
22931
22934
  });
22932
22935
  }
22933
- X(he), $ || S(!1);
22936
+ X(he), N || T(!1);
22934
22937
  }, de = (se) => {
22935
22938
  const {
22936
22939
  id: ue
22937
22940
  } = se;
22938
- M(a.find((ye) => ye.id === ue)), B(!1), S(!0);
22941
+ M(a.find((ye) => ye.id === ue)), B(!1), T(!0);
22939
22942
  }, Ie = async (se) => {
22940
22943
  b(!0);
22941
22944
  let ue = a;
@@ -23059,7 +23062,7 @@ const One2manyInput = (e) => {
23059
23062
  type: "error",
23060
23063
  banner: !0
23061
23064
  });
23062
- const be = $;
23065
+ const be = N;
23063
23066
  return O ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
23064
23067
  children: [/* @__PURE__ */ jsx(One2manyTopBar, {
23065
23068
  mode: s,
@@ -23085,14 +23088,14 @@ const One2manyInput = (e) => {
23085
23088
  submitMode: "values",
23086
23089
  values: D == null ? void 0 : D.values,
23087
23090
  defaultValues: D == null ? void 0 : D.defaultValues,
23088
- visible: T,
23091
+ visible: S,
23089
23092
  onSubmitSucceed: ge,
23090
23093
  parentContext: {
23091
23094
  ...m == null ? void 0 : m(),
23092
23095
  ...H
23093
23096
  },
23094
23097
  onCancel: () => {
23095
- B(!1), S(!1);
23098
+ B(!1), T(!1);
23096
23099
  },
23097
23100
  readOnly: K,
23098
23101
  mustClearAfterSave: be
@@ -23105,10 +23108,10 @@ const One2manyInput = (e) => {
23105
23108
  },
23106
23109
  visible: k,
23107
23110
  onSelectValues: async (se) => {
23108
- N(!1), Ie(se);
23111
+ $(!1), Ie(se);
23109
23112
  },
23110
23113
  onCloseModal: () => {
23111
- N(!1);
23114
+ $(!1);
23112
23115
  }
23113
23116
  })]
23114
23117
  });
@@ -26584,23 +26587,25 @@ function FormActionBar({
26584
26587
  attachments: C,
26585
26588
  formRef: y,
26586
26589
  setFormHasChanges: O,
26587
- searchTreeRef: b,
26588
- previousView: E,
26589
- setPreviousView: w,
26590
- goToResourceId: T
26590
+ previousView: b,
26591
+ setPreviousView: E,
26592
+ goToResourceId: w
26591
26593
  } = useContext(ActionViewContext), {
26592
26594
  t: S,
26593
- lang: k
26594
- } = useContext(LocaleContext), N = useContext(ContentRootContext), {
26595
- processAction: D
26596
- } = N || {}, M = useContext(TabManagerContext), {
26597
- openRelate: L,
26598
- openDefaultActionForModel: q
26599
- } = M || {};
26600
- function $(P) {
26595
+ lang: T
26596
+ } = useContext(LocaleContext), k = useContext(ContentRootContext), {
26597
+ processAction: $
26598
+ } = k || {}, D = useContext(TabManagerContext), {
26599
+ openRelate: M,
26600
+ openDefaultActionForModel: L
26601
+ } = D || {}, q = useRef(!1);
26602
+ useEffect(() => {
26603
+ !s && q.current && message$1.success(S("savedRegisters")), q.current = s || !1;
26604
+ }, [s]);
26605
+ function N(P) {
26601
26606
  if (a) {
26602
26607
  showDialog({
26603
- lang: k,
26608
+ lang: T,
26604
26609
  onOk: () => {
26605
26610
  P();
26606
26611
  }
@@ -26612,7 +26617,7 @@ function FormActionBar({
26612
26617
  function B(P) {
26613
26618
  if (a) {
26614
26619
  showDialog$6({
26615
- lang: k,
26620
+ lang: T,
26616
26621
  onOk: () => {
26617
26622
  P();
26618
26623
  }
@@ -26630,7 +26635,7 @@ function FormActionBar({
26630
26635
  function z() {
26631
26636
  showDialog$9({
26632
26637
  confirmMessage: S("confirmRemoveItem"),
26633
- lang: k,
26638
+ lang: T,
26634
26639
  onOk: () => {
26635
26640
  W();
26636
26641
  }
@@ -26660,7 +26665,7 @@ function FormActionBar({
26660
26665
  model: p,
26661
26666
  context: y.current.getContext()
26662
26667
  });
26663
- P && await (T == null ? void 0 : T(P));
26668
+ P && await (w == null ? void 0 : w(P));
26664
26669
  } catch (P) {
26665
26670
  showDialog$3(JSON.stringify(P));
26666
26671
  } finally {
@@ -26669,7 +26674,7 @@ function FormActionBar({
26669
26674
  }
26670
26675
  const V = s || m || I || v;
26671
26676
  function H(P) {
26672
- D == null || D({
26677
+ $ == null || $({
26673
26678
  actionData: P,
26674
26679
  values: y.current.getValues(),
26675
26680
  fields: y.current.getFields(),
@@ -26717,16 +26722,16 @@ function FormActionBar({
26717
26722
  disabled: s || c === void 0 || m || v || I,
26718
26723
  loading: !1,
26719
26724
  onClick: () => {
26720
- $(() => {
26725
+ N(() => {
26721
26726
  y.current.fetchValues();
26722
26727
  });
26723
26728
  }
26724
26729
  }), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
26725
26730
  currentView: n,
26726
- previousView: E,
26731
+ previousView: b,
26727
26732
  availableViews: t,
26728
26733
  onChangeView: (P) => {
26729
- w == null || w(n), O == null || O(!1), r == null || r(P);
26734
+ E == null || E(n), O == null || O(!1), r == null || r(P);
26730
26735
  },
26731
26736
  disabled: V,
26732
26737
  formHasChanges: a
@@ -26776,7 +26781,7 @@ function FormActionBar({
26776
26781
  tooltip: S("related"),
26777
26782
  items: e == null ? void 0 : e.relate,
26778
26783
  onItemClick: async (P) => {
26779
- !P || L({
26784
+ !P || M({
26780
26785
  relateData: P,
26781
26786
  values: y.current.getValues(),
26782
26787
  fields: y.current.getFields(),
@@ -26789,7 +26794,7 @@ function FormActionBar({
26789
26794
  attachments: C,
26790
26795
  onAddNewAttachment: () => {
26791
26796
  const P = c, A = p;
26792
- q({
26797
+ L({
26793
26798
  model: "ir.attachment",
26794
26799
  values: {
26795
26800
  selection_associated_object: `${A},${P}`
@@ -26803,14 +26808,14 @@ function FormActionBar({
26803
26808
  },
26804
26809
  onListAllAttachments: () => {
26805
26810
  const P = c;
26806
- q({
26811
+ L({
26807
26812
  model: "ir.attachment",
26808
26813
  domain: [["res_model", "=", `${p}`], ["res_id", "=", `${P}`]],
26809
26814
  initialViewType: "tree"
26810
26815
  });
26811
26816
  },
26812
26817
  onViewAttachmentDetails: (P) => {
26813
- q({
26818
+ L({
26814
26819
  model: "ir.attachment",
26815
26820
  res_id: P.id,
26816
26821
  initialViewType: "form"
@@ -26944,10 +26949,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26944
26949
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(I)))) {
26945
26950
  var y = [], O = !0, b = !1, E = void 0;
26946
26951
  try {
26947
- for (var w = I[Symbol.iterator](), T; !(O = (T = w.next()).done) && (y.push(T.value), !(C && y.length === C)); O = !0)
26952
+ for (var w = I[Symbol.iterator](), S; !(O = (S = w.next()).done) && (y.push(S.value), !(C && y.length === C)); O = !0)
26948
26953
  ;
26949
- } catch (S) {
26950
- b = !0, E = S;
26954
+ } catch (T) {
26955
+ b = !0, E = T;
26951
26956
  } finally {
26952
26957
  try {
26953
26958
  !O && w.return != null && w.return();
@@ -26991,9 +26996,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
26991
26996
  function g(I, C) {
26992
26997
  if ((0, n.default)(I), !I || /[\s<>]/.test(I) || I.indexOf("mailto:") === 0 || (C = (0, a.default)(C, h), C.validate_length && I.length >= 2083) || !C.allow_fragments && I.includes("#") || !C.allow_query_components && (I.includes("?") || I.includes("&")))
26993
26998
  return !1;
26994
- var y, O, b, E, w, T, S, k;
26995
- if (S = I.split("#"), I = S.shift(), S = I.split("?"), I = S.shift(), S = I.split("://"), S.length > 1) {
26996
- if (y = S.shift().toLowerCase(), C.require_valid_protocol && C.protocols.indexOf(y) === -1)
26999
+ var y, O, b, E, w, S, T, k;
27000
+ if (T = I.split("#"), I = T.shift(), T = I.split("?"), I = T.shift(), T = I.split("://"), T.length > 1) {
27001
+ if (y = T.shift().toLowerCase(), C.require_valid_protocol && C.protocols.indexOf(y) === -1)
26997
27002
  return !1;
26998
27003
  } else {
26999
27004
  if (C.require_protocol)
@@ -27001,24 +27006,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
27001
27006
  if (I.substr(0, 2) === "//") {
27002
27007
  if (!C.allow_protocol_relative_urls)
27003
27008
  return !1;
27004
- S[0] = I.substr(2);
27009
+ T[0] = I.substr(2);
27005
27010
  }
27006
27011
  }
27007
- if (I = S.join("://"), I === "")
27012
+ if (I = T.join("://"), I === "")
27008
27013
  return !1;
27009
- if (S = I.split("/"), I = S.shift(), I === "" && !C.require_host)
27014
+ if (T = I.split("/"), I = T.shift(), I === "" && !C.require_host)
27010
27015
  return !0;
27011
- if (S = I.split("@"), S.length > 1) {
27012
- if (C.disallow_auth || S[0] === "" || (O = S.shift(), O.indexOf(":") >= 0 && O.split(":").length > 2))
27016
+ if (T = I.split("@"), T.length > 1) {
27017
+ if (C.disallow_auth || T[0] === "" || (O = T.shift(), O.indexOf(":") >= 0 && O.split(":").length > 2))
27013
27018
  return !1;
27014
- var N = O.split(":"), D = c(N, 2), M = D[0], L = D[1];
27019
+ var $ = O.split(":"), D = c($, 2), M = D[0], L = D[1];
27015
27020
  if (M === "" && L === "")
27016
27021
  return !1;
27017
27022
  }
27018
- E = S.join("@"), T = null, k = null;
27023
+ E = T.join("@"), S = null, k = null;
27019
27024
  var q = E.match(m);
27020
- if (q ? (b = "", k = q[1], T = q[2] || null) : (S = E.split(":"), b = S.shift(), S.length && (T = S.join(":"))), T !== null && T.length > 0) {
27021
- if (w = parseInt(T, 10), !/^[0-9]+$/.test(T) || w <= 0 || w > 65535)
27025
+ if (q ? (b = "", k = q[1], S = q[2] || null) : (T = E.split(":"), b = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
27026
+ if (w = parseInt(S, 10), !/^[0-9]+$/.test(S) || w <= 0 || w > 65535)
27022
27027
  return !1;
27023
27028
  } else if (C.require_port)
27024
27029
  return !1;
@@ -27170,20 +27175,20 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
27170
27175
  var b = I.split("@"), E = b.pop(), w = E.toLowerCase();
27171
27176
  if (C.host_blacklist.includes(w))
27172
27177
  return !1;
27173
- var T = b.join("@");
27178
+ var S = b.join("@");
27174
27179
  if (C.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
27175
- T = T.toLowerCase();
27176
- var S = T.split("+")[0];
27177
- if (!(0, o.default)(S.replace(/\./g, ""), {
27180
+ S = S.toLowerCase();
27181
+ var T = S.split("+")[0];
27182
+ if (!(0, o.default)(T.replace(/\./g, ""), {
27178
27183
  min: 6,
27179
27184
  max: 30
27180
27185
  }))
27181
27186
  return !1;
27182
- for (var k = S.split("."), N = 0; N < k.length; N++)
27183
- if (!f.test(k[N]))
27187
+ for (var k = T.split("."), $ = 0; $ < k.length; $++)
27188
+ if (!f.test(k[$]))
27184
27189
  return !1;
27185
27190
  }
27186
- if (C.ignore_max_length === !1 && (!(0, o.default)(T, {
27191
+ if (C.ignore_max_length === !1 && (!(0, o.default)(S, {
27187
27192
  max: 64
27188
27193
  }) || !(0, o.default)(E, {
27189
27194
  max: 254
@@ -27202,12 +27207,12 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
27202
27207
  return !1;
27203
27208
  }
27204
27209
  }
27205
- if (T[0] === '"')
27206
- return T = T.slice(1, T.length - 1), C.allow_utf8_local_part ? m.test(T) : p.test(T);
27207
- for (var M = C.allow_utf8_local_part ? h : d, L = T.split("."), q = 0; q < L.length; q++)
27210
+ if (S[0] === '"')
27211
+ return S = S.slice(1, S.length - 1), C.allow_utf8_local_part ? m.test(S) : p.test(S);
27212
+ for (var M = C.allow_utf8_local_part ? h : d, L = S.split("."), q = 0; q < L.length; q++)
27208
27213
  if (!M.test(L[q]))
27209
27214
  return !1;
27210
- return !(C.blacklisted_chars && T.search(new RegExp("[".concat(C.blacklisted_chars, "]+"), "g")) !== -1);
27215
+ return !(C.blacklisted_chars && S.search(new RegExp("[".concat(C.blacklisted_chars, "]+"), "g")) !== -1);
27211
27216
  }
27212
27217
  e.exports = t.default, e.exports.default = t.default;
27213
27218
  })(isEmail$1, isEmail$1.exports);
@@ -27488,28 +27493,28 @@ const GraphActionView = (e) => {
27488
27493
  setTreeIsLoading: b = void 0,
27489
27494
  limit: E,
27490
27495
  setLimit: w,
27491
- searchParams: T,
27492
- searchValues: S,
27496
+ searchParams: S,
27497
+ searchValues: T,
27493
27498
  setSearchValues: k,
27494
- currentView: N
27499
+ currentView: $
27495
27500
  } = u || {}, [D, M] = useState(!0);
27496
27501
  useEffect(() => {
27497
27502
  var G;
27498
27503
  (G = l.current) == null || G.refresh();
27499
- }, [T]), useEffect(() => {
27500
- t.view_id !== N.view_id && M(!0);
27501
- }, [N]);
27504
+ }, [S]), useEffect(() => {
27505
+ t.view_id !== $.view_id && M(!0);
27506
+ }, [$]);
27502
27507
  const {
27503
27508
  clear: L,
27504
27509
  searchFilterLoading: q,
27505
- searchError: $,
27510
+ searchError: N,
27506
27511
  offset: B,
27507
27512
  tableRefreshing: U
27508
27513
  } = useSearch({
27509
27514
  model: r,
27510
27515
  setSearchTreeNameSearch: O,
27511
27516
  setSelectedRowItems: m,
27512
- searchParams: T,
27517
+ searchParams: S,
27513
27518
  setSearchValues: k,
27514
27519
  setSearchParams: v,
27515
27520
  setSearchVisible: g,
@@ -27549,16 +27554,16 @@ const GraphActionView = (e) => {
27549
27554
  onSubmit: (G) => {
27550
27555
  M(!1), v == null || v(G.params), g == null || g(!1);
27551
27556
  },
27552
- searchError: $,
27557
+ searchError: N,
27553
27558
  searchVisible: x,
27554
- searchValues: S,
27559
+ searchValues: T,
27555
27560
  showLimitOptions: !1
27556
27561
  }), U ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
27557
27562
  ref: l,
27558
27563
  view_id: t.view_id,
27559
27564
  model: r,
27560
27565
  context: o,
27561
- domain: mergeParams(T || [], a),
27566
+ domain: mergeParams(S || [], a),
27562
27567
  limit: D ? E : void 0,
27563
27568
  manualIds: D ? h == null ? void 0 : h.map((G) => G.id) : void 0
27564
27569
  })]
@@ -27686,14 +27691,14 @@ function TreeActionBar(e) {
27686
27691
  toolbar: E
27687
27692
  } = e, {
27688
27693
  t: w,
27689
- lang: T
27690
- } = useContext(LocaleContext), S = useContext(ContentRootContext), {
27694
+ lang: S
27695
+ } = useContext(LocaleContext), T = useContext(ContentRootContext), {
27691
27696
  processAction: k
27692
- } = S || {};
27693
- function N() {
27697
+ } = T || {};
27698
+ function $() {
27694
27699
  showDialog$9({
27695
27700
  confirmMessage: w("confirmRemove"),
27696
- lang: T,
27701
+ lang: S,
27697
27702
  onOk: () => {
27698
27703
  D();
27699
27704
  }
@@ -27704,10 +27709,10 @@ function TreeActionBar(e) {
27704
27709
  try {
27705
27710
  a == null || a(!0), await ConnectionProvider.getHandler().delete({
27706
27711
  model: u,
27707
- ids: o.map(($) => $.id)
27712
+ ids: o.map((N) => N.id)
27708
27713
  }), f == null || f(void 0), p == null || p(void 0), (q = d == null ? void 0 : d.current) == null || q.refreshResults();
27709
- } catch ($) {
27710
- showDialog$8($);
27714
+ } catch (N) {
27715
+ showDialog$8(N);
27711
27716
  } finally {
27712
27717
  a == null || a(!1);
27713
27718
  }
@@ -27716,16 +27721,16 @@ function TreeActionBar(e) {
27716
27721
  var q;
27717
27722
  try {
27718
27723
  l == null || l(!0);
27719
- const $ = o[0].id;
27724
+ const N = o[0].id;
27720
27725
  await ConnectionProvider.getHandler().duplicate({
27721
- id: $,
27726
+ id: N,
27722
27727
  model: u,
27723
27728
  context: {
27724
27729
  ...O
27725
27730
  }
27726
27731
  }) && ((q = d == null ? void 0 : d.current) == null || q.refreshResults());
27727
- } catch ($) {
27728
- showDialog$8($);
27732
+ } catch (N) {
27733
+ showDialog$8(N);
27729
27734
  } finally {
27730
27735
  l == null || l(!1);
27731
27736
  }
@@ -27734,18 +27739,18 @@ function TreeActionBar(e) {
27734
27739
  k == null || k({
27735
27740
  actionData: q,
27736
27741
  values: {
27737
- active_id: o == null ? void 0 : o.map(($) => $.id)[0],
27738
- active_ids: o == null ? void 0 : o.map(($) => $.id)
27742
+ active_id: o == null ? void 0 : o.map((N) => N.id)[0],
27743
+ active_ids: o == null ? void 0 : o.map((N) => N.id)
27739
27744
  },
27740
27745
  fields: {},
27741
27746
  context: {
27742
27747
  ...O,
27743
- active_id: o == null ? void 0 : o.map(($) => $.id)[0],
27744
- active_ids: o == null ? void 0 : o.map(($) => $.id)
27748
+ active_id: o == null ? void 0 : o.map((N) => N.id)[0],
27749
+ active_ids: o == null ? void 0 : o.map((N) => N.id)
27745
27750
  },
27746
27751
  onRefreshParentValues: () => {
27747
- var $;
27748
- ($ = d == null ? void 0 : d.current) == null || $.refreshResults();
27752
+ var N;
27753
+ (N = d == null ? void 0 : d.current) == null || N.refreshResults();
27749
27754
  }
27750
27755
  });
27751
27756
  }
@@ -27771,7 +27776,7 @@ function TreeActionBar(e) {
27771
27776
  tooltip: w("delete"),
27772
27777
  disabled: !(o && (o == null ? void 0 : o.length) > 0) || I,
27773
27778
  loading: s,
27774
- onClick: N
27779
+ onClick: $
27775
27780
  }), separator$1()]
27776
27781
  }), !b && /* @__PURE__ */ jsx(ButtonWithBadge, {
27777
27782
  icon: /* @__PURE__ */ jsx(FilterOutlined, {
@@ -27831,7 +27836,7 @@ function TreeActionBar(e) {
27831
27836
  ...q,
27832
27837
  datas: {
27833
27838
  ...q.datas || {},
27834
- ids: o.map(($) => $.id)
27839
+ ids: o.map((N) => N.id)
27835
27840
  }
27836
27841
  });
27837
27842
  }
@@ -27995,7 +28000,7 @@ function ActionView(e, t) {
27995
28000
  action_type: m,
27996
28001
  treeExpandable: v = !1,
27997
28002
  limit: x
27998
- } = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, T] = useState(E), [S, k] = useState([]), [N, D] = useState(), [M, L] = useState([]), [q, $] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W, K] = useState(!1), [V, H] = useState(), {
28003
+ } = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, S] = useState(E), [T, k] = useState([]), [$, D] = useState(), [M, L] = useState([]), [q, N] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W, K] = useState(!1), [V, H] = useState(), {
27999
28004
  t: P
28000
28005
  } = useContext(LocaleContext), A = useRef(), j = useRef(), Y = useContext(TabManagerContext), {
28001
28006
  setCurrentView: X,
@@ -28006,9 +28011,9 @@ function ActionView(e, t) {
28006
28011
  } = Y || {};
28007
28012
  useHotkeys("ctrl+g,command+g", (ne) => {
28008
28013
  ne.preventDefault(), le();
28009
- }, [Z, _, g, N, M]);
28014
+ }, [Z, _, g, $, M]);
28010
28015
  function ee(ne) {
28011
- T(ne), F == null || F(ne);
28016
+ S(ne), F == null || F(ne);
28012
28017
  }
28013
28018
  function J(ne) {
28014
28019
  I(ne), X == null || X(ne);
@@ -28210,15 +28215,15 @@ Please, make sure the view ids on the fields_view_get responses are the same as
28210
28215
  currentId: w,
28211
28216
  setCurrentId: ee,
28212
28217
  setCurrentItemIndex: D,
28213
- currentItemIndex: N,
28218
+ currentItemIndex: $,
28214
28219
  results: M,
28215
28220
  setResults: L,
28216
28221
  currentModel: r,
28217
28222
  sorter: q,
28218
- setSorter: $,
28223
+ setSorter: N,
28219
28224
  totalItems: B,
28220
28225
  setTotalItems: U,
28221
- selectedRowItems: S,
28226
+ selectedRowItems: T,
28222
28227
  setSelectedRowItems: k,
28223
28228
  setSearchTreeNameSearch: H,
28224
28229
  searchTreeNameSearch: V,
@@ -28423,7 +28428,7 @@ function DashboardTree(e) {
28423
28428
  domain: a = [],
28424
28429
  visible: s = !0,
28425
28430
  parentContext: c = {}
28426
- } = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, T] = useState(0), [S, k] = useState([]), [N, D] = useState(void 0), [M, L] = useState(), [q, $] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]), K = (F) => {
28431
+ } = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, S] = useState(0), [T, k] = useState([]), [$, D] = useState(void 0), [M, L] = useState(), [q, N] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]), K = (F) => {
28427
28432
  z(!0), C(F), O((F - 1) * b.current);
28428
28433
  }, V = async () => {
28429
28434
  const F = W.current.length > 0 ? W.current : a, _ = mergeParams(E.current, F), {
@@ -28443,7 +28448,7 @@ function DashboardTree(e) {
28443
28448
  colors: Z
28444
28449
  }
28445
28450
  }), te = await Q;
28446
- T(te), D(getColorMap(J));
28451
+ S(te), D(getColorMap(J));
28447
28452
  const ie = sortResults({
28448
28453
  resultsToSort: ee,
28449
28454
  sorter: M,
@@ -28457,7 +28462,7 @@ function DashboardTree(e) {
28457
28462
  try {
28458
28463
  z(!0), await V();
28459
28464
  } catch (F) {
28460
- $(JSON.stringify(F));
28465
+ N(JSON.stringify(F));
28461
28466
  } finally {
28462
28467
  z(!1);
28463
28468
  }
@@ -28523,16 +28528,16 @@ function DashboardTree(e) {
28523
28528
  limit: b.current,
28524
28529
  page: I,
28525
28530
  treeView: m,
28526
- results: S,
28531
+ results: T,
28527
28532
  onRequestPageChange: K,
28528
28533
  loading: G,
28529
28534
  onRowClicked: Y,
28530
- colorsForResults: N,
28535
+ colorsForResults: $,
28531
28536
  sorter: M,
28532
28537
  onChangeSort: (F) => {
28533
28538
  L == null || L(F);
28534
28539
  const _ = sortResults({
28535
- resultsToSort: S,
28540
+ resultsToSort: T,
28536
28541
  sorter: F,
28537
28542
  fields: {
28538
28543
  ...m.fields,
@@ -28604,13 +28609,13 @@ function Dashboard(e, t) {
28604
28609
  async function g() {
28605
28610
  u(!0), p(!0), f(void 0);
28606
28611
  try {
28607
- const w = await I(), T = await y(w), S = w.fields[itemsField].relation, k = T[itemsField].items;
28612
+ const w = await I(), S = await y(w), T = w.fields[itemsField].relation, k = S[itemsField].items;
28608
28613
  x.current = w.fields;
28609
- const N = await C({
28614
+ const $ = await C({
28610
28615
  items: k,
28611
- model: S,
28616
+ model: T,
28612
28617
  context: r
28613
- }), D = await O(N);
28618
+ }), D = await O($);
28614
28619
  c(D), u(!1), p(!1);
28615
28620
  } catch (w) {
28616
28621
  f(JSON.stringify(w));
@@ -28625,19 +28630,19 @@ function Dashboard(e, t) {
28625
28630
  }
28626
28631
  async function C({
28627
28632
  items: w,
28628
- model: T,
28629
- context: S
28633
+ model: S,
28634
+ context: T
28630
28635
  }) {
28631
28636
  return v.current = (await ConnectionProvider.getHandler().getView({
28632
- model: T,
28637
+ model: S,
28633
28638
  type: "form",
28634
- context: S
28639
+ context: T
28635
28640
  })).fields, await readObjectValues({
28636
28641
  treeFields: v.current,
28637
28642
  formFields: v.current,
28638
- model: T,
28643
+ model: S,
28639
28644
  items: w,
28640
- context: S
28645
+ context: T
28641
28646
  });
28642
28647
  }
28643
28648
  async function y(w) {
@@ -28649,28 +28654,28 @@ function Dashboard(e, t) {
28649
28654
  }))[0];
28650
28655
  }
28651
28656
  async function O(w) {
28652
- const T = [];
28653
- for (const S of w) {
28657
+ const S = [];
28658
+ for (const T of w) {
28654
28659
  const {
28655
28660
  values: k
28656
- } = S;
28661
+ } = T;
28657
28662
  if (k.action_id && k.action_id.length > 0) {
28658
- const N = parseInt(k.action_id[0], 10), D = await fetchAction({
28659
- actionId: N,
28663
+ const $ = parseInt(k.action_id[0], 10), D = await fetchAction({
28664
+ actionId: $,
28660
28665
  rootContext: r
28661
28666
  });
28662
- T.push({
28663
- ...S,
28667
+ S.push({
28668
+ ...T,
28664
28669
  actionData: D
28665
28670
  });
28666
28671
  }
28667
28672
  }
28668
- return T;
28673
+ return S;
28669
28674
  }
28670
28675
  async function b(w) {
28671
28676
  if (!m)
28672
28677
  return;
28673
- const T = w.filter((D) => {
28678
+ const S = w.filter((D) => {
28674
28679
  const M = s.find((q) => q.id === D.id);
28675
28680
  if (!M)
28676
28681
  return !1;
@@ -28682,11 +28687,11 @@ function Dashboard(e, t) {
28682
28687
  };
28683
28688
  return JSON.stringify(D) !== JSON.stringify(L);
28684
28689
  });
28685
- if (T.length === 0)
28690
+ if (S.length === 0)
28686
28691
  return;
28687
- const k = s.filter((D) => T.map((M) => M.id).includes(D.id)).map((D) => {
28692
+ const k = s.filter((D) => S.map((M) => M.id).includes(D.id)).map((D) => {
28688
28693
  const M = {
28689
- ...T.find((L) => L.id === D.id)
28694
+ ...S.find((L) => L.id === D.id)
28690
28695
  };
28691
28696
  return delete M.id, {
28692
28697
  ...D
@@ -28698,7 +28703,7 @@ function Dashboard(e, t) {
28698
28703
  position: JSON.stringify(M).replace(/"/g, "'")
28699
28704
  }
28700
28705
  };
28701
- }), N = {
28706
+ }), $ = {
28702
28707
  fields: v.current,
28703
28708
  items: k
28704
28709
  };
@@ -28706,7 +28711,7 @@ function Dashboard(e, t) {
28706
28711
  model: n,
28707
28712
  id: o,
28708
28713
  values: {
28709
- [itemsField]: N
28714
+ [itemsField]: $
28710
28715
  },
28711
28716
  fields: x.current,
28712
28717
  context: r
@@ -28722,31 +28727,31 @@ function Dashboard(e, t) {
28722
28727
  banner: !0
28723
28728
  }) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
28724
28729
  onPositionItemsChanged: b,
28725
- children: s.map((w, T) => {
28730
+ children: s.map((w, S) => {
28726
28731
  const {
28727
- actionData: S,
28732
+ actionData: T,
28728
28733
  values: k
28729
28734
  } = w, {
28730
- position: N,
28735
+ position: $,
28731
28736
  id: D
28732
28737
  } = k, {
28733
28738
  actionId: M,
28734
28739
  actionType: L,
28735
28740
  key: q,
28736
- title: $,
28741
+ title: N,
28737
28742
  views: B,
28738
28743
  model: U,
28739
28744
  context: G,
28740
28745
  domain: z,
28741
28746
  initialView: W,
28742
28747
  limit: K
28743
- } = S;
28748
+ } = T;
28744
28749
  let V = {};
28745
28750
  try {
28746
- V = JSON.parse(N.replace(/'/g, '"'));
28751
+ V = JSON.parse($.replace(/'/g, '"'));
28747
28752
  } catch {
28748
28753
  V = {
28749
- x: T * 2,
28754
+ x: S * 2,
28750
28755
  y: 0,
28751
28756
  w: 2,
28752
28757
  h: 3
@@ -28782,7 +28787,7 @@ function Dashboard(e, t) {
28782
28787
  actionType: Z,
28783
28788
  title: Q,
28784
28789
  model: ee
28785
- } = S, J = {
28790
+ } = T, J = {
28786
28791
  action_id: _,
28787
28792
  action_type: Z,
28788
28793
  name: Q,
@@ -28804,7 +28809,7 @@ function Dashboard(e, t) {
28804
28809
  action_id: M,
28805
28810
  action_type: L,
28806
28811
  tabKey: q,
28807
- title: $,
28812
+ title: N,
28808
28813
  views: B,
28809
28814
  model: U,
28810
28815
  context: G,
@@ -28826,7 +28831,7 @@ function Dashboard(e, t) {
28826
28831
  actionType: F,
28827
28832
  title: _,
28828
28833
  model: Z
28829
- } = S;
28834
+ } = T;
28830
28835
  P = {
28831
28836
  action_id: X,
28832
28837
  action_type: F,
@@ -28839,7 +28844,7 @@ function Dashboard(e, t) {
28839
28844
  }
28840
28845
  return /* @__PURE__ */ jsx(DashboardGridItem, {
28841
28846
  id: D,
28842
- title: $,
28847
+ title: N,
28843
28848
  parms: V,
28844
28849
  action: P,
28845
28850
  openAction: h,
@@ -28887,7 +28892,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28887
28892
  f(!0);
28888
28893
  let w = [];
28889
28894
  if (n.domain) {
28890
- const T = await ConnectionProvider.getHandler().evalDomain({
28895
+ const S = await ConnectionProvider.getHandler().evalDomain({
28891
28896
  domain: n.domain,
28892
28897
  values: transformPlainMany2Ones({
28893
28898
  fields: g == null ? void 0 : g.getFields(),
@@ -28896,10 +28901,10 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28896
28901
  fields: g == null ? void 0 : g.getFields(),
28897
28902
  context: g.getContext()
28898
28903
  });
28899
- w = [...w, ...T];
28904
+ w = [...w, ...S];
28900
28905
  }
28901
28906
  try {
28902
- const S = (await ConnectionProvider.getHandler().search({
28907
+ const T = (await ConnectionProvider.getHandler().search({
28903
28908
  model: p,
28904
28909
  params: w,
28905
28910
  fields: [v],
@@ -28908,16 +28913,16 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28908
28913
  ...h
28909
28914
  }
28910
28915
  })).map((k) => {
28911
- const N = k[v];
28912
- let D = N;
28913
- return Array.isArray(N) && (D = N[1]), {
28916
+ const $ = k[v];
28917
+ let D = $;
28918
+ return Array.isArray($) && (D = $[1]), {
28914
28919
  label: D,
28915
28920
  value: k.id
28916
28921
  };
28917
28922
  });
28918
- c(S);
28919
- } catch (T) {
28920
- u(T);
28923
+ c(T);
28924
+ } catch (S) {
28925
+ u(S);
28921
28926
  } finally {
28922
28927
  f(!1);
28923
28928
  }
@@ -28934,19 +28939,19 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
28934
28939
  }, b = () => {
28935
28940
  E([]);
28936
28941
  }, E = (w) => {
28937
- const T = o.map((k) => w.includes(k.id) ? k.operation == "pendingRemove" ? {
28942
+ const S = o.map((k) => w.includes(k.id) ? k.operation == "pendingRemove" ? {
28938
28943
  ...k,
28939
28944
  operation: "original"
28940
28945
  } : k : {
28941
28946
  id: k.id,
28942
28947
  operation: "pendingRemove"
28943
- }), S = T.map((k) => k.id);
28944
- w.filter((k) => !S.includes(k)).map((k) => {
28945
- T.push({
28948
+ }), T = S.map((k) => k.id);
28949
+ w.filter((k) => !T.includes(k)).map((k) => {
28950
+ S.push({
28946
28951
  id: k,
28947
28952
  operation: "pendingLink"
28948
28953
  });
28949
- }), C(T);
28954
+ }), C(S);
28950
28955
  };
28951
28956
  return d && s.length === 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Fragment, {
28952
28957
  children: /* @__PURE__ */ jsxs("div", {
@@ -29151,22 +29156,22 @@ function RootView(e, t) {
29151
29156
  forced_values: b,
29152
29157
  initialViewType: E,
29153
29158
  res_id: w,
29154
- domain: T = []
29159
+ domain: S = []
29155
29160
  }) {
29156
- const S = await ConnectionProvider.getHandler().getActionData({
29161
+ const T = await ConnectionProvider.getHandler().getActionData({
29157
29162
  action: y,
29158
29163
  context: o
29159
29164
  });
29160
- if (S.type === "ir.actions.wizard") {
29165
+ if (T.type === "ir.actions.wizard") {
29161
29166
  showDialog$8("Action type not supported");
29162
29167
  return;
29163
29168
  }
29164
- const [k, N] = y.split(","), D = parseInt(N), M = parseContext({
29165
- context: S.context,
29169
+ const [k, $] = y.split(","), D = parseInt($), M = parseContext({
29170
+ context: T.context,
29166
29171
  values: r,
29167
29172
  fields: {}
29168
- }), L = S.domain ? await ConnectionProvider.getHandler().evalDomain({
29169
- domain: S.domain,
29173
+ }), L = T.domain ? await ConnectionProvider.getHandler().evalDomain({
29174
+ domain: T.domain,
29170
29175
  values: r,
29171
29176
  context: {
29172
29177
  ...o,
@@ -29174,13 +29179,13 @@ function RootView(e, t) {
29174
29179
  }
29175
29180
  }) : [], {
29176
29181
  res_model: q,
29177
- views: $,
29182
+ views: N,
29178
29183
  name: B,
29179
29184
  target: U,
29180
29185
  view_type: G,
29181
29186
  limit: z
29182
- } = S, W = G === "tree", K = [];
29183
- for (const H of $) {
29187
+ } = T, W = G === "tree", K = [];
29188
+ for (const H of N) {
29184
29189
  const [P, A] = H;
29185
29190
  if (P)
29186
29191
  K.push(H);
@@ -29216,7 +29221,7 @@ function RootView(e, t) {
29216
29221
  };
29217
29222
  }
29218
29223
  C({
29219
- domain: [...L, ...T],
29224
+ domain: [...L, ...S],
29220
29225
  context: {
29221
29226
  ...o,
29222
29227
  ...M
@@ -29242,7 +29247,7 @@ function RootView(e, t) {
29242
29247
  action: E
29243
29248
  }) {
29244
29249
  let w = [...l];
29245
- l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((T) => T.key !== "welcome")]), u([...w, {
29250
+ l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((S) => S.key !== "welcome")]), u([...w, {
29246
29251
  title: y,
29247
29252
  key: b,
29248
29253
  closable: !0,
@@ -29258,18 +29263,18 @@ function RootView(e, t) {
29258
29263
  action_type: w
29259
29264
  }) {
29260
29265
  const {
29261
- res_model: T,
29262
- context: S,
29266
+ res_model: S,
29267
+ context: T,
29263
29268
  domain: k,
29264
- views: N,
29269
+ views: $,
29265
29270
  target: D,
29266
29271
  string: M,
29267
29272
  limit: L
29268
- } = y, [q, $] = N[0], B = {
29273
+ } = y, [q, N] = $[0], B = {
29269
29274
  id: q,
29270
- type: $
29275
+ type: N
29271
29276
  }, U = parseContext({
29272
- context: S,
29277
+ context: T,
29273
29278
  values: {
29274
29279
  ...b,
29275
29280
  ...r
@@ -29291,9 +29296,9 @@ function RootView(e, t) {
29291
29296
  }
29292
29297
  }) : [];
29293
29298
  C({
29294
- model: T,
29299
+ model: S,
29295
29300
  target: D,
29296
- views: N,
29301
+ views: $,
29297
29302
  context: {
29298
29303
  ...o,
29299
29304
  ...U
@@ -29312,15 +29317,15 @@ function RootView(e, t) {
29312
29317
  action_type: b,
29313
29318
  res_id: E,
29314
29319
  view_id: w
29315
- } = y, T = `${b},${O}`, S = await ConnectionProvider.getHandler().getActionData({
29316
- action: T,
29320
+ } = y, S = `${b},${O}`, T = await ConnectionProvider.getHandler().getActionData({
29321
+ action: S,
29317
29322
  context: o
29318
29323
  }), k = parseContext({
29319
- context: S.context,
29324
+ context: T.context,
29320
29325
  values: r,
29321
29326
  fields: {}
29322
- }), N = S.domain ? await ConnectionProvider.getHandler().evalDomain({
29323
- domain: S.domain,
29327
+ }), $ = T.domain ? await ConnectionProvider.getHandler().evalDomain({
29328
+ domain: T.domain,
29324
29329
  values: r,
29325
29330
  context: {
29326
29331
  ...o,
@@ -29331,9 +29336,9 @@ function RootView(e, t) {
29331
29336
  views: M,
29332
29337
  name: L,
29333
29338
  target: q,
29334
- view_type: $,
29339
+ view_type: N,
29335
29340
  limit: B
29336
- } = S, U = $ === "tree", G = [];
29341
+ } = T, U = N === "tree", G = [];
29337
29342
  for (const V of M) {
29338
29343
  const [H, P] = V;
29339
29344
  if (H)
@@ -29366,7 +29371,7 @@ function RootView(e, t) {
29366
29371
  type: W
29367
29372
  };
29368
29373
  C({
29369
- domain: N,
29374
+ domain: $,
29370
29375
  context: {
29371
29376
  ...o,
29372
29377
  ...k
@@ -29389,16 +29394,16 @@ function RootView(e, t) {
29389
29394
  forced_values: b,
29390
29395
  initialViewType: E,
29391
29396
  res_id: w,
29392
- domain: T
29397
+ domain: S
29393
29398
  }) {
29394
- const S = await ConnectionProvider.getHandler().getActionStringForModel(y);
29399
+ const T = await ConnectionProvider.getHandler().getActionStringForModel(y);
29395
29400
  await m({
29396
- action: S,
29401
+ action: T,
29397
29402
  values: O,
29398
29403
  forced_values: b,
29399
29404
  initialViewType: E,
29400
29405
  res_id: w,
29401
- domain: T
29406
+ domain: S
29402
29407
  });
29403
29408
  }
29404
29409
  async function C({
@@ -29407,22 +29412,22 @@ function RootView(e, t) {
29407
29412
  model: b,
29408
29413
  views: E,
29409
29414
  title: w,
29410
- target: T,
29411
- initialView: S,
29415
+ target: S,
29416
+ initialView: T,
29412
29417
  action_id: k,
29413
- action_type: N,
29418
+ action_type: $,
29414
29419
  res_id: D,
29415
29420
  values: M,
29416
29421
  forced_values: L,
29417
29422
  treeExpandable: q = !1,
29418
- limit: $
29423
+ limit: N
29419
29424
  }) {
29420
29425
  const B = v4();
29421
- if (T !== "current") {
29426
+ if (S !== "current") {
29422
29427
  const U = await ConnectionProvider.getHandler().getView({
29423
29428
  model: b,
29424
29429
  type: "form",
29425
- id: S.type === "form" ? S.id : void 0,
29430
+ id: T.type === "form" ? T.id : void 0,
29426
29431
  context: {
29427
29432
  ...o,
29428
29433
  ...O
@@ -29438,25 +29443,25 @@ function RootView(e, t) {
29438
29443
  },
29439
29444
  actionData: {
29440
29445
  action_id: k,
29441
- action_type: N,
29446
+ action_type: $,
29442
29447
  res_id: D,
29443
29448
  view_id: U.view_id
29444
29449
  }
29445
29450
  });
29446
29451
  } else {
29447
- const U = S && Array.isArray(S.id) ? {
29448
- ...S,
29449
- id: S.id[0]
29450
- } : S;
29452
+ const U = T && Array.isArray(T.id) ? {
29453
+ ...T,
29454
+ id: T.id[0]
29455
+ } : T;
29451
29456
  v({
29452
29457
  title: w,
29453
29458
  action: {
29454
29459
  id: k,
29455
- type: N
29460
+ type: $
29456
29461
  },
29457
29462
  content: /* @__PURE__ */ jsx(ActionView$1, {
29458
29463
  action_id: k,
29459
- action_type: N,
29464
+ action_type: $,
29460
29465
  tabKey: B,
29461
29466
  title: w,
29462
29467
  views: E,
@@ -29472,7 +29477,7 @@ function RootView(e, t) {
29472
29477
  formDefaultValues: M,
29473
29478
  formForcedValues: L,
29474
29479
  treeExpandable: q,
29475
- limit: $
29480
+ limit: N
29476
29481
  }),
29477
29482
  key: B
29478
29483
  });
@@ -29624,7 +29629,7 @@ const FavouriteButton = (e) => {
29624
29629
  useEffect(() => {
29625
29630
  E();
29626
29631
  }, []), useEffect(() => {
29627
- S();
29632
+ T();
29628
29633
  }, [I, C, y, O]);
29629
29634
  async function E() {
29630
29635
  try {
@@ -29640,20 +29645,20 @@ const FavouriteButton = (e) => {
29640
29645
  function w(L) {
29641
29646
  const {
29642
29647
  key: q
29643
- } = L, $ = u.find((B) => B.id === Number(q));
29644
- ($ == null ? void 0 : $.action_type) !== "ir.actions.wizard" && ($ && g($), l(!1));
29648
+ } = L, N = u.find((B) => B.id === Number(q));
29649
+ (N == null ? void 0 : N.action_type) !== "ir.actions.wizard" && (N && g(N), l(!1));
29645
29650
  }
29646
- function T(L) {
29651
+ function S(L) {
29647
29652
  L && E(), l(L);
29648
29653
  }
29649
- async function S() {
29654
+ async function T() {
29650
29655
  if (!y)
29651
29656
  return;
29652
29657
  const L = I.find((z) => z.key === C), {
29653
29658
  id: q,
29654
- type: $
29659
+ type: N
29655
29660
  } = (L == null ? void 0 : L.action) || {};
29656
- if (!q || !$) {
29661
+ if (!q || !N) {
29657
29662
  s(!1);
29658
29663
  return;
29659
29664
  }
@@ -29662,7 +29667,7 @@ const FavouriteButton = (e) => {
29662
29667
  y.type === "form" && (U = O || !1);
29663
29668
  const G = await n({
29664
29669
  action_id: q,
29665
- action_type: $,
29670
+ action_type: N,
29666
29671
  view_id: B,
29667
29672
  res_id: U
29668
29673
  });
@@ -29673,7 +29678,7 @@ const FavouriteButton = (e) => {
29673
29678
  model: "ir.ui.view_sc"
29674
29679
  });
29675
29680
  }
29676
- const N = /* @__PURE__ */ jsxs(Menu, {
29681
+ const $ = /* @__PURE__ */ jsxs(Menu, {
29677
29682
  onClick: w,
29678
29683
  children: [/* @__PURE__ */ jsxs("div", {
29679
29684
  style: {
@@ -29749,16 +29754,16 @@ const FavouriteButton = (e) => {
29749
29754
  return;
29750
29755
  const L = I.find((G) => G.key === C), {
29751
29756
  id: q,
29752
- type: $
29757
+ type: N
29753
29758
  } = (L == null ? void 0 : L.action) || {}, B = y.view_id;
29754
29759
  let U = !1;
29755
- if (!q || !$) {
29760
+ if (!q || !N) {
29756
29761
  s(!1);
29757
29762
  return;
29758
29763
  }
29759
29764
  y.type === "form" && (U = O || !1), await r({
29760
29765
  action_id: q,
29761
- action_type: $,
29766
+ action_type: N,
29762
29767
  view_id: B,
29763
29768
  res_id: U
29764
29769
  });
@@ -29778,8 +29783,8 @@ const FavouriteButton = (e) => {
29778
29783
  },
29779
29784
  onClick: M
29780
29785
  }), /* @__PURE__ */ jsx(Dropdown, {
29781
- overlay: N,
29782
- onVisibleChange: T,
29786
+ overlay: $,
29787
+ onVisibleChange: S,
29783
29788
  visible: c,
29784
29789
  children: /* @__PURE__ */ jsx(Button$1, {
29785
29790
  style: {