@bigbinary/neeto-rules-frontend 2.3.1 → 2.4.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/README.md +342 -151
- package/app/javascript/src/translations/en.json +15 -2
- package/dist/NeetoRules.js +106 -9161
- package/dist/NeetoRules.js.map +1 -1
- package/dist/NeetoRulesForm.js +86 -559
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +31 -7
- package/dist/RulePreview.js.map +1 -1
- package/dist/cjs/NeetoRules.js +154 -9225
- package/dist/cjs/NeetoRules.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +336 -800
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/RulePreview.js +42 -15
- package/dist/cjs/RulePreview.js.map +1 -1
- package/dist/cjs/index.js +408 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +396 -18
- package/dist/index.js.map +1 -1
- package/dist/useUtilityStore-e4b36ba2.js.map +1 -1
- package/dist/useUtilityStore-ee4f96f8.js.map +1 -1
- package/dist/utils-866e8e3b.js +23 -0
- package/dist/utils-866e8e3b.js.map +1 -0
- package/dist/utils-cd8f199f.js +26 -0
- package/dist/utils-cd8f199f.js.map +1 -0
- package/package.json +103 -83
- package/types.d.ts +39 -0
- package/dist/toConsumableArray-71e2b184.js +0 -58
- package/dist/toConsumableArray-71e2b184.js.map +0 -1
- package/dist/toConsumableArray-ee25f277.js +0 -53
- package/dist/toConsumableArray-ee25f277.js.map +0 -1
- package/dist/utils-249a1c9a.js +0 -119
- package/dist/utils-249a1c9a.js.map +0 -1
- package/dist/utils-ca50bfc9.js +0 -129
- package/dist/utils-ca50bfc9.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-rules-frontend",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-rules-nano",
|
|
@@ -52,27 +52,28 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@babel/core": "7.
|
|
56
|
-
"@babel/eslint-parser": "7.
|
|
57
|
-
"@babel/plugin-transform-runtime": "7.
|
|
58
|
-
"@babel/preset-env": "7.
|
|
59
|
-
"@babel/preset-react": "7.
|
|
60
|
-
"@babel/preset-typescript": "7.
|
|
61
|
-
"@babel/runtime": "7.
|
|
62
|
-
"@bigbinary/babel-preset-neeto": "1.0.
|
|
63
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
64
|
-
"@bigbinary/neeto-
|
|
65
|
-
"@bigbinary/neeto-
|
|
66
|
-
"@bigbinary/neeto-
|
|
55
|
+
"@babel/core": "^7.19.1",
|
|
56
|
+
"@babel/eslint-parser": "7.17.0",
|
|
57
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
58
|
+
"@babel/preset-env": "7.17.10",
|
|
59
|
+
"@babel/preset-react": "7.16.7",
|
|
60
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
61
|
+
"@babel/runtime": "7.19.0",
|
|
62
|
+
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
63
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.4",
|
|
64
|
+
"@bigbinary/neeto-cist": "1.0.12",
|
|
65
|
+
"@bigbinary/neeto-commons-frontend": "4.6.3",
|
|
66
|
+
"@bigbinary/neeto-editor": "1.43.2",
|
|
67
67
|
"@bigbinary/neeto-filters-frontend": "4.3.4",
|
|
68
|
-
"@bigbinary/neeto-hotkeys": "
|
|
69
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
70
|
-
"@bigbinary/neeto-molecules": "3.
|
|
71
|
-
"@bigbinary/neetoui": "8.2.
|
|
68
|
+
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
69
|
+
"@bigbinary/neeto-icons": "1.20.7",
|
|
70
|
+
"@bigbinary/neeto-molecules": "3.7.7",
|
|
71
|
+
"@bigbinary/neetoui": "8.2.18",
|
|
72
72
|
"@emotion/is-prop-valid": "1.2.0",
|
|
73
73
|
"@faker-js/faker": "8.2.0",
|
|
74
|
-
"@
|
|
75
|
-
"@honeybadger-io/
|
|
74
|
+
"@hello-pangea/dnd": "16.3.0",
|
|
75
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
76
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
76
77
|
"@rollup/plugin-alias": "5.0.1",
|
|
77
78
|
"@rollup/plugin-babel": "6.0.4",
|
|
78
79
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
@@ -82,67 +83,67 @@
|
|
|
82
83
|
"@svgr/rollup": "8.1.0",
|
|
83
84
|
"@tanstack/react-query": "5.40.0",
|
|
84
85
|
"@tanstack/react-query-devtools": "5.40.0",
|
|
85
|
-
"antd": "5.
|
|
86
|
-
"autoprefixer": "10.4.
|
|
86
|
+
"antd": "5.16.0",
|
|
87
|
+
"autoprefixer": "^10.4.5",
|
|
87
88
|
"axios": "1.7.4",
|
|
88
|
-
"babel-loader": "
|
|
89
|
-
"babel-plugin-istanbul": "6.1.1",
|
|
89
|
+
"babel-loader": "^8.2.5",
|
|
90
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
90
91
|
"babel-plugin-js-logger": "1.0.17",
|
|
91
92
|
"babel-plugin-macros": "3.1.0",
|
|
92
93
|
"babel-plugin-preval": "^5.1.0",
|
|
93
94
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
94
95
|
"babel-preset-react": "6.24.1",
|
|
95
|
-
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
96
|
+
"babel-preset-typescript": "^7.0.0-alpha.19",
|
|
96
97
|
"browserify-zlib": "0.2.0",
|
|
97
|
-
"buffer": "6.0.3",
|
|
98
|
-
"classnames": "2.3.
|
|
99
|
-
"crypto-browserify": "3.12.0",
|
|
98
|
+
"buffer": "^6.0.3",
|
|
99
|
+
"classnames": "2.3.1",
|
|
100
|
+
"crypto-browserify": "^3.12.0",
|
|
100
101
|
"css-loader": "6.8.1",
|
|
101
102
|
"dayjs": "1.11.10",
|
|
102
|
-
"dompurify": "
|
|
103
|
+
"dompurify": "^2.4.0",
|
|
103
104
|
"dotenv-webpack": "^8.0.1",
|
|
104
|
-
"eslint": "8.
|
|
105
|
+
"eslint": "8.14.0",
|
|
105
106
|
"eslint-config-prettier": "8.5.0",
|
|
106
|
-
"eslint-plugin-cypress": "2.
|
|
107
|
-
"eslint-plugin-import": "2.
|
|
107
|
+
"eslint-plugin-cypress": "2.12.1",
|
|
108
|
+
"eslint-plugin-import": "2.26.0",
|
|
108
109
|
"eslint-plugin-jam3": "0.2.3",
|
|
109
110
|
"eslint-plugin-json": "3.1.0",
|
|
110
111
|
"eslint-plugin-prettier": "4.0.0",
|
|
111
|
-
"eslint-plugin-promise": "6.
|
|
112
|
-
"eslint-plugin-react": "7.
|
|
113
|
-
"eslint-plugin-react-hooks": "4.
|
|
112
|
+
"eslint-plugin-promise": "6.0.0",
|
|
113
|
+
"eslint-plugin-react": "7.29.4",
|
|
114
|
+
"eslint-plugin-react-hooks": "4.5.0",
|
|
114
115
|
"eslint-plugin-security": "^1.7.1",
|
|
115
116
|
"eslint-plugin-sonarjs": "^0.21.0",
|
|
116
|
-
"eslint-plugin-unused-imports": "
|
|
117
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
117
118
|
"eslint-plugin-xss": "^0.1.12",
|
|
118
|
-
"formik": "2.
|
|
119
|
+
"formik": "2.2.9",
|
|
119
120
|
"html-webpack-plugin": "5.5.3",
|
|
120
121
|
"https-browserify": "1.0.0",
|
|
121
|
-
"husky": "
|
|
122
|
-
"i18next": "
|
|
122
|
+
"husky": "7.0.4",
|
|
123
|
+
"i18next": "22.5.1",
|
|
123
124
|
"i18next-browser-languagedetector": "7.0.1",
|
|
124
125
|
"js-logger": "1.6.1",
|
|
125
|
-
"lint-staged": "
|
|
126
|
+
"lint-staged": "12.4.1",
|
|
126
127
|
"mini-css-extract-plugin": "2.7.6",
|
|
127
128
|
"mixpanel-browser": "2.47.0",
|
|
128
129
|
"os-browserify": "0.3.0",
|
|
129
|
-
"path-browserify": "1.0.1",
|
|
130
|
-
"postcss": "8.4.31",
|
|
131
|
-
"postcss-import": "15.
|
|
132
|
-
"postcss-loader": "7.
|
|
133
|
-
"postcss-preset-env": "
|
|
130
|
+
"path-browserify": "^1.0.1",
|
|
131
|
+
"postcss": "^8.4.31",
|
|
132
|
+
"postcss-import": "^15.0.0",
|
|
133
|
+
"postcss-loader": "^7.0.1",
|
|
134
|
+
"postcss-preset-env": "7.8.2",
|
|
134
135
|
"prettier": "2.6.2",
|
|
135
136
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
136
137
|
"process": "0.11.10",
|
|
137
|
-
"qs": "6.11.2",
|
|
138
|
-
"ramda": "0.29.
|
|
138
|
+
"qs": "^6.11.2",
|
|
139
|
+
"ramda": "0.29.0",
|
|
139
140
|
"react": "18.2.0",
|
|
140
141
|
"react-dom": "18.2.0",
|
|
141
|
-
"react-helmet": "6.1.0",
|
|
142
|
-
"react-i18next": "
|
|
143
|
-
"react-router-dom": "5.3.
|
|
142
|
+
"react-helmet": "^6.1.0",
|
|
143
|
+
"react-i18next": "12.3.1",
|
|
144
|
+
"react-router-dom": "5.3.3",
|
|
144
145
|
"react-select": "5.6.0",
|
|
145
|
-
"react-toastify": "8.2
|
|
146
|
+
"react-toastify": "8.0.2",
|
|
146
147
|
"react_ujs": "^3.1.1",
|
|
147
148
|
"rollup": "2.79.1",
|
|
148
149
|
"rollup-plugin-analyzer": "4.0.0",
|
|
@@ -150,56 +151,78 @@
|
|
|
150
151
|
"rollup-plugin-copy": "^3.5.0",
|
|
151
152
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
152
153
|
"rollup-plugin-styles": "4.0.0",
|
|
153
|
-
"sass": "1.
|
|
154
|
-
"sass-loader": "13.
|
|
154
|
+
"sass": "^1.54.9",
|
|
155
|
+
"sass-loader": "^13.0.2",
|
|
155
156
|
"shakapacker": "6.6.0",
|
|
156
|
-
"
|
|
157
|
+
"source-map-loader": "4.0.1",
|
|
158
|
+
"stream-browserify": "^3.0.0",
|
|
157
159
|
"stream-http": "3.2.0",
|
|
158
|
-
"style-loader": "3.3.
|
|
159
|
-
"tailwindcss": "3.4.1",
|
|
160
|
+
"style-loader": "^3.3.1",
|
|
161
|
+
"tailwindcss": "^3.4.1",
|
|
160
162
|
"tty-browserify": "0.0.1",
|
|
161
|
-
"url": "0.11.
|
|
162
|
-
"util": "0.12.5",
|
|
163
|
+
"url": "^0.11.0",
|
|
164
|
+
"util": "^0.12.5",
|
|
163
165
|
"vm-browserify": "1.1.2",
|
|
164
166
|
"webpack": "5.94.0",
|
|
165
167
|
"webpack-assets-manifest": "5.1.0",
|
|
166
168
|
"webpack-cli": "5.1.4",
|
|
167
169
|
"webpack-dev-server": "4.15.1",
|
|
168
|
-
"yup": "
|
|
170
|
+
"yup": "0.32.11",
|
|
171
|
+
"zustand": "4.3.2"
|
|
169
172
|
},
|
|
170
173
|
"peerDependencies": {
|
|
171
|
-
"@
|
|
172
|
-
"@bigbinary/neeto-
|
|
173
|
-
"@bigbinary/neeto-
|
|
174
|
+
"@babel/runtime": "7.19.0",
|
|
175
|
+
"@bigbinary/neeto-cist": "1.0.12",
|
|
176
|
+
"@bigbinary/neeto-commons-frontend": "4.6.3",
|
|
177
|
+
"@bigbinary/neeto-editor": "1.43.2",
|
|
174
178
|
"@bigbinary/neeto-filters-frontend": "4.3.4",
|
|
175
|
-
"@bigbinary/neeto-hotkeys": "
|
|
176
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
177
|
-
"@bigbinary/neeto-molecules": "3.
|
|
178
|
-
"@bigbinary/neetoui": "8.2.
|
|
179
|
-
"@
|
|
180
|
-
"@honeybadger-io/
|
|
179
|
+
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
180
|
+
"@bigbinary/neeto-icons": "1.20.7",
|
|
181
|
+
"@bigbinary/neeto-molecules": "3.7.7",
|
|
182
|
+
"@bigbinary/neetoui": "8.2.18",
|
|
183
|
+
"@hello-pangea/dnd": "16.3.0",
|
|
184
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
185
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
181
186
|
"@tanstack/react-query": "5.40.0",
|
|
182
187
|
"@tanstack/react-query-devtools": "5.40.0",
|
|
188
|
+
"antd": "5.16.0",
|
|
183
189
|
"axios": "1.7.4",
|
|
184
|
-
"
|
|
190
|
+
"buffer": "^6.0.3",
|
|
191
|
+
"classnames": "2.3.1",
|
|
192
|
+
"crypto-browserify": "^3.12.0",
|
|
185
193
|
"dayjs": "1.11.10",
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
194
|
+
"dompurify": "^2.4.0",
|
|
195
|
+
"formik": "2.2.9",
|
|
196
|
+
"https-browserify": "1.0.0",
|
|
197
|
+
"i18next": "22.5.1",
|
|
198
|
+
"js-logger": "1.6.1",
|
|
189
199
|
"mixpanel-browser": "^2.45.0",
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
200
|
+
"os-browserify": "0.3.0",
|
|
201
|
+
"path-browserify": "^1.0.1",
|
|
202
|
+
"qs": "^6.11.2",
|
|
203
|
+
"ramda": "0.29.0",
|
|
204
|
+
"react": "18.2.0",
|
|
205
|
+
"react-dom": "18.2.0",
|
|
193
206
|
"react-helmet": "^6.1.0",
|
|
194
|
-
"react-i18next": "
|
|
195
|
-
"react-router-dom": "
|
|
207
|
+
"react-i18next": "12.3.1",
|
|
208
|
+
"react-router-dom": "5.3.3",
|
|
196
209
|
"react-select": "5.6.0",
|
|
197
|
-
"react-toastify": "
|
|
198
|
-
"
|
|
210
|
+
"react-toastify": "8.0.2",
|
|
211
|
+
"source-map-loader": "4.0.1",
|
|
212
|
+
"stream-browserify": "^3.0.0",
|
|
213
|
+
"stream-http": "3.2.0",
|
|
214
|
+
"tailwindcss": "^3.4.1",
|
|
215
|
+
"tty-browserify": "0.0.1",
|
|
216
|
+
"url": "^0.11.0",
|
|
217
|
+
"util": "^0.12.5",
|
|
218
|
+
"vm-browserify": "1.1.2",
|
|
219
|
+
"yup": "0.32.11",
|
|
199
220
|
"zustand": "4.3.2"
|
|
200
221
|
},
|
|
201
222
|
"resolutions": {
|
|
202
|
-
"postcss": "^8"
|
|
223
|
+
"postcss": "^8",
|
|
224
|
+
"wrap-ansi": "7.0.0",
|
|
225
|
+
"string-width": "4.1.0"
|
|
203
226
|
},
|
|
204
227
|
"engines": {
|
|
205
228
|
"node": ">=18.12",
|
|
@@ -207,10 +230,7 @@
|
|
|
207
230
|
"yarn": ">=1.22"
|
|
208
231
|
},
|
|
209
232
|
"dependencies": {
|
|
210
|
-
"@hello-pangea/dnd": "16.3.0",
|
|
211
233
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
212
|
-
"react-router-nav-prompt": "0.4.1"
|
|
213
|
-
"source-map-loader": "^4.0.1",
|
|
214
|
-
"zustand": "4.3.2"
|
|
234
|
+
"react-router-nav-prompt": "0.4.1"
|
|
215
235
|
}
|
|
216
236
|
}
|
package/types.d.ts
CHANGED
|
@@ -38,6 +38,30 @@ interface selectOptionsProps {
|
|
|
38
38
|
value: string;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
interface variableProps {
|
|
42
|
+
category: string;
|
|
43
|
+
label: string;
|
|
44
|
+
variables: { key: string; label: string }[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface actionNameOptionsProps {
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
type: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
variables?: variableProps[];
|
|
53
|
+
dropdownOptions?: array;
|
|
54
|
+
defaultData?: object;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface dropdownListProps {
|
|
58
|
+
tags?: array;
|
|
59
|
+
teams?: array;
|
|
60
|
+
members?: array;
|
|
61
|
+
fields?: array;
|
|
62
|
+
status?: array;
|
|
63
|
+
}
|
|
64
|
+
|
|
41
65
|
interface ActionsProps extends commonInputProps {
|
|
42
66
|
handleSlackChannelRefresh?: () => void;
|
|
43
67
|
selectedActionOptions?:
|
|
@@ -86,6 +110,7 @@ interface NeetoRulesProps {
|
|
|
86
110
|
className?: string;
|
|
87
111
|
handleSubmit?: () => void;
|
|
88
112
|
handleCancel?: () => void;
|
|
113
|
+
showStatusSwitch?: boolean;
|
|
89
114
|
}
|
|
90
115
|
|
|
91
116
|
interface RadioFieldProps extends commonInputProps, RadioProps {
|
|
@@ -130,3 +155,17 @@ export const useCustomDataStore: UseBoundStore<
|
|
|
130
155
|
setCustomDataState: () => void;
|
|
131
156
|
}>
|
|
132
157
|
>;
|
|
158
|
+
|
|
159
|
+
export const CannedResponsesPane: React.FC<{
|
|
160
|
+
actionNameOptions: actionNameOptionsProps[];
|
|
161
|
+
areDropdownListsLoading: boolean;
|
|
162
|
+
dropdownList: dropdownListProps;
|
|
163
|
+
isCannedResponsePaneOpen: boolean;
|
|
164
|
+
isLoadingPreview: boolean;
|
|
165
|
+
macros: array;
|
|
166
|
+
onApply: () => void;
|
|
167
|
+
onCancel: () => void;
|
|
168
|
+
previewCannedResponses: () => void;
|
|
169
|
+
previewParams: any;
|
|
170
|
+
variables?: variableProps[];
|
|
171
|
+
}>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var utils = require('./utils-ca50bfc9.js');
|
|
4
|
-
|
|
5
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
6
|
-
if (source == null) return {};
|
|
7
|
-
var target = {};
|
|
8
|
-
var sourceKeys = Object.keys(source);
|
|
9
|
-
var key, i;
|
|
10
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
11
|
-
key = sourceKeys[i];
|
|
12
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
return target;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function _objectWithoutProperties(source, excluded) {
|
|
19
|
-
if (source == null) return {};
|
|
20
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
21
|
-
var key, i;
|
|
22
|
-
if (Object.getOwnPropertySymbols) {
|
|
23
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
24
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
25
|
-
key = sourceSymbolKeys[i];
|
|
26
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
27
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
28
|
-
target[key] = source[key];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function getDefaultExportFromCjs (x) {
|
|
35
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function _arrayWithoutHoles(arr) {
|
|
39
|
-
if (Array.isArray(arr)) return utils._arrayLikeToArray(arr);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _iterableToArray(iter) {
|
|
43
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function _nonIterableSpread() {
|
|
47
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _toConsumableArray(arr) {
|
|
51
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || utils._unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
exports._iterableToArray = _iterableToArray;
|
|
55
|
-
exports._objectWithoutProperties = _objectWithoutProperties;
|
|
56
|
-
exports._toConsumableArray = _toConsumableArray;
|
|
57
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
58
|
-
//# sourceMappingURL=toConsumableArray-71e2b184.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toConsumableArray-71e2b184.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}"],"names":["objectWithoutPropertiesLoose","arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;;;AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS;AAC7C,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9B,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;ACVe,SAAS,wBAAwB,CAAC,MAAM,EAAE,QAAQ,EAAE;AACnE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAGA,6BAA4B,CAAC,MAA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CAAC,IAAIC,gBAAe,CAAC,GAAG,CAAC,IAAIC,iCAA0B,CAAC,GAAG,CAAC,IAAIC,kBAAiB,EAAE,CAAC;AAClH;;;;;;;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { h as _arrayLikeToArray, d as _unsupportedIterableToArray } from './utils-249a1c9a.js';
|
|
2
|
-
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
4
|
-
if (source == null) return {};
|
|
5
|
-
var target = {};
|
|
6
|
-
var sourceKeys = Object.keys(source);
|
|
7
|
-
var key, i;
|
|
8
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
9
|
-
key = sourceKeys[i];
|
|
10
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11
|
-
target[key] = source[key];
|
|
12
|
-
}
|
|
13
|
-
return target;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function _objectWithoutProperties(source, excluded) {
|
|
17
|
-
if (source == null) return {};
|
|
18
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
19
|
-
var key, i;
|
|
20
|
-
if (Object.getOwnPropertySymbols) {
|
|
21
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
22
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
23
|
-
key = sourceSymbolKeys[i];
|
|
24
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
25
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
26
|
-
target[key] = source[key];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return target;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function getDefaultExportFromCjs (x) {
|
|
33
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function _arrayWithoutHoles(arr) {
|
|
37
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _iterableToArray(iter) {
|
|
41
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function _nonIterableSpread() {
|
|
45
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _toConsumableArray(arr) {
|
|
49
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { _objectWithoutProperties as _, _toConsumableArray as a, _iterableToArray as b, getDefaultExportFromCjs as g };
|
|
53
|
-
//# sourceMappingURL=toConsumableArray-ee25f277.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toConsumableArray-ee25f277.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}"],"names":["objectWithoutPropertiesLoose","arrayLikeToArray","arrayWithoutHoles","iterableToArray","unsupportedIterableToArray","nonIterableSpread"],"mappings":";;AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OAAO,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,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5H;;ACFe,SAAS,kBAAkB,GAAG;AAC7C,EAAE,MAAM,IAAI,SAAS,CAAC,sIAAsI,CAAC,CAAC;AAC9J;;ACEe,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAChD,EAAE,OAAOC,kBAAiB,CAAC,GAAG,CAAC,IAAIC,gBAAe,CAAC,GAAG,CAAC,IAAIC,2BAA0B,CAAC,GAAG,CAAC,IAAIC,kBAAiB,EAAE,CAAC;AAClH;;;;"}
|
package/dist/utils-249a1c9a.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
function _typeof(o) {
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function (o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _toPrimitive(input, hint) {
|
|
12
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
13
|
-
var prim = input[Symbol.toPrimitive];
|
|
14
|
-
if (prim !== undefined) {
|
|
15
|
-
var res = prim.call(input, hint || "default");
|
|
16
|
-
if (_typeof(res) !== "object") return res;
|
|
17
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18
|
-
}
|
|
19
|
-
return (hint === "string" ? String : Number)(input);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _toPropertyKey(arg) {
|
|
23
|
-
var key = _toPrimitive(arg, "string");
|
|
24
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _defineProperty(obj, key, value) {
|
|
28
|
-
key = _toPropertyKey(key);
|
|
29
|
-
if (key in obj) {
|
|
30
|
-
Object.defineProperty(obj, key, {
|
|
31
|
-
value: value,
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true
|
|
35
|
-
});
|
|
36
|
-
} else {
|
|
37
|
-
obj[key] = value;
|
|
38
|
-
}
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _arrayWithHoles(arr) {
|
|
43
|
-
if (Array.isArray(arr)) return arr;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function _iterableToArrayLimit(r, l) {
|
|
47
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
48
|
-
if (null != t) {
|
|
49
|
-
var e,
|
|
50
|
-
n,
|
|
51
|
-
i,
|
|
52
|
-
u,
|
|
53
|
-
a = [],
|
|
54
|
-
f = !0,
|
|
55
|
-
o = !1;
|
|
56
|
-
try {
|
|
57
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
58
|
-
if (Object(t) !== t) return;
|
|
59
|
-
f = !1;
|
|
60
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
61
|
-
} catch (r) {
|
|
62
|
-
o = !0, n = r;
|
|
63
|
-
} finally {
|
|
64
|
-
try {
|
|
65
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
66
|
-
} finally {
|
|
67
|
-
if (o) throw n;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return a;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function _arrayLikeToArray(arr, len) {
|
|
75
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
76
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
77
|
-
return arr2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
81
|
-
if (!o) return;
|
|
82
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
83
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
84
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
85
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
86
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function _nonIterableRest() {
|
|
90
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _slicedToArray(arr, i) {
|
|
94
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var createRoutes = function createRoutes(basePath) {
|
|
98
|
-
return {
|
|
99
|
-
index: basePath,
|
|
100
|
-
"new": "".concat(basePath, "/new"),
|
|
101
|
-
edit: "".concat(basePath, "/:ruleId/edit")
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
var getSeparator = function getSeparator(_ref) {
|
|
105
|
-
var _selectedField$separa2, _selectedField$separa3;
|
|
106
|
-
var defaultSeparator = _ref.defaultSeparator,
|
|
107
|
-
_ref$index = _ref.index,
|
|
108
|
-
index = _ref$index === void 0 ? 0 : _ref$index,
|
|
109
|
-
selectedField = _ref.selectedField;
|
|
110
|
-
if (!selectedField || !selectedField.separator) return defaultSeparator;
|
|
111
|
-
if (!Array.isArray(selectedField.separator)) {
|
|
112
|
-
var _selectedField$separa;
|
|
113
|
-
return (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase();
|
|
114
|
-
}
|
|
115
|
-
return (_selectedField$separa2 = (_selectedField$separa3 = selectedField.separator[index]) === null || _selectedField$separa3 === void 0 ? void 0 : _selectedField$separa3.toLowerCase()) !== null && _selectedField$separa2 !== void 0 ? _selectedField$separa2 : defaultSeparator;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export { _defineProperty as _, _slicedToArray as a, _arrayWithHoles as b, createRoutes as c, _unsupportedIterableToArray as d, _nonIterableRest as e, _typeof as f, getSeparator as g, _arrayLikeToArray as h };
|
|
119
|
-
//# sourceMappingURL=utils-249a1c9a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-249a1c9a.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../app/javascript/src/utils.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n"],"names":["toPrimitive","toPropertyKey","arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase"],"mappings":"AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACxH,GAAG,EAAE,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