@wix/form-public 0.502.0 → 0.504.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +295 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +80 -80
- package/dist/index.css.map +1 -1
- package/dist/index.js +296 -194
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import ReactDOM from 'react-dom';
|
|
|
7
7
|
import camelCase2 from 'lodash.camelcase';
|
|
8
8
|
import mapKeys from 'lodash.mapkeys';
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
|
-
import { CheckboxField, CheckboxButton, TextField, Input, ListBoxItem, ListBox, Dialog, OverlayTriggerStateContext, ModalOverlay, Modal, SearchField, RadioGroup as RadioGroup$1, Button, useSlottedContext, PopoverContext, Popover, Autocomplete, RadioField, RadioButton, CheckboxGroup as CheckboxGroup$1, I18nProvider, DatePicker as DatePicker$1, Select, NumberField, TimeField, SelectValue, CalendarCell, Calendar as Calendar$1, CalendarMonthPicker, CalendarYearPicker, CalendarGrid, DatePickerStateContext,
|
|
10
|
+
import { CheckboxField, CheckboxButton, TextField, Input, ListBoxItem, ListBox, Dialog, OverlayTriggerStateContext, ModalOverlay, Modal, SearchField, Group, RadioGroup as RadioGroup$1, Button, useSlottedContext, PopoverContext, Popover, Autocomplete, RadioField, RadioButton, CheckboxGroup as CheckboxGroup$1, I18nProvider, DatePicker as DatePicker$1, Select, NumberField, TimeField, SelectValue, CalendarCell, Calendar as Calendar$1, CalendarMonthPicker, CalendarYearPicker, CalendarGrid, DatePickerStateContext, DateInput as DateInput$1, DateSegment, TimeFieldStateContext, FileTrigger, DropZone as DropZone$1, Text as Text$1, ProgressBar, ComboBox, DialogTrigger, TextArea as TextArea$1, ComboBoxStateContext } from 'react-aria-components';
|
|
11
11
|
|
|
12
12
|
var __create = Object.create;
|
|
13
13
|
var __defProp = Object.defineProperty;
|
|
@@ -15723,7 +15723,7 @@ var init_plugin_names = __esm({
|
|
|
15723
15723
|
var RICOS_VERSION;
|
|
15724
15724
|
var init_version = __esm({
|
|
15725
15725
|
"../../node_modules/@wix/ricos/dist/es/ricos-schema/next-schema/version.js"() {
|
|
15726
|
-
RICOS_VERSION = "11.
|
|
15726
|
+
RICOS_VERSION = "11.20.0";
|
|
15727
15727
|
}
|
|
15728
15728
|
});
|
|
15729
15729
|
|
|
@@ -23178,10 +23178,12 @@ function servicePluginsModules(getAuthStrategy) {
|
|
|
23178
23178
|
return this.parseJWT(body);
|
|
23179
23179
|
},
|
|
23180
23180
|
async processRequest(request) {
|
|
23181
|
-
const
|
|
23182
|
-
|
|
23181
|
+
const servicePluginRequest = await this.parseRequest(request);
|
|
23182
|
+
return this.processParsedRequest(servicePluginRequest, request.url);
|
|
23183
|
+
},
|
|
23184
|
+
async processParsedRequest(servicePluginRequest, url) {
|
|
23183
23185
|
try {
|
|
23184
|
-
const implMethodResult = await this.
|
|
23186
|
+
const implMethodResult = await this.executeHandler(servicePluginRequest, url);
|
|
23185
23187
|
return Response.json(implMethodResult);
|
|
23186
23188
|
} catch (err) {
|
|
23187
23189
|
if (err.errorType === "SPI" && err.applicationCode && err.httpCode) {
|
|
@@ -25942,27 +25944,27 @@ var gallery_media_default;
|
|
|
25942
25944
|
var init_gallery_media_scss = __esm({
|
|
25943
25945
|
"../../node_modules/@wix/ricos/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js"() {
|
|
25944
25946
|
gallery_media_default = {
|
|
25945
|
-
"media": "
|
|
25946
|
-
"fit": "
|
|
25947
|
-
"failure": "
|
|
25948
|
-
"playButton": "
|
|
25949
|
-
"playIcon": "
|
|
25950
|
-
"navigationArrow": "
|
|
25951
|
-
"arrowStart": "
|
|
25952
|
-
"arrowEnd": "
|
|
25953
|
-
"arrowIcon": "
|
|
25954
|
-
"fill": "
|
|
25955
|
-
"intrinsic": "
|
|
25956
|
-
"cell": "
|
|
25957
|
-
"expandButton": "
|
|
25958
|
-
"expandIcon": "
|
|
25959
|
-
"expandChrome": "
|
|
25960
|
-
"expandIconGlyph": "
|
|
25961
|
-
"editorOverlay": "
|
|
25962
|
-
"horizontal": "
|
|
25963
|
-
"viewport": "
|
|
25964
|
-
"track": "
|
|
25965
|
-
"previous": "
|
|
25947
|
+
"media": "BYj-D",
|
|
25948
|
+
"fit": "GYoUx",
|
|
25949
|
+
"failure": "sE4wg",
|
|
25950
|
+
"playButton": "ChIn-",
|
|
25951
|
+
"playIcon": "lO9sz",
|
|
25952
|
+
"navigationArrow": "sKUmG",
|
|
25953
|
+
"arrowStart": "eafcn",
|
|
25954
|
+
"arrowEnd": "ct3mr",
|
|
25955
|
+
"arrowIcon": "_4RIRs",
|
|
25956
|
+
"fill": "h8tgO",
|
|
25957
|
+
"intrinsic": "_5X23C",
|
|
25958
|
+
"cell": "xDt4R",
|
|
25959
|
+
"expandButton": "H-2Qq",
|
|
25960
|
+
"expandIcon": "PI7br",
|
|
25961
|
+
"expandChrome": "hY4vP",
|
|
25962
|
+
"expandIconGlyph": "aLNhD",
|
|
25963
|
+
"editorOverlay": "-salV",
|
|
25964
|
+
"horizontal": "_5djrR",
|
|
25965
|
+
"viewport": "nsMzs",
|
|
25966
|
+
"track": "MpXDY",
|
|
25967
|
+
"previous": "M-BGj"
|
|
25966
25968
|
};
|
|
25967
25969
|
}
|
|
25968
25970
|
});
|
|
@@ -26674,9 +26676,9 @@ var init_data_hooks = __esm({
|
|
|
26674
26676
|
var styleDataHash, injectCss, fullscreen_default;
|
|
26675
26677
|
var init_fullscreen_scss = __esm({
|
|
26676
26678
|
"../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js"() {
|
|
26677
|
-
styleDataHash = "
|
|
26679
|
+
styleDataHash = "2209a6e8";
|
|
26678
26680
|
injectCss = (() => {
|
|
26679
|
-
var css =
|
|
26681
|
+
var css = `.uKVFY [data-hook^=gallery-media-]{display:block;inline-size:100%;overflow:hidden;position:relative}.uKVFY [data-hook^=gallery-media-]>img,.uKVFY [data-hook^=gallery-media-]>video{block-size:100%;display:block;inline-size:100%;object-position:center}.uKVFY [data-hook^=gallery-media-]{align-items:center;display:flex;justify-content:center}.uKVFY [data-hook^=gallery-media-]>img,.uKVFY [data-hook^=gallery-media-]>video{block-size:auto;inline-size:auto;margin:auto;max-block-size:100%;max-inline-size:100%;object-fit:contain}.uKVFY [data-hook=gallery-media-failure]{background:#e5e5e5;min-block-size:1px;min-inline-size:1px}.uKVFY [data-hook=gallery-video-play]{appearance:none;background:transparent;border:0;cursor:pointer;inline-size:100%;inset:0;padding:0;position:absolute}.uKVFY [data-hook=gallery-video-play]:focus-visible{outline:2px solid #3899ec;outline-offset:-2px}.uKVFY [data-hook=gallery-video-play]>span{block-size:0;border-block:12px solid transparent;border-inline-start:18px solid #fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));inline-size:0;inset-block-start:50%;inset-inline-start:50%;position:absolute;transform:translate(-40%,-50%)}.nVV6j{align-items:center;appearance:none;background:transparent;block-size:39px;border:0;border-radius:0;color:#000;cursor:pointer;display:inline-flex;inline-size:23px;justify-content:center;overflow:hidden;padding:0;position:relative;transition:opacity .12s ease}.nVV6j:disabled,[aria-disabled=true].nVV6j:not(:focus-visible){pointer-events:none;visibility:hidden}.nVV6j:focus-visible{outline:2px solid #3899ec;outline-offset:2px}@media (prefers-reduced-motion:reduce){.nVV6j{transition:none}}.nVV6j{inset-block-start:50%;position:absolute;transform:translateY(-50%)}.nVV6j svg{block-size:39px;display:block;inline-size:46px;inset-block-start:0;inset-inline-end:0;position:absolute;fill:currentColor;filter:drop-shadow(0 1px .15px #b2b2b2)}.cGNV0,.ncx3G{background:#fff;box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) auto;height:100dvh;inset:0;position:fixed;width:100vw;z-index:100001}.ncx3G{padding-block:70px 20px}@media only screen and (max-width:640px){.ncx3G{padding-block-start:40px}}.cGNV0{padding:0}.MnmQz{background:transparent;border:hidden;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;height:fit-content;padding:0;position:fixed;right:17px;top:10px;width:fit-content;z-index:1001}@media only screen and (max-width:640px){.MnmQz{right:20px;top:5px}.MnmQz>svg{height:30px;width:30px}}.MnmQz:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.pjRHV{background:transparent;border:hidden;border-radius:4px;box-sizing:border-box;color:#000;cursor:pointer;height:fit-content;left:22px;padding:0;position:fixed;top:10px;width:fit-content;z-index:1001}.pjRHV:focus-visible{outline:5px auto Highlight!important;outline:5px auto -webkit-focus-ring-color!important}.RK4GW{font-size:14px;line-height:20px;text-align:center;white-space:normal}.nrc-A{box-sizing:border-box;display:flex;justify-content:center;min-height:60px;padding:16px 20px;width:100%}.SQjwd{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}.GvC-Y{height:100%;min-height:0;min-width:0;position:relative;--ricos-internal-gallery-arrow-inset:20px}.DHzv7{height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:inline mandatory;scrollbar-width:none}.DHzv7::-webkit-scrollbar{display:none}.eYMTg{display:flex;height:100%;list-style:none;margin:0;padding:0}.uKVFY{flex:0 0 100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;width:100%}.uKVFY [data-hook^=gallery-media-]{background:transparent;height:100%}.nVV6j{color:inherit;z-index:1}.nVV6j[data-hook=gallery-navigation-previous]{inset-inline-start:var(--ricos-internal-gallery-arrow-inset,12px)}.nVV6j[data-hook=gallery-navigation-previous] svg{inset-inline-end:auto;inset-inline-start:0}.nVV6j[data-hook=gallery-navigation-next]{inset-inline-end:var(--ricos-internal-gallery-arrow-inset,12px)}`;
|
|
26680
26682
|
typeof process !== "undefined" && process.env && false;
|
|
26681
26683
|
if (typeof document === "undefined") {
|
|
26682
26684
|
return;
|
|
@@ -26697,18 +26699,18 @@ var init_fullscreen_scss = __esm({
|
|
|
26697
26699
|
});
|
|
26698
26700
|
injectCss();
|
|
26699
26701
|
fullscreen_default = {
|
|
26700
|
-
"slide": "
|
|
26701
|
-
"arrow": "
|
|
26702
|
-
"fullscreen_mode": "
|
|
26703
|
-
"expand_mode": "
|
|
26704
|
-
"close": "
|
|
26705
|
-
"expand_button": "
|
|
26706
|
-
"title": "
|
|
26707
|
-
"info_container": "
|
|
26708
|
-
"visuallyHidden": "
|
|
26709
|
-
"carousel": "
|
|
26710
|
-
"viewport": "
|
|
26711
|
-
"track": "
|
|
26702
|
+
"slide": "uKVFY",
|
|
26703
|
+
"arrow": "nVV6j",
|
|
26704
|
+
"fullscreen_mode": "cGNV0",
|
|
26705
|
+
"expand_mode": "ncx3G",
|
|
26706
|
+
"close": "MnmQz",
|
|
26707
|
+
"expand_button": "pjRHV",
|
|
26708
|
+
"title": "RK4GW",
|
|
26709
|
+
"info_container": "nrc-A",
|
|
26710
|
+
"visuallyHidden": "SQjwd",
|
|
26711
|
+
"carousel": "GvC-Y",
|
|
26712
|
+
"viewport": "DHzv7",
|
|
26713
|
+
"track": "eYMTg"
|
|
26712
26714
|
};
|
|
26713
26715
|
}
|
|
26714
26716
|
});
|
|
@@ -33931,9 +33933,9 @@ var require_messages_zh = __commonJS({
|
|
|
33931
33933
|
var styleDataHash6, injectCss6, viewer_inline_toolbar_default;
|
|
33932
33934
|
var init_viewer_inline_toolbar_scss = __esm({
|
|
33933
33935
|
"../../node_modules/@wix/ricos/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js"() {
|
|
33934
|
-
styleDataHash6 = "
|
|
33936
|
+
styleDataHash6 = "f225be53";
|
|
33935
33937
|
injectCss6 = (() => {
|
|
33936
|
-
var css = `.
|
|
33938
|
+
var css = `.axLsN{background-color:#fff;border:1px solid #ededed;border-radius:6px;box-shadow:0 4px 8px 0 rgba(0,0,0,.07);display:flex;height:43px;overflow:hidden;position:absolute;transform:translate(-50%,-100%);transition:all .5s ease-out}.CuyEJ{align-items:center;background:#fff;border:none;cursor:pointer;display:flex;justify-content:center;width:43px}`;
|
|
33937
33939
|
typeof process !== "undefined" && process.env && false;
|
|
33938
33940
|
if (typeof document === "undefined") {
|
|
33939
33941
|
return;
|
|
@@ -33954,8 +33956,8 @@ var init_viewer_inline_toolbar_scss = __esm({
|
|
|
33954
33956
|
});
|
|
33955
33957
|
injectCss6();
|
|
33956
33958
|
viewer_inline_toolbar_default = {
|
|
33957
|
-
"toolbar": "
|
|
33958
|
-
"button": "
|
|
33959
|
+
"toolbar": "axLsN",
|
|
33960
|
+
"button": "CuyEJ"
|
|
33959
33961
|
};
|
|
33960
33962
|
}
|
|
33961
33963
|
});
|
|
@@ -39194,7 +39196,8 @@ function mergeViewerProps({
|
|
|
39194
39196
|
debugMode,
|
|
39195
39197
|
jsdomMode,
|
|
39196
39198
|
baseUrl,
|
|
39197
|
-
firstFoldNodeCount
|
|
39199
|
+
firstFoldNodeCount,
|
|
39200
|
+
responsiveBehavior
|
|
39198
39201
|
}) {
|
|
39199
39202
|
const rcvPluginProps = pluginsStrategy({
|
|
39200
39203
|
plugins: plugins?.filter(isViewerPlugin),
|
|
@@ -39236,7 +39239,8 @@ function mergeViewerProps({
|
|
|
39236
39239
|
jsdomMode,
|
|
39237
39240
|
baseUrl,
|
|
39238
39241
|
userDomainMedia,
|
|
39239
|
-
firstFoldNodeCount
|
|
39242
|
+
firstFoldNodeCount,
|
|
39243
|
+
responsiveBehavior
|
|
39240
39244
|
};
|
|
39241
39245
|
const mergedRCProps = pipe(
|
|
39242
39246
|
deepMerge(
|
|
@@ -39834,26 +39838,31 @@ var vitalTranslations_json_default = {
|
|
|
39834
39838
|
var import_classnames20 = __toESM(require_classnames(), 1);
|
|
39835
39839
|
init_ricos_content();
|
|
39836
39840
|
init_ricos_styles();
|
|
39841
|
+
|
|
39842
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/build-responsive-attributes.js
|
|
39843
|
+
var buildResponsiveAttributes = (responsiveBehavior) => responsiveBehavior === "viewport" ? { "data-ricos-responsive": "viewport" } : {};
|
|
39844
|
+
|
|
39845
|
+
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/content-viewer.js
|
|
39837
39846
|
init_use_isomorphic_layout_effect();
|
|
39838
39847
|
init_wix_rich_content_common();
|
|
39839
39848
|
|
|
39840
39849
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js
|
|
39841
39850
|
var rich_content_viewer_default = {
|
|
39842
|
-
"fontElementMap": "
|
|
39843
|
-
"wrapper": "
|
|
39844
|
-
"pluginContainerMobile": "
|
|
39845
|
-
"viewer": "
|
|
39846
|
-
"android": "
|
|
39847
|
-
"rootedTraversedContent": "
|
|
39848
|
-
"atomic": "
|
|
39849
|
-
"toolbar": "
|
|
39850
|
-
"block": "
|
|
39851
|
+
"fontElementMap": "foN3c",
|
|
39852
|
+
"wrapper": "DxgWL",
|
|
39853
|
+
"pluginContainerMobile": "IYHIJ",
|
|
39854
|
+
"viewer": "Ztb7q",
|
|
39855
|
+
"android": "bxIYS",
|
|
39856
|
+
"rootedTraversedContent": "_119kl",
|
|
39857
|
+
"atomic": "_8OXQ1",
|
|
39858
|
+
"toolbar": "yEYNg",
|
|
39859
|
+
"block": "_3wMje"
|
|
39851
39860
|
};
|
|
39852
39861
|
|
|
39853
39862
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/rtl-scss.js
|
|
39854
39863
|
var rtl_default = {
|
|
39855
|
-
"rtl": "
|
|
39856
|
-
"ltr": "
|
|
39864
|
+
"rtl": "hKQHr",
|
|
39865
|
+
"ltr": "O0ZTD"
|
|
39857
39866
|
};
|
|
39858
39867
|
|
|
39859
39868
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/components/anchor.js
|
|
@@ -40149,13 +40158,13 @@ init_ricos_context2();
|
|
|
40149
40158
|
|
|
40150
40159
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/indentation-scss.js
|
|
40151
40160
|
var indentation_default = {
|
|
40152
|
-
"indentZero": "
|
|
40153
|
-
"indentOne": "
|
|
40154
|
-
"indentTwo": "
|
|
40155
|
-
"indentThree": "
|
|
40156
|
-
"indentFour": "
|
|
40157
|
-
"indentFive": "
|
|
40158
|
-
"indentSix": "
|
|
40161
|
+
"indentZero": "oUcKW",
|
|
40162
|
+
"indentOne": "ZUIVQ",
|
|
40163
|
+
"indentTwo": "nhO5Y",
|
|
40164
|
+
"indentThree": "_5PA9H",
|
|
40165
|
+
"indentFour": "z7A6b",
|
|
40166
|
+
"indentFive": "u1LrQ",
|
|
40167
|
+
"indentSix": "cqI2i"
|
|
40159
40168
|
};
|
|
40160
40169
|
var Anchorable = ({ nodeId, children }) => {
|
|
40161
40170
|
return React172.cloneElement(React172.Children.only(children), {
|
|
@@ -40188,8 +40197,8 @@ var alignmentToFlex = {
|
|
|
40188
40197
|
|
|
40189
40198
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js
|
|
40190
40199
|
var blockquote_default = {
|
|
40191
|
-
"quoteContainer": "
|
|
40192
|
-
"quote": "
|
|
40200
|
+
"quoteContainer": "jYTPF",
|
|
40201
|
+
"quote": "tjETq"
|
|
40193
40202
|
};
|
|
40194
40203
|
|
|
40195
40204
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote.js
|
|
@@ -40231,27 +40240,27 @@ init_v1();
|
|
|
40231
40240
|
|
|
40232
40241
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/statics/alignment-scss.js
|
|
40233
40242
|
var alignment_default = {
|
|
40234
|
-
"alignLeft": "
|
|
40235
|
-
"textWrapNowrap": "
|
|
40236
|
-
"alignRight": "
|
|
40237
|
-
"alignCenter": "
|
|
40238
|
-
"sizeFullWidth": "
|
|
40239
|
-
"renderedInTable": "
|
|
40240
|
-
"sizeOriginal": "
|
|
40241
|
-
"sizeContent": "
|
|
40242
|
-
"sizeSmall": "
|
|
40243
|
-
"sizeSmallCenter": "
|
|
40244
|
-
"flex": "
|
|
40245
|
-
"LEFT": "
|
|
40246
|
-
"CENTER": "
|
|
40247
|
-
"RIGHT": "
|
|
40248
|
-
"AUTO": "
|
|
40249
|
-
"JUSTIFY": "
|
|
40243
|
+
"alignLeft": "Pmy-r",
|
|
40244
|
+
"textWrapNowrap": "bLUh-",
|
|
40245
|
+
"alignRight": "fgmUU",
|
|
40246
|
+
"alignCenter": "hZnqD",
|
|
40247
|
+
"sizeFullWidth": "_9zD4n",
|
|
40248
|
+
"renderedInTable": "_2FXpS",
|
|
40249
|
+
"sizeOriginal": "vhF7I",
|
|
40250
|
+
"sizeContent": "Qvd1D",
|
|
40251
|
+
"sizeSmall": "XhBET",
|
|
40252
|
+
"sizeSmallCenter": "cUffh",
|
|
40253
|
+
"flex": "vkRoT",
|
|
40254
|
+
"LEFT": "D5Imq",
|
|
40255
|
+
"CENTER": "-n7f5",
|
|
40256
|
+
"RIGHT": "drIg9",
|
|
40257
|
+
"AUTO": "rQSGI",
|
|
40258
|
+
"JUSTIFY": "THAsa"
|
|
40250
40259
|
};
|
|
40251
40260
|
|
|
40252
40261
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js
|
|
40253
40262
|
var codeblock_default = {
|
|
40254
|
-
"codeBlock": "
|
|
40263
|
+
"codeBlock": "sYPTy _1OaR1"};
|
|
40255
40264
|
|
|
40256
40265
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock.js
|
|
40257
40266
|
var CodeBlock = ({ node, nodeIndex, RicosNodesRenderer: RicosNodesRenderer2 }) => {
|
|
@@ -40290,15 +40299,15 @@ init_v1();
|
|
|
40290
40299
|
|
|
40291
40300
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js
|
|
40292
40301
|
var heading_default = {
|
|
40293
|
-
"fontElementMap": "
|
|
40294
|
-
"elementSpacing": "
|
|
40295
|
-
"headerOne": "
|
|
40296
|
-
"headerTwo": "
|
|
40297
|
-
"headerThree": "
|
|
40298
|
-
"headerFour": "
|
|
40299
|
-
"headerFive": "
|
|
40300
|
-
"headerSix": "
|
|
40301
|
-
"child": "
|
|
40302
|
+
"fontElementMap": "hwiM8",
|
|
40303
|
+
"elementSpacing": "HaWix",
|
|
40304
|
+
"headerOne": "Uef77 HaWix",
|
|
40305
|
+
"headerTwo": "VAiYQ HaWix",
|
|
40306
|
+
"headerThree": "p9bqS HaWix",
|
|
40307
|
+
"headerFour": "_0MJNL HaWix",
|
|
40308
|
+
"headerFive": "KzrPD HaWix",
|
|
40309
|
+
"headerSix": "_3Jr55 HaWix",
|
|
40310
|
+
"child": "-qG0v"
|
|
40302
40311
|
};
|
|
40303
40312
|
|
|
40304
40313
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading.js
|
|
@@ -40375,16 +40384,16 @@ init_ricos_context2();
|
|
|
40375
40384
|
|
|
40376
40385
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js
|
|
40377
40386
|
var layout_default = {
|
|
40378
|
-
"sectionDividerClip": "
|
|
40379
|
-
"sectionDivider": "
|
|
40380
|
-
"sectionDividerTop": "
|
|
40381
|
-
"sectionDividerBottom": "
|
|
40382
|
-
"layoutWrapper": "
|
|
40383
|
-
"layout": "
|
|
40384
|
-
"designOnLayout": "
|
|
40385
|
-
"designOnCell": "
|
|
40386
|
-
"cell": "
|
|
40387
|
-
"mobile": "
|
|
40387
|
+
"sectionDividerClip": "xsKBF",
|
|
40388
|
+
"sectionDivider": "E14V6",
|
|
40389
|
+
"sectionDividerTop": "RO-eQ",
|
|
40390
|
+
"sectionDividerBottom": "_9C42s",
|
|
40391
|
+
"layoutWrapper": "_4Hh47",
|
|
40392
|
+
"layout": "_9B7Yj",
|
|
40393
|
+
"designOnLayout": "UBc-H",
|
|
40394
|
+
"designOnCell": "IjJwV",
|
|
40395
|
+
"cell": "eRq-8",
|
|
40396
|
+
"mobile": "-T9d0"
|
|
40388
40397
|
};
|
|
40389
40398
|
|
|
40390
40399
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/cell.js
|
|
@@ -40722,6 +40731,20 @@ var getDividerLayers = (divider) => {
|
|
|
40722
40731
|
init_ricos_context2();
|
|
40723
40732
|
init_viewer_context();
|
|
40724
40733
|
|
|
40734
|
+
// ../../node_modules/@wix/ricos/dist/es/_shared/build-responsive-css.js
|
|
40735
|
+
var VIEWPORT_ROOT = "[data-ricos-responsive=viewport]";
|
|
40736
|
+
var buildResponsiveCss = (query, rules) => {
|
|
40737
|
+
const scoped = (scope) => rules.map(({ selector, declarations }) => `${scope(selector)} {${declarations}}`).join("\n");
|
|
40738
|
+
return `
|
|
40739
|
+
@container ${query} {
|
|
40740
|
+
${scoped((selector) => `${selector}:where(:not(${VIEWPORT_ROOT} *))`)}
|
|
40741
|
+
}
|
|
40742
|
+
@media ${query} {
|
|
40743
|
+
${scoped((selector) => `:where(${VIEWPORT_ROOT}) ${selector}`)}
|
|
40744
|
+
}
|
|
40745
|
+
`;
|
|
40746
|
+
};
|
|
40747
|
+
|
|
40725
40748
|
// ../../node_modules/@wix/ricos/dist/es/_shared/is-edge-banner.js
|
|
40726
40749
|
init_next_schema();
|
|
40727
40750
|
var isEdgeBanner = (banner) => !!banner && banner.position !== LayoutData_BannerPosition.PAYWALL;
|
|
@@ -40738,9 +40761,9 @@ function resolveBackwardCompatOverlay(color, imageOpacity, opacityMax) {
|
|
|
40738
40761
|
init_resolve_css_color();
|
|
40739
40762
|
|
|
40740
40763
|
// ../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js
|
|
40741
|
-
var styleDataHash2 = "
|
|
40764
|
+
var styleDataHash2 = "aa012177";
|
|
40742
40765
|
var injectCss2 = (() => {
|
|
40743
|
-
var css = `.
|
|
40766
|
+
var css = `.lueNP{--shimmer-base-color:#f5f5f5;background-color:var(--shimmer-base-color);inset:0;pointer-events:none;position:absolute;z-index:1}._8VSta{inset:0;overflow:hidden;position:absolute}._8VSta:after{animation:EaLZo 1s linear infinite;background:linear-gradient(90deg,transparent,hsla(0,0%,100%,.3),transparent 50%);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@keyframes EaLZo{to{transform:translateX(100%)}}`;
|
|
40744
40767
|
typeof process !== "undefined" && process.env && false;
|
|
40745
40768
|
if (typeof document === "undefined") {
|
|
40746
40769
|
return;
|
|
@@ -40761,8 +40784,8 @@ var injectCss2 = (() => {
|
|
|
40761
40784
|
});
|
|
40762
40785
|
injectCss2();
|
|
40763
40786
|
var layout_background_loader_default = {
|
|
40764
|
-
"overlay": "
|
|
40765
|
-
"shimmer": "
|
|
40787
|
+
"overlay": "lueNP",
|
|
40788
|
+
"shimmer": "_8VSta"};
|
|
40766
40789
|
|
|
40767
40790
|
// ../../node_modules/@wix/ricos/dist/es/ui-components/layout-background-loader/layout-background-loader.js
|
|
40768
40791
|
var DEFAULT_BACKGROUND_COLOR = "#f5f5f5";
|
|
@@ -40847,27 +40870,23 @@ var getStyleContent = (node) => {
|
|
|
40847
40870
|
`layout-${node.id}-${responsivenessBreakpoint}-${responsivenessBehaviour}`
|
|
40848
40871
|
);
|
|
40849
40872
|
const isWrapping = responsivenessBehaviour === "wrap";
|
|
40850
|
-
const
|
|
40851
|
-
|
|
40873
|
+
const selector = `[data-layout-scope=${scopeValue}].${layout_default.layout}`;
|
|
40874
|
+
const declarations = `
|
|
40852
40875
|
--ricos-internal-layout-display: ${isWrapping ? "flex" : "grid"};
|
|
40853
40876
|
--ricos-internal-layout-justify-content: ${isWrapping ? "center" : "auto"};
|
|
40854
40877
|
--ricos-internal-layout-grid-template: grid-template-columns: minmax(0, 1fr);
|
|
40855
40878
|
--ricos-internal-layout-cell-min-width: ${isWrapping ? `${Math.floor(responsivenessBreakpoint / node.nodes.length)}px` : "100%"};
|
|
40856
40879
|
--ricos-internal-layout-cell-height: ${isWrapping ? "auto" : "100%"};
|
|
40857
|
-
}
|
|
40858
40880
|
`;
|
|
40859
40881
|
return {
|
|
40860
40882
|
scopeValue,
|
|
40861
40883
|
content: `
|
|
40862
40884
|
@supports not (contain: inline-size) {
|
|
40863
40885
|
@media only screen and (max-width: ${responsivenessBreakpoint}px) {
|
|
40864
|
-
${
|
|
40886
|
+
${selector} {${declarations}}
|
|
40865
40887
|
}
|
|
40866
40888
|
}
|
|
40867
|
-
|
|
40868
|
-
@container (max-width: ${responsivenessBreakpoint}px) {
|
|
40869
|
-
${styleContent}
|
|
40870
|
-
}
|
|
40889
|
+
${buildResponsiveCss(`(max-width: ${responsivenessBreakpoint}px)`, [{ selector, declarations }])}
|
|
40871
40890
|
`
|
|
40872
40891
|
};
|
|
40873
40892
|
};
|
|
@@ -41077,11 +41096,11 @@ init_v1();
|
|
|
41077
41096
|
|
|
41078
41097
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js
|
|
41079
41098
|
var lists_default = {
|
|
41080
|
-
"orderedlist": "
|
|
41081
|
-
"bulletedlist": "
|
|
41082
|
-
"listItem": "
|
|
41083
|
-
"checkboxList": "
|
|
41084
|
-
"checkboxInput": "
|
|
41099
|
+
"orderedlist": "EE2bJ",
|
|
41100
|
+
"bulletedlist": "CS-Er",
|
|
41101
|
+
"listItem": "YtFdT",
|
|
41102
|
+
"checkboxList": "_7HDni",
|
|
41103
|
+
"checkboxInput": "G1Ecr"
|
|
41085
41104
|
};
|
|
41086
41105
|
|
|
41087
41106
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/bulleted-list.js
|
|
@@ -41269,8 +41288,8 @@ init_v1();
|
|
|
41269
41288
|
|
|
41270
41289
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js
|
|
41271
41290
|
var paragraph_default = {
|
|
41272
|
-
"text": "
|
|
41273
|
-
"child": "
|
|
41291
|
+
"text": "lkQt0 _1nK5N",
|
|
41292
|
+
"child": "_4K-BC"
|
|
41274
41293
|
};
|
|
41275
41294
|
|
|
41276
41295
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph.js
|
|
@@ -41402,9 +41421,9 @@ init_v1();
|
|
|
41402
41421
|
__toESM(require_classnames(), 1);
|
|
41403
41422
|
|
|
41404
41423
|
// ../../node_modules/@wix/ricos/dist/es/wix-rich-content-common/statics/styles/general-scss.js
|
|
41405
|
-
var styleDataHash3 = "
|
|
41424
|
+
var styleDataHash3 = "b1ce36bb";
|
|
41406
41425
|
var injectCss3 = (() => {
|
|
41407
|
-
var css = `.
|
|
41426
|
+
var css = `.p2ebN{margin-left:0;margin-right:auto;z-index:1}.p2ebN:not(.M6uvN){float:left;margin-right:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){.p2ebN:not(.M6uvN){float:none;margin-right:auto}}}@container (width < 480px){.p2ebN:not(.M6uvN):where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){float:none;margin-right:auto}}@media (width < 480px){.p2ebN:not(.M6uvN):where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .p2ebN:not(.M6uvN){float:none;margin-right:auto}}.fwiIi{margin-left:auto;margin-right:0;z-index:1}.fwiIi:not(.M6uvN){float:right;margin-left:40px}@supports not (contain:inline-size){@media only screen and (max-width:480px){.fwiIi:not(.M6uvN){float:none;margin-left:auto}}}@container (width < 480px){.fwiIi:not(.M6uvN):where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){float:none;margin-left:auto}}@media (width < 480px){.fwiIi:not(.M6uvN):where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .fwiIi:not(.M6uvN){float:none;margin-left:auto}}.GI6z5{clear:both;display:block}.GI6z5:not(.JE166){margin-left:auto;margin-right:auto;max-width:100%}.JE166,.M6uvN{width:100%}.VgxPr .JE166,.VgxPr .M6uvN{margin:0 -8px;width:auto}.wUNHA{width:fit-content}._6TNvD{margin-left:auto;margin-right:auto;max-width:100%}.BFJZa{width:min(350px,100%)!important}.VgxPr .BFJZa{width:50%}.eKE21{margin-left:auto;margin-right:auto}.VgxPr .eKE21{width:150px}.G4bof{display:flex}`;
|
|
41408
41427
|
typeof process !== "undefined" && process.env && false;
|
|
41409
41428
|
if (typeof document === "undefined") {
|
|
41410
41429
|
return;
|
|
@@ -41426,9 +41445,9 @@ var injectCss3 = (() => {
|
|
|
41426
41445
|
injectCss3();
|
|
41427
41446
|
|
|
41428
41447
|
// ../../node_modules/@wix/ricos/dist/es/editor-common/statics/styles/general-scss.js
|
|
41429
|
-
var styleDataHash4 = "
|
|
41448
|
+
var styleDataHash4 = "913ea73b";
|
|
41430
41449
|
var injectCss4 = (() => {
|
|
41431
|
-
var css = `.
|
|
41450
|
+
var css = `.FcLic,._5FzYe,button{font-family:var(--ricos-font-family,unset)}.glob_fontElementMap{font-family:var(--ricos-font-family,unset)}._3lA4E{display:flex}.dR7Ru:hover{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.o-J3X{border-radius:var(--ricos-native-whitebox-border-radius,0);box-shadow:0 0 0 1.5px #116dff;cursor:default}.CR-A9 .o-J3X{box-shadow:none!important}[data-hook^=figure-][data-cropping] .o-J3X{box-shadow:none!important}.CR-A9 :is([data-resize-handle],[data-hook=image-corner-radius-handle],[data-hook=image-corner-radius-label]){display:none!important}.f-a-3{cursor:move;display:block;height:100%;left:0;position:absolute;top:0;width:100%}.f-a-3._-37WI{pointer-events:none}.EdZMm ::selection{background:transparent}.TSADE{display:none}.FcLic{position:relative}.TLHqS{max-width:100%}.Z4pZ9{color:#333;text-decoration:none}.EPlfK{display:block}.Ca1kk{position:relative}.Ec5X3{margin-left:-20px;margin-right:-20px;overflow-x:auto;overflow-y:hidden}.Ec5X3.S72dN::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5)}.Ec5X3.ejePb::-webkit-scrollbar-thumb{background-color:transparent}.BGkCi{max-width:max-content!important;min-width:100%}.Ec5X3::-webkit-scrollbar{-webkit-appearance:none}.Ec5X3::-webkit-scrollbar-thumb{border:2px solid #fff;border-radius:8px}.Ec5X3::-webkit-scrollbar:horizontal{height:10px}`;
|
|
41432
41451
|
typeof process !== "undefined" && process.env && false;
|
|
41433
41452
|
if (typeof document === "undefined") {
|
|
41434
41453
|
return;
|
|
@@ -41458,21 +41477,21 @@ var getContainerData = (node) => {
|
|
|
41458
41477
|
|
|
41459
41478
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js
|
|
41460
41479
|
var plugin_default = {
|
|
41461
|
-
"alignLeft": "
|
|
41462
|
-
"textWrapNowrap": "
|
|
41463
|
-
"alignRight": "
|
|
41464
|
-
"alignCenter": "
|
|
41465
|
-
"sizeFullWidth": "
|
|
41466
|
-
"renderedInTable": "
|
|
41467
|
-
"sizeOriginal": "
|
|
41468
|
-
"sizeContent": "
|
|
41469
|
-
"sizeSmall": "
|
|
41470
|
-
"sizeSmallCenter": "
|
|
41471
|
-
"flex": "
|
|
41472
|
-
"atomic": "
|
|
41473
|
-
"embed": "
|
|
41474
|
-
"horizontalScrollbar": "
|
|
41475
|
-
"pluginContainerMobile": "
|
|
41480
|
+
"alignLeft": "dYRLU",
|
|
41481
|
+
"textWrapNowrap": "kKRji",
|
|
41482
|
+
"alignRight": "I-U2C",
|
|
41483
|
+
"alignCenter": "_9Zmc2",
|
|
41484
|
+
"sizeFullWidth": "F1xwv",
|
|
41485
|
+
"renderedInTable": "km4zW",
|
|
41486
|
+
"sizeOriginal": "JVc55",
|
|
41487
|
+
"sizeContent": "m7Jum",
|
|
41488
|
+
"sizeSmall": "RehgI",
|
|
41489
|
+
"sizeSmallCenter": "FeEFR",
|
|
41490
|
+
"flex": "GcKDD",
|
|
41491
|
+
"atomic": "p2aJX",
|
|
41492
|
+
"embed": "q5cSc",
|
|
41493
|
+
"horizontalScrollbar": "KPA3u",
|
|
41494
|
+
"pluginContainerMobile": "qms9d"
|
|
41476
41495
|
};
|
|
41477
41496
|
|
|
41478
41497
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/get-class-names.js
|
|
@@ -41570,8 +41589,8 @@ init_wix_rich_content_common();
|
|
|
41570
41589
|
|
|
41571
41590
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js
|
|
41572
41591
|
var link_viewer_wrapper_default = {
|
|
41573
|
-
"anchor": "
|
|
41574
|
-
"link": "
|
|
41592
|
+
"anchor": "tl2sN",
|
|
41593
|
+
"link": "xBo10"
|
|
41575
41594
|
};
|
|
41576
41595
|
|
|
41577
41596
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper.js
|
|
@@ -41923,9 +41942,9 @@ init_v1();
|
|
|
41923
41942
|
var import_classnames19 = __toESM(require_classnames(), 1);
|
|
41924
41943
|
|
|
41925
41944
|
// ../../node_modules/@wix/ricos/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js
|
|
41926
|
-
var styleDataHash5 = "
|
|
41945
|
+
var styleDataHash5 = "72c85e2a";
|
|
41927
41946
|
var injectCss5 = (() => {
|
|
41928
|
-
var css = `.
|
|
41947
|
+
var css = `.NBIfU,.Z-Y22{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}.NBIfU:not(._89pVJ):hover .qsJC8,.Z-Y22:not(._89pVJ):hover .qsJC8{opacity:1}.NBIfU._89pVJ,._89pVJ.Z-Y22{cursor:auto;height:0;pointer-events:none}.Z-Y22{cursor:none;pointer-events:none}.QQwLC .qsJC8{opacity:1}.qsJC8{background-color:#116dff;height:2px;opacity:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%;z-index:1000000}.qsJC8:after,.qsJC8:before{background-color:#116dff;content:"";height:3px;left:0;opacity:.3;position:absolute;width:100%}.qsJC8:before{top:-3px}.qsJC8:after{bottom:-3px}.HTm-M{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA","meiryo","\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);position:absolute;word-wrap:break-word;border:none;max-width:180px;opacity:0;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}.i8d2F{display:none}@supports not (contain:inline-size){@media only screen and (max-width:480px){.i8d2F{display:block}}}@container (width < 480px){.i8d2F:where(:not([data-ricos-responsive=viewport],[data-ricos-responsive=viewport] *)){display:block}}@media (width < 480px){.i8d2F:where([data-ricos-responsive=viewport]),:where([data-ricos-responsive=viewport]) .i8d2F{display:block}}.iqkFn{margin-top:14px}`;
|
|
41929
41948
|
typeof process !== "undefined" && process.env && false;
|
|
41930
41949
|
if (typeof document === "undefined") {
|
|
41931
41950
|
return;
|
|
@@ -41946,9 +41965,9 @@ var injectCss5 = (() => {
|
|
|
41946
41965
|
});
|
|
41947
41966
|
injectCss5();
|
|
41948
41967
|
var gap_spacer_styles_default = {
|
|
41949
|
-
"gapSpacerViewer": "
|
|
41950
|
-
"collapsed": "
|
|
41951
|
-
"betweenFloated": "
|
|
41968
|
+
"gapSpacerViewer": "Z-Y22",
|
|
41969
|
+
"collapsed": "_89pVJ",
|
|
41970
|
+
"betweenFloated": "i8d2F"};
|
|
41952
41971
|
|
|
41953
41972
|
// ../../node_modules/@wix/ricos/dist/es/ricos-viewer-next/ContentViewer/components/gap-spacer.js
|
|
41954
41973
|
var GapSpacer = ({
|
|
@@ -42426,7 +42445,8 @@ var ContentViewer = (props2) => {
|
|
|
42426
42445
|
nodeViewRenderers,
|
|
42427
42446
|
nodeViewDecorators: nodeViewDecorators2,
|
|
42428
42447
|
experiments = {},
|
|
42429
|
-
t
|
|
42448
|
+
t,
|
|
42449
|
+
responsiveBehavior
|
|
42430
42450
|
} = props2;
|
|
42431
42451
|
const [minHeight, setMinHeight] = useState(void 0);
|
|
42432
42452
|
const viewerRef = useRef(null);
|
|
@@ -42486,7 +42506,8 @@ var ContentViewer = (props2) => {
|
|
|
42486
42506
|
onMouseOver,
|
|
42487
42507
|
ref: handleRef,
|
|
42488
42508
|
...dataId,
|
|
42489
|
-
...fontModeAttributes
|
|
42509
|
+
...fontModeAttributes,
|
|
42510
|
+
...buildResponsiveAttributes(responsiveBehavior)
|
|
42490
42511
|
},
|
|
42491
42512
|
props2.devTools,
|
|
42492
42513
|
/* @__PURE__ */ React172.createElement(
|
|
@@ -44622,6 +44643,7 @@ var BannerPosition;
|
|
|
44622
44643
|
(function(BannerPosition3) {
|
|
44623
44644
|
BannerPosition3["TOP"] = "TOP";
|
|
44624
44645
|
BannerPosition3["BOTTOM"] = "BOTTOM";
|
|
44646
|
+
BannerPosition3["PAYWALL"] = "PAYWALL";
|
|
44625
44647
|
})(BannerPosition || (BannerPosition = {}));
|
|
44626
44648
|
var DesignTarget;
|
|
44627
44649
|
(function(DesignTarget3) {
|
|
@@ -45506,6 +45528,7 @@ var BannerPosition2;
|
|
|
45506
45528
|
(function(BannerPosition3) {
|
|
45507
45529
|
BannerPosition3["TOP"] = "TOP";
|
|
45508
45530
|
BannerPosition3["BOTTOM"] = "BOTTOM";
|
|
45531
|
+
BannerPosition3["PAYWALL"] = "PAYWALL";
|
|
45509
45532
|
})(BannerPosition2 || (BannerPosition2 = {}));
|
|
45510
45533
|
var DesignTarget2;
|
|
45511
45534
|
(function(DesignTarget3) {
|
|
@@ -53711,6 +53734,49 @@ var DatePickerTriggerButton = /* @__PURE__ */ forwardRef((props2, ref) => {
|
|
|
53711
53734
|
onPress: handlePress
|
|
53712
53735
|
});
|
|
53713
53736
|
});
|
|
53737
|
+
var DROPDOWN_FIELD_TYPES = [
|
|
53738
|
+
FIELD_TYPES.DROPDOWN,
|
|
53739
|
+
FIELD_TYPES.DEXT_DROPDOWN,
|
|
53740
|
+
FIELD_TYPES.SERVICES_DROPDOWN,
|
|
53741
|
+
FIELD_TYPES.DATE_INPUT,
|
|
53742
|
+
FIELD_TYPES.CONTACTS_BIRTHDATE,
|
|
53743
|
+
FIELD_TYPES.DATE_TIME_INPUT,
|
|
53744
|
+
FIELD_TYPES.DEXT_DATE_TIME_INPUT
|
|
53745
|
+
];
|
|
53746
|
+
var PHONE_FIELD_TYPES = [
|
|
53747
|
+
FIELD_TYPES.PHONE,
|
|
53748
|
+
FIELD_TYPES.CONTACTS_PHONE,
|
|
53749
|
+
FIELD_TYPES.BOOKINGS_PHONE,
|
|
53750
|
+
FIELD_TYPES.DEXT_PHONE
|
|
53751
|
+
];
|
|
53752
|
+
var ADDRESS_FIELD_TYPES = [
|
|
53753
|
+
FIELD_TYPES.MULTILINE_ADDRESS,
|
|
53754
|
+
FIELD_TYPES.BOOKINGS_ADDRESS,
|
|
53755
|
+
FIELD_TYPES.ECOM_ADDRESS
|
|
53756
|
+
];
|
|
53757
|
+
var hasCountryOptions = ({ properties }) => properties.validation?.string?.phoneOptions?.allowedCountryCodes?.length !== 1;
|
|
53758
|
+
var showsCountry = ({ properties }) => properties.fieldSettings?.country?.show !== false;
|
|
53759
|
+
var hasDropdown = (field, isMobile2) => {
|
|
53760
|
+
if (PHONE_FIELD_TYPES.includes(field.fieldType)) {
|
|
53761
|
+
return !isMobile2 && hasCountryOptions(field);
|
|
53762
|
+
}
|
|
53763
|
+
if (ADDRESS_FIELD_TYPES.includes(field.fieldType)) {
|
|
53764
|
+
return showsCountry(field);
|
|
53765
|
+
}
|
|
53766
|
+
return DROPDOWN_FIELD_TYPES.includes(field.fieldType);
|
|
53767
|
+
};
|
|
53768
|
+
var isOpenableDropdown = (field, isMobile2) => hasDropdown(field, isMobile2) && !field.properties.hidden && !field.properties.disabled && !field.properties.readOnly;
|
|
53769
|
+
var byLayoutPosition = (first2, second) => first2.layout.row - second.layout.row || first2.layout.column - second.layout.column;
|
|
53770
|
+
var useIsForcedOpenDropdown = (fieldId) => {
|
|
53771
|
+
const isOpenState = useElementProps().dropdown?.open === true;
|
|
53772
|
+
const formView = useContext(FormViewContext);
|
|
53773
|
+
const { isMobile: isMobile2 = false } = useConfig();
|
|
53774
|
+
const firstDropdownId = useMemo(() => formView && !formView.parentId ? formView.fields.filter((field) => isOpenableDropdown(field, isMobile2)).sort(byLayoutPosition)[0]?.id : void 0, [
|
|
53775
|
+
formView,
|
|
53776
|
+
isMobile2
|
|
53777
|
+
]);
|
|
53778
|
+
return isOpenState && firstDropdownId === fieldId;
|
|
53779
|
+
};
|
|
53714
53780
|
|
|
53715
53781
|
// ../form-fields/dist/esm/ui/date-input-field/date-input-field-headless.js
|
|
53716
53782
|
var DateInput = ({ children, className }) => {
|
|
@@ -53746,11 +53812,12 @@ var DateInput = ({ children, className }) => {
|
|
|
53746
53812
|
});
|
|
53747
53813
|
};
|
|
53748
53814
|
var Month = ({ children, className }) => {
|
|
53749
|
-
const { disabled, readOnly, showDateLabels, hidePlaceholder } = useFieldPropsV2();
|
|
53815
|
+
const { id: id6, disabled, readOnly, showDateLabels, hidePlaceholder } = useFieldPropsV2();
|
|
53750
53816
|
const { labelId } = useDateFieldAttributes(SupportedDateParts.MONTH);
|
|
53751
53817
|
const { partValue, partError, onPartChange } = useDatePart(SupportedDateParts.MONTH);
|
|
53752
53818
|
const { t } = useTranslation2();
|
|
53753
53819
|
const [isOpen, setIsOpen] = useState(false);
|
|
53820
|
+
const isForcedOpen = useIsForcedOpenDropdown(id6);
|
|
53754
53821
|
const [container, setContainer] = useState(null);
|
|
53755
53822
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.month");
|
|
53756
53823
|
const handleMonthChange = useCallback((selectedValue) => {
|
|
@@ -53787,9 +53854,11 @@ var Month = ({ children, className }) => {
|
|
|
53787
53854
|
isDisabled: disabled,
|
|
53788
53855
|
isInvalid: partError,
|
|
53789
53856
|
placeholder,
|
|
53790
|
-
isOpen,
|
|
53791
|
-
onOpenChange: handleOpenChange
|
|
53792
|
-
}, triggerElement, optionsElement
|
|
53857
|
+
isOpen: isForcedOpen || isOpen,
|
|
53858
|
+
onOpenChange: isForcedOpen ? void 0 : handleOpenChange
|
|
53859
|
+
}, triggerElement, applyInternalProps(optionsElement, {
|
|
53860
|
+
isForcedOpen
|
|
53861
|
+
}))));
|
|
53793
53862
|
};
|
|
53794
53863
|
var MonthLabel = ({ className }) => {
|
|
53795
53864
|
return /* @__PURE__ */ React172.createElement(DateLabel, {
|
|
@@ -53816,7 +53885,8 @@ var MonthTrigger = ({ children, className }) => {
|
|
|
53816
53885
|
"data-readonly": readOnly || void 0
|
|
53817
53886
|
}, /* @__PURE__ */ React172.createElement(SelectValue, null), children);
|
|
53818
53887
|
};
|
|
53819
|
-
var MonthOptions = ({ children, className }) => {
|
|
53888
|
+
var MonthOptions = ({ children, className, ...internal }) => {
|
|
53889
|
+
const { isForcedOpen } = internal;
|
|
53820
53890
|
const { language } = useConfig();
|
|
53821
53891
|
const months = useMemo(() => getMonthList(language), [
|
|
53822
53892
|
language
|
|
@@ -53826,7 +53896,9 @@ var MonthOptions = ({ children, className }) => {
|
|
|
53826
53896
|
className,
|
|
53827
53897
|
containerPadding: 0,
|
|
53828
53898
|
offset: 0
|
|
53829
|
-
}, /* @__PURE__ */ React172.createElement(ListBox,
|
|
53899
|
+
}, /* @__PURE__ */ React172.createElement(ListBox, {
|
|
53900
|
+
autoFocus: isForcedOpen ? false : void 0
|
|
53901
|
+
}, months.map((month, index2) => applyInternalProps(optionElement, {
|
|
53830
53902
|
key: String(index2 + 1),
|
|
53831
53903
|
value: String(index2 + 1),
|
|
53832
53904
|
label: month
|
|
@@ -54326,11 +54398,12 @@ var DateTimeInput = ({ children, className }) => {
|
|
|
54326
54398
|
});
|
|
54327
54399
|
};
|
|
54328
54400
|
var Month2 = ({ children, className }) => {
|
|
54329
|
-
const { disabled, readOnly, showDateLabels, hidePlaceholder } = useFieldPropsV2();
|
|
54401
|
+
const { id: id6, disabled, readOnly, showDateLabels, hidePlaceholder } = useFieldPropsV2();
|
|
54330
54402
|
const { labelId } = useDateTimeFieldAttributes(SupportedDateParts.MONTH);
|
|
54331
54403
|
const { partValue, partError, onPartChange } = useFieldPart(SupportedDateParts.MONTH);
|
|
54332
54404
|
const { t } = useTranslation2();
|
|
54333
54405
|
const [isOpen, setIsOpen] = useState(false);
|
|
54406
|
+
const isForcedOpen = useIsForcedOpenDropdown(id6);
|
|
54334
54407
|
const [container, setContainer] = useState(null);
|
|
54335
54408
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.month");
|
|
54336
54409
|
const handleMonthChange = useCallback((selectedValue) => {
|
|
@@ -54367,9 +54440,11 @@ var Month2 = ({ children, className }) => {
|
|
|
54367
54440
|
isDisabled: disabled,
|
|
54368
54441
|
isInvalid: partError,
|
|
54369
54442
|
placeholder,
|
|
54370
|
-
isOpen,
|
|
54371
|
-
onOpenChange: handleOpenChange
|
|
54372
|
-
}, triggerElement, optionsElement
|
|
54443
|
+
isOpen: isForcedOpen || isOpen,
|
|
54444
|
+
onOpenChange: isForcedOpen ? void 0 : handleOpenChange
|
|
54445
|
+
}, triggerElement, applyInternalProps(optionsElement, {
|
|
54446
|
+
isForcedOpen
|
|
54447
|
+
}))));
|
|
54373
54448
|
};
|
|
54374
54449
|
var MonthLabel2 = ({ className }) => {
|
|
54375
54450
|
return /* @__PURE__ */ React172.createElement(DateTimeLabel, {
|
|
@@ -54396,7 +54471,8 @@ var MonthTrigger3 = ({ children, className }) => {
|
|
|
54396
54471
|
"data-readonly": readOnly || void 0
|
|
54397
54472
|
}, /* @__PURE__ */ React172.createElement(SelectValue, null), children);
|
|
54398
54473
|
};
|
|
54399
|
-
var MonthOptions2 = ({ children, className }) => {
|
|
54474
|
+
var MonthOptions2 = ({ children, className, ...internal }) => {
|
|
54475
|
+
const { isForcedOpen } = internal;
|
|
54400
54476
|
const { language } = useConfig();
|
|
54401
54477
|
const months = useMemo(() => getMonthList(language), [
|
|
54402
54478
|
language
|
|
@@ -54406,7 +54482,9 @@ var MonthOptions2 = ({ children, className }) => {
|
|
|
54406
54482
|
className,
|
|
54407
54483
|
containerPadding: 0,
|
|
54408
54484
|
offset: 0
|
|
54409
|
-
}, /* @__PURE__ */ React172.createElement(ListBox,
|
|
54485
|
+
}, /* @__PURE__ */ React172.createElement(ListBox, {
|
|
54486
|
+
autoFocus: isForcedOpen ? false : void 0
|
|
54487
|
+
}, months.map((month, index2) => applyInternalProps(optionElement, {
|
|
54410
54488
|
key: String(index2 + 1),
|
|
54411
54489
|
value: String(index2 + 1),
|
|
54412
54490
|
label: month
|
|
@@ -55144,23 +55222,6 @@ Donation.Options = Options2;
|
|
|
55144
55222
|
Donation.OtherInput = OtherInput2;
|
|
55145
55223
|
Donation.Description = Description;
|
|
55146
55224
|
Donation.Error = Error2;
|
|
55147
|
-
var DROPDOWN_FIELD_TYPES = [
|
|
55148
|
-
FIELD_TYPES.DROPDOWN,
|
|
55149
|
-
FIELD_TYPES.DEXT_DROPDOWN,
|
|
55150
|
-
FIELD_TYPES.SERVICES_DROPDOWN
|
|
55151
|
-
];
|
|
55152
|
-
var isOpenableDropdown = ({ fieldType, properties }) => DROPDOWN_FIELD_TYPES.includes(fieldType) && !properties.hidden && !properties.disabled && !properties.readOnly;
|
|
55153
|
-
var byLayoutPosition = (first2, second) => first2.layout.row - second.layout.row || first2.layout.column - second.layout.column;
|
|
55154
|
-
var useIsForcedOpenDropdown = (fieldId) => {
|
|
55155
|
-
const isOpenState = useElementProps().dropdown?.open === true;
|
|
55156
|
-
const formView = useContext(FormViewContext);
|
|
55157
|
-
const firstDropdownId = useMemo(() => formView && !formView.parentId ? formView.fields.filter(isOpenableDropdown).sort(byLayoutPosition)[0]?.id : void 0, [
|
|
55158
|
-
formView
|
|
55159
|
-
]);
|
|
55160
|
-
return isOpenState && firstDropdownId === fieldId;
|
|
55161
|
-
};
|
|
55162
|
-
|
|
55163
|
-
// ../form-fields/dist/esm/ui/dropdown-field/dropdown-field-headless.js
|
|
55164
55225
|
var Dropdown = ({ children }) => {
|
|
55165
55226
|
const { id: id6, value, defaultValue, options = [], readOnly, onChange, placeholder, disabled, required, onBlur, onFocus, FieldLayout, hasError } = useFieldPropsV2();
|
|
55166
55227
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -57743,6 +57804,26 @@ City.Error = Error2;
|
|
|
57743
57804
|
|
|
57744
57805
|
// ../form-fields/dist/esm/ui/multiline-address-field/headless/country-field-headless.js
|
|
57745
57806
|
init_esm2();
|
|
57807
|
+
var KeepComboBoxOpen = ({ isOpen }) => {
|
|
57808
|
+
const state = useContext(ComboBoxStateContext);
|
|
57809
|
+
const wasOpen = useRef(false);
|
|
57810
|
+
useEffect(() => {
|
|
57811
|
+
if (isOpen && state && !state.isOpen) {
|
|
57812
|
+
state.open(null, "manual");
|
|
57813
|
+
}
|
|
57814
|
+
if (isOpen && state?.selectionManager.focusedKey != null) {
|
|
57815
|
+
state.selectionManager.setFocusedKey(null);
|
|
57816
|
+
}
|
|
57817
|
+
if (!isOpen && wasOpen.current) {
|
|
57818
|
+
state?.close();
|
|
57819
|
+
}
|
|
57820
|
+
wasOpen.current = isOpen;
|
|
57821
|
+
}, [
|
|
57822
|
+
isOpen,
|
|
57823
|
+
state
|
|
57824
|
+
]);
|
|
57825
|
+
return null;
|
|
57826
|
+
};
|
|
57746
57827
|
var useOpenOnClick = ({ readOnly, disabled } = {}) => {
|
|
57747
57828
|
const state = useContext(ComboBoxStateContext);
|
|
57748
57829
|
return useCallback(() => {
|
|
@@ -57828,7 +57909,8 @@ var useOptionComboBox = ({ options, value, commit, clear, onBlur }) => {
|
|
|
57828
57909
|
};
|
|
57829
57910
|
|
|
57830
57911
|
// ../form-fields/dist/esm/ui/multiline-address-field/headless/country-field-headless.js
|
|
57831
|
-
var Country = ({ children }) => {
|
|
57912
|
+
var Country = ({ children, ...internal }) => {
|
|
57913
|
+
const { isForcedOpen = false } = internal;
|
|
57832
57914
|
const { id: id6, value, onChange, disabled, readOnly, required, hasError, onBlur, onFocus, FieldLayout, options } = useFieldPropsV2();
|
|
57833
57915
|
const { labelId } = useFieldAttributes();
|
|
57834
57916
|
const { t } = useTranslation2();
|
|
@@ -57883,6 +57965,8 @@ var Country = ({ children }) => {
|
|
|
57883
57965
|
onKeyDown: onInputKeyDown
|
|
57884
57966
|
}), applyInternalProps(optionsElement, {
|
|
57885
57967
|
options: countryOptions
|
|
57968
|
+
}), /* @__PURE__ */ React172.createElement(KeepComboBoxOpen, {
|
|
57969
|
+
isOpen: isForcedOpen
|
|
57886
57970
|
})),
|
|
57887
57971
|
renderDescription: () => /* @__PURE__ */ React172.createElement(React172.Fragment, null, errorElement, descriptionElement)
|
|
57888
57972
|
});
|
|
@@ -58665,7 +58749,10 @@ var MultilineAddress = ({ children }) => {
|
|
|
58665
58749
|
const field = form?.fields?.find((f) => "target" in f && f.target === firstError?.errorPath);
|
|
58666
58750
|
return field?.id;
|
|
58667
58751
|
});
|
|
58668
|
-
const
|
|
58752
|
+
const isForcedOpen = useIsForcedOpenDropdown(id6);
|
|
58753
|
+
const countryElement = applyInternalProps(findChildOfType(children, MultilineAddress.Country), {
|
|
58754
|
+
isForcedOpen
|
|
58755
|
+
});
|
|
58669
58756
|
const subdivisionElement = findChildOfType(children, MultilineAddress.Subdivision);
|
|
58670
58757
|
const cityElement = findChildOfType(children, MultilineAddress.City);
|
|
58671
58758
|
const addressLineElement = findChildOfType(children, MultilineAddress.AddressLine);
|
|
@@ -59187,10 +59274,12 @@ var CountryButtonEmptyState = ({ children, className }) => {
|
|
|
59187
59274
|
CountryButton.Flag = CountryButtonFlag;
|
|
59188
59275
|
CountryButton.EmptyState = CountryButtonEmptyState;
|
|
59189
59276
|
var CountryOptions = ({ children, className, "aria-label": ariaLabel, placement, offset, ...internal }) => {
|
|
59190
|
-
const { triggerRef, optionsRef } = internal;
|
|
59277
|
+
const { triggerRef, optionsRef, isForcedOpen } = internal;
|
|
59191
59278
|
const { popoverContainer } = usePhoneInputContext();
|
|
59192
59279
|
const searchElement = findChildOfType(children, CountryOptions.Search);
|
|
59193
|
-
const content = /* @__PURE__ */ React172.createElement(CountryOptionsContent,
|
|
59280
|
+
const content = /* @__PURE__ */ React172.createElement(CountryOptionsContent, {
|
|
59281
|
+
isForcedOpen
|
|
59282
|
+
}, children);
|
|
59194
59283
|
return /* @__PURE__ */ React172.createElement($72abaeab4d80592f$export$78efe591171d7d45, {
|
|
59195
59284
|
getContainer: () => popoverContainer
|
|
59196
59285
|
}, /* @__PURE__ */ React172.createElement(NonModalPopover, {
|
|
@@ -59200,7 +59289,7 @@ var CountryOptions = ({ children, className, "aria-label": ariaLabel, placement,
|
|
|
59200
59289
|
placement,
|
|
59201
59290
|
offset,
|
|
59202
59291
|
containerPadding: 0
|
|
59203
|
-
}, searchElement ? /* @__PURE__ */ React172.createElement(Dialog, {
|
|
59292
|
+
}, searchElement && !isForcedOpen ? /* @__PURE__ */ React172.createElement(Dialog, {
|
|
59204
59293
|
"aria-label": ariaLabel
|
|
59205
59294
|
}, content) : content));
|
|
59206
59295
|
};
|
|
@@ -59230,7 +59319,7 @@ var CountryOptionsModal = ({ children, className, overlayClassName, "aria-label"
|
|
|
59230
59319
|
}
|
|
59231
59320
|
}, children)))));
|
|
59232
59321
|
};
|
|
59233
|
-
var CountryOptionsContent = ({ children, listBoxProps }) => {
|
|
59322
|
+
var CountryOptionsContent = ({ children, listBoxProps, isForcedOpen }) => {
|
|
59234
59323
|
const { countries } = usePhoneInputContext();
|
|
59235
59324
|
const optionElement = findChildOfType(children, CountryOptions.Option);
|
|
59236
59325
|
const searchElement = findChildOfType(children, CountryOptions.Search);
|
|
@@ -59253,16 +59342,20 @@ var CountryOptionsContent = ({ children, listBoxProps }) => {
|
|
|
59253
59342
|
const country = countries.find((item) => item.shortCountryCode === node.key);
|
|
59254
59343
|
return !!country && isCountryMatching(country, query);
|
|
59255
59344
|
}
|
|
59256
|
-
}, searchElement,
|
|
59345
|
+
}, isForcedOpen ? applyInternalProps(searchElement, {
|
|
59346
|
+
autoFocus: false
|
|
59347
|
+
}) : searchElement, listbox) : listbox;
|
|
59257
59348
|
};
|
|
59258
59349
|
CountryOptions.Popover = CountryOptions;
|
|
59259
59350
|
CountryOptions.Modal = CountryOptionsModal;
|
|
59260
|
-
var CountrySearch = ({ className, children, "aria-label": ariaLabel }) => {
|
|
59351
|
+
var CountrySearch = ({ className, children, "aria-label": ariaLabel, ...internal }) => {
|
|
59352
|
+
const { autoFocus = true } = internal;
|
|
59261
59353
|
return /* @__PURE__ */ React172.createElement(SearchField, {
|
|
59262
|
-
className,
|
|
59263
59354
|
"aria-label": ariaLabel,
|
|
59264
|
-
autoFocus
|
|
59265
|
-
},
|
|
59355
|
+
autoFocus
|
|
59356
|
+
}, /* @__PURE__ */ React172.createElement(Group, {
|
|
59357
|
+
className
|
|
59358
|
+
}, children));
|
|
59266
59359
|
};
|
|
59267
59360
|
var CountrySearchInput = ({ className, placeholder }) => /* @__PURE__ */ React172.createElement(Input, {
|
|
59268
59361
|
className,
|
|
@@ -59345,7 +59438,8 @@ var Control7 = ({ children, className }) => {
|
|
|
59345
59438
|
const controlRef = useRef(null);
|
|
59346
59439
|
const optionsRef = useRef(null);
|
|
59347
59440
|
const isFocused = useRef(false);
|
|
59348
|
-
const { disabled, readOnly, required, hasError, showFlag, onFocus, onBlur } = useFieldPropsV2();
|
|
59441
|
+
const { id: id6, disabled, readOnly, required, hasError, showFlag, onFocus, onBlur } = useFieldPropsV2();
|
|
59442
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
59349
59443
|
const invokeBlur = useInvokeCallback(onBlur);
|
|
59350
59444
|
const { t } = useTranslation2();
|
|
59351
59445
|
const { selectedCountryCode, handleCountryCodeChange, countries } = usePhoneInputContext();
|
|
@@ -59353,6 +59447,11 @@ var Control7 = ({ children, className }) => {
|
|
|
59353
59447
|
const modalElement = findChildOfType(children, PhoneInput.CountryOptions.Modal);
|
|
59354
59448
|
const countryOptionsElement = modalElement ?? findChildOfType(children, PhoneInput.CountryOptions.Popover);
|
|
59355
59449
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
59450
|
+
const hasCountryOptions2 = countries.length > 1;
|
|
59451
|
+
const isForcedOpen = useIsForcedOpenDropdown(id6) && !modalElement && hasCountryOptions2;
|
|
59452
|
+
const controlClassName = typeof className === "function" ? className({
|
|
59453
|
+
hasCountryOptions: hasCountryOptions2
|
|
59454
|
+
}) : className;
|
|
59356
59455
|
const focusHandlers = {
|
|
59357
59456
|
onFocus: () => {
|
|
59358
59457
|
if (!isFocused.current) {
|
|
@@ -59371,7 +59470,7 @@ var Control7 = ({ children, className }) => {
|
|
|
59371
59470
|
if (countries.length === 1) {
|
|
59372
59471
|
return /* @__PURE__ */ React172.createElement(Group, {
|
|
59373
59472
|
ref: controlRef,
|
|
59374
|
-
className,
|
|
59473
|
+
className: controlClassName,
|
|
59375
59474
|
isDisabled: disabled,
|
|
59376
59475
|
isInvalid: hasError,
|
|
59377
59476
|
...focusHandlers
|
|
@@ -59381,11 +59480,12 @@ var Control7 = ({ children, className }) => {
|
|
|
59381
59480
|
}
|
|
59382
59481
|
const selector = /* @__PURE__ */ React172.createElement(React172.Fragment, null, countryButtonElement, applyInternalProps(countryOptionsElement, {
|
|
59383
59482
|
triggerRef: controlRef,
|
|
59384
|
-
optionsRef
|
|
59483
|
+
optionsRef,
|
|
59484
|
+
isForcedOpen
|
|
59385
59485
|
}));
|
|
59386
59486
|
return /* @__PURE__ */ React172.createElement(Group, {
|
|
59387
59487
|
ref: controlRef,
|
|
59388
|
-
className,
|
|
59488
|
+
className: controlClassName,
|
|
59389
59489
|
isDisabled: disabled,
|
|
59390
59490
|
isInvalid: hasError,
|
|
59391
59491
|
...focusHandlers
|
|
@@ -59396,7 +59496,9 @@ var Control7 = ({ children, className }) => {
|
|
|
59396
59496
|
isDisabled: disabled || readOnly,
|
|
59397
59497
|
isInvalid: hasError,
|
|
59398
59498
|
isRequired: required,
|
|
59399
|
-
placeholder: ""
|
|
59499
|
+
placeholder: "",
|
|
59500
|
+
isOpen: isForcedOpen || isOpen && !disabled && !readOnly,
|
|
59501
|
+
onOpenChange: isForcedOpen ? void 0 : setIsOpen
|
|
59400
59502
|
}, selector), phoneNumberElement);
|
|
59401
59503
|
};
|
|
59402
59504
|
PhoneInput.Label = Label;
|