original_text
stringlengths 1
23.3k
| tokenized_code
stringlengths 1
25.1k
| masked_code
stringlengths 1
23.6k
|
|---|---|---|
import React from 'react'
|
import React from 'react '
|
import React from 'react '
|
import CreditCard from './CreditCard'
|
import CreditCard from './CreditCard '
|
import CreditCard from './CreditCard '
|
import Message from '../message'
|
import Message from ' .. /message '
|
import Message from ' .. /message '
|
}
|
}
|
[MASK]
|
)
|
)
|
[MASK]
|
import { IGenericStyleType } from '@protocommon/types'
|
import { IGenericStyleType } from ' @ protocommon/types '
|
import { IGenericStyleType } [MASK] [MASK] [MASK] protocommon/types '
|
} from '@protolibrary/components'
|
} from ' @ protolibrary/components '
|
[MASK] from ' @ protolibrary/components '
|
import COLORS from '@resources/colors'
|
import COLORS from ' @ resources/colors '
|
import COLORS from ' @ resources/colors '
|
import React, { useMemo, useRef, useState } from 'react'
|
import React , { useMemo , useRef , useState } from 'react '
|
import React , { useMemo , useRef , useState } from 'react '
|
import InputLayout from '../input-layout'
|
import InputLayout from ' .. /input-layout '
|
import InputLayout from ' .. /input-layout '
|
import { CARD_PAYMENT_METHOD, MONTH_OPTIONS, YEAR_OPTIONS } from './data'
|
import { CARD_PAYMENT_METHOD , MONTH_OPTIONS , YEAR_OPTIONS } from './data '
|
import { CARD_PAYMENT_METHOD , MONTH_OPTIONS , YEAR_OPTIONS } from './data '
|
import { maxLength, minLength, required } from '@protoweb/utils'
|
import { maxLength , minLength , required } from ' @ protoweb/utils '
|
import [MASK] [MASK] , minLength , required } [MASK] ' @ protoweb/utils '
|
import useLocalization from '@hooks/useLocalization'
|
import useLocalization from ' @ hooks/useLocalization '
|
import useLocalization from [MASK] [MASK] [MASK] '
|
import { NO_DOT_NUMERIC_REGEX } from '@utils/RegexUtils'
|
import { NO_DOT_NUMERIC_REGEX } from ' @ utils/RegexUtils '
|
import { NO_DOT_NUMERIC_REGEX } from ' @ utils/RegexUtils '
|
import { useStore } from '@core/states'
|
import { useStore } from ' @ core/states '
|
import { useStore } from ' @ [MASK] '
|
title?: string
|
title ? : string
|
title [MASK] : string
|
children?: any
|
children ? : any
|
children ? : any
|
collapsible?: boolean
|
collapsible ? : boolean
|
collapsible ? : [MASK]
|
open?: boolean
|
open ? : boolean
|
open ? : [MASK]
|
style?: { header?: IGenericStyleType
|
style ? : { header ? : IGenericStyleType
|
style ? [MASK] [MASK] header ? [MASK] [MASK]
|
container?: IGenericStyleType }
|
container ? : IGenericStyleType }
|
container [MASK] : IGenericStyleType }
|
onCardNumberLength?: (length: number) => void
|
onCardNumberLength ? : ( length : number ) = > void
|
onCardNumberLength ? : ( length : [MASK] ) = > [MASK]
|
refFormCredit: any
|
refFormCredit : any
|
refFormCredit [MASK] any
|
const { t } = useLocalization()
|
const { t } = useLocalization ( )
|
const { t } = useLocalization [MASK] )
|
const [cardNumberLength, setCardNumberLength] = useState(0)
|
const [ cardNumberLength , setCardNumberLength ] = useState ( 0 )
|
[MASK] [MASK] cardNumberLength , setCardNumberLength ] = useState ( 0 )
|
const newLength = event.target.value.length
|
const newLength = event.target.value.length
|
const newLength = event.target.value.length
|
setCardNumberLength(newLength)
|
setCardNumberLength ( newLength )
|
setCardNumberLength ( newLength )
|
onCardNumberLength && onCardNumberLength(newLength)
|
onCardNumberLength & & onCardNumberLength ( newLength )
|
onCardNumberLength & & [MASK] ( [MASK] )
|
}
|
}
|
}
|
// const { instalementData } = useStore('holderState')
|
// const { instalementData } = useStore ( 'holderState ' )
|
// const { [MASK] } = useStore [MASK] 'holderState ' )
|
const formValues = refFormCredit.current?.getValues()
|
const formValues = refFormCredit.current ? .getValues ( )
|
[MASK] formValues = refFormCredit.current ? .getValues ( )
|
// })
|
// } )
|
[MASK] } )
|
)
|
)
|
)
|
}
|
}
|
}
|
export default CreditCard
|
export default CreditCard
|
export default CreditCard
|
const CARD_PAYMENT_METHOD = [{ label: 'TCKN', value: 'Nakit' }]
|
const CARD_PAYMENT_METHOD = [ { label : 'TCKN ' , value : 'Nakit ' } ]
|
const CARD_PAYMENT_METHOD = [ { label : 'TCKN ' , value : 'Nakit [MASK] } ]
|
]
|
]
|
[MASK]
|
]
|
]
|
]
|
export { CARD_PAYMENT_METHOD, MONTH_OPTIONS, YEAR_OPTIONS }
|
export { CARD_PAYMENT_METHOD , MONTH_OPTIONS , YEAR_OPTIONS }
|
[MASK] { [MASK] [MASK] MONTH_OPTIONS , YEAR_OPTIONS }
|
import React from 'react'
|
import React from 'react '
|
import React from 'react '
|
import AutoComplete from './AutoComplete'
|
import AutoComplete from './AutoComplete '
|
import [MASK] [MASK] './AutoComplete '
|
}
|
}
|
}
|
const Template = args => <AutoComplete {...args} />
|
const Template = args = > < AutoComplete { ... args } / >
|
const Template [MASK] args = > < AutoComplete { ... args } / >
|
export const Default = Template.bind({})
|
export const Default = Template.bind ( { } )
|
export const [MASK] = Template.bind ( { } )
|
export const FormUsage = Template.bind({})
|
export const FormUsage = Template.bind ( { } )
|
export [MASK] FormUsage = Template.bind [MASK] { } )
|
import React, { useEffect, useImperativeHandle, useRef, useState } from 'react'
|
import React , { useEffect , useImperativeHandle , useRef , useState } from 'react '
|
import React , [MASK] useEffect , useImperativeHandle , useRef , [MASK] } from [MASK] '
|
import { Block, Element, Image, TextField } from '@protolibrary/components'
|
import { Block , Element , Image , TextField } from ' @ protolibrary/components '
|
import [MASK] Block , Element , Image , TextField } from ' @ protolibrary/components '
|
import classnames from 'classnames'
|
import classnames from 'classnames '
|
import classnames [MASK] 'classnames '
|
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce '
|
import debounce from 'lodash.debounce '
|
import './assets/styles/index.scss'
|
import './assets/styles/index.scss '
|
import './assets/styles/index.scss '
|
import SearchSvg from './assets/searchIcon.svg'
|
import SearchSvg from './assets/searchIcon.svg '
|
import SearchSvg [MASK] './assets/searchIcon.svg '
|
import { usePopper } from 'react-popper'
|
import { usePopper } from 'react-popper '
|
[MASK] { usePopper [MASK] [MASK] [MASK] '
|
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom '
|
import ReactDOM [MASK] 'react-dom [MASK]
|
service: (searchText) => Promise<any>
|
service : ( searchText ) = > Promise < any >
|
service [MASK] ( searchText ) = > Promise < any >
|
timeout?: number
|
timeout ? : number
|
timeout ? : number
|
onSelectCallback?: (item, label, index) => void
|
onSelectCallback ? : ( item , label , index ) = > void
|
onSelectCallback ? : ( item , label , index ) = [MASK] void
|
textFieldWrapperClassName?: string
|
textFieldWrapperClassName ? : string
|
textFieldWrapperClassName ? : string
|
wrapperClassName?: string
|
wrapperClassName ? : string
|
wrapperClassName ? : string
|
hasIcon?: boolean
|
hasIcon ? : boolean
|
hasIcon ? : boolean
|
textFieldClassName?: string
|
textFieldClassName ? : string
|
textFieldClassName ? : string
|
placeholder?: string
|
placeholder ? : string
|
[MASK] ? : string
|
sourceField: string
|
sourceField : string
|
sourceField : string
|
labelField: string
|
labelField : string
|
[MASK] : string
|
extraLabel?: string
|
extraLabel ? : string
|
extraLabel ? [MASK] [MASK]
|
disabled?: boolean
|
disabled ? : boolean
|
disabled ? : boolean
|
value?: string
|
value ? : string
|
value ? : string
|
onValueChange?: (value: string) => void
|
onValueChange ? : ( value : string ) = > void
|
onValueChange ? : ( value : string ) = [MASK] void
|
clearable?: boolean
|
clearable ? : boolean
|
clearable ? : [MASK]
|
}
|
}
|
}
|
const [optionList, setOptionList] = useState([])
|
const [ optionList , setOptionList ] = useState ( [ ] )
|
const [ optionList [MASK] [MASK] ] = useState ( [ ] )
|
const [searchText, setSearchText] = useState(props.value || '')
|
const [ searchText , setSearchText ] = useState ( props.value || `` )
|
[MASK] [ searchText [MASK] setSearchText ] = useState ( props.value || [MASK] )
|
const [message, setMessage] = useState(messages.noItem)
|
const [ message , setMessage ] = useState ( messages.noItem )
|
[MASK] [ message , setMessage ] = useState ( messages.noItem )
|
const [isSearchListVisible, setIsSearchListVisible] = useState(false)
|
const [ isSearchListVisible , setIsSearchListVisible ] = useState ( false )
|
const [ isSearchListVisible , setIsSearchListVisible ] = useState ( false )
|
const [selectedItem, setSelectedItem] = useState({})
|
const [ selectedItem , setSelectedItem ] = useState ( { } )
|
const [ selectedItem , setSelectedItem ] = useState ( [MASK] } )
|
}))
|
} ) )
|
} ) )
|
setSearchText(props.value || '')
|
setSearchText ( props.value || `` )
|
setSearchText ( props.value || `` [MASK]
|
}
|
}
|
}
|
getCompaniesLodash()
|
getCompaniesLodash ( )
|
getCompaniesLodash ( )
|
}, [searchText])
|
} , [ searchText ] )
|
} , [ searchText ] )
|
setSearchText(props.value || '')
|
setSearchText ( props.value || `` )
|
setSearchText ( props.value || `` )
|
}, [props.value])
|
} , [ props.value ] )
|
} , [ props.value ] )
|
setIsSearchListVisible(false)
|
setIsSearchListVisible ( false )
|
setIsSearchListVisible ( false )
|
return
|
return
|
[MASK]
|
let { payload } = await props.service(searchText)
|
let { payload } = await props.service ( searchText )
|
[MASK] { [MASK] } [MASK] await [MASK] ( searchText )
|
setOptionList([...payload[props.sourceField]])
|
setOptionList ( [ ... payload [ props.sourceField ] ] )
|
[MASK] [MASK] [MASK] ... payload [MASK] props.sourceField ] ] )
|
setOptionList(payload)
|
setOptionList ( payload )
|
setOptionList ( payload )
|
setMessage(messages.noItem)
|
setMessage ( messages.noItem )
|
setMessage ( messages.noItem [MASK]
|
setMessage(messages.minCharacter)
|
setMessage ( messages.minCharacter )
|
setMessage ( messages.minCharacter )
|
setOptionList([])
|
setOptionList ( [ ] )
|
setOptionList [MASK] [ ] )
|
setIsSearchListVisible(true)
|
setIsSearchListVisible ( true )
|
setIsSearchListVisible ( [MASK] )
|
}
|
}
|
}
|
const getCompaniesLodash = debounce(handleOnSearchClick, props.timeout || 500)
|
const getCompaniesLodash = debounce ( handleOnSearchClick , props.timeout || 500 )
|
const getCompaniesLodash = debounce ( handleOnSearchClick , props.timeout || 500 )
|
setSearchText(value)
|
setSearchText ( value )
|
setSearchText ( value )
|
props.onValueChange(value)
|
props.onValueChange ( value )
|
props.onValueChange ( value [MASK]
|
}
|
}
|
[MASK]
|
)
|
)
|
[MASK]
|
}
|
}
|
}
|
return optionList.map(renderListItem)
|
return optionList.map ( renderListItem )
|
return [MASK] ( renderListItem )
|
}
|
}
|
}
|
setSearchText(item[props.labelField])
|
setSearchText ( item [ props.labelField ] )
|
setSearchText ( item [MASK] [MASK] [MASK] )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.