@elementor/editor-controls 4.1.0-788 → 4.1.0-790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +288 -287
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +288 -287
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/filter-control/drop-shadow/drop-shadow-item-label.tsx +2 -1
package/dist/index.mjs
CHANGED
|
@@ -2033,7 +2033,7 @@ import {
|
|
|
2033
2033
|
backdropFilterPropTypeUtil,
|
|
2034
2034
|
filterPropTypeUtil
|
|
2035
2035
|
} from "@elementor/editor-props";
|
|
2036
|
-
import { __ as
|
|
2036
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
2037
2037
|
|
|
2038
2038
|
// src/controls/filter-control/context/filter-config-context.tsx
|
|
2039
2039
|
import * as React41 from "react";
|
|
@@ -2290,13 +2290,14 @@ import * as React48 from "react";
|
|
|
2290
2290
|
// src/controls/filter-control/drop-shadow/drop-shadow-item-label.tsx
|
|
2291
2291
|
import * as React46 from "react";
|
|
2292
2292
|
import { Box as Box5 } from "@elementor/ui";
|
|
2293
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
2293
2294
|
var DropShadowItemLabel = ({ value }) => {
|
|
2294
2295
|
const values = value.value.args.value;
|
|
2295
2296
|
const keys = ["xAxis", "yAxis", "blur"];
|
|
2296
2297
|
const labels = keys.map(
|
|
2297
2298
|
(key) => values[key]?.value?.unit !== "custom" ? `${values[key]?.value?.size ?? 0}${values[key]?.value?.unit ?? "px"}` : values[key]?.value?.size || CUSTOM_SIZE_LABEL
|
|
2298
2299
|
);
|
|
2299
|
-
return /* @__PURE__ */ React46.createElement(Box5, { component: "span" }, /* @__PURE__ */ React46.createElement(Box5, { component: "span", style: { textTransform: "capitalize" } }, "Drop shadow:"), ` ${labels.join(" ")}`);
|
|
2300
|
+
return /* @__PURE__ */ React46.createElement(Box5, { component: "span" }, /* @__PURE__ */ React46.createElement(Box5, { component: "span", style: { textTransform: "capitalize" } }, __16("Drop shadow:", "elementor")), ` ${labels.join(" ")}`);
|
|
2300
2301
|
};
|
|
2301
2302
|
|
|
2302
2303
|
// src/controls/filter-control/single-size/single-size-item-label.tsx
|
|
@@ -2324,11 +2325,11 @@ var FilterLabel = ({ value }) => {
|
|
|
2324
2325
|
var FILTER_CONFIG = {
|
|
2325
2326
|
filter: {
|
|
2326
2327
|
propTypeUtil: filterPropTypeUtil,
|
|
2327
|
-
label:
|
|
2328
|
+
label: __17("Filters", "elementor")
|
|
2328
2329
|
},
|
|
2329
2330
|
"backdrop-filter": {
|
|
2330
2331
|
propTypeUtil: backdropFilterPropTypeUtil,
|
|
2331
|
-
label:
|
|
2332
|
+
label: __17("Backdrop filters", "elementor")
|
|
2332
2333
|
}
|
|
2333
2334
|
};
|
|
2334
2335
|
var FilterRepeaterControl = createControl(({ filterPropName = "filter" }) => {
|
|
@@ -2847,7 +2848,7 @@ var NumberControl = createControl(
|
|
|
2847
2848
|
import * as React57 from "react";
|
|
2848
2849
|
import { useId as useId2, useRef as useRef8 } from "react";
|
|
2849
2850
|
import { bindPopover as bindPopover3, bindToggle, Box as Box7, Grid as Grid8, Popover as Popover3, Stack as Stack7, Tooltip as Tooltip5, usePopupState as usePopupState4 } from "@elementor/ui";
|
|
2850
|
-
import { __ as
|
|
2851
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
2851
2852
|
function EqualUnequalSizesControl({
|
|
2852
2853
|
label,
|
|
2853
2854
|
icon,
|
|
@@ -2898,7 +2899,7 @@ function EqualUnequalSizesControl({
|
|
|
2898
2899
|
return /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(Grid8, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React57.createElement(Grid8, { item: true, xs: 6 }, !isShowingGeneralIndicator ? /* @__PURE__ */ React57.createElement(ControlFormLabel, null, label) : /* @__PURE__ */ React57.createElement(ControlLabel, null, label)), /* @__PURE__ */ React57.createElement(Grid8, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(Stack7, { direction: "row", alignItems: "center", gap: 1 }, /* @__PURE__ */ React57.createElement(Box7, { flexGrow: 1 }, /* @__PURE__ */ React57.createElement(
|
|
2899
2900
|
SizeControl,
|
|
2900
2901
|
{
|
|
2901
|
-
placeholder: isMixed ?
|
|
2902
|
+
placeholder: isMixed ? __18("Mixed", "elementor") : void 0,
|
|
2902
2903
|
enablePropTypeUnits: !isMixed || !isMixedPlaceholder,
|
|
2903
2904
|
anchorRef: rowRefs[0]
|
|
2904
2905
|
}
|
|
@@ -2960,7 +2961,7 @@ import {
|
|
|
2960
2961
|
import { useActiveBreakpoint as useActiveBreakpoint3 } from "@elementor/editor-responsive";
|
|
2961
2962
|
import { DetachIcon, LinkIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
2962
2963
|
import { Grid as Grid9, Stack as Stack8, Tooltip as Tooltip6 } from "@elementor/ui";
|
|
2963
|
-
import { __ as
|
|
2964
|
+
import { __ as __20, sprintf as sprintf2 } from "@wordpress/i18n";
|
|
2964
2965
|
|
|
2965
2966
|
// src/controls/size-control/unstable-size-control.tsx
|
|
2966
2967
|
import * as React63 from "react";
|
|
@@ -3360,7 +3361,7 @@ import { useEffect as useEffect9, useRef as useRef9 } from "react";
|
|
|
3360
3361
|
import { PopoverHeader as PopoverHeader2 } from "@elementor/editor-ui";
|
|
3361
3362
|
import { MathFunctionIcon as MathFunctionIcon4 } from "@elementor/icons";
|
|
3362
3363
|
import { bindPopover as bindPopover4, Popover as Popover4, TextField as TextField6 } from "@elementor/ui";
|
|
3363
|
-
import { __ as
|
|
3364
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
3364
3365
|
var SIZE7 = "tiny";
|
|
3365
3366
|
var TextFieldPopover2 = ({ popupState, anchorRef, value, onChange, onClose }) => {
|
|
3366
3367
|
const inputRef = useRef9(null);
|
|
@@ -3402,7 +3403,7 @@ var TextFieldPopover2 = ({ popupState, anchorRef, value, onChange, onClose }) =>
|
|
|
3402
3403
|
/* @__PURE__ */ React61.createElement(
|
|
3403
3404
|
PopoverHeader2,
|
|
3404
3405
|
{
|
|
3405
|
-
title:
|
|
3406
|
+
title: __19("CSS function", "elementor"),
|
|
3406
3407
|
onClose: handleClose,
|
|
3407
3408
|
icon: /* @__PURE__ */ React61.createElement(MathFunctionIcon4, { fontSize: SIZE7 })
|
|
3408
3409
|
}
|
|
@@ -3677,8 +3678,8 @@ var LinkedDimensionsControl = ({ label, isSiteRtl = false, min }) => {
|
|
|
3677
3678
|
};
|
|
3678
3679
|
const tooltipLabel = label.toLowerCase();
|
|
3679
3680
|
const LinkedIcon = isLinked ? LinkIcon : DetachIcon;
|
|
3680
|
-
const linkedLabel =
|
|
3681
|
-
const unlinkedLabel =
|
|
3681
|
+
const linkedLabel = __20("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
3682
|
+
const unlinkedLabel = __20("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
3682
3683
|
const disabled = sizeDisabled || dimensionsDisabled;
|
|
3683
3684
|
const effectiveDimensionsPlaceholder = dimensionsPlaceholder ?? (sizePropTypeUtil5.extract(masterPlaceholder) ? {
|
|
3684
3685
|
"block-start": masterPlaceholder,
|
|
@@ -3774,20 +3775,20 @@ function getCssDimensionProps(label, isSiteRtl) {
|
|
|
3774
3775
|
[
|
|
3775
3776
|
{
|
|
3776
3777
|
bind: "block-start",
|
|
3777
|
-
label:
|
|
3778
|
+
label: __20("Top", "elementor"),
|
|
3778
3779
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3779
|
-
ariaLabel: sprintf2(
|
|
3780
|
+
ariaLabel: sprintf2(__20("%s top", "elementor"), label),
|
|
3780
3781
|
icon: /* @__PURE__ */ React64.createElement(SideTopIcon, { fontSize: "tiny" })
|
|
3781
3782
|
},
|
|
3782
3783
|
{
|
|
3783
3784
|
bind: "inline-end",
|
|
3784
|
-
label: isSiteRtl ?
|
|
3785
|
+
label: isSiteRtl ? __20("Left", "elementor") : __20("Right", "elementor"),
|
|
3785
3786
|
ariaLabel: isSiteRtl ? (
|
|
3786
3787
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3787
|
-
sprintf2(
|
|
3788
|
+
sprintf2(__20("%s left", "elementor"), label)
|
|
3788
3789
|
) : (
|
|
3789
3790
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3790
|
-
sprintf2(
|
|
3791
|
+
sprintf2(__20("%s right", "elementor"), label)
|
|
3791
3792
|
),
|
|
3792
3793
|
icon: isSiteRtl ? /* @__PURE__ */ React64.createElement(SideLeftIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React64.createElement(SideRightIcon, { fontSize: "tiny" })
|
|
3793
3794
|
}
|
|
@@ -3795,20 +3796,20 @@ function getCssDimensionProps(label, isSiteRtl) {
|
|
|
3795
3796
|
[
|
|
3796
3797
|
{
|
|
3797
3798
|
bind: "block-end",
|
|
3798
|
-
label:
|
|
3799
|
+
label: __20("Bottom", "elementor"),
|
|
3799
3800
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3800
|
-
ariaLabel: sprintf2(
|
|
3801
|
+
ariaLabel: sprintf2(__20("%s bottom", "elementor"), label),
|
|
3801
3802
|
icon: /* @__PURE__ */ React64.createElement(SideBottomIcon, { fontSize: "tiny" })
|
|
3802
3803
|
},
|
|
3803
3804
|
{
|
|
3804
3805
|
bind: "inline-start",
|
|
3805
|
-
label: isSiteRtl ?
|
|
3806
|
+
label: isSiteRtl ? __20("Right", "elementor") : __20("Left", "elementor"),
|
|
3806
3807
|
ariaLabel: isSiteRtl ? (
|
|
3807
3808
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3808
|
-
sprintf2(
|
|
3809
|
+
sprintf2(__20("%s right", "elementor"), label)
|
|
3809
3810
|
) : (
|
|
3810
3811
|
/* translators: %s is the name of the main group (margin or padding) */
|
|
3811
|
-
sprintf2(
|
|
3812
|
+
sprintf2(__20("%s left", "elementor"), label)
|
|
3812
3813
|
),
|
|
3813
3814
|
icon: isSiteRtl ? /* @__PURE__ */ React64.createElement(SideRightIcon, { fontSize: "tiny" }) : /* @__PURE__ */ React64.createElement(SideLeftIcon, { fontSize: "tiny" })
|
|
3814
3815
|
}
|
|
@@ -3822,7 +3823,7 @@ import { useMemo as useMemo7 } from "react";
|
|
|
3822
3823
|
import { stringPropTypeUtil as stringPropTypeUtil7 } from "@elementor/editor-props";
|
|
3823
3824
|
import { ChevronDownIcon as ChevronDownIcon2, TextIcon } from "@elementor/icons";
|
|
3824
3825
|
import { bindPopover as bindPopover5, bindTrigger as bindTrigger4, Popover as Popover5, UnstableTag as UnstableTag2, usePopupState as usePopupState7 } from "@elementor/ui";
|
|
3825
|
-
import { __ as
|
|
3826
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3826
3827
|
|
|
3827
3828
|
// src/components/item-selector.tsx
|
|
3828
3829
|
import * as React65 from "react";
|
|
@@ -3830,7 +3831,7 @@ import { useCallback as useCallback3, useEffect as useEffect11, useState as useS
|
|
|
3830
3831
|
import { PopoverBody, PopoverHeader as PopoverHeader3, PopoverMenuList, SearchField } from "@elementor/editor-ui";
|
|
3831
3832
|
import { Box as Box9, Divider as Divider2, Link, Stack as Stack9, Typography as Typography5 } from "@elementor/ui";
|
|
3832
3833
|
import { debounce } from "@elementor/utils";
|
|
3833
|
-
import { __ as
|
|
3834
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3834
3835
|
|
|
3835
3836
|
// src/hooks/use-filtered-items-list.ts
|
|
3836
3837
|
var useFilteredItemsList = (itemsList, searchValue, disabledItems) => {
|
|
@@ -3880,7 +3881,7 @@ var ItemSelector = ({
|
|
|
3880
3881
|
{
|
|
3881
3882
|
value: searchValue,
|
|
3882
3883
|
onSearch: handleSearch,
|
|
3883
|
-
placeholder:
|
|
3884
|
+
placeholder: __21("Search", "elementor"),
|
|
3884
3885
|
id: id + "-search"
|
|
3885
3886
|
}
|
|
3886
3887
|
), /* @__PURE__ */ React65.createElement(Divider2, null), /* @__PURE__ */ React65.createElement(Box9, { sx: { flex: 1, overflow: "auto", minHeight: 0 } }, filteredItemsList.length > 0 ? /* @__PURE__ */ React65.createElement(
|
|
@@ -3905,7 +3906,7 @@ var ItemSelector = ({
|
|
|
3905
3906
|
overflow: "hidden"
|
|
3906
3907
|
},
|
|
3907
3908
|
/* @__PURE__ */ React65.createElement(IconComponent, { fontSize: "large" }),
|
|
3908
|
-
/* @__PURE__ */ React65.createElement(Box9, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React65.createElement(Typography5, { align: "center", variant: "subtitle2", color: "text.secondary" },
|
|
3909
|
+
/* @__PURE__ */ React65.createElement(Box9, { sx: { maxWidth: 160, overflow: "hidden" } }, /* @__PURE__ */ React65.createElement(Typography5, { align: "center", variant: "subtitle2", color: "text.secondary" }, __21("Sorry, nothing matched", "elementor")), /* @__PURE__ */ React65.createElement(
|
|
3909
3910
|
Typography5,
|
|
3910
3911
|
{
|
|
3911
3912
|
variant: "subtitle2",
|
|
@@ -3931,7 +3932,7 @@ var ItemSelector = ({
|
|
|
3931
3932
|
color: "text.secondary",
|
|
3932
3933
|
sx: { display: "flex", flexDirection: "column" }
|
|
3933
3934
|
},
|
|
3934
|
-
|
|
3935
|
+
__21("Try something else.", "elementor"),
|
|
3935
3936
|
/* @__PURE__ */ React65.createElement(
|
|
3936
3937
|
Link,
|
|
3937
3938
|
{
|
|
@@ -3940,7 +3941,7 @@ var ItemSelector = ({
|
|
|
3940
3941
|
component: "button",
|
|
3941
3942
|
onClick: () => setSearchValue("")
|
|
3942
3943
|
},
|
|
3943
|
-
|
|
3944
|
+
__21("Clear & try again", "elementor")
|
|
3944
3945
|
)
|
|
3945
3946
|
)
|
|
3946
3947
|
)), footer);
|
|
@@ -4044,7 +4045,7 @@ var FontFamilyControl = createControl(
|
|
|
4044
4045
|
onItemChange: setFontFamily,
|
|
4045
4046
|
onClose: popoverState.close,
|
|
4046
4047
|
sectionWidth,
|
|
4047
|
-
title:
|
|
4048
|
+
title: __22("Font family", "elementor"),
|
|
4048
4049
|
itemStyle: (item) => ({ fontFamily: item.value }),
|
|
4049
4050
|
onDebounce: enqueueFont,
|
|
4050
4051
|
icon: TextIcon
|
|
@@ -4089,24 +4090,24 @@ import { MinusIcon, PlusIcon as PlusIcon2 } from "@elementor/icons";
|
|
|
4089
4090
|
import { useSessionStorage } from "@elementor/session";
|
|
4090
4091
|
import { Collapse, Grid as Grid10, IconButton as IconButton6, Stack as Stack10 } from "@elementor/ui";
|
|
4091
4092
|
import { debounce as debounce3 } from "@elementor/utils";
|
|
4092
|
-
import { __ as
|
|
4093
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
4093
4094
|
|
|
4094
4095
|
// src/components/restricted-link-infotip.tsx
|
|
4095
4096
|
import * as React68 from "react";
|
|
4096
4097
|
import { selectElement } from "@elementor/editor-elements";
|
|
4097
4098
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4098
4099
|
import { Alert, AlertAction, AlertTitle, Box as Box10, Infotip as Infotip2, Link as Link2 } from "@elementor/ui";
|
|
4099
|
-
import { __ as
|
|
4100
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
4100
4101
|
var learnMoreButton = {
|
|
4101
|
-
label:
|
|
4102
|
+
label: __23("Learn More", "elementor"),
|
|
4102
4103
|
href: "https://go.elementor.com/element-link-inside-link-infotip"
|
|
4103
4104
|
};
|
|
4104
4105
|
var INFOTIP_CONTENT = {
|
|
4105
|
-
descendant:
|
|
4106
|
+
descendant: __23(
|
|
4106
4107
|
"To add a link or action to this element, first remove the link or action from the elements inside of it.",
|
|
4107
4108
|
"elementor"
|
|
4108
4109
|
),
|
|
4109
|
-
ancestor:
|
|
4110
|
+
ancestor: __23(
|
|
4110
4111
|
"To add a link or action to this container, first remove the link or action from its parent container.",
|
|
4111
4112
|
"elementor"
|
|
4112
4113
|
)
|
|
@@ -4136,10 +4137,10 @@ var RestrictedLinkInfotip = ({
|
|
|
4136
4137
|
color: "secondary",
|
|
4137
4138
|
onClick: handleTakeMeClick
|
|
4138
4139
|
},
|
|
4139
|
-
|
|
4140
|
+
__23("Take me there", "elementor")
|
|
4140
4141
|
)
|
|
4141
4142
|
},
|
|
4142
|
-
/* @__PURE__ */ React68.createElement(AlertTitle, null,
|
|
4143
|
+
/* @__PURE__ */ React68.createElement(AlertTitle, null, __23("Nested links", "elementor")),
|
|
4143
4144
|
/* @__PURE__ */ React68.createElement(Box10, { component: "span" }, INFOTIP_CONTENT[reason ?? "descendant"], " ", /* @__PURE__ */ React68.createElement(Link2, { href: learnMoreButton.href, target: "_blank", color: "info.main" }, learnMoreButton.label))
|
|
4144
4145
|
);
|
|
4145
4146
|
return shouldRestrict && isVisible ? /* @__PURE__ */ React68.createElement(
|
|
@@ -4166,7 +4167,7 @@ import {
|
|
|
4166
4167
|
import { httpService as httpService2 } from "@elementor/http-client";
|
|
4167
4168
|
import { SearchIcon } from "@elementor/icons";
|
|
4168
4169
|
import { debounce as debounce2 } from "@elementor/utils";
|
|
4169
|
-
import { __ as
|
|
4170
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
4170
4171
|
|
|
4171
4172
|
// src/components/autocomplete.tsx
|
|
4172
4173
|
import * as React69 from "react";
|
|
@@ -4306,7 +4307,7 @@ var QueryControl = createControl((props) => {
|
|
|
4306
4307
|
const {
|
|
4307
4308
|
allowCustomValues = true,
|
|
4308
4309
|
queryOptions: { url, params = {} },
|
|
4309
|
-
placeholder =
|
|
4310
|
+
placeholder = __24("Search", "elementor"),
|
|
4310
4311
|
minInputLength = 2,
|
|
4311
4312
|
onSetValue,
|
|
4312
4313
|
ariaLabel
|
|
@@ -4436,7 +4437,7 @@ var LinkControl = createControl((props) => {
|
|
|
4436
4437
|
placeholder,
|
|
4437
4438
|
minInputLength = 2,
|
|
4438
4439
|
context: { elementId },
|
|
4439
|
-
label =
|
|
4440
|
+
label = __25("Link", "elementor"),
|
|
4440
4441
|
ariaLabel
|
|
4441
4442
|
} = props || {};
|
|
4442
4443
|
const [linkInLinkRestriction, setLinkInLinkRestriction] = useState12(
|
|
@@ -4508,7 +4509,7 @@ var LinkControl = createControl((props) => {
|
|
|
4508
4509
|
{
|
|
4509
4510
|
size: SIZE8,
|
|
4510
4511
|
onClick: onEnabledChange,
|
|
4511
|
-
"aria-label":
|
|
4512
|
+
"aria-label": __25("Toggle link", "elementor"),
|
|
4512
4513
|
disabled: shouldDisableAddingLink
|
|
4513
4514
|
},
|
|
4514
4515
|
isActive ? /* @__PURE__ */ React72.createElement(MinusIcon, { fontSize: SIZE8 }) : /* @__PURE__ */ React72.createElement(PlusIcon2, { fontSize: SIZE8 })
|
|
@@ -4523,7 +4524,7 @@ var LinkControl = createControl((props) => {
|
|
|
4523
4524
|
onSetValue: onSaveValueToSession,
|
|
4524
4525
|
ariaLabel: ariaLabel || label
|
|
4525
4526
|
}
|
|
4526
|
-
)), /* @__PURE__ */ React72.createElement(PropKeyProvider, { bind: "isTargetBlank" }, /* @__PURE__ */ React72.createElement(Grid10, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React72.createElement(Grid10, { item: true }, /* @__PURE__ */ React72.createElement(ControlFormLabel, null,
|
|
4527
|
+
)), /* @__PURE__ */ React72.createElement(PropKeyProvider, { bind: "isTargetBlank" }, /* @__PURE__ */ React72.createElement(Grid10, { container: true, alignItems: "center", flexWrap: "nowrap", justifyContent: "space-between" }, /* @__PURE__ */ React72.createElement(Grid10, { item: true }, /* @__PURE__ */ React72.createElement(ControlFormLabel, null, __25("Open in a new tab", "elementor"))), /* @__PURE__ */ React72.createElement(Grid10, { item: true, sx: { marginInlineEnd: -1 } }, /* @__PURE__ */ React72.createElement(SwitchControl, null))))))));
|
|
4527
4528
|
});
|
|
4528
4529
|
|
|
4529
4530
|
// src/controls/html-tag-control.tsx
|
|
@@ -4532,7 +4533,7 @@ import { getElementLabel } from "@elementor/editor-elements";
|
|
|
4532
4533
|
import { stringPropTypeUtil as stringPropTypeUtil9 } from "@elementor/editor-props";
|
|
4533
4534
|
import { MenuListItem as MenuListItem4 } from "@elementor/editor-ui";
|
|
4534
4535
|
import { Select as Select2, styled as styled8, Typography as Typography6 } from "@elementor/ui";
|
|
4535
|
-
import { __ as
|
|
4536
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
4536
4537
|
|
|
4537
4538
|
// src/components/conditional-control-infotip.tsx
|
|
4538
4539
|
import * as React73 from "react";
|
|
@@ -4595,9 +4596,9 @@ var HtmlTagControl = createControl((props) => {
|
|
|
4595
4596
|
};
|
|
4596
4597
|
const elementLabel = getElementLabel(elementId) ?? "element";
|
|
4597
4598
|
const infoTipProps = {
|
|
4598
|
-
title:
|
|
4599
|
+
title: __26("HTML Tag", "elementor"),
|
|
4599
4600
|
/* translators: %s is the element name. */
|
|
4600
|
-
description:
|
|
4601
|
+
description: __26(
|
|
4601
4602
|
`The tag is locked to 'a' tag because this %s has a link. To pick a different tag, remove the link first.`,
|
|
4602
4603
|
"elementor"
|
|
4603
4604
|
).replace("%s", elementLabel),
|
|
@@ -4641,7 +4642,7 @@ import {
|
|
|
4641
4642
|
import { useActiveBreakpoint as useActiveBreakpoint4 } from "@elementor/editor-responsive";
|
|
4642
4643
|
import { DetachIcon as DetachIcon2, LinkIcon as LinkIcon2 } from "@elementor/icons";
|
|
4643
4644
|
import { Grid as Grid11, Stack as Stack11, Tooltip as Tooltip7 } from "@elementor/ui";
|
|
4644
|
-
import { __ as
|
|
4645
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4645
4646
|
var GapControl = ({ label }) => {
|
|
4646
4647
|
const stackRef = useRef12(null);
|
|
4647
4648
|
const { disabled: sizeDisabled } = useBoundProp(sizePropTypeUtil6);
|
|
@@ -4689,8 +4690,8 @@ var GapControl = ({ label }) => {
|
|
|
4689
4690
|
};
|
|
4690
4691
|
const tooltipLabel = label.toLowerCase();
|
|
4691
4692
|
const LinkedIcon = isLinked ? LinkIcon2 : DetachIcon2;
|
|
4692
|
-
const linkedLabel =
|
|
4693
|
-
const unlinkedLabel =
|
|
4693
|
+
const linkedLabel = __27("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
4694
|
+
const unlinkedLabel = __27("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
4694
4695
|
const disabled = sizeDisabled || directionDisabled;
|
|
4695
4696
|
const propProviderProps = {
|
|
4696
4697
|
propType,
|
|
@@ -4723,20 +4724,20 @@ var GapControl = ({ label }) => {
|
|
|
4723
4724
|
isPlaceholder: hasPlaceholders
|
|
4724
4725
|
},
|
|
4725
4726
|
/* @__PURE__ */ React75.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
4726
|
-
))), /* @__PURE__ */ React75.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React75.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null,
|
|
4727
|
+
))), /* @__PURE__ */ React75.createElement(Stack11, { direction: "row", gap: 2, flexWrap: "nowrap", ref: stackRef }, /* @__PURE__ */ React75.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null, __27("Column", "elementor"))), /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(
|
|
4727
4728
|
Control4,
|
|
4728
4729
|
{
|
|
4729
4730
|
bind: "column",
|
|
4730
|
-
ariaLabel:
|
|
4731
|
+
ariaLabel: __27("Column gap", "elementor"),
|
|
4731
4732
|
isLinked,
|
|
4732
4733
|
anchorRef: stackRef,
|
|
4733
4734
|
placeholder: getEffectivePlaceholder("column") ?? void 0
|
|
4734
4735
|
}
|
|
4735
|
-
))), /* @__PURE__ */ React75.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null,
|
|
4736
|
+
))), /* @__PURE__ */ React75.createElement(Grid11, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(ControlFormLabel, null, __27("Row", "elementor"))), /* @__PURE__ */ React75.createElement(Grid11, { item: true, xs: 12 }, /* @__PURE__ */ React75.createElement(
|
|
4736
4737
|
Control4,
|
|
4737
4738
|
{
|
|
4738
4739
|
bind: "row",
|
|
4739
|
-
ariaLabel:
|
|
4740
|
+
ariaLabel: __27("Row gap", "elementor"),
|
|
4740
4741
|
isLinked,
|
|
4741
4742
|
anchorRef: stackRef,
|
|
4742
4743
|
placeholder: getEffectivePlaceholder("row") ?? void 0
|
|
@@ -4763,9 +4764,9 @@ import { stringPropTypeUtil as stringPropTypeUtil10 } from "@elementor/editor-pr
|
|
|
4763
4764
|
import { MenuListItem as MenuListItem5 } from "@elementor/editor-ui";
|
|
4764
4765
|
import { ArrowsMoveHorizontalIcon, ArrowsMoveVerticalIcon } from "@elementor/icons";
|
|
4765
4766
|
import { Grid as Grid12, Select as Select3, Stack as Stack12, TextField as TextField9 } from "@elementor/ui";
|
|
4766
|
-
import { __ as
|
|
4767
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
4767
4768
|
var RATIO_OPTIONS = [
|
|
4768
|
-
{ label:
|
|
4769
|
+
{ label: __28("Auto", "elementor"), value: "auto" },
|
|
4769
4770
|
{ label: "1/1", value: "1/1" },
|
|
4770
4771
|
{ label: "4/3", value: "4/3" },
|
|
4771
4772
|
{ label: "3/4", value: "3/4" },
|
|
@@ -4844,7 +4845,7 @@ var AspectRatioControl = createControl(({ label }) => {
|
|
|
4844
4845
|
renderValue: isCustomSelected ? void 0 : () => selectedOption?.label,
|
|
4845
4846
|
fullWidth: true
|
|
4846
4847
|
},
|
|
4847
|
-
[...RATIO_OPTIONS, { label:
|
|
4848
|
+
[...RATIO_OPTIONS, { label: __28("Custom", "elementor"), value: CUSTOM_RATIO }].map(
|
|
4848
4849
|
({ label: optionLabel, ...props }) => /* @__PURE__ */ React76.createElement(MenuListItem5, { key: props.value, ...props, value: props.value ?? "" }, optionLabel)
|
|
4849
4850
|
)
|
|
4850
4851
|
))), isCustom && /* @__PURE__ */ React76.createElement(Grid12, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React76.createElement(Grid12, { item: true, xs: 6 }, /* @__PURE__ */ React76.createElement(
|
|
@@ -4884,7 +4885,7 @@ import { svgSrcPropTypeUtil, urlPropTypeUtil as urlPropTypeUtil3 } from "@elemen
|
|
|
4884
4885
|
import { UploadIcon as UploadIcon2 } from "@elementor/icons";
|
|
4885
4886
|
import { Button as Button5, Card as Card2, CardMedia as CardMedia2, CardOverlay as CardOverlay2, CircularProgress as CircularProgress3, Stack as Stack13, styled as styled9, ThemeProvider } from "@elementor/ui";
|
|
4886
4887
|
import { useWpMediaAttachment as useWpMediaAttachment2, useWpMediaFrame as useWpMediaFrame2 } from "@elementor/wp-media";
|
|
4887
|
-
import { __ as
|
|
4888
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4888
4889
|
|
|
4889
4890
|
// src/components/enable-unfiltered-modal.tsx
|
|
4890
4891
|
import * as React77 from "react";
|
|
@@ -4900,14 +4901,14 @@ import {
|
|
|
4900
4901
|
DialogTitle,
|
|
4901
4902
|
Divider as Divider3
|
|
4902
4903
|
} from "@elementor/ui";
|
|
4903
|
-
import { __ as
|
|
4904
|
-
var ADMIN_TITLE_TEXT =
|
|
4905
|
-
var ADMIN_CONTENT_TEXT =
|
|
4904
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
4905
|
+
var ADMIN_TITLE_TEXT = __29("Enable Unfiltered Uploads", "elementor");
|
|
4906
|
+
var ADMIN_CONTENT_TEXT = __29(
|
|
4906
4907
|
"Before you enable unfiltered files upload, note that such files include a security risk. Elementor does run a process to remove possible malicious code, but there is still risk involved when using such files.",
|
|
4907
4908
|
"elementor"
|
|
4908
4909
|
);
|
|
4909
|
-
var ADMIN_FAILED_CONTENT_TEXT_PT1 =
|
|
4910
|
-
var ADMIN_FAILED_CONTENT_TEXT_PT2 =
|
|
4910
|
+
var ADMIN_FAILED_CONTENT_TEXT_PT1 = __29("Failed to enable unfiltered files upload.", "elementor");
|
|
4911
|
+
var ADMIN_FAILED_CONTENT_TEXT_PT2 = __29(
|
|
4911
4912
|
"You can try again, if the problem persists, please contact support.",
|
|
4912
4913
|
"elementor"
|
|
4913
4914
|
);
|
|
@@ -4934,7 +4935,7 @@ var EnableUnfilteredModal = (props) => {
|
|
|
4934
4935
|
const dialogProps = { ...props, isPending, handleEnable, isError, onClose };
|
|
4935
4936
|
return /* @__PURE__ */ React77.createElement(AdminDialog, { ...dialogProps });
|
|
4936
4937
|
};
|
|
4937
|
-
var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @__PURE__ */ React77.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React77.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React77.createElement(DialogTitle, null, ADMIN_TITLE_TEXT)), /* @__PURE__ */ React77.createElement(Divider3, null), /* @__PURE__ */ React77.createElement(DialogContent, null, /* @__PURE__ */ React77.createElement(DialogContentText, null, isError ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, ADMIN_FAILED_CONTENT_TEXT_PT1, " ", /* @__PURE__ */ React77.createElement("br", null), " ", ADMIN_FAILED_CONTENT_TEXT_PT2) : ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React77.createElement(DialogActions, null, /* @__PURE__ */ React77.createElement(Button4, { size: "medium", color: "secondary", onClick: () => onClose(false) },
|
|
4938
|
+
var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @__PURE__ */ React77.createElement(Dialog, { open, maxWidth: "sm", onClose: () => onClose(false) }, /* @__PURE__ */ React77.createElement(DialogHeader, { logo: false }, /* @__PURE__ */ React77.createElement(DialogTitle, null, ADMIN_TITLE_TEXT)), /* @__PURE__ */ React77.createElement(Divider3, null), /* @__PURE__ */ React77.createElement(DialogContent, null, /* @__PURE__ */ React77.createElement(DialogContentText, null, isError ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, ADMIN_FAILED_CONTENT_TEXT_PT1, " ", /* @__PURE__ */ React77.createElement("br", null), " ", ADMIN_FAILED_CONTENT_TEXT_PT2) : ADMIN_CONTENT_TEXT)), /* @__PURE__ */ React77.createElement(DialogActions, null, /* @__PURE__ */ React77.createElement(Button4, { size: "medium", color: "secondary", onClick: () => onClose(false) }, __29("Cancel", "elementor")), /* @__PURE__ */ React77.createElement(
|
|
4938
4939
|
Button4,
|
|
4939
4940
|
{
|
|
4940
4941
|
size: "medium",
|
|
@@ -4943,7 +4944,7 @@ var AdminDialog = ({ open, onClose, handleEnable, isPending, isError }) => /* @_
|
|
|
4943
4944
|
color: "primary",
|
|
4944
4945
|
disabled: isPending
|
|
4945
4946
|
},
|
|
4946
|
-
isPending ? /* @__PURE__ */ React77.createElement(CircularProgress2, { size: 24 }) :
|
|
4947
|
+
isPending ? /* @__PURE__ */ React77.createElement(CircularProgress2, { size: 24 }) : __29("Enable", "elementor")
|
|
4947
4948
|
)));
|
|
4948
4949
|
|
|
4949
4950
|
// src/controls/svg-media-control.tsx
|
|
@@ -5008,8 +5009,8 @@ var SvgMediaControl = createControl(() => {
|
|
|
5008
5009
|
}
|
|
5009
5010
|
};
|
|
5010
5011
|
const infotipProps = {
|
|
5011
|
-
title:
|
|
5012
|
-
description: /* @__PURE__ */ React78.createElement(React78.Fragment, null,
|
|
5012
|
+
title: __30("Sorry, you can't upload that file yet.", "elementor"),
|
|
5013
|
+
description: /* @__PURE__ */ React78.createElement(React78.Fragment, null, __30("To upload them anyway, ask the site administrator to enable unfiltered", "elementor"), /* @__PURE__ */ React78.createElement("br", null), __30("file uploads.", "elementor")),
|
|
5013
5014
|
isEnabled: !isAdmin
|
|
5014
5015
|
};
|
|
5015
5016
|
return /* @__PURE__ */ React78.createElement(Stack13, { gap: 1, "aria-label": "SVG Control" }, /* @__PURE__ */ React78.createElement(EnableUnfilteredModal, { open: unfilteredModalOpenState, onClose: onCloseUnfilteredModal }), /* @__PURE__ */ React78.createElement(ControlActions, null, /* @__PURE__ */ React78.createElement(StyledCard, { variant: "outlined" }, /* @__PURE__ */ React78.createElement(StyledCardMediaContainer, null, isFetching ? /* @__PURE__ */ React78.createElement(CircularProgress3, { role: "progressbar" }) : /* @__PURE__ */ React78.createElement(
|
|
@@ -5017,7 +5018,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
5017
5018
|
{
|
|
5018
5019
|
component: "img",
|
|
5019
5020
|
image: src,
|
|
5020
|
-
alt:
|
|
5021
|
+
alt: __30("Preview SVG", "elementor"),
|
|
5021
5022
|
sx: { maxHeight: "140px", width: "50px" }
|
|
5022
5023
|
}
|
|
5023
5024
|
)), /* @__PURE__ */ React78.createElement(
|
|
@@ -5038,7 +5039,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
5038
5039
|
onClick: () => handleClick(MODE_BROWSE),
|
|
5039
5040
|
"aria-label": "Select SVG"
|
|
5040
5041
|
},
|
|
5041
|
-
|
|
5042
|
+
__30("Select SVG", "elementor")
|
|
5042
5043
|
), /* @__PURE__ */ React78.createElement(ConditionalControlInfotip, { ...infotipProps }, /* @__PURE__ */ React78.createElement("span", null, /* @__PURE__ */ React78.createElement(ThemeProvider, { colorScheme: isAdmin ? "light" : "dark" }, /* @__PURE__ */ React78.createElement(
|
|
5043
5044
|
Button5,
|
|
5044
5045
|
{
|
|
@@ -5050,7 +5051,7 @@ var SvgMediaControl = createControl(() => {
|
|
|
5050
5051
|
onClick: () => isAdmin && handleClick(MODE_UPLOAD),
|
|
5051
5052
|
"aria-label": "Upload SVG"
|
|
5052
5053
|
},
|
|
5053
|
-
|
|
5054
|
+
__30("Upload", "elementor")
|
|
5054
5055
|
)))))
|
|
5055
5056
|
))));
|
|
5056
5057
|
});
|
|
@@ -5061,7 +5062,7 @@ import { videoSrcPropTypeUtil } from "@elementor/editor-props";
|
|
|
5061
5062
|
import { UploadIcon as UploadIcon3 } from "@elementor/icons";
|
|
5062
5063
|
import { Button as Button6, Card as Card3, CardMedia as CardMedia3, CardOverlay as CardOverlay3, CircularProgress as CircularProgress4, Stack as Stack14 } from "@elementor/ui";
|
|
5063
5064
|
import { useWpMediaAttachment as useWpMediaAttachment3, useWpMediaFrame as useWpMediaFrame3 } from "@elementor/wp-media";
|
|
5064
|
-
import { __ as
|
|
5065
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
5065
5066
|
var PLACEHOLDER_IMAGE = window.elementorCommon?.config?.urls?.assets + "/shapes/play-triangle.svg";
|
|
5066
5067
|
var VideoMediaControl = createControl(() => {
|
|
5067
5068
|
const { value, setValue } = useBoundProp(videoSrcPropTypeUtil);
|
|
@@ -5106,7 +5107,7 @@ var VideoMediaControl = createControl(() => {
|
|
|
5106
5107
|
variant: "outlined",
|
|
5107
5108
|
onClick: () => open({ mode: "browse" })
|
|
5108
5109
|
},
|
|
5109
|
-
|
|
5110
|
+
__31("Select video", "elementor")
|
|
5110
5111
|
), /* @__PURE__ */ React79.createElement(
|
|
5111
5112
|
Button6,
|
|
5112
5113
|
{
|
|
@@ -5116,7 +5117,7 @@ var VideoMediaControl = createControl(() => {
|
|
|
5116
5117
|
startIcon: /* @__PURE__ */ React79.createElement(UploadIcon3, null),
|
|
5117
5118
|
onClick: () => open({ mode: "upload" })
|
|
5118
5119
|
},
|
|
5119
|
-
|
|
5120
|
+
__31("Upload", "elementor")
|
|
5120
5121
|
)))));
|
|
5121
5122
|
});
|
|
5122
5123
|
var VideoPreview = ({ isFetching = false, videoUrl }) => {
|
|
@@ -5146,7 +5147,7 @@ var VideoPreview = ({ isFetching = false, videoUrl }) => {
|
|
|
5146
5147
|
import * as React86 from "react";
|
|
5147
5148
|
import { backgroundPropTypeUtil } from "@elementor/editor-props";
|
|
5148
5149
|
import { Grid as Grid17 } from "@elementor/ui";
|
|
5149
|
-
import { __ as
|
|
5150
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
5150
5151
|
|
|
5151
5152
|
// src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
|
|
5152
5153
|
import * as React85 from "react";
|
|
@@ -5158,7 +5159,7 @@ import {
|
|
|
5158
5159
|
} from "@elementor/editor-props";
|
|
5159
5160
|
import { Box as Box14, CardMedia as CardMedia4, styled as styled10, Tab, TabPanel, Tabs, UnstableColorIndicator as UnstableColorIndicator3 } from "@elementor/ui";
|
|
5160
5161
|
import { useWpMediaAttachment as useWpMediaAttachment4 } from "@elementor/wp-media";
|
|
5161
|
-
import { __ as
|
|
5162
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
5162
5163
|
|
|
5163
5164
|
// src/env.ts
|
|
5164
5165
|
import { parseEnv } from "@elementor/env";
|
|
@@ -5240,23 +5241,23 @@ var initialBackgroundGradientOverlay = backgroundGradientOverlayPropTypeUtil.cre
|
|
|
5240
5241
|
import * as React81 from "react";
|
|
5241
5242
|
import { PinIcon, PinnedOffIcon } from "@elementor/icons";
|
|
5242
5243
|
import { Grid as Grid13 } from "@elementor/ui";
|
|
5243
|
-
import { __ as
|
|
5244
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
5244
5245
|
var attachmentControlOptions = [
|
|
5245
5246
|
{
|
|
5246
5247
|
value: "fixed",
|
|
5247
|
-
label:
|
|
5248
|
+
label: __32("Fixed", "elementor"),
|
|
5248
5249
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(PinIcon, { fontSize: size }),
|
|
5249
5250
|
showTooltip: true
|
|
5250
5251
|
},
|
|
5251
5252
|
{
|
|
5252
5253
|
value: "scroll",
|
|
5253
|
-
label:
|
|
5254
|
+
label: __32("Scroll", "elementor"),
|
|
5254
5255
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(PinnedOffIcon, { fontSize: size }),
|
|
5255
5256
|
showTooltip: true
|
|
5256
5257
|
}
|
|
5257
5258
|
];
|
|
5258
5259
|
var BackgroundImageOverlayAttachment = () => {
|
|
5259
|
-
return /* @__PURE__ */ React81.createElement(PopoverGridContainer, null, /* @__PURE__ */ React81.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React81.createElement(ControlFormLabel, null,
|
|
5260
|
+
return /* @__PURE__ */ React81.createElement(PopoverGridContainer, null, /* @__PURE__ */ React81.createElement(Grid13, { item: true, xs: 6 }, /* @__PURE__ */ React81.createElement(ControlFormLabel, null, __32("Attachment", "elementor"))), /* @__PURE__ */ React81.createElement(Grid13, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React81.createElement(ToggleControl, { options: attachmentControlOptions })));
|
|
5260
5261
|
};
|
|
5261
5262
|
|
|
5262
5263
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx
|
|
@@ -5266,18 +5267,18 @@ import { backgroundImagePositionOffsetPropTypeUtil, stringPropTypeUtil as string
|
|
|
5266
5267
|
import { MenuListItem as MenuListItem6 } from "@elementor/editor-ui";
|
|
5267
5268
|
import { LetterXIcon, LetterYIcon } from "@elementor/icons";
|
|
5268
5269
|
import { Grid as Grid14, Select as Select4 } from "@elementor/ui";
|
|
5269
|
-
import { __ as
|
|
5270
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
5270
5271
|
var backgroundPositionOptions = [
|
|
5271
|
-
{ label:
|
|
5272
|
-
{ label:
|
|
5273
|
-
{ label:
|
|
5274
|
-
{ label:
|
|
5275
|
-
{ label:
|
|
5276
|
-
{ label:
|
|
5277
|
-
{ label:
|
|
5278
|
-
{ label:
|
|
5279
|
-
{ label:
|
|
5280
|
-
{ label:
|
|
5272
|
+
{ label: __33("Center center", "elementor"), value: "center center" },
|
|
5273
|
+
{ label: __33("Center left", "elementor"), value: "center left" },
|
|
5274
|
+
{ label: __33("Center right", "elementor"), value: "center right" },
|
|
5275
|
+
{ label: __33("Top center", "elementor"), value: "top center" },
|
|
5276
|
+
{ label: __33("Top left", "elementor"), value: "top left" },
|
|
5277
|
+
{ label: __33("Top right", "elementor"), value: "top right" },
|
|
5278
|
+
{ label: __33("Bottom center", "elementor"), value: "bottom center" },
|
|
5279
|
+
{ label: __33("Bottom left", "elementor"), value: "bottom left" },
|
|
5280
|
+
{ label: __33("Bottom right", "elementor"), value: "bottom right" },
|
|
5281
|
+
{ label: __33("Custom", "elementor"), value: "custom" }
|
|
5281
5282
|
];
|
|
5282
5283
|
var BackgroundImageOverlayPosition = () => {
|
|
5283
5284
|
const backgroundImageOffsetContext = useBoundProp(backgroundImagePositionOffsetPropTypeUtil);
|
|
@@ -5292,7 +5293,7 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
5292
5293
|
stringPropContext.setValue(value);
|
|
5293
5294
|
}
|
|
5294
5295
|
};
|
|
5295
|
-
return /* @__PURE__ */ React82.createElement(Grid14, { container: true, spacing: 1.5 }, /* @__PURE__ */ React82.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React82.createElement(PopoverGridContainer, null, /* @__PURE__ */ React82.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React82.createElement(ControlFormLabel, null,
|
|
5296
|
+
return /* @__PURE__ */ React82.createElement(Grid14, { container: true, spacing: 1.5 }, /* @__PURE__ */ React82.createElement(Grid14, { item: true, xs: 12 }, /* @__PURE__ */ React82.createElement(PopoverGridContainer, null, /* @__PURE__ */ React82.createElement(Grid14, { item: true, xs: 6 }, /* @__PURE__ */ React82.createElement(ControlFormLabel, null, __33("Position", "elementor"))), /* @__PURE__ */ React82.createElement(Grid14, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end", overflow: "hidden" } }, /* @__PURE__ */ React82.createElement(ControlActions, null, /* @__PURE__ */ React82.createElement(
|
|
5296
5297
|
Select4,
|
|
5297
5298
|
{
|
|
5298
5299
|
fullWidth: true,
|
|
@@ -5323,35 +5324,35 @@ var BackgroundImageOverlayPosition = () => {
|
|
|
5323
5324
|
import * as React83 from "react";
|
|
5324
5325
|
import { DotsHorizontalIcon, DotsVerticalIcon, GridDotsIcon, XIcon as XIcon3 } from "@elementor/icons";
|
|
5325
5326
|
import { Grid as Grid15 } from "@elementor/ui";
|
|
5326
|
-
import { __ as
|
|
5327
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
5327
5328
|
var repeatControlOptions = [
|
|
5328
5329
|
{
|
|
5329
5330
|
value: "repeat",
|
|
5330
|
-
label:
|
|
5331
|
+
label: __34("Repeat", "elementor"),
|
|
5331
5332
|
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(GridDotsIcon, { fontSize: size }),
|
|
5332
5333
|
showTooltip: true
|
|
5333
5334
|
},
|
|
5334
5335
|
{
|
|
5335
5336
|
value: "repeat-x",
|
|
5336
|
-
label:
|
|
5337
|
+
label: __34("Repeat-x", "elementor"),
|
|
5337
5338
|
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(DotsHorizontalIcon, { fontSize: size }),
|
|
5338
5339
|
showTooltip: true
|
|
5339
5340
|
},
|
|
5340
5341
|
{
|
|
5341
5342
|
value: "repeat-y",
|
|
5342
|
-
label:
|
|
5343
|
+
label: __34("Repeat-y", "elementor"),
|
|
5343
5344
|
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(DotsVerticalIcon, { fontSize: size }),
|
|
5344
5345
|
showTooltip: true
|
|
5345
5346
|
},
|
|
5346
5347
|
{
|
|
5347
5348
|
value: "no-repeat",
|
|
5348
|
-
label:
|
|
5349
|
+
label: __34("No-repeat", "elementor"),
|
|
5349
5350
|
renderContent: ({ size }) => /* @__PURE__ */ React83.createElement(XIcon3, { fontSize: size }),
|
|
5350
5351
|
showTooltip: true
|
|
5351
5352
|
}
|
|
5352
5353
|
];
|
|
5353
5354
|
var BackgroundImageOverlayRepeat = () => {
|
|
5354
|
-
return /* @__PURE__ */ React83.createElement(PopoverGridContainer, null, /* @__PURE__ */ React83.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React83.createElement(ControlFormLabel, null,
|
|
5355
|
+
return /* @__PURE__ */ React83.createElement(PopoverGridContainer, null, /* @__PURE__ */ React83.createElement(Grid15, { item: true, xs: 6 }, /* @__PURE__ */ React83.createElement(ControlFormLabel, null, __34("Repeat", "elementor"))), /* @__PURE__ */ React83.createElement(Grid15, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React83.createElement(ToggleControl, { options: repeatControlOptions })));
|
|
5355
5356
|
};
|
|
5356
5357
|
|
|
5357
5358
|
// src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx
|
|
@@ -5367,29 +5368,29 @@ import {
|
|
|
5367
5368
|
PencilIcon
|
|
5368
5369
|
} from "@elementor/icons";
|
|
5369
5370
|
import { Grid as Grid16 } from "@elementor/ui";
|
|
5370
|
-
import { __ as
|
|
5371
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
5371
5372
|
var sizeControlOptions = [
|
|
5372
5373
|
{
|
|
5373
5374
|
value: "auto",
|
|
5374
|
-
label:
|
|
5375
|
+
label: __35("Auto", "elementor"),
|
|
5375
5376
|
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(LetterAIcon, { fontSize: size }),
|
|
5376
5377
|
showTooltip: true
|
|
5377
5378
|
},
|
|
5378
5379
|
{
|
|
5379
5380
|
value: "cover",
|
|
5380
|
-
label:
|
|
5381
|
+
label: __35("Cover", "elementor"),
|
|
5381
5382
|
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(ArrowsMaximizeIcon, { fontSize: size }),
|
|
5382
5383
|
showTooltip: true
|
|
5383
5384
|
},
|
|
5384
5385
|
{
|
|
5385
5386
|
value: "contain",
|
|
5386
|
-
label:
|
|
5387
|
+
label: __35("Contain", "elementor"),
|
|
5387
5388
|
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(ArrowBarBothIcon, { fontSize: size }),
|
|
5388
5389
|
showTooltip: true
|
|
5389
5390
|
},
|
|
5390
5391
|
{
|
|
5391
5392
|
value: "custom",
|
|
5392
|
-
label:
|
|
5393
|
+
label: __35("Custom", "elementor"),
|
|
5393
5394
|
renderContent: ({ size }) => /* @__PURE__ */ React84.createElement(PencilIcon, { fontSize: size }),
|
|
5394
5395
|
showTooltip: true
|
|
5395
5396
|
}
|
|
@@ -5406,7 +5407,7 @@ var BackgroundImageOverlaySize = () => {
|
|
|
5406
5407
|
stringPropContext.setValue(size);
|
|
5407
5408
|
}
|
|
5408
5409
|
};
|
|
5409
|
-
return /* @__PURE__ */ React84.createElement(Grid16, { container: true, spacing: 1.5 }, /* @__PURE__ */ React84.createElement(Grid16, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(PopoverGridContainer, null, /* @__PURE__ */ React84.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React84.createElement(ControlFormLabel, null,
|
|
5410
|
+
return /* @__PURE__ */ React84.createElement(Grid16, { container: true, spacing: 1.5 }, /* @__PURE__ */ React84.createElement(Grid16, { item: true, xs: 12 }, /* @__PURE__ */ React84.createElement(PopoverGridContainer, null, /* @__PURE__ */ React84.createElement(Grid16, { item: true, xs: 6 }, /* @__PURE__ */ React84.createElement(ControlFormLabel, null, __35("Size", "elementor"))), /* @__PURE__ */ React84.createElement(Grid16, { item: true, xs: 6, sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React84.createElement(
|
|
5410
5411
|
ControlToggleButtonGroup,
|
|
5411
5412
|
{
|
|
5412
5413
|
exclusive: true,
|
|
@@ -5526,10 +5527,10 @@ var getInitialBackgroundOverlay = () => ({
|
|
|
5526
5527
|
}
|
|
5527
5528
|
});
|
|
5528
5529
|
var backgroundResolutionOptions = [
|
|
5529
|
-
{ label:
|
|
5530
|
-
{ label:
|
|
5531
|
-
{ label:
|
|
5532
|
-
{ label:
|
|
5530
|
+
{ label: __36("Thumbnail - 150 x 150", "elementor"), value: "thumbnail" },
|
|
5531
|
+
{ label: __36("Medium - 300 x 300", "elementor"), value: "medium" },
|
|
5532
|
+
{ label: __36("Large 1024 x 1024", "elementor"), value: "large" },
|
|
5533
|
+
{ label: __36("Full", "elementor"), value: "full" }
|
|
5533
5534
|
];
|
|
5534
5535
|
var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
5535
5536
|
const { propType, value: overlayValues, setValue } = useBoundProp(backgroundOverlayPropTypeUtil);
|
|
@@ -5539,7 +5540,7 @@ var BackgroundOverlayRepeaterControl = createControl(() => {
|
|
|
5539
5540
|
initial: getInitialBackgroundOverlay(),
|
|
5540
5541
|
propTypeUtil: backgroundOverlayPropTypeUtil
|
|
5541
5542
|
},
|
|
5542
|
-
/* @__PURE__ */ React85.createElement(RepeaterHeader, { label:
|
|
5543
|
+
/* @__PURE__ */ React85.createElement(RepeaterHeader, { label: __36("Overlay", "elementor") }, /* @__PURE__ */ React85.createElement(TooltipAddItemAction, { newItemIndex: 0 })),
|
|
5543
5544
|
/* @__PURE__ */ React85.createElement(ItemsContainer, null, /* @__PURE__ */ React85.createElement(
|
|
5544
5545
|
Item,
|
|
5545
5546
|
{
|
|
@@ -5564,11 +5565,11 @@ var ItemContent = () => {
|
|
|
5564
5565
|
size: "small",
|
|
5565
5566
|
variant: "fullWidth",
|
|
5566
5567
|
...getTabsProps(),
|
|
5567
|
-
"aria-label":
|
|
5568
|
+
"aria-label": __36("Background Overlay", "elementor")
|
|
5568
5569
|
},
|
|
5569
|
-
/* @__PURE__ */ React85.createElement(Tab, { label:
|
|
5570
|
-
/* @__PURE__ */ React85.createElement(Tab, { label:
|
|
5571
|
-
/* @__PURE__ */ React85.createElement(Tab, { label:
|
|
5570
|
+
/* @__PURE__ */ React85.createElement(Tab, { label: __36("Image", "elementor"), ...getTabProps("image") }),
|
|
5571
|
+
/* @__PURE__ */ React85.createElement(Tab, { label: __36("Gradient", "elementor"), ...getTabProps("gradient") }),
|
|
5572
|
+
/* @__PURE__ */ React85.createElement(Tab, { label: __36("Color", "elementor"), ...getTabProps("color") })
|
|
5572
5573
|
)), /* @__PURE__ */ React85.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("image") }, /* @__PURE__ */ React85.createElement(PopoverContent, null, /* @__PURE__ */ React85.createElement(ImageOverlayContent, null))), /* @__PURE__ */ React85.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("gradient") }, /* @__PURE__ */ React85.createElement(BackgroundGradientColorControl, null)), /* @__PURE__ */ React85.createElement(TabPanel, { sx: { p: 1.5 }, ...getTabPanelProps("color") }, /* @__PURE__ */ React85.createElement(PopoverContent, null, /* @__PURE__ */ React85.createElement(ColorOverlayContent, { anchorEl: rowRef }))));
|
|
5573
5574
|
};
|
|
5574
5575
|
var ItemIcon2 = ({ value }) => {
|
|
@@ -5634,9 +5635,9 @@ var ItemLabelImage = ({ value }) => {
|
|
|
5634
5635
|
};
|
|
5635
5636
|
var ItemLabelGradient = ({ value }) => {
|
|
5636
5637
|
if (value.value.type.value === "linear") {
|
|
5637
|
-
return /* @__PURE__ */ React85.createElement("span", null,
|
|
5638
|
+
return /* @__PURE__ */ React85.createElement("span", null, __36("Linear Gradient", "elementor"));
|
|
5638
5639
|
}
|
|
5639
|
-
return /* @__PURE__ */ React85.createElement("span", null,
|
|
5640
|
+
return /* @__PURE__ */ React85.createElement("span", null, __36("Radial Gradient", "elementor"));
|
|
5640
5641
|
};
|
|
5641
5642
|
var ColorOverlayContent = ({ anchorEl }) => {
|
|
5642
5643
|
const propContext = useBoundProp(backgroundColorOverlayPropTypeUtil2);
|
|
@@ -5683,13 +5684,13 @@ var getGradientValue = (value) => {
|
|
|
5683
5684
|
|
|
5684
5685
|
// src/controls/background-control/background-control.tsx
|
|
5685
5686
|
var clipOptions = [
|
|
5686
|
-
{ label:
|
|
5687
|
-
{ label:
|
|
5688
|
-
{ label:
|
|
5689
|
-
{ label:
|
|
5687
|
+
{ label: __37("Full element", "elementor"), value: "border-box" },
|
|
5688
|
+
{ label: __37("Padding edges", "elementor"), value: "padding-box" },
|
|
5689
|
+
{ label: __37("Content edges", "elementor"), value: "content-box" },
|
|
5690
|
+
{ label: __37("Text", "elementor"), value: "text" }
|
|
5690
5691
|
];
|
|
5691
|
-
var colorLabel =
|
|
5692
|
-
var clipLabel =
|
|
5692
|
+
var colorLabel = __37("Color", "elementor");
|
|
5693
|
+
var clipLabel = __37("Clipping", "elementor");
|
|
5693
5694
|
var BackgroundControl = createControl(() => {
|
|
5694
5695
|
const propContext = useBoundProp(backgroundPropTypeUtil);
|
|
5695
5696
|
return /* @__PURE__ */ React86.createElement(PropProvider, { ...propContext }, /* @__PURE__ */ React86.createElement(PropKeyProvider, { bind: "background-overlay" }, /* @__PURE__ */ React86.createElement(BackgroundOverlayRepeaterControl, null)), /* @__PURE__ */ React86.createElement(BackgroundColorField, null), /* @__PURE__ */ React86.createElement(BackgroundClipField, null));
|
|
@@ -5867,7 +5868,7 @@ import {
|
|
|
5867
5868
|
stringPropTypeUtil as stringPropTypeUtil14
|
|
5868
5869
|
} from "@elementor/editor-props";
|
|
5869
5870
|
import { FormHelperText, FormLabel as FormLabel3, Grid as Grid18 } from "@elementor/ui";
|
|
5870
|
-
import { __ as
|
|
5871
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
5871
5872
|
|
|
5872
5873
|
// src/utils/escape-html-attr.ts
|
|
5873
5874
|
var escapeHtmlAttr = (value) => {
|
|
@@ -5897,8 +5898,8 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
5897
5898
|
key: getInitialFieldValue(value?.key),
|
|
5898
5899
|
value: getInitialFieldValue(value?.value)
|
|
5899
5900
|
});
|
|
5900
|
-
const keyLabel = props.keyName ||
|
|
5901
|
-
const valueLabel = props.valueName ||
|
|
5901
|
+
const keyLabel = props.keyName || __38("Key", "elementor");
|
|
5902
|
+
const valueLabel = props.valueName || __38("Value", "elementor");
|
|
5902
5903
|
const { keyHelper, valueHelper } = props.getHelperText?.(sessionState.key, sessionState.value) || {
|
|
5903
5904
|
keyHelper: void 0,
|
|
5904
5905
|
valueHelper: void 0
|
|
@@ -5907,7 +5908,7 @@ var KeyValueControl = createControl((props = {}) => {
|
|
|
5907
5908
|
() => [
|
|
5908
5909
|
props.regexKey ? new RegExp(props.regexKey) : void 0,
|
|
5909
5910
|
props.regexValue ? new RegExp(props.regexValue) : void 0,
|
|
5910
|
-
props.validationErrorMessage ||
|
|
5911
|
+
props.validationErrorMessage || __38("Invalid Format", "elementor")
|
|
5911
5912
|
],
|
|
5912
5913
|
[props.regexKey, props.regexValue, props.validationErrorMessage]
|
|
5913
5914
|
);
|
|
@@ -5980,18 +5981,18 @@ import { positionPropTypeUtil, stringPropTypeUtil as stringPropTypeUtil15 } from
|
|
|
5980
5981
|
import { MenuListItem as MenuListItem7 } from "@elementor/editor-ui";
|
|
5981
5982
|
import { LetterXIcon as LetterXIcon2, LetterYIcon as LetterYIcon2 } from "@elementor/icons";
|
|
5982
5983
|
import { Grid as Grid19, Select as Select5 } from "@elementor/ui";
|
|
5983
|
-
import { __ as
|
|
5984
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
5984
5985
|
var positionOptions = [
|
|
5985
|
-
{ label:
|
|
5986
|
-
{ label:
|
|
5987
|
-
{ label:
|
|
5988
|
-
{ label:
|
|
5989
|
-
{ label:
|
|
5990
|
-
{ label:
|
|
5991
|
-
{ label:
|
|
5992
|
-
{ label:
|
|
5993
|
-
{ label:
|
|
5994
|
-
{ label:
|
|
5986
|
+
{ label: __39("Center center", "elementor"), value: "center center" },
|
|
5987
|
+
{ label: __39("Center left", "elementor"), value: "center left" },
|
|
5988
|
+
{ label: __39("Center right", "elementor"), value: "center right" },
|
|
5989
|
+
{ label: __39("Top center", "elementor"), value: "top center" },
|
|
5990
|
+
{ label: __39("Top left", "elementor"), value: "top left" },
|
|
5991
|
+
{ label: __39("Top right", "elementor"), value: "top right" },
|
|
5992
|
+
{ label: __39("Bottom center", "elementor"), value: "bottom center" },
|
|
5993
|
+
{ label: __39("Bottom left", "elementor"), value: "bottom left" },
|
|
5994
|
+
{ label: __39("Bottom right", "elementor"), value: "bottom right" },
|
|
5995
|
+
{ label: __39("Custom", "elementor"), value: "custom" }
|
|
5995
5996
|
];
|
|
5996
5997
|
var PositionControl = () => {
|
|
5997
5998
|
const positionContext = useBoundProp(positionPropTypeUtil);
|
|
@@ -6005,7 +6006,7 @@ var PositionControl = () => {
|
|
|
6005
6006
|
stringPropContext.setValue(value);
|
|
6006
6007
|
}
|
|
6007
6008
|
};
|
|
6008
|
-
return /* @__PURE__ */ React89.createElement(Grid19, { container: true, spacing: 1.5 }, /* @__PURE__ */ React89.createElement(Grid19, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React89.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React89.createElement(ControlFormLabel, null,
|
|
6009
|
+
return /* @__PURE__ */ React89.createElement(Grid19, { container: true, spacing: 1.5 }, /* @__PURE__ */ React89.createElement(Grid19, { item: true, xs: 12 }, /* @__PURE__ */ React89.createElement(Grid19, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React89.createElement(Grid19, { item: true, xs: 6 }, /* @__PURE__ */ React89.createElement(ControlFormLabel, null, __39("Object position", "elementor"))), /* @__PURE__ */ React89.createElement(Grid19, { item: true, xs: 6, sx: { overflow: "hidden" } }, /* @__PURE__ */ React89.createElement(
|
|
6009
6010
|
Select5,
|
|
6010
6011
|
{
|
|
6011
6012
|
size: "tiny",
|
|
@@ -6036,7 +6037,7 @@ import { useRef as useRef23 } from "react";
|
|
|
6036
6037
|
import { transformFunctionsPropTypeUtil, transformPropTypeUtil } from "@elementor/editor-props";
|
|
6037
6038
|
import { AdjustmentsIcon as AdjustmentsIcon2, InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
6038
6039
|
import { bindTrigger as bindTrigger5, Box as Box19, IconButton as IconButton7, Tooltip as Tooltip8, Typography as Typography7, usePopupState as usePopupState8 } from "@elementor/ui";
|
|
6039
|
-
import { __ as
|
|
6040
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
6040
6041
|
|
|
6041
6042
|
// src/controls/transform-control/initial-values.ts
|
|
6042
6043
|
import {
|
|
@@ -6092,7 +6093,7 @@ var initialSkewValue = skewTransformPropTypeUtil.create({
|
|
|
6092
6093
|
// src/controls/transform-control/transform-content.tsx
|
|
6093
6094
|
import * as React96 from "react";
|
|
6094
6095
|
import { Box as Box16, Tab as Tab2, TabPanel as TabPanel2, Tabs as Tabs2 } from "@elementor/ui";
|
|
6095
|
-
import { __ as
|
|
6096
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
6096
6097
|
|
|
6097
6098
|
// src/controls/transform-control/functions/move.tsx
|
|
6098
6099
|
import * as React91 from "react";
|
|
@@ -6100,7 +6101,7 @@ import { useRef as useRef16 } from "react";
|
|
|
6100
6101
|
import { moveTransformPropTypeUtil } from "@elementor/editor-props";
|
|
6101
6102
|
import { ArrowDownLeftIcon, ArrowDownSmallIcon, ArrowRightIcon } from "@elementor/icons";
|
|
6102
6103
|
import { Grid as Grid21 } from "@elementor/ui";
|
|
6103
|
-
import { __ as
|
|
6104
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
6104
6105
|
|
|
6105
6106
|
// src/controls/transform-control/functions/axis-row.tsx
|
|
6106
6107
|
import * as React90 from "react";
|
|
@@ -6123,19 +6124,19 @@ var AxisRow = ({ label, bind, startIcon, anchorRef, units: units2, variant = "an
|
|
|
6123
6124
|
// src/controls/transform-control/functions/move.tsx
|
|
6124
6125
|
var moveAxisControls = [
|
|
6125
6126
|
{
|
|
6126
|
-
label:
|
|
6127
|
+
label: __40("Move X", "elementor"),
|
|
6127
6128
|
bind: "x",
|
|
6128
6129
|
startIcon: /* @__PURE__ */ React91.createElement(ArrowRightIcon, { fontSize: "tiny" }),
|
|
6129
6130
|
units: ["px", "%", "em", "rem", "vw"]
|
|
6130
6131
|
},
|
|
6131
6132
|
{
|
|
6132
|
-
label:
|
|
6133
|
+
label: __40("Move Y", "elementor"),
|
|
6133
6134
|
bind: "y",
|
|
6134
6135
|
startIcon: /* @__PURE__ */ React91.createElement(ArrowDownSmallIcon, { fontSize: "tiny" }),
|
|
6135
6136
|
units: ["px", "%", "em", "rem", "vh"]
|
|
6136
6137
|
},
|
|
6137
6138
|
{
|
|
6138
|
-
label:
|
|
6139
|
+
label: __40("Move Z", "elementor"),
|
|
6139
6140
|
bind: "z",
|
|
6140
6141
|
startIcon: /* @__PURE__ */ React91.createElement(ArrowDownLeftIcon, { fontSize: "tiny" }),
|
|
6141
6142
|
units: ["px", "%", "em", "rem", "vw", "vh"]
|
|
@@ -6162,20 +6163,20 @@ import { useRef as useRef17 } from "react";
|
|
|
6162
6163
|
import { rotateTransformPropTypeUtil as rotateTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
6163
6164
|
import { Arrow360Icon, RotateClockwiseIcon } from "@elementor/icons";
|
|
6164
6165
|
import { Grid as Grid22 } from "@elementor/ui";
|
|
6165
|
-
import { __ as
|
|
6166
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
6166
6167
|
var rotateAxisControls = [
|
|
6167
6168
|
{
|
|
6168
|
-
label:
|
|
6169
|
+
label: __41("Rotate X", "elementor"),
|
|
6169
6170
|
bind: "x",
|
|
6170
6171
|
startIcon: /* @__PURE__ */ React92.createElement(Arrow360Icon, { fontSize: "tiny" })
|
|
6171
6172
|
},
|
|
6172
6173
|
{
|
|
6173
|
-
label:
|
|
6174
|
+
label: __41("Rotate Y", "elementor"),
|
|
6174
6175
|
bind: "y",
|
|
6175
6176
|
startIcon: /* @__PURE__ */ React92.createElement(Arrow360Icon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
6176
6177
|
},
|
|
6177
6178
|
{
|
|
6178
|
-
label:
|
|
6179
|
+
label: __41("Rotate Z", "elementor"),
|
|
6179
6180
|
bind: "z",
|
|
6180
6181
|
startIcon: /* @__PURE__ */ React92.createElement(RotateClockwiseIcon, { fontSize: "tiny" })
|
|
6181
6182
|
}
|
|
@@ -6201,7 +6202,7 @@ import { useRef as useRef18 } from "react";
|
|
|
6201
6202
|
import { scaleTransformPropTypeUtil as scaleTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
6202
6203
|
import { ArrowDownLeftIcon as ArrowDownLeftIcon2, ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowRightIcon as ArrowRightIcon2 } from "@elementor/icons";
|
|
6203
6204
|
import { Grid as Grid24 } from "@elementor/ui";
|
|
6204
|
-
import { __ as
|
|
6205
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
6205
6206
|
|
|
6206
6207
|
// src/controls/transform-control/functions/scale-axis-row.tsx
|
|
6207
6208
|
import * as React93 from "react";
|
|
@@ -6213,17 +6214,17 @@ var ScaleAxisRow = ({ label, bind, startIcon, anchorRef }) => {
|
|
|
6213
6214
|
// src/controls/transform-control/functions/scale.tsx
|
|
6214
6215
|
var scaleAxisControls = [
|
|
6215
6216
|
{
|
|
6216
|
-
label:
|
|
6217
|
+
label: __42("Scale X", "elementor"),
|
|
6217
6218
|
bind: "x",
|
|
6218
6219
|
startIcon: /* @__PURE__ */ React94.createElement(ArrowRightIcon2, { fontSize: "tiny" })
|
|
6219
6220
|
},
|
|
6220
6221
|
{
|
|
6221
|
-
label:
|
|
6222
|
+
label: __42("Scale Y", "elementor"),
|
|
6222
6223
|
bind: "y",
|
|
6223
6224
|
startIcon: /* @__PURE__ */ React94.createElement(ArrowDownSmallIcon2, { fontSize: "tiny" })
|
|
6224
6225
|
},
|
|
6225
6226
|
{
|
|
6226
|
-
label:
|
|
6227
|
+
label: __42("Scale Z", "elementor"),
|
|
6227
6228
|
bind: "z",
|
|
6228
6229
|
startIcon: /* @__PURE__ */ React94.createElement(ArrowDownLeftIcon2, { fontSize: "tiny" })
|
|
6229
6230
|
}
|
|
@@ -6240,15 +6241,15 @@ import { useRef as useRef19 } from "react";
|
|
|
6240
6241
|
import { skewTransformPropTypeUtil as skewTransformPropTypeUtil2 } from "@elementor/editor-props";
|
|
6241
6242
|
import { ArrowLeftIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
6242
6243
|
import { Grid as Grid25 } from "@elementor/ui";
|
|
6243
|
-
import { __ as
|
|
6244
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
6244
6245
|
var skewAxisControls = [
|
|
6245
6246
|
{
|
|
6246
|
-
label:
|
|
6247
|
+
label: __43("Skew X", "elementor"),
|
|
6247
6248
|
bind: "x",
|
|
6248
6249
|
startIcon: /* @__PURE__ */ React95.createElement(ArrowRightIcon3, { fontSize: "tiny" })
|
|
6249
6250
|
},
|
|
6250
6251
|
{
|
|
6251
|
-
label:
|
|
6252
|
+
label: __43("Skew Y", "elementor"),
|
|
6252
6253
|
bind: "y",
|
|
6253
6254
|
startIcon: /* @__PURE__ */ React95.createElement(ArrowLeftIcon, { fontSize: "tiny", style: { transform: "scaleX(-1) rotate(-90deg)" } })
|
|
6254
6255
|
}
|
|
@@ -6373,12 +6374,12 @@ var TransformContent = () => {
|
|
|
6373
6374
|
}
|
|
6374
6375
|
},
|
|
6375
6376
|
...getTabsProps(),
|
|
6376
|
-
"aria-label":
|
|
6377
|
+
"aria-label": __44("Transform", "elementor")
|
|
6377
6378
|
},
|
|
6378
|
-
/* @__PURE__ */ React96.createElement(Tab2, { label:
|
|
6379
|
-
/* @__PURE__ */ React96.createElement(Tab2, { label:
|
|
6380
|
-
/* @__PURE__ */ React96.createElement(Tab2, { label:
|
|
6381
|
-
/* @__PURE__ */ React96.createElement(Tab2, { label:
|
|
6379
|
+
/* @__PURE__ */ React96.createElement(Tab2, { label: __44("Move", "elementor"), ...getTabProps(TransformFunctionKeys.move) }),
|
|
6380
|
+
/* @__PURE__ */ React96.createElement(Tab2, { label: __44("Scale", "elementor"), ...getTabProps(TransformFunctionKeys.scale) }),
|
|
6381
|
+
/* @__PURE__ */ React96.createElement(Tab2, { label: __44("Rotate", "elementor"), ...getTabProps(TransformFunctionKeys.rotate) }),
|
|
6382
|
+
/* @__PURE__ */ React96.createElement(Tab2, { label: __44("Skew", "elementor"), ...getTabProps(TransformFunctionKeys.skew) })
|
|
6382
6383
|
)), /* @__PURE__ */ React96.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.move) }, /* @__PURE__ */ React96.createElement(Move, null)), /* @__PURE__ */ React96.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.scale) }, /* @__PURE__ */ React96.createElement(Scale, null)), /* @__PURE__ */ React96.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.rotate) }, /* @__PURE__ */ React96.createElement(Rotate, null)), /* @__PURE__ */ React96.createElement(TabPanel2, { sx: { p: 1.5 }, ...getTabPanelProps(TransformFunctionKeys.skew) }, /* @__PURE__ */ React96.createElement(Skew, null))));
|
|
6383
6384
|
};
|
|
6384
6385
|
|
|
@@ -6403,7 +6404,7 @@ var TransformIcon = ({ value }) => {
|
|
|
6403
6404
|
// src/controls/transform-control/transform-label.tsx
|
|
6404
6405
|
import * as React98 from "react";
|
|
6405
6406
|
import { Box as Box17 } from "@elementor/ui";
|
|
6406
|
-
import { __ as
|
|
6407
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
6407
6408
|
var orderedAxis = ["x", "y", "z"];
|
|
6408
6409
|
var formatLabel = (value, functionType) => {
|
|
6409
6410
|
return orderedAxis.map((axisKey) => {
|
|
@@ -6421,13 +6422,13 @@ var TransformLabel = (props) => {
|
|
|
6421
6422
|
const { $$type, value } = props.value;
|
|
6422
6423
|
switch ($$type) {
|
|
6423
6424
|
case TransformFunctionKeys.move:
|
|
6424
|
-
return /* @__PURE__ */ React98.createElement(Label2, { label:
|
|
6425
|
+
return /* @__PURE__ */ React98.createElement(Label2, { label: __45("Move", "elementor"), value: formatLabel(value, "move") });
|
|
6425
6426
|
case TransformFunctionKeys.scale:
|
|
6426
|
-
return /* @__PURE__ */ React98.createElement(Label2, { label:
|
|
6427
|
+
return /* @__PURE__ */ React98.createElement(Label2, { label: __45("Scale", "elementor"), value: formatLabel(value, "scale") });
|
|
6427
6428
|
case TransformFunctionKeys.rotate:
|
|
6428
|
-
return /* @__PURE__ */ React98.createElement(Label2, { label:
|
|
6429
|
+
return /* @__PURE__ */ React98.createElement(Label2, { label: __45("Rotate", "elementor"), value: formatLabel(value, "rotate") });
|
|
6429
6430
|
case TransformFunctionKeys.skew:
|
|
6430
|
-
return /* @__PURE__ */ React98.createElement(Label2, { label:
|
|
6431
|
+
return /* @__PURE__ */ React98.createElement(Label2, { label: __45("Skew", "elementor"), value: formatLabel(value, "skew") });
|
|
6431
6432
|
default:
|
|
6432
6433
|
return "";
|
|
6433
6434
|
}
|
|
@@ -6441,34 +6442,34 @@ import * as React101 from "react";
|
|
|
6441
6442
|
import { PopoverHeader as PopoverHeader4 } from "@elementor/editor-ui";
|
|
6442
6443
|
import { AdjustmentsIcon } from "@elementor/icons";
|
|
6443
6444
|
import { bindPopover as bindPopover6, Box as Box18, Divider as Divider4, Popover as Popover6 } from "@elementor/ui";
|
|
6444
|
-
import { __ as
|
|
6445
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
6445
6446
|
|
|
6446
6447
|
// src/controls/transform-control/transform-base-controls/children-perspective-control.tsx
|
|
6447
6448
|
import * as React99 from "react";
|
|
6448
6449
|
import { useRef as useRef21 } from "react";
|
|
6449
6450
|
import { perspectiveOriginPropTypeUtil } from "@elementor/editor-props";
|
|
6450
6451
|
import { Grid as Grid26, Stack as Stack15 } from "@elementor/ui";
|
|
6451
|
-
import { __ as
|
|
6452
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
6452
6453
|
var ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
6453
6454
|
var PERSPECTIVE_CONTROL_FIELD = {
|
|
6454
|
-
label:
|
|
6455
|
+
label: __46("Perspective", "elementor"),
|
|
6455
6456
|
bind: "perspective",
|
|
6456
6457
|
units: ["px", "em", "rem", "vw", "vh"]
|
|
6457
6458
|
};
|
|
6458
6459
|
var CHILDREN_PERSPECTIVE_FIELDS = [
|
|
6459
6460
|
{
|
|
6460
|
-
label:
|
|
6461
|
+
label: __46("Origin X", "elementor"),
|
|
6461
6462
|
bind: "x",
|
|
6462
6463
|
units: ORIGIN_UNITS
|
|
6463
6464
|
},
|
|
6464
6465
|
{
|
|
6465
|
-
label:
|
|
6466
|
+
label: __46("Origin Y", "elementor"),
|
|
6466
6467
|
bind: "y",
|
|
6467
6468
|
units: ORIGIN_UNITS
|
|
6468
6469
|
}
|
|
6469
6470
|
];
|
|
6470
6471
|
var ChildrenPerspectiveControl = () => {
|
|
6471
|
-
return /* @__PURE__ */ React99.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React99.createElement(ControlFormLabel, null,
|
|
6472
|
+
return /* @__PURE__ */ React99.createElement(Stack15, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React99.createElement(ControlFormLabel, null, __46("Children perspective", "elementor")), /* @__PURE__ */ React99.createElement(PerspectiveControl, null), /* @__PURE__ */ React99.createElement(PerspectiveOriginControl, null));
|
|
6472
6473
|
};
|
|
6473
6474
|
var PerspectiveControl = () => /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: "perspective" }, /* @__PURE__ */ React99.createElement(ControlFields, { control: PERSPECTIVE_CONTROL_FIELD, key: PERSPECTIVE_CONTROL_FIELD.bind }));
|
|
6474
6475
|
var PerspectiveOriginControl = () => /* @__PURE__ */ React99.createElement(PropKeyProvider, { bind: "perspective-origin" }, /* @__PURE__ */ React99.createElement(PerspectiveOriginControlProvider, null));
|
|
@@ -6486,28 +6487,28 @@ import * as React100 from "react";
|
|
|
6486
6487
|
import { useRef as useRef22 } from "react";
|
|
6487
6488
|
import { transformOriginPropTypeUtil } from "@elementor/editor-props";
|
|
6488
6489
|
import { Grid as Grid27, Stack as Stack16 } from "@elementor/ui";
|
|
6489
|
-
import { __ as
|
|
6490
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
6490
6491
|
var TRANSFORM_ORIGIN_UNITS = ["px", "%", "em", "rem"];
|
|
6491
6492
|
var TRANSFORM_ORIGIN_UNITS_Z_AXIS = TRANSFORM_ORIGIN_UNITS.filter((unit) => unit !== "%");
|
|
6492
6493
|
var TRANSFORM_ORIGIN_FIELDS = [
|
|
6493
6494
|
{
|
|
6494
|
-
label:
|
|
6495
|
+
label: __47("Origin X", "elementor"),
|
|
6495
6496
|
bind: "x",
|
|
6496
6497
|
units: TRANSFORM_ORIGIN_UNITS
|
|
6497
6498
|
},
|
|
6498
6499
|
{
|
|
6499
|
-
label:
|
|
6500
|
+
label: __47("Origin Y", "elementor"),
|
|
6500
6501
|
bind: "y",
|
|
6501
6502
|
units: TRANSFORM_ORIGIN_UNITS
|
|
6502
6503
|
},
|
|
6503
6504
|
{
|
|
6504
|
-
label:
|
|
6505
|
+
label: __47("Origin Z", "elementor"),
|
|
6505
6506
|
bind: "z",
|
|
6506
6507
|
units: TRANSFORM_ORIGIN_UNITS_Z_AXIS
|
|
6507
6508
|
}
|
|
6508
6509
|
];
|
|
6509
6510
|
var TransformOriginControl = () => {
|
|
6510
|
-
return /* @__PURE__ */ React100.createElement(Stack16, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React100.createElement(ControlFormLabel, null,
|
|
6511
|
+
return /* @__PURE__ */ React100.createElement(Stack16, { direction: "column", spacing: 1.5 }, /* @__PURE__ */ React100.createElement(ControlFormLabel, null, __47("Transform", "elementor")), TRANSFORM_ORIGIN_FIELDS.map((control) => /* @__PURE__ */ React100.createElement(ControlFields2, { control, key: control.bind })));
|
|
6511
6512
|
};
|
|
6512
6513
|
var ControlFields2 = ({ control }) => {
|
|
6513
6514
|
const context = useBoundProp(transformOriginPropTypeUtil);
|
|
@@ -6544,7 +6545,7 @@ var TransformSettingsControl = ({
|
|
|
6544
6545
|
/* @__PURE__ */ React101.createElement(
|
|
6545
6546
|
PopoverHeader4,
|
|
6546
6547
|
{
|
|
6547
|
-
title:
|
|
6548
|
+
title: __48("Transform settings", "elementor"),
|
|
6548
6549
|
onClose: popupState.close,
|
|
6549
6550
|
icon: /* @__PURE__ */ React101.createElement(AdjustmentsIcon, { fontSize: SIZE9 })
|
|
6550
6551
|
}
|
|
@@ -6579,7 +6580,7 @@ var ToolTip = /* @__PURE__ */ React102.createElement(
|
|
|
6579
6580
|
sx: { display: "flex", gap: 0.5, p: 2, width: 320, borderRadius: 1 }
|
|
6580
6581
|
},
|
|
6581
6582
|
/* @__PURE__ */ React102.createElement(InfoCircleFilledIcon2, { sx: { color: "secondary.main" } }),
|
|
6582
|
-
/* @__PURE__ */ React102.createElement(Typography7, { variant: "body2", color: "text.secondary", fontSize: "14px" },
|
|
6583
|
+
/* @__PURE__ */ React102.createElement(Typography7, { variant: "body2", color: "text.secondary", fontSize: "14px" }, __49("You can use each kind of transform only once per element.", "elementor"))
|
|
6583
6584
|
);
|
|
6584
6585
|
var Repeater2 = ({
|
|
6585
6586
|
headerRef,
|
|
@@ -6602,7 +6603,7 @@ var Repeater2 = ({
|
|
|
6602
6603
|
/* @__PURE__ */ React102.createElement(
|
|
6603
6604
|
RepeaterHeader,
|
|
6604
6605
|
{
|
|
6605
|
-
label:
|
|
6606
|
+
label: __49("Transform", "elementor"),
|
|
6606
6607
|
adornment: () => /* @__PURE__ */ React102.createElement(ControlAdornments, { customContext: { path: ["transform"], propType } }),
|
|
6607
6608
|
ref: headerRef
|
|
6608
6609
|
},
|
|
@@ -6633,7 +6634,7 @@ var TransformBasePopoverTrigger = ({
|
|
|
6633
6634
|
repeaterBindKey
|
|
6634
6635
|
}) => {
|
|
6635
6636
|
const { bind } = useBoundProp();
|
|
6636
|
-
const titleLabel =
|
|
6637
|
+
const titleLabel = __49("Transform settings", "elementor");
|
|
6637
6638
|
return bind !== repeaterBindKey ? null : /* @__PURE__ */ React102.createElement(Tooltip8, { title: titleLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(IconButton7, { size: SIZE10, "aria-label": titleLabel, ...bindTrigger5(popupState) }, /* @__PURE__ */ React102.createElement(AdjustmentsIcon2, { fontSize: SIZE10 })));
|
|
6638
6639
|
};
|
|
6639
6640
|
|
|
@@ -6647,7 +6648,7 @@ import {
|
|
|
6647
6648
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
6648
6649
|
import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box21, Typography as Typography8 } from "@elementor/ui";
|
|
6649
6650
|
import { hasProInstalled as hasProInstalled2 } from "@elementor/utils";
|
|
6650
|
-
import { __ as
|
|
6651
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
6651
6652
|
|
|
6652
6653
|
// src/controls/selection-size-control.tsx
|
|
6653
6654
|
import * as React103 from "react";
|
|
@@ -6685,12 +6686,12 @@ var SelectionSizeControl = createControl(
|
|
|
6685
6686
|
|
|
6686
6687
|
// src/controls/transition-control/data.ts
|
|
6687
6688
|
import { hasProInstalled, isVersionGreaterOrEqual } from "@elementor/utils";
|
|
6688
|
-
import { __ as
|
|
6689
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
6689
6690
|
var initialTransitionValue = {
|
|
6690
6691
|
selection: {
|
|
6691
6692
|
$$type: "key-value",
|
|
6692
6693
|
value: {
|
|
6693
|
-
key: { value:
|
|
6694
|
+
key: { value: __50("All properties", "elementor"), $$type: "string" },
|
|
6694
6695
|
value: { value: "all", $$type: "string" }
|
|
6695
6696
|
}
|
|
6696
6697
|
},
|
|
@@ -6714,128 +6715,128 @@ var createTransitionPropertiesList = () => {
|
|
|
6714
6715
|
const isSiteRtl = getIsSiteRtl();
|
|
6715
6716
|
const baseProperties = [
|
|
6716
6717
|
{
|
|
6717
|
-
label:
|
|
6718
|
+
label: __50("Default", "elementor"),
|
|
6718
6719
|
type: "category",
|
|
6719
|
-
properties: [{ label:
|
|
6720
|
+
properties: [{ label: __50("All properties", "elementor"), value: "all" }]
|
|
6720
6721
|
},
|
|
6721
6722
|
{
|
|
6722
|
-
label:
|
|
6723
|
+
label: __50("Margin", "elementor"),
|
|
6723
6724
|
type: "category",
|
|
6724
6725
|
properties: [
|
|
6725
|
-
{ label:
|
|
6726
|
-
{ label:
|
|
6726
|
+
{ label: __50("Margin (all)", "elementor"), value: "margin", isDisabled: true },
|
|
6727
|
+
{ label: __50("Margin bottom", "elementor"), value: "margin-block-end", isDisabled: true },
|
|
6727
6728
|
{
|
|
6728
|
-
label: isSiteRtl ?
|
|
6729
|
+
label: isSiteRtl ? __50("Margin right", "elementor") : __50("Margin left", "elementor"),
|
|
6729
6730
|
value: "margin-inline-start",
|
|
6730
6731
|
isDisabled: true
|
|
6731
6732
|
},
|
|
6732
6733
|
{
|
|
6733
|
-
label: isSiteRtl ?
|
|
6734
|
+
label: isSiteRtl ? __50("Margin left", "elementor") : __50("Margin right", "elementor"),
|
|
6734
6735
|
value: "margin-inline-end",
|
|
6735
6736
|
isDisabled: true
|
|
6736
6737
|
},
|
|
6737
|
-
{ label:
|
|
6738
|
+
{ label: __50("Margin top", "elementor"), value: "margin-block-start", isDisabled: true }
|
|
6738
6739
|
]
|
|
6739
6740
|
},
|
|
6740
6741
|
{
|
|
6741
|
-
label:
|
|
6742
|
+
label: __50("Padding", "elementor"),
|
|
6742
6743
|
type: "category",
|
|
6743
6744
|
properties: [
|
|
6744
|
-
{ label:
|
|
6745
|
-
{ label:
|
|
6745
|
+
{ label: __50("Padding (all)", "elementor"), value: "padding", isDisabled: true },
|
|
6746
|
+
{ label: __50("Padding bottom", "elementor"), value: "padding-block-end", isDisabled: true },
|
|
6746
6747
|
{
|
|
6747
|
-
label: isSiteRtl ?
|
|
6748
|
+
label: isSiteRtl ? __50("Padding right", "elementor") : __50("Padding left", "elementor"),
|
|
6748
6749
|
value: "padding-inline-start",
|
|
6749
6750
|
isDisabled: true
|
|
6750
6751
|
},
|
|
6751
6752
|
{
|
|
6752
|
-
label: isSiteRtl ?
|
|
6753
|
+
label: isSiteRtl ? __50("Padding left", "elementor") : __50("Padding right", "elementor"),
|
|
6753
6754
|
value: "padding-inline-end",
|
|
6754
6755
|
isDisabled: true
|
|
6755
6756
|
},
|
|
6756
|
-
{ label:
|
|
6757
|
+
{ label: __50("Padding top", "elementor"), value: "padding-block-start", isDisabled: true }
|
|
6757
6758
|
]
|
|
6758
6759
|
},
|
|
6759
6760
|
{
|
|
6760
|
-
label:
|
|
6761
|
+
label: __50("Flex", "elementor"),
|
|
6761
6762
|
type: "category",
|
|
6762
6763
|
properties: [
|
|
6763
|
-
{ label:
|
|
6764
|
-
{ label:
|
|
6765
|
-
{ label:
|
|
6766
|
-
{ label:
|
|
6764
|
+
{ label: __50("Flex (all)", "elementor"), value: "flex", isDisabled: true },
|
|
6765
|
+
{ label: __50("Flex grow", "elementor"), value: "flex-grow", isDisabled: true },
|
|
6766
|
+
{ label: __50("Flex shrink", "elementor"), value: "flex-shrink", isDisabled: true },
|
|
6767
|
+
{ label: __50("Flex basis", "elementor"), value: "flex-basis", isDisabled: true }
|
|
6767
6768
|
]
|
|
6768
6769
|
},
|
|
6769
6770
|
{
|
|
6770
|
-
label:
|
|
6771
|
+
label: __50("Size", "elementor"),
|
|
6771
6772
|
type: "category",
|
|
6772
6773
|
properties: [
|
|
6773
|
-
{ label:
|
|
6774
|
-
{ label:
|
|
6775
|
-
{ label:
|
|
6776
|
-
{ label:
|
|
6777
|
-
{ label:
|
|
6778
|
-
{ label:
|
|
6774
|
+
{ label: __50("Width", "elementor"), value: "width", isDisabled: true },
|
|
6775
|
+
{ label: __50("Height", "elementor"), value: "height", isDisabled: true },
|
|
6776
|
+
{ label: __50("Max height", "elementor"), value: "max-height", isDisabled: true },
|
|
6777
|
+
{ label: __50("Max width", "elementor"), value: "max-width", isDisabled: true },
|
|
6778
|
+
{ label: __50("Min height", "elementor"), value: "min-height", isDisabled: true },
|
|
6779
|
+
{ label: __50("Min width", "elementor"), value: "min-width", isDisabled: true }
|
|
6779
6780
|
]
|
|
6780
6781
|
},
|
|
6781
6782
|
{
|
|
6782
|
-
label:
|
|
6783
|
+
label: __50("Position", "elementor"),
|
|
6783
6784
|
type: "category",
|
|
6784
6785
|
properties: [
|
|
6785
|
-
{ label:
|
|
6786
|
+
{ label: __50("Top", "elementor"), value: "inset-block-start", isDisabled: true },
|
|
6786
6787
|
{
|
|
6787
|
-
label: isSiteRtl ?
|
|
6788
|
+
label: isSiteRtl ? __50("Right", "elementor") : __50("Left", "elementor"),
|
|
6788
6789
|
value: "inset-inline-start",
|
|
6789
6790
|
isDisabled: true
|
|
6790
6791
|
},
|
|
6791
6792
|
{
|
|
6792
|
-
label: isSiteRtl ?
|
|
6793
|
+
label: isSiteRtl ? __50("Left", "elementor") : __50("Right", "elementor"),
|
|
6793
6794
|
value: "inset-inline-end",
|
|
6794
6795
|
isDisabled: true
|
|
6795
6796
|
},
|
|
6796
|
-
{ label:
|
|
6797
|
-
{ label:
|
|
6797
|
+
{ label: __50("Bottom", "elementor"), value: "inset-block-end", isDisabled: true },
|
|
6798
|
+
{ label: __50("Z-index", "elementor"), value: "z-index", isDisabled: true }
|
|
6798
6799
|
]
|
|
6799
6800
|
},
|
|
6800
6801
|
{
|
|
6801
|
-
label:
|
|
6802
|
+
label: __50("Typography", "elementor"),
|
|
6802
6803
|
type: "category",
|
|
6803
6804
|
properties: [
|
|
6804
|
-
{ label:
|
|
6805
|
-
{ label:
|
|
6806
|
-
{ label:
|
|
6807
|
-
{ label:
|
|
6808
|
-
{ label:
|
|
6809
|
-
{ label:
|
|
6810
|
-
{ label:
|
|
6805
|
+
{ label: __50("Font color", "elementor"), value: "color", isDisabled: true },
|
|
6806
|
+
{ label: __50("Font size", "elementor"), value: "font-size", isDisabled: true },
|
|
6807
|
+
{ label: __50("Line height", "elementor"), value: "line-height", isDisabled: true },
|
|
6808
|
+
{ label: __50("Letter spacing", "elementor"), value: "letter-spacing", isDisabled: true },
|
|
6809
|
+
{ label: __50("Word spacing", "elementor"), value: "word-spacing", isDisabled: true },
|
|
6810
|
+
{ label: __50("Font variations", "elementor"), value: "font-variation-settings", isDisabled: true },
|
|
6811
|
+
{ label: __50("Text stroke color", "elementor"), value: "-webkit-text-stroke-color", isDisabled: true }
|
|
6811
6812
|
]
|
|
6812
6813
|
},
|
|
6813
6814
|
{
|
|
6814
|
-
label:
|
|
6815
|
+
label: __50("Background", "elementor"),
|
|
6815
6816
|
type: "category",
|
|
6816
6817
|
properties: [
|
|
6817
|
-
{ label:
|
|
6818
|
-
{ label:
|
|
6819
|
-
{ label:
|
|
6818
|
+
{ label: __50("Background color", "elementor"), value: "background-color", isDisabled: true },
|
|
6819
|
+
{ label: __50("Background position", "elementor"), value: "background-position", isDisabled: true },
|
|
6820
|
+
{ label: __50("Box shadow", "elementor"), value: "box-shadow", isDisabled: true }
|
|
6820
6821
|
]
|
|
6821
6822
|
},
|
|
6822
6823
|
{
|
|
6823
|
-
label:
|
|
6824
|
+
label: __50("Border", "elementor"),
|
|
6824
6825
|
type: "category",
|
|
6825
6826
|
properties: [
|
|
6826
|
-
{ label:
|
|
6827
|
-
{ label:
|
|
6828
|
-
{ label:
|
|
6829
|
-
{ label:
|
|
6827
|
+
{ label: __50("Border (all)", "elementor"), value: "border", isDisabled: true },
|
|
6828
|
+
{ label: __50("Border radius", "elementor"), value: "border-radius", isDisabled: true },
|
|
6829
|
+
{ label: __50("Border color", "elementor"), value: "border-color", isDisabled: true },
|
|
6830
|
+
{ label: __50("Border width", "elementor"), value: "border-width", isDisabled: true }
|
|
6830
6831
|
]
|
|
6831
6832
|
},
|
|
6832
6833
|
{
|
|
6833
|
-
label:
|
|
6834
|
+
label: __50("Effects", "elementor"),
|
|
6834
6835
|
type: "category",
|
|
6835
6836
|
properties: [
|
|
6836
|
-
{ label:
|
|
6837
|
-
{ label:
|
|
6838
|
-
{ label:
|
|
6837
|
+
{ label: __50("Opacity", "elementor"), value: "opacity", isDisabled: true },
|
|
6838
|
+
{ label: __50("Transform (all)", "elementor"), value: "transform", isDisabled: true },
|
|
6839
|
+
{ label: __50("Filter (all)", "elementor"), value: "filter", isDisabled: true }
|
|
6839
6840
|
]
|
|
6840
6841
|
}
|
|
6841
6842
|
];
|
|
@@ -6877,7 +6878,7 @@ import { keyValuePropTypeUtil as keyValuePropTypeUtil2 } from "@elementor/editor
|
|
|
6877
6878
|
import { PromotionAlert, PromotionChip } from "@elementor/editor-ui";
|
|
6878
6879
|
import { ChevronDownIcon as ChevronDownIcon3, VariationsIcon } from "@elementor/icons";
|
|
6879
6880
|
import { bindPopover as bindPopover7, bindTrigger as bindTrigger6, Box as Box20, Popover as Popover7, UnstableTag as UnstableTag3, usePopupState as usePopupState9 } from "@elementor/ui";
|
|
6880
|
-
import { __ as
|
|
6881
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
6881
6882
|
|
|
6882
6883
|
// src/utils/tracking.ts
|
|
6883
6884
|
import { getSelectedElements as getSelectedElements2 } from "@elementor/editor-elements";
|
|
@@ -6981,7 +6982,7 @@ var TransitionSelector = ({
|
|
|
6981
6982
|
return [
|
|
6982
6983
|
first,
|
|
6983
6984
|
{
|
|
6984
|
-
label:
|
|
6985
|
+
label: __51("Recently Used", "elementor"),
|
|
6985
6986
|
items: recentItems
|
|
6986
6987
|
},
|
|
6987
6988
|
...rest
|
|
@@ -7033,7 +7034,7 @@ var TransitionSelector = ({
|
|
|
7033
7034
|
onItemChange: handleTransitionPropertyChange,
|
|
7034
7035
|
onClose: popoverState.close,
|
|
7035
7036
|
sectionWidth: 268,
|
|
7036
|
-
title:
|
|
7037
|
+
title: __51("Transition Property", "elementor"),
|
|
7037
7038
|
icon: VariationsIcon,
|
|
7038
7039
|
disabledItems: includeCurrentValueInOptions(value, disabledItems),
|
|
7039
7040
|
categoryItemContentTemplate: (item) => /* @__PURE__ */ React104.createElement(
|
|
@@ -7052,7 +7053,7 @@ var TransitionSelector = ({
|
|
|
7052
7053
|
footer: showPromotion ? /* @__PURE__ */ React104.createElement(
|
|
7053
7054
|
PromotionAlert,
|
|
7054
7055
|
{
|
|
7055
|
-
message:
|
|
7056
|
+
message: __51(
|
|
7056
7057
|
"Upgrade to customize transition properties and control effects.",
|
|
7057
7058
|
"elementor"
|
|
7058
7059
|
),
|
|
@@ -7091,8 +7092,8 @@ var areAllPropertiesUsed = (value = []) => {
|
|
|
7091
7092
|
};
|
|
7092
7093
|
var getSelectionSizeProps = (recentlyUsedList, disabledItems, showPromotion) => {
|
|
7093
7094
|
return {
|
|
7094
|
-
selectionLabel:
|
|
7095
|
-
sizeLabel:
|
|
7095
|
+
selectionLabel: __52("Type", "elementor"),
|
|
7096
|
+
sizeLabel: __52("Duration", "elementor"),
|
|
7096
7097
|
selectionConfig: {
|
|
7097
7098
|
component: TransitionSelector,
|
|
7098
7099
|
props: {
|
|
@@ -7178,8 +7179,8 @@ var disableAddItemTooltipContent = /* @__PURE__ */ React105.createElement(
|
|
|
7178
7179
|
color: "secondary",
|
|
7179
7180
|
icon: /* @__PURE__ */ React105.createElement(InfoCircleFilledIcon3, null)
|
|
7180
7181
|
},
|
|
7181
|
-
/* @__PURE__ */ React105.createElement(AlertTitle3, null,
|
|
7182
|
-
/* @__PURE__ */ React105.createElement(Box21, { component: "span" }, /* @__PURE__ */ React105.createElement(Typography8, { variant: "body2" },
|
|
7182
|
+
/* @__PURE__ */ React105.createElement(AlertTitle3, null, __52("Transitions", "elementor")),
|
|
7183
|
+
/* @__PURE__ */ React105.createElement(Box21, { component: "span" }, /* @__PURE__ */ React105.createElement(Typography8, { variant: "body2" }, __52("Switch to 'Normal' state to add a transition.", "elementor")))
|
|
7183
7184
|
);
|
|
7184
7185
|
var TransitionRepeaterControl = createControl(
|
|
7185
7186
|
({
|
|
@@ -7225,10 +7226,10 @@ var TransitionRepeaterControl = createControl(
|
|
|
7225
7226
|
return /* @__PURE__ */ React105.createElement(
|
|
7226
7227
|
RepeatableControl,
|
|
7227
7228
|
{
|
|
7228
|
-
label:
|
|
7229
|
-
repeaterLabel:
|
|
7229
|
+
label: __52("Transitions", "elementor"),
|
|
7230
|
+
repeaterLabel: __52("Transitions", "elementor"),
|
|
7230
7231
|
patternLabel: "${value.selection.value.key.value}: ${value.size.value.size}${value.size.value.unit}",
|
|
7231
|
-
placeholder:
|
|
7232
|
+
placeholder: __52("Empty Transition", "elementor"),
|
|
7232
7233
|
showDuplicate: false,
|
|
7233
7234
|
showToggle: true,
|
|
7234
7235
|
initialValues: getInitialValue(value),
|
|
@@ -7590,7 +7591,7 @@ import { emailPropTypeUtil } from "@elementor/editor-props";
|
|
|
7590
7591
|
import { CollapsibleContent, InfoAlert as InfoAlert2 } from "@elementor/editor-ui";
|
|
7591
7592
|
import { Box as Box25, Divider as Divider5, Grid as Grid29, Stack as Stack17 } from "@elementor/ui";
|
|
7592
7593
|
import { hasProInstalled as hasProInstalled3, isVersionGreaterOrEqual as isVersionGreaterOrEqual2 } from "@elementor/utils";
|
|
7593
|
-
import { __ as
|
|
7594
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
7594
7595
|
|
|
7595
7596
|
// src/hooks/use-form-field-suggestions.ts
|
|
7596
7597
|
import { getContainer, getSelectedElements as getSelectedElements3 } from "@elementor/editor-elements";
|
|
@@ -7635,13 +7636,13 @@ function useFormFieldSuggestions() {
|
|
|
7635
7636
|
|
|
7636
7637
|
// src/controls/email-form-action-control.tsx
|
|
7637
7638
|
var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React109.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(TextControl, { placeholder }))));
|
|
7638
|
-
var SendToField = ({ placeholder }) => /* @__PURE__ */ React109.createElement(EmailField, { bind: "to", label:
|
|
7639
|
+
var SendToField = ({ placeholder }) => /* @__PURE__ */ React109.createElement(EmailField, { bind: "to", label: __53("Send to", "elementor"), placeholder });
|
|
7639
7640
|
var SubjectField = () => /* @__PURE__ */ React109.createElement(
|
|
7640
7641
|
EmailField,
|
|
7641
7642
|
{
|
|
7642
7643
|
bind: "subject",
|
|
7643
|
-
label:
|
|
7644
|
-
placeholder:
|
|
7644
|
+
label: __53("Email subject", "elementor"),
|
|
7645
|
+
placeholder: __53("New form submission", "elementor")
|
|
7645
7646
|
}
|
|
7646
7647
|
);
|
|
7647
7648
|
var MIN_PRO_VERSION_FOR_MENTIONS = "4.1.0";
|
|
@@ -7657,55 +7658,55 @@ var shouldShowMentionsInfo = () => {
|
|
|
7657
7658
|
};
|
|
7658
7659
|
var MessageField = () => {
|
|
7659
7660
|
const suggestions = useFormFieldSuggestions();
|
|
7660
|
-
return /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React109.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null,
|
|
7661
|
+
return /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "message" }, /* @__PURE__ */ React109.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, __53("Message", "elementor"))), /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(MentionTextAreaControl, { suggestions })), /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(InfoAlert2, null, shouldShowMentionsInfo() ? __53(
|
|
7661
7662
|
"[all-fields] shortcode sends all fields. Type @ to insert specific fields and customize your message.",
|
|
7662
7663
|
"elementor"
|
|
7663
|
-
) :
|
|
7664
|
+
) : __53("[all-fields] shortcode sends all fields.", "elementor")))));
|
|
7664
7665
|
};
|
|
7665
7666
|
var FromEmailField = () => /* @__PURE__ */ React109.createElement(
|
|
7666
7667
|
EmailField,
|
|
7667
7668
|
{
|
|
7668
7669
|
bind: "from",
|
|
7669
|
-
label:
|
|
7670
|
-
placeholder:
|
|
7670
|
+
label: __53("From email", "elementor"),
|
|
7671
|
+
placeholder: __53("What email should appear as the sender?", "elementor")
|
|
7671
7672
|
}
|
|
7672
7673
|
);
|
|
7673
7674
|
var FromNameField = () => /* @__PURE__ */ React109.createElement(
|
|
7674
7675
|
EmailField,
|
|
7675
7676
|
{
|
|
7676
7677
|
bind: "from-name",
|
|
7677
|
-
label:
|
|
7678
|
-
placeholder:
|
|
7678
|
+
label: __53("From name", "elementor"),
|
|
7679
|
+
placeholder: __53("What name should appear as the sender?", "elementor")
|
|
7679
7680
|
}
|
|
7680
7681
|
);
|
|
7681
|
-
var ReplyToField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "reply-to", label:
|
|
7682
|
-
var CcField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "cc", label:
|
|
7683
|
-
var BccField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "bcc", label:
|
|
7684
|
-
var MetaDataField = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React109.createElement(Stack17, { gap: 0.5 }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null,
|
|
7682
|
+
var ReplyToField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "reply-to", label: __53("Reply-to", "elementor") });
|
|
7683
|
+
var CcField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "cc", label: __53("Cc", "elementor") });
|
|
7684
|
+
var BccField = () => /* @__PURE__ */ React109.createElement(EmailField, { bind: "bcc", label: __53("Bcc", "elementor") });
|
|
7685
|
+
var MetaDataField = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "meta-data" }, /* @__PURE__ */ React109.createElement(Stack17, { gap: 0.5 }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, __53("Metadata", "elementor")), /* @__PURE__ */ React109.createElement(
|
|
7685
7686
|
ChipsControl,
|
|
7686
7687
|
{
|
|
7687
7688
|
options: [
|
|
7688
|
-
{ label:
|
|
7689
|
-
{ label:
|
|
7690
|
-
{ label:
|
|
7691
|
-
{ label:
|
|
7692
|
-
{ label:
|
|
7689
|
+
{ label: __53("Date", "elementor"), value: "date" },
|
|
7690
|
+
{ label: __53("Time", "elementor"), value: "time" },
|
|
7691
|
+
{ label: __53("Page URL", "elementor"), value: "page-url" },
|
|
7692
|
+
{ label: __53("User agent", "elementor"), value: "user-agent" },
|
|
7693
|
+
{ label: __53("Credit", "elementor"), value: "credit" }
|
|
7693
7694
|
]
|
|
7694
7695
|
}
|
|
7695
7696
|
)));
|
|
7696
|
-
var SendAsField = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React109.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null,
|
|
7697
|
+
var SendAsField = () => /* @__PURE__ */ React109.createElement(PropKeyProvider, { bind: "send-as" }, /* @__PURE__ */ React109.createElement(Grid29, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(ControlFormLabel, null, __53("Send as", "elementor"))), /* @__PURE__ */ React109.createElement(Grid29, { item: true }, /* @__PURE__ */ React109.createElement(
|
|
7697
7698
|
SelectControl,
|
|
7698
7699
|
{
|
|
7699
7700
|
options: [
|
|
7700
|
-
{ label:
|
|
7701
|
-
{ label:
|
|
7701
|
+
{ label: __53("HTML", "elementor"), value: "html" },
|
|
7702
|
+
{ label: __53("Plain Text", "elementor"), value: "plain" }
|
|
7702
7703
|
]
|
|
7703
7704
|
}
|
|
7704
7705
|
))));
|
|
7705
7706
|
var AdvancedSettings = () => /* @__PURE__ */ React109.createElement(CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React109.createElement(Box25, { sx: { pt: 2 } }, /* @__PURE__ */ React109.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React109.createElement(FromNameField, null), /* @__PURE__ */ React109.createElement(ReplyToField, null), /* @__PURE__ */ React109.createElement(CcField, null), /* @__PURE__ */ React109.createElement(BccField, null), /* @__PURE__ */ React109.createElement(Divider5, null), /* @__PURE__ */ React109.createElement(MetaDataField, null), /* @__PURE__ */ React109.createElement(SendAsField, null))));
|
|
7706
7707
|
var EmailFormActionControl = createControl(({ toPlaceholder }) => {
|
|
7707
7708
|
const { value, setValue, ...propContext } = useBoundProp(emailPropTypeUtil);
|
|
7708
|
-
return /* @__PURE__ */ React109.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React109.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React109.createElement(ControlLabel, null,
|
|
7709
|
+
return /* @__PURE__ */ React109.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React109.createElement(Stack17, { gap: 2 }, /* @__PURE__ */ React109.createElement(ControlLabel, null, __53("Email settings", "elementor")), /* @__PURE__ */ React109.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React109.createElement(SubjectField, null), /* @__PURE__ */ React109.createElement(MessageField, null), /* @__PURE__ */ React109.createElement(FromEmailField, null), /* @__PURE__ */ React109.createElement(AdvancedSettings, null)));
|
|
7709
7710
|
});
|
|
7710
7711
|
|
|
7711
7712
|
// src/components/promotions/display-conditions-control.tsx
|
|
@@ -7713,7 +7714,7 @@ import * as React111 from "react";
|
|
|
7713
7714
|
import { useRef as useRef27 } from "react";
|
|
7714
7715
|
import { SitemapIcon } from "@elementor/icons";
|
|
7715
7716
|
import { IconButton as IconButton8, Stack as Stack18, Tooltip as Tooltip9 } from "@elementor/ui";
|
|
7716
|
-
import { __ as
|
|
7717
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
7717
7718
|
|
|
7718
7719
|
// src/components/promotions/promotion-trigger.tsx
|
|
7719
7720
|
import * as React110 from "react";
|
|
@@ -7766,7 +7767,7 @@ var PromotionTrigger = forwardRef12(
|
|
|
7766
7767
|
);
|
|
7767
7768
|
|
|
7768
7769
|
// src/components/promotions/display-conditions-control.tsx
|
|
7769
|
-
var ARIA_LABEL =
|
|
7770
|
+
var ARIA_LABEL = __54("Display Conditions", "elementor");
|
|
7770
7771
|
var TRACKING_DATA = { target_name: "display_conditions", location_l2: "general" };
|
|
7771
7772
|
var DisplayConditionsControl = createControl(() => {
|
|
7772
7773
|
const triggerRef = useRef27(null);
|
|
@@ -7804,8 +7805,8 @@ import * as React112 from "react";
|
|
|
7804
7805
|
import { useRef as useRef28 } from "react";
|
|
7805
7806
|
import { PlusIcon as PlusIcon3 } from "@elementor/icons";
|
|
7806
7807
|
import { Stack as Stack19, Tooltip as Tooltip10 } from "@elementor/ui";
|
|
7807
|
-
import { __ as
|
|
7808
|
-
var ARIA_LABEL2 =
|
|
7808
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
7809
|
+
var ARIA_LABEL2 = __55("Attributes", "elementor");
|
|
7809
7810
|
var TRACKING_DATA2 = { target_name: "attributes", location_l2: "general" };
|
|
7810
7811
|
var AttributesControl = createControl(() => {
|
|
7811
7812
|
const triggerRef = useRef28(null);
|
|
@@ -7857,7 +7858,7 @@ import {
|
|
|
7857
7858
|
Tooltip as Tooltip12,
|
|
7858
7859
|
usePopupState as usePopupState10
|
|
7859
7860
|
} from "@elementor/ui";
|
|
7860
|
-
import { __ as
|
|
7861
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
7861
7862
|
var SIZE11 = "tiny";
|
|
7862
7863
|
var EMPTY_OPEN_ITEM2 = -1;
|
|
7863
7864
|
var Repeater3 = ({
|
|
@@ -7947,7 +7948,7 @@ var Repeater3 = ({
|
|
|
7947
7948
|
},
|
|
7948
7949
|
disabled: isButtonDisabled,
|
|
7949
7950
|
onClick: addRepeaterItem,
|
|
7950
|
-
"aria-label":
|
|
7951
|
+
"aria-label": __56("Add item", "elementor")
|
|
7951
7952
|
},
|
|
7952
7953
|
/* @__PURE__ */ React114.createElement(PlusIcon4, { fontSize: SIZE11 })
|
|
7953
7954
|
);
|
|
@@ -8027,16 +8028,16 @@ var RepeaterItem = ({
|
|
|
8027
8028
|
wrappedOnPopoverClose
|
|
8028
8029
|
);
|
|
8029
8030
|
const triggerProps = bindTrigger7(popoverState);
|
|
8030
|
-
const duplicateLabel =
|
|
8031
|
-
const toggleLabel = propDisabled ?
|
|
8032
|
-
const removeLabel =
|
|
8031
|
+
const duplicateLabel = __56("Duplicate", "elementor");
|
|
8032
|
+
const toggleLabel = propDisabled ? __56("Show", "elementor") : __56("Hide", "elementor");
|
|
8033
|
+
const removeLabel = __56("Remove", "elementor");
|
|
8033
8034
|
return /* @__PURE__ */ React114.createElement(React114.Fragment, null, /* @__PURE__ */ React114.createElement(
|
|
8034
8035
|
RepeaterTag,
|
|
8035
8036
|
{
|
|
8036
8037
|
disabled,
|
|
8037
8038
|
label,
|
|
8038
8039
|
ref: setRef,
|
|
8039
|
-
"aria-label":
|
|
8040
|
+
"aria-label": __56("Open item", "elementor"),
|
|
8040
8041
|
...triggerProps,
|
|
8041
8042
|
onClick: (e) => {
|
|
8042
8043
|
triggerProps.onClick(e);
|
|
@@ -8103,14 +8104,14 @@ import {
|
|
|
8103
8104
|
usePopupState as usePopupState11
|
|
8104
8105
|
} from "@elementor/ui";
|
|
8105
8106
|
import { useEditorState } from "@tiptap/react";
|
|
8106
|
-
import { __ as
|
|
8107
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
8107
8108
|
|
|
8108
8109
|
// src/components/url-popover.tsx
|
|
8109
8110
|
import * as React115 from "react";
|
|
8110
8111
|
import { useEffect as useEffect18, useRef as useRef29 } from "react";
|
|
8111
8112
|
import { ExternalLinkIcon } from "@elementor/icons";
|
|
8112
8113
|
import { bindPopover as bindPopover9, Popover as Popover8, Stack as Stack20, TextField as TextField10, ToggleButton as ToggleButton2, Tooltip as Tooltip13 } from "@elementor/ui";
|
|
8113
|
-
import { __ as
|
|
8114
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
8114
8115
|
var UrlPopover = ({
|
|
8115
8116
|
popupState,
|
|
8116
8117
|
restoreValue,
|
|
@@ -8148,20 +8149,20 @@ var UrlPopover = ({
|
|
|
8148
8149
|
onChange,
|
|
8149
8150
|
size: "tiny",
|
|
8150
8151
|
fullWidth: true,
|
|
8151
|
-
placeholder:
|
|
8152
|
+
placeholder: __57("Type a URL", "elementor"),
|
|
8152
8153
|
inputProps: { ref: inputRef },
|
|
8153
8154
|
color: "secondary",
|
|
8154
8155
|
InputProps: { sx: { borderRadius: "8px" } },
|
|
8155
8156
|
onKeyUp: (event) => event.key === "Enter" && handleClose()
|
|
8156
8157
|
}
|
|
8157
|
-
), /* @__PURE__ */ React115.createElement(Tooltip13, { title:
|
|
8158
|
+
), /* @__PURE__ */ React115.createElement(Tooltip13, { title: __57("Open in a new tab", "elementor") }, /* @__PURE__ */ React115.createElement(
|
|
8158
8159
|
ToggleButton2,
|
|
8159
8160
|
{
|
|
8160
8161
|
size: "tiny",
|
|
8161
8162
|
value: "newTab",
|
|
8162
8163
|
selected: openInNewTab,
|
|
8163
8164
|
onClick: onToggleNewTab,
|
|
8164
|
-
"aria-label":
|
|
8165
|
+
"aria-label": __57("Open in a new tab", "elementor"),
|
|
8165
8166
|
sx: { borderRadius: "8px" }
|
|
8166
8167
|
},
|
|
8167
8168
|
/* @__PURE__ */ React115.createElement(ExternalLinkIcon, { fontSize: "tiny" })
|
|
@@ -8301,7 +8302,7 @@ var checkIfElementIsClickable = (elementId) => {
|
|
|
8301
8302
|
};
|
|
8302
8303
|
var toolbarButtons = {
|
|
8303
8304
|
clear: {
|
|
8304
|
-
label:
|
|
8305
|
+
label: __58("Clear", "elementor"),
|
|
8305
8306
|
icon: /* @__PURE__ */ React116.createElement(MinusIcon2, { fontSize: "tiny" }),
|
|
8306
8307
|
action: "clear",
|
|
8307
8308
|
method: (editor) => {
|
|
@@ -8309,7 +8310,7 @@ var toolbarButtons = {
|
|
|
8309
8310
|
}
|
|
8310
8311
|
},
|
|
8311
8312
|
bold: {
|
|
8312
|
-
label:
|
|
8313
|
+
label: __58("Bold", "elementor"),
|
|
8313
8314
|
icon: /* @__PURE__ */ React116.createElement(BoldIcon, { fontSize: "tiny" }),
|
|
8314
8315
|
action: "bold",
|
|
8315
8316
|
method: (editor) => {
|
|
@@ -8317,7 +8318,7 @@ var toolbarButtons = {
|
|
|
8317
8318
|
}
|
|
8318
8319
|
},
|
|
8319
8320
|
italic: {
|
|
8320
|
-
label:
|
|
8321
|
+
label: __58("Italic", "elementor"),
|
|
8321
8322
|
icon: /* @__PURE__ */ React116.createElement(ItalicIcon, { fontSize: "tiny" }),
|
|
8322
8323
|
action: "italic",
|
|
8323
8324
|
method: (editor) => {
|
|
@@ -8325,7 +8326,7 @@ var toolbarButtons = {
|
|
|
8325
8326
|
}
|
|
8326
8327
|
},
|
|
8327
8328
|
underline: {
|
|
8328
|
-
label:
|
|
8329
|
+
label: __58("Underline", "elementor"),
|
|
8329
8330
|
icon: /* @__PURE__ */ React116.createElement(UnderlineIcon, { fontSize: "tiny" }),
|
|
8330
8331
|
action: "underline",
|
|
8331
8332
|
method: (editor) => {
|
|
@@ -8333,7 +8334,7 @@ var toolbarButtons = {
|
|
|
8333
8334
|
}
|
|
8334
8335
|
},
|
|
8335
8336
|
strike: {
|
|
8336
|
-
label:
|
|
8337
|
+
label: __58("Strikethrough", "elementor"),
|
|
8337
8338
|
icon: /* @__PURE__ */ React116.createElement(StrikethroughIcon, { fontSize: "tiny" }),
|
|
8338
8339
|
action: "strike",
|
|
8339
8340
|
method: (editor) => {
|
|
@@ -8341,7 +8342,7 @@ var toolbarButtons = {
|
|
|
8341
8342
|
}
|
|
8342
8343
|
},
|
|
8343
8344
|
superscript: {
|
|
8344
|
-
label:
|
|
8345
|
+
label: __58("Superscript", "elementor"),
|
|
8345
8346
|
icon: /* @__PURE__ */ React116.createElement(SuperscriptIcon, { fontSize: "tiny" }),
|
|
8346
8347
|
action: "superscript",
|
|
8347
8348
|
method: (editor) => {
|
|
@@ -8349,7 +8350,7 @@ var toolbarButtons = {
|
|
|
8349
8350
|
}
|
|
8350
8351
|
},
|
|
8351
8352
|
subscript: {
|
|
8352
|
-
label:
|
|
8353
|
+
label: __58("Subscript", "elementor"),
|
|
8353
8354
|
icon: /* @__PURE__ */ React116.createElement(SubscriptIcon, { fontSize: "tiny" }),
|
|
8354
8355
|
action: "subscript",
|
|
8355
8356
|
method: (editor) => {
|
|
@@ -8357,7 +8358,7 @@ var toolbarButtons = {
|
|
|
8357
8358
|
}
|
|
8358
8359
|
},
|
|
8359
8360
|
link: {
|
|
8360
|
-
label:
|
|
8361
|
+
label: __58("Link", "elementor"),
|
|
8361
8362
|
icon: /* @__PURE__ */ React116.createElement(LinkIcon3, { fontSize: "tiny" }),
|
|
8362
8363
|
action: "link",
|
|
8363
8364
|
method: null
|