@@ -40,6 +40,14 @@ const STRING_ARRAY_ENCODING_OPTIONS = [
4040 { text : 'RC4' , value : STRING_ARRAY_ENCODING_RC4 } ,
4141] ;
4242
43+ export const STRING_ARRAY_WRAPPERS_TYPE_VARIABLE = 'variable' ;
44+ export const STRING_ARRAY_WRAPPERS_TYPE_FUNCTION = 'function' ;
45+
46+ const STRING_ARRAY_WRAPPERS_TYPE_OPTIONS = [
47+ { text : 'Variable' , value : STRING_ARRAY_WRAPPERS_TYPE_VARIABLE } ,
48+ { text : 'Function' , value : STRING_ARRAY_WRAPPERS_TYPE_FUNCTION } ,
49+ ] ;
50+
4351export const TARGET_BROWSER = 'browser' ;
4452export const TARGET_BROWSER_NO_EVAL = 'browser-no-eval' ;
4553export const TARGET_NODE = 'node' ;
@@ -196,16 +204,6 @@ const Options = ({dispatch, options}) => {
196204 disabled = { ! options . shuffleStringArrayEnabled }
197205 onChange = { ( ) => dispatch ( actions . toggleOption ( types . TOGGLE_SHUFFLE_STRING_ARRAY ) ) } />
198206
199- < Form . Select
200- disabled = { ! options . stringArrayEncodingEnabled }
201- label = 'String Array Encoding'
202- fluid
203- multiple
204- placeholder = { STRING_ARRAY_ENCODING_NONE }
205- value = { options . stringArrayEncoding }
206- onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayEncoding ( value ) ) }
207- options = { STRING_ARRAY_ENCODING_OPTIONS } />
208-
209207 < Form . Input
210208 type = 'number'
211209 label = 'String Array Threshold'
@@ -216,6 +214,41 @@ const Options = ({dispatch, options}) => {
216214 onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayThreshold ( parseFloat ( value ) ) ) }
217215 disabled = { ! options . stringArrayThresholdEnabled } />
218216
217+ < Form . Input
218+ type = 'number'
219+ label = 'String Array Wrappers Count'
220+ value = { options . stringArrayWrappersCount }
221+ min = "0"
222+ step = "1"
223+ onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayWrappersCount ( parseInt ( value ) ) ) }
224+ disabled = { ! options . stringArray } />
225+
226+ < Form . Select
227+ label = 'String Array Wrappers Type'
228+ fluid
229+ placeholder = { STRING_ARRAY_WRAPPERS_TYPE_VARIABLE }
230+ value = { options . stringArrayWrappersType }
231+ onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayWrappersType ( value ) ) }
232+ options = { STRING_ARRAY_WRAPPERS_TYPE_OPTIONS }
233+ disabled = { ! options . stringArray || ! options . stringArrayWrappersCount }
234+ />
235+
236+ < Form . Checkbox
237+ label = 'String Array Wrappers Chained Calls'
238+ checked = { options . stringArrayWrappersChainedCalls }
239+ disabled = { ! options . stringArray || ! options . stringArrayWrappersCount }
240+ onChange = { ( ) => dispatch ( actions . toggleOption ( types . TOGGLE_STRING_ARRAY_WRAPPERS_CHAINED_CALLS ) ) } />
241+
242+ < Form . Select
243+ disabled = { ! options . stringArrayEncodingEnabled }
244+ label = 'String Array Encoding'
245+ fluid
246+ multiple
247+ placeholder = { STRING_ARRAY_ENCODING_NONE }
248+ value = { options . stringArrayEncoding }
249+ onChange = { ( event , { value} ) => dispatch ( actions . setStringArrayEncoding ( value ) ) }
250+ options = { STRING_ARRAY_ENCODING_OPTIONS } />
251+
219252 < Divider />
220253
221254 < Form . Checkbox
0 commit comments